3
3
Program: Insight Segmentation & Registration Toolkit
4
4
Module: $RCSfile: itkPolylineMask2DImageFilter.h,v $
6
Date: $Date: 2006/03/22 16:26:44 $
7
Version: $Revision: 1.4 $
6
Date: $Date: 2008-01-20 18:00:40 $
7
Version: $Revision: 1.7 $
9
9
Copyright (c) Insight Software Consortium. All rights reserved.
10
10
See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details.
14
14
PURPOSE. See the above copyright notices for more information.
16
16
=========================================================================*/
17
#ifndef _itkPolylineMask2DImageFilter_h
18
#define _itkPolylineMask2DImageFilter_h
17
#ifndef __itkPolylineMask2DImageFilter_h
18
#define __itkPolylineMask2DImageFilter_h
20
20
#include "itkImageToImageFilter.h"
21
21
#include "itkImageRegionIteratorWithIndex.h"
33
33
* masked region will keep their original intensity values. Whereas, intensity
34
34
* value of pixels outside the masked region will be set to zero.
36
* \warning The Polygon represented by the input Polyline must be a convex polygon.
37
38
* \ingroup ImageToImageFilter
38
39
* \sa PolylineMaskImageFilter
45
46
/** Standard class typedefs. */
46
typedef PolylineMask2DImageFilter Self;
47
typedef ImageToImageFilter<TInputImage,TOutputImage> Superclass;
48
typedef SmartPointer<Self> Pointer;
49
typedef SmartPointer<const Self> ConstPointer;
47
typedef PolylineMask2DImageFilter Self;
48
typedef ImageToImageFilter<TInputImage,TOutputImage> Superclass;
49
typedef SmartPointer<Self> Pointer;
50
typedef SmartPointer<const Self> ConstPointer;
51
52
/** Method for creation through the object factory. */
61
62
TOutputImage::ImageDimension);
63
64
/** Some convenient typedefs for input image */
64
typedef TInputImage InputImageType;
65
typedef typename InputImageType::ConstPointer InputImagePointer;
66
typedef typename InputImageType::RegionType InputImageRegionType;
67
typedef typename InputImageType::PixelType InputImagePixelType;
65
typedef TInputImage InputImageType;
66
typedef typename InputImageType::ConstPointer InputImageConstPointer;
67
typedef typename InputImageType::Pointer InputImagePointer;
68
typedef typename InputImageType::RegionType InputImageRegionType;
69
typedef typename InputImageType::PixelType InputImagePixelType;
69
71
/* typedef for the polyline type */
70
72
typedef TPolyline PolylineType;
72
74
/* typedef for the output image */
73
typedef TOutputImage OutputImageType;
74
typedef typename OutputImageType::Pointer OutputImagePointer;
75
typedef TOutputImage OutputImageType;
76
typedef typename OutputImageType::Pointer OutputImagePointer;
75
77
typedef typename OutputImageType::RegionType OutputImageRegionType;
76
typedef typename OutputImageType::PixelType OutputImagePixelType;
78
typedef typename OutputImageType::PixelType OutputImagePixelType;
78
80
/** Read in image and polyline inputs */
79
81
void SetInput1( const InputImageType * image);
99
101
PolylineMask2DImageFilter();
100
102
virtual ~PolylineMask2DImageFilter() {};
101
void PrintSelf(std::ostream& os, Indent indent) const;
104
105
PolylineMask2DImageFilter(const Self&); //purposely not implemented