[Insight-users] ImageType error

elhadj meljane elhadj.meljane at gmail.com
Mon Jul 26 04:37:21 EDT 2010


Hi all,


I get the error

error: conversion from 'itk::SmartPointer<itk::Image<float, 3u> > ()()' to
non-scalar type 'itk::SmartPointer<itk::Image<float, 3u> >' requested

at the line :


outImageType::Pointer outImage = outImageType::New;


what does this error mean!

Thank you





const     unsigned int   Dimension = 3;
typedef   unsigned char  PixelType;

 typedef itk::Image< PixelType, Dimension >   ImageType;
typedef itk::Image< ScalarPixelType, Dimension > MetricImageType;
typedef itk::ImageFileWriter< MetricImageType >     WriterType;

WriterType::Pointer writer = WriterType::New();


typedef float ScalarPixelType;

typedef itk::Image< ScalarPixelType, Dimension > outImageType;
outImageType::Pointer outImage = outImageType::New;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20100726/cdf0d38f/attachment.htm>


More information about the Insight-users mailing list