|
Hi ImageAnalyst,
thank you for your advice.
I don't know anything about Otsu's method, but I would assume that the algorithm would always pick some threshold (or "level") for a grayscale image (even if the image is noisy). Also, when graythresh returns "level" = 0.0, I don't know what that means, i.e. is the image too noisy to find a level, or, because my image elements are 16-bit, was there information lost in the conversion to 8-bit (although the author of graythresh says that the function can take uint16 data....I just don't see in the graythresh code how uint16 data is handled differently) ?
cheers
-Dave
ImageAnalyst <imageanalyst@mailinator.com> wrote in message <b5311ba1-f020-4b79-bf60-c4f5b912a08a@b7g2000yqd.googlegroups.com>...
> Well that's where the "art" comes in. You have to look at a bunch of
> histograms and think up a custom threshold selection algorithm that
> works for the type of histograms that you encounter. Most likely it
> won't be the Otsu method like graythresh uses if you pass in no
> parameter. You have to look at where .0035 falls on the histogram and
> figure out how to chop the histogram at that same location even if the
> location needs to be adjusted slightly because the shape of the
> histogram is slightly different.
|