Microscopy Image Browser 2.91
MIB
Loading...
Searching...
No Matches
mibRenderModel.m File Reference

Render a model using isosurfaces. More...

Functions

function p = mibRenderModel (Volume, Index, pixSize, boundingBox, color_list, Image, Options)
 Render a model using isosurfaces.
 

Detailed Description

Render a model using isosurfaces.

Function Documentation

◆ mibRenderModel()

function p = mibRenderModel ( Volume,
Index,
pixSize,
boundingBox,
color_list,
Image,
Options )

Render a model using isosurfaces.

Parameters
Volumea model, [1:height, 1:width, 1:thickness] with materials
Indexiso value, if 0 or NaN generate isosurfaces of all materials
pixSizestructure with physical dimensions of voxels
  • .x - physical width
  • .y - physical height
  • .z - physical thickness
  • .units - physical units
boundingBoxinformation of the bounding box of the dataset [xMin, xMax, yMin, yMax, zMin, zMax]
color_list[optional] -> list of colors for models (0-1), [materialIndex][Red, Green, Blue]
Imagethe image layer that is used to place an orthoslice
Options[optional] - a structure with parameters that are also asked inside the function
  • .reduce - reduce the volume down to, width pixels [no volume reduction when 0]
  • .smooth - smoothing 3d kernel, width (no smoothing when 0)
  • .maxFaces - maximal number of faces (no limit when 0)
  • .slice - show orthoslice (enter a number slice number, or NaN)
  • .exportToImaris - an optional switch to export the model to Imaris
  • .modelMaterialNames - a cell array for material names
Return values
ptriangulated patch defined by FV (a structure with fields vertices and faces)
Required fields of Options:
Required fields of pixSize:

References max, mibSetImarisSurface(), and view3d().

Referenced by mibController.mibSegmentationTable_cm_Callback(), and mibImage.saveModel().

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