Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Question about parameter of cv::calcBackProject( )

calcBackProject( const Mat* images, int nimages, const int* channels, const SparseMat& hist, OutputArray backProject, const float** ranges, double scale=1, bool uniform=true );

The 3rd parameter is: int* channels if do it in 1 channel, I know it is define as: int ch[1]={0}, now I want to do in 3 channels, how should I define it? int ch[3]={2} ? or int ch[3]={0,1,2}? or int ch[3]={2,1,0}?

Does anyone know it and Could you give me some tips? Thank you.

Question about parameter of cv::calcBackProject( )

calcBackProject( const Mat* images, int nimages, const int* channels, const SparseMat& hist, OutputArray backProject, const float** ranges, double scale=1, bool uniform=true );

The 3rd parameter is: int* channels channels

if do it in 1 channel, I know it is define as: int ch[1]={0}, now I want to do in 3 channels, how should I define it?

int ch[3]={2} ? or int ch[3]={0,1,2}? or int ch[3]={2,1,0}?

Does anyone know it and Could you give me some tips? Thank you.

Question about parameter of cv::calcBackProject( )

calcBackProject( const Mat* images, int nimages, const int* channels, const SparseMat& hist, OutputArray backProject, const float** ranges, double scale=1, bool uniform=true );

The 3rd parameter is: int* channelschannels.

if do it in 1 channel, I know it is define as: int ch[1]={0}, now I want to do in 3 channels, channels (input a RGB 3 channel color image), how should I define it?

int ch[3]={2} ? or int ch[3]={0,1,2}? or int ch[3]={2,1,0}? or int ch[3]={2,2,2}?

Does anyone know it and Could you give me some tips? Thank you.

Question about parameter of cv::calcBackProject( )

I am doing it as a part of mean-shift tracking.

calcBackProject( const Mat* images, int nimages, const int* channels, const SparseMat& hist, OutputArray backProject, const float** ranges, double scale=1, bool uniform=true );

The 3rd parameter is: int* channels.

if do it in 1 channel, I know it is define as: int ch[1]={0}, now I want to do in 3 channels (input a RGB 3 channel color image), how should I define it?

int ch[3]={2} ? or int ch[3]={0,1,2}? or int ch[3]={2,1,0}? or int ch[3]={2,2,2}?

Does anyone know it and Could you give me some tips? Thank you.