c#
VB
objective - c
c++
Java
公共类WatershedCommand:RasterCommand
公共类WatershedCommand
继承了RasterCommand
@接口LTWatershedCommand: LTRasterCommand
公共类WatershedCommand扩展RasterCommand
公共ref类WatershedCommand:公共RasterCommand
使用Leadtools;
使用Leadtools.Codecs;
使用Leadtools.ImageProcessing.Core;
公共无效WatershedCommandExample ()
{
RasterCodecs编解码器=新RasterCodecs ();
编解码器。ThrowExceptionsOnInvalidImages =真正的;
/ /加载一个图像
RasterImage图像= codecs.Load (Path.Combine (LEAD_VARS.ImagesDir,“IMAGE3.dcm”));
LeadPoint [] [] pointsArray =新LeadPoint [4] [];
为(intidx = 0;idx < 4;idx + +)
pointsArray idx =新LeadPoint [2];
/ /设置起点和终点为每段路径。
pointsArray [0] [0] =新LeadPoint (100);
pointsArray [0] [1] =新LeadPoint (200);
pointsArray [1] [0] =新LeadPoint (180、115);
pointsArray [1] [1] =新LeadPoint (300、115);
pointsArray [2] [0] =新LeadPoint (235、220);
pointsArray [2] [1] =新LeadPoint (260、220);
pointsArray [3] [0] =新LeadPoint (180、330);
pointsArray [3] [1] =新LeadPoint (350、330);
/ /准备命令
WatershedCommand命令=新WatershedCommand (pointsArray);
/ /应用
command.Run(图片);
}
静态类LEAD_VARS
{
公共常量字符串ImagesDir =@“C: \ LEADTOOLS21 \ Resources \图片”;
}
进口Leadtools
进口Leadtools.Codecs
进口Leadtools.ImageProcessing.Core
公共子WatershedCommandExample ()
昏暗的编解码器作为RasterCodecs =新RasterCodecs ()
编解码器。ThrowExceptionsOnInvalidImages =真正的
的加载一个形象
昏暗的图像作为RasterImage = codecs.Load (Path.Combine (LEAD_VARS.ImagesDir“IMAGE3.dcm”))
昏暗的pointsArray作为LeadPoint () () =新LeadPoint (3) () {}
为idx作为整数= 0来3
pointsArray (idx) =新LeadPoint (1) {}
下一个idx
设置起点和终点的每一段路。
pointsArray (0) (0) =新LeadPoint (100)
pointsArray (0) (1) =新LeadPoint (200)
pointsArray (1) (0) =新LeadPoint (180、115)
pointsArray (1) (1) =新LeadPoint (300、115)
pointsArray (2) (0) =新LeadPoint (235、220)
pointsArray (2) (1) =新LeadPoint (260、220)
pointsArray (3) (0) =新LeadPoint (180、330)
pointsArray (3) (1) =新LeadPoint (350、330)
“准备的命令
昏暗的命令作为WatershedCommand =新WatershedCommand (pointsArray)
的应用
command.Run(图片)
结束子
公共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
医疗Web查看器net
188宝金博怎么下载
支持的平台上
net, Java, Android和iOS / macOS组件
C / c++类库的API
HTML5 JavaScript库
你的邮件已经发送到支持!有人应该联系!如果你的问题是紧急请回到聊天。
聊天时间:
周一——周五,上午6点等
谢谢你的反馈!
请填写表单重新开始一个新的聊天。
所有代理目前离线。
聊天时间:
周一-周五
早上8:30 - 6点
联系我们请填写这张表格,我们将通过电子邮件联系你。