Ask Your Question
0

cvGetSpatialMoment JAVA equivalent

asked 2013-01-07 22:28:39 -0500

this post is marked as community wiki

This post is a wiki. Anyone with karma >50 is welcome to improve it.

Can anyone pls tell me the JAVA equivalent keyword for "cvGetSpatialMoment" ...I m developing in Android...and i need to find moments of a thresholded image....

Thank u :)

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2013-01-08 08:29:16 -0500

this post is marked as community wiki

This post is a wiki. Anyone with karma >50 is welcome to improve it.

cvGetSpatialMoment function is legacy OpenCV 1.x C function and is not wrapped in Java. It is very simple, so you can wrap it manually with JNI or reimplement in Java using Imgproc.HuMoments results (Imgproc.HuMoments() allows you to calculate 7 Hu moments). You can find C implementation of this function in modules/imgproc/src/moments.cpp:506.

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

Stats

Asked: 2013-01-07 22:28:39 -0500

Seen: 491 times

Last updated: Jan 08 '13