Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to calculate text dimensions for anti-aliased linetype?

I know how to obtain the dimensions of the text using cv::getTextSize(), but this only works correctly for non-antialiased linetypes (default=8 and 4).

When using CV_AA (linetype=16) the text is partially outside the size defined by cv::getTextSize().

How to calculate text dimensions for anti-aliased linetype?

I know how to obtain the dimensions of the text using cv::getTextSize(), but this only works correctly for non-antialiased linetypes (default=8 and 4).

When using CV_AA (linetype=16) the text is partially outside the size defined by cv::getTextSize().

Edit: Should I file an issue for this on GitHub? For now I've decided to not use a anti-aliased linetype.