Module: cluster

Overview

This modules provides the implementation of the BaseCluster, an high level class to handle clusters objects.

Summary

BaseCluster(ID, position_array[, ...])

Attributes

Module API

class BaseCluster(ID, position_array, weight_array=None, bkg_th=None, position_array_IDs=None, metric='euclidean', parent_ID=None)[source]

Bases: object

Attributes

coords
n_points

Methods

add_contour_points()
check_is_in_cluster(x_test, y_test)
get_closest_cluster(clusters_list)
get_cluster_image_array([border, bkg])
set_cluster_bary()
add_contour_points()[source]
check_is_in_cluster(x_test, y_test)[source]
coords
get_closest_cluster(clusters_list)[source]
get_cluster_image_array(border=1, bkg=None)[source]
n_points
set_cluster_bary()[source]
class PostionMatrix(labels, image_array, point_type=None, bkg_blobs_val=-1)[source]

Bases: object