Class SegmentationModel
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
NetDNN Network
SegmentationModel(string, string)
Create a new segmentation model
public SegmentationModel(string model, string config = null)
Parameters
model
stringBinary file contains trained weights.
config
stringText 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
IInputArrayThe input image.
mask
IOutputArrayAllocated class prediction for each pixel