Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Output pgm file not displaying correctly #84

Closed
kankasunanda opened this issue Sep 6, 2016 · 0 comments
Closed

Output pgm file not displaying correctly #84

kankasunanda opened this issue Sep 6, 2016 · 0 comments

Comments

@kankasunanda
Copy link

kankasunanda commented Sep 6, 2016

error image
Attached my error image and Below attached is my code. I am not getting correct images for disp1 and dips2...Please help me to get excat .pgm images

string f1="D:\UMKC_MS\NIU\DIP\Image\BARAL.pgm";
string f2="C:\Users\SUNANDA\Documents\Visual Studio 2012\Projects\DIP_log\DIP_log\w1.pgm";
cimg_library::CImg image1;
image1.load(f1.c_str());
cimg_library::CImgDisplay disp1(image1, "Input" );
cimg_library::CImg image2;
image2.load(f2.c_str());
cimg_library::CImgDisplay disp2(image2, "Output" );

//start event loop
while(true) {
//All the interactive code is inside the event loop
cimg_library::CImgDisplay::wait(disp1, disp2);
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants