MantisBT - ITK
View Issue Details
0005752ITKpublic2007-09-19 15:132007-09-19 18:51
Luis Ibanez 
Luis Ibanez 
highmajoralways
closedfixed 
 
 
0005752: ValueType trait is incorrectly defined in Vector, RGB and Tensor Traits
The trait ValueType was intended to be defined as the type of the scalar component of a vector type.

In a scalar type, the trait ValueType is expected to be defined as the Self type.
In a vector type, the trait ValueType is expected to be defined as the type of the scalar component of the vector.

For example

NumericTrait<double>::ValueType ===> double
NumericTrait< Vector<double, 3 > >::ValueType =====> double
No tags attached.
related to 0000221closed Luis Ibanez Allow basic image processing filter to take any input type 
Issue History
2007-09-19 15:13Luis IbanezNew Issue
2007-09-19 15:17Luis IbanezStatusnew => assigned
2007-09-19 15:17Luis IbanezAssigned To => Luis Ibanez
2007-09-19 15:20Luis IbanezNote Added: 0009158
2007-09-19 15:20Luis IbanezRelationship addedrelated to 0000221
2007-09-19 18:45Luis IbanezNote Added: 0009172
2007-09-19 18:51Luis IbanezStatusassigned => closed
2007-09-19 18:51Luis IbanezNote Added: 0009174
2007-09-19 18:51Luis IbanezResolutionopen => fixed

Notes
(0009158)
Luis Ibanez   
2007-09-19 15:20   
This must be fixed first,
in order to solve the ConceptChecking issues with FiniteDifferenceImageFilter (Bug 221)
because some of the classes deriving from this filter use Scalar images as input, while some other derived classes use Vector image as input.
(0009172)
Luis Ibanez   
2007-09-19 18:45   
The fix has been committed:
http://www.itk.org/cgi-bin/viewcvs.cgi/Code/Common/itkNumericTraitsVectorPixel.h?root=Insight&sortby=date&r2=1.8&r1=1.7 [^]
http://www.itk.org/cgi-bin/viewcvs.cgi/Code/Common/itkNumericTraitsVariableLengthVectorPixel.h?root=Insight&sortby=date&r2=1.3&r1=1.2 [^]
http://www.itk.org/cgi-bin/viewcvs.cgi/Code/Common/itkNumericTraitsTensorPixel.h?root=Insight&sortby=date&r2=1.8&r1=1.7 [^]
http://www.itk.org/cgi-bin/viewcvs.cgi/Code/Common/itkNumericTraitsCovariantVectorPixel.h?root=Insight&sortby=date&r2=1.3&r1=1.2 [^]
http://www.itk.org/cgi-bin/viewcvs.cgi/Code/Common/itkNumericTraitsRGBPixel.h?root=Insight&sortby=date&r2=1.11&r1=1.10 [^]
(0009174)
Luis Ibanez   
2007-09-19 18:51   
The fix was committed,
and Experimental build was submitted from Zion.