OpenStructure
Public Member Functions | Static Public Member Functions | Protected Attributes
DiscreteShrinkFnc Struct Reference

#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()

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

Definition at line 40 of file discrete_shrink.hh.

Member Function Documentation

◆ GetAlgorithmName()

static String GetAlgorithmName ( )
inlinestatic

Definition at line 49 of file discrete_shrink.hh.

◆ GetBlocksize()

Size GetBlocksize ( ) const
inline

Definition at line 44 of file discrete_shrink.hh.

◆ SetBlocksize()

void SetBlocksize ( const Size bs)
inline

Definition at line 43 of file discrete_shrink.hh.

◆ VisitState()

ImageStateBasePtr VisitState ( const ImageStateImpl< T, D > &  isi) const

Field Documentation

◆ bs_

Size bs_
protected

Definition at line 51 of file discrete_shrink.hh.


The documentation for this struct was generated from the following file: