#include "AppConfig.h"#include "DimensionDescriptor.h"#include "EnumWrapper.h"#include "TypesFile.h"#include <string>#include <vector>Go to the source code of this file.
Namespaces | |
| namespace | RasterUtilities |
Typedefs | |
| typedef EnumWrapper < InterpolationTypeEnum > | RasterUtilities::InterpolationType |
Enumerations | |
| enum | RasterUtilities::InterpolationTypeEnum { RasterUtilities::NEAREST_NEIGHBOR, RasterUtilities::BILINEAR, RasterUtilities::BICUBIC } |
Functions | |
| std::vector< DimensionDescriptor > | RasterUtilities::generateDimensionVector (unsigned int count, bool setOriginalNumbers=true, bool setActiveNumbers=false, bool setOnDiskNumbers=false) |
| bool | RasterUtilities::determineSkipFactor (const std::vector< DimensionDescriptor > &values, unsigned int &skipFactor) |
| bool | RasterUtilities::determineExportSkipFactor (const std::vector< DimensionDescriptor > &values, unsigned int &skipFactor) |
| std::vector< DimensionDescriptor > | RasterUtilities::subsetDimensionVector (const std::vector< DimensionDescriptor > &origValues, const DimensionDescriptor &start, const DimensionDescriptor &stop, unsigned int skipFactor=0) |
| FileDescriptor * | RasterUtilities::generateFileDescriptor (DataDescriptor *pDd, const std::string &filename, const std::string &datasetLocation, EndianType endian) |
| FileDescriptor * | RasterUtilities::generateAndSetFileDescriptor (DataDescriptor *pDd, const std::string &filename, const std::string &datasetLocation, EndianType endian) |
| FileDescriptor * | RasterUtilities::generateFileDescriptorForExport (const DataDescriptor *pDd, const std::string &filename) |
| RasterFileDescriptor * | RasterUtilities::generateRasterFileDescriptorForExport (const RasterDataDescriptor *pRasterDd, const std::string &filename, const DimensionDescriptor &startRow, const DimensionDescriptor &stopRow, unsigned int rowSkipFactor, const DimensionDescriptor &startCol, const DimensionDescriptor &stopCol, unsigned int colSkipFactor, const std::vector< DimensionDescriptor > &subsetBands=std::vector< DimensionDescriptor >()) |
| RasterFileDescriptor * | RasterUtilities::generateRasterFileDescriptorForExport (const RasterDataDescriptor *pRasterDd, const std::string &filename, const DimensionDescriptor &startRow, const DimensionDescriptor &stopRow, unsigned int rowSkipFactor, const DimensionDescriptor &startCol, const DimensionDescriptor &stopCol, unsigned int colSkipFactor, const DimensionDescriptor &startBand, const DimensionDescriptor &stopBand, unsigned int bandSkipFactor) |
| RasterDataDescriptor * | RasterUtilities::generateRasterDataDescriptor (const std::string &name, DataElement *pParent, unsigned int rows, unsigned int columns, unsigned int bands, InterleaveFormatType interleave, EncodingType encoding, ProcessingLocation location) |
| RasterDataDescriptor * | RasterUtilities::generateRasterDataDescriptor (const std::string &name, DataElement *pParent, unsigned int rows, unsigned int columns, EncodingType encoding, ProcessingLocation location) |
| RasterDataDescriptor * | RasterUtilities::generateUnchippedRasterDataDescriptor (const RasterElement *pOrigElement) |
| void | RasterUtilities::subsetDataDescriptor (DataDescriptor *pDd, const DimensionDescriptor &startRow, const DimensionDescriptor &stopRow, unsigned int rowSkipFactor, const DimensionDescriptor &startCol, const DimensionDescriptor &stopCol, unsigned int colSkipFactor, const std::vector< DimensionDescriptor > &subsetBands=std::vector< DimensionDescriptor >()) |
| void | RasterUtilities::subsetDataDescriptor (DataDescriptor *pDd, const DimensionDescriptor &startRow, const DimensionDescriptor &stopRow, unsigned int rowSkipFactor, const DimensionDescriptor &startCol, const DimensionDescriptor &stopCol, unsigned int colSkipFactor, const DimensionDescriptor &startBand, const DimensionDescriptor &stopBand, unsigned int bandSkipFactor) |
| RasterElement * | RasterUtilities::createRasterElement (const std::string &name, unsigned int rows, unsigned int columns, EncodingType encoding, bool inMemory=true, DataElement *pParent=0) |
| RasterElement * | RasterUtilities::createRasterElement (const std::string &name, unsigned int rows, unsigned int columns, unsigned int bands, EncodingType encoding, InterleaveFormatType interleave=BIP, bool inMemory=true, DataElement *pParent=0) |
| size_t | RasterUtilities::bytesInEncoding (EncodingType encoding) |
| std::vector< std::string > | RasterUtilities::getBandNames (const RasterDataDescriptor *pDescriptor) |
| std::string | RasterUtilities::getBandName (const RasterDataDescriptor *pDescriptor, DimensionDescriptor band) |
| bool | RasterUtilities::isSubcube (const RasterDataDescriptor *pDescriptor, bool checkBands) |
| bool | RasterUtilities::findColorCompositeDimensionDescriptors (const RasterDataDescriptor *pDescriptor, const std::string &name, DimensionDescriptor &redBand, DimensionDescriptor &greenBand, DimensionDescriptor &blueBand) |
| int | RasterUtilities::findBandWavelengthMatch (double lowTarget, double highTarget, const std::vector< double > &lowWavelengths, const std::vector< double > &highWavelengths=std::vector< double >(), bool allowPartialMatch=true) |
| std::vector< unsigned int > | RasterUtilities::findBandWavelengthMatches (double lowTarget, double highTarget, const std::vector< double > &lowWavelengths, const std::vector< double > &highWavelengths=std::vector< double >(), bool allowPartialMatch=true) |
| DimensionDescriptor | RasterUtilities::findBandWavelengthMatch (double lowTarget, double highTarget, const RasterDataDescriptor *pDescriptor, bool allowPartialMatch=true) |
| int | RasterUtilities::findBestMatch (const std::vector< double > &values, double value, double tolerance, int startAt=0) |
| std::vector< RasterChannelType > | RasterUtilities::getVisibleRasterChannels () |
| bool | RasterUtilities::chipMetadata (DynamicObject *pMetadata, const std::vector< DimensionDescriptor > &selectedRows, const std::vector< DimensionDescriptor > &selectedColumns, const std::vector< DimensionDescriptor > &selectedBands) |
| template<typename T> | |
| bool | RasterUtilities::isBad (T value) |
| template<> | |
| bool | RasterUtilities::isBad< double > (double value) |
| template<> | |
| bool | RasterUtilities::isBad< float > (float value) |
| template<typename T> | |
| uint64_t | RasterUtilities::sanitizeData (T *pData, uint64_t count, double value=0.0) |
| uint64_t | RasterUtilities::sanitizeData (void *pData, uint64_t count, EncodingType type, double value=0.0) |
| int64_t | RasterUtilities::calculateFileSize (const RasterFileDescriptor *pDescriptor) |
| bool | RasterUtilities::rotate (RasterElement *pDst, const RasterElement *pSrc, double angle, int defaultValue, InterpolationType interp=NEAREST_NEIGHBOR, Progress *pProgress=NULL, bool *pAbort=NULL) |