regulariser¶
Demons Regulariser¶
-
class
airlab.regulariser.demons.
GaussianRegulariser
(pixel_spacing, sigma, dtype=torch.float32, device='cpu')¶ -
regularise
(data)¶
-
Graph Diffusion Regulariser¶
-
class
airlab.regulariser.demons.
GraphDiffusionRegulariser
(image_size, pixel_spacing, edge_updater, phi=1, dtype=torch.float32, device='cpu')¶ -
get_edge_image
()¶
-
regularise
(data)¶
-
set_krylov_dim
(krylov_dim)¶
-
Displacement Regulariser¶
-
class
airlab.regulariser.displacement.
DiffusionRegulariser
(pixel_spacing, size_average=True, reduce=True)¶ -
forward
(displacement)¶ Defines the computation performed at every call.
Should be overridden by all subclasses.
Note
Although the recipe for forward pass needs to be defined within this function, one should call the
Module
instance afterwards instead of this since the former takes care of running the registered hooks while the latter silently ignores them.
-
-
class
airlab.regulariser.displacement.
IsotropicTVRegulariser
(pixel_spacing, size_average=True, reduce=True)¶ -
forward
(displacement)¶ Defines the computation performed at every call.
Should be overridden by all subclasses.
Note
Although the recipe for forward pass needs to be defined within this function, one should call the
Module
instance afterwards instead of this since the former takes care of running the registered hooks while the latter silently ignores them.
-
-
class
airlab.regulariser.displacement.
SparsityRegulariser
(size_average=True, reduce=True)¶ -
forward
(displacement)¶ Defines the computation performed at every call.
Should be overridden by all subclasses.
Note
Although the recipe for forward pass needs to be defined within this function, one should call the
Module
instance afterwards instead of this since the former takes care of running the registered hooks while the latter silently ignores them.
-
-
class
airlab.regulariser.displacement.
TVRegulariser
(pixel_spacing, size_average=True, reduce=True)¶ -
forward
(displacement)¶ Defines the computation performed at every call.
Should be overridden by all subclasses.
Note
Although the recipe for forward pass needs to be defined within this function, one should call the
Module
instance afterwards instead of this since the former takes care of running the registered hooks while the latter silently ignores them.
-
Parameter Regulariser¶
-
class
airlab.regulariser.parameter.
DiffusionRegulariser
(pixel_spacing, size_average=True, reduce=True)¶ -
forward
(displacement)¶ Defines the computation performed at every call.
Should be overridden by all subclasses.
Note
Although the recipe for forward pass needs to be defined within this function, one should call the
Module
instance afterwards instead of this since the former takes care of running the registered hooks while the latter silently ignores them.
-
-
class
airlab.regulariser.parameter.
IsotropicTVRegulariser
(parameter_name, scaling=[1], size_average=True, reduce=True)¶ -
forward
(parameters)¶ Defines the computation performed at every call.
Should be overridden by all subclasses.
Note
Although the recipe for forward pass needs to be defined within this function, one should call the
Module
instance afterwards instead of this since the former takes care of running the registered hooks while the latter silently ignores them.
-
-
class
airlab.regulariser.parameter.
SparsityRegulariser
(parameter_name, size_average=True, reduce=True)¶ -
forward
(parameters)¶ Defines the computation performed at every call.
Should be overridden by all subclasses.
Note
Although the recipe for forward pass needs to be defined within this function, one should call the
Module
instance afterwards instead of this since the former takes care of running the registered hooks while the latter silently ignores them.
-
-
class
airlab.regulariser.parameter.
TVRegulariser
(parameter_name, scaling=[1], size_average=True, reduce=True)¶ -
forward
(parameters)¶ Defines the computation performed at every call.
Should be overridden by all subclasses.
Note
Although the recipe for forward pass needs to be defined within this function, one should call the
Module
instance afterwards instead of this since the former takes care of running the registered hooks while the latter silently ignores them.
-