WEMImageSliceIntensityProfile¶
-
MLModule
¶ genre WEMGenerate
author MeVis Medical Solutions AG
package MeVisLab/Standard
dll MLWEMModules
definition MLWEMModules.def inherits from WEMGenerator
keywords heightfield
,elevation
,displace
,bump
Purpose¶
The module WEMImageSliceIntensityProfile
generates an open WEM as a height field for an image slice.
The image slices are always taken from the scan direction. Use image manipulation modules such as OrthoReformat3
or Resample3D
to change view direction or resolution.
Details¶
The module generates a WEM with a node for each image voxel of a slice. The slice is always taken from the original scan direction.
The size of the mesh is normalized in that it preserves the image’s aspect ratio while the larger voxel extent is mapped to 1.
The nodes are being displaced in negative z-direction (towards the viewer) in a normalized manner; that means that with a Scale Factor
1, the maximum image value at a voxel causes a displacement of 1 (unit relative to normalized voxel extent above).
The image values at nodes are stored in the default PVL ‘LUT’, so the image values can be used to color the mesh with a LUT that is used for a 2D view (see example network).
The example network features a local macro that transforms the normalized mesh to the slice’s world space; if used, the rendering of the mesh is exactly aligned with a rendering of the slice by using a SoView2D
with a SoView2DHint
in 3D.
Output Fields¶
outWEM¶
-
name:
outWEM
, type:
WEM(MLBase)
¶ - For accessing this object via scripting see the Scripting Reference:
MLWEMWrapper
.
Parameter Fields¶
Field Index¶
Apply : Trigger |
maxNumSlices : Integer |
Auto Apply : Bool |
Overwrite label and description : Bool |
Clear : Trigger |
Scale Factor : Double |
Description : String |
Should Build Edges : Bool |
elapsedTime : Float |
shouldComputeNormals : Bool |
id : Integer |
Slice : Integer |
isProcessing : Bool |
Update Mode : Enum |
Label : String |
Visible Fields¶
Auto Apply¶
-
name:
autoApply
, type:
Bool
, default:
TRUE
¶ If checked, the module computes anew on any parameter change.
see also WEMGenerator.autoApply
Update Mode¶
-
name:
updateMode
, type:
Enum
, default:
AutoUpdate
, deprecated name:
autoUpdate
¶ Defines how this module should react on any input field change.
see also WEMGenerator.updateMode
Apply¶
-
name:
apply
, type:
Trigger
¶ If pressed, the module computes anew.
see also WEMGenerator.apply
Clear¶
-
name:
clear
, type:
Trigger
¶ If pressed, the output WEM is cleared (made empty).
see also WEMGenerator.clear
Overwrite label and description¶
-
name:
overwriteLabelDescription
, type:
Bool
, default:
FALSE
¶ If checked, the label and description string of the output WEM are set to
Label
andDescription
.
Label¶
-
name:
label
, type:
String
¶ Sets a label string in the output WEM.
see also WEMGenerator.label
Description¶
-
name:
description
, type:
String
¶ Sets a description string in the output WEM.
see also WEMGenerator.description
Slice¶
-
name:
slice
, type:
Integer
, default:
0
, minimum:
0
, maximum:
:field:`maxNumSlices`
¶ Sets the slice to generate a height field for. Can only be in [0.. maxZSlice].