asm.hpp
来自「这是个人脸识别程序」· HPP 代码 · 共 41 行
HPP
41 行
// $masm\asm.hpp 1.5 milbo$// Warning: this is raw research code -- expect it to be quite messy.// milbo petaluma jun 05#if !defined(asm_hpp)#define asm_hpptypedef struct tSearchImages // holds all the images for one pyramid level used during a search { Image Img; // the input image, scaled to current pyramid level RgbImage ProgressImg; // for displaying search progress MatVec Grads; // image gradients }tSearchImages;#define AS_NO_CHECK_CONSISTENCY_OF_PARTNERS 0 // values for fCheckConsistencyOfPartners#define AS_CHECK_CONSISTENCY_OF_PARTNERS 1bool fPointUsed(const SHAPE &Shape, int iPoint);int nGetNbrUsedPoints(const SHAPE &Shape, int nPoints);double PointDist(const SHAPE &Shape1, const SHAPE &Shape2, const int iPoint);double PointDist(const SHAPE &Shape, const int iPoint1, const int iPoint2);SHAPE ShapeDist(const SHAPE &Shape1, const SHAPE &Shape2);SHAPE TransformShape(const SHAPE &Shape, const Mat &TransformMat);Mat AlignShape(SHAPE &Shape, const SHAPE &AnchorShape, const Vec *pWeights=NULL);Mat AlignShape_Iteration (SHAPE &Shape, const SHAPE &AnchorShape, const Vec *pWeights=NULL);Mat AlignShape_Affine (SHAPE &Shape, const SHAPE &AnchorShape);double xShapeExtent(const SHAPE &Shape);double yShapeExtent(const SHAPE &Shape);double GetPyrScale(int iLev, double PyrRatio);void StraightenAndCentralizeShape(SHAPE &Shape); // iovoid CentralizeShape(SHAPE &Shape); // iodouble GetX(double X, int iOffset, int iOrthOffset, double DeltaX, double DeltaY);double GetY(double Y, int iOffset, int iOrthOffset, double DeltaX, double DeltaY);#endif // asm_hpp
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?