how to identify rectangles in a bitmap
-
hi i am have an image which i would like to identify all rectangular border. does anyone know anyone know how i can do this efficiently? an example of what i am trying to get like 0 0 0 0 0 0 0 0 0 0 1 0 0 0 1 1 0 0 0 2 2 2 2 2 2 2 0 0 2 0 0 0 0 1 2 0 0 2 0 0 0 0 0 2 0 0 2 2 2 2 2 2 2 0 0 0 0 0 0 0 1 0 0 where 1 and 2 are the same colour and 0 represents another colour so the rectangular border i am trying to get is the rectangle coordinate of the pixel which are marked 2
-
hi i am have an image which i would like to identify all rectangular border. does anyone know anyone know how i can do this efficiently? an example of what i am trying to get like 0 0 0 0 0 0 0 0 0 0 1 0 0 0 1 1 0 0 0 2 2 2 2 2 2 2 0 0 2 0 0 0 0 1 2 0 0 2 0 0 0 0 0 2 0 0 2 2 2 2 2 2 2 0 0 0 0 0 0 0 1 0 0 where 1 and 2 are the same colour and 0 represents another colour so the rectangular border i am trying to get is the rectangle coordinate of the pixel which are marked 2
You want to work with pixels? Go deep, deep, deep into the low-level programming, because
System.Drawing
[^]won't help you out. Anyhow, how will you define a pixel to be 2, or 0, or a 1. Pixels vary in values, and even a slight different in their value would be indetectable by you, and software would provide you with a lot of unexpected results. First learn the basics, get to the intermediate level of programming then you can create an application of such logic.The shit I complain about It's like there ain't a cloud in the sky and it's raining out - Eminem ~! Firewall !~