Ask Your Question
2

Boounding Rect float return

asked 2016-10-24 04:38:53 -0600

TiBe gravatar image

Hello,

is it possible to get float or double values from bounding rect? I would like to triangulate them and for that I need the exact values and no int.

Thanks for your help.

edit retag flag offensive close merge delete

Comments

1

Unfortunately that's not possible using BoundingRect because Rect is

typedef Rect_<int> Rect2i;
typedef Rect2i Rect;

and some values are rounding.

LBerger gravatar imageLBerger ( 2016-10-24 06:43:06 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2016-10-24 08:17:10 -0600

Why not use the rotatedRect which gives you floating point approximations for a set of points.

edit flag offensive delete link more

Comments

thanks for your help

TiBe gravatar imageTiBe ( 2016-10-26 00:27:42 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2016-10-24 04:38:53 -0600

Seen: 1,551 times

Last updated: Oct 24 '16