Leadtools.Mrc Requires Document/Medical product license | Send comments on this topic. | Back to Introduction - All Topics | Help Version 15.10.31
MrcSegmenter Constructor(RasterImage,String)
See Also  Example
Leadtools.Mrc Namespace > MrcSegmenter Class > MrcSegmenter Constructor : MrcSegmenter Constructor(RasterImage,String)




image
Image that contains size information used to clip the segments.
fileName
The output file.
Loads segments from a file.

Syntax

Visual Basic (Declaration) 
Public Function New( _
   ByVal image As RasterImage, _
   ByVal fileName As String _
)
Visual Basic (Usage)Copy Code
Dim image As RasterImage
Dim fileName As String
 
Dim instance As MrcSegmenter(image, fileName)
C# 
public MrcSegmenter( 
   RasterImage image,
   string fileName
)
Managed Extensions for C++ 
public: MrcSegmenter( 
   RasterImage image,
   string* fileName
)
C++/CLI 
public:
MrcSegmenter( 
   RasterImage image,
   String^ fileName
)

Parameters

image
Image that contains size information used to clip the segments.
fileName
The output file.

Example

Visual BasicCopy Code
<Test> _
Public Sub MrcSegmenterConstructorExample()
  ' Load an image
  RasterCodecs.Startup()
  Dim codecs As RasterCodecs = New RasterCodecs()
  Dim image As RasterImage = codecs.Load("C:\Program Files\LEAD Technologies\LEADTOOLS 15\Images\MRCSegmentation.mrc")

  Dim LoadedSegmenter As MrcSegmenter = New MrcSegmenter(image, "C:\Program Files\LEAD Technologies\LEADTOOLS 15\Images\MRCSegmentation.sgm")
End Sub
C#Copy Code
public void MrcSegmenterConstructorExample() 

   // Load an image 
   RasterCodecs.Startup(); 
   RasterCodecs codecs = new RasterCodecs(); 
 
   RasterImage image = codecs.Load(@"C:\Program Files\LEAD Technologies\LEADTOOLS 15\Images\MRCSegmentation.mrc"); 
 
   MrcSegmenter LoadedSegmenter = new MrcSegmenter(image, @"C:\Program Files\LEAD Technologies\LEADTOOLS 15\Images\MRCSegmentation.sgm"); 
}

Remarks

This constructor loads the segments from a file.

Call EnumerateSegments to enumerate the segments.

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

Leadtools.Mrc requires a Document or Medical toolkit license and unlock key. For more information, refer to: Raster Pro/Document/Medical Features