Transform to power of 2
The Transform to power of 2 algorithm resamples the original image to dimensions that are powers of 2.
Contents
Background
By default, this algorithm will use Bilinear Interpolation for 2D images or Trilinear Interpolation for 3D images to resample the original image to dimensions that are powers of 2.
Optionally, you can select another type of interpolation that will be used in the algorithm.
The parameters required are the expected extents in all dimensions.
The algorithm uses the following to calculate the appropriate new dimension size as a power of 2.
User inputs of <= 16 will result in 16.
User inputs of >16 and <= 40 will result in 32
User inputs of >40 and <= 80 will result in 64
User inputs of >80 and <= 160 will result in 128
User inputs of >160 and <= 448 will result in 256
Image types
You can apply this algorithm to color and black-and-white images as well as 2D and 3D image types.
Applying the Transform to Power of 2 Algorithm
To run the algorithm, complete the following steps:
- Open an image of interest;
- Select Algorithms > Transformation tools > Transform to power of 2;
- Input the expected dimension sizes;
- Optionally, select type of interpolation to be used in algorithm;
- Press OK.
The algorithm begins to run, and a progress bar appears with the status. When the algorithm finishes running, the progress bar disappears, and the results appear as a file in selected format in a chosen location. For more information about the dialog box options, refer to Figure 1.
Resample dialog box
Original Extents extent X
|
X dimension of original image.
|
|
Original Extents extent Y
|
Y dimension of original image.
| |
Original Extents extent Z
|
Z dimension of original image (if image is 3D).
| |
Expected Extents extent X
|
Expected X dimension.
| |
Expected Extents extent Y
|
Expected Y dimension.
| |
Expected Extents extent Z
|
Expected Z dimension (if image is 3D).
| |
Interpolation
|
Specifies the type of interpolation the algorithm will use when resampling. The list includes: Trilinear, B-spline 3-rd order, B-spline 4-th order, Cubic Lagrangian, Quintic Lagrangian, Heptic Lagrangian, Windowed Sinc.
| |
OK
|
Applies the algorithm according to the specifications in this dialog box.
| |
Cancel
|
Disregards any changes that you made in this dialog box and closes it.
| |
Help
|
Displays online help for this dialog box.
|