First time here? Check out the FAQ!

Ask Your Question
0

cvGetSpatialMoment JAVA equivalent

asked Jan 8 '13

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 :)

Preview: (hide)

1 answer

Sort by » oldest newest most voted
0

answered Jan 8 '13

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.

Preview: (hide)

Question Tools

Stats

Asked: Jan 8 '13

Seen: 1,140 times

Last updated: Jan 08 '13