![]() |
SuPReMo
0.1.1
|
#include <ImagePyramid.h>
Public Member Functions | |
| ImagePyramid () | |
| ImagePyramid (const ImagePyramid &rhsPyramid) | |
| ~ImagePyramid () | |
| ImagePyramid & | operator= (const ImagePyramid< VoxelType > &rhsPyramid) |
| void | GenerateLevels (const nifti_image *const imageIn, unsigned int numberOfLevels, unsigned int numberOfLevelsToPerform, unsigned int minNumberOfVoxelsPerDim=1, float(*minVoxDim)[3]=nullptr) |
| nifti_image * | GetLevel (unsigned int level) |
Private Attributes | |
| unsigned int | numberOfLevels |
| The total number of levels. More... | |
| unsigned int | numberOfLevelsToPerform |
| The number of levels on which computations are performed. More... | |
| nifti_image ** | imageLevels |
| Pointer to all image levels. More... | |
Class that implements a mulit-resolution image pyramid. This class implements a decimating multi-resolution image pyramid. From one level to the next the image resolution is halved.
| ImagePyramid< VoxelType >::ImagePyramid |
Constructor
| ImagePyramid< VoxelType >::ImagePyramid | ( | const ImagePyramid< VoxelType > & | rhsPyramid | ) |
Copy constructor
| ImagePyramid< VoxelType >::~ImagePyramid |
Destructor. Deletes the image data that was generated with GenerateLevels()
| void ImagePyramid< VoxelType >::GenerateLevels | ( | const nifti_image *const | imageIn, |
| unsigned int | numberOfLevels, | ||
| unsigned int | numberOfLevelsToPerform, | ||
| unsigned int | minNumberOfVoxelsPerDim = 1, |
||
| float(*) | minVoxDim[3] = nullptr |
||
| ) |
Generate the pyramid levels
| imageIn | Pointer to the nifti input image |
| numberOfLevels | Total number of pyramid levels. Will be increased, if numberOfLevelsToPerform is larger than this. |
| numberOfLevelsToPerform | Total number of levels to perform. If it is larger than numberOfLevels, it will be updated. |
| minNumberOfVoxelsPerDim | The minimum number of voxels per level below which a dimension will not be subsampled. |
| minVoxDim | The minimal voxel dimension. If minVoxDim is provided, then the image is only downsampled if voxel size in the resampled image <= minVoxDim. |
|
inline |
Get the pointer to a nifti image that represents a level of the decimating Gaussian image pyramid.
| level | The requested level. |
| ImagePyramid< VoxelType > & ImagePyramid< VoxelType >::operator= | ( | const ImagePyramid< VoxelType > & | rhsPyramid | ) |
Copy operator
|
private |
Pointer to all image levels.
|
private |
The total number of levels.
|
private |
The number of levels on which computations are performed.