How to determine the area of ​​least energy in the image

I want to programmatically place text on an image in an area where "less" happens. It has been some time since I took Computer-Vision, could anyone point me in the right direction. Either regarding C # or Matlab?

+6
c # image-processing matlab
source share
2 answers

I suggest dividing the image into separate areas, each of which occupies the space required for the text overlay. Calculate some measure of visual “energy,” for example, standard deviation, and select the area with the smallest value. You can also slide the window around looking for arbitrary low energy space, but that would be a lot more expensive to calculate.

+5
source share

If you have an image processing panel for Matlab, you can run an entropy filter ( ENTROPYFILT ) on the image, matching the filter size to the size of your text. Then all you have to do is find the result of the filter with the smallest value, and you have the center where you want to place the text.

+4
source share

All Articles