Products | Support | Send comments on this topic. | Email a link to this topic. | Back to Getting Started | Help Version 18.0.10.24
LEADTOOLS Filters Help

ILMVLightning Interface

Show in webframe

 

Data types:

This filter has no specific data types, but includes the following enumeration for use with its programming interface:

 

REFERENCE_FRAME

enum REFERENCE_FRAME
{
   REF_USEBUFFER,
   REF_USENEXTFRAME,
   REF_USECOLOR,
}; 

Interface Properties:

 

Type

Name

Description

VARIANT_BOOL

Enabled

Enables or disables the effect. If set to VARIANT_FALSE, the filter will pass the video samples intact.

VARIANT_BOOL

FirstFrameIsReference

Enables or disables setting the first frame in every play session as the reference frame. If this is VARIANT_TRUE, the first frame in every play session will be set as the reference frame (Usually the first frame in a movie).
If this property is VARIANT_FALSE, then the reference frame should be set manually after a number of frames. Setting this property after the stream starts will have no effect.

long

Threshold

Value used to control an object's detection level. A lower threshold provides stronger object detection. Range : 1 to 100.

VARIANT_BOOL

NoReferenceFrame

Flag that controls the reference frame. If this property is VARIANT_TRUE, the reference frame is assumed to be a black buffer. If it is VARIANT_FALSE, the reference frame will be the frame set by the user through theSetReferenceFrame method or by setting the FirstFrameAsReference property.

Interface Methods:

HRESULT SetReferenceFrame (BYTE *pBuffer, long lRGBColor, REFERENCE_FRAME opt)

Parameters

pBuffer

buffer contains the reference frame. This buffer should have the same dimensions (width and height), and the same bits per pixel as the movie.

lRGBColor

pixel color (RGB 24-bit). The reference frame will be set as a solid frame with the color specified in this parameter.

opt:

flag that controls the reference frame. Possible values are:

 

Value

Meaning

 

REF_USEBUFFER

only the pBuffer member is used.

 

REF_USENEXTFRAME

the next frame in the movie is taken as the reference frame.

 

REF_USECOLOR

the lRGBColor parameter is used.

Description

Sets the reference frame of the movie.

Return

S_OK if connected, S_FALSE otherwise.

Products | Support | Contact Us | Copyright Notices
© 2006-2014 All Rights Reserved. LEAD Technologies, Inc.