[Insight-users] Error: itkVTKImageImport

Bill Lorensen bill.lorensen at gmail.com
Fri Mar 20 21:17:56 EDT 2009


A few more lines of you code would help.

On Fri, Mar 20, 2009 at 3:57 PM,  <firat.sarialtun at boun.edu.tr> wrote:
>
>
>
> Hi. I have been trying to implement GeodesicActiveContourLevelSetImageFilter in
> ITK for the purposeof Liver Segmentation. I modified the code in order to take
> a VTK image as input, convert it into ITK image, process it with the filter,
> then reconvert the segmented image into VTK image again. But i have faced with
> the problem below. by the way I use the type float for all input variables.
>
>
> Exception caught !
>
> itk::ExceptionObject (0x94b9fd8)
> Location: "void itk::VTKImageImport<TOutputImage>::GenerateOutputInformation()
> [with TOutputImage = itk::Image<float, 2u>]"
> File: /usr/local/ITK/ITK/Code/BasicFilters/itkVTKImageImport.txx
> Line: 251
> Description: itk::ERROR: VTKImageImport(0x948c9e8): Input scalar type is double
> but should be float
>
>
>
> Max. no. iterations: 800
> Max. RMS error: 0.02
>
> No. elpased iterations: 0
> RMS change: 0
> Done!
>
> _____________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the ITK FAQ at: http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-users
>


More information about the Insight-users mailing list