Quantcast
Channel: OpenCV Q&A Forum - RSS feed
Viewing all articles
Browse latest Browse all 41027

how to draw the curve line?

$
0
0
I'm trying to draw a curve. But I do not know how to draw the point y, we ask for help. ![image description](/upfiles/1446737506477559.jpg) int matWidth = 500; int matHeight = 500; int fromPointX = 50; int fromPointY = 400; int toPointX = 300; int toPointY = 200; ArrayList pointList = new ArrayList(); for(int i = fromPointX; i < toPointX; i++) { Point point = new Point(); point.x = i; // I do not know how to draw a curve. point.y = fromPointY++; pointList.add(point); } for(int i = 1; i < pointList.size(); i++) { Core.line(mat, pointList.get(i-1), pointList.get(i),new Scalar(255,255,0), 5); }

Viewing all articles
Browse latest Browse all 41027

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>