I also work on copyright protection project using DCT on opencv. I have a problem, I have a code in opencv2.4 and I want to chenage to 2.1, but I can't do it.
please help me
Mat colorImageROI= dct_logo(cv::Rect(dct_image.cols/2,dct_image.rows,dct_logo.cols,dct_logo.rows));
// obtain iterator at initial position.
Mat_::iterator srcIt = dct_logo.begin();
// obtain iterator at end position.
Mat_::iterator srcItend = dct_logo.end();
// obtain iterator at initial position.
Mat_::iterator dstIt = colorImageROI.begin();
// loop over relevant pixels;
for(;srcIt != srcItend; ++srcIt, ++dstIt)
{
//——————– process each channel separately.
for (unsigned char channel = 0; channel<3; ++channel)
{
(*dstIt)[channel] = (*srcIt)[channel];
}
}
I use this code for encoding image and it's emerege two image. for this porpose, Do you know of a better source?