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

Render a model using isosurfaces. More...

Functions

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

Detailed Description

Render a model using isosurfaces.

Function Documentation

function p = ib_renderModel (   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)
Return values
ptriangulated patch defined by FV (a structure with fields vertices and faces)
Required fields of Options:
Required fields of pixSize:

References view3d().

Referenced by menuModelsSaveAs(), and model_cm_Callback().

Here is the call graph for this function:

Here is the caller graph for this function: