Microscopy Image Browser  1.233
All Classes Files Functions Variables Pages
ib_image2tiff.m File Reference

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

Functions

function [ result ,

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

Detailed Description

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

Function Documentation

function [ result , options ] = ib_image2tiff (   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
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:

Referenced by menuFileSaveImageAs(), menuMaskSaveAs(), menuModelsSaveAs(), cropObjectsDlg>cropBtn_Callback(), and mibchopDatasetGui>chopBtn_Callback().

Here is the caller graph for this function:

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