spateo.segmentation.simulation_evaluation

Submodules

Functions

add_sig_to_cell(labels, cell_mean_df, bg_mean_df, seed)

get_cell_pos(area_df, ltos[, cell_num, height, width, ...])

simulate_cell_and_sig(area_df, ltos, cell_sig_df, ...)

cal_ami(a1, a2)

cal_f1score(a1, a2[, binary])

cal_precision(a1, a2[, tau])

c_to_a_ratio_dis(labels_tif)

cell_area_dis(labels_tifs)

get_fb_dis(image_tif, labels_tif)

get_fb_dis_window(image_tif, labels_tif[, win])

ltos_ratio_dis(labels_tifs)

Package Contents

spateo.segmentation.simulation_evaluation.add_sig_to_cell(labels, cell_mean_df, bg_mean_df, seed)[source]
spateo.segmentation.simulation_evaluation.get_cell_pos(area_df, ltos, cell_num=100, height=500, width=500, seed=1, max_iter=20000, shift_length=100)[source]
spateo.segmentation.simulation_evaluation.simulate_cell_and_sig(area_df, ltos, cell_sig_df, bg_sig_df, prefix, cell_num=100, height=500, width=500, seed=1, max_iter=20000, shift_length=100)[source]
spateo.segmentation.simulation_evaluation.cal_ami(a1, a2)[source]
spateo.segmentation.simulation_evaluation.cal_f1score(a1, a2, binary=True)[source]
spateo.segmentation.simulation_evaluation.cal_precision(a1, a2, tau=0.5)[source]
spateo.segmentation.simulation_evaluation.c_to_a_ratio_dis(labels_tif)[source]
spateo.segmentation.simulation_evaluation.cell_area_dis(labels_tifs)[source]
spateo.segmentation.simulation_evaluation.get_fb_dis(image_tif, labels_tif)[source]
spateo.segmentation.simulation_evaluation.get_fb_dis_window(image_tif, labels_tif, win=200)[source]
spateo.segmentation.simulation_evaluation.ltos_ratio_dis(labels_tifs)[source]