Main Page | Modules | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages
hugin_base/panodata/image_variables.h
Go to the documentation of this file.00001 // -*- c-basic-offset: 4 -*- 00053 /* Hmmm... I'ld like commas in template arguments, but < and > aren't real 00054 * brackets so the template arguments will be interprated as separate macro 00055 * arguments instead. 00056 * Solution: Have an object in ImageVariableTranslate.h which handles all the 00057 * pto conversion code. We can generate the code in SrcPanoImg.h automatically 00058 * as ImageVariableTranslate.h typedefs PTOVariableConverterFor[name] for each 00059 * variable. 00060 * So we don't have a parameter that specifies the codes to use in a PTO file. 00061 */ 00062 00063 // file variables 00064 image_variable( Filename, std::string, "" ) 00065 image_variable( Size, vigra::Size2D , vigra::Size2D(0,0) ) 00066 // projection variables 00067 image_variable( Projection, HuginBase::BaseSrcPanoImage::Projection, RECTILINEAR ) 00068 image_variable( HFOV, double, 50.0 ) 00069 00070 // colour response variables 00071 image_variable( ResponseType, HuginBase::BaseSrcPanoImage::ResponseType, RESPONSE_EMOR ) 00072 image_variable( EMoRParams, std::vector<float>, std::vector<float>(5, 0.0) ) 00073 image_variable( ExposureValue, double, 1.0 ) 00074 image_variable( Gamma, double, 1.0 ) 00075 image_variable( WhiteBalanceRed, double, 1.0 ) 00076 image_variable( WhiteBalanceBlue, double, 1.0 ) 00077 00078 // orientation in degrees 00079 image_variable( Roll, double , 0.0 ) 00080 image_variable( Pitch, double , 0.0 ) 00081 image_variable( Yaw, double, 0.0 ) 00082 00083 image_variable( X, double , 0.0 ) 00084 image_variable( Y, double , 0.0 ) 00085 image_variable( Z, double, 0.0 ) 00086 00087 // stack information 00088 // Currently only the link information is used, the value means nothing. 00089 image_variable( Stack, double, 0.0 ) 00090 00091 // radial lens distortion 00092 image_variable( RadialDistortion, std::vector<double>, distortion_default ) 00093 00094 // radial lens distortion (red, blue channel), for TCA correction 00095 image_variable( RadialDistortionRed, std::vector<double>, distortion_default ) 00096 image_variable( RadialDistortionBlue, std::vector<double>, distortion_default ) 00097 00098 // Center shift 00099 image_variable( RadialDistortionCenterShift, hugin_utils::FDiff2D, hugin_utils::FDiff2D(0.0, 0.0) ) 00100 00101 // shear 00102 image_variable( Shear, hugin_utils::FDiff2D, hugin_utils::FDiff2D(0, 0) ) 00103 00104 // crop description 00105 image_variable( CropMode, HuginBase::BaseSrcPanoImage::CropMode, NO_CROP ) 00106 image_variable( CropRect, vigra::Rect2D, vigra::Rect2D(0, 0, 0, 0) ) 00107 image_variable( AutoCenterCrop, bool, true ) 00108 00109 // vignetting correction 00110 image_variable( VigCorrMode, int, VIGCORR_RADIAL|VIGCORR_DIV ) 00111 00112 // coefficients for vignetting correction (even degrees: 0,2,4,6, ...) 00113 image_variable( FlatfieldFilename, std::string, "" ) 00114 image_variable( RadialVigCorrCoeff, std::vector<double>, RadialVigCorrCoeff_default ) 00115 image_variable( RadialVigCorrCenterShift, hugin_utils::FDiff2D, hugin_utils::FDiff2D(0.0, 0.0) ) 00116 00117 // linear pixel transform 00118 // (doesn't seem to be used, removing with #if 0) 00119 #if 0 00120 image_variable( ka, std::vector<double>, , ) 00121 image_variable( kb, std::vector<double>, , ) 00122 #endif 00123 00124 // store camera information from exif tags... 00125 image_variable( ExifModel, std::string, "" ) 00126 image_variable( ExifMake, std::string, "" ) 00127 image_variable( ExifCropFactor, double, 0 ) 00128 image_variable( ExifFocalLength, double, 0 ) 00129 image_variable( ExifOrientation, double, 0 ) 00130 image_variable( ExifAperture, double, 0 ) 00131 image_variable( ExifISO, double, 0 ) 00132 image_variable( ExifDistance, double, 0 ) 00133 image_variable( ExifFocalLength35, double, 0) 00134 image_variable( ExifExposureTime, double, 0) 00135 image_variable( ExifDate, std::string, "") 00136 00137 // 00138 // panotools options 00139 // 00140 // width of feather for stitching. 00141 image_variable( FeatherWidth, unsigned int, 10 ) 00142 // Morph-to-fit using control points. 00143 image_variable( Morph, bool, false ) 00144 00145 // mask handling 00146 // Masks is list of loaded or created textures 00147 image_variable( Masks, HuginBase::MaskPolygonVector, defaultMaskVector) 00148 // ActiveMasks contains list of all negative masks, which should be applied to 00149 // a given image, this is used to propagate positive masks 00150 image_variable( ActiveMasks, HuginBase::MaskPolygonVector, defaultMaskVector) 00151 00152 // If the image is selected to be used in the preview and for optimisation. 00153 image_variable( Active, bool, true ) 00154
1.3.9.1