1 Star 0 Fork 0

张文建 / HCCR-GoogLeNet

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
OfflineGridUBytePicture.h 833 Bytes
一键复制 编辑 原始数据 按行查看 历史
Alex Zhong 提交于 2015-09-09 20:51 . Create OfflineGridUBytePicture.h
#include <iostream>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <string>
#include <fstream>
#include <vector>
#include <map>
#include <sstream>
#include <new>
#include <cmath>
using namespace std;
#define nCharacters 3755
#define characterWidth 112
#define characterHeight 112
#define maskWidth 120
#define maskHeight 120
class OfflineGridUBytePicture {
public:
int label; //for character recognition
short int width;
short int height;
vector<unsigned char> bitmap; //row major order
OfflineGridUBytePicture(int width, int height, int label_) :
width(width), height(height) {
label = label_;
bitmap.resize(height * width);
}
~OfflineGridUBytePicture() {
}
};
struct gntCharacterHeader {
unsigned int sampleSize;
unsigned short label;
unsigned short width;
unsigned short height;
};
C++
1
https://gitee.com/hnsqzwj/HCCR-GoogLeNet.git
git@gitee.com:hnsqzwj/HCCR-GoogLeNet.git
hnsqzwj
HCCR-GoogLeNet
HCCR-GoogLeNet
master

搜索帮助