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

📄 fvsimage.h

📁 本系统是一个指纹识别系统,可以用来识别用户的指纹,可以用在安全性高的行业或部门.
💻 H
字号:
// This file contains the declartion for the FvsImage class, // a templated class that hold the image data for an image// FvsImage uses the vector class as a helper to store the image data // in memory. Both the vector class and the FvsImage class are able to be// resized during execution, allowing for more flexiblity.#include "vector.h"#include "fvstypes.h"#ifndef __FVSIMAGE_HEADER__#define __FVSIMAGE_HEADER__template <class itemType>class FvsImage{	public:		// Constructors/destructor		FvsImage(void);						// default constructor		FvsImage(uint32_t width, uint32_t height);	// make to certain width and height		FvsImage(uint32_t width, uint32_t height,		// make to ceratin width and height					itemType fillValue);	// and fill all with fillValue		FvsImage(const FvsImage<itemType> & src); // copy constructor		~FvsImage(void);		// indexing		const Vector<itemType> & operator[] (uint32_t k) const; // allows accessing		Vector<itemType> & operator[] (uint32_t k); // allows changing		// assignment		const FvsImage & operator= (const FvsImage & src);		// modifers		void resize(uint32_t NewWidth, uint32_t NewHeight); // used to resize vector 		// accessors		uint32_t width() const;				// returns width		uint32_t height() const;			// returns height	private:		uint32_t rows;						// number of rows		uint32_t cols;						// number of cols				Vector<Vector<itemType> > data;		// holds image data};// Include the implementation from the cpp file#include "fvsimage.cpp"// img[cols][rows]#endif // __FVSIMAGE_HEADER__

⌨️ 快捷键说明

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