]> Creatis software - creaRigidRegistration.git/blobdiff - PackRecalage/src/bbPackRecalageTransform2DBox.cxx
*** empty log message ***
[creaRigidRegistration.git] / PackRecalage / src / bbPackRecalageTransform2DBox.cxx
index 788bca6532a0c86cd6518429553aab2b1070c182..72ee53b94b2550e19799e4c1b9a59b002f0b16e8 100644 (file)
@@ -7,7 +7,7 @@ BBTK_ADD_BLACK_BOX_TO_PACKAGE(PackRecalage,Transform2DBox)
 BBTK_BLACK_BOX_IMPLEMENTATION(Transform2DBox,bbtk::AtomicBlackBox);
 void Transform2DBox::Process()
 {
-               if(bbGetInputCenterPoint()[0] != NULL)
+       if(!bbGetInputCenterPoint().empty())
                {
                        //      The inputs are set in the library transformer
                        transformer->SetCenterPoint( bbGetInputCenterPoint() );
@@ -15,6 +15,7 @@ void Transform2DBox::Process()
                        transformer->SetScaleX( bbGetInputScaleX() );
                        transformer->SetScaleY( bbGetInputScaleY() );
                        transformer->SetScaleZ( bbGetInputScaleZ() );
+
                        // The calculation of the transformations are made
                        transformer->Run();
                        // We get the results of transformer and set it as result of this box
@@ -36,7 +37,7 @@ void Transform2DBox::bbUserSetDefaultValues()
                bbSetInputScaleX(100);
                bbSetInputScaleY(100);
                bbSetInputScaleZ(100);
-               bbSetOutputOut(NULL);   
+               bbSetOutputOut(NULL);           
   
 }
 void Transform2DBox::bbUserInitializeProcessing()
@@ -53,6 +54,4 @@ void Transform2DBox::bbUserFinalizeProcessing()
   
 }
 }
-// EO namespace bbPackRecalage
-
-
+// EO namespace bbPackRecalage
\ No newline at end of file