|
OSSIM - Open Source Software Image Map
Version 1.9.0 (20180803)
|
ossimAutRegUtil class. More...
#include <ossimAutRegUtil.h>
Public Types | |
| enum | ossimAutRegOperation { OSSIM_AUTREG_OP_UNKNOWN = 0, OSSIM_AUTREG_OP_COREG = 1, OSSIM_AUTREG_OP_MASREG = 2 } |
| emumerated operations More... | |
Public Member Functions | |
| ossimAutRegUtil () | |
| default constructor More... | |
| ~ossimAutRegUtil () | |
| virtual destructor More... | |
| void | clear () |
| Disconnects and clears the dem and image layers?????????????. More... | |
| bool | initialize (ossimArgumentParser &ap) |
| Initialize method, using arguments, to be run prior to execute. More... | |
| void | initialize (const ossimKeywordlist &kwl) |
| Initialize method, using predefined kwl, to be run prior to execute. More... | |
| void | execute () |
| Execute method. More... | |
| void | summarizeSolution () const |
| Summarize method. More... | |
| void | saveAdjustment () |
| saveAdjustment method More... | |
| void | getOutputFilename (ossimFilename &f) const |
| Gets the output file name. More... | |
Public Member Functions inherited from ossimReferenced | |
| 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 |
Private Member Functions | |
| void | initialize () |
| Internal initialize method. More... | |
| bool | loadImages () |
| Internal load image pair method. More... | |
| bool | delineateROIs () |
| Internal correlation region determination. More... | |
| bool | populateObsSet () |
| Internal observation set poplulate method. More... | |
| bool | keyIsTrue (ossimRefPtr< ossimKeywordlist > kwl, const std::string &key) const |
| bool | isSrcFile (const ossimFilename &file) const |
| void | initializeSrcKwl () |
| Initializes m_srcKwl if option was set. More... | |
| void | initializeOcvKwl () |
| Initializes m_ocvKwl if option was set. More... | |
| void | initializeOaxKwl () |
| Initializes m_oaxKwl if option was set. More... | |
| void | addArguments (ossimArgumentParser &ap) |
| Adds application arguments to the argument parser. More... | |
| void | configureTieMeasGenerator () |
| Configures tie measurement generator. More... | |
| void | configureAdjustmentExecutive () |
| Configures adjustment executive. More... | |
| void | usage (ossimArgumentParser &ap) |
| Initializes arg parser and outputs usage. More... | |
| void | setReaderProps (ossimImageHandler *ih) const |
| Passes reader properties to single image handler if any. More... | |
| bool | setChainEntry (ossimRefPtr< ossimSingleImageChain > &chain, ossim_uint32 entryIndex) const |
| Sets entry for a chain. More... | |
| bool | addImgSource (const ossimFilename &file, ossim_uint32 entryIndex) |
| Method to create a chain and add to img layers from file. More... | |
| ossimRefPtr< ossimSingleImageChain > | createChain (const ossimFilename &file, ossim_uint32 entryIndex) const |
| Creates a ossimSingleImageChain from file. More... | |
| void | createIdentityProjection (int idx) |
| Sets the single image chain for identity operations view to an ossimImageViewAffineTransform. More... | |
| ossimAutRegUtil (const ossimAutRegUtil &obj) | |
| Hidden from use copy constructor. More... | |
| const ossimAutRegUtil & | operator= (const ossimAutRegUtil &rhs) |
| Hidden from use assignment operator. More... | |
Private Attributes | |
| ossimTieMeasurementGeneratorInterface * | m_tGen |
| Tie point generator interface. More... | |
| ossimRefPtr< ossimObject > | m_tGenObj |
| std::vector< ossimIrect > | m_roiRects |
| Correlation ROIs. More... | |
| bool | m_showMatchWindow |
| OpenCV match window display flag. More... | |
| ossimRefPtr< ossimAdjustmentExecutive > | m_adjExec |
| Adjustment executive interface. More... | |
| ossimRefPtr< ossimObservationSet > | m_obsSet |
| Observation set. More... | |
| ossimColumnVector3d | m_LatLonHgtSigmas |
| A priori tie point sigmas. More... | |
| ossimColumnVector3d | m_LatLonHgtControlSigmas |
| std::ostream * | m_rep |
| Report stream pointer. More... | |
| std::vector< ossimRefPtr< ossimSingleImageChain > > | m_imgLayer |
| Array of image source chains. More... | |
| ossimRefPtr< ossimKeywordlist > | m_kwl |
| Hold all options passed into intialize. More... | |
| ossimRefPtr< ossimKeywordlist > | m_ocvKwl |
| Hold contents of OpenCV config file if –ocv_config_file is used. More... | |
| ossimRefPtr< ossimKeywordlist > | m_oaxKwl |
| Hold contents of oax config file if –oax_config_file is used. More... | |
| ossimRefPtr< ossimKeywordlist > | m_srcKwl |
| Hold contents of src file if –src is used. More... | |
| ossimAutRegOperation | m_operation |
| Enumerated operation to perform. More... | |
| ossimRefPtr< ossimImageViewAffineTransform > | m_ivt [2] |
| Image view transform(IVT). More... | |
| ossimRefPtr< ossimImageGeometry > | m_geom [2] |
| The image geometry. More... | |
| bool | m_controlImage [2] |
| Control image flags. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from ossimReferenced | |
| virtual | ~ossimReferenced () |
ossimAutRegUtil class.
This is a utility class to register two images.
Definition at line 45 of file ossimAutRegUtil.h.
emumerated operations
| Enumerator | |
|---|---|
| OSSIM_AUTREG_OP_UNKNOWN | |
| OSSIM_AUTREG_OP_COREG | |
| OSSIM_AUTREG_OP_MASREG | |
Definition at line 49 of file ossimAutRegUtil.h.
| ossimAutRegUtil::ossimAutRegUtil | ( | ) |
default constructor
Definition at line 105 of file ossimAutRegUtil.cpp.
| ossimAutRegUtil::~ossimAutRegUtil | ( | ) |
virtual destructor
Definition at line 168 of file ossimAutRegUtil.cpp.
|
private |
|
private |
Adds application arguments to the argument parser.
| ap | Parser to add to. |
Definition at line 184 of file ossimAutRegUtil.cpp.
References ossimApplicationUsage::addCommandLineOption(), ossimArgumentParser::getApplicationName(), ossimArgumentParser::getApplicationUsage(), ossimApplicationUsage::setCommandLineUsage(), and ossimApplicationUsage::setDescription().
Referenced by usage().
|
private |
Method to create a chain and add to img layers from file.
| file | Image to open. entryIndex Entry to open. |
Definition at line 1474 of file ossimAutRegUtil.cpp.
| void ossimAutRegUtil::clear | ( | ) |
Disconnects and clears the dem and image layers?????????????.
Definition at line 211 of file ossimAutRegUtil.cpp.
References m_imgLayer.
Referenced by initialize().
|
private |
Configures adjustment executive.
Definition at line 1020 of file ossimAutRegUtil.cpp.
|
private |
Configures tie measurement generator.
Definition at line 954 of file ossimAutRegUtil.cpp.
|
private |
Creates a ossimSingleImageChain from file.
| file | File to open. |
| entryIndex | Entry to open. options like histogram stretches. |
Definition at line 1544 of file ossimAutRegUtil.cpp.
|
private |
Sets the single image chain for identity operations view to an ossimImageViewAffineTransform.
Definition at line 1664 of file ossimAutRegUtil.cpp.
|
private |
Internal correlation region determination.
Definition at line 738 of file ossimAutRegUtil.cpp.
| void ossimAutRegUtil::execute | ( | ) |
Execute method.
Performs the registration process.
Definition at line 1120 of file ossimAutRegUtil.cpp.
| void ossimAutRegUtil::getOutputFilename | ( | ossimFilename & | f | ) | const |
Gets the output file name.
| f | Initialized by this with the filename. |
Definition at line 1307 of file ossimAutRegUtil.cpp.
References ossimKeywordlist::findKey(), m_kwl, ossimKeywordNames::OUTPUT_FILE_KW, and ossimString::string().
| bool ossimAutRegUtil::initialize | ( | ossimArgumentParser & | ap | ) |
Initialize method, using arguments, to be run prior to execute.
| ap | Arg parser to initialize from. |
Definition at line 233 of file ossimAutRegUtil.cpp.
| void ossimAutRegUtil::initialize | ( | const ossimKeywordlist & | kwl | ) |
Initialize method, using predefined kwl, to be run prior to execute.
Definition at line 453 of file ossimAutRegUtil.cpp.
References ossimKeywordlist::addList(), clear(), ossimKeywordlist::clear(), initialize(), and m_kwl.
|
private |
Internal initialize method.
Definition at line 467 of file ossimAutRegUtil.cpp.
Referenced by initialize().
|
private |
Initializes m_oaxKwl if option was set.
Definition at line 1437 of file ossimAutRegUtil.cpp.
|
private |
Initializes m_ocvKwl if option was set.
Definition at line 1400 of file ossimAutRegUtil.cpp.
|
private |
Initializes m_srcKwl if option was set.
Definition at line 1363 of file ossimAutRegUtil.cpp.
|
private |
Definition at line 1313 of file ossimAutRegUtil.cpp.
References ossimString::downcase(), and ossimFilename::ext().
|
private |
Definition at line 1735 of file ossimAutRegUtil.cpp.
References ossimKeywordlist::findKey(), ossimString::toBool(), and ossimRefPtr< T >::valid().
|
private |
Internal load image pair method.
Definition at line 638 of file ossimAutRegUtil.cpp.
|
private |
Hidden from use assignment operator.
Definition at line 159 of file ossimAutRegUtil.cpp.
|
private |
Internal observation set poplulate method.
Definition at line 879 of file ossimAutRegUtil.cpp.
| void ossimAutRegUtil::saveAdjustment | ( | ) |
saveAdjustment method
Definition at line 1258 of file ossimAutRegUtil.cpp.
References ossimImageGeometry::getAdjustableParameterInterface(), ossimAdjustableParameterInterface::getAdjustment(), ossimAdjustableParameterInterface::getBaseObject(), ossim::getFormattedTime(), ossimObservationSet::getImageGeom(), ossimObservationSet::imageFile(), m_controlImage, m_geom, m_imgLayer, m_obsSet, ossimObservationSet::numImages(), ossimObject::saveState(), ossimAdjustableParameterInterface::setAdjustment(), ossimAdjustableParameterInterface::setAdjustmentDescription(), and ossimKeywordlist::write().
|
private |
Sets entry for a chain.
| chain | Chain to set up. |
| entryIndex | Zero based index. |
Definition at line 1529 of file ossimAutRegUtil.cpp.
References ossimSingleImageChain::getImageHandler(), ossimImageHandler::setCurrentEntry(), and ossimRefPtr< T >::valid().
|
private |
Passes reader properties to single image handler if any.
| ih | Image handler to set properties on. |
Definition at line 1502 of file ossimAutRegUtil.cpp.
References m_kwl, ossimKeywordlist::numberOf(), and ossimRefPtr< T >::valid().
| void ossimAutRegUtil::summarizeSolution | ( | ) | const |
Summarize method.
|
private |
Initializes arg parser and outputs usage.
Definition at line 1326 of file ossimAutRegUtil.cpp.
References addArguments(), ossimInit::addOptions(), ossimArgumentParser::getApplicationName(), ossimArgumentParser::getApplicationUsage(), ossimInit::instance(), ossimNotify(), ossimNotifyLevel_INFO, ossimApplicationUsage::setApplicationName(), and ossimApplicationUsage::write().
|
private |
|
private |
Control image flags.
Definition at line 285 of file ossimAutRegUtil.h.
Referenced by saveAdjustment().
|
private |
The image geometry.
In chip mode this will be from the input image. So this may or may not have a map projection. In any other mode it will the view or output geometry which will be a map projection.
Definition at line 282 of file ossimAutRegUtil.h.
Referenced by saveAdjustment().
|
private |
Array of image source chains.
Definition at line 254 of file ossimAutRegUtil.h.
Referenced by clear(), and saveAdjustment().
|
private |
Image view transform(IVT).
Only set/used in "chip"(identity) operation as the IVT for the resampler(ossimImageRenderer).
Definition at line 275 of file ossimAutRegUtil.h.
|
private |
Hold all options passed into intialize.
Definition at line 257 of file ossimAutRegUtil.h.
Referenced by getOutputFilename(), initialize(), and setReaderProps().
|
private |
Definition at line 246 of file ossimAutRegUtil.h.
|
private |
A priori tie point sigmas.
Definition at line 245 of file ossimAutRegUtil.h.
|
private |
Hold contents of oax config file if –oax_config_file is used.
Definition at line 263 of file ossimAutRegUtil.h.
|
private |
|
private |
Hold contents of OpenCV config file if –ocv_config_file is used.
Definition at line 260 of file ossimAutRegUtil.h.
|
private |
Enumerated operation to perform.
Definition at line 269 of file ossimAutRegUtil.h.
|
private |
Report stream pointer.
Definition at line 250 of file ossimAutRegUtil.h.
|
private |
Correlation ROIs.
Definition at line 230 of file ossimAutRegUtil.h.
|
private |
OpenCV match window display flag.
Definition at line 233 of file ossimAutRegUtil.h.
|
private |
Hold contents of src file if –src is used.
Definition at line 266 of file ossimAutRegUtil.h.
|
private |
Tie point generator interface.
Definition at line 226 of file ossimAutRegUtil.h.
|
private |
Definition at line 227 of file ossimAutRegUtil.h.
1.8.14