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

user interface - Python attempting to create a simple gui, getting "AttributeError: 'MainMenu' object has no attribute 'intro_screen'" -

jquery - Common JavaScript snippet to share files on Google Drive, Dropbox, Box.net or SkyDrive -

Android Gson.fromJson error -