ouster.sdk.viz.view_mode module
- class FieldViewMode(*args, **kwargs)[source]
Bases:
ProtocolLidarScan field processor
View modes define the process of getting the key data for the scan and return number as well as checks the possibility of showing data in that mode, see enabled().
- property name: str
Name of the view mode
- property names: List[str]
Name of the view mode per return number
- class ImageMode(*args, **kwargs)[source]
Bases:
FieldViewMode,ProtocolApplies the view mode key to the viz.Image
- class CloudMode(*args, **kwargs)[source]
Bases:
FieldViewMode,ProtocolApplies the view mode key to the viz.Cloud
- class ImageCloudMode(*args, **kwargs)[source]
Bases:
ImageMode,CloudMode,ProtocolApplies the view mode to viz.Cloud and viz.Image
- class RingMode(info)[source]
Bases:
CloudModeView mode to show laser ring.
- Parameters:
info (
SensorInfo) – sensor metadata
- property name: str
Name of the view mode
- property names: List[str]
Name of the view mode per return number
- class SimpleMode(field, *, info=None, prefix='', suffix='', use_ae=True, use_buc=False)[source]
Bases:
ImageCloudModeBasic view mode with AutoExposure and BeamUniformityCorrector
Handles single and dual returns scans.
When AutoExposure is enabled its state updates only for return_num=0 but applies for both returns.
- Parameters:
info (
Optional[SensorInfo]) – sensor metadata used mainly for destaggering herefield (
str) – name of field to process, second return is handled automaticallyprefix (
Optional[str]) – name prefixsuffix (
Optional[str]) – name suffixuse_ae (
bool) – if True, use AutoExposure for the fielduse_buc (
bool) – if True, use BeamUniformityCorrector for the field
- property name: str
Name of the view mode
- property names: List[str]
Name of the view mode per return number
- set_image(img, ls, return_num=0)[source]
Prepares the key data and sets the image key to it.
- Return type:
None
- class RGBMode(field, *, info=None)[source]
Bases:
ImageCloudModeRGB view mode
- Parameters:
info (
Optional[SensorInfo]) – sensor metadata used mainly for destaggering herefield (
str) – channel field to process
- property name: str
Name of the view mode
- property names: List[str]
Name of the view mode per return number
- set_image(img, ls, return_num=0)[source]
Prepares the key data and sets the image key to it.
- Return type:
None
- class NormalsMode(field, *, info=None)[source]
Bases:
ImageCloudModeNormals value remap [-1, 1] -> [0, 1]
- property name: str
Name of the view mode
- property names: List[str]
Name of the view mode per return number
- set_image(img, ls, return_num=0)[source]
Prepares the key data and sets the image key to it.
- Return type:
None
- class ReflMode(*, info=None)[source]
Bases:
SimpleMode,ImageCloudModePrepares image/cloud data for REFLECTIVITY channel
- Parameters:
info (
Optional[SensorInfo]) – sensor metadata used mainly for destaggering herefield – name of field to process, second return is handled automatically
prefix – name prefix
suffix – name suffix
use_ae – if True, use AutoExposure for the field
use_buc – if True, use BeamUniformityCorrector for the field
- is_norm_reflectivity_mode(mode)[source]
Checks whether the image/cloud mode is a normalized REFLECTIVITY mode
- Return type:
bool
- LidarScanVizMode
Field view mode types
alias of
Union[ImageCloudMode,ImageMode,CloudMode]