fix: fix type conversion for SimCamera uniform noise

This commit is contained in:
2024-03-08 16:15:13 +01:00
parent b0400c9996
commit 238ecb5ff8
2 changed files with 15 additions and 3 deletions

View File

@@ -691,6 +691,7 @@ class SimulatedDataCamera(SimulatedDataBase):
return v
if noise == NoiseType.UNIFORM:
v += np.random.uniform(-noise_multiplier, noise_multiplier, v.shape)
v[v <= 0] = 0
return v
if noise == NoiseType.NONE:
return v