OSSIM - Open Source Software Image Map
Version 1.9.0 (20180803)
|
ossimImageUtil class. More...
#include <ossimImageUtil.h>
Public Member Functions | |
ossimImageUtil () | |
default constructor More... | |
virtual | ~ossimImageUtil () |
virtual destructor More... | |
void | addOptions (ossimApplicationUsage *au) |
void | addArguments (ossimArgumentParser &ap) |
Adds application arguments to the argument parser. More... | |
bool | initialize (ossimArgumentParser &ap) |
Initial method. More... | |
ossim_int32 | execute () |
Execute method. More... | |
virtual void | processFile (const ossimFilename &file) |
ProcessFile method. More... | |
void | setCreateOverviewsFlag (bool flag) |
Sets create overviews flag keyword CREATE_OVERVIEWS_KW used by processFile method. More... | |
bool | createOverviews () const |
void | setCreateThumbnailsFlag (bool flag) |
Sets create thumbnails flag keyword CREATE_THUMBNAILS_KW used by processFile method. More... | |
void | setThumbnailType (const std::string &value) |
void | setThumbnailStretchType (const std::string &value) |
bool | createThumbnails () const |
void | setRebuildOverviewsFlag (bool flag) |
Sets the rebuild overview flag keyword REBUILD_OVERVIEWS_KW used by processFile method. More... | |
bool | rebuildOverviews () const |
void | setRebuildHistogramFlag (bool flag) |
Sets the rebuild histogram flag keyword REBUILD_HISTOGRAM_KW used by processFile method. More... | |
bool | rebuildHistogram () const |
void | setOverviewType (const std::string &type) |
Sets key OVERVIEW_TYPE_KW. More... | |
void | setOverviewStopDimension (ossim_uint32 dimension) |
sets the overview stop dimension. More... | |
void | setOverviewStopDimension (const std::string &dimension) |
void | setTileSize (ossim_uint32 tileSize) |
Sets the tile size. More... | |
bool | getTileSize (ossimIpt &tileSize) const |
Gets the tile size. More... | |
ossim_uint32 | getOverviewStopDimension () const |
void | setCreateHistogramFlag (bool flag) |
Sets create histogram flag keyword CREATE_HISTOGRAM_KW used by processFile method. More... | |
bool | createHistogram () const |
void | setCreateHistogramFastFlag (bool flag) |
Sets create histogram flag keyword CREATE_HISTOGRAM_FAST_KW used by processFile method. More... | |
bool | createHistogramFast () const |
void | setCreateHistogramR0Flag (bool flag) |
Sets create histogram "R0" flag keyword CREATE_HISTOGRAM_R0_KW used by processFile method. More... | |
bool | createHistogramR0 () const |
bool | hasHistogramOption () const |
ossimHistogramMode | getHistogramMode () const |
void | setScanForMinMax (bool flag) |
Sets scan for min/max flag keyword SCAN_MIN_MAX_KW used by processFile method. More... | |
bool | scanForMinMax () const |
void | setScanForMinMaxNull (bool flag) |
Sets scan for min/max/null flag keyword SCAN_MIN_MAX_KW used by processFile method. More... | |
bool | scanForMinMaxNull () const |
void | setCompressionQuality (const std::string &quality) |
Sets the writer property for compression quality. More... | |
void | setCompressionType (const std::string &type) |
Sets the compression type to use when building overviews. More... | |
void | setCopyAllFlag (bool flag) |
Sets the overview builder copy all flag. More... | |
bool | getCopyAllFlag () const |
void | setDumpFilteredImageListFlag (bool flag) |
Sets the dump filteredImageList flag. More... | |
bool | getDumpFilterImagesFlag () const |
void | setInternalOverviewsFlag (bool flag) |
Sets the overview builder internal overviews flag. More... | |
bool | getInternalOverviewsFlag () const |
void | setOutputDirectory (const std::string &directory) |
Sets the output directory. More... | |
void | setOutputFileNamesFlag (bool flag) |
Sets the output file name flag OUTPUT_FILENAMES_KW. More... | |
bool | getOutputFileNamesFlag () const |
void | setOverrideFilteredImagesFlag (bool flag) |
Sets the override filtered images flag. More... | |
bool | getOverrideFilteredImagesFlag () const |
void | setNumberOfThreads (ossim_uint32 threads) |
Set number of threads to use. More... | |
void | setNumberOfThreads (const std::string &threads) |
const std::vector< std::string > & | getFilteredImages () const |
std::vector< std::string > & | getFilteredImages () |
Non const method to allow access for adding or deleting extensions from the list. More... | |
![]() | |
ossimReferenced () | |
ossimReferenced (const ossimReferenced &) | |
ossimReferenced & | operator= (const ossimReferenced &) |
void | ref () const |
increment the reference count by one, indicating that this object has another pointer which is referencing it. More... | |
void | unref () const |
decrement the reference count by one, indicating that a pointer to this object is referencing it. More... | |
void | unref_nodelete () const |
decrement the reference count by one, indicating that a pointer to this object is referencing it. More... | |
int | referenceCount () const |
![]() | |
ossimFileProcessorInterface () | |
default constructor More... | |
virtual | ~ossimFileProcessorInterface () |
virtual destructor. More... | |
Private Member Functions | |
bool | keyIsTrue (const std::string &key) const |
bool | isFiltered (const ossimFilename &f) const |
Convenience method to check file to see is if file should be processed. More... | |
void | initializeDefaultFilterList () |
Initializes the filter list with a default set of filtered out file names. More... | |
void | dumpFilteredImageList () const |
Dumps filtered image list to std out. More... | |
void | createOverview (ossimRefPtr< ossimImageHandler > &ih, bool &consumedHistogramOptions, bool &consumedCmmOptions) |
void | createOverview (ossimRefPtr< ossimImageHandler > &ih, ossimRefPtr< ossimOverviewBuilderBase > &ob, ossim_uint32 entry, bool useEntryIndex, bool &consumedHistogramOptions) |
void | createThumbnail (ossimRefPtr< ossimImageHandler > &ih) |
bool | hasRequiredOverview (ossimRefPtr< ossimImageHandler > &ih, ossimRefPtr< ossimOverviewBuilderBase > &ob) |
bool | hasCmmOption () const |
void | createHistogram (ossimRefPtr< ossimImageHandler > &ih) |
void | createHistogram (ossimRefPtr< ossimImageHandler > &ih, ossim_uint32 entry, bool useEntryIndex) |
void | computeMinMax (ossimRefPtr< ossimImageHandler > &ih) |
void | computeMinMax (ossimRefPtr< ossimImageHandler > &ih, ossim_uint32 entry, bool useEntryIndex) |
void | usage (ossimArgumentParser &ap) |
Initializes arg parser and outputs usage. More... | |
void | outputOverviewWriterTypes () const |
bool | isDirectoryBasedImage (const ossimImageHandler *ih) const |
void | getOverviewType (std::string &type) const |
Initializes type from OVERVIEW_TYPE_KW or sets to default ossim_tiff_box if not found. More... | |
void | setProps (ossimPropertyInterface *pi) const |
set reader or writer properties based on cast of pi. More... | |
ossim_uint32 | getNumberOfThreads () const |
ossim_uint32 | getNextWriterPropIndex () const |
ossim_uint32 | getNextReaderPropIndex () const |
ossim_uint32 | getThumbnailSize () const |
int | getThumbnailStretchType () const |
std::string | getThumbnailType () const |
std::string | getThumbnailFilename (ossimImageHandler *ih) const |
void | addOption (const std::string &key, ossim_uint32 value) |
Adds option to m_kwl with mutex lock. More... | |
void | addOption (const std::string &key, const std::string &value) |
void | setErrorStatus (ossim_int32 status) |
Sets the m_errorStatus for return on execute. More... | |
void | executePrepCommands () const |
run prep system commands. More... | |
void | executeFileCommands (const ossimFilename &file) const |
run per file system commands. More... | |
void | executePostCommands () const |
run post system commands. More... | |
void | executeCommands (const std::string &prefix, const ossimFilename &file) const |
system commands. More... | |
void | substituteCommandString (const ossimFilename &file, const std::string &prefix, const std::string &commandKey, ossimString &command) const |
Expands variables in a command string. More... | |
void | substituteFileStrings (const ossimFilename &file, ossimString &command) const |
Expands file level variables in a command string. More... | |
void | gsubDate (const std::string &commandPrefix, ossimString &command) const |
Expands date variables in a command string. More... | |
Private Attributes | |
ossimRefPtr< ossimKeywordlist > | m_kwl |
Holds all options passed into intialize except writer props. More... | |
ossimFileWalker * | m_fileWalker |
std::mutex | m_mutex |
ossim_int32 | m_errorStatus |
std::vector< std::string > | m_filteredImages |
Hold images we never want to process. More... | |
Additional Inherited Members | |
![]() | |
virtual | ~ossimReferenced () |
ossimImageUtil class.
Utility class for processing image recursively. This is for doing things like:
building overview, histograms, compute min/max, extract vertices.
Definition at line 44 of file ossimImageUtil.h.
ossimImageUtil::ossimImageUtil | ( | ) |
default constructor
Definition at line 105 of file ossimImageUtil.cpp.
|
virtual |
void ossimImageUtil::addArguments | ( | ossimArgumentParser & | ap | ) |
Adds application arguments to the argument parser.
ap | Parser to add to. |
Definition at line 189 of file ossimImageUtil.cpp.
References addOptions(), ossimArgumentParser::getApplicationName(), ossimArgumentParser::getApplicationUsage(), and ossimApplicationUsage::setCommandLineUsage().
Referenced by usage().
|
private |
Adds option to m_kwl with mutex lock.
key | |
value |
Definition at line 2182 of file ossimImageUtil.cpp.
References ossimString::toString().
Referenced by setCreateHistogramFastFlag(), setCreateHistogramFlag(), setCreateHistogramR0Flag(), setCreateOverviewsFlag(), setCreateThumbnailsFlag(), setNumberOfThreads(), setOverviewStopDimension(), setRebuildHistogramFlag(), setRebuildOverviewsFlag(), setScanForMinMax(), setScanForMinMaxNull(), setThumbnailStretchType(), setThumbnailType(), and setTileSize().
|
private |
Definition at line 2187 of file ossimImageUtil.cpp.
References ossimKeywordlist::addPair(), m_kwl, m_mutex, and ossimRefPtr< T >::valid().
void ossimImageUtil::addOptions | ( | ossimApplicationUsage * | au | ) |
Definition at line 126 of file ossimImageUtil.cpp.
References ossimApplicationUsage::addCommandLineOption().
Referenced by addArguments().
|
private |
Definition at line 1278 of file ossimImageUtil.cpp.
|
private |
Definition at line 1311 of file ossimImageUtil.cpp.
bool ossimImageUtil::createHistogram | ( | ) | const |
Definition at line 1956 of file ossimImageUtil.cpp.
References keyIsTrue().
Referenced by getHistogramMode(), and hasHistogramOption().
|
private |
Definition at line 1145 of file ossimImageUtil.cpp.
|
private |
Definition at line 1178 of file ossimImageUtil.cpp.
bool ossimImageUtil::createHistogramFast | ( | ) | const |
Definition at line 1966 of file ossimImageUtil.cpp.
References keyIsTrue().
Referenced by getHistogramMode(), and hasHistogramOption().
bool ossimImageUtil::createHistogramR0 | ( | ) | const |
Definition at line 1976 of file ossimImageUtil.cpp.
References keyIsTrue().
Referenced by getHistogramMode(), and hasHistogramOption().
|
private |
Definition at line 797 of file ossimImageUtil.cpp.
|
private |
Definition at line 867 of file ossimImageUtil.cpp.
bool ossimImageUtil::createOverviews | ( | ) | const |
Definition at line 1660 of file ossimImageUtil.cpp.
References keyIsTrue().
|
private |
Definition at line 1008 of file ossimImageUtil.cpp.
References ossimKeywordlist::add(), ossimKeywordNames::BANDS_KW, ossimImageSourceFactoryBase::createImageSource(), and ossimImageSourceFactoryRegistry::instance().
bool ossimImageUtil::createThumbnails | ( | ) | const |
Definition at line 1669 of file ossimImageUtil.cpp.
References keyIsTrue().
|
private |
Dumps filtered image list to std out.
Definition at line 2276 of file ossimImageUtil.cpp.
References m_filteredImages, ossimNotify(), and ossimNotifyLevel_NOTICE.
ossim_int32 ossimImageUtil::execute | ( | ) |
Execute method.
This launches file walking mechanism.
Definition at line 584 of file ossimImageUtil.cpp.
|
private |
system commands.
Definition at line 2308 of file ossimImageUtil.cpp.
References ossimString::c_str(), ossimKeywordlist::findKey(), ossimKeywordlist::getNumberOfSubstringKeys(), m_kwl, ossimNotify(), ossimNotifyLevel_NOTICE, ossimString::size(), status, ossimString::string(), substituteCommandString(), and ossimString::toString().
Referenced by executeFileCommands(), executePostCommands(), and executePrepCommands().
|
private |
run per file system commands.
Definition at line 2295 of file ossimImageUtil.cpp.
References executeCommands().
|
private |
run post system commands.
Definition at line 2301 of file ossimImageUtil.cpp.
References executeCommands().
|
private |
run prep system commands.
Definition at line 2288 of file ossimImageUtil.cpp.
References executeCommands().
bool ossimImageUtil::getCopyAllFlag | ( | ) | const |
Definition at line 1764 of file ossimImageUtil.cpp.
References keyIsTrue().
Referenced by hasRequiredOverview().
bool ossimImageUtil::getDumpFilterImagesFlag | ( | ) | const |
DUMP_FILTERED_IMAGES_KW = "dump_filtered_images"
Definition at line 1776 of file ossimImageUtil.cpp.
References keyIsTrue().
const std::vector< std::string > & ossimImageUtil::getFilteredImages | ( | ) | const |
Definition at line 2254 of file ossimImageUtil.cpp.
References m_filteredImages.
std::vector< std::string > & ossimImageUtil::getFilteredImages | ( | ) |
Non const method to allow access for adding or deleting extensions from the list.
The list is used by the private isFiltered method to avoid trying to process unwanted files.
Definition at line 2259 of file ossimImageUtil.cpp.
References m_filteredImages.
ossimHistogramMode ossimImageUtil::getHistogramMode | ( | ) | const |
Definition at line 1991 of file ossimImageUtil.cpp.
References createHistogram(), createHistogramFast(), createHistogramR0(), OSSIM_HISTO_MODE_FAST, OSSIM_HISTO_MODE_NORMAL, and OSSIM_HISTO_MODE_UNKNOWN.
bool ossimImageUtil::getInternalOverviewsFlag | ( | ) | const |
Definition at line 1797 of file ossimImageUtil.cpp.
References keyIsTrue().
|
private |
Definition at line 2058 of file ossimImageUtil.cpp.
References m_kwl, and ossimKeywordlist::numberOf().
|
private |
Definition at line 2030 of file ossimImageUtil.cpp.
References m_kwl, and ossimKeywordlist::numberOf().
|
private |
Definition at line 2015 of file ossimImageUtil.cpp.
References ossimKeywordlist::findKey(), and m_kwl.
bool ossimImageUtil::getOutputFileNamesFlag | ( | ) | const |
Definition at line 1809 of file ossimImageUtil.cpp.
References keyIsTrue().
bool ossimImageUtil::getOverrideFilteredImagesFlag | ( | ) | const |
DUMP_FILTERED_IMAGES_KW = "dump_filtered_images"
Definition at line 1821 of file ossimImageUtil.cpp.
References keyIsTrue().
ossim_uint32 ossimImageUtil::getOverviewStopDimension | ( | ) | const |
Definition at line 1940 of file ossimImageUtil.cpp.
References ossimKeywordlist::findKey(), and m_kwl.
|
private |
Initializes type from OVERVIEW_TYPE_KW or sets to default ossim_tiff_box if not found.
Definition at line 1839 of file ossimImageUtil.cpp.
References ossimKeywordlist::findKey(), and m_kwl.
|
private |
Definition at line 2166 of file ossimImageUtil.cpp.
References ossimImageHandler::getFilenameWithThisExtension(), getThumbnailType(), and ossimString::string().
|
private |
Definition at line 2085 of file ossimImageUtil.cpp.
References ossimKeywordlist::findKey(), and m_kwl.
|
private |
Definition at line 2104 of file ossimImageUtil.cpp.
References ossimKeywordlist::findKey(), ossimHistogramRemapper::LINEAR_AUTO_MIN_MAX, and m_kwl.
|
private |
Definition at line 2149 of file ossimImageUtil.cpp.
References ossimKeywordlist::findKey(), and m_kwl.
Referenced by getThumbnailFilename().
bool ossimImageUtil::getTileSize | ( | ossimIpt & | tileSize | ) | const |
Gets the tile size.
tileSize | Initialized by this. |
Definition at line 1923 of file ossimImageUtil.cpp.
References ossimKeywordlist::findKey(), and m_kwl.
|
private |
Expands date variables in a command string.
Definition at line 2389 of file ossimImageUtil.cpp.
References ossimString::find(), ossimKeywordlist::findKey(), ossim::getFormattedTime(), ossimString::gsub(), and m_kwl.
Referenced by substituteCommandString().
|
private |
Definition at line 1986 of file ossimImageUtil.cpp.
References keyIsTrue().
bool ossimImageUtil::hasHistogramOption | ( | ) | const |
Definition at line 1981 of file ossimImageUtil.cpp.
References createHistogram(), createHistogramFast(), and createHistogramR0().
|
private |
Definition at line 1105 of file ossimImageUtil.cpp.
References ossimObject::getClassName(), getCopyAllFlag(), ossimImageHandler::getNumberOfDecimationLevels(), ossimImageHandler::getNumberOfLines(), ossimImageHandler::getNumberOfSamples(), ossimOverviewBuilderBase::getOverviewStopDimension(), and ossimRefPtr< T >::valid().
bool ossimImageUtil::initialize | ( | ossimArgumentParser & | ap | ) |
Initial method.
Typically called from application prior to execute. This parses all options and put in keyword list m_kwl.
ap | Arg parser to initialize from. |
Definition at line 201 of file ossimImageUtil.cpp.
|
private |
Initializes the filter list with a default set of filtered out file names.
Definition at line 2264 of file ossimImageUtil.cpp.
References m_filteredImages, and m_mutex.
|
private |
Definition at line 1639 of file ossimImageUtil.cpp.
References ossimObject::getClassName().
|
private |
Convenience method to check file to see is if file should be processed.
f | File to check. |
Definition at line 2207 of file ossimImageUtil.cpp.
References ossimFilename::file(), m_filteredImages, ossimString::size(), and ossimString::string().
|
private |
Definition at line 2240 of file ossimImageUtil.cpp.
References ossimKeywordlist::findKey(), m_kwl, ossimString::toBool(), and ossimRefPtr< T >::valid().
Referenced by createHistogram(), createHistogramFast(), createHistogramR0(), createOverviews(), createThumbnails(), getCopyAllFlag(), getDumpFilterImagesFlag(), getInternalOverviewsFlag(), getOutputFileNamesFlag(), getOverrideFilteredImagesFlag(), hasCmmOption(), rebuildHistogram(), rebuildOverviews(), scanForMinMax(), and scanForMinMaxNull().
|
private |
Definition at line 1625 of file ossimImageUtil.cpp.
References ossimOverviewBuilderFactoryRegistry::getTypeNameList(), ossimOverviewBuilderFactoryRegistry::instance(), ossimNotify(), and ossimNotifyLevel_NOTICE.
Referenced by usage().
|
virtual |
ProcessFile method.
Satisfies pure virtual ossimFileProcessorInterface::processFile.
This method is linked to the ossimFileWalker::walk method via a callback mechanism. It is called by the ossimFileWalk (caller). In turn this class (callee) calls ossimFileWalker::setRecurseFlag and ossimFileWalker::setAbortFlag to control the waking process.
file | to process. |
Implements ossimFileProcessorInterface.
Definition at line 683 of file ossimImageUtil.cpp.
bool ossimImageUtil::rebuildHistogram | ( | ) | const |
Definition at line 1697 of file ossimImageUtil.cpp.
References keyIsTrue().
bool ossimImageUtil::rebuildOverviews | ( | ) | const |
Definition at line 1683 of file ossimImageUtil.cpp.
References keyIsTrue().
bool ossimImageUtil::scanForMinMax | ( | ) | const |
Definition at line 1707 of file ossimImageUtil.cpp.
References keyIsTrue().
bool ossimImageUtil::scanForMinMaxNull | ( | ) | const |
Definition at line 1717 of file ossimImageUtil.cpp.
References keyIsTrue().
void ossimImageUtil::setCompressionQuality | ( | const std::string & | quality | ) |
Sets the writer property for compression quality.
quality | For TIFF JPEG takes values from 1 to 100, where 100 is best. For J2K plugin (if available), numerically_lossless, visually_lossless, lossy. |
Definition at line 1722 of file ossimImageUtil.cpp.
void ossimImageUtil::setCompressionType | ( | const std::string & | type | ) |
Sets the compression type to use when building overviews.
compression_type | Current supported types:
|
Definition at line 1735 of file ossimImageUtil.cpp.
void ossimImageUtil::setCopyAllFlag | ( | bool | flag | ) |
Sets the overview builder copy all flag.
flag |
Definition at line 1748 of file ossimImageUtil.cpp.
void ossimImageUtil::setCreateHistogramFastFlag | ( | bool | flag | ) |
Sets create histogram flag keyword CREATE_HISTOGRAM_FAST_KW used by processFile method.
flag | If true a histogram will be created in fast mode. |
Definition at line 1961 of file ossimImageUtil.cpp.
References addOption().
void ossimImageUtil::setCreateHistogramFlag | ( | bool | flag | ) |
Sets create histogram flag keyword CREATE_HISTOGRAM_KW used by processFile method.
flag | If true a full histogram will be created. |
Definition at line 1951 of file ossimImageUtil.cpp.
References addOption().
void ossimImageUtil::setCreateHistogramR0Flag | ( | bool | flag | ) |
Sets create histogram "R0" flag keyword CREATE_HISTOGRAM_R0_KW used by processFile method.
flag | If true a histogram will be created from R0. |
Definition at line 1971 of file ossimImageUtil.cpp.
References addOption().
void ossimImageUtil::setCreateOverviewsFlag | ( | bool | flag | ) |
Sets create overviews flag keyword CREATE_OVERVIEWS_KW used by processFile method.
flag | If true overview will be created if image does not already have the required or if the REBUILD_OVERVIEWS_KW is set. |
Definition at line 1655 of file ossimImageUtil.cpp.
References addOption().
void ossimImageUtil::setCreateThumbnailsFlag | ( | bool | flag | ) |
Sets create thumbnails flag keyword CREATE_THUMBNAILS_KW used by processFile method.
flag | If true thumbnail will be created if image does not already. |
Definition at line 1664 of file ossimImageUtil.cpp.
References addOption().
void ossimImageUtil::setDumpFilteredImageListFlag | ( | bool | flag | ) |
Sets the dump filteredImageList flag.
flag |
Definition at line 1769 of file ossimImageUtil.cpp.
|
private |
Sets the m_errorStatus for return on execute.
Definition at line 2200 of file ossimImageUtil.cpp.
References m_errorStatus, m_mutex, and status.
void ossimImageUtil::setInternalOverviewsFlag | ( | bool | flag | ) |
Sets the overview builder internal overviews flag.
flag |
Definition at line 1781 of file ossimImageUtil.cpp.
void ossimImageUtil::setNumberOfThreads | ( | ossim_uint32 | threads | ) |
Set number of threads to use.
This is only used in execute method if a directory is given to application to walk.
threads | Defaults to 1 if THREADS_KW is not found. |
Definition at line 2005 of file ossimImageUtil.cpp.
References addOption().
void ossimImageUtil::setNumberOfThreads | ( | const std::string & | threads | ) |
Definition at line 2010 of file ossimImageUtil.cpp.
References addOption().
void ossimImageUtil::setOutputDirectory | ( | const std::string & | directory | ) |
Sets the output directory.
Typically overviews and histograms are placed parallel to image file. This overrides.
directory |
Definition at line 1826 of file ossimImageUtil.cpp.
void ossimImageUtil::setOutputFileNamesFlag | ( | bool | flag | ) |
Sets the output file name flag OUTPUT_FILENAMES_KW.
If set to true all files that we can successfully open will be output.
flag |
Definition at line 1802 of file ossimImageUtil.cpp.
void ossimImageUtil::setOverrideFilteredImagesFlag | ( | bool | flag | ) |
Sets the override filtered images flag.
flag |
Definition at line 1814 of file ossimImageUtil.cpp.
void ossimImageUtil::setOverviewStopDimension | ( | ossim_uint32 | dimension | ) |
sets the overview stop dimension.
The overview builder will decimate the image until both dimensions are at or below this dimension.
dimension |
Definition at line 1898 of file ossimImageUtil.cpp.
References addOption().
void ossimImageUtil::setOverviewStopDimension | ( | const std::string & | dimension | ) |
Definition at line 1903 of file ossimImageUtil.cpp.
References addOption().
void ossimImageUtil::setOverviewType | ( | const std::string & | type | ) |
Sets key OVERVIEW_TYPE_KW.
Available types depends on plugins. Known types: ossim_tiff_box ( defualt ) ossim_tiff_nearest ossim_kakadu_nitf_j2k ( kakadu plugin ) gdal_tiff_nearest ( gdal plugin ) gdal_tiff_average ( gdal plugin ) gdal_hfa_nearest ( gdal plugin )
gdal_hfa_average ( gdal plugin )
type | One of the above. |
Definition at line 1832 of file ossimImageUtil.cpp.
|
private |
set reader or writer properties based on cast of pi.
Definition at line 1852 of file ossimImageUtil.cpp.
void ossimImageUtil::setRebuildHistogramFlag | ( | bool | flag | ) |
Sets the rebuild histogram flag keyword REBUILD_HISTOGRAM_KW used by processFile method.
flag | If true forces a rebuild of histogram even if image has one already. |
Definition at line 1688 of file ossimImageUtil.cpp.
References addOption().
void ossimImageUtil::setRebuildOverviewsFlag | ( | bool | flag | ) |
Sets the rebuild overview flag keyword REBUILD_OVERVIEWS_KW used by processFile method.
flag | If true forces a rebuild of overviews even if image has required number of reduced resolution data sets. |
Definition at line 1674 of file ossimImageUtil.cpp.
References addOption().
void ossimImageUtil::setScanForMinMax | ( | bool | flag | ) |
Sets scan for min/max flag keyword SCAN_MIN_MAX_KW used by processFile method.
flag | If true a file will be scanned for min/max and a file.omd will be written out. |
Definition at line 1702 of file ossimImageUtil.cpp.
References addOption().
void ossimImageUtil::setScanForMinMaxNull | ( | bool | flag | ) |
Sets scan for min/max/null flag keyword SCAN_MIN_MAX_KW used by processFile method.
flag | If true a file will be scanned for min/max/null and a file.omd will be written out. |
Definition at line 1712 of file ossimImageUtil.cpp.
References addOption().
void ossimImageUtil::setThumbnailStretchType | ( | const std::string & | value | ) |
value | can be of values none,auto-minmax,auto-percentile,std-stretch-1,std-stretch-2,std-stretch-3 |
Definition at line 2099 of file ossimImageUtil.cpp.
References addOption().
void ossimImageUtil::setThumbnailType | ( | const std::string & | value | ) |
value | can be of values png or jpeg |
Definition at line 2144 of file ossimImageUtil.cpp.
References addOption().
void ossimImageUtil::setTileSize | ( | ossim_uint32 | tileSize | ) |
Sets the tile size.
tileSize |
Definition at line 1908 of file ossimImageUtil.cpp.
References addOption().
|
private |
Expands variables in a command string.
Definition at line 2353 of file ossimImageUtil.cpp.
References ossimString::expandEnvironmentVariable(), gsubDate(), and substituteFileStrings().
Referenced by executeCommands().
|
private |
Expands file level variables in a command string.
Definition at line 2370 of file ossimImageUtil.cpp.
References ossimFilename::file(), ossimString::gsub(), ossimFilename::noExtension(), ossimFilename::path(), ossimString::string(), and true.
Referenced by substituteCommandString().
|
private |
Initializes arg parser and outputs usage.
Definition at line 1558 of file ossimImageUtil.cpp.
References addArguments(), ossimInit::addOptions(), ossimArgumentParser::getApplicationName(), ossimArgumentParser::getApplicationUsage(), ossimInit::instance(), ossimNotify(), ossimNotifyLevel_INFO, outputOverviewWriterTypes(), ossimApplicationUsage::setApplicationName(), and ossimApplicationUsage::write().
|
private |
Definition at line 536 of file ossimImageUtil.h.
Referenced by setErrorStatus().
|
private |
Definition at line 533 of file ossimImageUtil.h.
Referenced by ~ossimImageUtil().
|
private |
Hold images we never want to process.
Definition at line 539 of file ossimImageUtil.h.
Referenced by dumpFilteredImageList(), getFilteredImages(), initializeDefaultFilterList(), and isFiltered().
|
private |
Holds all options passed into intialize except writer props.
Definition at line 531 of file ossimImageUtil.h.
Referenced by addOption(), executeCommands(), getNextReaderPropIndex(), getNextWriterPropIndex(), getNumberOfThreads(), getOverviewStopDimension(), getOverviewType(), getThumbnailSize(), getThumbnailStretchType(), getThumbnailType(), getTileSize(), gsubDate(), and keyIsTrue().
|
private |
Definition at line 534 of file ossimImageUtil.h.
Referenced by addOption(), initializeDefaultFilterList(), and setErrorStatus().