|
Hugin trunk 0.1
|
All variables of a source image. More...
#include <SrcPanoImage.h>

Public Member Functions | |
| SrcPanoImage () | |
| SrcPanoImage (const BaseSrcPanoImage::Projection projection, const double hfov, const vigra::Size2D size) | |
| virtual | ~SrcPanoImage () |
| void | resize (const vigra::Size2D &size, VariableMap *potentialLinkedVars) |
"resize" image, adjusts all distortion coefficients for usage with a source image of size size potentialLinkedVars contains a map of potential linked variables which needs an update afterwards to correctly handle the linkage, when passing a nullptr these variables are directly updated in this function | |
| bool | isInside (vigra::Point2D p, bool ignoreMasks=false) const |
| check if a coordinate is inside the source image | |
| bool | horizontalWarpNeeded () |
| bool | getCorrectTCA () const |
| void | setCropMode (CropMode val) |
| Set the crop mode. | |
| bool | isCircularCrop () const |
| returns true, if projection requires cicular crop | |
| void | setSize (vigra::Size2D val) |
| Set the image size in pixels. | |
| hugin_utils::FDiff2D | getRadialDistortionCenter () const |
| hugin_utils::FDiff2D | getRadialVigCorrCenter () const |
| double | getExposure () const |
| void | setExposure (const double &val) |
| int | getWidth () const |
| Get the width of the image in pixels. | |
| int | getHeight () const |
| Get the height of the image in pixels. | |
| double | getVar (const std::string &name) const |
| void | setVar (const std::string &name, double val) |
| VariableMap | getVariableMap () const |
| Return all the image variables in a variable map. | |
| const int | getExifDateTime (struct tm *datetime) const |
| try to convert Exif date time string to struct tm | |
| void | unlinkRadialVigCorrCoeff () |
| unlinking vignetting parameters should unlink the vignetting correction mode | |
| void | unlinkRadialVigCorrCenterShift () |
| unlinking vignetting parameters should unlink the vignetting correction mode | |
| void | unlinkEMoRParams () |
| unlinking the EMOR parameters should unlink the correction mode. | |
| void | linkRadialVigCorrCoeff (SrcPanoImage *target) |
| linking vignetting parameters should link the vignetting correction mode | |
| void | linkRadialVigCorrCenterShift (SrcPanoImage *target) |
| linking vignetting parameters should link the vignetting correction mode | |
| void | linkEMoRParams (SrcPanoImage *target) |
| linking the EMOR parameters should link the correction mode. | |
| void | linkStack (SrcPanoImage *target) |
| bool | checkImageSizeKnown () |
| check if the image size is known, if try to load the information from the file | |
| bool | readEXIF () |
| try to fill out information about the image, by examining the exif data | |
| bool | applyEXIFValues (bool applyEVValue=true) |
| apply values found in EXIF data to SrcPanoImage class, call readEXIF() before to initialize some values | |
| double | calcExifExposureValue () |
| calculate exposure value | |
| void | updateFocalLength (double newFocalLength) |
| updates the focal length, changes the hfov to reflect thew newFocalLength | |
| void | updateCropFactor (double focalLength, double newCropFactor) |
| updates the crop factor, the hfov is calculates so that focal length remains the same | |
| bool | readCropfactorFromDB () |
| tries to read cropfactor from lens database you need to call SrcPanoImage::readEXIF before to fill some values | |
| bool | readProjectionFromDB (const bool ignoreFovRectilinear=true) |
| tries to read projection and crop area from lens database you need to call SrcPanoImage::readEXIF before to fill some values | |
| bool | readDistortionFromDB () |
| tries to read distortion data from lens database you need to call SrcPanoImage::readEXIF before to fill some values | |
| bool | readVignettingFromDB () |
| tries to read vignetting data from lens database you need to call SrcPanoImage::readEXIF before to fill some values | |
| std::string | getDBLensName () const |
| constructs the lens name for the database it is the lensname if known, for compact cameras it is constructed from camera maker and camera model | |
| bool | hasMasks () const |
| returns true, if image has masks associated | |
| bool | hasPositiveMasks () const |
| returns true, if image has positive masks | |
| bool | hasActiveMasks () const |
| returns true, if image has active masks | |
| void | addMask (MaskPolygon newMask) |
| add newMask to list of masks | |
| void | addActiveMask (MaskPolygon newMask) |
| add newMask to list of active masks | |
| void | clearActiveMasks () |
| clears list of active masks | |
| void | changeMaskType (unsigned int index, HuginBase::MaskPolygon::MaskType newType) |
| changes type of mask with index to given newType | |
| void | deleteMask (unsigned int index) |
| delete mask at index | |
| void | deleteAllMasks () |
| delete all masks | |
| void | printMaskLines (std::ostream &o, unsigned int newImgNr) const |
| writes all mask lines to stream, using given image number | |
| bool | isInsideMasks (vigra::Point2D p) const |
| returns true, if point p is inside of one mask polygon | |
Public Member Functions inherited from HuginBase::BaseSrcPanoImage | |
| bool | operator== (const BaseSrcPanoImage &other) const |
| Check that the variables match. | |
| BaseSrcPanoImage () | |
| virtual | ~BaseSrcPanoImage () |
Static Public Member Functions | |
| static double | calcHFOV (SrcPanoImage::Projection proj, double fl, double crop, vigra::Size2D imageSize) |
| calculate hfov of an image given focal length, image size and crop factor | |
| static double | calcFocalLength (SrcPanoImage::Projection proj, double hfov, double crop, vigra::Size2D imageSize) |
| calcualte focal length, given crop factor and hfov | |
| static double | calcCropFactor (SrcPanoImage::Projection proj, double hfov, double focalLength, vigra::Size2D imageSize) |
| calculate crop factor, given focal length and hfov | |
Private Member Functions | |
| bool | trustExivOrientation () |
| Check if Exiv orientation tag can be trusted. | |
Additional Inherited Members | |
Public Types inherited from HuginBase::BaseSrcPanoImage | |
| enum | Projection { RECTILINEAR = 0 , PANORAMIC = 1 , CIRCULAR_FISHEYE = 2 , FULL_FRAME_FISHEYE = 3 , EQUIRECTANGULAR = 4 , FISHEYE_ORTHOGRAPHIC = 8 , FISHEYE_STEREOGRAPHIC = 10 , FISHEYE_EQUISOLID = 21 , FISHEYE_THOBY = 20 } |
| enum | CropMode { NO_CROP =0 , CROP_RECTANGLE =1 , CROP_CIRCLE =2 } |
| enum | VignettingCorrMode { VIGCORR_NONE = 0 , VIGCORR_RADIAL = 1 , VIGCORR_FLATFIELD = 2 , VIGCORR_DIV = 4 } |
| vignetting correction mode (bitflags, no real enum) More... | |
| enum | ResponseType { RESPONSE_EMOR =0 , RESPONSE_LINEAR , RESPONSE_GAMMA , RESPONSE_FILE , RESPONSE_ICC } |
All variables of a source image.
In the long term, this simplified class will replace PanoImage and Image options and the variables array. All image variables are stored in this class, regardless of what the variable is attached to (lens, sensor, position).
Definition at line 194 of file SrcPanoImage.h.
|
inline |
Definition at line 198 of file SrcPanoImage.h.
|
inline |
Definition at line 201 of file SrcPanoImage.h.
|
inlinevirtual |
Definition at line 208 of file SrcPanoImage.h.
| void HuginBase::SrcPanoImage::addActiveMask | ( | MaskPolygon | newMask | ) |
add newMask to list of active masks
Definition at line 1036 of file SrcPanoImage.cpp.
References threshold().
| void HuginBase::SrcPanoImage::addMask | ( | MaskPolygon | newMask | ) |
add newMask to list of masks
Definition at line 1029 of file SrcPanoImage.cpp.
References threshold().
apply values found in EXIF data to SrcPanoImage class, call readEXIF() before to initialize some values
Definition at line 628 of file SrcPanoImage.cpp.
References calcExifExposureValue(), calcHFOV(), DEBUG_DEBUG, HuginBase::BaseSrcPanoImage::EQUIRECTANGULAR, getSize(), hugin_utils::stringToDouble(), threshold(), and hugin_utils::TDiff2D< T >::y.
Referenced by main(), PanoCommand::wxApplyTemplateCmd::processPanorama(), FindPanoDialog::SearchInDir(), ImageLineList::SetFilename(), and PerspectivePanel::SetImage().
|
static |
calculate crop factor, given focal length and hfov
Definition at line 954 of file SrcPanoImage.cpp.
References HuginBase::BaseSrcPanoImage::CIRCULAR_FISHEYE, DEBUG_WARN, HuginBase::BaseSrcPanoImage::EQUIRECTANGULAR, HuginBase::BaseSrcPanoImage::FISHEYE_EQUISOLID, HuginBase::BaseSrcPanoImage::FISHEYE_ORTHOGRAPHIC, HuginBase::BaseSrcPanoImage::FISHEYE_STEREOGRAPHIC, HuginBase::BaseSrcPanoImage::FISHEYE_THOBY, HuginBase::BaseSrcPanoImage::FULL_FRAME_FISHEYE, M_PI, HuginBase::BaseSrcPanoImage::PANORAMIC, HuginBase::BaseSrcPanoImage::RECTILINEAR, and threshold().
Referenced by HuginBase::LensDB::SaveLensDataFromPano().
| double HuginBase::SrcPanoImage::calcExifExposureValue | ( | ) |
calculate exposure value
Definition at line 987 of file SrcPanoImage.cpp.
References threshold().
Referenced by applyEXIFValues().
|
static |
calcualte focal length, given crop factor and hfov
Definition at line 909 of file SrcPanoImage.cpp.
References HuginBase::BaseSrcPanoImage::CIRCULAR_FISHEYE, DEBUG_WARN, HuginBase::BaseSrcPanoImage::EQUIRECTANGULAR, HuginBase::BaseSrcPanoImage::FISHEYE_EQUISOLID, HuginBase::BaseSrcPanoImage::FISHEYE_ORTHOGRAPHIC, HuginBase::BaseSrcPanoImage::FISHEYE_STEREOGRAPHIC, HuginBase::BaseSrcPanoImage::FISHEYE_THOBY, HuginBase::BaseSrcPanoImage::FULL_FRAME_FISHEYE, M_PI, HuginBase::BaseSrcPanoImage::PANORAMIC, HuginBase::BaseSrcPanoImage::RECTILINEAR, threshold(), and hugin_utils::TDiff2D< T >::x.
Referenced by HuginLines::_getFilteredLines(), ApplyLensDBParameters(), HuginBase::Lens::getFocalLength(), HFOVDialog::OnHFOVChanged(), ImagesPanel::OnLensTypeChanged(), HFOVDialog::OnLoadLensParameters(), ImagesPanel::OnSelectionChanged(), BrowsePTOFilesDialog::ParsePTOFile(), readProjectionFromDB(), HuginBase::LensDB::SaveLensDataFromPano(), SaveLensParameters(), and PerspectivePanel::SetImage().
|
static |
calculate hfov of an image given focal length, image size and crop factor
Definition at line 858 of file SrcPanoImage.cpp.
References HuginBase::BaseSrcPanoImage::CIRCULAR_FISHEYE, DEBUG_WARN, HuginBase::BaseSrcPanoImage::EQUIRECTANGULAR, HuginBase::BaseSrcPanoImage::FISHEYE_EQUISOLID, HuginBase::BaseSrcPanoImage::FISHEYE_ORTHOGRAPHIC, HuginBase::BaseSrcPanoImage::FISHEYE_STEREOGRAPHIC, HuginBase::BaseSrcPanoImage::FISHEYE_THOBY, HuginBase::BaseSrcPanoImage::FULL_FRAME_FISHEYE, M_PI, HuginBase::BaseSrcPanoImage::PANORAMIC, HuginBase::BaseSrcPanoImage::RECTILINEAR, threshold(), and hugin_utils::TDiff2D< T >::x.
Referenced by applyEXIFValues(), ApplyLensDBParameters(), LensCalImageCtrl::GenerateRemappedImage(), PanoOperation::ResetOperation::GetInternalCommand(), LensCalFrame::GetPanorama(), HFOVDialog::HFOVDialog(), HFOVDialog::OnCropFactorChanged(), HFOVDialog::OnFocalLengthChanged(), ImagesPanel::OnFocalLengthChanged(), LensCalFrame::OnShowDistortionGraph(), HFOVDialog::OnTypeChanged(), readCropfactorFromDB(), PerspectivePanel::ReadInputs(), readProjectionFromDB(), HuginBase::LensDB::SaveLensDataFromPano(), SaveLensParameters(), updateCropFactor(), and updateFocalLength().
| void HuginBase::SrcPanoImage::changeMaskType | ( | unsigned int | index, |
| HuginBase::MaskPolygon::MaskType | newType | ||
| ) |
changes type of mask with index to given newType
Definition at line 1082 of file SrcPanoImage.cpp.
References threshold().
| bool HuginBase::SrcPanoImage::checkImageSizeKnown | ( | ) |
check if the image size is known, if try to load the information from the file
Definition at line 286 of file SrcPanoImage.cpp.
References getHeight(), getWidth(), setSize(), and threshold().
Referenced by GenerateSequenceDialog::DoGeneratePanorama(), readEXIF(), and PerspectivePanel::SetImage().
| void HuginBase::SrcPanoImage::clearActiveMasks | ( | ) |
clears list of active masks
Definition at line 1043 of file SrcPanoImage.cpp.
References threshold().
| void HuginBase::SrcPanoImage::deleteAllMasks | ( | ) |
delete all masks
Definition at line 1102 of file SrcPanoImage.cpp.
References threshold().
Referenced by HuginLines::_getFilteredLines().
| bool HuginBase::SrcPanoImage::getCorrectTCA | ( | ) | const |
Definition at line 181 of file SrcPanoImage.cpp.
References threshold().
| std::string HuginBase::SrcPanoImage::getDBLensName | ( | ) | const |
constructs the lens name for the database it is the lensname if known, for compact cameras it is constructed from camera maker and camera model
Definition at line 710 of file SrcPanoImage.cpp.
References threshold().
Referenced by ApplyLensDBParameters(), print_result(), readDistortionFromDB(), readProjectionFromDB(), readVignettingFromDB(), and SaveLensParameters().
try to convert Exif date time string to struct tm
Definition at line 1136 of file SrcPanoImage.cpp.
References threshold().
Referenced by PossiblePano::GetDateTime(), and FormatString::GetExifDateTime().
| double HuginBase::SrcPanoImage::getExposure | ( | ) | const |
Definition at line 218 of file SrcPanoImage.cpp.
References threshold().
Referenced by PreviewDifferenceTool::AfterDrawImagesEvent(), AutoPanoSiftStack::automatch(), AutoPanoSiftMultiRowStack::automatch(), and TextureManager::DrawImage().
|
inline |
Get the height of the image in pixels.
Should not be used, use getSize().height() instead. This is here for compatiblity with PnaoImage, but should be removed.
Definition at line 276 of file SrcPanoImage.h.
References getSize().
Referenced by checkImageSizeKnown(), HuginBase::PTools::Transform::createInvTransform(), CreateMissingImages(), HuginBase::PTools::Transform::createTransform(), PanoOperation::ChangeLensOperation::GetInternalCommand(), PanoOperation::ChangeStackOperation::GetInternalCommand(), CPEditorPanel::OnTextPointChange(), HuginQueue::detail::PrintDetailInfo(), PanoCommand::wxAddCtrlPointGridCmd::processPanorama(), readEXIF(), and SetCropToImages().
| hugin_utils::FDiff2D HuginBase::SrcPanoImage::getRadialDistortionCenter | ( | ) | const |
Definition at line 191 of file SrcPanoImage.cpp.
References threshold().
Referenced by MaskEditorPanel::setImage().
| hugin_utils::FDiff2D HuginBase::SrcPanoImage::getRadialVigCorrCenter | ( | ) | const |
Definition at line 197 of file SrcPanoImage.cpp.
References threshold().
Referenced by HuginBase::AllPointSampler::sampleAllPanoPoints(), and HuginBase::RandomPointSampler::sampleRandomPanoPoints().
Definition at line 238 of file SrcPanoImage.cpp.
References DEBUG_ERROR, DEBUG_TRACE, and threshold().
Referenced by HuginBase::OptVarSpec::get(), HuginBase::PTOptEstimator::leastSquaresEstimate(), LensCalFrame::Optimize(), and Parser::UpdateSingleVar().
| VariableMap HuginBase::SrcPanoImage::getVariableMap | ( | ) | const |
Return all the image variables in a variable map.
Returns a map of all the variables for this image. It is adivisable to use the individual getX functions where apropriate instead.
Definition at line 269 of file SrcPanoImage.cpp.
References DEBUG_TRACE.
|
inline |
Get the width of the image in pixels.
Should not be used, use getSize().width() instead. This is here for compatiblity with PnaoImage, but should be removed.
Definition at line 266 of file SrcPanoImage.h.
References getSize().
Referenced by checkImageSizeKnown(), HuginBase::PTools::Transform::createInvTransform(), CreateMissingImages(), HuginBase::PTools::Transform::createTransform(), CPEditorPanel::estimateAndAddOtherPoint(), PanoOperation::ChangeLensOperation::GetInternalCommand(), PanoOperation::ChangeStackOperation::GetInternalCommand(), CPEditorPanel::NewPointChange(), CPEditorPanel::OnTextPointChange(), HuginQueue::detail::PrintDetailInfo(), PanoCommand::wxAddCtrlPointGridCmd::processPanorama(), readEXIF(), and SetCropToImages().
| bool HuginBase::SrcPanoImage::hasActiveMasks | ( | ) | const |
returns true, if image has active masks
Definition at line 1070 of file SrcPanoImage.cpp.
References threshold().
Referenced by isInsideMasks().
| bool HuginBase::SrcPanoImage::hasMasks | ( | ) | const |
returns true, if image has masks associated
Definition at line 1049 of file SrcPanoImage.cpp.
References threshold().
Referenced by HuginBase::Panorama::printPanoramaScript(), and MaskEditorPanel::UpdateImage().
| bool HuginBase::SrcPanoImage::hasPositiveMasks | ( | ) | const |
returns true, if image has positive masks
Definition at line 1054 of file SrcPanoImage.cpp.
References threshold().
| bool HuginBase::SrcPanoImage::horizontalWarpNeeded | ( | ) |
Definition at line 126 of file SrcPanoImage.cpp.
References HuginBase::BaseSrcPanoImage::CIRCULAR_FISHEYE, HuginBase::BaseSrcPanoImage::EQUIRECTANGULAR, HuginBase::BaseSrcPanoImage::FISHEYE_EQUISOLID, HuginBase::BaseSrcPanoImage::FISHEYE_ORTHOGRAPHIC, HuginBase::BaseSrcPanoImage::FISHEYE_STEREOGRAPHIC, HuginBase::BaseSrcPanoImage::FISHEYE_THOBY, HuginBase::BaseSrcPanoImage::FULL_FRAME_FISHEYE, HuginBase::BaseSrcPanoImage::PANORAMIC, HuginBase::BaseSrcPanoImage::RECTILINEAR, and threshold().
| bool HuginBase::SrcPanoImage::isCircularCrop | ( | ) | const |
returns true, if projection requires cicular crop
Definition at line 175 of file SrcPanoImage.cpp.
References HuginBase::BaseSrcPanoImage::CIRCULAR_FISHEYE, HuginBase::BaseSrcPanoImage::FISHEYE_ORTHOGRAPHIC, HuginBase::BaseSrcPanoImage::FISHEYE_THOBY, and threshold().
Referenced by ApplyLensDBParameters(), GLPreviewFrame::LoadImages(), HFOVDialog::OnLoadLensParameters(), readProjectionFromDB(), and MaskEditorPanel::setImage().
check if a coordinate is inside the source image
Definition at line 146 of file SrcPanoImage.cpp.
References HuginBase::BaseSrcPanoImage::CROP_CIRCLE, HuginBase::BaseSrcPanoImage::CROP_RECTANGLE, isInsideMasks(), HuginBase::BaseSrcPanoImage::NO_CROP, threshold(), and hugin_utils::TDiff2D< T >::x.
Referenced by PreviewColorPickerTool::CalcCorrection(), HuginBase::CalculateImageOverlap::calculate(), CheckAndAddPoint(), HuginBase::getCPinMasks(), ToolHelper::GetImagesUnderPos(), TexCoordRemapper::GetNextFaceCoordinates(), VertexCoordRemapper::GetNextFaceCoordinates(), HuginBase::AllPointSampler::sampleAllPanoPoints(), HuginBase::RandomPointSampler::sampleRandomPanoPoints(), and HuginBase::CalculateOptimalROI::stackPixel().
| bool HuginBase::SrcPanoImage::isInsideMasks | ( | vigra::Point2D | p | ) | const |
returns true, if point p is inside of one mask polygon
Definition at line 1108 of file SrcPanoImage.cpp.
References hasActiveMasks(), and threshold().
Referenced by isInside().
|
inline |
linking the EMOR parameters should link the correction mode.
Definition at line 340 of file SrcPanoImage.h.
References threshold().
|
inline |
linking vignetting parameters should link the vignetting correction mode
Definition at line 332 of file SrcPanoImage.h.
References threshold().
|
inline |
linking vignetting parameters should link the vignetting correction mode
Definition at line 324 of file SrcPanoImage.h.
|
inline |
Definition at line 346 of file SrcPanoImage.h.
writes all mask lines to stream, using given image number
Definition at line 1075 of file SrcPanoImage.cpp.
References threshold().
Referenced by HuginBase::Panorama::printPanoramaScript().
| bool HuginBase::SrcPanoImage::readCropfactorFromDB | ( | ) |
tries to read cropfactor from lens database you need to call SrcPanoImage::readEXIF before to fill some values
Definition at line 687 of file SrcPanoImage.cpp.
References calcHFOV(), HuginBase::LensDB::LensDB::GetSingleton(), getSize(), and threshold().
Referenced by ImageLineList::SetFilename(), and PerspectivePanel::SetImage().
| bool HuginBase::SrcPanoImage::readDistortionFromDB | ( | ) |
tries to read distortion data from lens database you need to call SrcPanoImage::readEXIF before to fill some values
Definition at line 817 of file SrcPanoImage.cpp.
References getDBLensName(), HuginBase::LensDB::LensDB::GetSingleton(), and threshold().
Referenced by PerspectivePanel::OnLoadDistortion(), and FindPanoDialog::SearchInDir().
| bool HuginBase::SrcPanoImage::readEXIF | ( | ) |
try to fill out information about the image, by examining the exif data
Definition at line 309 of file SrcPanoImage.cpp.
References checkImageSizeKnown(), DEBUG_DEBUG, hugin_utils::doubleToString(), HuginBase::Exiv2Helper::getCropFactor(), HuginBase::Exiv2Helper::getExiv2GPSLatitude(), HuginBase::Exiv2Helper::getExiv2GPSLongitude(), HuginBase::Exiv2Helper::getExiv2ValueDouble(), HuginBase::Exiv2Helper::getExiv2ValueLong(), HuginBase::Exiv2Helper::getExiv2ValueString(), getHeight(), HuginBase::Exiv2Helper::getLensName(), getWidth(), HuginBase::Exiv2Helper::readRedBlueBalance(), hugin_utils::StringContainsCaseInsensitive(), threshold(), hugin_utils::tolower(), and trustExivOrientation().
Referenced by HuginBase::StraightenPanorama::calcStraighteningRotation(), CheckProjectFile(), main(), main2(), BrowsePTOFilesDialog::ParsePTOFile(), print_result(), PanoCommand::wxLoadPTProjectCmd::processPanorama(), PanoCommand::wxApplyTemplateCmd::processPanorama(), ReadPanoramaOptionsFromIni(), FindPanoDialog::SearchInDir(), ImageLineList::SetFilename(), and PerspectivePanel::SetImage().
tries to read projection and crop area from lens database you need to call SrcPanoImage::readEXIF before to fill some values
| ignoreFovRectilinear | if this parameter is true, the fov of rectilinear is not read from the database, otherwise the hfov is populated with the value from the database |
Definition at line 747 of file SrcPanoImage.cpp.
References calcFocalLength(), calcHFOV(), HuginBase::BaseSrcPanoImage::CROP_CIRCLE, HuginBase::BaseSrcPanoImage::CROP_RECTANGLE, getDBLensName(), HuginBase::LensDB::LensDB::GetSingleton(), getSize(), isCircularCrop(), HuginBase::isFisheye(), HuginBase::BaseSrcPanoImage::RECTILINEAR, setCropMode(), and threshold().
Referenced by FindPanoDialog::SearchInDir(), and ImageLineList::SetFilename().
| bool HuginBase::SrcPanoImage::readVignettingFromDB | ( | ) |
tries to read vignetting data from lens database you need to call SrcPanoImage::readEXIF before to fill some values
Definition at line 838 of file SrcPanoImage.cpp.
References getDBLensName(), HuginBase::LensDB::LensDB::GetSingleton(), and threshold().
Referenced by FindPanoDialog::SearchInDir().
| void HuginBase::SrcPanoImage::resize | ( | const vigra::Size2D & | size, |
| VariableMap * | potentialLinkedVars | ||
| ) |
"resize" image, adjusts all distortion coefficients for usage with a source image of size size potentialLinkedVars contains a map of potential linked variables which needs an update afterwards to correctly handle the linkage, when passing a nullptr these variables are directly updated in this function
Definition at line 55 of file SrcPanoImage.cpp.
References HuginBase::BaseSrcPanoImage::CROP_CIRCLE, HuginBase::BaseSrcPanoImage::CROP_RECTANGLE, HuginBase::BaseSrcPanoImage::NO_CROP, and threshold().
Referenced by ApplyTemplate(), HuginBase::SmallRemappedImageCache::getRemapped(), main(), and HuginBase::PointSampler::sampleAndExtractPoints().
Set the crop mode.
This sets the cropping region to the entire image when set to NO_CROP, unlike the lazy metaprogrammed equivalent in BaseSrcPanoImage.
Definition at line 202 of file SrcPanoImage.cpp.
References HuginBase::BaseSrcPanoImage::NO_CROP, and threshold().
Referenced by HFOVDialog::OnLoadLensParameters(), and readProjectionFromDB().
Definition at line 221 of file SrcPanoImage.cpp.
References threshold().
| void HuginBase::SrcPanoImage::setSize | ( | vigra::Size2D | val | ) |
Set the image size in pixels.
If we aren't cropping the image, set the size to the entire image
Definition at line 210 of file SrcPanoImage.cpp.
References HuginBase::BaseSrcPanoImage::NO_CROP, and threshold().
Referenced by checkImageSizeKnown(), HuginBase::Nona::SpaceTransform::createInvTransform(), PreviewProjectionGridTool::createMesh(), HuginBase::Nona::SpaceTransform::createTransform(), OverviewOutlinesTool::DrawRect(), HuginBase::CalculateFitPanorama::fitPano(), GetImageRotatedTo(), HuginBase::PanoramaOptions::getVFOV(), HuginBase::PanoramaMemento::loadPTScript(), OutputProjectionInfo::OutputProjectionInfo(), processImg(), PanoCommand::wxApplyTemplateCmd::processPanorama(), SetCropToImages(), HuginBase::PanoramaOptions::setVFOV(), and PreviewPanel::updatePreview().
Definition at line 254 of file SrcPanoImage.cpp.
References DEBUG_ERROR, DEBUG_TRACE, and threshold().
Referenced by LensCalImageCtrl::GenerateRemappedImage(), LensCalFrame::GetPanorama(), and LensCalFrame::OnShowDistortionGraph().
|
private |
Check if Exiv orientation tag can be trusted.
Decides if the Exiv Orientation Tag of an images is plausible.
Current checks:
Definition at line 1128 of file SrcPanoImage.cpp.
References getSize().
Referenced by readEXIF().
|
inline |
unlinking the EMOR parameters should unlink the correction mode.
Definition at line 316 of file SrcPanoImage.h.
References threshold().
|
inline |
unlinking vignetting parameters should unlink the vignetting correction mode
Definition at line 308 of file SrcPanoImage.h.
References threshold().
|
inline |
unlinking vignetting parameters should unlink the vignetting correction mode
Definition at line 300 of file SrcPanoImage.h.
updates the crop factor, the hfov is calculates so that focal length remains the same
Definition at line 1018 of file SrcPanoImage.cpp.
References calcHFOV(), getSize(), and threshold().
updates the focal length, changes the hfov to reflect thew newFocalLength
Definition at line 1009 of file SrcPanoImage.cpp.
References calcHFOV(), getSize(), and threshold().