[Insight-users] ImageType error
elhadj meljane
elhadj.meljane at gmail.com
Mon Jul 26 04:39:39 EDT 2010
I fixed the problem
New();
instead of
New;
Thank you
On Mon, Jul 26, 2010 at 10:37 AM, elhadj meljane
<elhadj.meljane at gmail.com>wrote:
> 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/ab7189da/attachment.htm>
More information about the Insight-users
mailing list