| genre | WEMProcessing |
| status | stable |
| author | Olaf Konrad |
| package | MeVisLab/Standard |
| dll | MLWEMModules |
| definition | MLWEMModules.def |
| see also | SoWEMRenderer, WEMInfo |
| keywords | WEM, image, data, read, out |
The module WEMImageData sets the image values of a connected ML image to the nodes of a WEM that lies within a connected ML-image.
The module can set either the nodes' LUT values or the nodes' color values, or both.
Connect a WEM and an ML image to the module.
The image values are set to WEMNodes with nearest neighbor interpolation in contrast to the WEMIsoSurface, which also sets image values to the nodes. In the latter case, the maximum value of a voxel neighborhood is set to the generated node. Nodes that lie outside the connected ML image can either keep their values, or an adjustable default can be set instead.
If the image values are to be set as LUT values, they can additionally be interpolated by a tri-linear interpolation. Note that the image values are stored in a WEMPrimitiveValueList by default under the name of LUT. However, the user is free to choose the PVL the values are going to be written into.
If the image values are to be set as colors directly, the input image must yield an extend in the c-dimension of at least 3. If the input image has a c-extend of only 1 or 2, the image values of the first c-dimension are read and set as RGB values, resulting in shades of grey. In the case that the image values do not range within an interval of [0..1], those values can be scaled. If the image values range within [0..255], set the according Color Scale Value to 255.
Make sure that the SoWEMRenderer that renders the modified WEM is set to display either the LUT values (attach a LUT module as well), or is set to display the nodes' colors.
The module takes a WEM and an ML image as inputs.
The module's output is a WEM where image values are set as colors or LUT values, or both.
| Apply: Trigger | forwardRepaintNotifications: Bool | Set (setColorValue): Bool |
| Auto Apply: Bool | forwardSelectionNotifications: Bool | Set values for outside nodes: Bool |
| Auto Update: Bool | id: Integer | show: Bool |
| autoClear: Bool | isProcessing: Bool | triangulationMode: Enum |
| Color: Color | listenToFinishNotifications: Bool | Use default value list: Bool |
| Color Scale Value: Float | LUT Values: Float | Use interpolation: Bool |
| Custom Value List: String | progress: Float | useFaceDiffuseColor: Bool |
| editable: Bool | removePreviousWEMs: Bool | useInputWEMToCreateOutputWEM: Bool |
| elapsedTime: Float | Set (setLutValue): Bool | usePolygonOffset: Bool |
If checked, the module computes a new output WEM on every parameter change.
If pressed, the module computes a new output WEM on each change of the input WEM or the input image.
If checked, the image values are written into the chosen PVL
If checked, the color of the nodes is modified.
Sets a value by that all R,G and B components are divided in order to get the R,G,B values into the range [0..1].
A value of 0 is impossible to set.
If checked, the module usse a trilinear image value interpolation.
If checked, the LUT Values is set to nodes that lie outside the ML image, otherwise, the values of outside nodes remain unchanged.
This option works for the setting of LUT values as well as for the setting of node colors (here, the Color is set).
Sets the default LUT value for nodes that lie outside the ML image.
Sets the default color for nodes that lie outside the ML image.
If checked, the image values are written into the default PVL named LUT, else a new PVL is generated and written into by the name provided in the Custom Value List.