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

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

Functions

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

Detailed Description

Save image in JPG format, 2D slices.

Function Documentation

function result = ib_image2jpg (   filename,
  imageS,
  options 
)

Save image in JPG 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
  • .showWaitbar: 1 - on, 0 - off, show a progress bar
  • .cmap: a color map for indexed images, otherwise NaN
  • .Compression: Specifies the type of compression used: 'lossy' or 'lossless'
  • .Quality: A number between 0 and 100; higher numbers mean higherquality (less image degradation due to compression), but the resultingfile size is larger.
  • .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 = ibimage2jpg>generateSequentialFilename (   name,
  num,
  files_no 
)