cpixel.h

来自「国外一个大牛人写的MEAN-SHIFT目标跟踪算法」· C头文件 代码 · 共 27 行

H
27
字号
//---------------------------------------------------------------------------

#ifndef CPixelH
#define CPixelH
//---------------------------------------------------------------------------

#include <math.h>

class CPixel
{
    public:
    	float y;
  		float x;
    public:
    	CPixel				( );
    	CPixel				(int _y,int _x);
    	float length		( );
    	float distance		(CPixel a);
    	float distance		(int _y,int _x);
    	CPixel& operator = 	(const CPixel &a);
    	CPixel  operator - 	(const CPixel &a);
    	CPixel  operator + 	(const CPixel &a);
    	CPixel  operator / 	(const float a);
};

#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?