Module: glw_deblending¶
-
class
DoGLWDeblendingTask
(name='guass_laplace_watershed_deblending', func=<function do_guass_laplace_watershed_deblending>, parser=None, process=None)[source]¶ Bases:
asterism.pipeline_manager.analysis_tasks.AnalysisTask
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_cluster_glw_segmentation
(parent_cluster, h_frac, min_size, h_min=None, gl_th_rel=0.1, plot=False, verbose=False)[source]¶ - This function implements the cluster image segmentation based
- GaussLaplace local maxima (
BlobDetectionGaussLaplace
) - watershed segmentation on the corresponding local maxima (
watershed()
)
- GaussLaplace local maxima (
Parameters: parent_cluster :n
min_size :
h_frac :
h_min :
th_rel :
plot :
Returns: deblended_cluster_list
off_x
off_y
-
do_guass_laplace_watershed_deblending
(clusters_list, h_frac=0.1, h_min=None, gl_th_rel=0.1, min_size=9, plot=False, verbose=False)[source]¶ - This function implements the top level algorithm for the guass_laplace_watershed_deblending:
- each parent cluster in the cluster_list is partitioned by the
do_cluster_glw_segmentation()
function. - the parent cluster with his children clusters are used to build
DeblendedProducts
object - a list of class:DeblendedProducts objects is returned
- each parent cluster in the cluster_list is partitioned by the
Parameters: clusters_list
h_frac
h_min
th_rel
min_size
plot
verbose
Returns: deblended_prod_list : list of
DeblendedProducts
objects