I have an int array full of values (0-255) and I need to extract two indexes.
The indexes to be found will represent the Interesting Area I want to focus on.
The values of this area are always higher than the others but sometimes the difference is very low.
Like this example:
My interest area is this:
My current approach is to get the Max value and Average value. Then I will get:
- the first index greater than "Max - (Max - Average)".
- the last index greater than "Max - (Max - Average)".
But sometimes, like in this case my method gets the Junk part. (The fifth "column", on the right)
Anyone can suggest a better approach?
Note: The interest area has always 4 "columns" like the example image