Ask Your Question

Revision history [back]

That's not really an answer bu with this code I have got your result :

image.at<uchar>(0,0)=0; image.at<uchar>(1,1)=0; image.at<uchar>(0,1)=255; image.at<uchar>(1,0)=255; imshow("orignal",image); resize(image, image2, Size(256,256),0,0,INTER_LINEAR); imshow("resize", image2); waitKey();

May be you should check carrefully your parameter

image description

That's not really an answer bu with this code I have got your result :

image.at<uchar>(0,0)=0;
 image.at<uchar>(1,1)=0;
 image.at<uchar>(0,1)=255;
 image.at<uchar>(1,0)=255;
 imshow("orignal",image);
  resize(image, image2,  Size(256,256),0,0,INTER_LINEAR);
 imshow("resize", image2);
    waitKey();

waitKey();

May be you should check carrefully your parameter

image description