Creating Polylines from a set of 2D Points and then resizing the Image to be of size 32x32

asked 2018-11-13 11:13:11 -0600

Hi,

I have a set of 2D Points (the points are in decimals (i.e. double format)) I want to do the following using openCv in C++

1)Create a line for every successive 2D Points. 2) The geometrical entity needs to be in white color and the image background in Black 3) Finally, the image size should be around 32x32.

As all of my 2D Points are in decimals, I would like to know,if I need to scale my 2D Points to Image coordinates

(or)

Can I create the Image with my polyline,created from Decimal coordinates and then finally resize the size of my image to 32x32.

I would be glad,if someone can help me in this context.

edit retag flag offensive close merge delete