#define __CPEXTENSIONS__ALGORITHMS__SPATIALOBJECTMASKIMAGEFILTER__H__
#include <itkConceptChecking.h>
-#include <itkInPlaceImageFilter.h>
+#include <itkImageToImageFilter.h>
#include <itkSpatialObject.h>
namespace cpExtensions
*/
template< class I, class O = I >
class SpatialObjectMaskImageFilter
- : public itk::InPlaceImageFilter< I, O >
+ : public itk::ImageToImageFilter< I, O >
{
public:
typedef SpatialObjectMaskImageFilter Self;
- typedef itk::InPlaceImageFilter< I, O > Superclass;
+ typedef itk::ImageToImageFilter< I, O > Superclass;
typedef itk::SmartPointer< Self > Pointer;
typedef itk::SmartPointer< const Self > ConstPointer;
itkStaticConstMacro( OutputDimension, unsigned int, O::ImageDimension );
#ifdef ITK_USE_CONCEPT_CHECKING
- // Begin concept checking
itkConceptMacro(
SameDimensionCheck1,
( itk::Concept::SameDimension< InputDimension, OutputDimension > )
);
- // End concept checking
#endif
typedef typename I::RegionType TRegion;
public:
itkNewMacro( Self );
- itkTypeMacro( SpatialObjectMaskImageFilter, itk::InPlaceImageFilter );
+ itkTypeMacro( SpatialObjectMaskImageFilter, itk::ImageToImageFilter );
itkGetObjectMacro( SpatialObject, TSpatialObject );
itkGetConstObjectMacro( SpatialObject, TSpatialObject );
itkSetObjectMacro( SpatialObject, TSpatialObject );
itkSetMacro( OutsideValue, TOutPixel );
+ public:
+ O* GetPositiveOutput( );
+ const O* GetPositiveOutput( ) const;
+ O* GetNegativeOutput( );
+ const O* GetNegativeOutput( ) const;
+
protected:
SpatialObjectMaskImageFilter( );
virtual ~SpatialObjectMaskImageFilter( );