Ask Your Question

Revision history [back]

Unable to Read Tiff Images

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 <fstream>

include <iostream>

using namespace cv; using namespace std;

int main( int argc, char** argv ) {
// Variables Mat src, src_gray, dst;

// Image Acquisition src = imread( "D:\Documents\My\Photos\Project\XXX.tiff"); if( !src.data ) { return -1; }

/// Remove noise by blurring with a Gaussian filter GaussianBlur( src, src, Size(3,3), 0, 0, BORDER_DEFAULT );

imshow( window_name, abs_dst );

waitKey(0); return 0; }

Thank you for your help.

Unable to Read Tiff Images

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 <fstream>

include <iostream>

using namespace cv; using namespace std;

int main( int argc, char** argv ) {
// Variables Mat src, src_gray, dst;

// Image Acquisition src = imread( "D:\Documents\My\Photos\Project\XXX.tiff"); imread("D:\Documents\My\Photos\Project\XXX.tiff"); if( !src.data ) { return -1; }

/// Remove noise by blurring with a Gaussian filter GaussianBlur( src, src, src,src, Size(3,3), 0, 0, BORDER_DEFAULT );BORDER_DEFAULT);

imshow( window_name, abs_dst src );

waitKey(0); return 0; }

Thank you for your help.

Unable to Read Tiff Images

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 <fstream>

include <iostream>

using namespace cv; using namespace std;

int main( int argc, char** argv ) {
Mat src, src_gray, dst;

// Image Acquisition src = imread("D:\Documents\My\Photos\Project\XXX.tiff"); imread("D:\Documents\My\Photos\Project\XXX.tiff"); if( !src.data ) { return -1; }

/// Remove noise by blurring with a a Gaussian filter GaussianBlur( src,src, Size(3,3), 0, 0, BORDER_DEFAULT);

imshow( window_name, src );

waitKey(0); return 0; }

Thank you for your help.

Unable to Read Tiff Images

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 <fstream>

include <iostream>

using namespace cv; using namespace std;

int main( int argc, char** argv ) {

Mat src, src_gray, dst;

// Image Acquisition src = imread("D:\Documents\My\Photos\Project\XXX.tiff"); if( !src.data ) { return -1; }

/// Remove noise by blurring with a Gaussian filter } GaussianBlur( src,src, Size(3,3), 0, 0, BORDER_DEFAULT);

imshow( window_name, src );

waitKey(0); ); waitKey(0);
return 0; }

Thank you for your help.

Unable to Read Tiff Images

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\imgproc\imgproc.hpp"
#include "opencv2\highgui\highgui.hpp"
#include <fstream>
#include <iostream>
  

include "opencv2\highgui\highgui.hpp"

include <fstream>

include <iostream>

using namespace cv; using namespace std;

std;

int main( int argc, char** argv ) {

Mat src, src_gray, dst;

dst;

src = imread("D:\Documents\My\Photos\Project\XXX.tiff"); imread("D:\\Documents\\My\\Photos\\Project\\XXX.tiff"); if( !src.data ) { return -1; } GaussianBlur( src,src, Size(3,3), 0, 0, BORDER_DEFAULT);

BORDER_DEFAULT);

imshow( window_name, src ); waitKey(0);
return 0; }

}

Thank you for your help.

Unable to Read Tiff Images

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++. OpenCV 2.2 with Visual Studio 2010/C++. Here is the code:

#include "opencv2\imgproc\imgproc.hpp"
#include "opencv2\highgui\highgui.hpp"
#include <fstream>
#include <iostream>

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.