eVision Python API
Loading...
Searching...
No Matches
eVision.Easy3D.ELaserLineExtractor Class Reference

Manages a laser line extraction context. More...

Public Member Functions

None __init__ (self, int frameWidth, int frameHeight, int numFramesPerMap, float zResolution)
 Creates an eVision.Easy3D.ELaserLineExtractor object.
None __init__ (self, int frameWidth, int frameHeight, int numFramesPerMap)
 Creates an eVision.Easy3D.ELaserLineExtractor object.
None __init__ (self, eVision.Easy3D.ELaserLineExtractor other)
 Creates an eVision.Easy3D.ELaserLineExtractor object.
bool ExtractProfileFromFrame (self, eVision.EROIBW8 frame)
 Extracts a profile from a frame and adds it to the current depth map.
None Save (self, str file)
 Save the eVision.Easy3D.ELaserLineExtractor configuration.
None Save (self, eVision.ESerializer|None serializer)
 Save the eVision.Easy3D.ELaserLineExtractor configuration.
None Load (self, str file)
 Load the eVision.Easy3D.ELaserLineExtractor configuration.
None Load (self, eVision.ESerializer|None serializer)
 Load the eVision.Easy3D.ELaserLineExtractor configuration.
None SetSmoothingParameters (self, int param0, int param1, int param2)
 Sets the parameters of the smoothing kernel.
None DrawLastProfile (self, eVision.EDrawAdapter|None drawAdapter, float zoomX, float zoomY, float panX, float panY)
 Draws the last extracted profile.
None DrawLastProfile (self, eVision.EDrawAdapter|None drawAdapter, float zoomX, float zoomY, float panX)
 Draws the last extracted profile.
None DrawLastProfile (self, eVision.EDrawAdapter|None drawAdapter, float zoomX, float zoomY)
 Draws the last extracted profile.
None DrawLastProfile (self, eVision.EDrawAdapter|None drawAdapter, float zoomX)
 Draws the last extracted profile.
None DrawLastProfile (self, eVision.EDrawAdapter|None drawAdapter)
 Draws the last extracted profile.
int FrameWidth (self)
 Width of the frames from which the profiles are extracted.
int FrameHeight (self)
 Height of the frames from which the profiles are extracted.
int NumFramesPerMap (self)
 Number of frames from which the profiles are be extracted.
float ZResolution (self)
 Z resolution of the extracted profile.
int NumExtractedProfile (self)
 Number of extracted profiles.
list[float] Profile (self)
 Returns the last extracted profile.
int AnalysisThreshold (self)
 Analysis threshold.
 AnalysisThreshold (self, int value)
 Analysis threshold.
eVision.Easy3D.EMaximumAnalysisMode AnalysisMode (self)
 Analysis mode.
 AnalysisMode (self, eVision.Easy3D.EMaximumAnalysisMode value)
 Analysis mode.
bool EnableSmoothing (self)
 Enables or disables grayscale profile smoothing before extraction.
 EnableSmoothing (self, bool value)
 Enables or disables grayscale profile smoothing before extraction.
int SmoothingParameter0 (self)
 Smoothing parameter 0.
 SmoothingParameter0 (self, int value)
 Smoothing parameter 0.
int SmoothingParameter1 (self)
 Smoothing parameter 1.
 SmoothingParameter1 (self, int value)
 Smoothing parameter 1.
int SmoothingParameter2 (self)
 Smoothing parameter 2.
 SmoothingParameter2 (self, int value)
 Smoothing parameter 2.
eVision.Easy3D.EDepthMap16 DepthMap (self)
 Returns the current depth map.

Static Public Member Functions

None DrawProfile (eVision.EDrawAdapter|None drawAdapter, int frameWidth, int frameHeight, list[float] profile, float zoomX, float zoomY, float panX, float panY)
 Draws a profile.
None DrawProfile (eVision.EDrawAdapter|None drawAdapter, int frameWidth, int frameHeight, list[float] profile, float zoomX, float zoomY, float panX)
 Draws a profile.
None DrawProfile (eVision.EDrawAdapter|None drawAdapter, int frameWidth, int frameHeight, list[float] profile, float zoomX, float zoomY)
 Draws a profile.
None DrawProfile (eVision.EDrawAdapter|None drawAdapter, int frameWidth, int frameHeight, list[float] profile, float zoomX)
 Draws a profile.
None DrawProfile (eVision.EDrawAdapter|None drawAdapter, int frameWidth, int frameHeight, list[float] profile)
 Draws a profile.

Detailed Description

Manages a laser line extraction context.

Remarks:

License(s): Easy3DLaserLine

Constructor & Destructor Documentation

◆ __init__() [1/3]

None eVision.Easy3D.ELaserLineExtractor.__init__ ( self,
int frameWidth,
int frameHeight,
int numFramesPerMap,
float zResolution )

Creates an eVision.Easy3D.ELaserLineExtractor object.

Parameters
frameWidthWidth of the frames from which the profiles will be extracted.
frameHeightHeight of the frames from which the profiles will be extracted.
numFramesPerMapNumber of frames (and thus profiles) to be used per depth map. Each extracted profile create a line in the depth map.
zResolutionOptional parameter for the Z resolution of the extracted profile.

With a value of 0, the resolution will be automatically calculated to maximize the sub-pixel accuracy.

◆ __init__() [2/3]

None eVision.Easy3D.ELaserLineExtractor.__init__ ( self,
int frameWidth,
int frameHeight,
int numFramesPerMap )

Creates an eVision.Easy3D.ELaserLineExtractor object.

Parameters
frameWidthWidth of the frames from which the profiles will be extracted.
frameHeightHeight of the frames from which the profiles will be extracted.
numFramesPerMapNumber of frames (and thus profiles) to be used per depth map. Each extracted profile create a line in the depth map.

◆ __init__() [3/3]

None eVision.Easy3D.ELaserLineExtractor.__init__ ( self,
eVision.Easy3D.ELaserLineExtractor other )

Creates an eVision.Easy3D.ELaserLineExtractor object.

Parameters
otherThe object that should be copied

Member Function Documentation

◆ AnalysisMode() [1/2]

eVision.Easy3D.EMaximumAnalysisMode eVision.Easy3D.ELaserLineExtractor.AnalysisMode ( self)

Analysis mode.

◆ AnalysisMode() [2/2]

eVision.Easy3D.ELaserLineExtractor.AnalysisMode ( self,
eVision.Easy3D.EMaximumAnalysisMode value )

Analysis mode.

◆ AnalysisThreshold() [1/2]

int eVision.Easy3D.ELaserLineExtractor.AnalysisThreshold ( self)

Analysis threshold.

Set this value to eliminate noise.

Remarks:

In the center of gravity (COG) analysis mode, this threshold is used to discriminate peaks and should be set accordingly.

◆ AnalysisThreshold() [2/2]

eVision.Easy3D.ELaserLineExtractor.AnalysisThreshold ( self,
int value )

Analysis threshold.

Set this value to eliminate noise.

Remarks:

In the center of gravity (COG) analysis mode, this threshold is used to discriminate peaks and should be set accordingly.

◆ DepthMap()

eVision.Easy3D.EDepthMap16 eVision.Easy3D.ELaserLineExtractor.DepthMap ( self)

Returns the current depth map.

Remarks:

Should be called only when the previous call to ExtractProfileFromFrame() returned true. Otherwise, the depth map returned will be incomplete.

◆ DrawLastProfile() [1/5]

None eVision.Easy3D.ELaserLineExtractor.DrawLastProfile ( self,
eVision.EDrawAdapter | None drawAdapter )

Draws the last extracted profile.

Parameters
drawAdapterDraw adapter.

◆ DrawLastProfile() [2/5]

None eVision.Easy3D.ELaserLineExtractor.DrawLastProfile ( self,
eVision.EDrawAdapter | None drawAdapter,
float zoomX )

Draws the last extracted profile.

Parameters
drawAdapterDraw adapter.
zoomXHorizontal zooming factor.

◆ DrawLastProfile() [3/5]

None eVision.Easy3D.ELaserLineExtractor.DrawLastProfile ( self,
eVision.EDrawAdapter | None drawAdapter,
float zoomX,
float zoomY )

Draws the last extracted profile.

Parameters
drawAdapterDraw adapter.
zoomXHorizontal zooming factor.
zoomYVertical zooming factor. If set to 0, the horizontal zooming factor will be used for isotropic zooming.

◆ DrawLastProfile() [4/5]

None eVision.Easy3D.ELaserLineExtractor.DrawLastProfile ( self,
eVision.EDrawAdapter | None drawAdapter,
float zoomX,
float zoomY,
float panX )

Draws the last extracted profile.

Parameters
drawAdapterDraw adapter.
zoomXHorizontal zooming factor.
zoomYVertical zooming factor. If set to 0, the horizontal zooming factor will be used for isotropic zooming.
panXHorizontal panning value expressed in pixels. By default, no panning occurs.

◆ DrawLastProfile() [5/5]

None eVision.Easy3D.ELaserLineExtractor.DrawLastProfile ( self,
eVision.EDrawAdapter | None drawAdapter,
float zoomX,
float zoomY,
float panX,
float panY )

Draws the last extracted profile.

Parameters
drawAdapterDraw adapter.
zoomXHorizontal zooming factor.
zoomYVertical zooming factor. If set to 0, the horizontal zooming factor will be used for isotropic zooming.
panXHorizontal panning value expressed in pixels. By default, no panning occurs.
panYVertical panning value expressed in pixels. By default, no panning occurs.

◆ DrawProfile() [1/5]

None eVision.Easy3D.ELaserLineExtractor.DrawProfile ( eVision.EDrawAdapter | None drawAdapter,
int frameWidth,
int frameHeight,
list[float] profile )
static

Draws a profile.

Parameters
drawAdapterDraw adapter.
frameWidthWidth of the frame used to extract the profile
frameHeightHeight of the frame used to extract the profile
profileExtracted profile

◆ DrawProfile() [2/5]

None eVision.Easy3D.ELaserLineExtractor.DrawProfile ( eVision.EDrawAdapter | None drawAdapter,
int frameWidth,
int frameHeight,
list[float] profile,
float zoomX )
static

Draws a profile.

Parameters
drawAdapterDraw adapter.
frameWidthWidth of the frame used to extract the profile
frameHeightHeight of the frame used to extract the profile
profileExtracted profile
zoomXHorizontal zooming factor.

◆ DrawProfile() [3/5]

None eVision.Easy3D.ELaserLineExtractor.DrawProfile ( eVision.EDrawAdapter | None drawAdapter,
int frameWidth,
int frameHeight,
list[float] profile,
float zoomX,
float zoomY )
static

Draws a profile.

Parameters
drawAdapterDraw adapter.
frameWidthWidth of the frame used to extract the profile
frameHeightHeight of the frame used to extract the profile
profileExtracted profile
zoomXHorizontal zooming factor.
zoomYVertical zooming factor. If set to 0, the horizontal zooming factor will be used for isotropic zooming.

◆ DrawProfile() [4/5]

None eVision.Easy3D.ELaserLineExtractor.DrawProfile ( eVision.EDrawAdapter | None drawAdapter,
int frameWidth,
int frameHeight,
list[float] profile,
float zoomX,
float zoomY,
float panX )
static

Draws a profile.

Parameters
drawAdapterDraw adapter.
frameWidthWidth of the frame used to extract the profile
frameHeightHeight of the frame used to extract the profile
profileExtracted profile
zoomXHorizontal zooming factor.
zoomYVertical zooming factor. If set to 0, the horizontal zooming factor will be used for isotropic zooming.
panXHorizontal panning value expressed in pixels. By default, no panning occurs.

◆ DrawProfile() [5/5]

None eVision.Easy3D.ELaserLineExtractor.DrawProfile ( eVision.EDrawAdapter | None drawAdapter,
int frameWidth,
int frameHeight,
list[float] profile,
float zoomX,
float zoomY,
float panX,
float panY )
static

Draws a profile.

Parameters
drawAdapterDraw adapter.
frameWidthWidth of the frame used to extract the profile
frameHeightHeight of the frame used to extract the profile
profileExtracted profile
zoomXHorizontal zooming factor.
zoomYVertical zooming factor. If set to 0, the horizontal zooming factor will be used for isotropic zooming.
panXHorizontal panning value expressed in pixels. By default, no panning occurs.
panYVertical panning value expressed in pixels. By default, no panning occurs.

◆ EnableSmoothing() [1/2]

bool eVision.Easy3D.ELaserLineExtractor.EnableSmoothing ( self)

Enables or disables grayscale profile smoothing before extraction.

◆ EnableSmoothing() [2/2]

eVision.Easy3D.ELaserLineExtractor.EnableSmoothing ( self,
bool value )

Enables or disables grayscale profile smoothing before extraction.

◆ ExtractProfileFromFrame()

bool eVision.Easy3D.ELaserLineExtractor.ExtractProfileFromFrame ( self,
eVision.EROIBW8 frame )

Extracts a profile from a frame and adds it to the current depth map.

Returns true if the depth map is complete and ready for further processing.

Parameters
frameFrame from which the profile will be extracted.

◆ FrameHeight()

int eVision.Easy3D.ELaserLineExtractor.FrameHeight ( self)

Height of the frames from which the profiles are extracted.

◆ FrameWidth()

int eVision.Easy3D.ELaserLineExtractor.FrameWidth ( self)

Width of the frames from which the profiles are extracted.

◆ Load() [1/2]

None eVision.Easy3D.ELaserLineExtractor.Load ( self,
eVision.ESerializer | None serializer )

Load the eVision.Easy3D.ELaserLineExtractor configuration.

The settings are loaded and the profiles are discarded.

Parameters
serializerSerializer. Must be in read mode.

◆ Load() [2/2]

None eVision.Easy3D.ELaserLineExtractor.Load ( self,
str file )

Load the eVision.Easy3D.ELaserLineExtractor configuration.

The settings are loaded and the profiles are discarded.

Parameters
fileFile path.

◆ NumExtractedProfile()

int eVision.Easy3D.ELaserLineExtractor.NumExtractedProfile ( self)

Number of extracted profiles.

◆ NumFramesPerMap()

int eVision.Easy3D.ELaserLineExtractor.NumFramesPerMap ( self)

Number of frames from which the profiles are be extracted.

◆ Profile()

list[float] eVision.Easy3D.ELaserLineExtractor.Profile ( self)

Returns the last extracted profile.

Remarks:

If a point could not be extracted, its value will be set to FLOAT_MAX.

◆ Save() [1/2]

None eVision.Easy3D.ELaserLineExtractor.Save ( self,
eVision.ESerializer | None serializer )

Save the eVision.Easy3D.ELaserLineExtractor configuration.

The settings are saved but the profiles aren't.

Parameters
serializerSerializer. Must be in write mode.

◆ Save() [2/2]

None eVision.Easy3D.ELaserLineExtractor.Save ( self,
str file )

Save the eVision.Easy3D.ELaserLineExtractor configuration.

The settings are saved but the profiles aren't.

Parameters
fileFile path.

◆ SetSmoothingParameters()

None eVision.Easy3D.ELaserLineExtractor.SetSmoothingParameters ( self,
int param0,
int param1,
int param2 )

Sets the parameters of the smoothing kernel.

Remarks:

If enabled, the smoothing will be performed using the following formula: f[i] = (f[i-1] * param0) + (f[i] * param1) + (f[i+1] * param2).

Parameters
param0First kernel parameter.
param1Second kernel parameter.
param2Third kernel parameter.

◆ SmoothingParameter0() [1/2]

int eVision.Easy3D.ELaserLineExtractor.SmoothingParameter0 ( self)

Smoothing parameter 0.

◆ SmoothingParameter0() [2/2]

eVision.Easy3D.ELaserLineExtractor.SmoothingParameter0 ( self,
int value )

Smoothing parameter 0.

◆ SmoothingParameter1() [1/2]

int eVision.Easy3D.ELaserLineExtractor.SmoothingParameter1 ( self)

Smoothing parameter 1.

◆ SmoothingParameter1() [2/2]

eVision.Easy3D.ELaserLineExtractor.SmoothingParameter1 ( self,
int value )

Smoothing parameter 1.

◆ SmoothingParameter2() [1/2]

int eVision.Easy3D.ELaserLineExtractor.SmoothingParameter2 ( self)

Smoothing parameter 2.

◆ SmoothingParameter2() [2/2]

eVision.Easy3D.ELaserLineExtractor.SmoothingParameter2 ( self,
int value )

Smoothing parameter 2.

◆ ZResolution()

float eVision.Easy3D.ELaserLineExtractor.ZResolution ( self)

Z resolution of the extracted profile.

With a value of 0, the resolution will be automatically calculated to maximize the sub-pixel accuracy.