converting cvMat to float

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

converting cvMat to float

opencv-users mailing list
hello freinds , please how can i convert a cvMat to float
 

 

 

 

 

 

 

 

 

 

 

Reply | Threaded
Open this post in threaded view
|

Re: converting cvMat to float

opencv-users mailing list
Mat charmat;
charmat.create(2,2,CV_8UC1);
Mat floatmat;
charmat.convertTo(charmat, CV_32F);

^^ converts an 8-bit char cv::Mat into a new 32-bit float cv::Mat. Is
that what you are looking to do?

-kaolin fire


On 9/29/15 7:52 AM, [hidden email] [OpenCV] wrote:

>
> hello freinds , please how can i convert a cvMat to float
>
>
>
>
>
>
>
>
>
>
>
>
>