Class CVMotionCellsBlock
OpenCV motion cells block. Implements the MediaBlock. Implements the IMediaBlockInternals. Implements the IDisposable.
Inherited Members
Namespace: VisioForge.Core.MediaBlocks.VideoProcessing
Assembly: VisioForge.Core.dll
Syntax
public class CVMotionCellsBlock : MediaBlock, IMediaBlock, IMediaBlockInternals, IDisposable
Constructors
CVMotionCellsBlock(CVMotionCellsSettings)
Initializes a new instance of the CVMotionCellsBlock class.
Declaration
public CVMotionCellsBlock(CVMotionCellsSettings settings)
Parameters
| Type | Name | Description |
|---|---|---|
| CVMotionCellsSettings | settings | The settings. |
Properties
Input
Gets the input.
Declaration
public override MediaBlockPad Input { get; }
Property Value
| Type | Description |
|---|---|
| MediaBlockPad | The input. |
Overrides
Inputs
Gets the inputs.
Declaration
public override MediaBlockPad[] Inputs { get; }
Property Value
| Type | Description |
|---|---|
| MediaBlockPad[] | The inputs. |
Overrides
Output
Gets the output.
Declaration
public override MediaBlockPad Output { get; }
Property Value
| Type | Description |
|---|---|
| MediaBlockPad | The output. |
Overrides
Outputs
Gets the outputs.
Declaration
public override MediaBlockPad[] Outputs { get; }
Property Value
| Type | Description |
|---|---|
| MediaBlockPad[] | The outputs. |
Overrides
Settings
Gets or sets the settings.
Declaration
public CVMotionCellsSettings Settings { get; set; }
Property Value
| Type | Description |
|---|---|
| CVMotionCellsSettings | The settings. |
Type
Gets the type.
Declaration
public override MediaBlockType Type { get; }
Property Value
| Type | Description |
|---|---|
| MediaBlockType | The type. |
Overrides
Methods
Build()
Builds this instance.
Declaration
public override bool Build()
Returns
| Type | Description |
|---|---|
| Boolean |
|
Overrides
CleanUp()
Cleans up.
Declaration
public void CleanUp()
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Declaration
public void Dispose()
Dispose(Boolean)
Releases unmanaged and - optionally - managed resources.
Declaration
protected virtual void Dispose(bool disposing)
Parameters
| Type | Name | Description |
|---|---|---|
| Boolean | disposing |
|
Finalize()
Finalizes an instance of the CVMotionCellsBlock class.
Declaration
protected void Finalize()
GetCore()
Gets core.
Declaration
public BaseElement GetCore()
Returns
| Type | Description |
|---|---|
| BaseElement | VisioForge.Core.GStreamer.Base.BaseElement. |
GetElement()
Gets the element.
Declaration
public Element GetElement()
Returns
| Type | Description |
|---|---|
| Element | Gst.Element. |
IsAvailable()
Determines whether this media block is available. Correct NuGet SDK redist should be included into your project.
Declaration
public static bool IsAvailable()
Returns
| Type | Description |
|---|---|
| Boolean |
|
ProcessBusMessage(Structure)
Processes the bus message.
Declaration
public void ProcessBusMessage(Structure data)
Parameters
| Type | Name | Description |
|---|---|---|
| Structure | data | The data. |
Events
MotionDetected
Motion detected event.
Declaration
public event EventHandler<CVMotionCellsEventArgs> MotionDetected
Event Type
| Type | Description |
|---|---|
| EventHandler<CVMotionCellsEventArgs> |
Explicit Interface Implementations
IMediaBlockInternals.SetContext(MediaBlocksPipeline)
Sets the context.
Declaration
void IMediaBlockInternals.SetContext(MediaBlocksPipeline pipeline)
Parameters
| Type | Name | Description |
|---|---|---|
| MediaBlocksPipeline | pipeline | The pipeline. |