Convert itkImageD2 to itkImageF2

Hi everyone !

I need to make a Hough Transform with itk, but when i use SetInput, i need a itkImageF2 or IF2 but my image is an itkImageD2, how can i convert to the good format ?


1 Like

You should use CastImageFilter.

Edit: example.

1 Like