From: dsarrut Date: Tue, 12 Jul 2011 06:14:17 +0000 (+0200) Subject: Add clitkAnd, SliceBySliceSetBackgroundFromSingleLine, FillRegionWithValue X-Git-Tag: v1.3.0~285 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=84ff07daacbb91868234c8759b107ef7e0da3ca6;p=clitk.git Add clitkAnd, SliceBySliceSetBackgroundFromSingleLine, FillRegionWithValue --- 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"