MAT3D namespace

Interactive 3D surface visualization for images and matrices.

Symbols in this namespace: 9

SymbolKindCategoryDescription
MAT3D.CLOSECommandHybrid 3D commandsCloses a Mat3D window by handle.
MAT3D.CREATEFunctionHybrid 3D functionsCreates an interactive Mat3D MDI window and returns a numeric handle. X/Y are pixels and Z is luminance.
MAT3D.OPTIONSCommandHybrid 3D commandsControls Z normalization, inversion, Y flip, decimation, Z scale/offset and the color legend.
MAT3D.PALETTECommandHybrid 3D commandsApplies a QwtPlot3D .map palette file, or resets to the standard palette when omitted.
MAT3D.SETCommandHybrid 3D commandsUpdates an existing Mat3D window with a new image or with one selected frame from a stack.
MAT3D.SHOWFunctionHybrid 3D functionsCreates a Mat3D window, displays the first frame of an image/stack, and returns the Mat3D handle.
MAT3D.SNAPSHOTCommandHybrid 3D commandsSaves the current Mat3D view as PNG/JPG/BMP/PDF/EPS/TIF according to file extension.
MAT3D.STYLECommandHybrid 3D commandsSets surface style. plotStyle: POINTS, WIREFRAME, HIDDENLINE, POLYGON, FILLEDMESH. floorStyle: NONE, DATA, ISO. coordStyle: NONE, FRAME, BOX.
MAT3D.VIEWCommandHybrid 3D commandsSets the 3D view rotation and optional zoom.

MAT3D.CLOSE

STATEMENTMAT3DGUI / INTERACTIVE
Kind: Command   Category: Hybrid 3D commands   Namespace: MAT3D

MAT3D.CLOSE handle

Closes a Mat3D window by handle.

Minimal example

MAT3D.CLOSE m3

MAT3D.CREATE

FUNCTIONMAT3DGUI / INTERACTIVE
Kind: Function   Category: Hybrid 3D functions   Namespace: MAT3D

MAT3D.CREATE([title])

Creates an interactive Mat3D MDI window and returns a numeric handle. X/Y are pixels and Z is luminance.

Optional parameters

Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.

ParameterMeaning
titleOptional GUI/DataPlot window title.

Minimal example

m3 = MAT3D.CREATE("Luminance surface")

MAT3D.OPTIONS

STATEMENTMAT3DGUI / INTERACTIVE
Kind: Command   Category: Hybrid 3D commands   Namespace: MAT3D

MAT3D.OPTIONS handle [, normalizeZ [, invertZ [, flipY [, sampleStep [, zScale [, zOffset [, legend]]]]]]]

Controls Z normalization, inversion, Y flip, decimation, Z scale/offset and the color legend.

Optional parameters

Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.

ParameterMeaning
normalizeZOptional parameter. If omitted, the command uses its internal default.
invertZOptional parameter. If omitted, the command uses its internal default.
flipYOptional parameter. If omitted, the command uses its internal default.
sampleStepOptional parameter. If omitted, the command uses its internal default.
zScaleOptional parameter. If omitted, the command uses its internal default.
zOffsetOptional parameter. If omitted, the command uses its internal default.
legendOptional parameter. If omitted, the command uses its internal default.

Minimal example

MAT3D.OPTIONS m3, TRUE, FALSE, TRUE, 2, 1.0, 0.0, FALSE

MAT3D.PALETTE

STATEMENTMAT3DGUI / INTERACTIVE
Kind: Command   Category: Hybrid 3D commands   Namespace: MAT3D

MAT3D.PALETTE handle [, paletteFile]

Applies a QwtPlot3D .map palette file, or resets to the standard palette when omitted.

Optional parameters

Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.

ParameterMeaning
paletteFileOptional parameter. If omitted, the command uses its internal default.

Minimal example

MAT3D.PALETTE m3, "STANDARD"

MAT3D.SET

STATEMENTMAT3DGUI / INTERACTIVE
Kind: Command   Category: Hybrid 3D commands   Namespace: MAT3D

MAT3D.SET handle, imageOrStack [, frameIndex [, caption]]

Updates an existing Mat3D window with a new image or with one selected frame from a stack.

Optional parameters

Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.

ParameterMeaning
frameIndexOptional parameter. If omitted, the command uses its internal default.
captionOptional parameter. If omitted, the command uses its internal default.

Minimal example

MAT3D.SET m3, filtered, 0, "Filtered luminance"

MAT3D.SHOW

FUNCTIONMAT3DGUI / INTERACTIVE
Kind: Function   Category: Hybrid 3D functions   Namespace: MAT3D

MAT3D.SHOW(imageOrStack [, title [, sampleStep [, zScale]]])

Creates a Mat3D window, displays the first frame of an image/stack, and returns the Mat3D handle.

Optional parameters

Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.

ParameterMeaning
titleOptional GUI/DataPlot window title.
sampleStepOptional parameter. If omitted, the command uses its internal default.
zScaleOptional parameter. If omitted, the command uses its internal default.

Minimal example

m3 = MAT3D.SHOW(gray, "3D luminance", 2, 1.0)

MAT3D.SNAPSHOT

STATEMENTMAT3DGUI / INTERACTIVE
Kind: Command   Category: Hybrid 3D commands   Namespace: MAT3D

MAT3D.SNAPSHOT handle, path

Saves the current Mat3D view as PNG/JPG/BMP/PDF/EPS/TIF according to file extension.

Minimal example

MAT3D.SNAPSHOT m3, "surface.png"

MAT3D.STYLE

STATEMENTMAT3DGUI / INTERACTIVE
Kind: Command   Category: Hybrid 3D commands   Namespace: MAT3D

MAT3D.STYLE handle [, plotStyle [, floorStyle [, coordStyle]]]

Sets surface style. plotStyle: POINTS, WIREFRAME, HIDDENLINE, POLYGON, FILLEDMESH. floorStyle: NONE, DATA, ISO. coordStyle: NONE, FRAME, BOX.

Optional parameters

Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.

ParameterMeaning
plotStyleOptional parameter. If omitted, the command uses its internal default.
floorStyleOptional parameter. If omitted, the command uses its internal default.
coordStyleOptional parameter. If omitted, the command uses its internal default.

Minimal example

MAT3D.STYLE m3, "FILLEDMESH", "ISO", "FRAME"

MAT3D.VIEW

STATEMENTMAT3DGUI / INTERACTIVE
Kind: Command   Category: Hybrid 3D commands   Namespace: MAT3D

MAT3D.VIEW handle, rotX, rotY, rotZ [, zoom]

Sets the 3D view rotation and optional zoom.

Optional parameters

Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.

ParameterMeaning
zoomOptional parameter. If omitted, the command uses its internal default.

Minimal example

MAT3D.VIEW m3, 35, 0, 25, 0.95