Let
-
Condition: When
$\theta > \text{lossangle}$ , data loss occurs.
This model simulates data shadows typically found in real stereo camera ranging:
- Ray Emission: A ray emitted from the Raycaster/LDM hits an object surface, establishing a "Hit Point".
- Back-tracing: Rays are mathematically cast from both the
left_cameraandright_cameratowards this Hit Point. - Distance Verification:
- If the measured distance of these rays matches the Euclidean distance from the camera to the Hit Point, the data is considered valid.
- If the measured data for any of the rays does not match (indicating occlusion), data loss occurs.
This noise model is derived from energy analysis:
- Physical Principle: When a ray from the Raycaster/LDM hits a surface, the intensity of the reflected light decreases as the angle between the line of sight and the surface normal increases. Due to specular reflection characteristics, much of the energy is scattered away, reducing the intensity received by the Stereo Camera.
- Observation: Depth data is most stable when viewing a surface perpendicularly. When viewing at an oblique angle, significant noise is generated, increasing the likelihood of data loss.
A probabilistic model is established to simulate this data loss:
-
Calculate Cosine Similarity:
$\theta_1$ and$\theta_2$ represent the angles between the return path vectors (to the Stereo Camera) and the surface normal at the hit point. These are obtained by calculating the cosine similarity$\cos(\theta)$ between thestereo_ray_normaland thehit_face_normal. -
Calculate Energy (
$E$ ):
$$E = \min(\cos(\theta_1), \cos(\theta_2))$$ -
Threshold Check & Probability Calculation: The calculated energy
$E$ is compared with the parametermin_energy:- Case 1: If E <= min_energy, the data is lost immediately.
-
Case 2: If E > min_energy, the probability of loss (
$P_{loss}$ ) is calculated.
The noise model parameter
powis the exponent applied to the normalized inverted energy:$$X = 1 - \frac{E}{1 - min_energy}$$ $$P_{loss} = X^{pow}$$
- Domain Randomization Scheme: Based on the model described above, the parameters
min_energyandpowcan be randomized. - Further Extension: Parameters can be allocated based on
geom_id, allowing for specific assignment of(min_energy_range, pow).
- Status: Pending Testing
- Status: Pending Testing
