40#define conditional_set(variable, value) \
41if (image.variable##isLinked())\
44 while (j < i && !image.variable##isLinkedWith(panorama.getImage(j)))\
48 if (j == i) copy.set##variable(value);\
50 copy.set##variable(value);\
55 for (
unsigned int i = 0;
i <
panorama.getNrOfImages();
i++)
59 double y = image.getYaw();
60 double p = image.getPitch();
61 double r = image.getRoll();
64 DEBUG_DEBUG(
"rotation matrix (PT) for img " <<
i <<
" << ypr:" << y <<
" " << p <<
" " << r << std::endl <<
mat);
72 DEBUG_DEBUG(
"rotated angles of img " <<
i <<
": " << y <<
" " << p <<
" " << r);
78 if(image.getX()!=0.0 || image.getY()!=0.0 || image.getZ()!=0.0)
86 mat.SetRotationPT(
DEG_TO_RAD(image.getTranslationPlaneYaw()),
DEG_TO_RAD(image.getTranslationPlanePitch()), 0.0);
#define conditional_set(variable, value)
static void rotatePano(PanoramaData &panorama, const Matrix3 &transformMat)
RotatePanorama(PanoramaData &panorama, const Matrix3 &transformMat)
All variables of a source image.
general : Matrix3 is a class for handling 3x3 Matrix manipulation.
void SetRotationPT(double yaw, double pitch, double roll)
set rotation in panotools style, code adapted from Panotools-Script by Bruno Postle
general : Vector3 is a class for handling 3D Vectors manipulation.
double TranslationPlaneYaw
double TranslationPlanePitch
mainly consists of wrapper around the pano tools library, to assist in ressource management and to pr...
std::vector< deghosting::BImagePtr > threshold(const std::vector< deghosting::FImagePtr > &inputImages, const double threshold, const uint16_t flags)
Threshold function used for creating alpha masks for images.