Location:
Search - 256 BMP to b
Search list
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:
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:
Description: 读BMP文件,只能打开256色 (可以是灰度)
显示和内存贴图技术
关于调色板: 调色板实际上是一个数组,4个BYTE 分别是 B,G,R,和 Reserved
每一个像素点都有一个相应的数组。
关于VC和windows 的绘图机制:
使用GDI(图形设备接口)对象,通常使用CDC 类,CPaintDC也一样(device-context)设备上下文
windows下的MFC编程机制,消息驱动,事件等待!
全局的app(应用程序对象)
注意 手工分配内存的清除 和CDC对象的删除 以释放系统的GDI资源
每一个new操作符都要对应一个delete
-Reading of BMP files, open only 256 colors (can be a gray-scale) display and memory mapping technology on the palette: the palette is actually an array, 4 BYTE are B, G, R, and every Reserved pixel has a corresponding array. On the VC and the windows of the drawing mechanism: the use of GDI (Graphics Device Interface) objects, used by CDC category, CPaintDC same (device-context) equipment under the windows context MFC programming mechanisms, message-driven, event wait! Overall app (application objects) Note the allocation of memory, manual removal and CDC object to delete the GDI release system resources every new operator should correspond to a delete
Platform: |
Size: 238592 |
Author: 嘉川 |
Hits:
Description: 本代码实现的功能:24位位图(BMP)的灰度化。具体实现过程:打开图像文件,找到数据区(每3个字节代表一个象素的R,G,B值),循环扫描,根据RGB的权重,计算出灰度值. 如果要得到256色灰度图,则要新建一个调色板,修改信息头和文件头.-Realize the function of the code: 24-bit bitmap (BMP) of the gray. Concrete realization of the process: Open the image file, locate the data area (3 bytes per pixel on behalf of a R, G, B values), cyclic scan, according to the weight of RGB, gray value is calculated. If you want to get 256 colors grayscale, would create a new palette, modify the header and file header information.
Platform: |
Size: 3072 |
Author: xixi |
Hits:
Description: bmp图片打包工具 生成相应bin等文件-bmp picture to generate the corresponding bin packing tools and other documents
Platform: |
Size: 3901440 |
Author: 张雨田 |
Hits:
Description: 腐蚀运算和膨胀运算互为对偶的,用公式表示为(X B)c=(Xc B),即X 被B腐蚀后的补集等于X的补集被B膨胀。这句话可以形象的理解为:河岸的补集为河面,河岸的腐蚀等价于河面的膨胀。你可以自己举个例子来验证一下这个关系。在有些情况下,这个对偶关系是非常有用的。例如:某个图象处理系统用硬件实现了腐蚀运算,那么不必再另搞一套膨胀的硬件,直接利用该对偶就可以实现了。-Subtraction of the source program. Note that, the first picture file named C : \ test.bmp, second picture file name is C: \ backgnd.bmp. They have the same gray scale value and palette. When executed, the two documents are ready. We although aimed at value of two plans, but in order to facilitate the, use of 256 grayscale, but to only 0and 255of two kinds of gray level.
Platform: |
Size: 7168 |
Author: ksahd |
Hits:
Description: 腐蚀运算和膨胀运算互为对偶的,用公式表示为(X B)c=(Xc B),即X 被B腐蚀后的补集等于X的补集被B膨胀。这句话可以形象的理解为:河岸的补集为河面,河岸的腐蚀等价于河面的膨胀。你可以自己举个例子来验证一下这个关系。在有些情况下,这个对偶关系是非常有用的。例如:某个图象处理系统用硬件实现了腐蚀运算,那么不必再另搞一套膨胀的硬件,直接利用该对偶就可以实现了。-Subtraction of the source program. Note that, the first picture file named C : \ test.bmp, second picture file name is C: \ backgnd.bmp. They have the same gray scale value and palette. When executed, the two documents are ready. We although aimed at value of two plans, but in order to facilitate the, use of 256 grayscale, but to only 0and 255of two kinds of gray level.
Platform: |
Size: 1024 |
Author: ksahd |
Hits: