Skip to content
Snippets Groups Projects
Commit ad7b8da3 authored by even's avatar even
Browse files

Expe on synthetic images

parent 1318cda0
No related branches found
No related tags found
No related merge requests found
......@@ -241,6 +241,12 @@ void DynamicalScannerO8::bindTo (int a, int b, int c)
nu = (templ_nu * new_n1) / old_n1;
else
nu = (templ_nu * new_ninf) / old_ninf;
if (dlb < 0) // dlb should stay positive to avoid the direction change
{ // of the support line inequations.
dla = -dla;
dlb = -dlb;
c = -c;
}
dlc1 = c - nu / 2;
dlc2 = c + nu / 2;
}
......@@ -87,6 +87,14 @@ public:
return ((xv * vec.xv + yv * vec.yv)
* (xv * vec.xv + yv * vec.yv)); }
/**
* @fn bool leftside (Vr2i vec)
* \brief Returns if the given vector is on the left side of the vector.
* @param vec The given vector.
*/
inline bool leftside (Vr2i vec) const {
return (xv * vec.yv > yv * vec.xv); }
/**
* @fn int squaredVectorProduct (Vr2i vec)
* \brief Returns the squared norm of the vector product with given vector.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment