Hi all, <br><br><br>I get the error <br><br>error: conversion from 'itk::SmartPointer<itk::Image<float, 3u> > ()()' to non-scalar type 'itk::SmartPointer<itk::Image<float, 3u> >' requested<br>
<br>at the line : <br><br><br>outImageType::Pointer outImage = outImageType::New;<br><br><br>what does this error mean! <br><br>Thank you<br><br><br><br><br><br>const unsigned int Dimension = 3;<br>typedef unsigned char PixelType;<br>
<br> typedef itk::Image< PixelType, Dimension > ImageType;<br> typedef itk::Image< ScalarPixelType, Dimension > MetricImageType;<br> typedef itk::ImageFileWriter< MetricImageType > WriterType;<br><br>
WriterType::Pointer writer = WriterType::New();<br><br><br>typedef float ScalarPixelType;<br><br>typedef itk::Image< ScalarPixelType, Dimension > outImageType;<br>outImageType::Pointer outImage = outImageType::New;<br>