←Select platform

MrcSegmenter Constructor(RasterImage,String)

Summary

Loads segments from a file.

Syntax

C#
VB
C++
public MrcSegmenter(  
   Leadtools.RasterImage image, 
   string fileName 
) 
Public Function New( _ 
   ByVal image As Leadtools.RasterImage, _ 
   ByVal fileName As String _ 
) 
public: 
MrcSegmenter(  
   Leadtools.RasterImage^ image, 
   String^ fileName 
) 

Parameters

image
Image that contains size information used to clip the segments.

fileName
The output file.

Remarks

This constructor loads the segments from a file. Call EnumerateSegments to enumerate the segments.

Example

C#
VB
Imports Leadtools 
Imports Leadtools.Codecs 
Imports Leadtools.Mrc 
 
<TestMethod()> _ 
Public Sub MrcSegmenterConstructorExample() 
   ' Load an image 
   Dim codecs As RasterCodecs = New RasterCodecs() 
   Dim image As RasterImage = codecs.Load(Path.Combine(LEAD_VARS.ImagesDir, "MRCSegmentation.mrc")) 
 
   Dim LoadedSegmenter As MrcSegmenter = New MrcSegmenter(image, Path.Combine(LEAD_VARS.ImagesDir, "MRCSegmentation.sgm")) 
End Sub 
 
Public NotInheritable Class LEAD_VARS 
Public Const ImagesDir As String = "C:\Users\Public\Documents\LEADTOOLS Images" 
End Class 
using Leadtools; 
using Leadtools.Codecs; 
using Leadtools.Mrc; 
 
public void MrcSegmenterConstructorExample() 
{ 
   // Load an image 
   RasterCodecs codecs = new RasterCodecs(); 
   RasterImage image = codecs.Load(Path.Combine(LEAD_VARS.ImagesDir,"MRCSegmentation.mrc")); 
 
   MrcSegmenter LoadedSegmenter = new MrcSegmenter(image,Path.Combine(LEAD_VARS.ImagesDir, "MRCSegmentation.sgm")); 
} 
 
static class LEAD_VARS 
{ 
public const string ImagesDir = @"C:\Users\Public\Documents\LEADTOOLS Images"; 
} 

Requirements

Target Platforms

Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.
Leadtools.Mrc Assembly
Click or drag to resize