Đã hoàn thành

opencv draw gradient line

Dear Opencv experts,

Please help me to draw a gradient line.

Following is the code for drawing a line. It allows to draw a single color from point A to point B with necessary width.

cv::line(cv::Mat canvas, cv::Point(PointF pt1.X, PointF pt1.Y), cv::Point(PointF pt2.X, PointF pt2.Y), cv::Scalar color, int nPenWidth, CV_AA);

I am looking for something like the following.

cv::gradient_line(cv::Mat canvas, cv::Point(PointF pt1.X, PointF pt1.Y), cv::Point(PointF pt2.X, PointF pt2.Y), cv::Scalar color-pt1, cv::Scalar color-pt2, int nPenWidth, CV_AA);

Where color-pt1 is the color needed at pt1 and color-pt2 is the color necessary at pt2. Between these two points, the color needed to be gradient.

I am not sure if opencv has a built in function for gradient drawing. If it not available, kindly code one function for me.

Happy bidding.

Kĩ năng: OpenCV, Lập trình C++

Xem nhiều hơn: net draw circle line, draw rotate line flex, draw time line vbnet, draw market line spss, draw curved line fireworks, android draw animated line google map, draw average line flex chart, draw linear line chart flex, draw simple line graph, draw straight line cocoa iphone application, fireworks draw curve line, net draw animated line, draw horizontal line close price mt4, draw pictures line arts realism caricature, indicator draw vertical line time, mt4 indicator draw vertical line, draw vertical line mt4, mt4 draw vertical line time day

Về Bên Thuê:
( 298 nhận xét ) Suwon-si, Korea, Republic of

ID dự án: #29416184

Được trao cho:

scdelance

Hello, I'm a primarily C++ programmer with OpenCV experience. I primarily did software development that dealt with tracking and recognition. I am familiar with OpenCV, so I believe I am qualified for this task.

$20 USD trong 3 ngày
(0 Đánh Giá)
0.0

3 freelancer chào giá trung bình$37 cho công việc này

(3 Nhận xét)
1.6
amzalabdelkarim2

I really am a professional in this [login to view URL] has done great photos selling products for customers

$35 USD trong 3 ngày
(0 Nhận xét)
0.0