Positioning putText() with floating-point
I am trying to create some debugging text on my image (CV_32FC3). I am working with Vec3f
, hence i need to position with floats aswell. Is there a way to define the Point
with floats instead of ints?
wait, the pixel format has got nothing to do with format of the coords
also, for visualizing, you probably want to convert(and scale) your float 3chan img to bgr, before applying puttext or similar
In that case i have understood its use. How can i position the text string? Although i will keep the conversion in mind..
just Point(20,20) or such
But i cannot position in floats, as i do with image.at<cv::Vec3f>() ?
img.at<type>(int r, int c); // <-- whatever 'type' is, r and c will be integers
why do you feel the need for doing so ? images are rasters with integral coords. full-stop.