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

Convert matrix [1:height, 1:width, 1:no_stacks] to Amira Mesh Labels. More...

Functions

function result = bitmap2amiraLabels (filename, bitmap, format, voxel, color_list, modelMaterialNames, overwrite, showWaitbar)
 Convert matrix [1:height, 1:width, 1:no_stacks] to Amira Mesh Labels. More...
 

Detailed Description

Convert matrix [1:height, 1:width, 1:no_stacks] to Amira Mesh Labels.

Function Documentation

function result = bitmap2amiraLabels (   filename,
  bitmap,
  format,
  voxel,
  color_list,
  modelMaterialNames,
  overwrite,
  showWaitbar 
)

Convert matrix [1:height, 1:width, 1:no_stacks] to Amira Mesh Labels.

Parameters
filenamefilename for Amira Mesh file
bitmapthe dataset, [1:height, 1:width, 1:no_stacks]
format[optional], saving format: 'binaryRLE', 'ascii', 'binary' (default)
voxel[optional], a structure with voxel size:
  • voxel.x - physical width of a voxel
  • voxel.y - physical height of a voxel
  • voxel.z - physical thickness of a voxel
  • voxel.minx - minimal X coordinate of the bounding box
  • voxel.miny - minimal Y coordinate of the bounding box
  • voxel.minz - minimal Z coordinate of the bounding box
color_list[optional], a matrix with colors for the materials as [materialId][Red, Green, Blue] from 0-1; can be empty
modelMaterialNames[optional], cell array with names of the materials, can be empty
overwrite[optional], if 1 do not check whether file with provided filename already exists
showWaitbar[optional], if 1 - show the wait bar, if 0 - do not show
Return values
resultresult of the function run, 1 - success, 0 - fail
Required fields of voxel:

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

Here is the caller graph for this function: