Photometric#
- class ansys.speos.core.sensor.SensorCamera.Photometric(mode_photometric, camera_props, default_parameters=None, stable_ctr=False)#
Mode of camera sensor : Photometric.
This allows to set every Camera Sensor parameters, including the photometric definition parameters. By default, a camera with mode color is chosen (vs monochromatic mode).
- Parameters:
- mode_photometric
ansys.api.speos.sensor.v1.camera_sensor_pb2.SensorCameraModePhotometric Camera photometric mode protobuf object to modify.
- default_parameters
Optional[ansys.speos.core.generic.parameters.PhotometricCameraParameters] =None If defined the values in the sensor instance will be overwritten by the values of the data class
- stable_ctrbool
Variable to indicate if usage is inside class scope
- mode_photometric
- Parameters:
mode_photometric (ansys.api.speos.sensor.v1.camera_sensor_pb2.SensorCameraModePhotometric)
camera_props (ansys.speos.core.kernel.scene.ProtoScene.SensorInstance.CameraProperties)
default_parameters (Optional[ansys.speos.core.generic.parameters.PhotometricCameraParameters])
stable_ctr (bool)
Notes
Do not instantiate this class yourself, use set_type_photometric method available in sensor classes.
Overview#
Choose 08-bits for png. |
|
Choose 10-bits for png. |
|
Choose 12-bits for png. |
|
Choose 16-bits for png. |
|
Set the range of wavelengths. |
|
Set the monochromatic mode. |
|
Set the color mode. |
|
Set no layer separation: includes the simulation’s results in one layer. |
|
Set layer separation by source: includes one layer per active source in the result. |
Value of the acquisition integration. |
|
Value of the acquisition lag time. |
|
Location of the transmittance file. |
|
Value used to apply the gamma correction. |
|
Whether to consider diffraction effects in the Camera Sensor. |
|
Location of the trajectory file. |
Import detail#
from ansys.speos.core.sensor.SensorCamera import Photometric
Property detail#
- property Photometric.transmittance_file_uri: str#
Location of the transmittance file.
- Parameters:
- uri
Union[str,pathlib.Path] Amount of light of the source that passes through the lens and reaches the sensor. The transmittance is expressed in a .spectrum file.
- uri
- Returns:
strAmount of light of the source that passes through the lens and reaches the sensor.
- property Photometric.consider_diffraction_effects: bool#
Whether to consider diffraction effects in the Camera Sensor.
- Parameters:
- valuebool
Enable (True) or disable (False) diffraction effects. By default,
False.
- Returns:
- bool
Whether diffraction effects are considered.
Notes
This feature is available in Speos 2026 R1 SP3 or later. Not all Distortion files do contain diffractive effects. You may get an RPC error on commit when using a distortion file that does not contain diffractive effects while having set this option to true.
- property Photometric.trajectory_file_uri: str#
Location of the trajectory file.
- Parameters:
- uri
Union[str,pathlib.Path] Trajectory file, used to define the position and orientations of the Camera sensor in time.
- uri
- Returns:
strTrajectory file, used to define the position and orientations of the Camera sensor in time.
Method detail#
- Photometric.set_png_bits_08()#
Choose 08-bits for png.
- Returns:
ansys.speos.core.sensor.SensorCamera.PhotometricPhotometric mode.
- Photometric.set_png_bits_10()#
Choose 10-bits for png.
- Returns:
ansys.speos.core.sensor.SensorCamera.PhotometricPhotometric mode.
- Photometric.set_png_bits_12()#
Choose 12-bits for png.
- Returns:
ansys.speos.core.sensor.SensorCamera.PhotometricPhotometric mode.
- Photometric.set_png_bits_16()#
Choose 16-bits for png.
- Returns:
ansys.speos.core.sensor.SensorCamera.PhotometricPhotometric mode.
- Photometric.set_wavelengths_range()#
Set the range of wavelengths.
- Returns:
ansys.speos.core.sensor.BaseSensor.WavelengthsRangeWavelengths range.
- Photometric.set_mode_monochromatic(spectrum_file_uri)#
Set the monochromatic mode.
Results will be available in grey scale.
- Parameters:
- spectrum_file_uri
Union[str,pathlib.Path] Spectrum file uri.
- spectrum_file_uri
- Returns:
ansys.speos.core.sensor.SensorCamera.PhotometricPhotometric mode.
- Photometric.set_mode_color()#
Set the color mode.
Results will be available in color.
- Returns:
- Photometric.set_layer_type_none()#
Set no layer separation: includes the simulation’s results in one layer.
- Returns:
ansys.speos.core.sensor.SensorCamera.PhotometricPhotometric mode.
- Photometric.set_layer_type_source()#
Set layer separation by source: includes one layer per active source in the result.
- Returns:
ansys.speos.core.sensor.SensorCamera.PhotometricPhotometric mode.
Classes#
Mode of camera sensor : Color. |