Hi,
I am trying to load an image, create a region of interest which is not
rectangular, create a mask of this area for me to then do some basic
processing on it.
In the selected region i want to subtract the blue band from the red,
and then plot a contour of a various level from that image.
However i am stuck trying to apply the mask. I have the following so
far;
I=imread ('plan.jpg');
mask=roi2poly;
rbI=double(I(:,:,1))-double(I(:,:,3));
contour(rbI,[0 0]);
What i am not sure on is how to apply the mask to the image as a
whole, if i need to use the find command, if so how?
Any suggestions would be very helpful.
Cheers
Ponch


|