Microscopy Image Browser 2.91
MIB
Loading...
Searching...
No Matches
saveInstanceLabelsParFor.m File Reference

saveInstanceLabelsParFor(fn, imageFilename, instanceBoxes, instanceNames, instanceMasks, compressModels) saving from parfor loop converted labels for training of 2D instance segmentation as it is not possible to use save directly inside parfor. This function is used in mibDeepController.processImagesForInstanceSegmentation to preprocess instance labels More...

Functions

function  saveInstanceLabelsParFor (fn, imageFilename, instanceBoxes, instanceNames, instanceMasks, compressModels)
 saveInstanceLabelsParFor(fn, imageFilename, instanceBoxes, instanceNames, instanceMasks, compressModels) saving from parfor loop converted labels for training of 2D instance segmentation as it is not possible to use save directly inside parfor. This function is used in mibDeepController.processImagesForInstanceSegmentation to preprocess instance labels
 

Detailed Description

saveInstanceLabelsParFor(fn, imageFilename, instanceBoxes, instanceNames, instanceMasks, compressModels) saving from parfor loop converted labels for training of 2D instance segmentation as it is not possible to use save directly inside parfor. This function is used in mibDeepController.processImagesForInstanceSegmentation to preprocess instance labels

Function Documentation

◆ saveInstanceLabelsParFor()

function saveInstanceLabelsParFor ( fn,
imageFilename,
instanceBoxes,
instanceNames,
instanceMasks,
compressModels )

saveInstanceLabelsParFor(fn, imageFilename, instanceBoxes, instanceNames, instanceMasks, compressModels) saving from parfor loop converted labels for training of 2D instance segmentation as it is not possible to use save directly inside parfor. This function is used in mibDeepController.processImagesForInstanceSegmentation to preprocess instance labels

Parameters
fnstring with the full output filename
imageFilenamestring with the corresponding image filename
instanceBoxesmatrix [N×4 double] containing bounding box coordinates of objects, where N is a number of objects on the image
instanceNamesarray [N×1 categorical] containing names of objects, currently the same name should be used for all objects, can be any string converted to categorical.
instanceMasksmatrix [720×1280×N logical] binary masks where each slice represents individual object that should match the corresponding entry in instanceBoxes and instanceNames
compressModelslogical switch to use of not compression for images