This is the code.
%%%%%%Code begins %%%%
boundaries = bwboundaries(img);NumOfBoundaries = size(boundaries, 1);[x y t]= size(rgbImage);ZeroPlate = redChannel == 0;for k = 1 : NumOfBoundaries thisBoundary = boundaries{k};%%%%%I want to set Value '1' to 'ZeroPlate' co-%%%ordination given in 'thisBoundary' %%%%%%%%
%%%%%---------------the code goes here------------------%%%%
%%%%%end %%%%%
end
I want to set value '1' to the ZeroPlate (which is red-channel of the given image in which the pixel values are all zeros) according to the co-ordination obtaining from the values of 'boundaries' variable. How to do this ?
Best Answer