Getting Pixel Value
-
Hello!!! I was woundering how to get a pixel value from Bitmap ? If i'm using
GetPixel().ToArb
- it returns a nearest color. How can i convert my picture to Black-and-White, and how can i get ammount of blackness? (Or if you know how to convert a color of Colored image to double?) Thanks. X|One nation - underground
-
Hello!!! I was woundering how to get a pixel value from Bitmap ? If i'm using
GetPixel().ToArb
- it returns a nearest color. How can i convert my picture to Black-and-White, and how can i get ammount of blackness? (Or if you know how to convert a color of Colored image to double?) Thanks. X|One nation - underground
Saikek wrote:
Hello!!! I was woundering how to get a pixel value from Bitmap ? If i'm using GetPixel().ToArb - it returns a nearest color.
GetPixel will return the exact color, what do you think it will give ?
Saikek wrote:
How can i convert my picture to Black-and-White, and how can i get ammount of blackness?
My image processing articles will show the most common way to create greyscale. Once you do that, it's easy to set a threshold and convert to 1 bit.
Saikek wrote:
(Or if you know how to convert a color of Colored image to double?)
Colors are only represented as double in HDR systems, which means never on the PC. Your RGB value represents the exact color information being used to display your image. Even then, a single double value cannot represent a color, there is no linear scale of all colors, they are always a combination of 3 values, be it RGB, or HSL, or whatever.
Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )