←选择平台

GetLinearVoiLookupTableCommand类

总结
如果存储在图像内的LookupTable是线性的,则获取窗口中心和窗口宽度。如果存储在图像中的LookupTable不是线性的,则该命令将失败。
语法
c#
VB
objective - c
c++
Java
公共GetLinearVoiLookupTableCommand:RasterCommand
公共GetLinearVoiLookupTableCommand继承了RasterCommand
@接口ltgetlinearvoilookuptableccommand: LTRasterCommand
公共GetLinearVoiLookupTableCommand扩展RasterCommand
公共ref类GetLinearVoiLookupTableCommand:公共RasterCommand
讲话
  • 注意已签名图像的查找表。上半部分应该包含负值,下半部分应该包含正值。
  • 该类支持12位和16位灰度图像。对12位和16位灰度图像的支持仅在文档/医疗工具包。
  • 此命令不支持32位灰度图像。
例子

运行GetLinearVoiLookupTableCommand在图像上。并利用该方法检查LookupTable的线性度,计算其窗宽和中心。

c#
VB
使用Leadtools;使用Leadtools.Codecs;使用Leadtools.ImageProcessing.Core;公共无效GetLinearVoiLookupTableCommandExample ()//加载图像RasterCodecs codecs =RasterCodecs ();编解码器。ThrowExceptionsOnInvalidImages =真正的RasterImage image = codecs.Load(Path.Combine(LEAD_VARS.ImagesDir,“IMAGE2.dcm”));//准备命令GetLinearVoiLookupTableCommand命令=GetLinearVoiLookupTableCommand ();命令。Flags = GetLinearVoiLookupTableCommandFlags.None;command.Run(图片);对话框。显示("Width = "+命令。宽度+“\ n”+"Center = "+ command.Center);静态LEAD_VARS公共常量字符串ImagesDir =@“C: \ LEADTOOLS21 \ Resources \图片”
进口Leadtools进口Leadtools。编解码器进口Leadtools.ImageProcessing.Core公共GetLinearVoiLookupTableCommandExample ()昏暗的编解码器作为RasterCodecs ()编解码器。ThrowExceptionsOnInvalidImages =真正的昏暗的leadImage作为RasterImage = codecs.Load(Path.Combine(LEAD_VARS.ImagesDir,“IMAGE2.dcm”))准备命令昏暗的命令作为GetLinearVoiLookupTableCommand =GetLinearVoiLookupTableCommand命令。Flags = GetLinearVoiLookupTableCommandFlags。没有一个command.Run (leadImage)对话框。显示("Width = "+ command.Width.ToString“\ n”+"Center = "+ command.Center.ToString)结束公共NotInheritableLEAD_VARS公共常量ImagesDir作为字符串“C: \ LEADTOOLS21 \ Resources \图片”结束
需求

目标平台

Leadtools.ImageProcessing.Core组装
188金宝搏的网址客服|支持|联系我们|知识产权公告
©1991 - 2021领德科技有限公司版权所有。