Hello, here I am adding my basic code. I want to give the path of the Image like that, but I cannot read the TIFF images. I am using C++. Here is the code:
#include "opencv2\imgproc\imgproc.hpp"
#include "opencv2\highgui\highgui.hpp"
#include
#include
using namespace cv; using namespace std;
int main( int argc, char** argv ) {
Mat src, src_gray, dst;
src = imread("D:\\Documents\\My\\Photos\\Project\\XXX.tiff"); if( !src.data ) { return -1; }
GaussianBlur( src,src, Size(3,3), 0, 0, BORDER_DEFAULT);
imshow( window_name, src );
waitKey(0);
return 0; }
Thank you for your help.
↧