GetLabelBoundingBox¶
Purpose¶
The GetLabelBoundingBox extracts a sub-image that covers the selected labels and reports the voxel count of these labels.
Use Selected Labels together with Timepoint (\-1 = union all) to control which label information entries are aggregated.
If no selected label is non-empty, the output image is invalid.
Usage¶
Connect inLabelInfo to a LabelInformationCollection and input0 to the source image.
Set Selected Labels and Timepoint (\-1 = union all), then trigger Update if needed.
You can get a LabelInformationCollection from the following modules:
Tips¶
Set Timepoint (\-1 = union all) to -1 to aggregate bounding boxes and voxel counts across all timepoints for the selected labels.
Windows¶
Default Panel¶
Parameter Fields¶
Field Index¶
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Visible Fields¶
Use all non-empty labels¶
- name: allLabels, type: Bool, default: FALSE¶
Selected Labels¶
- name: selectedLabels, type: IntegerList, default: 1¶
- Labels to include in the bounding-box and voxel-count aggregation.
You can enter either a single integer (for example
4) or a list using bracket syntax like[1,4,5].
Auto apply¶
- name: autoApply, type: Bool, default: TRUE¶
If enabled, field changes lead to automatic update.
Timepoint (-1 = union all)¶
- name: timepoint, type: Integer, default: 0¶
The timepoint to use. If -1, the union of the bounding boxes of all timepoints is returned and the output contains all timepoints. If a timepoint != -1 is given, the label is only searched on that timepoint and only that timepoint is used for the output subimage.
Selected Voxel Count¶
- name: selectedVoxelCount, type: Integer, persistent: no¶
The number of voxels of the selected labels.
Update¶
- name: update, type: Trigger¶
Initiates update of all output field values.
Clear¶
- name: clear, type: Trigger¶
Clears all output field values to a clean initial state.
On Input Change Behavior¶
- name: onInputChangeBehavior, type: Enum, default: Clear, deprecated name: shouldAutoUpdate,shouldUpdateAutomatically¶
Declares how the module should react if a value of an input field changes.
Values:
Title |
Name |
Deprecated Name |
|---|---|---|
Update |
Update |
TRUE |
Clear |
Clear |
FALSE |
[]¶
- name: updateDone, type: Trigger, persistent: no¶
Notifies that an update was performed (Check status interface fields to identify success or failure).
Has Valid Output¶
- name: hasValidOutput, type: Bool, persistent: no¶
Indicates validity of output field values (success of computation).
Status Code¶
- name: statusCode, type: Enum, persistent: no¶
Reflects module’s status (successful or failed computations) as one of some predefined enumeration values.
Values:
Title |
Name |
|---|---|
Ok |
Ok |
Invalid input object |
Invalid input object |
Invalid input parameter |
Invalid input parameter |
Internal error |
Internal error |
Status Message¶
- name: statusMessage, type: String, persistent: no¶
Gives additional, detailed information about status code as human-readable message.