Hello, everyone.
I am now making a program with OpenCV which should have these features: 1.Drawing lines on a white canvas; 2.The color of every line is grayscale, that is, I use CV_8UC1;
3.If a line being drawing is crossing over other lines, the grayscale at the crossover points is calculated as:
grayscaleResult = 0.5 * ( grayscaleOld + grayscaleNew)
where grayscaleOld is the color of lines which have been drawn on canvas and grayscaleNew is the color of line which has been drawing.
4.The thinness of lines may not be 1, sometimes > 1.