[Insight-developers] itkCannyEdgeDetectionImageFilter
Luis Ibanez
luis.ibanez at kitware.com
Thu Apr 9 16:25:51 EDT 2009
Leila,
As Brad pointed out, this filter requires both the input and output
images to be of pixel type "float or double".
This requirement is enforced by the concept check macros in lines
229 to 232 of itkCannyEdgeDetectionImageFilter.h:
itkConceptMacro(InputIsFloatingPointCheck,
(Concept::IsFloatingPoint<InputImagePixelType>));
itkConceptMacro(OutputIsFloatingPointCheck,
(Concept::IsFloatingPoint<OutputImagePixelType>));
The same dimensionality requirement is also enforced by the
concept check in line 227.
Regards,
Luis
----------------------
Bradley Lowekamp wrote:
> The documentation says:
>
> * \par Inputs and Outputs
> * The input to this filter should be a scalar, real-valued Itk image of
> * arbitrary dimension. The output should also be a scalar, real-value Itk
> * image of the same dimensionality.
>
> and the ITK concept checking can enforce this too. This requirement is
> for the precession needed to perform the smoothing and edge detection.
> The CastImageFilter should be able to take care of any conversion need.
>
> This class should be able to take double too.
>
> Brad
>
> On Apr 9, 2009, at 12:01 PM, Leila Baghdadi wrote:
>
>> Hi guys,
>>
>> I was trying to use test this filter on my images and I noticed that it
>> does not allow any image type but float,
>>
>> just wondering if there is something set with this filter or I am making
>> a mistake
>>
>> thanks
>>
>> Leila
>>
>> _______________________________________________
>> Powered by www.kitware.com <http://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-developers
>
>
> ========================================================
>
> Bradley Lowekamp
>
> Lockheed Martin Contractor for
>
> Office of High Performance Computing and Communications
>
> National Library of Medicine
>
> blowekamp at mail.nih.gov <mailto:blowekamp at mail.nih.gov>
>
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> 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-developers
More information about the Insight-developers
mailing list