algorithm - Get interest area of a Histogram (Int Array) -
i have int array full of values (0-255) , need extract 2 indexes.
the indexes found represent interesting area want focus on.
the values of area always higher others difference low.
like example:
my interest area this:
my current approach max value , average value. get:
- the first index greater "max - (max - average)".
- the last index greater "max - (max - average)".
but sometimes, in case method gets junk part. (the fifth "column", on right)
anyone can suggest better approach?
note: interest area has 4 "columns" example image
you apply simple impulse response filter such boxcar or other means of smoothing histogram reduce high frequency components. after calculate local minima , maxima , pin-point individual peaks (max-min-max-min per peak) within bandwidth narrow down roi.
here simple boxcar filter implementation of mine.
Comments
Post a Comment