MinMaxPosition

MacroModule

author

Jan Hendrik Moltz

package

FMEstable/ReleaseMeVis

definition

MinMaxPosition.def

see also

MaxValuePositions, LocalMaxima

keywords

min, max, position, value

Purpose

The MinMaxPosition finds one global minimum and/or maximum position in the input image and reports the positions in world and voxel coordinates.

Usage

  1. Connect the image to input0.n2. Optionally connect a mask image to input1 and enable Use mask.n3. Enable Compute minimum and/or Compute maximum.n4. Trigger Update for manual computation, or enable Auto update for automatic recomputation on relevant input and parameter changes.

Details

The module evaluates extrema using an internal image statistics module. If enabled, extrema voxels are converted to marker lists and the first marker is written to Min Position World and/or Max Position World. The corresponding voxel coordinates are provided in Min Position Voxel and Max Position Voxel.nnIf multiple voxels share the same minimum or maximum value, one position is reported and internal marker generation can become memory intensive.

Interaction

The default panel provides input toggles for minimum/maximum computation, mask usage, a manual update button, and automatic update mode. Computed positions and values are shown in the output section.

Tips

Use Compute minimum or Compute maximum to disable results you do not need. For very large images with many equal-valued extrema, consider restricting the search region with input1 and Use mask to reduce memory usage.

Windows

Default Panel

Configure whether minimum and/or maximum should be computed, trigger updates, and inspect resulting positions and values.

Input Fields

input0

name: input0, type: Image

Input image in which extrema are searched.

input1

name: input1, type: Image

Optional mask image used when Use mask is enabled.

Output Fields

minimumPositions

name: minimumPositions, type: XMarkerList(MLBase)

Marker list of minimum positions generated from the minimum mask.

For accessing this object via scripting, see the Scripting Reference: MLXMarkerListWrapper.

maximumPositions

name: maximumPositions, type: XMarkerList(MLBase)

Marker list of maximum positions generated from the maximum mask.

For accessing this object via scripting, see the Scripting Reference: MLXMarkerListWrapper.

Parameter Fields

Field Index

Auto update: Bool

Min Value: Double

Compute maximum: Bool

Update: Trigger

Compute minimum: Bool

Use mask: Bool

Max Position Voxel: Vector3

Max Position World: Vector3

Max Value: Double

Min Position Voxel: Vector3

Min Position World: Vector3

Visible Fields

Compute minimum

name: computeMinimum, type: Bool, default: TRUE

If enabled, compute and expose minimum position and value outputs.

Compute maximum

name: computeMaximum, type: Bool, default: TRUE

If enabled, compute and expose maximum position and value outputs.

Use mask

name: useMask, type: Bool, default: FALSE

Enables use of input1 as mask during extrema computation.

Update

name: update, type: Trigger

Runs a manual update of the extrema computation.

Auto update

name: autoUpdate, type: Bool, default: FALSE

Automatically updates results when relevant inputs or parameters change.

Min Position World

name: minPositionWorld, type: Vector3, default: 0 0 0

World coordinate of one detected minimum position.

Min Position Voxel

name: minPositionVoxel, type: Vector3, default: 0 0 0

Voxel coordinate corresponding to Min Position World.

Min Value

name: minValue, type: Double, persistent: no

Minimum voxel value found in the selected image region.

Max Position World

name: maxPositionWorld, type: Vector3, default: 0 0 0

World coordinate of one detected maximum position.

Max Position Voxel

name: maxPositionVoxel, type: Vector3, default: 0 0 0

Voxel coordinate corresponding to Max Position World.

Max Value

name: maxValue, type: Double, persistent: no

Maximum voxel value found in the selected image region.