I have a photo of bunches of walnut fruit in rows and I want to develop a semi-automated workflow for ImageJ to label them and create a new image from the edges of each selected ROI.

What I have done until now is Segmenting walnuts from the background by suitable threshold> then select the all of the walnuts as a single ROI>

Now I need to know how can I label, the different regions of ROI and count them in numbers to add to the ROI manager. Finally, these ROIs must be cropped from their edges and new image from each walnut should save individually.

Thoughts on how to do this, as well as tips on the code to do so, would be great.

Thanks!

More Amirhossein Nikpendar's questions See All
Similar questions and discussions