←选择平台

GetUserLookupTable方法

总结
根据经过指定点的曲线更新查找表。
语法
c#
VB
objective - c
c++
Java
公共静态intGetUserLookupTable (int[]lookupTableLeadPoint[]userPoints
公共共享函数GetUserLookupTable (_按值传递lookupTable()作为整数, _按值传递userPoints()作为LeadPoint_作为整数
+(了NSUInteger) getUserLookupTable:(无符号int*)lookupTablelookupTableLength:(了NSUInteger)lookupTable长度userPoints:(常量LeadPoint *)userPointsuserPointsCount:(了NSUInteger)userPoints错误:错误(NSError * *)
公共静态intgetUserLookupTable (int[]lookupTableLeadPoint []userPoints
公共静态intGetUserLookupTable (数组<int> ^lookupTable数组< LeadPoint > ^userPoints

参数

lookupTable
要用此方法填充的查找表数组。

userPoints
包含用于更新查找表的曲线上的点的LeadPoint结构数组。

返回值

返回查找表数组中实际由此方法更新的条目数。

讲话
  • 此方法将使用经过userPoint数组中指定的点的最佳曲线更新查找表数组。数组中的点不需要排序。在大多数情况下,此方法与RemapIntensityCommand方法。
  • 查找表数组的长度取决于所使用的比特数,如下所示:

    价值 意义
    65536 16位/样本图像
    4096 12位/样本图像
    256 256张8位/样本图像
例子

方法更新的查找表将照亮加载的位图GetUserLookupTable方法。

c#
VB
使用Leadtools;使用Leadtools.Codecs;使用Leadtools.ImageProcessing;使用Leadtools.ImageProcessing.Effects;使用Leadtools.ImageProcessing.Color;公共无效GetUserLookupTableExample ()//加载图像RasterCodecs codecs =RasterCodecs ();编解码器。ThrowExceptionsOnInvalidImages =真正的RasterImage image = codecs.Load(Path.Combine(LEAD_VARS.ImagesDir,“Master.jpg”));//准备命令int[] LookupTable =int[256];LeadPoint[] UserPoint =LeadPoint [3];UserPoint [0] =LeadPoint (0,0);UserPoint [1] =LeadPoint(128、150);UserPoint [2] =LeadPoint(255、255);//获取用户数据方法影响数组的查找表。EffectsUtilities。GetUserLookupTable (LookupTable UserPoint);RemapIntensityCommand命令=RemapIntensityCommand ();命令。Flags = RemapIntensityCommandFlags.Master;命令。LookupTable = LookupTable;command.Run(图片);编解码器。保存(形象,Path.Combine (LEAD_VARS.ImagesDir“Result.jpg”), RasterImageFormat.Jpeg, 24);静态LEAD_VARS公共常量字符串ImagesDir =@“C: \ LEADTOOLS21 \ Resources \图片”
进口Leadtools进口Leadtools。编解码器进口Leadtools。ImageProcessing进口Leadtools.ImageProcessing.Color进口Leadtools.ImageProcessing.Effects公共GetUserLookupTableExample ()昏暗的编解码器作为RasterCodecs ()编解码器。ThrowExceptionsOnInvalidImages =真正的昏暗的leadImage作为RasterImage = codecs.Load(Path.Combine(LEAD_VARS.ImagesDir,“Master.jpg”))准备命令昏暗的LookupTable ()作为整数ReDimLookupTable (255)昏暗的UserPoint ()作为LeadPointReDimUserPoint (2)UserPoint (0) =LeadPoint (0, 0)UserPoint (1) =LeadPoint(128、150)UserPoint (2) =LeadPoint(255、255)'获取由用户数据方法影响的数组的查找表。EffectsUtilities。GetUserLookupTable (LookupTable UserPoint)昏暗的命令作为RemapIntensityCommand =RemapIntensityCommand命令。Flags = RemapIntensityCommandFlags。主命令。LookupTable = LookupTablecommand.Run (leadImage)编解码器。保存(leadImage Path.Combine (LEAD_VARS.ImagesDir“Result.jpg”), RasterImageFormat.Jpeg, 24)结束公共NotInheritableLEAD_VARS公共常量ImagesDir作为字符串“C: \ LEADTOOLS21 \ Resources \图片”结束
需求

目标平台

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