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

Save image in PNG format, 2D slices. More...

Functions

function result = ib_image2png (filename, imageS, options)
 Save image in PNG format, 2D slices. More...
 
function fn = ibimage2png>generateSequentialFilename (name, num, files_no)
 

Detailed Description

Save image in PNG format, 2D slices.

Function Documentation

function result = ib_image2png (   filename,
  imageS,
  options 
)

Save image in PNG format, 2D slices.

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
  • .overwrite, if 1 do not check whether file with provided filename already exists
  • .Comment: - a string with a comment
  • .cmap: a color map for indexed images, otherwise NaN
  • .showWaitbar: 1 - on, 0 - off, show a progress bar
  • .XResolution: A scalar indicating the number of pixels/unit in thehorizontal direction
  • .YResolution: A scalar indicating the number of pixels/unit in thevertical direction
  • .ResolutionUnit: Units for the resolution
  • .Reshape: a switch to reshape dataset before saving
  • .SliceName: [optional] A cell array with filenames without path
Return values
resultresult of the function: 1 - success, 0 - fail
Required fields of options:

Referenced by menuFileSaveImageAs().

Here is the caller graph for this function:

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