upsp.kulite_comparison.plotting
¶
- highlight_pixels(image: numpy.ndarray, pixels: list, bgr: tuple)[source]¶
- make_selection_area_images(df: pandas.core.frame.DataFrame, out_dir=None)[source]¶
Highlight selected Kulite comparison pixels in raw uPSP images
- Parameters
df (
pandas.DataFrame
) –Records with the following columns:
’Pipeline Directory’ : data pipeline top-level directory
’Datapoint’ : datapoint identifier
’Kulite Nearest Vertex’ : index of vertex nearest to Kulite
’Kulite Name’ : name of kulite
’Selection Vertices’ : string repr of list of indices of selected vertices, e.g., “[124,231,101]”
out_dir (
str
orNone
) – Directory for writing output images. If None, defaults to subdirectories of the current working directory named according to the ‘Pipeline Directory’ names.