X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=packages%2Fitk%2Fsrc%2FbbitkBinaryThresholdImageFilter.h;h=bda1917b7d38b87db1aef7eea08384569258c25b;hb=160a7addf97aff527f10d0a1cddca2f068ee0034;hp=dcc7ecd627aed8e44e350455c230c35d2e15242f;hpb=29a64ec37c5dc46cc05277a4f7358a77026bfbda;p=bbtk.git diff --git a/packages/itk/src/bbitkBinaryThresholdImageFilter.h b/packages/itk/src/bbitkBinaryThresholdImageFilter.h index dcc7ecd..bda1917 100644 --- a/packages/itk/src/bbitkBinaryThresholdImageFilter.h +++ b/packages/itk/src/bbitkBinaryThresholdImageFilter.h @@ -210,16 +210,12 @@ namespace bbitk typedef BinaryThresholdImageFilter FilterType; typename FilterType::Pointer f = FilterType::New("Temp"); - typedef T* TPointer; - f->bbSetInputIn( this->bbGetInputIn().get < TPointer > () ); - f->bbSetInputLowerThreshold ( (typename T::PixelType) - this->bbGetInputLowerThreshold() ); - f->bbSetInputUpperThreshold ( (typename T::PixelType) - this->bbGetInputUpperThreshold() ); - f->bbSetInputInsideValue ( (typename T::PixelType) - this->bbGetInputInsideValue() ); - f->bbSetInputOutsideValue ( (typename T::PixelType) - this->bbGetInputOutsideValue() ); + typedef T* TPointer; + f->bbSetInputIn( this->bbGetInputIn().get < TPointer > () ); + f->bbSetInputLowerThreshold ( (typename T::PixelType)this->bbGetInputLowerThreshold() ); + f->bbSetInputUpperThreshold ( (typename T::PixelType)this->bbGetInputUpperThreshold() ); + f->bbSetInputInsideValue ( (typename T::PixelType)this->bbGetInputInsideValue() ); + f->bbSetInputOutsideValue ( (typename T::PixelType)this->bbGetInputOutsideValue() ); f->bbExecute(); f->bbGetOutputOut()->Register(); this->bbSetOutputOut( f->bbGetOutputOut() );