Microscopy Image Browser  1.00
 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)
 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 
)

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
modelMaterialNames[optional], cell array with names of the materials
overwrite[optional], if 1 do not check whether file with provided filename already exists
Return values
resultresult of the function run, 1 - success, 0 - fail
Required fields of voxel:

Referenced by menuMaskSaveAs(), and menuModelsSaveAs().

Here is the caller graph for this function: