MATLAB: Combine the images obtained from loop

color segmentationImage Processing Toolboxlabelled binary image combine

<<
<<
>>
>> I am doing classification of crop and weed the I have detected the crop but it is displaying in separate windows please help me to obtain all crops in one image thanks in advance

Best Answer

I don't know how they got separated in the first place. If you do color segmentation you'll get all of them. See the color segmentation demos in my File Exchange, particularly the one on segmenting by hue. http://www.mathworks.com/matlabcentral/fileexchange/?term=authorid%3A31862