SensorImmersive#
- class ansys.speos.core.sensor.SensorImmersive(project, name, description='', metadata=None, sensor_instance=None, default_parameters=None)#
Bases:
BaseSensorSensor feature: Immersive.
An immersive sensor wraps the observer inside a cube and collects light from all six faces. By default, a sampling of 600 pixels per face, an integration angle of 5 degrees, a spectral range from 400 nm to 700 nm (sampling 13), no layer separation, and no face exclusions are chosen.
- Parameters:
- project
ansys.speos.core.project.Project Project that will own the feature.
- name
str Name of the feature.
- description
str Description of the feature. By default,
"".- metadata
Optional[Mapping[str,str]] Metadata of the feature. By default,
{}.- sensor_instance
ansys.api.speos.scene.v2.scene_pb2.Scene.SensorInstance,optional Sensor instance to provide if the feature does not have to be created from scratch. By default,
None, means that the feature is created from scratch.- default_parameters
ansys.speos.core.generic.parameters.ImmersiveSensorParameters,optional If defined the values in the sensor instance will be overwritten by the values of the dataclass. By default,
None.
- project
- Parameters:
project (SensorImmersive.__init__.project)
name (str)
description (str)
sensor_instance (Optional[ansys.speos.core.kernel.scene.ProtoScene.SensorInstance])
default_parameters (Optional[ansys.speos.core.generic.parameters.ImmersiveSensorParameters])
Overview#
Configure the wavelength range of the sensor. |
|
Set layer separation to None (no layer separation). |
|
Set layer separation to by source. |
Pixel count (horizontal and vertical) per cube face. |
|
Integration angle in degrees for direct simulations. |
|
Stereo interocular distance in mm. |
|
Whether the front face is excluded. |
|
Whether the back face is excluded. |
|
Whether the left face is excluded. |
|
Whether the right face is excluded. |
|
Whether the top face is excluded. |
|
Whether the bottom face is excluded. |
|
Position of the sensor. |
|
Current layer separation type. |
Import detail#
from ansys.speos.core.sensor import SensorImmersive
Property detail#
- property SensorImmersive.integration_angle: float#
Integration angle in degrees for direct simulations.
- property SensorImmersive.stereo_interocular_distance: float#
Stereo interocular distance in mm.
- Parameters:
- Returns:
floatCurrent stereo interocular distance in mm. If stereo setting is not activated, distance will be 0 mm.
Method detail#
- SensorImmersive.set_wavelengths_range()#
Configure the wavelength range of the sensor.
- Returns:
ansys.speos.core.sensor.BaseSensor.WavelengthsRangeWavelength range object.
- SensorImmersive.set_layer_type_none()#
Set layer separation to None (no layer separation).
- Returns:
ansys.speos.core.sensor.SensorImmersiveThis immersive sensor.
- SensorImmersive.set_layer_type_source()#
Set layer separation to by source.
- Returns:
ansys.speos.core.sensor.SensorImmersiveThis immersive sensor.