From: Michal Adam on
I have an axes object on my GUI. It is object axes6 (Segmentation), you can see it in the following link:

http://img835.imageshack.us/img835/3797/guix.jpg

First using is ok, but problem is when I am trying to load another image, I got an error:

??? Error using ==> axes
Invalid object handle

axes(handles.axes6)

for n=1:Ne
[r,c] = find(La==n);
if (obszar(:,n) < 300)
offset = 3;
rmin = min(r) - offset;
rmax = max(r) + offset;
cmin = min(c) - offset;
cmax = max(c) + offset;
digitsBW{n} = imcrop(image,[cmin rmin (cmax-cmin) (rmax - rmin)]);
[wys szer]=size(digitsBW{n});
if (wys > 14 && wys < 35 && szer < 25)
digitsRE{n} = imresize(digitsBW{n},[30 18]);
digitsRE{n} = imclearborder(digitsRE{n});

subplot(1,Ne,n); subimage(digitsRE{n}, handles.axes6);

end
end
end

axes6 is divided on the number of n elements, it seems it might be a problem but i do not know how to solve it.
What is the mistake that I am making?

Thanks for all the help!
 | 
Pages: 1
Prev: save and load
Next: finding mean of image