⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 cmyimage.h

📁 国外一个大牛人写的MEAN-SHIFT目标跟踪算法
💻 H
字号:
/***************************************************************************                          CMyImage.h  -  description                             -------------------    begin                : Wed Jul 18 2001    copyright            : (C) 2001 by Alper Yilmaz    email                : yilmaz@cs.ucf.edu ***************************************************************************/#ifndef __CMYIMAGE#define __CMYIMAGE#include "highgui.h"
#include "cv.h"
#include "cvaux.h"#define WANT_STREAM                  // include.h will get stream fns#define WANT_MATH                    // include.h will get math fns#include "newmatap.h"                // need matrix applications#include "newmatio.h"                // need matrix output routines#ifdef use_namespaceusing namespace NEWMAT;              // access NEWMAT namespace#endifenum IM_TYPE {PGM,PPM};class CMyImage{	public:		Matrix R;		Matrix G;		Matrix B;				IM_TYPE type;	public:		int convert(IplImage* input);
		CMyImage();		~CMyImage();				int		Nrows		( ) {return R.Nrows();}		int		Ncols		( ) {return R.Ncols();}		void	read_file	(char *filename);		void 	write_file	(char *filename);    	void	draw_circle	(int ,int ,int ,float ,float, float);        void	draw_cross	(int ,int ,int ,float ,float, float);        void	draw_line	(int ,int ,int ,int ,float ,float, float);        void	sub_sample 	(Matrix&,Matrix&,Matrix&);};#endif

⌨️ 快捷键说明

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