Hi All,
I have an unusual (but really helpful in my application) need to detect a color in an image. The image may be a JPG or a PNG. I need to be able to look at the image (I assume pixel by pixel) and then check if the pixel value matches a specific color value (which I suppose can be expressed as an RGB(R,G,B) value range, or some other).
The problem I have is, I don't know where to start with this. I essentially need to be able to identify 3 colors (Gold, Silver, Bronze), but their exact RGB value is known. Any idea how I can look at an image pixel by pixel in VFP and test for the pixel value = to the color I'm trying to match to?
I've not known VFP to handle image processing very well. I have the EZTwain library as well, but I couldn't find something in it's DIB management that would let me look at it either.
Any guidance would be really great.
Thanks
Best Regards,
Scott
MIET, MASHRAE, CDCP, CDCS, CDCE, CTDC, CTIA, ATS
"Everything should be made as simple as possible, and no simpler."
I have an unusual (but really helpful in my application) need to detect a color in an image. The image may be a JPG or a PNG. I need to be able to look at the image (I assume pixel by pixel) and then check if the pixel value matches a specific color value (which I suppose can be expressed as an RGB(R,G,B) value range, or some other).
The problem I have is, I don't know where to start with this. I essentially need to be able to identify 3 colors (Gold, Silver, Bronze), but their exact RGB value is known. Any idea how I can look at an image pixel by pixel in VFP and test for the pixel value = to the color I'm trying to match to?
I've not known VFP to handle image processing very well. I have the EZTwain library as well, but I couldn't find something in it's DIB management that would let me look at it either.
Any guidance would be really great.
Thanks
Best Regards,
Scott
MIET, MASHRAE, CDCP, CDCS, CDCE, CTDC, CTIA, ATS
"Everything should be made as simple as possible, and no simpler."