Leadtools.Mrc Requires Document/Medical product license | Send comments on this topic. | Back to Introduction - All Topics | Help Version 16.5.9.25
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
)
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
Public Sub MrcSegmenterConstructorExample()
    ' Load an image
    RasterCodecs.Startup()
    Dim codecs As RasterCodecs = New RasterCodecs()

    Dim image As RasterImage = codecs.Load(LeadtoolsExamples.Common.ImagesPath.Path + "MRCSegmentation.mrc")

    Dim LoadedSegmenter As MrcSegmenter = New MrcSegmenter(image, LeadtoolsExamples.Common.ImagesPath.Path + "MRCSegmentation.sgm")
End Sub
C#Copy Code
public void MrcSegmenterConstructorExample() 

   // Load an image 
   RasterCodecs.Startup(); 
   RasterCodecs codecs = new RasterCodecs(); 
 
   RasterImage image = codecs.Load(LeadtoolsExamples.Common.ImagesPath.Path + "MRCSegmentation.mrc"); 
 
   MrcSegmenter LoadedSegmenter = new MrcSegmenter(image, LeadtoolsExamples.Common.ImagesPath.Path + "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: Imaging Pro/Document/Medical Features