MATLAB: How to find only leaves in a gray scale image acquired using IR camera for Thermal imaging

computer visionComputer Vision Toolboximage analysisimage processingImage Processing Toolboximage segmentationthermal

I get only a gray scale image like this from IR camera and I need to write a code that would detect ONLY LEAVES from each plant.
I have no idea what sort of algorithms should I go for in order to that because of complex background. Any suggestions on what I should look for would be greatly appreciated.

Best Answer

You could use image analysis. If the leaves are a temperature different than the rest of the scene, simply threshold and call regionprops().
See my Image Segmentation Tutorial for a full demo. http://www.mathworks.com/matlabcentral/fileexchange/?term=authorid%3A31862