DiscreteShrinkFnc Struct Reference

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_

Detailed Description

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.


Constructor & Destructor Documentation

DiscreteShrinkFnc ( const Size blocksize = Size(2,2,2)  )  [inline]

Definition at line 40 of file discrete_shrink.hh.


Member Function Documentation

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]

Field Documentation

Size bs_ [protected]

Definition at line 51 of file discrete_shrink.hh.


The documentation for this struct was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines

Generated on 6 Dec 2017 for OpenStructure by  doxygen 1.6.1