#include <ImageVariableGroup.h>
Inheritance diagram for HuginBase::ConstImageVariableGroup:

It is useful to group the image variables to those that are shared because of the same setup: for example lens variables, sensor variables, exposures of particular brackets, positions of particular stacks.
We can partition the set of images in a panorama based on shared (linked) values for some of the variables in the group. (For example, we can Partion the images by Lens given that a lens consists of a projection type, horizontal field of view, and distortion coefficents.) The parts are assigned a number. (e.g. Lens number) We can also unlink a variable across a part, if it is part of the group of variables (For example, it might be necessary to unlink the centre shift of a particular lens). Note that if all the variables in a part are unlinked, this is equivalent to each image being in a separate part, which changes the part numbers. We can also switch an image into a different partition by changing what its variables are linked to.
Another object can listen to changes of part allocations in an ImageVariableGroup, it should inherit from ImageVariableGroupObserver, and register itself with the ImageVariableGroup(s) it wants to hear from.
Definition at line 64 of file ImageVariableGroup.h.
|
|
Definition at line 67 of file ImageVariableGroup.h. |
|
||||||||||||
|
constructor Assign the ImageVariableGroup the image variables and the panorama that it should be handling. Definition at line 31 of file ImageVariableGroup.cpp. References setPartNumbers(). |
|
|
destructor
Definition at line 40 of file ImageVariableGroup.cpp. |
|
|
get the number of parts.
Definition at line 1193 of file ImageVariableGroup.cpp. Referenced by PanoOperation::AssignStacksOperation::GetInternalCommand(), PanoOperation::ChangeStackOperation::GetInternalCommand(), PanoOperation::ChangeLensOperation::GetInternalCommand(), HuginBase::ConstStandardImageVariableGroups::getLens(), PanoOperation::ChangeStackOperation::IsEnabled(), PanoOperation::NewStackOperation::IsEnabled(), PanoOperation::ChangeLensOperation::IsEnabled(), PanoOperation::NewLensOperation::IsEnabled(), main(), ImagesTreeCtrl::panoramaImagesChanged(), PT::wxLoadPTProjectCmd::processPanorama(), OptimizePhotometricPanel::runOptimizer(), and HuginBase::SmartOptimise::smartOptimize(). |
|
|
Get a part number from an image number.
Definition at line 44 of file ImageVariableGroup.cpp. References DEBUG_ASSERT, HuginBase::PanoramaData::getNrOfImages(), m_image_part_numbers, and m_pano. Referenced by PossiblePano::GeneratePanorama(), PanoOperation::LoadLensOperation::GetInternalCommand(), HuginBase::ConstStandardImageVariableGroups::getLens(), LensCalFrame::GetPanorama(), main(), PanoDetector::matchMultiRow(), ImagesTreeCtrl::panoramaImagesChanged(), PT::ChangePartNumberCmd::processPanorama(), PT::UpdateCropFactorCmd::processPanorama(), and PT::wxAddImagesCmd::processPanorama(). |
|
||||||||||||
|
Get the linked status of a particular variable for a given part number.
Definition at line 51 of file ImageVariableGroup.cpp. Referenced by main(), and OptimizePhotometricPanel::runOptimizer(). |
|
|
Set the part numbers in m_image_part_numbers, and notify observers of changes. This should be called whenever the images change. Definition at line 1203 of file ImageVariableGroup.cpp. Referenced by ConstImageVariableGroup(), and HuginBase::ImageVariableGroup::unlinkVariablePart(). |
|
|
Update the part numbers, call this when the panorama changes.
Definition at line 1198 of file ImageVariableGroup.cpp. Referenced by processImg(), PT::ChangePartImagesLinkingCmd::processPanorama(), PT::wxApplyTemplateCmd::processPanorama(), and UnLinkVars(). |
|
|
The part numbers for each image. The image number is used as an index. Definition at line 279 of file ImageVariableGroup.h. Referenced by getPartNumber(). |
|
|
Definition at line 281 of file ImageVariableGroup.h. |
|
|
The panorama this group works on.
Reimplemented in HuginBase::ImageVariableGroup. Definition at line 274 of file ImageVariableGroup.h. Referenced by getPartNumber(). |
|
|
The set of variables which make up this group.
Definition at line 271 of file ImageVariableGroup.h. |
1.3.9.1