Microscopy Image Browser 2.91
MIB
Loading...
Searching...
No Matches
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, extraOptions)
 Convert matrix [1:height, 1:width, 1:no_stacks] to Amira Mesh Labels.
 

Detailed Description

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

Function Documentation

◆ bitmap2amiraLabels()

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

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
extraOptions[optional], a structure with additional paramters .TransformationMatrix - a string with the transformation matrix
Return values
resultresult of the function run, 1 - success, 0 - fail
Required fields of voxel:
Required fields of extraOptions:

References max.

Referenced by mibChopDatasetController.chopBtn_Callback(), mibCropObjectsController.cropBtn_Callback(), mibCropObjectsController.generatePatches(), mibImage.saveMask(), and mibImage.saveModel().

Here is the caller graph for this function: