| genre | Subimage |
| status | stable |
| author | Tobias Boskamp |
| package | MeVisLab/Standard |
| dll | MLGeometry1 |
| definition | MLGeometry1.def |
| see also | SubImage, TestPattern, Mask |
| keywords | Extract, subimage, magnify, zoom, scale, diameter, local, ROI |
The module Magnify selects a subimage of a given size around a center point from a dataset. The subimage may be masked with a diamond or circular shaped mask and optionally be scaled with regard to its voxelsize.
The (scaled) subimage can be drawn as an overlay to the original image, e.g. as a local magnifying tool. Magnify can also be used to efficiently extract a small region of interest from a dataset by just selecting a center point and a physical diameter.
In combination with properly configured Info, TestPattern and Mask modules, a spherical region of interest can easily be extracted.
Specify a Center value and a size to obtain a subimage around the center.
By connecting Y and Z to Size X, a symmetric subimage is obtained.
To obtain a 3D spherical mask, connect the Size X/Y/Z of an Info module connected to the Magnify output to a TestPattern module's corresponding image size fields and select the Filled Max Ellipsoid pattern. Combine this pattern with the Magnify output using a Mask module.
| Border Fill: Enum | Y: Float |
| Center: Vector3 | Z: Float |
| Fill Value: Float | |
| Magnify: Float | |
| Outset: Float | |
| Shape: Enum | |
| Size X: Float | |
| World position and units: Bool |
Sets the center position of the subimage in voxel or world coordinates, depending on the World position and units setting.
Sets the x-size of the subimage in voxel or mm, depending on World position and units.
Sets the y-size of the subimage in voxel or mm, depending on World position and units.
Sets the z-size of the subimage in voxel or mm, depending on World position and units.
Sets the size of a border which is added in X and Y direction, specified in voxels or in world units, depending on the World position and units setting.
Defines the shape for the subimage.
Values:
| Title | Name |
|---|---|
| Rectangle | Rectangle |
| Circle | Circle |
| Diamond | Diamond |
Defines how the border/mask background of the subimage should be filled.
Values:
| Title | Name | Description |
|---|---|---|
| Img Min | ImgMin | The input image's minimum value is used as a fill value. |
| Img Max | ImgMax | The input image's maximum value is used as a fill value. |
| User Val | UserVal | The Fill Value is used as a fill value. |
Sets a fill value for filling the borders/mask background if Border Fill is set to UserVal.