If you could clarify, what is the problem with the
doWand(x,y) function? The image you shared is not binary, so when I apply
doWand directly I get this:
If that is the problem you can binarize the image using:
However, when I run the
doWand on the binarized image, I get the following selection, which I suspect is the issue you are facing?
I don’t know why the wand jumps to this selection… The source-code states:
The wand selects pixels of equal or similar value or thresholded pixels forming a contiguous area.
Any idea @imagejan @Wayne?
@EricDenarier after actually checking the documentation I see that you can tweak the doWand . Try:
doWand(40,125, 4.0, "Legacy");
Following up on this, I see that this is specifically mentioned in the source code as well (Legacy is default):
* ('LEGACY_MODE' is also supported and may result in selection of
* interior holes instead of the thresholded area if one clicks left
* of an interior hole.)