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

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

Functions

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

Detailed Description

Save image in PNG format, 2D slices.

Function Documentation

◆ mibImage2png()

function result = mibImage2png ( 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
  • .useOriginals: when SliceName is provided and useOriginals==1, those filenames are used
Return values
resultresult of the function: 1 - success, 0 - fail
Required fields of options:

References generateSequentialFilename().

Referenced by mibImage.saveImageAsDialog(), mibImage.saveMask(), and mibImage.saveModel().

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

◆ mibImage2png>generateSequentialFilename()

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