Missing MATLAB OPerator

liunx

Guest
<br /><br />HI Everyone...<br /><br />I am working on this code and I keep getting this error .<br />please help. it is related to image processing. <br />Thanks<br /><br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1--><br /><br />im = imread('S.jpeg');<br />im = rgb2gray(im);<br />im = im2double(im);<br /> g = im;<br /> im = imnoise(im,'speckle' , 0.6);<br /> im1 = ones(size(im));<br /> [m,n] = size(im);<br /> tic<br /> for i = 1:16:m-15<br />     for j = 1:16:n-15<br />         subim = im(i:i+15,j:j+15);<br />         [Energy wt sptx spty eptx epty]=extbeamlets(im)<br />         [selected xp0 yp0 xp1 yp1] = threshold(Energy sptx spty eptx epty);<br />         result = drawbmlets(selected,xp0,yp0,xp1,yp1,subim);<br />         im1(i:i+15,j:j+15) = result;<br />     end<br /> end<br /> toc<br /> figure, imshow(im1);<br /><br />(selected xp0 yp0 xp1 yp1) = threshold(Energy sptx spty eptx epty);<br />                       |<br />Error: Missing MATLAB operator.<br /><br /><!--c2--></div><!--ec2--><br /><br />Please tell me why I get missing MATLAB Operator.. is it becausse I have to write a sub code for threshold? Please help....
</div>
 
Back
Top