public MrcSegmenter(RasterImage image,string fileName)
image
Image that contains size information used to clip the segments.
fileName
The output file.
This constructor loads the segments from a file. Call EnumerateSegments to enumerate the segments.
using Leadtools;using Leadtools.Codecs;using Leadtools.Mrc;public void MrcSegmenterConstructorExample(){// Load an imageRasterCodecs 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";}