Table of Contents

Class LinemodDetector

Namespace
OpenCvSharp.Rgbd
Assembly
OpenCvSharp.dll

Object detector using LINE template matching with one or more modalities.

public sealed class LinemodDetector : CvObject, IDisposable
Inheritance
LinemodDetector
Implements
Inherited Members

Constructors

LinemodDetector()

Creates an empty detector intended to be initialized with Read(FileNode).

LinemodDetector(IEnumerable<LinemodModality>, IEnumerable<int>)

Creates a detector using the supplied modalities and sampling steps.

Properties

NumClasses

Gets the number of registered classes.

NumTemplates

Gets the total number of registered templates.

PyramidLevels

Gets the number of pyramid levels.

Methods

AddSyntheticTemplate(IEnumerable<LinemodTemplate>, string)

Adds a template pyramid computed externally.

AddTemplate(IEnumerable<Mat>, string, Mat, out Rect)

Extracts and registers a new object template.

CreateDefaultLINE()

Creates the default color-gradient LINE detector.

CreateDefaultLINEMOD()

Creates the default color-and-depth LINEMOD detector.

GetClassIds()

Gets all registered class identifiers.

GetModalities()

Gets copies of the modalities used by this detector.

GetNumTemplates(string)

Gets the number of templates registered for a class.

GetT(int)

Gets the sampling step at a pyramid level.

GetTemplates(string, int)

Gets the template pyramid identified by class and template ID.

Match(IEnumerable<Mat>, float, out Mat[], IEnumerable<string>?, IEnumerable<Mat>?)

Matches templates and returns the generated quantized images.

Match(IEnumerable<Mat>, float, IEnumerable<string>?, IEnumerable<Mat>?)

Matches registered templates against source images.

Read(FileNode)

Loads detector configuration from a file node.

ReadClass(FileNode, string)

Loads one serialized template class and returns its class identifier.

ReadClasses(IEnumerable<string>, string)

Loads template classes from files matching a format string.

Write(FileStorage)

Writes detector configuration to file storage.

WriteClass(string, FileStorage)

Writes one template class to file storage.

WriteClasses(string)

Writes every template class to a separate file.