Histogram maker
Creates all histograms that displayed in the database portal
- class library.image_manipulation.histogram_maker.HistogramMaker
Bases:
objectIncludes 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_combined_histogram_full(image_manager, OUTPUT_DIR: Path, animal: str, mask_path: Path) None
- library.image_manipulation.histogram_maker.make_histogram_full_RAM(img: ndarray, output_path_histogram: Path, mask_path: Path, debug: bool = False) None
Generate histogram for a single image [full resolution]
- 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
- library.image_manipulation.histogram_maker.make_single_histogram_full(file_key: tuple[str, str, str, str, str]) None
Makes a histogram for a single image file [full resolution]
- Parameters:
file_key – tuple of input_path, mask_path, channel, file, output_path