genre | Subimage |
authors | Florian Link, Tobias Boskamp |
package | MeVisLab/Standard |
dll | MLBasicModules |
definition | mlBasicModules.def |
see also | Magnify, VecBoxConvert, DecomposeVector3, GetVoxelValue |
keywords | crop, box |
The module SubImage extracts subimages from its input image.
A SubImage module can also create a region larger than the input image.
Some details on the Mode 'WorldStartEndImageAxisAligned':
The update of the output image of this module depends on the Apply/Apply Box buttons and the Auto Apply/ Auto Apply Box checkboxes.
If no auto apply is set, the SubImage module still does an explicit apply on each input image change. This means that the output image of the module is recalculated from the module's coordinate fields whenever the input image changes.
Always clamp to input image region: Bool | Full Size: Trigger | U (u): Double |
Apply: Trigger | Mode: Enum | U (modifyU): Bool |
Apply Box: Trigger | Sc: Double | X (x): Double |
Auto Apply: Bool | St: Double | X (modifyX): Bool |
Auto Apply Box: Bool | Su: Double | Y (y): Double |
Auto-correct for negative subimage extents: Bool | Sx: Double | Y (modifyY): Bool |
Box Input: String | Sy: Double | Z (z): Double |
C (c): Double | Sz: Double | Z (modifyZ): Bool |
C (modifyC): Bool | T (t): Double | |
Fill Value: Double | T (modifyT): Bool |
If pressed, the currently specified box is used.
If checked, the currently specified is used on any field change.
If disabled (default), any input that results in an output box with negative extents (v1[i] > v2[i] for any component i) will result in an invalidated output image. If enabled, the components of the output subimage box are sorted so that v1 <= v2 in all components.
Note that empty boxes can still occur for the voxel modes if the size is exactly 0, or if Always clamp to input image region is enabled and the box lies entirely outside of the input image.
If enabled, the input image can only be cropped, but never extended. Thus, the Fill Value has no effect in this case. Default: disabled.
Sets a fill value that is used for all empty regions in case the output image extends to regions not covered by the input image.
Defines the mode in that the size of the subimage is specified.
Values:
Title | Name | Description |
---|---|---|
Voxel Start & Size | VoxelStartSize | A starting point and a size in voxel coordinates need to be specified. |
Voxel Start & End | VoxelStartEnd | A starting and an ending point in voxel coordinates need to be specified. |
World Start & End (Image Axis Aligned) | WorldStartEndImageAxisAligned | Like VoxelStartEnd mode, but the start and end coordinate are to be given in world coordinates. Note that this mode does NOT interpret the world positions as corners of a box that is world-axis aligned (e.g. like a CSO bounding box), but image-axis aligned (thus the long title). Also, every voxel touched by more than epsilon for any epsilon>0 by the so-defined box will be included in the output image, so such a world box is most robustly defined by providing voxel centers. |
Voxel Center & Width | VoxelCenterWidth | A middle point and size in voxel coordinates. |