MrcSegmenter Constructor(RasterImage,string)

Summary
Loads segments from a file.
Syntax
C#
C++/CLI
Python
public: 
MrcSegmenter(  
   RasterImage^ image, 
   String^ fileName 
) 
__init__(self,image,fileName) # Overloaded constructor 

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#
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:\LEADTOOLS23\Resources\Images"; 
} 
Requirements

Target Platforms

Help Version 23.0.2024.2.29
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Mrc Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.