[Insight-users] a cast problem ?

Lagaffe lagaffe74130 at yahoo.fr
Thu Sep 29 16:17:17 EDT 2005


Hello again,

still trying to compile ;-)
Well, another problem ...
this is the line which was working before:
MahalanobisDistance->SetMean(meanAlgorithm[2]->GetOutput()->Get_vnl_vector());
and now ...
error: 'class itk::Array<double>' has no member named
'Get_vnl_vector'

meanAlgorithm is an Array of
itk::Statistics::MeanCalculator,
Any idea, why now I have a pb with Get_vnl_vector ?

thanks
arnaud

About my previous mail ... it seems that the problem
is due to an inconsistency with the use of "const" ...
but before it was compiling without problem ???
 
error: passing 'const itk::VariableSizeMatrix<double>'
as 'this' argument of 'void
itk::VariableSizeMatrix<T>::SetIdentity() [with T =
double]' discards qualifiers
it seems that discards qualifiers means:
discards qualifier

Example 
myfile.cpp: In function `int main()':
 myfile.cpp:20: passing `const DayOfYear' as `this'
argument of `void DayOfYear::Set(int, int)' discards
qualifiers
Meaning 
You have an inconsistency with the use of "const"
Usual Causes
A non-const member function is being invoked for a
const object
A const object is being passed as a non-const
parameter
A const member function calls a non-const member
function
See the CMSC 202 lecture notes on the use of const

=> thanks for help

arnaud


	

	
		
___________________________________________________________________________ 
Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger 
Téléchargez cette version sur http://fr.messenger.yahoo.com


More information about the Insight-users mailing list