You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to jav...@googlegroups.com
Hey there,
in openCV it is possible to change the type of a cv::Mat via
Mat::convertTo(...) now I am looking to this possibility in javaCV.
But on CvMat there isn't an operation convertTo. How can I convert the
type then?
Thanks!
Samuel Audet
unread,
Jul 28, 2012, 12:27:43 AM7/28/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to jav...@googlegroups.com
On 2012-07-31 02:20, Hans-Christian Sperker wrote:
> Hmm I would like to use the convertTo(...) like in
> http://find-object.googlecode.com/svn-history/r55/trunk/find_object/example/main.cpp >
> where it is used to convert some CvMat to CV_32F. See code:
>
> if(sceneDescriptors.type()!=CV_32F) {
> sceneDescriptors.convertTo(sceneData, CV_32F); // make sure it's CV_32F
> }
>
> How would I do this with cvConvertScale?
In almost the same way:
sceneData = CvMat.create(..., CV_32F, ...);
cvConvert(sceneDescriptors, sceneData);
Hans-Christian Sperker
unread,
Aug 3, 2012, 9:57:21 AM8/3/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message