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

Export model to Imod model type. More...

Functions

function [ Model ,

selection ] = 
exportModelToImodModel (O, Options)
 Export model to Imod model type. More...
 

Detailed Description

Export model to Imod model type.

Function Documentation

function [ Model , selection ] = exportModelToImodModel (   O,
  Options 
)

Export model to Imod model type.

Note
Requires matTomo function sets
Parameters
O-> a model [1:height,1:width,1:thickness]
Options-> options structure:
  • .modelFilename - filename to save the model, use mod extension.
  • .pixSize.x - physical width of the voxels
  • .pixSize.y - physical height of the voxels
  • .pixSize.z - physical thickness of the voxels
  • .xyScaleFactor - a number to indicate a step when picking voxels from the contours of materials, when 5 - take each 5th point
  • .zScaleFactor - a number to indicate a Z step when picking voxels from the contours of materials, when 1 - take each z-section
  • .colorList - a matrix with colors for the materials as [materialId][Red, Green, Blue], (0-1)
  • .ModelMaterialNames - a cell array with names of materials
  • .generateSelectionSw - when 1 generate the Selection layer with the used for the model points
  • .showWaitbar - if 1 - show the wait bar, if 0 - do not show
Return values
Model-> IMOD model object
selection-> selection layer for im_browser [1:height,1:width,1:thickness]
Required fields of Options:

Referenced by menuModelsSaveAs().

Here is the caller graph for this function: