here is my function
int* Utilities::MatlabImresize(int* channel,int width, int height, double scale)
{
cv::Mat src(width, height, CV_32F);
for (int i = 0; i < width * height; ++i)
{
src.at<float>(i) = channel[i];
}
cv::Mat dst;
cv::resize(src, dst, cv::Size(), 0.5, 0.5,cv::INTER_CUBIC);
ofstream myfile;
myfile.open("C:\\Users\\gdarmon\\Desktop\\OpenCV_CR.txt");
myfile << dst;
myfile.close();
return NULL;
}
As discussed in my previous question imresize - trying to understand the bicubic interpolation
I have recompiled openCV with -0.5f
instead of -0.75f
however I still get different results although the input is the same, I guess i'm using resize() function wrong... can you please help?
the matlab code is just
Gr = imresize(Gr, 0,5);