<br>I fixed the problem <br>New();<br>instead of <br><br>New; <br><br>Thank you <br><br><div class="gmail_quote">On Mon, Jul 26, 2010 at 10:37 AM, elhadj meljane <span dir="ltr"><<a href="mailto:elhadj.meljane@gmail.com">elhadj.meljane@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">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>
</blockquote></div><br>