OpenStructure
|
#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.
|
inline |
Definition at line 40 of file discrete_shrink.hh.
|
inlinestatic |
Definition at line 49 of file discrete_shrink.hh.
|
inline |
Definition at line 44 of file discrete_shrink.hh.
|
inline |
Definition at line 43 of file discrete_shrink.hh.
ImageStateBasePtr VisitState | ( | const ImageStateImpl< T, D > & | isi | ) | const |
|
protected |
Definition at line 51 of file discrete_shrink.hh.