![]() |
Orfeo Toolbox
3.16
|
Represent the size (bounds) of a n-dimensional image. More...
#include <itkSize.h>
Inheritance diagram for itk::Size< VDimension >:Public Types | |
| typedef Size | Self |
| typedef Size< VDimension > | SizeType |
| typedef unsigned long | SizeValueType |
Public Member Functions | |
| void | Fill (SizeValueType value) |
| SizeValueType | GetElement (unsigned long element) const |
| const SizeValueType * | GetSize () const |
| bool | operator!= (const Self &vec) const |
| const Self | operator* (const Self &vec) const |
| const Self & | operator*= (const Self &vec) |
| const Self | operator+ (const Self &vec) const |
| const Self & | operator+= (const Self &vec) |
| const Self | operator- (const Self &vec) const |
| const Self & | operator-= (const Self &vec) |
| bool | operator== (const Self &vec) const |
| SizeValueType & | operator[] (unsigned int dim) |
| SizeValueType | operator[] (unsigned int dim) const |
| void | SetElement (unsigned long element, SizeValueType val) |
| void | SetSize (const SizeValueType val[VDimension]) |
Static Public Member Functions | |
| static unsigned int | GetSizeDimension (void) |
Public Attributes | |
| SizeValueType | m_Size [VDimension] |
Represent the size (bounds) of a n-dimensional image.
Size is a class to represent multi-dimensional array bounds, templated over the dimension. Insight assumes that the first element of Size is the fastest moving index.
For the sake of efficiency, Size does not define a default constructor, a copy constructor, or an operator=. We rely on the compiler to provide efficient bitwise copies.
Size is an "aggregate" class. Its data is public (m_Size) allowing for fast and convenient instantiations/assignments.
The following syntax for assigning a size is allowed/suggested: Size<3> size = {256, 256, 20};
| typedef unsigned long itk::Size< VDimension >::SizeValueType |
|
inline |
Set one value for the index in all dimensions. Useful for initializing an offset to zero.
Definition at line 177 of file itkSize.h.
Referenced by itk::BSplineDeformableTransform< TScalarType, NDimensions, VSplineOrder >::BSplineDeformableTransform(), itk::CannyEdgeDetectionImageFilter< TInputImage, TOutputImage >::CannyEdgeDetectionImageFilter(), otb::ImageWidgetBase< TPixel >::ClearBufferedRegion(), itk::Statistics::ScalarImageToGreyLevelRunLengthMatrixGenerator< TImageType, THistogramFrequencyContainer >::Compute(), itk::Statistics::ImageToCooccurrenceListAdaptor< TImage >::Compute(), itk::LabelPerimeterEstimationCalculator< TInputImage >::Compute(), itk::Statistics::ScalarImageToGreyLevelCooccurrenceMatrixGenerator< TImageType, THistogramFrequencyContainer >::Compute(), itk::VectorFuzzyConnectednessImageFilter< TInputImage, TOutputImage >::Compute_Scale(), itk::BinaryPruningImageFilter< TInputImage, TOutputImage >::ComputePruneImage(), itk::BinaryThinningImageFilter< TInputImage, TOutputImage >::ComputeThinImage(), itk::ConstNeighborhoodIterator< TImage, TBoundaryCondition >::ConstNeighborhoodIterator(), itk::HistogramMatchingImageFilter< TInputImage, TOutputImage, THistogramMeasurement >::ConstructHistogram(), itk::ImageIORegionAdaptor< VDimension >::Convert(), otb::ImageAlternateViewer< TPixel >::CreateAdditionalBuffer(), itk::BinaryCrossStructuringElement< TPixel, VDimension, TAllocator >::CreateStructuringElement(), otb::Curves2DWidget::Curves2DWidget(), otb::ImageRegionAdaptativeSplitter< VImageDimension >::EstimateSplitMap(), itk::WindowedSincInterpolateImageFunction< TInputImage, VRadius, TWindowFunction, TBoundaryCondition, TCoordRep >::EvaluateAtContinuousIndex(), otb::LocalHistogramImageFunction< TInputImage, TCoordRep >::EvaluateAtIndex(), itk::CannyEdgeDetectionImageFilter< TInputImage, TOutputImage >::FollowEdge(), otb::FullResolutionImageWidget< TPixel >::FullResolutionImageWidget(), itk::LaplacianOperator< TPixel, VDimension, TAllocator >::GenerateCoefficients(), otb::LocalRxDetectorNonThreadFilter< TInputImage, TOutputImage >::GenerateData(), otb::VectorizationPathListFilter< TInputModulus, TInputDirection, TOutputPath >::GenerateData(), itk::MorphologicalWatershedFromMarkersImageFilter< TInputImage, TLabelImage >::GenerateData(), itk::ActiveShapeModelCalculator< TImage >::GenerateData(), itk::FastChamferDistanceImageFilter< TInputImage, TOutputImage >::GenerateDataND(), otb::SparseUnmixingImageFilter< TInputImage, TOutputImage, VNbInputImage, TPrecision, TMotherWaveletOperator >::GenerateNumberOfComponentsRequired(), itk::BSplineScatteredDataPointSetToImageFilter< TInputPointSet, TOutputImage >::GenerateOutputImageFast(), otb::SpatialisationFilter< TLabelMap >::GenerateOutputInformation(), otb::ImageAlternateViewer< TPixel >::GetAdditionalBufferRegion(), otb::Rectangle< TValue >::GetBoundingRegion(), otb::ImageWidgetPointForm::GetRegion(), itk::ImageRegion< OutputImageType::ImageDimension >::ImageRegion(), itk::Statistics::ImageToHistogramGenerator< TImageType >::ImageToHistogramGenerator(), otb::ImageWidgetBase< TPixel >::ImageWidgetBase(), otb::ImageWidgetBoxForm::ImageWidgetBoxForm(), otb::ImageWidgetRectangleForm::ImageWidgetRectangleForm(), otb::ImageAlternateViewer< TPixel >::IncrementalOpenGlBufferUpdate(), otb::ImageAlternateViewer< TPixel >::Init(), itk::MattesMutualInformationImageToImageMetric< TFixedImage, TMovingImage >::Initialize(), itk::DeformableMesh3DFilter< TInputMesh, TOutputMesh >::Initialize(), itk::ShapedFloodFilledFunctionConditionalConstIterator< TImage, TFunction >::InitializeIterator(), otb::ListSampleToHistogramListGenerator< TListSample, THistogramMeasurement, TFrequencyContainer >::ListSampleToHistogramListGenerator(), otb::Functor::LHMI< itk::ConstNeighborhoodIterator< TInputImage1 >, itk::ConstNeighborhoodIterator< TInputImage2 >, TOutputImage::PixelType >::operator()(), itk::GaussianDerivativeImageFunction< TInputImage, TOutput >::RecomputeContinuousGaussianKernel(), itk::GaussianBlurImageFunction< TInputImage, TOutput >::RecomputeContinuousGaussianKernel(), itk::GaussianDerivativeImageFunction< TInputImage, TOutput >::RecomputeGaussianKernel(), itk::BSplineScatteredDataPointSetToImageFilter< TInputPointSet, TOutputImage >::RefineControlPointLattice(), otb::ImageWidgetBase< TPixel >::SetInput(), itk::WindowedSincInterpolateImageFunction< TInputImage, VRadius, TWindowFunction, TBoundaryCondition, TCoordRep >::SetInputImage(), itk::Statistics::ScalarImageToHistogramGenerator< TImageType >::SetNumberOfBins(), itk::ImageRegion< VImageDimension >::Slice(), itk::CannyEdgeDetectionImageFilter< TInputImage, TOutputImage >::ThreadedCompute2ndDerivative(), itk::CannyEdgeDetectionImageFilter< TInputImage, TOutputImage >::ThreadedCompute2ndDerivativePos(), otb::LocalRxDetectorFilter< TInputImage, TOutputImage >::ThreadedGenerateData(), otb::BinaryFunctorNeighborhoodVectorImageFilter< TInputImage1, TInputImage2, TOutputImage, TFunction >::ThreadedGenerateData(), itk::ZeroCrossingImageFilter< TInputImage, TOutputImage >::ThreadedGenerateData(), otb::BinaryFunctorNeighborhoodJoinHistogramImageFilter< TInputImage1, TInputImage2, TOutputImage, TFunction >::ThreadedGenerateData(), itk::GrayscaleGeodesicDilateImageFilter< TInputImage, TOutputImage >::ThreadedGenerateData(), itk::GrayscaleGeodesicErodeImageFilter< TInputImage, TOutputImage >::ThreadedGenerateData(), otb::SFSTexturesImageFilter< TInputImage, TOutputImage >::ThreadedGenerateData(), itk::BSplineScatteredDataPointSetToImageFilter< TInputPointSet, TOutputImage >::UpdatePointSet(), and itk::ImageSeriesWriter< TInputImage, TOutputImage >::WriteFiles().
|
inline |
Get an element of the Size. gets the value of one of the elements in the size This method is mainly intended to facilitate the access to elements from Tcl and Python where C++ notation is not very convenient.
|
inline |
Get the size. This provides a read only reference to the size.
Definition at line 149 of file itkSize.h.
Referenced by otb::VectorDataToImageFilter< TVectorData, TImage >::BeforeThreadedGenerateData(), otb::VectorDataToMapFilter< TVectorData, TImage >::BeforeThreadedGenerateData(), itk::SpatialObject< TDimension >::ComputeOffsetTable(), itk::ImageBase< VImageDimension >::ComputeOffsetTable(), itk::NCCRegistrationFunction< TFixedImage, TMovingImage, TDeformationField >::ComputeUpdate(), otb::NCCRegistrationFunction< TFixedImage, TMovingImage, TDeformationField >::ComputeUpdate(), otb::ImageToImageRCC8Calculator< TInputImage >::ConvertToBoolImage(), otb::BSplineDecompositionImageFilter< TInputImage, TOutputImage >::DataToCoefficientsND(), itk::BSplineDecompositionImageFilter< TInputImage, TOutputImage >::DataToCoefficientsND(), otb::ImageViewerFullWidget< TPixel, TLabel >::DefaultHandle(), itk::GaussianBlurImageFunction< TInputImage, TOutput >::EvaluateAtIndex(), itk::FFTWComplexToComplexImageFilter< float, NDimension >::GenerateData(), itk::DirectFourierReconstructionImageToImageFilter< TInputPixelType, TOutputPixelType >::GenerateData(), otb::LocalHoughFilter< TInputImage >::GenerateData(), itk::FFTWComplexToComplexImageFilter< double, NDimension >::GenerateData(), itk::BSplineScatteredDataPointSetToImageFilter< TInputPointSet, TOutputImage >::GenerateOutputImageFast(), itk::DirectFourierReconstructionImageToImageFilter< TInputPixelType, TOutputPixelType >::GenerateOutputInformation(), otb::ImportVectorImageFilter< TOutputImageType >::GenerateOutputInformation(), otb::ImageAlternateViewer< TPixel >::GetAdditionalBufferRegion(), itk::KLMRegionGrowImageFilter< TInputImage, TOutputImage >::GetLabelledImage(), itk::BalloonForceFilter< TInputMesh, TOutputMesh >::Initialize(), itk::DeformableMesh3DFilter< TInputMesh, TOutputMesh >::Initialize(), itk::DeformableSimplexMesh3DFilter< TInputMesh, TOutputMesh >::Initialize(), itk::ConstNeighborhoodIterator< TImage, TBoundaryCondition >::Initialize(), otb::LocalHoughFilter< TInputImage >::LinePointResearch(), main(), itk::NeighborhoodAlgorithm::CalculateOutputWrapOffsetModifiers< TImage >::operator()(), itk::SpatialObject< TDimension >::RequestedRegionIsOutsideOfTheBufferedRegion(), itk::ImageBase< VImageDimension >::RequestedRegionIsOutsideOfTheBufferedRegion(), otb::FixedSizeFullImageWidget< TPixel >::resize(), itk::ConstNeighborhoodIterator< TImage, TBoundaryCondition >::SetBound(), itk::BSplineDeformableTransform< TScalarType, NDimensions, VSplineOrder >::SetGridRegion(), otb::ZoomableImageWidget< TPixel >::SetZoomUpperLeftCorner(), itk::BSplineScatteredDataPointSetToImageFilter< TInputPointSet, TOutputImage >::UpdatePointSet(), itk::SpatialObject< TDimension >::VerifyRequestedRegion(), itk::ImageBase< VImageDimension >::VerifyRequestedRegion(), and otb::ImageWidgetBase< TPixel >::WindowToImageCoordinates().
|
inlinestatic |
|
inline |
|
inline |
|
inline |
Set an element of the Size. sets the value of one of the elements in the Size This method is mainly intended to facilitate the access to elements from Tcl and Python where C++ notation is not very convenient.
|
inline |
Set the size. Try to prototype this function so that val has to point to a block of memory that is the appropriate size.
Definition at line 154 of file itkSize.h.
Referenced by itk::FlatStructuringElement< VDimension >::Annulus(), itk::FlatStructuringElement< VDimension >::Ball(), itk::FlatStructuringElement< VDimension >::ComputeBufferFromLines(), itk::HistogramMatchingImageFilter< TInputImage, TOutputImage, THistogramMeasurement >::ConstructHistogram(), itk::GaussianBlurImageFunction< TInputImage, TOutput >::EvaluateAtIndex(), itk::fem::ImageMetricLoad< TMoving, TFixed >::Fe(), itk::DirectFourierReconstructionImageToImageFilter< TInputPixelType, TOutputPixelType >::GenerateData(), itk::GradientImageToBloxBoundaryPointImageFilter< TInputImage >::GenerateInputRequestedRegion(), otb::SpatialisationFilter< TLabelMap >::GenerateOutputInformation(), itk::HoughTransform2DLinesImageFilter< TInputPixelType, TOutputPixelType >::GenerateOutputInformation(), otb::HoughTransform2DLinesImageFilter< TInputPixelType, TOutputPixelType >::GenerateOutputInformation(), itk::Octree< TPixel, ColorTableSize, MappingFunctionType >::GetImage(), itk::fem::ImageMetricLoad< TMoving, TFixed >::GetMetric(), otb::ImageAlternateViewer< TPixel >::IncrementalOpenGlBufferUpdate(), itk::MattesMutualInformationImageToImageMetric< TFixedImage, TMovingImage >::Initialize(), itk::LabelStatisticsImageFilter< TInputImage, TLabelImage >::LabelStatistics::LabelStatistics(), otb::ImageAlternateViewer< TPixel >::resize(), and itk::BSplineDeformableTransform< TScalarType, NDimensions, VSplineOrder >::SetGridRegion().
| SizeValueType itk::Size< VDimension >::m_Size[VDimension] |
Size is an "aggregate" class. Its data is public (m_Size) allowing for fast and convenient instantiations/assignments.
The following syntax for assigning a size is allowed/suggested:
Size<3> size = {{256, 256, 20}};
The doubled braces {{ and }} are required to prevent `gcc -Wall' (and perhaps other compilers) from complaining about a partly bracketed initializer.
Definition at line 190 of file itkSize.h.
Referenced by itk::Size< Input1ImageType::ImageDimension >::Fill(), itk::Size< Input1ImageType::ImageDimension >::GetElement(), itk::Size< Input1ImageType::ImageDimension >::GetSize(), itk::Size< Input1ImageType::ImageDimension >::operator!=(), itk::Size< Input1ImageType::ImageDimension >::operator*(), itk::Index< itkGetStaticConstMacro(Dimension)>::operator*(), itk::Size< Input1ImageType::ImageDimension >::operator*=(), itk::Size< Input1ImageType::ImageDimension >::operator+(), itk::Size< Input1ImageType::ImageDimension >::operator+=(), itk::Size< Input1ImageType::ImageDimension >::operator-(), itk::Size< Input1ImageType::ImageDimension >::operator-=(), itk::Size< Input1ImageType::ImageDimension >::operator==(), itk::Size< Input1ImageType::ImageDimension >::operator[](), itk::Size< Input1ImageType::ImageDimension >::SetElement(), itk::Neighborhood< TPixel, VDimension, TAllocator >::SetRadius(), itk::Neighborhood< PixelType, itkGetStaticConstMacro(ImageDimension)>::SetRadius(), and itk::Size< Input1ImageType::ImageDimension >::SetSize().