Module: cluster_tools¶
-
check_is_within_r_from_center
(x_c, y_c, R, x_test, y_test, metric)[source]¶ Parameters: x_c
y_c
R
x_test
y_test
metric
-
get_cluster_Image
(xy, border, pixel_values=None, bkg=None)[source]¶ Parameters: xy
border
pixel_values
bkg
-
get_cluster_closest_to_position
(cluster_list, x_c, y_c, metric='euclidean')[source]¶ Parameters: cluster_list
x_c
y_c
metric
-
get_cluster_image_array
(xy, border, pixel_values=None, bkg=None)[source]¶ - Function to build an image from a cluster. The pixels values are provided by the parameter pixel_values.
- If pixel_values is not provided each pixel with at least one point will have a value of 1, 0 or bkg
if bkg = None or !=None, respectively
If pixel_values is provided, and bkg is None, then the bkg is fixed to 0.1 the min of pixel_values
Parameters: xy
border
pixel_values
bkg
Returns: image :
off_set_x :
off_set_y :
masked_pixels :