51 #include <hugin_config.h>
78 for (i=0; i<
max; i++) {
96 if (! forPTOptimizer) {
106 o <<
" S" <<
m_roi.left() <<
"," <<
m_roi.right() <<
"," <<
m_roi.top() <<
"," <<
m_roi.bottom();
114 if (i+1 < (
int)m_projectionParams.size())
145 if ((
int) f >= panoProjectionFormatCount()) {
167 for (
size_t i=0; i < params.size(); i++) {
179 double parms[PANO_PROJECTION_MAX_PARMS];
230 double scale = w / (double)
m_size.x;
275 m_roi.moveBy(0,dh/2);
321 src.
setSize(vigra::Size2D(360,180));
333 vigra::Size2D oldSize =
m_size;
340 int dh =
m_size.y - oldSize.y;
341 m_roi.moveBy(0, dh/2);
357 src.
setSize(vigra::Size2D(360,180));
364 if (pmiddle.
x > 90 || pmiddle.
y < -90)
367 VFOV = 2 * (180 - pmiddle.
y);
371 VFOV = 2 * pmiddle.
y;
393 "TIFF_multilayer_mask",
void setHeight(unsigned int h)
set panorama height
pano_projection_features m_projFeatures
#define DEBUG_NOTICE(msg)
bool fovCalcSupported(ProjectionFormat f) const
true, if FOV calcuations are supported for projection f
misc math function & classes used by other parts of the program
unsigned int getHeight() const
get panorama height
double getMaxHFOV() const
get maximum possible hfov with current projection
void setProjectionParameters(const std::vector< double > ¶ms)
set the optional parameters (they need to be of the correct size)
unsigned int colorReferenceImage
static FileFormat getFormatFromName(const std::string &name)
returns the FileFormat corrosponding to name.
std::vector< double > m_projectionParams
static const std::string & getFormatName(FileFormat f)
return string name of output file format
void resetProjectionParameters()
sets the optional parameters to their default values
vigra_ext::Interpolator interpolator
double getMaxVFOV() const
get maximum possible vfov with current projection
void printScriptLine(std::ostream &o, bool forPTOptimizer=false) const
std::string tiffCompression
const std::string & getOutputExtension() const
return the extension used by the current output format
void setHFOV(double h, bool keepView=true)
set the horizontal field of view.
unsigned int getWidth() const
void setSize(vigra::Size2D val)
Set the image size in pixels.
std::string outputPixelType
ProjectionFormat m_projectionFormat
ProjectionFormat
Projection of final panorama.
static const std::string fileformatExt[]
All variables of a source image.
void setProjection(ProjectionFormat f)
set the Projection format and adjust the hfov/vfov if nessecary
void setWidth(unsigned int w, bool keepView=true)
set panorama width keep the HFOV, if keepView=true
double outputExposureValue
static const std::string fileformatNames[]