[Insight-users] ITK Writer Error
Abayiz
abayiz at yahoo.com
Sun Apr 3 14:01:48 EDT 2011
Hello,
Just as the title indicates, I encountered an error with ITK writer. I found that when I let itk write the output as a file, it writes it in the inverse direction, i.e, if I try to just read and write an image doing nothing else, the result image is the inverse of the input image. What is this called? Is there any suggestions?
Here is the itk writer I used:
********************************
typedef itk::Image< float, 2 > ImageType;
typedef itk::ImageFileWriter < ImageType > WriterType;
WriterType::Pointer writer = WriterType::New();
writer->SetFileName(argv[2]);
writer->SetInput(output);
writer->Update();
*******************************
The full code is here:
http://www.vtk.org/Wiki/ITK/Examples/Functions/GuassianBlurImageFunction
Many thanks in advance!
More information about the Insight-users
mailing list