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:

enter image description here

my interest area this:

enter image description here

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

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -