﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>C++博客-chenpingjun1990-文章分类-ImageProcessing</title><link>http://www.cppblog.com/chenpingjun1990/category/17829.html</link><description /><language>zh-cn</language><lastBuildDate>Sun, 15 Jul 2012 14:54:09 GMT</lastBuildDate><pubDate>Sun, 15 Jul 2012 14:54:09 GMT</pubDate><ttl>60</ttl><item><title>医学影像的成像原理</title><link>http://www.cppblog.com/chenpingjun1990/articles/183559.html</link><dc:creator>万川先生</dc:creator><author>万川先生</author><pubDate>Sun, 15 Jul 2012 08:44:00 GMT</pubDate><guid>http://www.cppblog.com/chenpingjun1990/articles/183559.html</guid><wfw:comment>http://www.cppblog.com/chenpingjun1990/comments/183559.html</wfw:comment><comments>http://www.cppblog.com/chenpingjun1990/articles/183559.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/chenpingjun1990/comments/commentRss/183559.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/chenpingjun1990/services/trackbacks/183559.html</trackback:ping><description><![CDATA[1.X线影像<br />&nbsp; &nbsp; &nbsp; X线之所以能成像，一方面在于X线本身的特性，如穿透、荧光、感光和电离等特性，另一方面因为人体有着密度和厚度的差异，当X光照射人体时，<br />被吸收、衰减的程度不同，透过人体的剩余射线就在胶片或者荧光屏上显示黑白对比不同的影像。<br />2.CT影像<br />&nbsp; &nbsp; &nbsp; CT是用X线束对人体某部位按一定厚度的层面扫描，由探测器接受透过该层面的X线，并把它转换成电流，再经过模/数转换器转变为数字信号，输入<br />计算机处理。图像的形成是经过对选定层面分成若干体积相同的小方块扫描，其所得信息经过计算机处理而得到每个体素的X线衰减系数或吸收系数，然后<br />进行处理，再排成矩阵，经数/模转换器把数字矩阵中每个数字转换成由黑到白不等灰度的小方块，并按矩阵排列，最终构成CT影像。<br />3.MRI成像<br />&nbsp; &nbsp; &nbsp; MRI是通过对静磁场的人体施加某种特定频率的射频脉冲（RF），使人体组织中的氢质子受到激励而发生磁共振现象，当中止RF脉冲后，氢质子在弛豫<br />过程中发射出射频信号而成像。<br />4.SPECT成像<br />&nbsp; &nbsp; &nbsp; 给病人口服或者静脉注射某种放射性原子，这些原子进入人体后将参与体内特定器官组织的循环和代谢，并不断放出&#947;射线；然后在体外用探测仪器追踪<br />探查，最后一图像的形式显示出人体内脏器官的形态和功能。<br />5.PET<br />&nbsp; &nbsp; &nbsp; 在病人身上注射放射性药物，放射性药物在病人体内释放出信号，而被体外的PET扫描仪所接收，继而形成影像，可显现出器官或组织的化学变化，反映某<br />部位的新陈代谢状况。<br />6.超声成像<br />&nbsp; &nbsp; &nbsp; 超声波是指频率高于20 000Hz的声波，超声波具有阻抗差、反射、折射、衍射、散射、衰减和多普勒效应等物理特性。超声成像就是使用超声波照射人体，<br />由于人体组织结构各异和超声固有的物理特性，反射回来的声波也不同，回波中含有人体组织或结构性质特征的信息。通过接收和处理这些回波，即可获得人体<br />组织性质与结构的图像。<img src ="http://www.cppblog.com/chenpingjun1990/aggbug/183559.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/chenpingjun1990/" target="_blank">万川先生</a> 2012-07-15 16:44 <a href="http://www.cppblog.com/chenpingjun1990/articles/183559.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>图像配准基本框架</title><link>http://www.cppblog.com/chenpingjun1990/articles/183550.html</link><dc:creator>万川先生</dc:creator><author>万川先生</author><pubDate>Sun, 15 Jul 2012 07:05:00 GMT</pubDate><guid>http://www.cppblog.com/chenpingjun1990/articles/183550.html</guid><wfw:comment>http://www.cppblog.com/chenpingjun1990/comments/183550.html</wfw:comment><comments>http://www.cppblog.com/chenpingjun1990/articles/183550.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/chenpingjun1990/comments/commentRss/183550.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/chenpingjun1990/services/trackbacks/183550.html</trackback:ping><description><![CDATA[&nbsp; &nbsp; &nbsp; &nbsp;图像配准的基本框架包括以下四个方面：特征空间、搜索空间、搜索策略以及相似性度量。<br />&nbsp; &nbsp; &nbsp; &nbsp;1. 特征空间：<br />&nbsp; &nbsp; &nbsp; &nbsp;指从参考图像和浮动图像中提取的可用于配准的特征。在基于灰度的图像配准方法中，特征空间为图像像素的灰度值；<br />而在基于特征的图像配准方法中，特征空间可以是点、边缘、曲线、曲面、不变矩。<br />&nbsp; &nbsp; &nbsp; &nbsp;2. 搜索空间：<br />&nbsp; &nbsp; &nbsp; &nbsp;指在配准工程中对图像进行变换的范围及变换的方式。图像的变换范围可以分为三类：全局的、局部的和位移场的。<br />图像的变换方式可分为线性变换和非线性变换两种方式。线性变换又可分为刚性变换、仿射变换和投影变换。非线性变换<br />一般使用多项式函数，如二次、三次函数及薄板样条函数。<br />&nbsp; &nbsp; &nbsp; 3.相似性度量<br />&nbsp; &nbsp; &nbsp; 相似性度量是衡量每次变换结果优劣的准则，用来对变换结果进行评估，为搜索策略的下一步动作提供依据。常见的<br />相似性度量有互信息、归一化互信息、联合熵、相关性、欧式距离、梯度互相关。<br />&nbsp; &nbsp; &nbsp; 4.搜索策略<br />&nbsp; &nbsp; &nbsp; 搜索策略的任务是在搜索空间中找到最优的配准参数，在搜索过程中以相似性度量的值作为判优依据。常用的搜索策略有<br />黄金分割法、Brent法、抛物线法、三次插值法、Powell法、遗传算法、蚁群算法、牛顿法、梯度下降法等。<img src ="http://www.cppblog.com/chenpingjun1990/aggbug/183550.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/chenpingjun1990/" target="_blank">万川先生</a> 2012-07-15 15:05 <a href="http://www.cppblog.com/chenpingjun1990/articles/183550.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>C语言读取BMP图像数据(转)</title><link>http://www.cppblog.com/chenpingjun1990/articles/157335.html</link><dc:creator>万川先生</dc:creator><author>万川先生</author><pubDate>Sun, 02 Oct 2011 00:53:00 GMT</pubDate><guid>http://www.cppblog.com/chenpingjun1990/articles/157335.html</guid><wfw:comment>http://www.cppblog.com/chenpingjun1990/comments/157335.html</wfw:comment><comments>http://www.cppblog.com/chenpingjun1990/articles/157335.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/chenpingjun1990/comments/commentRss/157335.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/chenpingjun1990/services/trackbacks/157335.html</trackback:ping><description><![CDATA[<div><p> BMP是英文Bitmap（位图）的简写，它是Windows操作系统中的标准图像文件格式，能够被多种Windows应用程序所支持。随着Windows操作系统的流行与丰富的Windows应用程序的开发，BMP位图格式理所当然地被广泛应用。这种格式的特点是包含的图像信息较丰富，几乎不进行压缩，但由此导致了它与生俱生来的缺点--占用磁盘空间过大。所以，目前BMP在单机上比较流行。<br />  <br /> BMP文件格式分析&nbsp;<wbr>&nbsp;<wbr><br /> 简介<br /> BMP(Bitmap-File)图形文件是Windows采用的图形文件格式，在Windows环境下运行的所有图象处理软件都支持BMP图象文件格式。Windows系统内部各图像绘制操作都是以BMP为基础的。Windows 3.0以前的BMP图文件格式与显示设备有关，因此把这种BMP图象文件格式称为设备相关位图DDB(device-dependent bitmap)文件格式。Windows 3.0以后的BMP图象文件与显示设备无关，因此把这种BMP图象文件格式称为设备无关位图DIB(device-independent bitmap)格式（注：Windows 3.0以后，在系统中仍然存在DDB位图，象BitBlt()这种函数就是基于DDB位图的，只不过如果你想将图像以BMP格式保存到磁盘文件中时，微软极力推荐你以DIB格式保存），目的是为了让Windows能够在任何类型的显示设备上显示所存储的图象。BMP位图文件默认的文件扩展名是BMP或者bmp（有时它也会以.DIB或.RLE作扩展名）。</p> <div> <table cellpadding="0" cellspacing="0" width="45%" border="1"> <tbody> <tr> <th colspan="3" width="100%">位图文件结构表</th> </tr> <tr> <td rowspan="4" width="8%">位图文件</td> <td width="62%">位图文件头</td> <td width="30%">14 字节</td> </tr> <tr> <td width="62%">位图信息头</td> <td width="30%">40 字节</td> </tr> <tr> <td width="62%">彩色表（调色板）</td> <td width="30%">4N 字节</td> </tr> <tr> <td width="62%">位图数据</td> <td width="30%">x&nbsp;<wbr> 字节</td> </tr> </tbody> </table> </div> <div>　</div> <p>构件详解：</p> <ol><li><strong>位图文件头</strong> &nbsp;<wbr> <p> 位图文件头包含文件类型、文件大小、存放位置等信息。结构定义如下：</p> <pre>  typedef struct tagBITMAPFILEHEADER<br />  {<br />        UNIT    bfType;<br />        DWORD   bfSize;<br />        UINT    bfReserved1;<br />        UINT    bfReserved2;<br />        DWORD   bfOffBits;<br />  }BITMAPFILEHEADER;<br />  <br /></pre> 其中：<br /> bfType&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr> 说明文件类型，在windows系统中为BM。<br /> bfSize&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr> 说明文件大小。<br /> bfReserved1 bfReserved2 保留，设置为０。<br /> bfOffBits&nbsp;<wbr>说明实际图形数据的偏移量。 <p>　</p> </li><li><strong>位图信息头</strong> <p> 位图信息头包含位图的大小、压缩类型、和颜色格式，结构定义如下：</p> <p>　</p> <pre>  typedef struct tagBITMAPINFOHEADER<br />  {<br />        DWORD   biSize;<br />        LONG    biWidth;<br />        LONG    biHeight;<br />        WORD    biPlanes;<br />        WORD    biBitCount;<br />        DWORD   biCompression;<br />        DWORD   biSizeImage;<br />        LONG    biXPelsPerMerer;<br />        LONG    biYPelsPerMerer;<br />        DWORD   biClrUsed;<br />        DWORD   biClrImportant;<br />  }BITMAPINFOHEADER;<br />        <br /></pre> 其中：&nbsp;<wbr><br /> biSize&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr> 说明BITMAPINFOHEADER结构所需字节数，在windows系统中为28h<br /> biWidth&nbsp;<wbr>&nbsp;<wbr> 说明图像宽度<br /> biHeight&nbsp;<wbr> 说明图像高度<br /> biPlanes&nbsp;<wbr> 为目标设备说明位面数，其值设为１<br /> biBitCount每个像素的位数，单色位图为１，２５６色为８，２４bit为２４。<br />  biCompression压缩说明，BI_RGB：无压缩，BI_RLE8：８位RLE压缩，BI_RLE4：４位RLE压缩<br />  biSizeImage说明图像大小，如无压缩，可设为０<br /> biXPelsPerMeter水平分辨率<br /> biYPelsPerMeter垂直分辨率<br /> biClrUsed 位图使用的颜色数<br /> biImportant重要颜色数目 <p>　</p> </li><li><strong>彩色表</strong> <p> 彩色表包含的元素与位图所具有的颜色数目相同，像素颜色用结构RGBQUAD来表示：</p> <pre>typedef struct tagRGBQUAD<br />{<br />        BYTE    rgbBlue;<br />        BYTE    rgbGreen;<br />        BYTE    rgbRed;<br />        BYTE    rgbReserved;<br />}RGBQUAD;<br /></pre> 其中：<br /> rgbBlue&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr> 指定蓝色强度<br /> rgbGreen&nbsp;<wbr>&nbsp;<wbr> 指定绿色强度<br /> rgbRed&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr> 指定红色强度<a></a><a></a><br /> rgbReserved保留，设为０ <p>　</p> </li><li><strong>位图数据</strong> <p> 紧跟在彩色表后的是图像数据震裂，图像每一扫描行有连续的字节组成，扫描行由底向上存储，阵列中第一字节为左下角像素，最后一字节为右上角像素。</p></li></ol>源代码以及测试图像见附件bmpTest.rar<br /><a href="/Files/chenpingjun1990/bmpTest.rar" title="C语言读取BMP图像数据">C语言读取BMP图像数据源码</a></div><img src ="http://www.cppblog.com/chenpingjun1990/aggbug/157335.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/chenpingjun1990/" target="_blank">万川先生</a> 2011-10-02 08:53 <a href="http://www.cppblog.com/chenpingjun1990/articles/157335.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>