I am trying to draw gradient lines in an image. I want my lines to be green and I use Scalar (0.255.0). However, I only get black. For Scalaar (0,0,0) I also turn black. For Scalar (255,255,255) I get white, but no other color for any combination. Part of the code is given below:
line(visual_image, Point(x1*scaleFactor, y1*scaleFactor), Point(x2*scaleFactor, y2*scaleFactor), Scalar(0,255,0), 1,8,0);
source share