snake.core.handlers.noise#

Handler that add noise to the phantom in the image domain.

Module Contents#

Classes#

NoiseHandler

Handler that add noise tot the phantom in the image domain.

Functions#

apply_noise

Apply noise to the phantom at time idx.

API#

snake.core.handlers.noise.apply_noise(phantom: snake.core.phantom.Phantom, data: numpy.typing.NDArray, idx: int, variance: float) snake.core.phantom.Phantom[source]#

Apply noise to the phantom at time idx.

class snake.core.handlers.noise.NoiseHandler[source]#

Bases: snake.core.handlers.base.AbstractHandler

Handler that add noise tot the phantom in the image domain.

__handler_name__ = 'noise-image'#
variance: float = None#
get_static(phantom: snake.core.phantom.Phantom, sim_conf: snake.core.simulation.SimConfig) snake.core.phantom.Phantom[source]#

Add a static noise tissue.

get_dynamic(phantom: snake.core.phantom.Phantom, sim_conf: snake.core.simulation.SimConfig) snake.core.phantom.DynamicData[source]#

Add a dynamic noise tissue.