SensorObserver#
- class ansys.speos.core.sensor.SensorObserver(project, name, description='', metadata=None, sensor_instance=None, default_parameters=None)#
Bases:
BaseSensorSensor feature: Observer.
An observer sensor places multiple sensor instances on a sphere around a focal point, configured by angular ranges and optional stereo parameters. By default, a focal length of 250mm, integration angle of 5 degrees, a spectral range from 400nm to 700nm (sampling 13), sphere distance of 100mm, and horizontal angular range from -45 to 45 degrees with 5 sampling, vertical range from -30 to 30 degrees with 3 sampling 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.ObserverSensorParameters,optional If defined the values in the sensor instance will be overwritten by the values of the dataclass. By default,
None.
- project
- Parameters:
project (SensorObserver.__init__.project)
name (str)
description (str)
sensor_instance (Optional[ansys.speos.core.kernel.scene.ProtoScene.SensorInstance])
default_parameters (Optional[ansys.speos.core.generic.parameters.ObserverSensorParameters])
Overview#
Configure the wavelength range of the sensor. |
|
Set the dimensions of the sensor. |
|
Configure the angular range for sensor locations on the sphere. |
|
Define layer separation type as None. |
|
Define layer separation as by source. |
Focal distance (distance between sensor radiance plan and observer point). |
|
Integration angle in degrees for direct simulations. |
|
Distance (radius of sphere on which sensors are placed). |
|
Stereo interocular distance in mm. |
|
Position of the sensor. |
|
Current layer separation type. |
Import detail#
from ansys.speos.core.sensor import SensorObserver
Property detail#
- property SensorObserver.focal: float#
Focal distance (distance between sensor radiance plan and observer point).
- property SensorObserver.integration_angle: float#
Integration angle in degrees for direct simulations.
- property SensorObserver.stereo_interocular_distance: float | None#
Stereo interocular distance in mm.
- Parameters:
- Returns:
Method detail#
- SensorObserver.set_wavelengths_range()#
Configure the wavelength range of the sensor.
- Returns:
ansys.speos.core.sensor.BaseSensor.WavelengthsRangeWavelength range object.
- SensorObserver.set_dimensions()#
Set the dimensions of the sensor.
- Returns:
ansys.speos.core.sensor.BaseSensor.DimensionsDimension class
- SensorObserver.set_angular_range()#
Configure the angular range for sensor locations on the sphere.
- Returns:
ansys.speos.core.sensor.BaseSensor.AngularRangeAngular range object.
- SensorObserver.set_layer_type_none()#
Define layer separation type as None.
- Returns:
ansys.speos.core.sensor.SensorIrradianceirradiance class instance
- SensorObserver.set_layer_type_source()#
Define layer separation as by source.
- Returns:
ansys.speos.core.sensor.SensorIrradianceirradiance class instance