MinMaxPosition¶
- MacroModule¶
author
Jan Hendrik Moltz
package
definition
see also
keywords
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¶
Connect the image to
input0.n2. Optionally connect a mask image toinput1and enableUse mask.n3. EnableCompute minimumand/orCompute maximum.n4. TriggerUpdatefor manual computation, or enableAuto updatefor 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¶
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¶
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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¶
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.