取模数据格式转换源码 宽高8*16 低位在前 第二字节由右边改为下边

原创 2015年11月18日 16:06:49
//取模数据格式转换源码 宽高8*16 低位在前 第二字节由右边改为下边
class ZH2{
static 	char[] ew={
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x80,0xE0,0x9C,0xB0,0xC0,0x00,0x00,0x0E,0x09,0x00,0x00,0x00,0x00,0x0B,0x0C,
0x04,0xFC,0x44,0x44,0x44,0x44,0x44,0x8C,0x08,0x0F,0x08,0x08,0x08,0x08,0x08,0x07,
0x04,0xFC,0x44,0x44,0x44,0x44,0xA4,0x18,0x08,0x0F,0x08,0x08,0x08,0x08,0x08,0x07,
0x04,0xFC,0x04,0x04,0x04,0x04,0x04,0x1C,0x08,0x0F,0x08,0x00,0x00,0x00,0x00,0x00,
0x04,0x04,0xFC,0x04,0x04,0x04,0xFC,0x04,0x08,0x0F,0x08,0x08,0x08,0x08,0x0F,0x08,
0x04,0xFC,0x44,0x44,0x44,0xE4,0x04,0x0C,0x08,0x0F,0x08,0x08,0x08,0x08,0x08,0x0F,
0x04,0xB8,0x40,0x44,0xFC,0x44,0x40,0xB8,0x06,0x01,0x00,0x08,0x0F,0x08,0x00,0x01,
0x00,0x1C,0x08,0x44,0x44,0x44,0xB8,0x00,0x00,0x06,0x08,0x08,0x08,0x08,0x07,0x00,
0xFC,0x04,0x00,0x80,0x40,0x20,0x14,0xFC,0x0F,0x0A,0x01,0x00,0x00,0x00,0x08,0x0F,
0xFC,0x04,0x01,0x82,0x42,0x21,0x14,0xFC,0x0F,0x0A,0x01,0x00,0x00,0x00,0x08,0x0F,
0x04,0xFC,0x44,0x40,0xB0,0x08,0x04,0x08,0x08,0x0F,0x08,0x00,0x00,0x07,0x08,0x04,
0x00,0x04,0xFC,0x04,0x04,0x04,0x04,0xFC,0x08,0x04,0x03,0x00,0x00,0x00,0x08,0x0F,
0x18,0x60,0x80,0x00,0x80,0x60,0x18,0xFC,0x08,0x00,0x01,0x06,0x01,0x00,0x08,0x0F,
0xFC,0x44,0x40,0x40,0x40,0x40,0x44,0xFC,0x0F,0x08,0x00,0x00,0x00,0x00,0x08,0x0F,
0xF0,0x08,0x04,0x04,0x04,0x04,0x08,0xF0,0x03,0x04,0x08,0x08,0x08,0x08,0x04,0x03,
0xFC,0x04,0x04,0x04,0x04,0x04,0x04,0xFC,0x0F,0x08,0x00,0x00,0x00,0x00,0x08,0x0F,
0x04,0xFC,0x44,0x44,0x44,0x44,0x44,0x38,0x08,0x0F,0x08,0x00,0x00,0x00,0x00,0x00,
0xF0,0x08,0x04,0x04,0x04,0x04,0x08,0x1C,0x03,0x04,0x08,0x08,0x08,0x08,0x04,0x02,
0x0C,0x04,0x04,0x04,0xFC,0x04,0x04,0x04,0x00,0x00,0x00,0x08,0x0F,0x08,0x00,0x00,
0x04,0x0C,0x34,0xC0,0x80,0x64,0x1C,0x04,0x04,0x08,0x08,0x06,0x01,0x00,0x00,0x00,
0xE0,0x10,0x10,0x14,0xFC,0x14,0x10,0x10,0x01,0x02,0x02,0x0A,0x0F,0x0A,0x02,0x02,
0x04,0x0C,0x14,0x20,0xC0,0x20,0x14,0x0C,0x08,0x0C,0x0A,0x01,0x00,0x01,0x0A,0x0C,
0xFC,0x04,0x00,0x00,0x00,0x00,0x04,0xFC,0x0F,0x08,0x08,0x08,0x08,0x08,0x08,0x0F,
0x7C,0x84,0x80,0x80,0x80,0x40,0x44,0xFC,0x00,0x00,0x00,0x00,0x00,0x00,0x08,0x0F,
0x04,0x00,0x00,0x04,0xFC,0x04,0x00,0x00,0x08,0x08,0x08,0x08,0x0F,0x08,0x08,0x08,
0x04,0x00,0x00,0x04,0xFC,0x04,0x00,0x00,0x08,0x08,0x08,0x08,0x0F,0x08,0x08,0x08,
0x04,0x04,0xFC,0x44,0x44,0x40,0x40,0x40,0x00,0x08,0x0F,0x08,0x08,0x08,0x08,0x08,
0x44,0x40,0x40,0x40,0x40,0x80,0x00,0x04,0x08,0x08,0x08,0x08,0x08,0x07,0x00,0x08,
0x04,0xFC,0x44,0x40,0x40,0x40,0x40,0x80,0x08,0x0F,0x08,0x08,0x08,0x08,0x08,0x07,
0x00,0x1C,0x08,0x44,0x44,0x44,0x48,0xF0,0x00,0x06,0x08,0x08,0x08,0x08,0x04,0x03,
0x44,0x40,0xF0,0x08,0x04,0x04,0x04,0x04,0x08,0x00,0x03,0x04,0x08,0x08,0x08,0x08,
0x38,0x44,0x84,0x84,0x84,0x84,0xFC,0x04,0x08,0x08,0x07,0x00,0x00,0x08,0x0F,0x08,
0x00,0x40,0x20,0x20,0x20,0xC0,0x00,0x00,0x00,0x06,0x09,0x09,0x09,0x07,0x08,0x00,
0x00,0xE0,0x50,0x28,0x28,0x24,0xC4,0x00,0x00,0x03,0x04,0x08,0x08,0x04,0x03,0x00,
0x00,0x20,0xE0,0x20,0x20,0x20,0xC0,0x00,0x00,0x08,0x0F,0x09,0x09,0x09,0x06,0x00,
0x00,0x20,0xE0,0x20,0x20,0x20,0x60,0x00,0x00,0x08,0x0F,0x08,0x00,0x00,0x00,0x00,
0x00,0x20,0xE0,0x20,0x20,0xE0,0x20,0x00,0x18,0x0C,0x0B,0x08,0x08,0x0F,0x18,0x00,
0x00,0x00,0xC0,0x20,0x20,0x20,0xC0,0x00,0x00,0x00,0x07,0x09,0x09,0x09,0x05,0x00,
0x20,0xC0,0x00,0xE0,0x00,0xC0,0x20,0x20,0x08,0x06,0x01,0x0F,0x01,0x06,0x08,0x08,
0x00,0xE0,0x40,0x20,0x20,0xC0,0x00,0x00,0x00,0x04,0x08,0x08,0x09,0x06,0x00,0x00,
0x20,0xE0,0x20,0x00,0x00,0xA0,0xE0,0x20,0x08,0x0F,0x0C,0x02,0x01,0x08,0x0F,0x08,
0x20,0xE0,0x28,0x10,0x10,0xA8,0xE0,0x20,0x08,0x0F,0x0C,0x02,0x01,0x08,0x0F,0x08,
0x20,0xE0,0x20,0x00,0xC0,0x20,0x40,0x00,0x08,0x0F,0x09,0x01,0x06,0x08,0x04,0x00,
0x00,0x00,0x20,0xE0,0x20,0x20,0xE0,0x20,0x00,0x08,0x08,0x07,0x00,0x08,0x0F,0x08,
0xE0,0x80,0x00,0x00,0x00,0x80,0xE0,0x20,0x0F,0x08,0x01,0x06,0x01,0x08,0x0F,0x08,
0x20,0xE0,0x20,0x00,0x00,0x20,0xE0,0x20,0x08,0x0F,0x09,0x01,0x01,0x09,0x0F,0x08,
0x00,0x80,0x40,0x20,0x20,0x40,0x80,0x00,0x00,0x03,0x04,0x08,0x08,0x04,0x03,0x00,
0x00,0x20,0xE0,0x20,0x20,0x20,0xE0,0x20,0x00,0x08,0x0F,0x08,0x00,0x08,0x0F,0x08,
0x92,0x00,0x92,0x00,0x92,0x00,0x92,0x00,0x24,0x00,0x24,0x00,0x24,0x00,0x24,0x00,
0xAA,0x00,0xAA,0x00,0xAA,0x00,0xAA,0x00,0x2A,0x00,0x2A,0x00,0x2A,0x00,0x2A,0x00,
0x77,0xDD,0xDD,0x77,0xF5,0xDD,0x57,0x77,0x77,0x5D,0x5D,0x77,0x5F,0x5D,0x77,0x77,
0x00,0x00,0x00,0x00,0xFF,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x7F,0x00,0x00,0x00,
0x80,0x80,0x80,0x80,0xFF,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x7F,0x00,0x00,0x00,
0x40,0x40,0x40,0x40,0xFF,0x00,0x00,0x00,0x01,0x01,0x01,0x01,0x7F,0x00,0x00,0x00,
0x80,0x80,0x80,0xFF,0x00,0xFF,0x00,0x00,0x00,0x00,0x00,0x7F,0x00,0x7F,0x00,0x00,
0x80,0x80,0x80,0x80,0x80,0x80,0x00,0x00,0x00,0x00,0x00,0x7F,0x00,0x7F,0x00,0x00,
0x40,0x40,0x40,0x40,0xC0,0x00,0x00,0x00,0x01,0x01,0x01,0x01,0x7F,0x00,0x00,0x00,
0x40,0x40,0x40,0x7F,0x00,0xFF,0x00,0x00,0x01,0x01,0x01,0x7F,0x00,0x7F,0x00,0x00,
0x00,0x00,0x00,0xFF,0x00,0xFF,0x00,0x00,0x00,0x00,0x00,0x7F,0x00,0x7F,0x00,0x00,
0x40,0x40,0x40,0x40,0x40,0xC0,0x00,0x00,0x01,0x01,0x01,0x7F,0x00,0x7F,0x00,0x00,
0x40,0x40,0x40,0x7F,0x00,0xFF,0x00,0x00,0x01,0x01,0x01,0x01,0x01,0x01,0x00,0x00,
0x80,0x80,0x80,0xFF,0x80,0xFF,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x40,0x40,0x40,0x40,0xFF,0x00,0x00,0x00,0x01,0x01,0x01,0x01,0x01,0x00,0x00,0x00,
0x80,0x80,0x80,0x80,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x7F,0x00,0x00,0x00,
};
	static void zh8_16()
	{
		System.out.println("char ew[]={");
		char n[]=new char[ew.length];
		char[] pos={1,9,2,10,3,11,4,12,5,13,6,14,7,15,8,16,};
		for(int k=0;k<ew.length/16;k++)
		{
		for(int i=0;i<16;i++)
		{
			n[k*16+i]=ew[k*16+pos[i]-1];
			System.out.printf("0x%02X,",(int)n[k*16+i]);
		}
		System.out.println();		
	}
	System.out.println("};");
	}
	public static void main(String[] strArg)
	{
		
		zh8_16();	
	}
	}



spring数据格式转换

  • 2013年03月27日 08:29
  • 228KB
  • 下载

libsvm数据格式转换

  • 2016年12月05日 21:43
  • 34KB
  • 下载

Windows Caffe中MNIST数据格式转换实现

Windows Caffe中MNIST数据格式转换实现

横断面数据格式转换

  • 2015年10月20日 17:38
  • 2KB
  • 下载

经纬度数据格式转换

  • 2008年05月26日 20:24
  • 108KB
  • 下载

用flume的intercepter作数据格式转换和清洗

最近在工作中,用到spark streaming做数据解析和实时的数据计算,由于数据量比较大,而计算资源有限,spark的处理性能总是跟不上。观察之后发现,数据格式的解析占用了大量时间。整个数据的流程...

数据格式转换

  • 2013年12月05日 13:44
  • 44KB
  • 下载

使用python开发json、csv数据格式转换工具

json和xml是业界常用的数据格式,而游戏行业经常使用csv配表,包括本地化文本和数值。本文介绍csv和json序列化、逆序列化相关的python库,以及开发工具常用的命令行解析库--getopt ...

西门子PLC数据格式转换控件

  • 2010年05月20日 09:25
  • 14KB
  • 下载
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:取模数据格式转换源码 宽高8*16 低位在前 第二字节由右边改为下边
举报原因:
原因补充:

(最多只允许输入30个字)