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. | |
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. | |
Properties | |
| FrameWidth = property(_FrameWidth__getter, None) | |
| Width of the frames from which the profiles are extracted. | |
| FrameHeight = property(_FrameHeight__getter, None) | |
| Height of the frames from which the profiles are extracted. | |
| NumFramesPerMap = property(_NumFramesPerMap__getter, None) | |
| Number of frames from which the profiles are be extracted. | |
| ZResolution = property(_ZResolution__getter, None) | |
| Z resolution of the extracted profile. | |
| NumExtractedProfile = property(_NumExtractedProfile__getter, None) | |
| Number of extracted profiles. | |
| Profile = property(_Profile__getter, None) | |
| Returns the last extracted profile. | |
| AnalysisThreshold = property(_AnalysisThreshold__getter, _AnalysisThreshold__setter) | |
| Analysis threshold. | |
| AnalysisMode = property(_AnalysisMode__getter, _AnalysisMode__setter) | |
| Analysis mode. | |
| EnableSmoothing = property(_EnableSmoothing__getter, _EnableSmoothing__setter) | |
| Enables or disables grayscale profile smoothing before extraction. | |
| SmoothingParameter0 = property(_SmoothingParameter0__getter, _SmoothingParameter0__setter) | |
| Smoothing parameter 0. | |
| SmoothingParameter1 = property(_SmoothingParameter1__getter, _SmoothingParameter1__setter) | |
| Smoothing parameter 1. | |
| SmoothingParameter2 = property(_SmoothingParameter2__getter, _SmoothingParameter2__setter) | |
| Smoothing parameter 2. | |
| DepthMap = property(_DepthMap__getter, None) | |
| Returns the current depth map. | |
Manages a laser line extraction context.
Remarks:
License(s): Easy3DLaserLine
| None eVision.Easy3D.ELaserLineExtractor.__init__ | ( | self, | |
| int | frameWidth, | ||
| int | frameHeight, | ||
| int | numFramesPerMap, | ||
| float | zResolution ) |
Creates an eVision.Easy3D.ELaserLineExtractor object.
| frameWidth | Width of the frames from which the profiles will be extracted. |
| frameHeight | Height of the frames from which the profiles will be extracted. |
| numFramesPerMap | Number of frames (and thus profiles) to be used per depth map. Each extracted profile create a line in the depth map. |
| zResolution | Optional 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.
| None eVision.Easy3D.ELaserLineExtractor.__init__ | ( | self, | |
| int | frameWidth, | ||
| int | frameHeight, | ||
| int | numFramesPerMap ) |
Creates an eVision.Easy3D.ELaserLineExtractor object.
| frameWidth | Width of the frames from which the profiles will be extracted. |
| frameHeight | Height of the frames from which the profiles will be extracted. |
| numFramesPerMap | Number of frames (and thus profiles) to be used per depth map. Each extracted profile create a line in the depth map. |
| None eVision.Easy3D.ELaserLineExtractor.__init__ | ( | self, | |
| eVision.Easy3D.ELaserLineExtractor | other ) |
Creates an eVision.Easy3D.ELaserLineExtractor object.
| other | The object that should be copied |
| None eVision.Easy3D.ELaserLineExtractor.DrawLastProfile | ( | self, | |
| eVision.EDrawAdapter | None | drawAdapter ) |
Draws the last extracted profile.
| drawAdapter | Draw adapter. |
| None eVision.Easy3D.ELaserLineExtractor.DrawLastProfile | ( | self, | |
| eVision.EDrawAdapter | None | drawAdapter, | ||
| float | zoomX ) |
Draws the last extracted profile.
| drawAdapter | Draw adapter. |
| zoomX | Horizontal zooming factor. |
| None eVision.Easy3D.ELaserLineExtractor.DrawLastProfile | ( | self, | |
| eVision.EDrawAdapter | None | drawAdapter, | ||
| float | zoomX, | ||
| float | zoomY ) |
Draws the last extracted profile.
| drawAdapter | Draw adapter. |
| zoomX | Horizontal zooming factor. |
| zoomY | Vertical zooming factor. If set to 0, the horizontal zooming factor will be used for isotropic zooming. |
| None eVision.Easy3D.ELaserLineExtractor.DrawLastProfile | ( | self, | |
| eVision.EDrawAdapter | None | drawAdapter, | ||
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX ) |
Draws the last extracted profile.
| drawAdapter | Draw adapter. |
| zoomX | Horizontal zooming factor. |
| zoomY | Vertical zooming factor. If set to 0, the horizontal zooming factor will be used for isotropic zooming. |
| panX | Horizontal panning value expressed in pixels. By default, no panning occurs. |
| None eVision.Easy3D.ELaserLineExtractor.DrawLastProfile | ( | self, | |
| eVision.EDrawAdapter | None | drawAdapter, | ||
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX, | ||
| float | panY ) |
Draws the last extracted profile.
| drawAdapter | Draw adapter. |
| zoomX | Horizontal zooming factor. |
| zoomY | Vertical zooming factor. If set to 0, the horizontal zooming factor will be used for isotropic zooming. |
| panX | Horizontal panning value expressed in pixels. By default, no panning occurs. |
| panY | Vertical panning value expressed in pixels. By default, no panning occurs. |
|
static |
Draws a profile.
| drawAdapter | Draw adapter. |
| frameWidth | Width of the frame used to extract the profile |
| frameHeight | Height of the frame used to extract the profile |
| profile | Extracted profile |
|
static |
Draws a profile.
| drawAdapter | Draw adapter. |
| frameWidth | Width of the frame used to extract the profile |
| frameHeight | Height of the frame used to extract the profile |
| profile | Extracted profile |
| zoomX | Horizontal zooming factor. |
|
static |
Draws a profile.
| drawAdapter | Draw adapter. |
| frameWidth | Width of the frame used to extract the profile |
| frameHeight | Height of the frame used to extract the profile |
| profile | Extracted profile |
| zoomX | Horizontal zooming factor. |
| zoomY | Vertical zooming factor. If set to 0, the horizontal zooming factor will be used for isotropic zooming. |
|
static |
Draws a profile.
| drawAdapter | Draw adapter. |
| frameWidth | Width of the frame used to extract the profile |
| frameHeight | Height of the frame used to extract the profile |
| profile | Extracted profile |
| zoomX | Horizontal zooming factor. |
| zoomY | Vertical zooming factor. If set to 0, the horizontal zooming factor will be used for isotropic zooming. |
| panX | Horizontal panning value expressed in pixels. By default, no panning occurs. |
|
static |
Draws a profile.
| drawAdapter | Draw adapter. |
| frameWidth | Width of the frame used to extract the profile |
| frameHeight | Height of the frame used to extract the profile |
| profile | Extracted profile |
| zoomX | Horizontal zooming factor. |
| zoomY | Vertical zooming factor. If set to 0, the horizontal zooming factor will be used for isotropic zooming. |
| panX | Horizontal panning value expressed in pixels. By default, no panning occurs. |
| panY | Vertical panning value expressed in pixels. By default, no panning occurs. |
| 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.
| frame | Frame from which the profile will be extracted. |
| 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.
| serializer | Serializer. Must be in read mode. |
| None eVision.Easy3D.ELaserLineExtractor.Load | ( | self, | |
| str | file ) |
Load the eVision.Easy3D.ELaserLineExtractor configuration.
The settings are loaded and the profiles are discarded.
| file | File path. |
| 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.
| serializer | Serializer. Must be in write mode. |
| None eVision.Easy3D.ELaserLineExtractor.Save | ( | self, | |
| str | file ) |
Save the eVision.Easy3D.ELaserLineExtractor configuration.
The settings are saved but the profiles aren't.
| file | File path. |
| 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).
| param0 | First kernel parameter. |
| param1 | Second kernel parameter. |
| param2 | Third kernel parameter. |
|
static |
Analysis mode.
|
static |
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.
|
static |
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.
|
static |
Enables or disables grayscale profile smoothing before extraction.
|
static |
Height of the frames from which the profiles are extracted.
|
static |
Width of the frames from which the profiles are extracted.
|
static |
Number of extracted profiles.
|
static |
Number of frames from which the profiles are be extracted.
|
static |
Returns the last extracted profile.
Remarks:
If a point could not be extracted, its value will be set to FLOAT_MAX.
|
static |
Smoothing parameter 0.
|
static |
Smoothing parameter 1.
|
static |
Smoothing parameter 2.
|
static |
Z resolution of the extracted profile.
With a value of 0, the resolution will be automatically calculated to maximize the sub-pixel accuracy.