I need to develop a method to find the distance of a red line and the bottom of the image.
I already isolate the red line in hsv using some examples…
I know how to do this using MatLab but now i have to use the opencv :s
Someone can tell me how to do this?
I need to develop a method to find the distance of a red line
Share
You can access each pixel value of the image in following way.
in here,
we access the each pixel value and cast using unsigned char pointer to get int value.