Module: image_processing

This modules provides the implementation of the DoImageProcessing class used to handle the image processing AnalysisTask. The tasks is implemented by the do_image_processing()

Classes and Inheritance Structure

Inheritance diagram of asterism.analysis_tasks.image_processing.image_processing.DoImageProcessing

Summary

do_image_processing(image[, ...]) Function that implements the application of the different Filters.
DoImageProcessing([name, func, parser]) AnalysisTask derived class that implements the image processing Task:

Module API

class DoImageProcessing(name='do_image_processing', func=<function do_image_processing>, parser=None)[source]

Bases: asterism.pipeline_manager.analysis_tasks.AnalysisTask

AnalysisTask derived class that implements the image processing Task:
Parameters:

name : str

the name for the Process

func : callable

The function that implements the task algorithm , do_image_processing() in this case

image_id : int

id of the image

parser :

Methods

add_par(name, \*\*kwargs)
get_par_value(name)
list_parameters()
run([extra_message])
set_par(name, \*\*kwargs)
set_pars_from_parser(args, argv, args_dict)
start_message([extra_message])
stop_message()
do_image_processing(image, do_median_filter=True, median_filter_window_size=2, do_gauss_filter=False, gauss_filter_sigma=1, do_gauss_laplace_filter=False, gauss_laplace_filter_s=0.1, do_nlm_filter=False, nlm_filter_h=0.1, nlm_filter_patch_size=7, nlm_filter_patch_distance=11, verbose=False)[source]

Function that implements the application of the different Filters. The filters are filters.ImageFilter derived objects, and are applied to Image objects using the Image.filter() with inplace=True

Parameters:

image : Image obj:

input image obj

do_median_filter : bool

boolean par to set on MedianFilter filter

median_filter_window_size : int

par for the .MedianFilter filter

do_gauss_filter : bool

boolean par to set on GaussianFilter filter

gauss_filter_sigma float :

par for the GaussianFilter filter

do_gauss_laplace_filter : bool

boolean par to set on GaussLaplaceFilter filter

gauss_laplace_filter_s

par for the GaussLaplaceFilter filter

do_nlm_filter : bool

boolean par to set on NonLocalMeansDenoising filter

nlm_filter_h

par for the NonLocalMeansDenoising filter

nlm_filter_patch_size

par for the NonLocalMeansDenoising filter

nlm_filter_patch_distance

par for the NonLocalMeansDenoising filter