NlMeansDenoisingOptions

giant.image_processing.denoising:

class giant.image_processing.denoising.NlMeansDenoisingOptions(filter_strength: float = 3.0, template_window_size: int = 7, search_window_size: int = 21, norm_type: int = 4)[source]
Parameters:
  • filter_strength (float)

  • template_window_size (int)

  • search_window_size (int)

  • norm_type (int)

filter_strength: float = 3.0

higher values leads to more denoising but more loss of detail.

template_window_size: int = 7

The size in pixels of the tempalte patch that is used to compute weights.

Should be odd.

search_window_size: int = 21

The size in pixels of the window that is used to computed weighted average for a given pixel.

Should be odd.

Higher numbers makes the denoising slower.

norm_type: int = 4

The type of norm used for the weight calculation.

Must be NORM_L1 or NORM_L2

property options_dict: Dict

Determine the options input to the dataclass.

This property method will ignore all internal properties and functions

Summary of Methods

apply_options

Update the options as attributes of the object class

local_vars

this is used to overwrite options in variables only used in __init__

override_options

This method is used for special cases when certain options should be overwritten