HuginBase::PanoramaOptions Class Reference

Panorama image options. More...

#include <PanoramaOptions.h>

List of all members.

Public Types

 RECTILINEAR = 0
 CYLINDRICAL = 1
 EQUIRECTANGULAR = 2
 FULL_FRAME_FISHEYE = 3
 STEREOGRAPHIC = 4
 MERCATOR = 5
 TRANSVERSE_MERCATOR = 6
 SINUSOIDAL = 7
 LAMBERT = 8
 LAMBERT_AZIMUTHAL = 9
 ALBERS_EQUAL_AREA_CONIC = 10
 MILLER_CYLINDRICAL = 11
 PANINI = 12
 ARCHITECTURAL = 13
 ORTHOGRAPHIC = 14
 EQUISOLID = 15
 EQUI_PANINI = 16
 BIPLANE = 17
 TRIPLANE = 18
 GENERAL_PANINI = 19
 THOBY_PROJECTION = 20
 HAMMER_AITOFF = 21
 NO_SPEEDUP
 MAX_SPEEDUP
 MEDIUM_SPEEDUP
 JPEG = 0
 PNG
 TIFF
 TIFF_m
 TIFF_mask
 TIFF_multilayer
 TIFF_multilayer_mask
 PICT
 PSD
 PSD_m
 PSD_mask
 PAN
 IVR
 IVR_java
 VRML
 QTVR
 HDR
 HDR_m
 EXR
 EXR_m
 FILEFORMAT_NULL
 OUTPUT_LDR = 0
 OUTPUT_HDR
 HDRMERGE_AVERAGE = 0
 HDRMERGE_DEGHOST = 1
 NO_BLEND = 0
 PTBLENDER_BLEND = 1
 ENBLEND_BLEND = 2
 SMARTBLEND_BLEND = 3
 PTMASKER_BLEND = 4
 NONA = 0
 PTMENDER
 NONE = 0
 BRIGHTNESS_COLOR
 BRIGHTNESS
 COLOR
enum  ProjectionFormat {
  RECTILINEAR = 0, CYLINDRICAL = 1, EQUIRECTANGULAR = 2, FULL_FRAME_FISHEYE = 3,
  STEREOGRAPHIC = 4, MERCATOR = 5, TRANSVERSE_MERCATOR = 6, SINUSOIDAL = 7,
  LAMBERT = 8, LAMBERT_AZIMUTHAL = 9, ALBERS_EQUAL_AREA_CONIC = 10, MILLER_CYLINDRICAL = 11,
  PANINI = 12, ARCHITECTURAL = 13, ORTHOGRAPHIC = 14, EQUISOLID = 15,
  EQUI_PANINI = 16, BIPLANE = 17, TRIPLANE = 18, GENERAL_PANINI = 19,
  THOBY_PROJECTION = 20, HAMMER_AITOFF = 21
}
 Projection of final panorama. More...
enum  PTStitcherAcceleration { NO_SPEEDUP, MAX_SPEEDUP, MEDIUM_SPEEDUP }
 PTStitcher acceleration. More...
enum  FileFormat {
  JPEG = 0, PNG, TIFF, TIFF_m,
  TIFF_mask, TIFF_multilayer, TIFF_multilayer_mask, PICT,
  PSD, PSD_m, PSD_mask, PAN,
  IVR, IVR_java, VRML, QTVR,
  HDR, HDR_m, EXR, EXR_m,
  FILEFORMAT_NULL
}
 Fileformat. More...
enum  OutputMode { OUTPUT_LDR = 0, OUTPUT_HDR }
 output mode More...
enum  HDRMergeType { HDRMERGE_AVERAGE = 0, HDRMERGE_DEGHOST = 1 }
enum  BlendingMechanism {
  NO_BLEND = 0, PTBLENDER_BLEND = 1, ENBLEND_BLEND = 2, SMARTBLEND_BLEND = 3,
  PTMASKER_BLEND = 4
}
 blenders More...
enum  Remapper { NONA = 0, PTMENDER }
enum  ColorCorrection { NONE = 0, BRIGHTNESS_COLOR, BRIGHTNESS, COLOR }
 type of color correction More...

Public Member Functions

 PanoramaOptions ()
virtual ~PanoramaOptions ()
virtual void reset ()
void printScriptLine (std::ostream &o, bool forPTOptimizer=false) const
const std::stringgetOutputExtension () const
 return the extension used by the current output format
void setWidth (unsigned int w, bool keepView=true)
 set panorama width keep the HFOV, if keepView=true
void setHeight (unsigned int h)
 set panorama height
unsigned int getWidth () const
unsigned int getHeight () const
 get panorama height
vigra::Size2D getSize () const
 get size of output image
const vigra::Rect2D & getROI () const
void setROI (const vigra::Rect2D &val)
void setProjection (ProjectionFormat f)
 set the Projection format and adjust the hfov/vfov if nessecary
void resetProjectionParameters ()
 sets the optional parameters to their default values
PanoramaOptions::ProjectionFormat getProjection () const
const std::vector< double > & getProjectionParameters () const
 Get the optional projection parameters.
void setProjectionParameters (const std::vector< double > &params)
 set the optional parameters (they need to be of the correct size)
bool fovCalcSupported (ProjectionFormat f) const
 true, if FOV calcuations are supported for projection f
void setHFOV (double h, bool keepView=true)
 set the horizontal field of view.
double getHFOV () const
void setVFOV (double v)
double getVFOV () const
double getMaxHFOV () const
 get maximum possible hfov with current projection
double getMaxVFOV () const
 get maximum possible vfov with current projection

Static Public Member Functions

static const std::stringgetFormatName (FileFormat f)
 return string name of output file format
static FileFormat getFormatFromName (const std::string &name)
 returns the FileFormat corrosponding to name.

Public Attributes

std::string outfile
FileFormat outputFormat
int quality
std::string tiffCompression
bool tiff_saveROI
ColorCorrection colorCorrection
unsigned int colorReferenceImage
double gamma
vigra_ext::Interpolator interpolator
unsigned int optimizeReferenceImage
PTStitcherAcceleration remapAcceleration
BlendingMechanism blendMode
HDRMergeType hdrMergeMode
Remapper remapper
bool remapUsingGPU
bool saveCoordImgs
double huberSigma
double photometricHuberSigma
double photometricSymmetricError
OutputMode outputMode
bool outputLDRBlended
 save blended panorama (LDR)
bool outputLDRLayers
 save remapped layers (LDR)
bool outputLDRExposureRemapped
 save remapped layers (no exposure adjustment)
bool outputLDRExposureLayers
 save blended exposure layers, do not perform fusion (no exposure adjustment)
bool outputLDRExposureLayersFused
 save blended exposure layers which are then fused (no exposure adjustment)
bool outputLDRStacks
bool outputLDRExposureBlended
 < save exposure fused stacks (no exposure adjustment) save blended exposure layers created from fused image stacks (no exposure adjustment)
bool outputHDRBlended
 save blended panorama (HDR)
bool outputHDRLayers
 save remapped layers (HDR)
bool outputHDRStacks
 save image stacks (HDR)
std::string outputLayersCompression
std::string outputImageType
std::string outputImageTypeCompression
std::string outputImageTypeHDR
std::string outputImageTypeHDRCompression
std::string enblendOptions
std::string enfuseOptions
std::string hdrmergeOptions
double outputExposureValue
std::vector< float > outputEMoRParams
std::string outputPixelType
double outputStacksMinOverlap
double outputLayersExposureDiff
pano_projection_features m_projFeatures

Private Attributes

double m_hfov
double m_vfov
ProjectionFormat m_projectionFormat
std::vector< double > m_projectionParams
vigra::Size2D m_size
vigra::Rect2D m_roi

Static Private Attributes

static const std::string fileformatNames []
static const std::string fileformatExt []


Detailed Description

Panorama image options.

this holds the settings for the final panorama

Definition at line 85 of file PanoramaOptions.h.


Member Enumeration Documentation

enum HuginBase::PanoramaOptions::BlendingMechanism

blenders

Enumerator:
NO_BLEND 
PTBLENDER_BLEND 
ENBLEND_BLEND 
SMARTBLEND_BLEND 
PTMASKER_BLEND 

Definition at line 161 of file PanoramaOptions.h.

enum HuginBase::PanoramaOptions::ColorCorrection

type of color correction

Enumerator:
NONE 
BRIGHTNESS_COLOR 
BRIGHTNESS 
COLOR 

Definition at line 177 of file PanoramaOptions.h.

enum HuginBase::PanoramaOptions::FileFormat

Fileformat.

Enumerator:
JPEG 
PNG 
TIFF 
TIFF_m 
TIFF_mask 
TIFF_multilayer 
TIFF_multilayer_mask 
PICT 
PSD 
PSD_m 
PSD_mask 
PAN 
IVR 
IVR_java 
VRML 
QTVR 
HDR 
HDR_m 
EXR 
EXR_m 
FILEFORMAT_NULL 

Definition at line 125 of file PanoramaOptions.h.

enum HuginBase::PanoramaOptions::HDRMergeType

Enumerator:
HDRMERGE_AVERAGE 
HDRMERGE_DEGHOST 

Definition at line 155 of file PanoramaOptions.h.

enum HuginBase::PanoramaOptions::OutputMode

output mode

Enumerator:
OUTPUT_LDR 
OUTPUT_HDR 

Definition at line 150 of file PanoramaOptions.h.

enum HuginBase::PanoramaOptions::ProjectionFormat

Projection of final panorama.

Enumerator:
RECTILINEAR 
CYLINDRICAL 
EQUIRECTANGULAR 
FULL_FRAME_FISHEYE 
STEREOGRAPHIC 
MERCATOR 
TRANSVERSE_MERCATOR 
SINUSOIDAL 
LAMBERT 
LAMBERT_AZIMUTHAL 
ALBERS_EQUAL_AREA_CONIC 
MILLER_CYLINDRICAL 
PANINI 
ARCHITECTURAL 
ORTHOGRAPHIC 
EQUISOLID 
EQUI_PANINI 
BIPLANE 
TRIPLANE 
GENERAL_PANINI 
THOBY_PROJECTION 
HAMMER_AITOFF 

Definition at line 91 of file PanoramaOptions.h.

enum HuginBase::PanoramaOptions::PTStitcherAcceleration

PTStitcher acceleration.

Enumerator:
NO_SPEEDUP 
MAX_SPEEDUP 
MEDIUM_SPEEDUP 

Definition at line 117 of file PanoramaOptions.h.

enum HuginBase::PanoramaOptions::Remapper

Enumerator:
NONA 
PTMENDER 

Definition at line 170 of file PanoramaOptions.h.


Constructor & Destructor Documentation

HuginBase::PanoramaOptions::PanoramaOptions (  )  [inline]

Definition at line 185 of file PanoramaOptions.h.

virtual HuginBase::PanoramaOptions::~PanoramaOptions (  )  [inline, virtual]

Definition at line 190 of file PanoramaOptions.h.


Member Function Documentation

bool HuginBase::PanoramaOptions::fovCalcSupported ( ProjectionFormat  f  )  const

true, if FOV calcuations are supported for projection f

Definition at line 234 of file PanoramaOptions.cpp.

References ARCHITECTURAL, BIPLANE, CYLINDRICAL, EQUI_PANINI, EQUIRECTANGULAR, GENERAL_PANINI, MERCATOR, MILLER_CYLINDRICAL, PANINI, RECTILINEAR, SINUSOIDAL, and TRIPLANE.

Referenced by main(), PreviewFrame::panoramaChanged(), setHFOV(), setVFOV(), and setWidth().

PanoramaOptions::FileFormat HuginBase::PanoramaOptions::getFormatFromName ( const std::string name  )  [static]

returns the FileFormat corrosponding to name.

if name is not recognized, FileFormat::TIFF is returned

Definition at line 78 of file PanoramaOptions.cpp.

References DEBUG_ERROR, FILEFORMAT_NULL, fileformatNames, celeste::max(), and TIFF_m.

const std::string & HuginBase::PanoramaOptions::getFormatName ( FileFormat  f  )  [static]

return string name of output file format

Definition at line 66 of file PanoramaOptions.cpp.

References FILEFORMAT_NULL, and fileformatNames.

Referenced by printScriptLine(), and HuginBase::Nona::stitchPanoIntern().

unsigned int HuginBase::PanoramaOptions::getHeight (  )  const [inline]

get panorama height

Definition at line 285 of file PanoramaOptions.h.

Referenced by AddGeometricControlPoint(), HuginBase::PTools::Transform::createInvTransform(), HuginBase::Nona::SpaceTransform::createInvTransform(), HuginBase::PanoramaMakefilelibExport::createItems(), HuginBase::PTools::Transform::createTransform(), HuginBase::Nona::SpaceTransform::createTransform(), HuginBase::Nona::estimateBlendingOrder(), LensCalImageCtrl::GenerateRemappedImage(), ProjectListBox::GetAttributeString(), MeshManager::PlaneOverviewMeshInfo::GetCoord3D(), MeshManager::PanosphereOverviewMeshInfo::GetCoord3D(), MeshManager::PlaneOverviewMeshInfo::GetMeshCoords3D(), MeshManager::PanosphereOverviewMeshInfo::GetMeshCoords3D(), HuginBase::Nona::FileRemapper< ImageType, AlphaType >::getRemapped(), HuginBase::SmallRemappedImageCache::getRemapped(), PanoDetector::loadProject(), main(), PlaneOverviewToolHelper::MouseMoved(), PanosphereOverviewToolHelper::MouseMoved(), PreviewFrame::OnFitPano(), printScriptLine(), GLPlaneOverviewRenderer::Resize(), GLPanosphereOverviewRenderer::Resize(), GLPreviewRenderer::Resize(), HuginBase::Nona::MultiImageRemapper< vigra::FRGBImage, AlphaImageType >::saveRemapped(), HuginBase::Nona::SimpleStitcher< ImageType, AlphaType >::stitch(), HuginBase::Nona::ReduceStitcher< ImageType, AlphaType >::stitch(), HuginBase::Nona::WeightedStitcher< ImageType, AlphaType >::stitch(), VertexCoordRemapper::UpdateAndResetIndex(), and PreviewPanel::updatePreview().

double HuginBase::PanoramaOptions::getHFOV (  )  const [inline]

Definition at line 329 of file PanoramaOptions.h.

Referenced by HuginBase::CalculateFOV::calcFOV(), HuginBase::PTools::Transform::createInvTransform(), HuginBase::Nona::SpaceTransform::createInvTransform(), HuginBase::PanoramaMakefilelibExport::createItems(), HuginBase::PTools::Transform::createTransform(), HuginBase::Nona::SpaceTransform::createTransform(), OverviewOutlinesTool::DrawRect(), HuginBase::SmallRemappedImageCache::getRemapped(), main(), PreviewFrame::OnFitPano(), PreviewPanel::panoramaChanged(), PreviewFrame::panoramaChanged(), printScriptLine(), PT::StraightenPanoCmd::processPanorama(), and ViewState::SetOptions().

double HuginBase::PanoramaOptions::getMaxHFOV (  )  const [inline]

get maximum possible hfov with current projection

Definition at line 339 of file PanoramaOptions.h.

Referenced by HuginBase::CalculateFitPanorama::fitPano(), and setHFOV().

double HuginBase::PanoramaOptions::getMaxVFOV (  )  const [inline]

get maximum possible vfov with current projection

Definition at line 343 of file PanoramaOptions.h.

Referenced by HuginBase::CalculateFitPanorama::fitPano(), setHFOV(), setVFOV(), and setWidth().

const std::string & HuginBase::PanoramaOptions::getOutputExtension (  )  const

return the extension used by the current output format

Definition at line 72 of file PanoramaOptions.cpp.

References FILEFORMAT_NULL, fileformatExt, and outputFormat.

Referenced by HuginBase::Nona::MultiImageRemapper< vigra::FRGBImage, AlphaImageType >::saveRemapped(), HuginBase::Nona::SimpleStitcher< ImageType, AlphaType >::stitch(), HuginBase::Nona::ReduceStitcher< ImageType, AlphaType >::stitch(), and HuginBase::Nona::WeightedStitcher< ImageType, AlphaType >::stitch().

PanoramaOptions::ProjectionFormat HuginBase::PanoramaOptions::getProjection (  )  const [inline]

Definition at line 309 of file PanoramaOptions.h.

Referenced by HuginBase::PTools::Transform::createInvTransform(), HuginBase::Nona::SpaceTransform::createInvTransform(), HuginBase::PanoramaMakefilelibExport::createItems(), HuginBase::PTools::Transform::createTransform(), HuginBase::Nona::SpaceTransform::createTransform(), OverviewOutlinesTool::DrawRect(), ProjectListBox::GetAttributeString(), HuginBase::getCPoutsideLimit_pair(), HuginBase::SmallRemappedImageCache::getRemapped(), CPEditorPanel::getVerticalCPBias(), main(), OutputProjectionInfo::OutputProjectionInfo(), PreviewPanel::panoramaChanged(), PreviewFrame::panoramaChanged(), PreviewPanoMaskTool::ReallyAfterDrawImagesEvent(), ViewState::SetOptions(), VertexCoordRemapper::UpdateAndResetIndex(), and ChoosyRemapper::UpdateAndResetIndex().

const std::vector<double>& HuginBase::PanoramaOptions::getProjectionParameters (  )  const [inline]

Get the optional projection parameters.

Definition at line 313 of file PanoramaOptions.h.

Referenced by HuginBase::PTools::Transform::createInvTransform(), HuginBase::PanoramaMakefilelibExport::createItems(), HuginBase::PTools::Transform::createTransform(), HuginBase::SmallRemappedImageCache::getRemapped(), PreviewFrame::OnChangeFOV(), PreviewFrame::OnTextCtrlChanged(), PreviewPanel::panoramaChanged(), PreviewFrame::panoramaChanged(), and ViewState::SetOptions().

const vigra::Rect2D& HuginBase::PanoramaOptions::getROI (  )  const [inline]

Definition at line 293 of file PanoramaOptions.h.

Referenced by HuginLines::_getVerticalLines(), PanoDetector::AnalyzeImage(), HuginBase::PanoramaMakefilelibExport::createItems(), OverviewOutlinesTool::draw(), PreviewPanel::DrawPreview(), HuginBase::estimateImageAlpha(), LensCalImageCtrl::GenerateRemappedImage(), PreviewCropTool::MouseButtonEvent(), PreviewCropTool::MouseMoveEvent(), PanoOutputDialog::OnOk(), PreviewGuideTool::ReallyAfterDrawImagesEvent(), PreviewCropTool::ReallyAfterDrawImagesEvent(), GLPreviewRenderer::Redraw(), PanoDetector::RemapBackKeypoints(), HuginBase::AllPointSampler::sampleAllPanoPoints(), HuginBase::RandomPointSampler::sampleRandomPanoPoints(), HuginBase::Nona::TiffMultiLayerRemapper< ImageType, AlphaImageType >::saveRemapped(), HuginBase::Nona::MultiImageRemapper< vigra::FRGBImage, AlphaImageType >::saveRemapped(), and ViewState::SetOptions().

vigra::Size2D HuginBase::PanoramaOptions::getSize (  )  const [inline]

get size of output image

Definition at line 289 of file PanoramaOptions.h.

Referenced by HuginBase::CalculateOptimalROI::calcOptimalROI(), HuginBase::PTools::Transform::createInvTransform(), HuginBase::PTools::Transform::createTransform(), PreviewPanel::DrawPreview(), OverviewOutlinesTool::DrawRect(), HuginBase::estimateImageAlpha(), OutputProjectionInfo::GetXAdd360(), OutputProjectionInfo::OutputProjectionInfo(), PreviewDragTool::ReallyAfterDrawImagesEvent(), and ViewState::SetOptions().

double HuginBase::PanoramaOptions::getVFOV (  )  const

Definition at line 381 of file PanoramaOptions.cpp.

References HuginBase::PTools::Transform::createTransform(), DEBUG_DEBUG, HuginBase::BaseSrcPanoImage::EQUIRECTANGULAR, m_hfov, m_roi, m_size, HuginBase::BaseSrcPanoImage::setHFOV(), HuginBase::BaseSrcPanoImage::setProjection(), HuginBase::SrcPanoImage::setSize(), HuginBase::PTools::Transform::transform(), hugin_utils::TDiff2D< T >::x, and hugin_utils::TDiff2D< T >::y.

Referenced by HuginBase::CalculateFOV::calcFOV(), HuginBase::PanoramaMakefilelibExport::createItems(), main(), PreviewFrame::OnFitPano(), PreviewPanel::panoramaChanged(), PreviewFrame::panoramaChanged(), setHeight(), setHFOV(), ViewState::SetOptions(), setProjectionParameters(), and setWidth().

unsigned int HuginBase::PanoramaOptions::getWidth (  )  const [inline]

Definition at line 281 of file PanoramaOptions.h.

Referenced by AddGeometricControlPoint(), HuginBase::PTools::Transform::createInvTransform(), HuginBase::Nona::SpaceTransform::createInvTransform(), HuginBase::PanoramaMakefilelibExport::createItems(), HuginBase::PTools::Transform::createTransform(), HuginBase::Nona::SpaceTransform::createTransform(), HuginBase::Nona::estimateBlendingOrder(), LensCalImageCtrl::GenerateRemappedImage(), ProjectListBox::GetAttributeString(), MeshManager::PlaneOverviewMeshInfo::GetCoord3D(), MeshManager::PanosphereOverviewMeshInfo::GetCoord3D(), MeshManager::PlaneOverviewMeshInfo::GetMeshCoords3D(), MeshManager::PanosphereOverviewMeshInfo::GetMeshCoords3D(), HuginBase::Nona::FileRemapper< ImageType, AlphaType >::getRemapped(), HuginBase::SmallRemappedImageCache::getRemapped(), GreatCircleArc::GreatCircleArc(), PanoDetector::loadProject(), main(), PlaneOverviewToolHelper::MouseMoved(), PanosphereOverviewToolHelper::MouseMoved(), PanoOutputDialog::OnOk(), printScriptLine(), GLPlaneOverviewRenderer::Resize(), GLPanosphereOverviewRenderer::Resize(), GLPreviewRenderer::Resize(), HuginBase::Nona::MultiImageRemapper< vigra::FRGBImage, AlphaImageType >::saveRemapped(), HuginBase::Nona::SimpleStitcher< ImageType, AlphaType >::stitch(), HuginBase::Nona::ReduceStitcher< ImageType, AlphaType >::stitch(), HuginBase::Nona::WeightedStitcher< ImageType, AlphaType >::stitch(), VertexCoordRemapper::UpdateAndResetIndex(), and PreviewPanel::updatePreview().

void HuginBase::PanoramaOptions::printScriptLine ( std::ostream o,
bool  forPTOptimizer = false 
) const

Definition at line 95 of file PanoramaOptions.cpp.

References BRIGHTNESS, BRIGHTNESS_COLOR, COLOR, colorCorrection, colorReferenceImage, gamma, getFormatName(), getHeight(), getHFOV(), getWidth(), huberSigma, interpolator, JPEG, m_projectionFormat, m_projectionParams, m_roi, m_size, MAX_SPEEDUP, MEDIUM_SPEEDUP, NO_SPEEDUP, NONE, outputExposureValue, outputFormat, outputMode, outputPixelType, photometricHuberSigma, photometricSymmetricError, quality, remapAcceleration, TIFF, TIFF_m, TIFF_mask, TIFF_multilayer, TIFF_multilayer_mask, tiff_saveROI, and tiffCompression.

virtual void HuginBase::PanoramaOptions::reset (  )  [inline, virtual]

Definition at line 192 of file PanoramaOptions.h.

References vigra_ext::INTERP_CUBIC.

Referenced by HuginBase::Panorama::reset().

void HuginBase::PanoramaOptions::resetProjectionParameters (  ) 

sets the optional parameters to their default values

Definition at line 224 of file PanoramaOptions.cpp.

References m_projFeatures, and setProjectionParameters().

Referenced by PreviewFrame::OnProjParameterReset(), and setProjection().

void HuginBase::PanoramaOptions::setHeight ( unsigned int  h  ) 

set panorama height

This changes the panorama vfov

Definition at line 293 of file PanoramaOptions.cpp.

References DEBUG_DEBUG, getVFOV(), m_hfov, m_roi, and m_size.

Referenced by HuginLines::_getVerticalLines(), HuginBase::CalculateFOV::calcFOV(), HuginBase::CenterHorizontally::centerHorizontically(), LensCalImageCtrl::GenerateRemappedImage(), PanoDetector::LoadKeypoints(), PanoDetector::loadProject(), main(), main2(), PreviewControlPointTool::MakeTransforms(), PreviewFrame::OnFitPano(), ImageVariableDialog::OnShowDistortionGraph(), processImg(), PT::StraightenPanoCmd::processPanorama(), PT::CenterPanoCmd::processPanorama(), HuginBase::FitPanorama::runAlgorithm(), HuginBase::PointSampler::sampleAndExtractPoints(), and PreviewLayoutLinesTool::updateImageCentres().

void HuginBase::PanoramaOptions::setHFOV ( double  h,
bool  keepView = true 
)

set the horizontal field of view.

also updates the image height (keep pano field of view similar.)

Definition at line 313 of file PanoramaOptions.cpp.

References DEBUG_NOTICE, fovCalcSupported(), getMaxHFOV(), getMaxVFOV(), getVFOV(), m_hfov, m_projectionFormat, celeste::min(), and setVFOV().

Referenced by HuginLines::_getVerticalLines(), HuginBase::CalculateFOV::calcFOV(), HuginBase::CenterHorizontally::centerHorizontically(), HuginBase::CalculateFitPanorama::fitPano(), LensCalImageCtrl::GenerateRemappedImage(), PanoDetector::loadProject(), main(), main2(), PreviewFrame::OnChangeFOV(), PreviewFrame::OnFitPano(), ImageVariableDialog::OnShowDistortionGraph(), PanosphereOverviewVisualizationState::PanosphereOverviewVisualizationState(), PlaneOverviewVisualizationState::PlaneOverviewVisualizationState(), processImg(), PT::StraightenPanoCmd::processPanorama(), PT::CenterPanoCmd::processPanorama(), PT::wxAddCtrlPointGridCmd::processPanorama(), HuginBase::FitPanorama::runAlgorithm(), HuginBase::PointSampler::sampleAndExtractPoints(), PlaneOverviewVisualizationState::SetOptions(), PanosphereOverviewVisualizationState::SetOptions(), setProjectionParameters(), and PreviewLayoutLinesTool::updateImageCentres().

void HuginBase::PanoramaOptions::setProjection ( ProjectionFormat  f  ) 

set the Projection format and adjust the hfov/vfov if nessecary

Definition at line 173 of file PanoramaOptions.cpp.

References EQUIRECTANGULAR, m_projectionFormat, m_projectionParams, m_projFeatures, and resetProjectionParameters().

Referenced by HuginLines::_getVerticalLines(), HuginBase::CalculateFOV::calcFOV(), HuginBase::CenterHorizontally::centerHorizontically(), LensCalImageCtrl::GenerateRemappedImage(), HuginBase::getCPoutsideLimit_pair(), LensCalFrame::GetPanorama(), PanoDetector::loadProject(), main(), main2(), PreviewFrame::OnProjectionChoice(), GLPreviewFrame::OnProjectionChoice(), ImageVariableDialog::OnShowDistortionGraph(), PanosphereOverviewVisualizationState::PanosphereOverviewVisualizationState(), PlaneOverviewVisualizationState::PlaneOverviewVisualizationState(), processImg(), PT::wxAddCtrlPointGridCmd::processPanorama(), PlaneOverviewVisualizationState::SetOptions(), PanosphereOverviewVisualizationState::SetOptions(), and PreviewLayoutLinesTool::updateImageCentres().

void HuginBase::PanoramaOptions::setProjectionParameters ( const std::vector< double > &  params  ) 

set the optional parameters (they need to be of the correct size)

Definition at line 191 of file PanoramaOptions.cpp.

References getVFOV(), m_hfov, m_projectionFormat, m_projectionParams, m_projFeatures, setHFOV(), and setVFOV().

Referenced by PreviewFrame::OnChangeFOV(), PreviewFrame::OnTextCtrlChanged(), and resetProjectionParameters().

void HuginBase::PanoramaOptions::setROI ( const vigra::Rect2D &  val  )  [inline]

Definition at line 297 of file PanoramaOptions.h.

Referenced by AddGeometricControlPoint(), autoCrop(), LensCalImageCtrl::GenerateRemappedImage(), PanoDetector::loadProject(), main(), PreviewCropTool::MouseMoveEvent(), PanoOutputDialog::OnOk(), and PreviewCropTool::ReallyAfterDrawImagesEvent().

void HuginBase::PanoramaOptions::setVFOV ( double  v  ) 

Definition at line 333 of file PanoramaOptions.cpp.

References HuginBase::PTools::Transform::createInvTransform(), DEBUG_DEBUG, HuginBase::BaseSrcPanoImage::EQUIRECTANGULAR, fovCalcSupported(), getMaxVFOV(), m_hfov, m_projectionFormat, m_roi, m_size, celeste::min(), hugin_utils::roundi(), HuginBase::BaseSrcPanoImage::setHFOV(), HuginBase::BaseSrcPanoImage::setProjection(), HuginBase::SrcPanoImage::setSize(), HuginBase::PTools::Transform::transform(), and hugin_utils::TDiff2D< T >::y.

Referenced by PanoDetector::loadProject(), main(), PreviewFrame::OnChangeFOV(), PanosphereOverviewVisualizationState::PanosphereOverviewVisualizationState(), PlaneOverviewVisualizationState::PlaneOverviewVisualizationState(), PT::wxAddCtrlPointGridCmd::processPanorama(), setHFOV(), PlaneOverviewVisualizationState::SetOptions(), PanosphereOverviewVisualizationState::SetOptions(), setProjectionParameters(), and setWidth().

void HuginBase::PanoramaOptions::setWidth ( unsigned int  w,
bool  keepView = true 
)

set panorama width keep the HFOV, if keepView=true

Definition at line 253 of file PanoramaOptions.cpp.

References DEBUG_DEBUG, EQUIRECTANGULAR, fovCalcSupported(), getMaxVFOV(), getVFOV(), m_hfov, m_projectionFormat, m_roi, m_size, hugin_utils::roundi(), setVFOV(), and SINUSOIDAL.

Referenced by HuginLines::_getVerticalLines(), HuginBase::CalculateFOV::calcFOV(), HuginBase::CenterHorizontally::centerHorizontically(), HuginBase::Nona::estimateBlendingOrder(), LensCalImageCtrl::GenerateRemappedImage(), PanoDetector::LoadKeypoints(), PanoDetector::loadProject(), main(), main2(), PreviewControlPointTool::MakeTransforms(), PanoOutputDialog::OnOk(), ImageVariableDialog::OnShowDistortionGraph(), processImg(), PT::wxAddCtrlPointGridCmd::processPanorama(), HuginBase::SetWidthOptimal::runAlgorithm(), and PreviewLayoutLinesTool::updateImageCentres().


Member Data Documentation

BlendingMechanism HuginBase::PanoramaOptions::blendMode

Definition at line 370 of file PanoramaOptions.h.

Referenced by HuginBase::PanoramaMakefilelibExport::createItems(), PossiblePano::GeneratePanorama(), and PT::wxNewProjectCmd::processPanorama().

ColorCorrection HuginBase::PanoramaOptions::colorCorrection

Definition at line 359 of file PanoramaOptions.h.

Referenced by HuginBase::PanoramaMakefilelibExport::createItems(), PanoOperation::ChangeColorAnchorImageOperation::GetInternalCommand(), and printScriptLine().

unsigned int HuginBase::PanoramaOptions::colorReferenceImage

Definition at line 360 of file PanoramaOptions.h.

Referenced by HuginBase::PanoramaMakefilelibExport::createItems(), PanoOperation::ChangeColorAnchorImageOperation::GetInternalCommand(), printScriptLine(), ImagesTreeCtrl::SelectAllParameters(), HuginBase::SmartPhotometricOptimizer::smartOptimizePhotometric(), and ImagesTreeCtrl::UpdateImageText().

std::string HuginBase::PanoramaOptions::enblendOptions

Definition at line 402 of file PanoramaOptions.h.

Referenced by HuginBase::PanoramaMakefilelibExport::createItems(), PossiblePano::GeneratePanorama(), PT::wxNewProjectCmd::processPanorama(), PT::wxLoadPTProjectCmd::processPanorama(), Project::ReadOptions(), and RunStitchPanel::StitchProject().

std::string HuginBase::PanoramaOptions::enfuseOptions

Definition at line 403 of file PanoramaOptions.h.

Referenced by HuginBase::PanoramaMakefilelibExport::createItems(), PossiblePano::GeneratePanorama(), PT::wxNewProjectCmd::processPanorama(), PT::wxLoadPTProjectCmd::processPanorama(), Project::ReadOptions(), and RunStitchPanel::StitchProject().

const std::string HuginBase::PanoramaOptions::fileformatExt [static, private]

Initial value:

{
    "jpg",
    "png",
    "tif",
    "tif",
    "tif",
    "tif",
    "tif",
    "pict",
    "psd",
    "psd",
    "psd",
    "pan",
    "ivr",
    "IVR_java",
    "wrl",
    "mov",
    "hdr",
    "hdr",
    "exr",
    "exr"
}

Definition at line 421 of file PanoramaOptions.h.

Referenced by getOutputExtension().

const std::string HuginBase::PanoramaOptions::fileformatNames [static, private]

Initial value:

{
    "JPEG",
    "PNG",
    "TIFF",
    "TIFF_m",
    "TIFF_mask",
    "TIFF_multilayer",
    "TIFF_multilayer_mask",
    "PICT",
    "PSD",
    "PSD_m",
    "PSD_mask",
    "PAN",
    "IVR",
    "IVR_java",
    "VRML",
    "QTVR",
    "HDR",
    "HDR_m",
    "EXR",
    "EXR_m"
}

Definition at line 420 of file PanoramaOptions.h.

Referenced by getFormatFromName(), and getFormatName().

double HuginBase::PanoramaOptions::gamma

Definition at line 363 of file PanoramaOptions.h.

Referenced by printScriptLine().

HDRMergeType HuginBase::PanoramaOptions::hdrMergeMode

Definition at line 371 of file PanoramaOptions.h.

Referenced by HuginBase::PanoramaMakefilelibExport::createItems(), PossiblePano::GeneratePanorama(), and PT::wxNewProjectCmd::processPanorama().

std::string HuginBase::PanoramaOptions::hdrmergeOptions

Definition at line 404 of file PanoramaOptions.h.

Referenced by HuginBase::PanoramaMakefilelibExport::createItems(), PossiblePano::GeneratePanorama(), and PT::wxNewProjectCmd::processPanorama().

double HuginBase::PanoramaOptions::huberSigma

Definition at line 377 of file PanoramaOptions.h.

Referenced by main2(), printScriptLine(), processImg(), and HuginBase::SmartOptimise::smartOptimize().

vigra_ext::Interpolator HuginBase::PanoramaOptions::interpolator

Definition at line 364 of file PanoramaOptions.h.

Referenced by PossiblePano::GeneratePanorama(), printScriptLine(), PT::wxNewProjectCmd::processPanorama(), and HuginBase::Nona::remapImage().

double HuginBase::PanoramaOptions::m_hfov [private]

Definition at line 422 of file PanoramaOptions.h.

Referenced by getVFOV(), setHeight(), setHFOV(), setProjectionParameters(), setVFOV(), and setWidth().

ProjectionFormat HuginBase::PanoramaOptions::m_projectionFormat [private]

Definition at line 426 of file PanoramaOptions.h.

Referenced by printScriptLine(), setHFOV(), setProjection(), setProjectionParameters(), setVFOV(), and setWidth().

std::vector<double> HuginBase::PanoramaOptions::m_projectionParams [private]

Definition at line 428 of file PanoramaOptions.h.

Referenced by printScriptLine(), setProjection(), and setProjectionParameters().

pano_projection_features HuginBase::PanoramaOptions::m_projFeatures

Definition at line 417 of file PanoramaOptions.h.

Referenced by PreviewFrame::OnChangeFOV(), PreviewFrame::OnTextCtrlChanged(), PreviewFrame::panoramaChanged(), resetProjectionParameters(), setProjection(), and setProjectionParameters().

vigra::Rect2D HuginBase::PanoramaOptions::m_roi [private]

Definition at line 430 of file PanoramaOptions.h.

Referenced by getVFOV(), printScriptLine(), setHeight(), setVFOV(), and setWidth().

vigra::Size2D HuginBase::PanoramaOptions::m_size [private]

Definition at line 429 of file PanoramaOptions.h.

Referenced by getVFOV(), printScriptLine(), setHeight(), setVFOV(), and setWidth().

double HuginBase::PanoramaOptions::m_vfov [private]

Definition at line 423 of file PanoramaOptions.h.

unsigned int HuginBase::PanoramaOptions::optimizeReferenceImage

Definition at line 366 of file PanoramaOptions.h.

Referenced by HuginBase::AutoOptimise::autoOptimise(), PanoOperation::ChangeAnchorImageOperation::GetInternalCommand(), ImagesTreeCtrl::SelectAllParameters(), HuginBase::SmartOptimise::smartOptimize(), and ImagesTreeCtrl::UpdateImageText().

std::string HuginBase::PanoramaOptions::outfile

Definition at line 349 of file PanoramaOptions.h.

Referenced by main2().

std::vector<float> HuginBase::PanoramaOptions::outputEMoRParams

Definition at line 408 of file PanoramaOptions.h.

Referenced by HuginBase::Nona::RemappedPanoImage< RemapImage, AlphaImage >::remapImage(), and HuginBase::Nona::stitchPanorama().

double HuginBase::PanoramaOptions::outputExposureValue

Definition at line 407 of file PanoramaOptions.h.

Referenced by HuginLines::_getVerticalLines(), TextureManager::Begin(), PreviewColorPickerTool::CalcCorrectionForImage(), HuginBase::PanoramaMakefilelibExport::createItems(), TextureManager::TextureInfo::DefineLevels(), PossiblePano::GeneratePanorama(), LensCalFrame::GetPanorama(), HuginBase::SmallRemappedImageCache::getRemapped(), main(), main2(), PreviewFrame::OnDecreaseExposure(), PreviewFrame::OnDefaultExposure(), GLPreviewFrame::OnDefaultExposure(), PreviewFrame::OnIncreaseExposure(), PreviewFrame::OnTextCtrlChanged(), PreviewPanel::panoramaChanged(), PreviewFrame::panoramaChanged(), printScriptLine(), PT::wxAddImagesCmd::processPanorama(), HuginBase::Nona::RemappedPanoImage< RemapImage, AlphaImage >::remapImage(), and ViewState::SetOptions().

FileFormat HuginBase::PanoramaOptions::outputFormat

Definition at line 350 of file PanoramaOptions.h.

Referenced by PossiblePano::GeneratePanorama(), getOutputExtension(), main(), main2(), printScriptLine(), processImg(), PT::wxNewProjectCmd::processPanorama(), PT::wxLoadPTProjectCmd::processPanorama(), HuginBase::Nona::SimpleStitcher< ImageType, AlphaType >::stitch(), HuginBase::Nona::ReduceStitcher< ImageType, AlphaType >::stitch(), HuginBase::Nona::WeightedStitcher< ImageType, AlphaType >::stitch(), HuginBase::Nona::MultiImageRemapper< vigra::FRGBImage, AlphaImageType >::stitch(), HuginBase::Nona::stitchPanoIntern(), and RunStitchPanel::StitchProject().

bool HuginBase::PanoramaOptions::outputHDRBlended

save blended panorama (HDR)

Definition at line 392 of file PanoramaOptions.h.

Referenced by HuginBase::PanoramaMakefilelibExport::createItems(), and PanoOutputDialog::OnOk().

bool HuginBase::PanoramaOptions::outputHDRLayers

save remapped layers (HDR)

Definition at line 393 of file PanoramaOptions.h.

Referenced by HuginBase::PanoramaMakefilelibExport::createItems(), and PanoOutputDialog::OnOk().

bool HuginBase::PanoramaOptions::outputHDRStacks

save image stacks (HDR)

Definition at line 394 of file PanoramaOptions.h.

Referenced by HuginBase::PanoramaMakefilelibExport::createItems(), and PanoOutputDialog::OnOk().

std::string HuginBase::PanoramaOptions::outputImageType

Definition at line 397 of file PanoramaOptions.h.

Referenced by HuginBase::PanoramaMakefilelibExport::createItems(), PossiblePano::GeneratePanorama(), ProjectListBox::GetAttributeString(), PanoOutputDialog::OnLDRFormatChanged(), PanoOutputDialog::OnOk(), and PT::wxNewProjectCmd::processPanorama().

std::string HuginBase::PanoramaOptions::outputImageTypeCompression

Definition at line 398 of file PanoramaOptions.h.

Referenced by HuginBase::PanoramaMakefilelibExport::createItems(), PossiblePano::GeneratePanorama(), PanoOutputDialog::OnOk(), and PT::wxNewProjectCmd::processPanorama().

std::string HuginBase::PanoramaOptions::outputImageTypeHDR

Definition at line 399 of file PanoramaOptions.h.

Referenced by HuginBase::PanoramaMakefilelibExport::createItems(), PanoOutputDialog::OnHDRFormatChanged(), and PanoOutputDialog::OnOk().

std::string HuginBase::PanoramaOptions::outputImageTypeHDRCompression

Definition at line 400 of file PanoramaOptions.h.

Referenced by HuginBase::PanoramaMakefilelibExport::createItems(), and PanoOutputDialog::OnOk().

std::string HuginBase::PanoramaOptions::outputLayersCompression

Definition at line 396 of file PanoramaOptions.h.

Referenced by HuginBase::PanoramaMakefilelibExport::createItems().

double HuginBase::PanoramaOptions::outputLayersExposureDiff

Definition at line 415 of file PanoramaOptions.h.

Referenced by HuginBase::PanoramaMakefilelibExport::createItems(), HuginBase::getExposureLayers(), ImagesPanel::OnMaxEvDiffChanged(), and ImagesPanel::panoramaChanged().

bool HuginBase::PanoramaOptions::outputLDRBlended

save blended panorama (LDR)

Definition at line 385 of file PanoramaOptions.h.

Referenced by HuginBase::PanoramaMakefilelibExport::createItems(), and PanoOutputDialog::OnOk().

bool HuginBase::PanoramaOptions::outputLDRExposureBlended

< save exposure fused stacks (no exposure adjustment) save blended exposure layers created from fused image stacks (no exposure adjustment)

Definition at line 391 of file PanoramaOptions.h.

Referenced by HuginBase::PanoramaMakefilelibExport::createItems(), and PanoOutputDialog::OnOk().

bool HuginBase::PanoramaOptions::outputLDRExposureLayers

save blended exposure layers, do not perform fusion (no exposure adjustment)

Definition at line 388 of file PanoramaOptions.h.

Referenced by HuginBase::PanoramaMakefilelibExport::createItems(), and PanoOutputDialog::OnOk().

bool HuginBase::PanoramaOptions::outputLDRExposureLayersFused

save blended exposure layers which are then fused (no exposure adjustment)

Definition at line 389 of file PanoramaOptions.h.

Referenced by HuginBase::PanoramaMakefilelibExport::createItems(), and PanoOutputDialog::OnOk().

bool HuginBase::PanoramaOptions::outputLDRExposureRemapped

save remapped layers (no exposure adjustment)

Definition at line 387 of file PanoramaOptions.h.

Referenced by HuginBase::PanoramaMakefilelibExport::createItems(), and PanoOutputDialog::OnOk().

bool HuginBase::PanoramaOptions::outputLDRLayers

save remapped layers (LDR)

Definition at line 386 of file PanoramaOptions.h.

Referenced by HuginBase::PanoramaMakefilelibExport::createItems(), and PanoOutputDialog::OnOk().

bool HuginBase::PanoramaOptions::outputLDRStacks

Definition at line 390 of file PanoramaOptions.h.

Referenced by HuginBase::PanoramaMakefilelibExport::createItems(), and PanoOutputDialog::OnOk().

OutputMode HuginBase::PanoramaOptions::outputMode

Definition at line 383 of file PanoramaOptions.h.

Referenced by PreviewColorPickerTool::CalcCorrectionForImage(), HuginBase::SmallRemappedImageCache::getRemapped(), main(), main2(), PreviewFrame::OnOutputChoice(), PreviewFrame::panoramaChanged(), printScriptLine(), HuginBase::Nona::RemappedPanoImage< RemapImage, AlphaImage >::remapImage(), HuginBase::Nona::MultiImageRemapper< vigra::FRGBImage, AlphaImageType >::saveRemapped(), HuginBase::Nona::stitchPanoIntern(), and HuginBase::Nona::stitchPanorama().

std::string HuginBase::PanoramaOptions::outputPixelType

Definition at line 411 of file PanoramaOptions.h.

Referenced by main(), main2(), printScriptLine(), HuginBase::Nona::RemappedPanoImage< RemapImage, AlphaImage >::remapImage(), HuginBase::Nona::MultiImageRemapper< vigra::FRGBImage, AlphaImageType >::saveRemapped(), HuginBase::Nona::ReduceStitcher< ImageType, AlphaType >::stitch(), HuginBase::Nona::WeightedStitcher< ImageType, AlphaType >::stitch(), and HuginBase::Nona::stitchPanorama().

double HuginBase::PanoramaOptions::outputStacksMinOverlap

Definition at line 414 of file PanoramaOptions.h.

Referenced by HuginBase::PanoramaMakefilelibExport::createItems(), HuginBase::getHDRStacks(), ImagesPanel::OnMinimumOverlapChanged(), and ImagesPanel::panoramaChanged().

double HuginBase::PanoramaOptions::photometricHuberSigma

Definition at line 379 of file PanoramaOptions.h.

Referenced by printScriptLine().

double HuginBase::PanoramaOptions::photometricSymmetricError

Definition at line 380 of file PanoramaOptions.h.

Referenced by printScriptLine().

int HuginBase::PanoramaOptions::quality

Definition at line 353 of file PanoramaOptions.h.

Referenced by HuginBase::PanoramaMakefilelibExport::createItems(), PossiblePano::GeneratePanorama(), PanoOutputDialog::OnOk(), printScriptLine(), PT::wxNewProjectCmd::processPanorama(), HuginBase::Nona::SimpleStitcher< ImageType, AlphaType >::stitch(), HuginBase::Nona::ReduceStitcher< ImageType, AlphaType >::stitch(), and HuginBase::Nona::WeightedStitcher< ImageType, AlphaType >::stitch().

PTStitcherAcceleration HuginBase::PanoramaOptions::remapAcceleration

Definition at line 369 of file PanoramaOptions.h.

Referenced by printScriptLine().

Remapper HuginBase::PanoramaOptions::remapper

Definition at line 372 of file PanoramaOptions.h.

Referenced by HuginBase::PanoramaMakefilelibExport::createItems().

bool HuginBase::PanoramaOptions::remapUsingGPU

Definition at line 373 of file PanoramaOptions.h.

Referenced by HuginBase::PanoramaMakefilelibExport::createItems(), HuginBase::Nona::FileRemapper< ImageType, AlphaType >::getRemapped(), main(), PT::wxNewProjectCmd::processPanorama(), PT::wxLoadPTProjectCmd::processPanorama(), HuginBase::Nona::RemappedPanoImage< RemapImage, AlphaImage >::remapImage(), HuginBase::Nona::RemappedPanoImage< RemapImage, AlphaImage >::setPanoImage(), and RunStitchPanel::StitchProject().

bool HuginBase::PanoramaOptions::saveCoordImgs

Definition at line 375 of file PanoramaOptions.h.

Referenced by main(), and HuginBase::Nona::MultiImageRemapper< vigra::FRGBImage, AlphaImageType >::saveRemapped().

bool HuginBase::PanoramaOptions::tiff_saveROI

Definition at line 357 of file PanoramaOptions.h.

Referenced by PossiblePano::GeneratePanorama(), main2(), printScriptLine(), processImg(), PT::wxNewProjectCmd::processPanorama(), and HuginBase::Nona::MultiImageRemapper< vigra::FRGBImage, AlphaImageType >::saveRemapped().

std::string HuginBase::PanoramaOptions::tiffCompression

Definition at line 356 of file PanoramaOptions.h.

Referenced by PossiblePano::GeneratePanorama(), main(), PanoOutputDialog::OnOk(), printScriptLine(), PT::wxNewProjectCmd::processPanorama(), HuginBase::Nona::TiffMultiLayerRemapper< ImageType, AlphaImageType >::saveRemapped(), HuginBase::Nona::MultiImageRemapper< vigra::FRGBImage, AlphaImageType >::saveRemapped(), HuginBase::Nona::ReduceStitcher< ImageType, AlphaType >::stitch(), and HuginBase::Nona::WeightedStitcher< ImageType, AlphaType >::stitch().


The documentation for this class was generated from the following files:
Generated on 27 Nov 2014 for Hugintrunk by  doxygen 1.4.7