[Insight-users] output of filter, image filled with zeros
Luis Ibanez
luis.ibanez@kitware.com
Fri, 29 Nov 2002 16:30:25 -0500
Hi Ghassan,
Yeap,
It seems that the GradientMagnitude filter is
not supporting different types for input and
output. This is something to fix...
You can also try the
GradientMagnitudeRecursiveGaussianImageFilter:
http://www.itk.org/Insight/Doxygen/html/classitk_1_1GradientMagnitudeRecursiveGaussianImageFilter.html
Which should accept different types for input
and output.
It computes the magnitude of the gradient using
IIR filter
Luis
=========================
Ghassan Hamarneh wrote:
> Thanks Luis,
>
> I am not able to create a uint-to-float filter as you wrote. It seems that the
> filter output and input must be the same type. But I got the idea and created
> this pipeline, which works fine:
>
> reader(uint)
> ->rescaler(uint2float)
> ->filter(float2float)
> ->rescaler2(float2uint)
> ->writer(uint)
>
> Thanks,
>
> /Ghassan
>
> --------------------------
>
>