OTB
9.0.0
Orfeo Toolbox
|
#include <otbImageFileReader.h>
Public Types | |
typedef ExtendedFilenameToReaderOptions | FNameHelperType |
typedef TOutputImage::RegionType | ImageRegionType |
typedef TOutputImage::IndexType | IndexType |
typedef TOutputImage::InternalPixelType | OutputImagePixelType |
typedef itk::SmartPointer< Self > | Pointer |
typedef ImageFileReader | Self |
typedef TOutputImage::SizeType | SizeType |
typedef itk::ImageSource< TOutputImage > | Superclass |
Public Member Functions | |
virtual ::itk::LightObject::Pointer | CreateAnother (void) const |
void | EnlargeOutputRequestedRegion (itk::DataObject *output) override |
void | GenerateData () override |
void | GenerateOutputInformation (void) override |
virtual const char * | GetNameOfClass () const |
Static Public Member Functions | |
static Pointer | New () |
otb::ImageIOBase::Pointer | m_ImageIO |
bool | m_UserSpecifiedImageIO |
std::string | m_FileName |
bool | m_UseStreaming |
itk::ImageIORegion | m_ActualIORegion |
FNameHelperType::Pointer | m_FilenameHelper |
unsigned int | m_AdditionalNumber |
std::vector< unsigned int > | m_BandList |
unsigned int | m_IOComponents |
static std::string | GetDerivedDatasetSourceFileName (const std::string &filename) |
void | SetImageIO (otb::ImageIOBase *imageIO) |
itkGetObjectMacro (ImageIO, otb::ImageIOBase) | |
virtual void | SetFileName (const std::string &extendedFileName) |
virtual const char * | GetFileName () const |
unsigned int | GetOverviewsCount () |
std::vector< std::string > | GetOverviewsInfo () |
ImageFileReader () | |
~ImageFileReader () override | |
void | PrintSelf (std::ostream &os, itk::Indent indent) const override |
void | DoConvertBuffer (void *buffer, vcl_size_t numberOfPixels) |
void | TestValidImageIO () |
bool | GetGdalReadImageFileName (const std::string &filename, std::string &GdalFileName) |
ImageFileReader (const Self &)=delete | |
void | operator= (const Self &)=delete |
Reads image data.
ImageFileReader reads its output data from a single output file. It interfaces with an ImageIO class to read in the data and supports streaming (partial reading) if the source dataset does so.
ImageFileReader supports extended filenames, which allow controlling how the source dataset is read. See http://wiki.orfeo-toolbox.org/index.php/ExtendedFileName for more information.
Definition at line 68 of file otbImageFileReader.h.
typedef ExtendedFilenameToReaderOptions otb::ImageFileReader< TOutputImage, ConvertPixelTraits >::FNameHelperType |
The Filename Helper.
Definition at line 95 of file otbImageFileReader.h.
typedef TOutputImage::RegionType otb::ImageFileReader< TOutputImage, ConvertPixelTraits >::ImageRegionType |
The region of the output image.
Definition at line 89 of file otbImageFileReader.h.
typedef TOutputImage::IndexType otb::ImageFileReader< TOutputImage, ConvertPixelTraits >::IndexType |
The size of the output image.
Definition at line 86 of file otbImageFileReader.h.
typedef TOutputImage::InternalPixelType otb::ImageFileReader< TOutputImage, ConvertPixelTraits >::OutputImagePixelType |
The pixel type of the output image.
Definition at line 92 of file otbImageFileReader.h.
typedef itk::SmartPointer<Self> otb::ImageFileReader< TOutputImage, ConvertPixelTraits >::Pointer |
Definition at line 74 of file otbImageFileReader.h.
typedef ImageFileReader otb::ImageFileReader< TOutputImage, ConvertPixelTraits >::Self |
Standard class typedefs.
Definition at line 72 of file otbImageFileReader.h.
typedef TOutputImage::SizeType otb::ImageFileReader< TOutputImage, ConvertPixelTraits >::SizeType |
The size of the output image.
Definition at line 80 of file otbImageFileReader.h.
typedef itk::ImageSource<TOutputImage> otb::ImageFileReader< TOutputImage, ConvertPixelTraits >::Superclass |
Definition at line 73 of file otbImageFileReader.h.
|
protected |
Mapping between origin components and output components (before any conversion)
Definition at line 66 of file otbImageFileReader.hxx.
|
overrideprotected |
Mapping between origin components and output components (before any conversion)
Definition at line 79 of file otbImageFileReader.hxx.
|
privatedelete |
Mapping between origin components and output components (before any conversion)
virtual::itk::LightObject::Pointer otb::ImageFileReader< TOutputImage, ConvertPixelTraits >::CreateAnother | ( | void | ) | const |
|
protected |
Convert a block of pixels from one type to another.
Definition at line 665 of file otbImageFileReader.hxx.
References otb::ImageIOBase::GetComponentTypeAsString(), OTB_CONVERT_BUFFER_IF_BLOCK, and OTB_CONVERT_CBUFFER_IF_BLOCK.
|
override |
Give the reader a chance to indicate that it will produce more output than it was requested to produce. ImageFileReader cannot currently read a portion of an image (since the ImageIO objects cannot read a portion of an image), so the ImageFileReader must enlarge the RequestedRegion to the size of the image on disk.
Definition at line 215 of file otbImageFileReader.hxx.
|
override |
Does the real work.
Definition at line 118 of file otbImageFileReader.hxx.
References otb::mpl::GetNumberOfComponents().
|
override |
Prepare image allocation at the first call of the pipeline processing
Definition at line 235 of file otbImageFileReader.hxx.
References otb::ImageMetadata::Bands, otb::ImageIOFactory::CreateImageIO(), otb::ImageMetadataInterfaceFactory::CreateIMI(), otb::GeomMetadataSupplier::FetchGCP(), otb::GeomMetadataSupplier::FetchRPC(), otb::mpl::GetNumberOfComponents(), otb::ImageMetadataBase::Has(), otb::Mission, otbLogMacro, otb::PixelIsComplex(), otb::MetaDataKey::ProjectionRefKey, otb::ImageIOFactory::ReadMode, otb::ImageMetadataBase::RemoveProjectedGeometry(), otb::MetaDataKey::ResolutionFactor, otb::ImageCommons::SetImageMetadata(), and otb::MetaDataKey::SubDatasetIndex.
|
static |
Mapping between origin components and output components (before any conversion)
Definition at line 512 of file otbImageFileReader.hxx.
References otb::DerivedSubdatasetPrefix, and otb::DerivedSubdatasetPrefixLength.
|
virtual |
Mapping between origin components and output components (before any conversion)
Definition at line 642 of file otbImageFileReader.hxx.
|
private |
Generate the filename (for GDALImageI for example). If filename is a directory, look if is a CEOS product (file "DAT...") In this case, the GdalFileName contain the open image file.
Definition at line 553 of file otbImageFileReader.hxx.
References otb::System::GetRootName(), and otb::System::Readdir().
|
virtual |
Run-time type information (and related methods).
unsigned int otb::ImageFileReader< TOutputImage, ConvertPixelTraits >::GetOverviewsCount |
Get the number of overviews available into the file specified Returns: overview count, zero if none.
Definition at line 648 of file otbImageFileReader.hxx.
std::vector< std::string > otb::ImageFileReader< TOutputImage, ConvertPixelTraits >::GetOverviewsInfo |
Get description about overviews available into the file specified Returns: overview info, empty if none.
Definition at line 657 of file otbImageFileReader.hxx.
otb::ImageFileReader< TOutputImage, ConvertPixelTraits >::itkGetObjectMacro | ( | ImageIO | , |
otb::ImageIOBase | |||
) |
Mapping between origin components and output components (before any conversion)
|
static |
Method for creation through the object factory.
|
privatedelete |
Mapping between origin components and output components (before any conversion)
|
overrideprotected |
Mapping between origin components and output components (before any conversion)
Definition at line 84 of file otbImageFileReader.hxx.
|
virtual |
Mapping between origin components and output components (before any conversion)
Definition at line 609 of file otbImageFileReader.hxx.
Referenced by otb::ImageSeriesFileReader< Image< TPixel, 2 >, Image< TInternalPixel, 2 > >::GenerateData(), otb::ImageSeriesFileReader< Image< TPixel, 2 >, VectorImage< TInternalPixel, 2 > >::GenerateData(), and otb::ImageSeriesFileReader< VectorImage< TPixel, 2 >, VectorImage< TInternalPixel, 2 > >::GenerateData().
void otb::ImageFileReader< TOutputImage, ConvertPixelTraits >::SetImageIO | ( | otb::ImageIOBase * | imageIO | ) |
Set/Get the ImageIO helper class. Often this is created via the object factory mechanism that determines whether a particular ImageIO can read a certain file. This method provides a way to get the ImageIO instance that is created. Or you can directly specify the ImageIO to use to read a particular file in case the factory mechanism will not work properly (e.g., unknown or unusual extension).
Definition at line 107 of file otbImageFileReader.hxx.
|
private |
Test whether m_ImageIO is valid (not NULL). This is intended to be called after trying to create it via an ImageIOFactory. Throws an exception with an appropriate message otherwise.
Definition at line 531 of file otbImageFileReader.hxx.
|
private |
Mapping between origin components and output components (before any conversion)
Definition at line 168 of file otbImageFileReader.h.
|
private |
Mapping between origin components and output components (before any conversion)
Definition at line 172 of file otbImageFileReader.h.
|
private |
Mapping between origin components and output components (before any conversion)
Definition at line 176 of file otbImageFileReader.h.
|
private |
Mapping between origin components and output components (before any conversion)
Definition at line 162 of file otbImageFileReader.h.
|
private |
Mapping between origin components and output components (before any conversion)
Definition at line 170 of file otbImageFileReader.h.
|
private |
Mapping between origin components and output components (before any conversion)
Definition at line 158 of file otbImageFileReader.h.
|
private |
Store the number of components to be exported to the output image This variable can be the number of components in m_ImageIO or the number of components in the m_BandList (if used)
Definition at line 181 of file otbImageFileReader.h.
|
private |
Mapping between origin components and output components (before any conversion)
Definition at line 159 of file otbImageFileReader.h.
|
private |
Mapping between origin components and output components (before any conversion)
Definition at line 164 of file otbImageFileReader.h.