Loads segments from a file.
Syntax
Parameters
- image
- Image that contains size information used to
clip the segments.
- fileName
- The output file.
Example
Visual Basic | Copy Code |
---|
Public Sub MrcSegmenterConstructorExample()
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
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