公共类KaufmannRegionCommand:RasterCommand
公共类KaufmannRegionCommand继承了RasterCommand
公共ref类KaufmannRegionCommand:公共RasterCommand
这个命令是可用的文档/医疗工具包。
这个类是用来计算Kaufmann比率(大脑胼胝体的大小/尺寸的球体)。胼胝体白质结构由神经纤维连接大脑的左右半球。考夫曼地区创建之前,这个命令执行降噪等图像增强过程使用高斯模糊。然后这个命令类(使用魔杖技术)创建一个Kaufmann地区始于中指定的点的颜色值RegionStart结束指定的值RegionThreshold。放置在该地区KaufmannProcessedImage。的KaufmannProcessedImage包含的数据图像(增强使用内部加强过程)和由此产生的地区。图像本身是没有改变的。由此产生的区域的面积可用于计算Kaufmann比率。计算Kaufmann比率做以下步骤:
调用命令胼胝体周围地区,调整以下属性,使周边地区想要的区域,然后保存PixelsCount值:
第二次调用命令使大脑周围地区范围调整后适当的属性,并保存PixelsCount价值。
关于大脑如何计算比率的更多信息请参考下面的例子。该命令支持12和16位灰度和48和64位彩色图像。支持12和16位灰度和48和64位彩色图像只在可用文档/医疗工具包。
应用KaufmannRegionCommand测试通过的图像。这里我们假设图像是通过“Image3.dcm”。
使用Leadtools;使用Leadtools.Codecs;使用Leadtools.ImageProcessing.Core;公共无效KaufmannRegionCommandExample (){/ /加载一个图像RasterCodecs编解码器=新RasterCodecs ();编解码器。ThrowExceptionsOnInvalidImages =真正的;RasterImage图像= codecs.Load (Path.Combine (LEAD_VARS.ImagesDir,“Image3.dcm”));/ /准备命令LeadPoint曾经繁荣=新LeadPoint(形象。宽/ 2),(图片。身高/ 2));/ /应用命令为了得到第一区域的像素计数。KaufmannRegionCommand KaufmannCommandInner =新KaufmannRegionCommand ();KaufmannCommandInner。CombineMode=RasterRegionCombineMode.Set;KaufmannCommandInner。MaximumInput = 110;KaufmannCommandInner。MinimumInput = 54;KaufmannCommandInner。半径= 21;KaufmannCommandInner。RegionStart=曾经繁荣;KaufmannCommandInner。RegionThreshold = 13;KaufmannCommandInner。RemoveHoles =真正的;KaufmannCommandInner.Run(图片);intfirstPixelCount = KaufmannCommandInner.PixelsCount;/ /命令再次申请。KaufmannRegionCommand KaufmannCommandOuter =新51 KaufmannRegionCommand(29日,229年,207年,曾经繁荣,真正的,RasterRegionCombineMode.Set);KaufmannCommandOuter.Run(图片);intsecondPixelCount = KaufmannCommandOuter.PixelsCount;/ /打印第一个和第二个地区之间的比率。双结果= (firstPixelCount * 1.0 / secondPixelCount);MessageBox.Show (result.ToString ());}静态类LEAD_VARS{公共常量字符串ImagesDir =@“C: \ LEADTOOLS21 \ Resources \图片”;}
进口Leadtools进口Leadtools.Codecs进口Leadtools.ImageProcessing.Core公共子KaufmannRegionCommandExample ()昏暗的编解码器作为新RasterCodecs ()编解码器。ThrowExceptionsOnInvalidImages =真正的昏暗的leadImage作为RasterImage = codecs.Load (Path.Combine (LEAD_VARS.ImagesDir“IMAGE3.dcm”))“准备的命令昏暗的曾经繁荣作为LeadPoint =新LeadPoint (leadImage。宽度\ 2),(leadImage。身高\ 2))“应用命令为了得到第一区域的像素计数。昏暗的KaufmannCommandInner作为KaufmannRegionCommand =新KaufmannRegionCommandKaufmannCommandInner。CombineMode=RasterRegionCombineMode.集KaufmannCommandInner。MaximumInput = 110KaufmannCommandInner。MinimumInput = 54KaufmannCommandInner。半径= 21KaufmannCommandInner。RegionStart=曾经繁荣KaufmannCommandInner。RegionThreshold = 13KaufmannCommandInner。RemoveHoles =真正的KaufmannCommandInner.Run (leadImage)昏暗的firstPixelCount作为整数= KaufmannCommandInner.PixelsCount“应用命令。昏暗的KaufmannCommandOuter作为KaufmannRegionCommand =新51 KaufmannRegionCommand(29日,229年,207年,曾经繁荣,真正的,RasterRegionCombineMode。集)KaufmannCommandOuter.Run (leadImage)昏暗的secondPixelCount作为整数= KaufmannCommandOuter.PixelsCount“打印第一个和第二个地区之间的比率。昏暗的结果作为双= (firstPixelCount * 1.0 / secondPixelCount)MessageBox.Show (result.ToString ())结束子公共NotInheritable类LEAD_VARS公共常量ImagesDir作为字符串=“C: \ LEADTOOLS21 \ Resources \图片”结束类
Leadtools.ImageProcessing.CoreNamespace
Leadtools.ImageProcessing.Color.ChangeIntensityCommand
Leadtools.ImageProcessing.Color.GammaCorrectCommand
Leadtools.ImageProcessing.Color.ChangeContrastCommand
Leadtools.ImageProcessing.Color.StretchIntensityCommand
Leadtools.ImageProcessing.Color.RemapIntensityCommand
Leadtools.ImageProcessing.Color.ChangeHueCommand
Leadtools.ImageProcessing.Color.ChangeSaturationCommand
Leadtools.ImageProcessing.Color.HistogramEqualizeCommand
Leadtools.ImageProcessing.Color.HistogramContrastCommand
Leadtools.ImageProcessing.Color.ColorLevelCommand
帮助收藏
光栅net|C API|c++类库|HTML5 JavaScript
文档net|C API|c++类库|HTML5 JavaScript
医疗net|C API|c++类库|HTML5 JavaScript
医疗Web查看器net
188宝金博怎么下载
支持的平台上
net, Java, Android和iOS / macOS组件
C / c++类库的API
HTML5 JavaScript库
你的邮件已经发送到支持!有人应该联系!如果你的问题是紧急请回到聊天。
聊天时间:
周一——周五,上午6点等
谢谢你的反馈!
请填写表单重新开始一个新的聊天。
所有代理目前离线。
聊天时间:
周一-周五
早上8:30 - 6点
联系我们请填写这张表格,我们将通过电子邮件联系你。
