Hi, I need to use calcBackProject and then display the exact number.
for ( int i = 0; i < backProj.rows; i++ )
{
for ( int j = 0; j < backProj.cols; j++ )
{
cout << int(backProj.at< uchar >( i, j )) << " ";
}
cout << endl;
}
But its max value is 255 because of "uchar". I tried to use
Mat backProj( slid_.rows, slid_.cols, CV_64FC1 );
and then display it
cout << backProj.at< double >( i, j );
but it does not work.
I really need the exact numbers which are bigger than 255. I don't want to scale it down or use normalize before. Can I make it by calcBackProject? Thank you.