[Insight-users] DivideImageFilter and VectorImage
Luis Ibanez
luis.ibanez at kitware.com
Sat Dec 8 18:59:32 EST 2007
Hi Emmanuel,
Thanks for pointing this out.
We have now updated the NumericTraits for the VariableLengthVector,
and added a test for the DivideImageFilter using a VectorImage
divided by a scalar image:
http://www.itk.org/cgi-bin/viewcvs.cgi/Testing/Code/BasicFilters/itkDivideImageFilterTest2.cxx?rev=1.1&root=Insight&view=log
We are still having some quircks with Visual Studio 6.0 though...
(Ah!, the joy of VS6.0 ...)
Please give it a try and let us know if you find any problem.
Thanks
Luis
-------------------------
Emmanuel Christophe wrote:
> Hi all,
>
> I'm doing basic pixel operations between images (multiplication,
> addition, division etc.). All the MultiplyImageFilter, AddImageFilter,
> DivideImageFilter are very usefull for that.
>
> Most of these filters work well also when using VectorImage. So far,
> only the DivideImageFilter causes some problem.
>
> The issue with the DivideImageFilter instanciated over the VectorImage
> comes from the use of NumericTraits<TOutput>::max().
>
> In itkNumericTraitsVariableLengthVector.h the max() function are not
> defined. Would it be possible to define these functions for the
> VariableLengthVector to enable the DivideImageFilter to work?
>
> Otherwise, I could easily define a DivideVectorImageFilter but it
> would add one more class and remove the genericity of itk.
>
> Best regards,
> Emmanuel
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users
>
More information about the Insight-users
mailing list