Table of Contents

Class SegmentationModel

Namespace
Emgu.CV.Dnn
Assembly
Emgu.CV.dll

This class represents high-level API for segmentation models.

public class SegmentationModel : Model, IDisposable
Inheritance
SegmentationModel
Implements
Inherited Members

Constructors

SegmentationModel(Net)

Create model from deep learning network.

public SegmentationModel(Net net)

Parameters

net Net

DNN Network

SegmentationModel(string, string)

Create a new segmentation model

public SegmentationModel(string model, string config = null)

Parameters

model string

Binary file contains trained weights.

config string

Text file contains network configuration.

Methods

DisposeObject()

Release the memory associated with this segmentation model.

protected override void DisposeObject()

Segment(IInputArray, IOutputArray)

Given the input frame, create input blob, run net

public void Segment(IInputArray frame, IOutputArray mask)

Parameters

frame IInputArray

The input image.

mask IOutputArray

Allocated class prediction for each pixel