Microscopy Image Browser 2.91
MIB
Loading...
Searching...
No Matches
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.
 
function fn = bitmap2amiraMesh>generateSequentialFilename (name, num, files_no, ext)
 
function  bitmap2amiraMesh>saveAmFile (filename, bitmap, img_info, options, wb)
 

Detailed Description

Convert bitmap matrix to Amira Mesh binary format.

Function Documentation

◆ bitmap2amiraMesh()

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.
  • .Saving3d: 'multi' - save all stacks into a single file 'sequence' - generate a sequence of files
  • .SliceName: [optional] a cell array with filenames without path
  • .verbose: [optional] a logical switch (default: true), report the saved filename
Return values
resultresult of the function run, 1 - success, 0 - fail
Required fields of options:

References generateSequentialFilename().

Referenced by mibChopDatasetController.chopBtn_Callback(), mibCropObjectsController.cropBtn_Callback(), mibCropObjectsController.generatePatches(), mibImage.saveImageAsDialog(), mibDeepController.startPrediction2D(), mibDeepController.startPrediction3D(), and mibDeepController.startPredictionBlockedImage().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ bitmap2amiraMesh>generateSequentialFilename()

function fn = bitmap2amiraMesh>generateSequentialFilename ( name,
num,
files_no,
ext )

◆ bitmap2amiraMesh>saveAmFile()

function bitmap2amiraMesh>saveAmFile ( filename,
bitmap,
img_info,
options,
wb )

References max, and min.