bebi103.image.roicds_to_df

bebi103.image.roicds_to_df(cds)

Convert a ColumnDataSource outputted by draw_rois() to a Pandas DataFrame.

Parameters

cds (Bokeh ColumnDataSource) – ColumnDataSource outputted by draw_rois()

Returns

output – DataFrame with columns [‘roi’, ‘x’, ‘y’] containing the positions of the vertices of the respective polygonal ROIs.

Return type

Pandas DataFrame