1 Star 0 Fork 0

JJusti / imgHash

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
BitmapPixel.h 762 Bytes
一键复制 编辑 原始数据 按行查看 历史
LiuYajun 提交于 2015-04-10 11:56 . Add Simple imgHash implement
#ifndef __BITMAPPIXEL__
#define __BITMAPPIXEL__ 1
#include <cstdint>
#include <vector>
class BitmapPixel
{
public:
BitmapPixel(uint32_t row, uint32_t column, uint32_t chanle);
BitmapPixel(const BitmapPixel&) = default;
BitmapPixel &operator = (const BitmapPixel&) = default;
~BitmapPixel();
uint32_t GetPixel(int row, int column);
void SetPixel(int row, int column, uint32_t color);
void Zoom(int width, int height);
void Gray();
uint32_t Mean();
void GetGrayMask(uint32_t mean, BitmapPixel& pixels);
private:
inline uint8_t* GetRowData(int32_t row);
public:
int m_row;
int m_column;
int m_chanles;
std::vector<uint8_t> m_data;
};
#endif // !__BITMAPPIXEL__
C++
1
https://gitee.com/eStatMiner/imgHash.git
git@gitee.com:eStatMiner/imgHash.git
eStatMiner
imgHash
imgHash
master

搜索帮助