X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=registration%2FclitkShapedBLUTSpatioTemporalDeformableTransform.txx;h=7cc0107ec1a58facfdbe91ef6d72dfb9bbf641dd;hb=e751b47051ae80ecd388418ae39b388f15e627eb;hp=a5db85a10c61aebc96cde60414a7412dcd05aa17;hpb=7f7c290c75d4917446f8751856ae7d450f58a6f0;p=clitk.git diff --git a/registration/clitkShapedBLUTSpatioTemporalDeformableTransform.txx b/registration/clitkShapedBLUTSpatioTemporalDeformableTransform.txx index a5db85a..7cc0107 100644 --- a/registration/clitkShapedBLUTSpatioTemporalDeformableTransform.txx +++ b/registration/clitkShapedBLUTSpatioTemporalDeformableTransform.txx @@ -31,12 +31,7 @@ namespace clitk // Constructor with default arguments template - ShapedBLUTSpatioTemporalDeformableTransform -#if ITK_VERSION_MAJOR >= 4 - ::ShapedBLUTSpatioTemporalDeformableTransform():Superclass(0) -#else - ::ShapedBLUTSpatioTemporalDeformableTransform():Superclass(OutputDimension,0) -#endif + ShapedBLUTSpatioTemporalDeformableTransform::ShapedBLUTSpatioTemporalDeformableTransform():Superclass(0) { unsigned int i; @@ -383,11 +378,7 @@ namespace clitk // Get the number of parameters template -#if ITK_VERSION_MAJOR >= 4 typename ShapedBLUTSpatioTemporalDeformableTransform::NumberOfParametersType -#else - unsigned int -#endif ShapedBLUTSpatioTemporalDeformableTransform ::GetNumberOfParameters(void) const { @@ -810,19 +801,11 @@ namespace clitk //===================================== //JV Wrap jacobian into OutputDimension X Vectorial images //===================================== -#if ITK_VERSION_MAJOR >= 4 this->m_SharedDataBSplineJacobian.set_size( OutputDimension, this->GetNumberOfParameters() ); -#else - this->m_Jacobian.set_size( OutputDimension, this->GetNumberOfParameters() ); -#endif // Use memset to set the memory // JV four rows of three comps of parameters -#if ITK_VERSION_MAJOR >= 4 JacobianPixelType * jacobianDataPointer = reinterpret_cast(this->m_SharedDataBSplineJacobian.data_block()); -#else - JacobianPixelType * jacobianDataPointer = reinterpret_cast(this->m_Jacobian.data_block()); -#endif memset(jacobianDataPointer, 0, OutputDimension*numberOfPixels*sizeof(JacobianPixelType)); for (unsigned int j=0; j -#if ITK_VERSION_MAJOR >= 4 void ShapedBLUTSpatioTemporalDeformableTransform ::ComputeJacobianWithRespectToParameters( const InputPointType & point, JacobianType & jacobian) const -#else - const - typename ShapedBLUTSpatioTemporalDeformableTransform - ::JacobianType & - ShapedBLUTSpatioTemporalDeformableTransform - ::GetJacobian( const InputPointType & point ) const -#endif { //======================================================== @@ -2496,12 +2471,8 @@ namespace clitk if(m_Mask && !(m_Mask->IsInside(point) ) ) { // Outside: no (deformable) displacement -#if ITK_VERSION_MAJOR >= 4 jacobian = m_SharedDataBSplineJacobian; return; -#else - return this->m_Jacobian; -#endif } // Get index @@ -2511,12 +2482,8 @@ namespace clitk // we assume zero displacement and return the input point if ( !this->InsideValidRegion( m_Index ) ) { -#if ITK_VERSION_MAJOR >= 4 jacobian = m_SharedDataBSplineJacobian; return; -#else - return this->m_Jacobian; -#endif } // Compute interpolation weights @@ -2684,11 +2651,7 @@ namespace clitk } // Return the result -#if ITK_VERSION_MAJOR >= 4 jacobian = m_SharedDataBSplineJacobian; -#else - return this->m_Jacobian; -#endif }