shrink image by integral amount More...
#include <discrete_shrink.hh>
Public Member Functions | |
DiscreteShrinkFnc (const Size &blocksize=Size(2, 2, 2)) | |
void | SetBlocksize (const Size &bs) |
Size | GetBlocksize () const |
template<typename T , class D > | |
ImageStateBasePtr | VisitState (const ImageStateImpl< T, D > &isi) const |
Static Public Member Functions | |
static String | GetAlgorithmName () |
Protected Attributes | |
Size | bs_ |
shrink image by integral amount
The algorithm performs a scaling of the orignal image by merging adjacent blocks of pixels. The block size can be passed in the constructor or changed with SetBlocksize(). The spatial sampling of the image is updated, such that the original size is virtually unchanged (assuming, that the block size is a divisor of the image size)
Definition at line 38 of file discrete_shrink.hh.
DiscreteShrinkFnc | ( | const Size & | blocksize = Size(2,2,2) |
) | [inline] |
Definition at line 40 of file discrete_shrink.hh.
static String GetAlgorithmName | ( | ) | [inline, static] |
Definition at line 49 of file discrete_shrink.hh.
Size GetBlocksize | ( | ) | const [inline] |
Definition at line 44 of file discrete_shrink.hh.
void SetBlocksize | ( | const Size & | bs | ) | [inline] |
Definition at line 43 of file discrete_shrink.hh.
ImageStateBasePtr VisitState | ( | const ImageStateImpl< T, D > & | isi | ) | const [inline] |
Definition at line 51 of file discrete_shrink.hh.