X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=PackRecalage%2Fsrc%2FbbPackRecalageResampleBox.cxx;h=9350844d189e6e922e28e3982285fb363024d996;hb=de35484154f0fc838c0aa515db96994166bba17d;hp=3a5a7b8af0d792f6ed5119233185703e40052501;hpb=1b82b60c6337722f1a97bc8f7d6eadcc90352017;p=creaRigidRegistration.git diff --git a/PackRecalage/src/bbPackRecalageResampleBox.cxx b/PackRecalage/src/bbPackRecalageResampleBox.cxx index 3a5a7b8..9350844 100644 --- a/PackRecalage/src/bbPackRecalageResampleBox.cxx +++ b/PackRecalage/src/bbPackRecalageResampleBox.cxx @@ -3,8 +3,8 @@ namespace bbPackRecalage { -BBTK_ADD_BLACK_BOX_TO_PACKAGE(PackRecalage,ResampleBox) -BBTK_BLACK_BOX_IMPLEMENTATION(ResampleBox,bbtk::AtomicBlackBox); +BBTK_ADD_BLACK_BOX_TO_PACKAGE(PackRecalage, ResampleBox) +BBTK_BLACK_BOX_IMPLEMENTATION(ResampleBox, bbtk::AtomicBlackBox); void ResampleBox::Process() { if(bbGetInputIn() != NULL && bbGetInputFactor() != 0) @@ -24,20 +24,24 @@ void ResampleBox::Process() bbSetOutputOut(NULL); } } + void ResampleBox::bbUserSetDefaultValues() { bbSetInputIn(NULL); bbSetInputFactor(0); bbSetOutputOut(NULL); } + void ResampleBox::bbUserInitializeProcessing() { resample = vtkImageResample::New(); } + void ResampleBox::bbUserFinalizeProcessing() { resample->Delete(); } + } // EO namespace bbPackRecalage