Skip to main content

Image3D

WLJS
Wolfram Kernel
Execution environment
JerryI`Notebook`Graphics3DUtils`
Context
warning

Limited support. Only gray-scale and minimum options. Not possible to combine with Graphics3D

Image3D[data_List]

represents a 3D image with pixel values given by the 3D array data

Image3D[{image1, image2, ...}]

creates a 3D image from a list of 2D images.

Image is rendered using maximum intensity projection (MIP) and shader code developed by Martin Röhlig.

Options

ImageSize

Background

BoxRatios

ColorFunction

Possible Values

Named Palettes
  • "XRay"
  • "GrayLevelOpacity"
  • "Greys"
  • "OrRd"
Color Scales
  • PuBu
  • BuPu
  • Oranges
  • BuGn
  • YlOrBr
  • YlGn
  • Reds
  • RdPu
  • Greens
  • YlGnBu
  • Purples
  • GnBu
  • Greys
  • YlOrRd
  • PuRd
  • Blues
  • PuBuGn
  • Viridis
Diverging Scales
  • Spectral
  • RdYlGn
  • RdBu
  • PiYG
  • PRGn
  • RdYlBu
  • BrBG
  • RdGy
  • PuOr
Categorical Palettes
  • Set2
  • Accent
  • Set1
  • Set3
  • Dark2
  • Paired
  • Pastel2
  • Pastel1

or one can provide a pure color function similar to Graphics, which return color based on the input value from 0 to 1.

Examples

Generate one from random numbers

Image3D[RandomReal[1, {5, 10, 10}]]

Use example data

ExampleData[{"TestImage3D", "CTengine"}]

or MRT of a brain

Image3D[ExampleData[{"TestImage3D","MRbrain"}], BoxRatios->{1,1,1/1.65}, ColorFunction->"XRay"]