公共静态intGetUserLookupTable (int[]lookupTable,LeadPoint[]userPoints)
公共共享函数GetUserLookupTable (_按值传递lookupTable()作为整数, _按值传递userPoints()作为LeadPoint_)作为整数
+(了NSUInteger) getUserLookupTable:(无符号int*)lookupTablelookupTableLength:(了NSUInteger)lookupTable长度userPoints:(常量LeadPoint *)userPointsuserPointsCount:(了NSUInteger)userPoints数错误:错误(NSError * *)
公共静态intgetUserLookupTable (int[]lookupTable,LeadPoint []userPoints)
公共:静态intGetUserLookupTable (数组<int> ^lookupTable,数组< LeadPoint > ^userPoints)
lookupTable
要用此方法填充的查找表数组。
userPoints
包含用于更新查找表的曲线上的点的LeadPoint结构数组。
返回查找表数组中实际由此方法更新的条目数。
查找表数组的长度取决于所使用的比特数,如下所示:
| 价值 | 意义 |
| 65536 | 16位/样本图像 |
| 4096 | 12位/样本图像 |
| 256 | 256张8位/样本图像 |
方法更新的查找表将照亮加载的位图GetUserLookupTable方法。
使用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)结束子公共NotInheritable类LEAD_VARS公共常量ImagesDir作为字符串=“C: \ LEADTOOLS21 \ Resources \图片”结束类
帮助收藏
光栅net|C API|c++类库|HTML5 JavaScript
文档net|C API|c++类库|HTML5 JavaScript
医疗net|C API|c++类库|HTML5 JavaScript
医疗网络查看器net
188宝金博怎么下载
支持的平台上
.NET、Java、Android和iOS/macOS程序集
C API/ c++类库
HTML5 JavaScript库
您的邮件已发送给技术支持!应该有人联系!如果你的事情很紧急,请回来聊天。
聊天时间:
周一至周五,美国东部时间上午8:30至下午6:00
感谢您的反馈!
请再次填写表格,开始新的聊天。
所有代理目前都离线。
聊天时间:
星期一至星期五
美国东部时间上午8:30 -下午6点
如需与我们联系,请填写此表格,我们将通过电子邮件与您联系。
