Device memory representation of a uniform volume with static helper functions. More...
#include <cmtkDeviceHistogram.h>

Public Types | |
| typedef DeviceHistogram | Self |
| This class. | |
| typedef SmartPointer< Self > | SmartPtr |
| 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. | |
Device memory representation of a uniform volume with static helper functions.
Definition at line 46 of file cmtkDeviceHistogram.h.
This class.
Definition at line 50 of file cmtkDeviceHistogram.h.
1.7.2