image - Detecting a large square region of same color in a video -


imagine there video , in video there "pixelated" region region of 100×100 pixels occupied smaller 25×25 squares of same color. within video (which may contain of colors of edge squares, i.e. black, red, blue, etc background):

example image

i need find individual regions (which square) outline entire region occupied these squares. full region not have square or of particular shape, there 5 "large-pixels" in cross shape.

i seeking algorithm that, preferably stand alone (without external libraries). have no preference of language (anything python java or lisp c++).

p.s. video can have dimensions, example 500×600 pixels or 1920×1080, size of single "large-pixel" relative size of video, in other words 500×600 may have 25-high , 1920×1080 may 100-high.

p.s.s. issue neighboring "large-pixels" may of same color , should detected individual squares.


Comments

Popular posts from this blog

css - Which browser returns the correct result for getBoundingClientRect of an SVG element? -

gcc - Calling fftR4() in c from assembly -

Function that returns a formatted array in VBA -