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. | |
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 |
| eVision.Easy3D.EMaximumAnalysisMode eVision.Easy3D.ELaserLineExtractor.AnalysisMode | ( | self | ) |
Analysis mode.
| eVision.Easy3D.ELaserLineExtractor.AnalysisMode | ( | self, | |
| eVision.Easy3D.EMaximumAnalysisMode | value ) |
Analysis mode.
| 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.
| 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.
| 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.
| 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.EnableSmoothing | ( | self | ) |
Enables or disables grayscale profile smoothing before extraction.
| eVision.Easy3D.ELaserLineExtractor.EnableSmoothing | ( | self, | |
| bool | value ) |
Enables or disables grayscale profile smoothing before extraction.
| 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. |
| int eVision.Easy3D.ELaserLineExtractor.FrameHeight | ( | self | ) |
Height of the frames from which the profiles are extracted.
| int eVision.Easy3D.ELaserLineExtractor.FrameWidth | ( | self | ) |
Width of the frames from which the profiles are 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. |
| int eVision.Easy3D.ELaserLineExtractor.NumExtractedProfile | ( | self | ) |
Number of extracted profiles.
| int eVision.Easy3D.ELaserLineExtractor.NumFramesPerMap | ( | self | ) |
Number of frames from which the profiles are be extracted.
| 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.
| 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. |
| int eVision.Easy3D.ELaserLineExtractor.SmoothingParameter0 | ( | self | ) |
Smoothing parameter 0.
| eVision.Easy3D.ELaserLineExtractor.SmoothingParameter0 | ( | self, | |
| int | value ) |
Smoothing parameter 0.
| int eVision.Easy3D.ELaserLineExtractor.SmoothingParameter1 | ( | self | ) |
Smoothing parameter 1.
| eVision.Easy3D.ELaserLineExtractor.SmoothingParameter1 | ( | self, | |
| int | value ) |
Smoothing parameter 1.
| int eVision.Easy3D.ELaserLineExtractor.SmoothingParameter2 | ( | self | ) |
Smoothing parameter 2.
| eVision.Easy3D.ELaserLineExtractor.SmoothingParameter2 | ( | self, | |
| int | value ) |
Smoothing parameter 2.
| 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.