Histogram maker
Creates all histograms that displayed in the database portal
- class library.image_manipulation.histogram_maker.HistogramMaker
Bases:
object
Includes methods to generate single histograms per tiff file and a combined histogram for entire stack
- make_combined_histogram()
This method takes all tif files by channel and creates a histogram of the combined image space.
- Parameters:
animal – the prep_id of the animal we are working with
channel – the channel {1,2,3}
- Returns:
nothing
- make_histogram()
This method creates an individual histogram for each tif file by channel.
- Parameters:
animal – the prep id of the animal
channel – the channel of the stack to process {1,2,3}
- Returns:
nothing
- library.image_manipulation.histogram_maker.make_single_histogram(file_key: tuple[str, str, str, str, str]) None
Makes a histogram for a single image file
- Parameters:
file_key – tuple of input_path, mask_path, channel, file, output_path