Algorithm to find the coordinates of a corner in a simple image
问题 I have a bitmap where two large blocks of colors intersect, and I would like to find the intersection of these two blocks. Note that I do not know the actual geometry of the two shapes, because this is all just raw pixel data. Is there any algorithm I could use to do this? 回答1: If you have all the pixel data in memory (which I'd assume you do, but this is a major sticking point) and there are only two distinct colours, all you should need to do is run a horizontal scanline to find the point