OTB
9.0.0
Orfeo Toolbox
|
#include <otbRemoteSensingRegion.h>
Public Types | |
typedef itk::SmartPointer< const Self > | ConstPointer |
typedef itk::ImageRegion< 2 > | ImageRegionType |
typedef itk::ContinuousIndex< Type > | IndexType |
typedef itk::SmartPointer< Self > | Pointer |
typedef itk::Point< Type, 2 > | PointType |
typedef otb::RemoteSensingRegion< TType > | Self |
typedef itk::ContinuousIndex< Type > | SizeType |
typedef itk::Region | Superclass |
typedef TType | Type |
Public Member Functions | |
virtual const char * | GetNameOfClass () const |
Superclass::RegionType | GetRegionType () const override |
IndexType | m_Index |
SizeType | m_Size |
std::string | m_InputProjectionRef |
ImageMetadata | m_ImageMetadata |
RemoteSensingRegion () | |
RemoteSensingRegion (const itk::ImageRegion< 2 > ®ion) | |
const ImageRegionType | GetImageRegion () |
void | SetOrigin (const IndexType &index) |
void | SetOrigin (const PointType &index) |
const IndexType & | GetOrigin () const |
void | SetIndex (const IndexType &index) |
const IndexType & | GetIndex () const |
void | SetSize (const SizeType &size) |
const SizeType & | GetSize () const |
Type | GetSize (unsigned int i) const |
Type | GetOrigin (unsigned int i) const |
void | SetSize (const unsigned int i, Type size) |
void | SetOrigin (const unsigned int i, Type idx) |
const ImageMetadata & | GetImageMetadata () const |
void | SetImageMetadata (const ImageMetadata &imd) |
bool | operator== (const Self ®ion) const |
bool | operator!= (const Self ®ion) const |
bool | IsInside (const IndexType &index) const |
void | SetRegionProjection (const std::string &projection) |
std::string | GetRegionProjection () |
bool | Crop (const Self ®ion) |
void | PrintSelf (std::ostream &os, itk::Indent indent) const override |
An RemoteSensingRegion represents a structured region of data.
RemoteSensingRegion is an class that represents some structured portion or piece of an Image. The RemoteSensingRegion is represented with an index and a size in each of the n-dimensions of the image. (The index is the corner of the image, the size is the lengths of the image in each of the topological directions. For this class, the notion of index and origin are the same.)
As the size and origin can be given in various system coordinates, they contain double values (through the use of an itk::ContinuousIndex).
To be flexible enough, the region also contain information about the projection in which this information is given. It can be a cartographic projection, but also a sensor model projection (hence making it useful also with non-orthorectified images).
Definition at line 59 of file otbRemoteSensingRegion.h.
typedef itk::SmartPointer<const Self> otb::RemoteSensingRegion< TType >::ConstPointer |
Definition at line 66 of file otbRemoteSensingRegion.h.
typedef itk::ImageRegion<2> otb::RemoteSensingRegion< TType >::ImageRegionType |
ImageRegion typedef needed by the GetImageRegion() method
Definition at line 83 of file otbRemoteSensingRegion.h.
typedef itk::ContinuousIndex<Type> otb::RemoteSensingRegion< TType >::IndexType |
Index typedef support. An index is used to access pixel values.
Definition at line 75 of file otbRemoteSensingRegion.h.
typedef itk::SmartPointer<Self> otb::RemoteSensingRegion< TType >::Pointer |
Definition at line 65 of file otbRemoteSensingRegion.h.
typedef itk::Point<Type, 2> otb::RemoteSensingRegion< TType >::PointType |
Definition at line 76 of file otbRemoteSensingRegion.h.
typedef otb::RemoteSensingRegion<TType> otb::RemoteSensingRegion< TType >::Self |
Standard class typedefs.
Definition at line 63 of file otbRemoteSensingRegion.h.
typedef itk::ContinuousIndex<Type> otb::RemoteSensingRegion< TType >::SizeType |
Size typedef support. A size is used to define region bounds.
Definition at line 79 of file otbRemoteSensingRegion.h.
typedef itk::Region otb::RemoteSensingRegion< TType >::Superclass |
Definition at line 64 of file otbRemoteSensingRegion.h.
typedef TType otb::RemoteSensingRegion< TType >::Type |
Typedef Support
Definition at line 69 of file otbRemoteSensingRegion.h.
|
inline |
Constructor. RemoteSensingRegion is a lightweight object that is not reference counted, so the constructor is public. Default dimension is 2.
Definition at line 92 of file otbRemoteSensingRegion.h.
|
inline |
Constructor. RemoteSensingRegion is a lightweight object that is not reference counted, so the constructor is public. Default dimension is 2.
Definition at line 101 of file otbRemoteSensingRegion.h.
|
inline |
Crop
Definition at line 270 of file otbRemoteSensingRegion.h.
Referenced by otb::VectorDataExtractROI< TVectorData >::IsLineIntersectionNotNull().
|
inline |
|
inline |
This method provides explicit conversion to itk::ImageRegion<2>, so as to allow using RemoteSensingRegion to specify requested region for images or images iterators.
Definition at line 114 of file otbRemoteSensingRegion.h.
|
inline |
Get index defining the corner of the region.
Definition at line 157 of file otbRemoteSensingRegion.h.
|
virtual |
Standard part of all itk objects.
|
inline |
Get index defining the corner of the region.
Definition at line 145 of file otbRemoteSensingRegion.h.
Referenced by otb::RemoteSensingRegion< typename VertexType::CoordRepType >::Crop().
|
inline |
Constructor. RemoteSensingRegion is a lightweight object that is not reference counted, so the constructor is public. Default dimension is 2.
Definition at line 188 of file otbRemoteSensingRegion.h.
|
inline |
Constructor. RemoteSensingRegion is a lightweight object that is not reference counted, so the constructor is public. Default dimension is 2.
Definition at line 262 of file otbRemoteSensingRegion.h.
|
inlineoverride |
Definition at line 85 of file otbRemoteSensingRegion.h.
|
inline |
Get the size of the region.
Definition at line 176 of file otbRemoteSensingRegion.h.
Referenced by otb::RemoteSensingRegion< typename VertexType::CoordRepType >::Crop().
|
inline |
Convenience methods to get the size of the image in a particular coordinate direction i. Do not try to access image sizes beyond the the ImageDimension.
Definition at line 184 of file otbRemoteSensingRegion.h.
|
inline |
Test if an index is inside
Definition at line 239 of file otbRemoteSensingRegion.h.
|
inline |
Compare two regions.
Definition at line 229 of file otbRemoteSensingRegion.h.
|
inline |
Compare two regions.
Definition at line 219 of file otbRemoteSensingRegion.h.
|
inlineoverrideprotected |
Constructor. RemoteSensingRegion is a lightweight object that is not reference counted, so the constructor is public. Default dimension is 2.
Definition at line 318 of file otbRemoteSensingRegion.h.
|
inline |
Set the image metadata
Definition at line 213 of file otbRemoteSensingRegion.h.
Referenced by otb::VectorDataIntoImageProjectionFilter< TInputVectorData, TInputImage >::GenerateData().
|
inline |
Set the index defining the corner of the region.
Definition at line 151 of file otbRemoteSensingRegion.h.
|
inline |
Set the index defining the corner of the region.
Definition at line 132 of file otbRemoteSensingRegion.h.
Referenced by otb::VectorDataExtractROI< TVectorData >::ComputeVertexListBoundingRegion(), and otb::VectorDataIntoImageProjectionFilter< TInputVectorData, TInputImage >::GenerateData().
|
inline |
Set the index defining the corner of the region.
Definition at line 138 of file otbRemoteSensingRegion.h.
|
inline |
Constructor. RemoteSensingRegion is a lightweight object that is not reference counted, so the constructor is public. Default dimension is 2.
Definition at line 196 of file otbRemoteSensingRegion.h.
|
inline |
Get/Set InputProjectionRef std::string
Definition at line 257 of file otbRemoteSensingRegion.h.
Referenced by otb::VectorDataIntoImageProjectionFilter< TInputVectorData, TInputImage >::GenerateData().
|
inline |
Set the size of the region. This plus the index determines the rectangular shape, or extent, of the region.
Definition at line 164 of file otbRemoteSensingRegion.h.
Referenced by otb::VectorDataExtractROI< TVectorData >::ComputeVertexListBoundingRegion(), and otb::VectorDataIntoImageProjectionFilter< TInputVectorData, TInputImage >::GenerateData().
|
inline |
Constructor. RemoteSensingRegion is a lightweight object that is not reference counted, so the constructor is public. Default dimension is 2.
Definition at line 192 of file otbRemoteSensingRegion.h.
|
private |
Constructor. RemoteSensingRegion is a lightweight object that is not reference counted, so the constructor is public. Default dimension is 2.
Definition at line 333 of file otbRemoteSensingRegion.h.
|
private |
Constructor. RemoteSensingRegion is a lightweight object that is not reference counted, so the constructor is public. Default dimension is 2.
Definition at line 329 of file otbRemoteSensingRegion.h.
Referenced by otb::RemoteSensingRegion< typename VertexType::CoordRepType >::operator!=(), and otb::RemoteSensingRegion< typename VertexType::CoordRepType >::operator==().
|
private |
Constructor. RemoteSensingRegion is a lightweight object that is not reference counted, so the constructor is public. Default dimension is 2.
Definition at line 332 of file otbRemoteSensingRegion.h.
|
private |
Constructor. RemoteSensingRegion is a lightweight object that is not reference counted, so the constructor is public. Default dimension is 2.
Definition at line 330 of file otbRemoteSensingRegion.h.
Referenced by otb::RemoteSensingRegion< typename VertexType::CoordRepType >::operator!=(), and otb::RemoteSensingRegion< typename VertexType::CoordRepType >::operator==().