Hello. I’m Dan.
I’m working on an image analysis study using ImageJ and I’m facing a problem.
I want to extract only the “soybeans” in the image below.
But in The leftmost part of the image, the soybeans will be reflected in the frame and end up extracting more parts than the soybeans.
Sample image and/or code
Soybeans reflected in the grid*
I want to do the extraction only “soybeans” in the simplest way possible. The original photo and the ROI file should be compatible.
(Below, I’ve written about some of the things I’ve done, but it’s time-consuming and hard to do in terms of ROI file correspondence)
What I do to solve this problem
・I run several times “Color Threshold” in several Lab* values to extract only “soy bean”. I analyzed Measurement Results in terms of the values of “Circ.”, “Height”, and “Width” and select soybeans which seems to extract “the only soybean”.
(The ROI files obtained from the multiple Color Threshold runs were also matched to the analyzed results.)
→ Color Threshold takes time and needs to be done many times because soybean reflections are not unique(The results of the analysis change significantly with just a small change in the value of b*!)
・After, run Color Threshold, I pick up the soybean which does not extract well, and copies it to the new image and Threshold it by Split Color channel and b* channel.
→ It is possible but laborious. It is hard to accommodate the ROI of the base image after extracting only parts of the soybean. (In terms of coordinates.)
I am not a native English speaker. If I’m unclear on any part of the information, I’d appreciate it if you could let me know.