Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Obtaining coordinates of pixels lighted at specific color

Hi everyone, I am working on an app using OpenCV249 on android and would like to find means to obtain the coordinates of the pixels that are lighted at a specific color relative to the image. For instance if I draw a green dot using android's canvas and drawables on an image, is there a way to obtain the coordinates of that green dot relative to the image?

And if this process is extended to more complicated random sketches, ie circles or rectangles, is there a way to obtain those points as well?

Obtaining coordinates of pixels lighted at specific color

Hi everyone, I am working on an app using OpenCV249 on android and would like to find means to obtain the coordinates of the pixels that are lighted at a specific color relative to the image. For instance if I draw a green dot using android's canvas and drawables on an image, is there a way to obtain the coordinates of that green dot relative to the image?

And if this process is extended to more complicated random sketches, ie circles or rectangles, is there a way to obtain those points as well?well? Do note that I am developing for android, thanks!