From ee6e2265e3b64772890634430d1dd6d060ce9b01 Mon Sep 17 00:00:00 2001 From: Eduardo DAVILA Date: Fri, 28 Jan 2022 15:45:09 +0100 Subject: [PATCH] #3480 bug ApplyMask --- bbtk_creaVtk_PKG/src/bbcreaVtkApplyMask.cxx | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/bbtk_creaVtk_PKG/src/bbcreaVtkApplyMask.cxx b/bbtk_creaVtk_PKG/src/bbcreaVtkApplyMask.cxx index 8d34691..03baf29 100644 --- a/bbtk_creaVtk_PKG/src/bbcreaVtkApplyMask.cxx +++ b/bbtk_creaVtk_PKG/src/bbcreaVtkApplyMask.cxx @@ -38,7 +38,7 @@ void ApplyMask::Process() int extMask[6]; vtkImageData *resultImage=NULL; bbGetInputImage()->GetExtent( extImage ); - bbGetInputImage()->GetExtent( extMask ); + bbGetInputMask()->GetExtent( extMask ); int dimXImage = extImage[1]-extImage[0]+1; int dimYImage = extImage[3]-extImage[2]+1; int dimZImage = extImage[5]-extImage[4]+1; @@ -133,7 +133,12 @@ if ( (k1omp==i) || (k2omp==i) || (k3omp==i) || } //if dim resultImage->Modified(); bbSetOutputOut( resultImage ); - } // if Image && Mask + } else { + if (bbGetInputType()==2) + { + bbSetOutputOut( bbGetInputImage() ); + } + }// if Image && Mask } //===== // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost) -- 2.47.1