Ask Your Question
0

what means this function :cvTermCriteria()?

asked 2014-09-13 06:28:22 -0500

I want to write a eigenface program using C++ with OpenCV but i don't know how to work this function cvTermCriteria();and i wish anybody help me for understand this function and this is portion of code where use this function:

CvTermCriteria calcLimit;

// set the PCA termination criterion

calcLimit = cvTermCriteria( CV_TERMCRIT_ITER, 3, 1);

i wish a clear example for explain how to use this function

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2014-09-13 06:47:15 -0500

The documentation is here: http://docs.opencv.org/modules/core/doc/basic_structures.html#termcriteria

Are you sure that your constructor is well formed? As fas as I read, your algorithm would end after 3 iterations. Since you only use CV_TERMCRIT_ITER, the 1 is ignored. (The second parameter would be the minimal accuracy needed before terminating).

edit flag offensive delete link more

Comments

could you give me a simple example which explain how to use this function

amine05 gravatar imageamine05 ( 2014-09-13 07:24:16 -0500 )edit
Login/Signup to Answer

Question Tools

Stats

Asked: 2014-09-13 06:28:22 -0500

Seen: 116 times

Last updated: Sep 13 '14