公共类FeretsDiameterCommand
公共类FeretsDiameterCommand
公共ref类FeretsDiameterCommand
运行FeretsDiameterCommand在一个图像。
使用Leadtools;使用Leadtools.Codecs;使用Leadtools.ImageProcessing.Effects;公共无效FeretsDiameterCommandExample (){/ /加载一个图像RasterCodecs编解码器=新RasterCodecs ();编解码器。ThrowExceptionsOnInvalidImages =真正的;RasterImage图像= codecs.Load (Path.Combine (LEAD_VARS.ImagesDir,@“Cannon.jpg”));/ /准备命令LeadRect rcRect =新LeadRect(图片。宽/ 4,形象。身高/ 4、形象。宽度* 3 / 4,形象。高度* 3 / 4);image.AddEllipseToRegion (零、rcRect RasterRegionCombineMode.Set);RegionContourPointsCommand contourcommand =新RegionContourPointsCommand (零);如果(contourcommand ! =零)contourcommand.Run(图片);FeretsDiameterCommand命令=新FeretsDiameterCommand (contourcommand.Points);command.Run ();MessageBox.Show (字符串.Format (”结果\ nFirstIndex: {0} \ nSecondIndex: {1} \ nDiameter: {2}”,命令。FirstIndex,命令。SecondIndex command.FeretsDiameter),“Ferets直径测试结果”);}静态类LEAD_VARS{公共常量字符串ImagesDir =@“C: \ LEADTOOLS21 \ Resources \图片”;}
进口Leadtools进口Leadtools.Codecs进口Leadtools.ImageProcessing.Effects公共子FeretsDiameterCommandExample ()昏暗的编解码器作为新RasterCodecs ()编解码器。ThrowExceptionsOnInvalidImages =真正的昏暗的leadImage作为RasterImage = codecs.Load (Path.Combine (LEAD_VARS.ImagesDir“Cannon.jpg”))“准备的命令昏暗的rcRect作为LeadRect =新LeadRect (leadImage。宽度\ 4,leadImage。身高\ 4,leadImage。宽度* 3 \ 4,leadImage。高度* 3 \ 4)leadImage.AddEllipseToRegion (没有什么、rcRect RasterRegionCombineMode。集)昏暗的contourcommand作为RegionContourPointsCommand =新RegionContourPointsCommand (没有什么)contourcommand.Run (leadImage)昏暗的命令作为FeretsDiameterCommand =新FeretsDiameterCommand (contourcommand.Points)command.Run ()MessageBox.Show (字符串.Format (“ResultsFirstIndex: {0}”&环境。换行符&“SecondIndex: {1}”&环境。换行符&“直径:{2}”,命令。FirstIndex,命令。SecondIndex command.FeretsDiameter),“Ferets直径测试结果”)结束子公共NotInheritable类LEAD_VARS公共常量ImagesDir作为字符串=“C: \ LEADTOOLS21 \ Resources \图片”结束类
Leadtools.ImageProcessing.EffectsNamespace
Leadtools.ImageProcessing.SpecialEffects.ShadowCommand
Leadtools.ImageProcessing.Color.ChangeHueSaturationIntensityCommand
Leadtools.ImageProcessing.Color.ColorReplaceCommand
Leadtools.ImageProcessing.Color.ColorThresholdCommand
Leadtools.ImageProcessing.Core.DiscreteFourierTransformCommand
DirectionEdgeStatisticalCommand类
Leadtools.ImageProcessing.Core.FastFourierTransformCommand
Leadtools.ImageProcessing.Core.FrequencyFilterCommand
Leadtools.ImageProcessing.Core.FrequencyFilterMaskCommand
Leadtools.ImageProcessing.Core.FourierTransformDisplayCommand
Leadtools.ImageProcessing.Color.MathematicalFunctionCommand
Leadtools.ImageProcessing.SpecialEffects.RevEffectCommand
Leadtools.ImageProcessing.Color.SegmentCommand
帮助收藏
光栅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点
联系我们请填写这张表格,我们将通过电子邮件联系你。
