Load images from the list of files.
function [ img , img_info , pixSize , files ] = mibLoadImages |
( |
| filenames, |
|
|
| options ) |
Load images from the list of files.
Load images contained in the array of cells filesnames
and return img_info
containers.Map
- Parameters
-
filenames | array of cells with filenames, if empty a load files dialog appears |
options | -> a structure with parameters
- .mibBioformatsCheck -> if 0 -> open standard image types, if 1 -> open images using BioFormats library
- .waitbar -> 1 - show waitbar, 0 - do not show waitbar
- .customSections -> 0 or 1, when 1 take some custom section(s) from the dataset
- .customSectionsSettings -> optional structure to provide default values for custom sections .xMin .xMax .yMin .yMax .zMin .zMax
- .mibPath [optional] a string with path to MIB directory, an optional parameter to mibInputDlg.m
- .imgStretch [optional] -> stretch or not the image if it is uint32 class
- .Font -> [optional] a structure with the Font settings from mib to initialize new dialog .FontName .FontUnits .FontSize
- .virtual - a switch to open dataset in the virtual mode
- .id - id of the current dataset, needed to generate filename for Memoizer class of BioFormats
- .BioFormatsMemoizerMemoDir -> obj.mibModel.preferences.ExternalDirs.BioFormatsMemoizerMemoDir; % path to temp folder for Bioformats
- .BackgroundColorIntensity -> numeric, background intensity for cases, when width/height of combined images mismatch, when it is missing a dialog box is shown
- .BioFormatsIndices -> numeric, indices of images in file container to be opened with BioFormats, when [] or 0 - get all image series
- .startDir - starting directory, when filenames are empty
- .silentMode - switch for the batch mode, when 1 - do not ask questions
- .verbose - logical switch (default 1), when 0 - do now show elapsed timer
|
- Return values
-
img | - a dataset, [1:height, 1:width, 1:colors, 1:no_stacks] |
img_info | - a containers.Map with meta-data and image details |
pixSize | - a structure with voxel dimensions,
- .x - physical width of a pixel
- .y - physical height of a pixel
- .z - physical thickness of a pixel
- .t - time between the frames for 2D movies
- .tunits - time units
- .units - physical units for x, y, z. Possible values: [m, cm, mm, um, nm]
|
files | - structure with files information acquired from mibGetImageMetadata |
- Required fields of options:
| ... strcmp(files(1).imgClass, 'single') || strcmp(files(1).imgClass, 'double')
References mib_uigetfile(), mibGetImageMetadata(), mibGetImages(), mibInputDlg(), and mibUpdatePixSizeAndResolution().
Referenced by mibGraphcutController.importSuperpixelsBtn_Callback(), mibModel.loadMask(), mibModel.loadModel(), mibRechopDatasetController.loadModels(), mibDeepStoreLoadImages(), mibController.mibFilesListbox_Callback(), mibController.mibFilesListbox_cm_Callback(), and mibDeepController.processImages().