~ubuntu-branches/ubuntu/precise/insighttoolkit/precise

« back to all changes in this revision

Viewing changes to Code/BasicFilters/itkPolylineMask2DImageFilter.h

  • Committer: Bazaar Package Importer
  • Author(s): Steve M. Robbins
  • Date: 2008-05-31 12:07:29 UTC
  • mfrom: (3.1.3 intrepid)
  • Revision ID: james.westby@ubuntu.com-20080531120729-7g7layn480le43ko
Tags: 3.6.0-3
* debian/patches/gccxml-workaround.patch: New.  Work around gccxml issue
  with #include_next; c.f. http://www.gccxml.org/Bug/view.php?id=7134.  
* debian/patches/gcc43.patch: include <cstring> in itkNeighbourhood.h.
  This only showed up in the tcl wrapping step.

* Above two entries fix FTBFS for GCC 4.3-based systems.
  Closes: #478500.

* debian/patches/sharedforward.patch: New.  Ensure that linux/sparc
  systems are not also configured as a SUN sparc system, which requires
  SUN header sys/isa_defs.h.  Closes: #478940, #483312.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
  Program:   Insight Segmentation & Registration Toolkit
4
4
  Module:    $RCSfile: itkPolylineMask2DImageFilter.h,v $
5
5
  Language:  C++
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 $
8
8
 
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.
15
15
 
16
16
=========================================================================*/
17
 
#ifndef _itkPolylineMask2DImageFilter_h
18
 
#define _itkPolylineMask2DImageFilter_h
 
17
#ifndef __itkPolylineMask2DImageFilter_h
 
18
#define __itkPolylineMask2DImageFilter_h
19
19
 
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.
35
35
 * 
 
36
 * \warning The Polygon represented by the input Polyline must be a convex polygon.
36
37
 * 
37
38
 * \ingroup ImageToImageFilter
38
39
 * \sa  PolylineMaskImageFilter
43
44
{
44
45
public:
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;
50
51
 
51
52
  /** Method for creation through the object factory. */
52
53
  itkNewMacro(Self);
61
62
                      TOutputImage::ImageDimension);
62
63
  
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; 
68
70
 
69
71
  /* typedef for the polyline type */
70
72
  typedef TPolyline    PolylineType;
71
73
  
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;
77
79
 
78
80
  /** Read in image and polyline inputs */
79
81
  void SetInput1( const InputImageType * image);
98
100
protected:
99
101
  PolylineMask2DImageFilter();
100
102
  virtual ~PolylineMask2DImageFilter() {};
101
 
  void PrintSelf(std::ostream& os, Indent indent) const;
102
103
 
103
104
private:
104
105
  PolylineMask2DImageFilter(const Self&); //purposely not implemented