LEADTOOLS MRC (Leadtools.Mrc assembly)
LEAD Technologies, Inc

MrcSegmenter Constructor(RasterImage,String)

Example 





Image that contains size information used to clip the segments.
The output file.
Loads segments from a file.
Syntax
public MrcSegmenter( 
   RasterImage image,
   string fileName
)
'Declaration
 
Public Function New( _
   ByVal image As RasterImage, _
   ByVal fileName As String _
)
'Usage
 
Dim image As RasterImage
Dim fileName As String
 
Dim instance As New MrcSegmenter(image, fileName)
public MrcSegmenter( 
   RasterImage image,
   string fileName
)
function MrcSegmenter( 
   image ,
   fileName 
)
public:
MrcSegmenter( 
   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
 
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
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: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

MrcSegmenter Class
MrcSegmenter Members
Overload List
Save Method
Programming with LEADTOOLS MRC

 

 


Products | Support | Contact Us | Copyright Notices

© 2006-2012 All Rights Reserved. LEAD Technologies, Inc.

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