Ask Your Question
1

To find available algorithms in your version of OPENCV?

asked 2016-05-20 03:00:23 -0600

new_to_linux gravatar image

updated 2016-05-20 03:06:11 -0600

hello everyone, i want to see available algorithms in my OPENCV version 2.4.1 for that i have written a code below

vector<string> algorithms;
Algorithm::getList(algorithms);
cout << "Algorithms: " << algorithms.size() << endl;
for (int i=0; i<algorithms.size(); i++)
{
  cout << algorithms[i] << endl;
}

and execute this program it give me following output ==>

Algorithms: 5

CLAHE

GeneralizedHough.POSITION

GeneralizedHough.POSITION_ROTATION

GeneralizedHough.POSITION_SCALE

GeneralizedHough.POSITION_SCALE_ROTATION

is this output is correct or is other any way to find out avaliable algorithm in opencv??

edit retag flag offensive close merge delete

Comments

i have doubt on output of program because for my information the available algorithm in OPENCV 2.4.1 is FaceRecognizer.Eigenfaces FaceRecognizer.Fisherfaces FaceRecognizer.LBPH

new_to_linux gravatar imagenew_to_linux ( 2016-05-20 03:08:50 -0600 )edit

Algorithms: 28

BackgroundSubtractor.GMG

BackgroundSubtractor.MOG

BackgroundSubtractor.MOG2

CLAHE

DenseOpticalFlow.DualTVL1

DescriptorMatcher.BFMatcher

DescriptorMatcher.FlannBasedMatcher

FaceRecognizer.Eigenfaces

FaceRecognizer.Fisherfaces

FaceRecognizer.LBPH

Feature2D.BRIEF

Feature2D.BRISK

Feature2D.Dense Feature2D.FAST

Feature2D.FASTX

Feature2D.FREAK

Feature2D.GFTT

Feature2D.Grid

Feature2D.HARRIS

Feature2D.MSER

Feature2D.ORB

Feature2D.STAR

Feature2D.SimpleBlob

GeneralizedHough.POSITION

GeneralizedHough.POSITION_ROTATION

GeneralizedHough.POSITION_SCALE

GeneralizedHough.POSITION_SCALE_ROTATION

StatModel.EM

new_to_linux gravatar imagenew_to_linux ( 2016-05-21 01:31:40 -0600 )edit

got the output

new_to_linux gravatar imagenew_to_linux ( 2016-05-21 01:31:51 -0600 )edit

2 answers

Sort by ยป oldest newest most voted
0

answered 2016-05-21 21:11:27 -0600

Hi,friend,do you know how to get the algorithms list for the OpenCV3.0.0? I code your sample above and do not find getList function in Algorithm class of OpenCV3.0.0 , thanks!

edit flag offensive delete link more

Comments

take a look at documentation

sturkmen gravatar imagesturkmen ( 2016-05-22 06:32:53 -0600 )edit
0

answered 2016-05-20 07:33:48 -0600

updated 2016-05-20 07:45:00 -0600

i tried your code with adding different header files and adding some code for calling functions from different headers then the output list has changed.

i think when an OpenCV DLL having an Algorithm loaded. it calls CV_INIT_ALGORITHM for each Algorithm and list of Algorithms updated.

if you have source code of OpenCV try to search CV_INIT_ALGORITHM on the whole code.

i get a list like below for OpenCV 2.4.13

BackgroundSubtractor.GMG
BackgroundSubtractor.MOG
BackgroundSubtractor.MOG2
DescriptorMatcher.BFMatcher
Feature2D.BRISK
Feature2D.BRIEF
DenseOpticalFlowExt.Brox_GPU
SuperResolution.BTVL1
SuperResolution.BTVL1_GPU
SuperResolution.BTVL1_OCL
CLAHE
CLAHE_GPU
CLAHE_OCL
Feature2D.Dense
DenseOpticalFlowExt.DualTVL1
DenseOpticalFlowExt.DualTVL1_GPU
DenseOpticalFlowExt.DualTVL1_OCL
FaceRecognizer.Eigenfaces
StatModel.EM
DenseOpticalFlowExt.Farneback
DenseOpticalFlowExt.Farneback_GPU
DenseOpticalFlowExt.FarneBack_OCL
Feature2D.FAST
Feature2D.FASTX
FaceRecognizer.Fisherfaces
DescriptorMatcher.FlannBasedMatcher
Feature2D.FREAK
Feature2D.GFTT
GeneralizedHough.POSITION
GeneralizedHough_GPU.POSITION
GeneralizedHough.POSITION_ROTATION
GeneralizedHough_GPU.POSITION_ROTATION
GeneralizedHough.POSITION_SCALE
GeneralizedHough_GPU.POSITION_SCALE
GeneralizedHough.POSITION_SCALE_ROTATION
GeneralizedHough_GPU.POSITION_SCALE_ROTATION
Feature2D.Grid
Feature2D.HARRIS
FaceRecognizer.LBPH
Feature2D.MSER
DenseOpticalFlow.DualTVL1
Feature2D.ORB
DenseOpticalFlowExt.PyrLK_GPU
DenseOpticalFlowExt.PyrLK_OCL
Feature2D.SIFT
DenseOpticalFlowExt.Simple
Feature2D.SimpleBlob
Feature2D.STAR
Feature2D.SURF
Feature2D.SURF_OCL
edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2016-05-20 03:00:23 -0600

Seen: 279 times

Last updated: May 20 '16