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

Save image in TIF format, 2D slices or 3D stacks. More...

Functions

function [ result , options ] = mibImage2tiff (filename, imageS, options, ImageDescription)
 Save image in TIF format, 2D slices or 3D stacks.
 
function fn = mibImage2tiff>generateSequentialFilename (name, num, files_no)
 

Detailed Description

Save image in TIF format, 2D slices or 3D stacks.

Function Documentation

◆ mibImage2tiff()

function [ result , options ] = mibImage2tiff ( filename,
imageS,
options,
ImageDescription )

Save image in TIF format, 2D slices or 3D stacks.

Parameters
filenamefilename for the output file
imageSdataset to save [1:height, 1:width, 1:color_channels, 1:no_stacks] or [1:height, 1:width, 1:no_stacks]
optionsa structure with optional parameters
  • .cmap: a color map for indexed images, otherwise NaN
  • .Saving3d: 'multi' - save all stacks into a single file 'sequence' - generate a sequence of files NaN -> type will be asked
  • .overwrite, if 1 do not check whether file with provided filename already exists
  • .Resolution - vector with two elements for X and Y resolution
  • .Compression: 'none', 'lzw', 'packbits'
  • .showWaitbar: show a progress bar, 1 - on, 0 - off
  • .SliceName: [optional] A cell array with filenames without path
  • .useOriginals: when SliceName is provided and useOriginals==1, those filenames are used
ImageDescription- a cell string, or array of cells
Return values
resultresult of the function: 1 - success, 0 - fail
optionsstructure with used options
Required fields of options:
Generated fields of options:

References generateSequentialFilename().

Referenced by mibChopDatasetController.chopBtn_Callback(), mibCropObjectsController.cropBtn_Callback(), mibCropObjectsController.generatePatches(), mibImage.saveImageAsDialog(), mibImage.saveMask(), and mibImage.saveModel().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ mibImage2tiff>generateSequentialFilename()

function fn = mibImage2tiff>generateSequentialFilename ( name,
num,
files_no )