+ //--------------------------------------------------------------------
+ template<class MaskImageType>
+ typename MaskImageType::Pointer
+ SliceBySliceRelativePosition(const MaskImageType * input,
+ const MaskImageType * object,
+ int direction,
+ double threshold,
+ std::string orientation,
+ bool uniqueConnectedComponent=false,
+ double spacing=-1,
+ bool notflag=false);
+
+ //--------------------------------------------------------------------
+ // In a binary image, search for the point belonging to the FG that
+ // is the most exterma in the direction 'direction' (or in the
+ // opposite if notFlag is given). if 'point' and 'distanceMax' are
+ // given, do not consider points that are away from 'point' more
+ // than 'distanceMax'
+ template<class SliceType>
+ typename SliceType::PointType
+ FindExtremaPointInAGivenDirection(const SliceType * input,
+ typename SliceType::PixelType bg,
+ int direction,
+ bool notFlag,
+ typename SliceType::PointType point,
+ double distanceMax);
+
+ //--------------------------------------------------------------------
+
+ //--------------------------------------------------------------------
+ template<class ImageType>
+ typename ImageType::Pointer
+ CropImageAlongOneAxis(typename ImageType::Pointer image,
+ int dim, double min, double max,
+ bool autoCrop = false,
+ typename ImageType::PixelType BG=0);
+ //--------------------------------------------------------------------