delta.data¶
Click on the signatures below to get a complete description.
Module for data manipulations and input/output operations.
@author: jblugagne
Functions
|
This function will binarize a numpy array by thresholding it in the middle of its range |
|
Data augmentation function |
|
Estimate the class weights to use with the weighted categorical cross-entropy based on the output of the trainGenerator_track output. |
|
Estimate the weights to assign each class in the weight maps |
|
Generate full filename for specific frame based on file path, prototype, fileorder, and filenamesindexing |
|
This function kindly provided by Daniel Eaton from the Paulsson lab. |
|
This function inspired by the one above. |
|
Get kernel for morphological operations |
|
A generic binary image cleaning function based on mathematical morphology. |
|
Compile an inputs array for tracking prediction with the tracking U-Net, directly from U-Net segmentation masks saved to disk. |
|
Get a generator for predicting segmentation on new image files once the segmentation U-Net has been trained. |
|
Read image from disk and format it |
|
Saves an array of segmentation output images to disk |
|
Save tracking output masks to disk |
|
This function computes the weight map as described in the original U-Net paper to force the model to learn borders (Slow, best to run this offline before training) |
|
Compute custom weightmaps designed for bacterial images where borders are difficult to distinguish |
|
Image shifting function |
|
Compute weights for tracking training sets |
|
Generator for training the segmentation U-Net. |
|
Generator for training the tracking U-Net. |
|
This function zooms and shifts images. |