←选择平台

AutoSegmentCommand构造函数(LeadRect)

总结
初始化一个新的AutoSegmentCommand类对象与显式参数。
语法
c#
VB
c++
公共函数(_按值传递矩形作为LeadRect_)
公共:AutoSegmentCommand (LeadRect矩形)

参数

矩形
周围的矩形分割对象分割

例子

运行AutoSegmentCommand的形象。

c#
VB
使用Leadtools;使用Leadtools.Codecs;使用Leadtools.ImageProcessing.Core;公共无效AutoSegmentConstructorExample (){/ /加载一个图像RasterCodecs编解码器=RasterCodecs ();编解码器。ThrowExceptionsOnInvalidImages =真正的;RasterImage图像= codecs.Load (Path.Combine (LEAD_VARS.ImagesDir,“IMAGE3.dcm”));/ /准备命令/ /应用AutoSegmentCommand命令=AutoSegmentCommand (LeadRect (194、161、111、153));command.Run(图片);}静态LEAD_VARS{公共常量字符串ImagesDir =@“C: \ LEADTOOLS21 \ Resources \图片”;}
进口Leadtools进口Leadtools.Codecs进口Leadtools.ImageProcessing.Core公共AutoSegmentConstructorExample ()昏暗的编解码器作为RasterCodecs ()编解码器。ThrowExceptionsOnInvalidImages =真正的昏暗的leadImage作为RasterImage = codecs.Load (Path.Combine (LEAD_VARS.ImagesDir“IMAGE3.dcm”))昏暗的命令作为AutoSegmentCommand =AutoSegmentCommand (LeadRect (194, 161, 111, 153))command.Run (leadImage)结束公共NotInheritableLEAD_VARS公共常量ImagesDir作为字符串=“C: \ LEADTOOLS21 \ Resources \图片”结束
需求

目标平台

Leadtools.ImageProcessing.Core作为sembly
188金宝搏的网址客服|支持|联系我们|知识产权的通知
©1991 - 2021领先的技术公司。保留所有权利。