mirror of
https://github.com/opencv/opencv.git
synced 2026-07-31 00:03:03 +04:00
Misc. modules/ typos (cont.)
Found via `codespell`
This commit is contained in:
@@ -92,7 +92,7 @@ public:
|
||||
|
||||
/** @brief Definition of the transformation
|
||||
|
||||
ocupied in the paper "Principal Warps: Thin-Plate Splines and Decomposition of Deformations", by
|
||||
occupied in the paper "Principal Warps: Thin-Plate Splines and Decomposition of Deformations", by
|
||||
F.L. Bookstein (PAMI 1989). :
|
||||
*/
|
||||
class CV_EXPORTS_W ThinPlateSplineShapeTransformer : public ShapeTransformer
|
||||
|
||||
@@ -294,8 +294,8 @@ bool EmdL1::greedySolution2()
|
||||
// move to up
|
||||
pBV = &(m_EdgesUp[r][c]);
|
||||
m_NBVEdges[nNBV++] = &(m_EdgesRight[r][c]);
|
||||
D[r+1][c] += dFlow; // auxilary matrix maintanence
|
||||
d1s[r+1] += dFlow; // auxilary matrix maintanence
|
||||
D[r+1][c] += dFlow; // auxiliary matrix maintenance
|
||||
d1s[r+1] += dFlow; // auxiliary matrix maintenance
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -304,8 +304,8 @@ bool EmdL1::greedySolution2()
|
||||
if(r<binsDim1-1)
|
||||
m_NBVEdges[nNBV++] = &(m_EdgesUp[r][c]);
|
||||
|
||||
D[r][c+1] += dFlow; // auxilary matrix maintanence
|
||||
d2s[c+1] += dFlow; // auxilary matrix maintanence
|
||||
D[r][c+1] += dFlow; // auxiliary matrix maintenance
|
||||
d2s[c+1] += dFlow; // auxiliary matrix maintenance
|
||||
}
|
||||
pBV->pParent->pChild = pBV;
|
||||
pBV->flow = fabs(dFlow);
|
||||
@@ -318,7 +318,7 @@ bool EmdL1::greedySolution2()
|
||||
{
|
||||
dFlow = D[r][c];
|
||||
pBV = &(m_EdgesUp[r][c]);
|
||||
D[r+1][c] += dFlow; // auxilary matrix maintanence
|
||||
D[r+1][c] += dFlow; // auxiliary matrix maintenance
|
||||
pBV->pParent->pChild= pBV;
|
||||
pBV->flow = fabs(dFlow);
|
||||
pBV->iDir = dFlow>0; // 1:outward, 0:inward
|
||||
@@ -402,7 +402,7 @@ bool EmdL1::greedySolution3()
|
||||
pBV = &(m_3dEdgesUp[i1][i2][i3]); // up
|
||||
if(i2<binsDim2-1) m_NBVEdges[nNBV++] = &(m_3dEdgesRight[i1][i2][i3]); // right
|
||||
if(i3<binsDim3-1) m_NBVEdges[nNBV++] = &(m_3dEdgesDeep[i1][i2][i3]); // deep
|
||||
D[i1+1][i2][i3] += dFlow; // maintain auxilary matrix
|
||||
D[i1+1][i2][i3] += dFlow; // maintain auxiliary matrix
|
||||
d1s[i1+1] += dFlow;
|
||||
}
|
||||
else if(f2<f3)
|
||||
@@ -410,7 +410,7 @@ bool EmdL1::greedySolution3()
|
||||
pBV = &(m_3dEdgesRight[i1][i2][i3]); // right
|
||||
if(i1<binsDim1-1) m_NBVEdges[nNBV++] = &(m_3dEdgesUp[i1][i2][i3]); // up
|
||||
if(i3<binsDim3-1) m_NBVEdges[nNBV++] = &(m_3dEdgesDeep[i1][i2][i3]); // deep
|
||||
D[i1][i2+1][i3] += dFlow; // maintain auxilary matrix
|
||||
D[i1][i2+1][i3] += dFlow; // maintain auxiliary matrix
|
||||
d2s[i2+1] += dFlow;
|
||||
}
|
||||
else
|
||||
@@ -418,7 +418,7 @@ bool EmdL1::greedySolution3()
|
||||
pBV = &(m_3dEdgesDeep[i1][i2][i3]); // deep
|
||||
if(i2<binsDim2-1) m_NBVEdges[nNBV++] = &(m_3dEdgesRight[i1][i2][i3]); // right
|
||||
if(i1<binsDim1-1) m_NBVEdges[nNBV++] = &(m_3dEdgesUp[i1][i2][i3]); // up
|
||||
D[i1][i2][i3+1] += dFlow; // maintain auxilary matrix
|
||||
D[i1][i2][i3+1] += dFlow; // maintain auxiliary matrix
|
||||
d3s[i3+1] += dFlow;
|
||||
}
|
||||
|
||||
|
||||
@@ -54,7 +54,7 @@ struct cvEMDNode
|
||||
int pos[3]; // grid position
|
||||
float d; // initial value
|
||||
int u;
|
||||
// tree maintainance
|
||||
// tree maintenance
|
||||
int iLevel; // level in the tree, 0 means root
|
||||
cvPEmdNode pParent; // pointer to its parent
|
||||
cvPEmdEdge pChild;
|
||||
@@ -64,7 +64,7 @@ struct cvEMDEdge
|
||||
{
|
||||
float flow; // initial value
|
||||
int iDir; // 1:outward, 0:inward
|
||||
// tree maintainance
|
||||
// tree maintenance
|
||||
cvPEmdNode pParent; // point to its parent
|
||||
cvPEmdNode pChild; // the child node
|
||||
cvPEmdEdge pNxt; // next child/edge
|
||||
@@ -123,7 +123,7 @@ private:
|
||||
|
||||
private:
|
||||
int dimension;
|
||||
int binsDim1, binsDim2, binsDim3; // the hitogram contains m_n1 rows and m_n2 columns
|
||||
int binsDim1, binsDim2, binsDim3; // the histogram contains m_n1 rows and m_n2 columns
|
||||
int nNBV; // number of Non-Basic Variables (NBV)
|
||||
int nMaxIt;
|
||||
cvEMDNodeArray2D m_Nodes; // all nodes
|
||||
|
||||
@@ -235,7 +235,7 @@ void ThinPlateSplineShapeTransformerImpl::estimateTransformation(InputArray _pts
|
||||
|
||||
// Building the matrices for solving the L*(w|a)=(v|0) problem with L={[K|P];[P'|0]}
|
||||
|
||||
//Building K and P (Neede to buil L)
|
||||
//Building K and P (Needed to build L)
|
||||
Mat matK((int)matches.size(),(int)matches.size(),CV_32F);
|
||||
Mat matP((int)matches.size(),3,CV_32F);
|
||||
for (int i=0, end=(int)matches.size(); i<end; i++)
|
||||
|
||||
Reference in New Issue
Block a user