OTB
9.0.0
Orfeo Toolbox
|
#include <otbImageRegionTileMapSplitter.h>
Public Types | |
typedef itk::SmartPointer< const Self > | ConstPointer |
typedef itk::Index< VImageDimension > | IndexType |
typedef IndexType::IndexValueType | IndexValueType |
typedef itk::SmartPointer< Self > | Pointer |
typedef itk::ImageRegion< VImageDimension > | RegionType |
typedef ImageRegionTileMapSplitter | Self |
typedef itk::Size< VImageDimension > | SizeType |
typedef SizeType::SizeValueType | SizeValueType |
typedef itk::ImageRegionSplitter< VImageDimension > | Superclass |
Public Member Functions | |
virtual ::itk::LightObject::Pointer | CreateAnother (void) const |
virtual const char * | GetNameOfClass () const |
Static Public Member Functions | |
static unsigned int | GetImageDimension () |
static Pointer | New () |
Static Public Attributes | |
static const unsigned int | ImageDimension = VImageDimension |
Protected Member Functions | |
ImageRegionTileMapSplitter () | |
~ImageRegionTileMapSplitter () override | |
Private Member Functions | |
ImageRegionTileMapSplitter (const ImageRegionTileMapSplitter &)=delete | |
void | operator= (const ImageRegionTileMapSplitter &)=delete |
Private Attributes | |
unsigned int | m_AlignStep |
unsigned int | m_SplitsPerDimension [VImageDimension] |
unsigned int | GetNumberOfSplits (const RegionType ®ion, unsigned int requestedNumber) override |
RegionType | GetSplit (unsigned int i, unsigned int numberOfPieces, const RegionType ®ion) override |
void | PrintSelf (std::ostream &os, itk::Indent indent) const override |
Divide a region into several pieces.
ImageRegionTileMapSplitter divides an ImageRegion into smaller regions. ImageRegionTileMapSplitter is used by the StreamingImageFilter to divide a requested output region into a series of smaller requests of the pipeline. This object has two basic methods: GetNumberOfSplits() and GetSplit().
GetNumberOfSplits() is used to determine how may subregions a given region can be divided. You call GetNumberOfSplits with an argument that is the number of subregions you want. If the image region can support that number of subregions, that number is returned. Otherwise, the maximum number of splits a region can support will be returned. For example, if a region splitter class only divides a region into horizontal slabs, then the maximum number of splits will be the number of rows in the region.
GetSplit() returns the ith of N subregions (as an ImageRegion object).
This ImageRegionTileMapSplitter class divides a region along the outermost dimension. If the outermost dimension has size 1 (i.e. a volume with a single slice), the ImageRegionTileMapSplitter will divide the region along the next outermost dimension. If that dimension has size 1, the process continues with the next outermost dimension.
Regions obtained by the ImageRegionTileMapSplitter are aligned on a grid with width of 256. Divisions can occur only at line defined as k*256.
Other ImageRegionTileMapSplitter subclasses could divide an image into more uniform shaped regions instead of slabs.
Definition at line 75 of file otbImageRegionTileMapSplitter.h.
typedef itk::SmartPointer<const Self> otb::ImageRegionTileMapSplitter< VImageDimension >::ConstPointer |
Definition at line 82 of file otbImageRegionTileMapSplitter.h.
typedef itk::Index<VImageDimension> otb::ImageRegionTileMapSplitter< VImageDimension >::IndexType |
Index typedef support. An index is used to access pixel values.
Definition at line 100 of file otbImageRegionTileMapSplitter.h.
typedef IndexType::IndexValueType otb::ImageRegionTileMapSplitter< VImageDimension >::IndexValueType |
Definition at line 101 of file otbImageRegionTileMapSplitter.h.
typedef itk::SmartPointer<Self> otb::ImageRegionTileMapSplitter< VImageDimension >::Pointer |
Definition at line 81 of file otbImageRegionTileMapSplitter.h.
typedef itk::ImageRegion<VImageDimension> otb::ImageRegionTileMapSplitter< VImageDimension >::RegionType |
Region typedef support.
Definition at line 108 of file otbImageRegionTileMapSplitter.h.
typedef ImageRegionTileMapSplitter otb::ImageRegionTileMapSplitter< VImageDimension >::Self |
Standard class typedefs.
Definition at line 79 of file otbImageRegionTileMapSplitter.h.
typedef itk::Size<VImageDimension> otb::ImageRegionTileMapSplitter< VImageDimension >::SizeType |
Size typedef support. A size is used to define region bounds.
Definition at line 104 of file otbImageRegionTileMapSplitter.h.
typedef SizeType::SizeValueType otb::ImageRegionTileMapSplitter< VImageDimension >::SizeValueType |
Definition at line 105 of file otbImageRegionTileMapSplitter.h.
typedef itk::ImageRegionSplitter<VImageDimension> otb::ImageRegionTileMapSplitter< VImageDimension >::Superclass |
Definition at line 80 of file otbImageRegionTileMapSplitter.h.
|
inlineprotected |
Definition at line 124 of file otbImageRegionTileMapSplitter.h.
|
inlineoverrideprotected |
Definition at line 127 of file otbImageRegionTileMapSplitter.h.
|
privatedelete |
virtual::itk::LightObject::Pointer otb::ImageRegionTileMapSplitter< VImageDimension >::CreateAnother | ( | void | ) | const |
|
inlinestatic |
Dimension of the image available at run time.
Definition at line 94 of file otbImageRegionTileMapSplitter.h.
|
virtual |
Run-time type information (and related methods).
|
override |
How many pieces can the specified region be split? A given region cannot always be divided into the requested number of pieces. For instance, if the numberOfPieces exceeds the number of pixels along a certain dimensions, then some splits will not be possible. This method returns a number less than or equal to the requested number of pieces.
Definition at line 35 of file otbImageRegionTileMapSplitter.hxx.
|
override |
Get a region definition that represents the ith piece a specified region. The "numberOfPieces" specified should be less than or equal to what GetNumberOfSplits() returns.
Definition at line 73 of file otbImageRegionTileMapSplitter.hxx.
|
static |
Method for creation through the object factory.
|
privatedelete |
|
overrideprotected |
How many pieces can the specified region be split? A given region cannot always be divided into the requested number of pieces. For instance, if the numberOfPieces exceeds the number of pixels along a certain dimensions, then some splits will not be possible. This method returns a number less than or equal to the requested number of pieces.
Definition at line 135 of file otbImageRegionTileMapSplitter.hxx.
|
static |
Dimension of the image available at compile time.
Definition at line 91 of file otbImageRegionTileMapSplitter.h.
|
private |
Definition at line 137 of file otbImageRegionTileMapSplitter.h.
|
private |
Definition at line 136 of file otbImageRegionTileMapSplitter.h.