Skip to content Skip to sidebar Skip to footer

Converting Org.opencv.core.point To Android.graphics.point

I want to put an icon at a particular point on the image bitmap. I got the point where to be icon to be placed by using OenCV. I could understand that org.opencv.core.Point is diff

Solution 1:

They're not from the same sources (at least, after you leave the Object specification), so there's no direct way to convert them. The best you should be able to do is

[after you have an org.opencv.core.Point named point already]

pt = new android.graphics.Point(point.x, point.y);

You could make that a return statement instead of an assignment and just make a method somewhere that just returns android.graphics.Point objects for you.

Post a Comment for "Converting Org.opencv.core.point To Android.graphics.point"