<div>I recently switched to ITK 3.2 while waiting for some problems with master to be resolved. With this very simple example, 3.2 seems to produce an all black image, where I would expect the output to be the same as the input (at least the first channel). There are no errors or warnings. Are there any known problems with this?</div>
<div><br></div><div>#include "itkImage.h"</div><div>#include "itkImageFileReader.h"</div><div>#include "itkImageFileWriter.h"</div><div><br></div><div>int main(int argc, char *argv[])</div><div>
{</div><div> if(argc < 2)</div><div> {</div><div> std::cerr << "Required: filename" << std::endl;</div><div><br></div><div> return EXIT_FAILURE;</div><div> }</div><div> std::string inputFilename = argv[1];</div>
<div><br></div><div> typedef itk::Image< unsigned char, 2 > ImageType;</div><div><br></div><div> typedef itk::ImageFileReader<ImageType> ReaderType;</div><div> ReaderType::Pointer reader = ReaderType::New();</div>
<div> reader->SetFileName(inputFilename.c_str());</div><div> reader->Update();</div><div><br></div><div> typedef itk::ImageFileWriter<ImageType> WriterType;</div><div> WriterType::Pointer writer = WriterType::New();</div>
<div> writer->SetInput(reader->GetOutput());</div><div> writer->SetFileName("output.png");</div><div> writer->Update();</div><div><br></div><div> return EXIT_SUCCESS;</div><div>}</div><div><br></div>
Thanks,<br><br>David<br>