From 84ff07daacbb91868234c8759b107ef7e0da3ca6 Mon Sep 17 00:00:00 2001 From: dsarrut Date: Tue, 12 Jul 2011 08:14:17 +0200 Subject: [PATCH 1/1] Add clitkAnd, SliceBySliceSetBackgroundFromSingleLine, FillRegionWithValue --- itk/clitkSegmentationUtils.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/itk/clitkSegmentationUtils.h b/itk/clitkSegmentationUtils.h index 7daf3c8..85f2591 100644 --- a/itk/clitkSegmentationUtils.h +++ b/itk/clitkSegmentationUtils.h @@ -359,6 +359,10 @@ namespace clitk { void AndNot(ImageType * input, const ImageType * object, typename ImageType::PixelType BG=0); + template + void And(ImageType * input, + const ImageType * object, + typename ImageType::PixelType BG=0); //-------------------------------------------------------------------- @@ -430,6 +434,23 @@ namespace clitk { //-------------------------------------------------------------------- + //-------------------------------------------------------------------- + template + typename ImageType::Pointer + SliceBySliceSetBackgroundFromSingleLine(const ImageType * input, + typename ImageType::PixelType BG, + typename ImageType::PointType & A, + typename ImageType::PointType & B, + int dim1, int dim2, bool removeLowerPartFlag); + //-------------------------------------------------------------------- + + + //-------------------------------------------------------------------- + template + void + FillRegionWithValue(ImageType * input, typename ImageType::PixelType value, typename ImageType::RegionType & region); + //-------------------------------------------------------------------- + } #include "clitkSegmentationUtils.txx" -- 2.45.2