If you look at its lines, it is easier, because then you are dealing with line graphs instead of 2d graphs of images, which is always easier.
Decision:
scan the string by pixels, put the string in an array if it is faster for computation, and then run the algorithms in the string (s) to determine the degree of blocking:
1 / skip each pixel in your line and compare it with the previous pixel, subtracting the value between the two pixels. create an array of previous pixel values. if large jumps in pixel values โโare at regular inverse values, this blocks. if there are large jumps in values โโcombined with small jumps in values, they block ... you can assume that if there are many identical differences in pixels, this will block, especially if you repeat the analysis twice at intervals between two and four adjacent pixels and on several lines.
You can also create graphs of the differences between pixels between pixels 3-5-10 pixels apart to have additional information about the gradient changes of sample lines of images. if the ratio of differences in pixels of neighboring pixels to fifth neighboring pixels is similar, it also indicates non-smooth colors.
there can be many algorithms, including a fast four on a line graph, the same as the sound you would use on the line (s) from the figure, which is simpler than the 2d image algorithm.
source share