📄 asm.hpp
字号:
// $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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -