<div dir="ltr"><div><div><div>Hello,<br><br></div>I have been using the otsu filter for
doing object-from-background separation. However, I noticed that the
filter always comes out with an separation threshold, even if the image
does NOT actually have a "reasonable" background, see the attached
image, e.g.. <br><br>My question is: is it possible to control the
filter in such a way that it only generate a threshold if there is
really a background? <br><br>Practically, I could, in a post-processing
step, do a decision weather the separation is feasible or not, e.g.
computing the comparing the statistics of the two separated areas
(average intensity, variance, etc.). But I thought the otsu filter
already does such things internally, right? Is it possible to inquire
such data from the filter?<br><br></div><div>Any ideas would be welcome!!<br><br></div><div>Much thanks,<br><br></div>Zein<br><br></div></div>