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

Convert bitmap matrix to Amira Mesh binary format. More...

Functions

function result = bitmap2amiraMesh (filename, bitmap, img_info, options)
 Convert bitmap matrix to Amira Mesh binary format. More...
 

Detailed Description

Convert bitmap matrix to Amira Mesh binary format.

Function Documentation

function result = bitmap2amiraMesh (   filename,
  bitmap,
  img_info,
  options 
)

Convert bitmap matrix to Amira Mesh binary format.

Parameters
filenamefilename for Amira Mesh file
bitmapa dataset, [1:height, 1:width, 1:colors, 1:no_stacks]
img_infoimg_info containers.Map from im_browser.m
optionsa structure with some optional parameters
  • .overwrite - if 1 do not check whether file with provided filename already exists
  • .showWaitbar - if 1 - show the wait bar, if 0 - do not show
  • .colors - [optional] - a matrix of colors for multiple color channels, format: [color channel][Red Green Blue] in range from 0-1. Applicable to the HxMultiChannelField3 type of data saving.
Return values
resultresult of the function run, 1 - success, 0 - fail
Required fields of options:

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

Here is the caller graph for this function: