Public Types | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes

cmtk::DeviceHistogram Class Reference
[cmtkGPU library]

Device memory representation of a uniform volume with static helper functions. More...

#include <cmtkDeviceHistogram.h>

Collaboration diagram for cmtk::DeviceHistogram:
Collaboration graph
[legend]

List of all members.

Public Types

typedef DeviceHistogram Self
 This class.
typedef SmartPointer< SelfSmartPtr
 Smart pointer to this class.

Public Member Functions

DeviceMemory< float > & GetDataOnDevice ()
 Return device data pointer.
const DeviceMemory< float > & GetDataOnDevice () const
 Return device data pointer.
void Reset ()
 Reset histogram, i.e., set all bins to zero.
void Populate (const DeviceMemory< float > &dataOnDevice, const float rangeFrom, const float rangeTo, const bool logScale=false)
 Populate histogram from data on device.
void Populate (const DeviceMemory< float > &dataOnDevice, const DeviceMemory< int > &maskOnDevice, const float rangeFrom, const float rangeTo, const bool logScale=false)
 Populate histogram from data on device using binary mask.
float GetEntropy () const
 Get entropy.

Static Public Member Functions

static Self::SmartPtr Create (const size_t numberOfBins)
 Create device representation of volume object.

Private Member Functions

 DeviceHistogram (const size_t numberOfBins)
 Constructor.

Private Attributes

size_t m_NumberOfBins
 User-selected number of bins.
size_t m_NumberOfBinsPadded
 Number of bins after padding to power of 2.
DeviceMemory< float >::SmartPtr m_OnDeviceData
 Managed device memory pointer to histogram data.
DeviceMemory< float >::SmartPtr m_OnDeviceResult
 Managed device memory pointer to result of histogram operations.

Detailed Description

Device memory representation of a uniform volume with static helper functions.

Definition at line 46 of file cmtkDeviceHistogram.h.


Member Typedef Documentation

This class.

Definition at line 50 of file cmtkDeviceHistogram.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines