Welcome![Sign In][Sign Up]
Location:
Search - VC byte

Search list

[Graph Recognize车牌识别

Description:


需要注意的地方:

使用VC++6.0做开发工具, 采用简单的SDI框架结构 ,一次处理一幅位图(有兴趣的可以作成MDI)

1)位图信息的数据是从左下往右下为一行,一行一行往上排的。

2)每行像素应该是4的倍数,不足的地方用空点补齐,读的时候注意跳过冗余点。

3)主要数据都存在Doc里面,BMP的主要数据存在一个由ImgData指向的BYTE型的内存空间(根据位图的大小,动态分配的)。

4)数据读进来以后,注意向内存中贴图,以保证刷新的效率。

5)程序执行流程

应用程序生成--》打开--》CDipView的OnFileOpen 函数--》

调用CDipDoc的FileOpen 函数--》并使用myDoc->UpdateAllViews(NULL); 刷新

自动调用CDipView的OnPaint函数--》调用CDipView的OnDraw函数----一个像素点一个像素点的画

//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

比较重要的地方

读BMP文件,只能打开256色   (可以是灰度)

显示和内存贴图技术

关于调色板: 调色板实际上是一个数组,4个BYTE 分别是 B,G,R,和 Reserved
每一个像素点都有一个相应的数组。


关于VC和windows 的绘图机制:
使用GDI(图形设备接口)对象,通常使用CDC 类,CPaintDC也一样(device-context)设备上下文

windows下的MFC编程机制,消息驱动,事件等待!

全局的app(应用程序对象)

注意 手工分配内存的清除 和CDC对象的删除 以释放系统的GDI资源
每一个new操作符都要对应一个delete

虽然已经弄出来了,还是希望大家好好读读源程序。

你们以后的工作:

在菜单中添加菜单项,通过ClassWizzard 生成消息响应函数(当然也可手动添加),
所有的操作应当是对 BYTE* ImgData;进行的。
在完成相应的功能后 将 isnewfile 和 isnewiamge 置为真 ,并使用myDoc->UpdateAllViews(NULL); 刷新

当然,可以更加有个性化一点,有能力的同学可以自己完成。
随着课程的进行,菜单功能逐渐丰富,最后完成基本的数字图像处理的功能,而不必最后一下完成一个大的作业。

 

 


Platform: | Size: 295054 | Author: tata80808 | Hits:

[Crack HackRC5-CTS

Description: RC5-CTS模式加密解密算法C++程序实现。 解压之后运行main.dsw.在VC++下面打开,执行之后根据显示首先输入密钥(随便输入不超过16字节的字符串),之后提示输入需要加密的plaintext文件,输入plaintext1.txt,这个文件在压缩包里已经存在,(注意一定要写清楚文件类型名,是个文本文件),然后根据提示输入加密文件名,可随便输入一个文件名,但是别忘记了类型名.txt,如ciphertext1.txt。因为不输入类型名将来无法打开。之后输入解密之后的文件名,可输入decrypted.txt 结束。 之后打开生成的ciphertext1.txt和decrypted.txt,还有原来的明文文件plaintext1.txt,可以看出decrypted.txt和plaintext1.txt内容一致。ciphertext1.txt由plaintext1.txt加密得到,而decrypted.txt由ciphertext1.txt解密得到-RC5 - CTS mode encryption and decryption algorithm C program. After running main.dsw decompression. The VC Below opened, after the implementation of the first to suggest that the importation of key (casual importing more than 16 byte string), followed by the need to import suggest encrypted plaintext documents, the importation of plaintext1.txt, this document compression bag already exists. (Note that certain types of documents to write clearly, is the text document), then prompted to input encrypted file name, could easily enter a file name, but not forget the type name. txt, as ciphertext1.txt. Because we do not import the type who could not open the future. After following the importation of declassified documents, and can import decrypted.txt end. After opening generated ciphertext1.tx
Platform: | Size: 10983 | Author: 郭佳 | Hits:

[Graph Recognize200561555616250020000

Description: 车牌识别系统 需要注意的地方: 使用VC++6.0做开发工具, 采用简单的SDI框架结构 ,一次处理一幅位图(有兴趣的可以作成MDI) 1)位图信息的数据是从左下往右下为一行,一行一行往上排的。 2)每行像素应该是4的倍数,不足的地方用空点补齐,读的时候注意跳过冗余点。 3)主要数据都存在Doc里面,BMP的主要数据存在一个由ImgData指向的BYTE型的内存空间(根据位图的大小,动态分配的)。 4)数据读进来以后,注意向内存中贴图,以保证刷新的效率。 5)程序执行流程 应用程序生成--》打开--》CDipView的OnFileOpen 函数--》 调用CDipDoc的FileOpen 函数--》并使用myDoc->UpdateAllViews(NULL) 刷新 自动调用CDipView的OnPaint函数--》调用CDipView的OnDraw函数----一个像素点一个像素点的画 //+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 比较重要的地方 读BMP文件,只能打开256色 (可以是灰度) 显示和内存贴图技术 关于调色板: 调色板实际上是一个数组,4个BYTE 分别是 B,G,R,和 Reserved 每一个像素点都有一个相应的数组。-LPR system needs to the attention of the local : VC 6.0 do use development tools, SDI simple frame structure, handling a bitmap (interested can make MDI) 1) bitmap data is the information from the right and the left for his , and his party up his platoon. 2) pixels per line should be in multiples of four, the inadequacies of the points are filled with empty, Reading, the point to skip redundant. 3) key data exists inside Doc. BMP key data on the existence of a ImgData BYTE directly to the type of memory space (according to the Bitmap a small, dynamic allocation). 4) Data Reading come after, pay attention to the memory mapping, in order to ensure high efficiency. 5) implementation of procedures for application generation process -- "Open --" the OnFileOpe CDipView n Functions -- &
Platform: | Size: 233235 | Author: yanglin | Hits:

[Special Effectschepairecognition

Description: 使用VC++6.0做开发工具,一次处理一幅位图(有兴趣的可以作成MDI) 1)位图信息的数据是从左下往右下为一行,一行一行往上排的。 2)每行像素应该是4的倍数,不足的地方用空点补齐,读的时候注意跳过冗余点。 3)主要数据都存在Doc里面,BMP的主要数据存在一个由ImgData指向的BYTE型的内存空间(根据位图的大小,动态分配的)。 4)数据读进来以后,注意向内存中贴图,以保证刷新的效率。 5)程序执行流程-use as a development tool, A handle a bitmap (interested can make MDI) 1) bitmap information from the data for the right and left lower here , and his party and his party up the row. 2) pixels per line should be in multiples of four, the inadequacies of the points are filled with empty, Reading, the attention to skip redundant point. 3) key data exists inside Doc. BMP key data on the existence of a point from the ImgData BYTE-memory space (according to the bitmap small, dynamic allocation). 4) data coming time, attention to the memory map, in order to ensure high efficiency. 5) implementation process procedures
Platform: | Size: 520224 | Author: lihaichao | Hits:

[Crack HackCryption-Vcdkey-Jeff

Description: 怀恋Dos时代吗? 这里有一个Dos下的加/解密软件[提供原代码!],叫做VCDKEY,你可能要奇怪为什么叫VCDKEY?这要从上大学时候说起了:大学时候,有个铁哥们叫做"小胖子",此兄爱看VCD碟子,于是经常租碟在自己电脑上看,而且还经常将一些喜欢的精彩片段辑录到电脑中,而其人缘极好,经常有人去他电脑上玩,但他又不愿意让别人看到他录下的东西!有天,他跟我谈到了他的苦衷,于是,我决定为我的哥们写个东西,于是就有了这个东西! 其实,它的原理很简单,就是文件各字节的异或,但是要配合好字节的异或却要做一些另外的工作!而且它还具有CRC校验及运行时候的进度提示!作为个人的文件加密,C语言的学习都有一定的价值吧! 本人才疏学浅,没有炫耀之意思,只想代码,软件共享,大家共同提高!-nostalgia for the times? Here is a Dos under the plus/decryption software [for the original code! ] Called VCDKEY, you may be wondering why VCDKEY called? From this time on the University Speaking : University of time, to have a buddy called "Overweight", brother love VCD plate, so often rent CDs on their computers perspective, but also often like some of the highlights of all of the computer, and its excellent personal relationship, it was often to go to his computer to play , but he is unwilling to let people see his record things! One day, he told me he talked of the difficulties, and I decided for my brother to write things, he was such a thing! Actually, the principle is very simple. Bytes of the file or different, but to meet good-byte XOR has to be done some other work!
Platform: | Size: 51200 | Author: 杰弗雷 | Hits:

[Windows Developdiskaccess

Description: 编译环境:VC6.0及以上版本 读写扇区(以字节或字读取) 读写簇(以字节或字读取) 读取FAT项 获取BPB信息 获取某文件或文件夹的目录项信息(入口簇及偏移量) 设置目录项信息(可以通过这来实现更改文件名,文件属性,创建时间等信息)-build environment : VC6.0 and above reader Sector (byte or word reader) to read and write Cluster (byte or word reader) to read FAT items BPB access information access a document or folder directory information items (imported cluster and offset) the installation of Contents items (which can be passed to to achieve change file names, file attributes, create time information)
Platform: | Size: 84992 | Author: 郭发发 | Hits:

[Graph Recognize200561555616250020000

Description: 车牌识别系统 需要注意的地方: 使用VC++6.0做开发工具, 采用简单的SDI框架结构 ,一次处理一幅位图(有兴趣的可以作成MDI) 1)位图信息的数据是从左下往右下为一行,一行一行往上排的。 2)每行像素应该是4的倍数,不足的地方用空点补齐,读的时候注意跳过冗余点。 3)主要数据都存在Doc里面,BMP的主要数据存在一个由ImgData指向的BYTE型的内存空间(根据位图的大小,动态分配的)。 4)数据读进来以后,注意向内存中贴图,以保证刷新的效率。 5)程序执行流程 应用程序生成--》打开--》CDipView的OnFileOpen 函数--》 调用CDipDoc的FileOpen 函数--》并使用myDoc->UpdateAllViews(NULL) 刷新 自动调用CDipView的OnPaint函数--》调用CDipView的OnDraw函数----一个像素点一个像素点的画 //+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 比较重要的地方 读BMP文件,只能打开256色 (可以是灰度) 显示和内存贴图技术 关于调色板: 调色板实际上是一个数组,4个BYTE 分别是 B,G,R,和 Reserved 每一个像素点都有一个相应的数组。-LPR system needs to the attention of the local : VC 6.0 do use development tools, SDI simple frame structure, handling a bitmap (interested can make MDI) 1) bitmap data is the information from the right and the left for his , and his party up his platoon. 2) pixels per line should be in multiples of four, the inadequacies of the points are filled with empty, Reading, the point to skip redundant. 3) key data exists inside Doc. BMP key data on the existence of a ImgData BYTE directly to the type of memory space (according to the Bitmap a small, dynamic allocation). 4) Data Reading come after, pay attention to the memory mapping, in order to ensure high efficiency. 5) implementation of procedures for application generation process-- "Open--" the OnFileOpe CDipView n Functions-- &
Platform: | Size: 233472 | Author: yanglin | Hits:

[Special Effectschepaidetection

Description: 使用VC++6.0做开发工具, 采用简单的SDI框架结构 ,一次处理一幅位图(有兴趣的可以作成MDI) 1)位图信息的数据是从左下往右下为一行,一行一行往上排的。 2)每行像素应该是4的倍数,不足的地方用空点补齐,读的时候注意跳过冗余点。 3)主要数据都存在Doc里面,BMP的主要数据存在一个由ImgData指向的BYTE型的内存空间(根据位图的大小,动态分配的)。 4)数据读进来以后,注意向内存中贴图,以保证刷新的效率。 5)程序执行流程-use as a development tool, a simple frame structure of SDI, A handle a bitmap (interested can make MDI) 1) bitmap information from the data for the right and left lower here , and his party and his party up the row. 2) pixels per line should be in multiples of four, the inadequacies of the points are filled with empty, Reading, the attention to skip redundant point. 3) key data exists inside Doc. BMP key data on the existence of a point from the ImgData BYTE-memory space (according to the bitmap small, dynamic allocation). 4) data coming time, attention to the memory map, in order to ensure high efficiency. 5) implementation process procedures
Platform: | Size: 120832 | Author: lihaichao | Hits:

[SCMmusicplay51mcu

Description: 单片机用T1中断在IO口P1.0输出乐曲(在P1.0口与VCC间接一喇叭即可听到) // // 1.由于输出的是方波,比较难听:-)你也可以将波形细分用DA输出正弦波 // // 2.由于T1频繁中断,任何其他中断发生都会是乐曲打顿,只适合试验 // // 3.优化音符编码:一个字节中包含节拍、音符、升降调,可区分数据和命令-T1 chip Computer IO interruption in output P1.0 mouth music (P1.0 mouth with a loudspeaker indirectly VCC can be heard)//// 1. As the square wave output, more bluntly :-) You can also use sub-DA waveform output sine wave//// 2. As T1 frequently interrupted, any other interruption occurred will be playing music Kingston, it is only suitable for testing//// 3. Code optimization notes : a byte contains rhythms, musical notes, movements emphasize that can distinguish between data and orders
Platform: | Size: 4096 | Author: th | Hits:

[Graph Recognizechepaishibie

Description: 车牌识别源码 使用VC++6.0做开发工具, 采用简单的SDI框架结构 ,一次处理一幅位图(有兴趣的可以作成MDI) 1)位图信息的数据是从左下往右下为一行,一行一行往上排的。 2)每行像素应该是4的倍数,不足的地方用空点补齐,读的时候注意跳过冗余点。 3)主要数据都存在Doc里面,BMP的主要数据存在一个由ImgData指向的BYTE型的内存空间(根据位图的大小,动态分配的)。 4)数据读进来以后,注意向内存中贴图,以保证刷新的效率。 5)程序执行流程 应用程序生成--》打开--》CDipView的OnFileOpen 函数--》 调用CDipDoc的FileOpen 函数--》并使用myDoc->UpdateAllViews(NULL) 刷新 自动调用CDipView的OnPaint函数--》调用CDipView的OnDraw函数----一个像素点一个像素点的画
Platform: | Size: 233472 | Author: kongge | Hits:

[Crack Hackwenjianjiami(VC++)

Description: 本人用的方法是把文件从头到尾的每一个字节都读出来然后加密,具体做法请参照源代码 -I used method is the document from start to finish of each byte are read out and then encryption, please refer to the specific practices of the source code
Platform: | Size: 6144 | Author: 梁小亮 | Hits:

[Crack HackDES

Description: 3DES加密算法:密钥长度不足24字节时,右补ASCII字符“0”;内容采用PKCS5Padding方式填充,即长度以8字节切分,不能被8整除的末尾部分,根据长度不足8字节的部分,填充“0x01”—“0x08”,如不足1字节,则填充1个“0x01”,如不足2字节,则填充2个“0x02”,以此类推,如整除,则填充8个“0x08” -3DES encryption algorithm: less than 24-byte key length, the right make up ASCII characters
Platform: | Size: 3628032 | Author: liyingshu | Hits:

[Windows Developusb_vc

Description: 用于与USB接口设备通讯的上位机程序,可将下位机USB接口设备传输的数据送至PC机并处理。每次数据传送都是上位机主动,上位机先发送命令(借用DEMO程序中的版本号部分),下位机收到READ_VERSION命令就发送64字节数据给上位机,并开始计时,每次发送把发送帧数加1,把时间和帧数发送到上位机显示,方便观察;上位机收到64字节数据就又给下位机发送READ_VERSION命令,重复1000次,测试需时31秒左右。64字节中:第2,3字节是发送帧数,第61字节是通信时间(S)-USB interface for PC communication procedures, could be the next-bit machine USB interface data transmission to the PC machine and processed. Each data transmission are PC initiative, the first host computer to send the command (to borrow DEMO program version number part), the next-bit machine READ_VERSION received orders on the transmission of 64 bytes of data to the host computer, and start running, each time I send to Send frames plus 1, the time and number of frames sent to the host computer for easy observation upper 64 bytes of data received on the given machine to send the next bit READ_VERSION command, repeat 1000 times, test takes about 31 seconds. 64-byte: the first 2,3-byte frame is sent, 61 bytes is the communication time (S)
Platform: | Size: 686080 | Author: huming | Hits:

[File Operatecfile64

Description: This Class can manager over 2G byte size file, maybe you can used this class replace VC++ CFile class .
Platform: | Size: 96256 | Author: yuan_ym | Hits:

[Books20071116140217

Description: 总所周之,利用串口进行数据通讯在在通讯通讯领域重占有着重要的地位。利用RS232-RS485进行数据信号的采集和传递是VC编程的又一大热点。串口通讯在通讯软件重有着十分广泛的应用。如电话、传真、视频和各种控制等。在各种开发工具中间,VC由于功能强大和灵活,同时也得到了Microsoft的最大支持,所以在一般进行涉及硬件操作的通讯编程重,大都推荐使用VC作为开发工具。然而工业控制串口通讯这个又不同于一般的串口通讯程序,因为控制外围设备传送的大都是十六进制数据(BYTE类型),所以,为了提高程序的运行稳定性,我们在编写程序进行通讯时可以不考虑传送BYTE类型数据的工作。-Abstract:Described serial communication protocol of OM RON Series PLC in details and achieves communication between PLC and PC by VC++6.0 development system in windows environment.
Platform: | Size: 141312 | Author: 王建 | Hits:

[ADO-ODBCSetup10415356

Description: VC++调用BBS论坛的一个高级开发代码,编译测试了一下,可以正常编译及运行,运行后连接一个远程的BBS服务器,并可以获取内容,大家可以看截图,好像调用的是浙江大家海纳百川BBS服务器的内容,其实它是一个bbs客户端程序,能够根据bbs的协议原则,对每个字节进行分析,同时也能够同时显示中文和英文,程序有一个缺点就是速度有时候比较慢,希望朋友们改进。 -VC++ calling BBS forum for a high-level development of the code, compile, test it, it can be properly compiled and running, running, connected to a remote BBS server and can access the content, we can see screenshots, if called Zhejiang everyone, contains all BBS server are, in fact it is a client program bbs, bbs the agreement to under the principle of the analysis of each byte, but also to simultaneously display both Chinese and English, the program has a drawback is the relatively slow pace at times, I hope you will improve .
Platform: | Size: 80896 | Author: 胡伟 | Hits:

[Crack Hack256-Byte-ECC

Description: 1. 附件中的代码用来实现ECC的编解码,其原理是利用汉明码的相关知识 2. 这里是我自己验证过的代码,当时使用的环境是VC。如果要去编译的话,可以在VS或者VC中自建工程区。-It is sample code of ecc coding and decoding. However, you need to create project yourself.
Platform: | Size: 2048 | Author: Peixin | Hits:

[MultiLanguageFileEncConvertorDlg

Description: 编码互转(原创) 中日文多字节文件和unicode、utf8之间互转 子文件夹全遍历 选择文件类型 VC++[原创]-Coding system conversion (original) and Japanese multi-byte files and unicode, utf8 Mutual Convert between all traverse sub-folders select the file type VC++ [original]
Platform: | Size: 5820416 | Author: yaofeng | Hits:

[Windows Developbyte-TO-WROD

Description: 数据类型转换:将byte类型转换为WROD类型,使用VC++编译器即可运行-failed to translate
Platform: | Size: 18432 | Author: wu qiong | Hits:

[Software Engineeringthe-byte-order-of-memory-structures

Description: 结构的大小字节序内存对应关系,WINDOWS字节序排列-结构的大小字节序内存对应关系,WINDOWS字节序排列 请键入文字或网站地址,或者上传文档。 取消 Jiégòu de dàxiǎo zì jié xù nèicún duìyìng guānxì,WINDOWS zì jié xù páiliè 您是不是要找: VC实现对SQL SERVER数据库的访问,主要如何打开和连接数据库,表的访问,了解访问系统接口,测试用Correspondence between the size of the byte order of memory structures, WINDOWS endianness arrangement
Platform: | Size: 9216 | Author: 周成 | Hits:
« 12 3 »

CodeBus www.codebus.net