ITK  5.0.0
Insight Segmentation and Registration Toolkit
itkImageMaskSpatialObject.h
Go to the documentation of this file.
1 /*=========================================================================
2  *
3  * Copyright Insight Software Consortium
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0.txt
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  *=========================================================================*/
18 #ifndef itkImageMaskSpatialObject_h
19 #define itkImageMaskSpatialObject_h
20 
21 #include "itkImageSpatialObject.h"
23 
24 namespace itk
25 {
38 template< unsigned int TDimension = 3, typename TPixel = unsigned char >
39 class ITK_TEMPLATE_EXPORT ImageMaskSpatialObject:
40  public ImageSpatialObject< TDimension, TPixel >
41 {
42 public:
43  ITK_DISALLOW_COPY_AND_ASSIGN(ImageMaskSpatialObject);
44 
49 
50  using ScalarType = typename Superclass::ScalarType;
51  using PixelType = typename Superclass::PixelType;
52  using ImageType = typename Superclass::ImageType;
53  using ImagePointer = typename Superclass::ImagePointer;
54  using IndexType = typename Superclass::IndexType;
56  using SizeType = typename Superclass::SizeType;
57  using TransformType = typename Superclass::TransformType;
58  using PointType = typename Superclass::PointType;
59  using BoundingBoxType = typename Superclass::BoundingBoxType;
60  using InterpolatorType = typename Superclass::InterpolatorType;
61 
63 
65  itkNewMacro(Self);
66 
69 
71  bool IsInsideInObjectSpace(const PointType & point, unsigned int depth=0,
72  const std::string & name="") const override;
73 
77  bool ComputeMyBoundingBox() const override;
78 
79 protected:
81  ~ImageMaskSpatialObject() override = default;
82 
83  void PrintSelf(std::ostream & os, Indent indent) const override;
84 
85  typename LightObject::Pointer InternalClone() const override;
86 
87 };
88 } // end of namespace itk
89 
90 #ifndef ITK_MANUAL_INSTANTIATION
91 #include "itkImageMaskSpatialObject.hxx"
92 #endif
93 
94 #endif //itkImageMaskSpatialObject_h
Implementation of an image mask as spatial object.
typename Superclass::ScalarType ScalarType
typename Superclass::InterpolatorType InterpolatorType
typename Superclass::SizeType SizeType
typename Superclass::PointType PointType
typename Superclass::IndexType IndexType
typename Superclass::BoundingBoxType BoundingBoxType
typename Superclass::TransformType TransformType
Implementation of an image as spatial object.
typename Superclass::ImagePointer ImagePointer
typename Superclass::PixelType PixelType
Control indentation during Print() invocation.
Definition: itkIndent.h:49
typename Superclass::RegionType RegionType
typename Superclass::ImageType ImageType
Base class for most ITK classes.
Definition: itkObject.h:60
Multi-dimensional image iterator which only walks a region.
Base class for all data objects in ITK.