Optimized Belief Propagation (CPU and GPU)
|
Class to define images that are used in bp processing. More...
#include <BpImage.h>
Public Member Functions | |
BpImage () | |
BpImage (const std::array< unsigned int, 2 > &width_height) | |
BpImage (const std::array< unsigned int, 2 > &width_height, const T *input_pixel_vals) | |
BpImage (const std::string &file_name) | |
const std::unique_ptr< T[]> & | UniquePtrToPixelData () const |
T * | PointerToPixelsStart () const |
T | PixelAtPoint (const std::array< unsigned int, 2 > &point_xy) const |
T | PixelAtPoint (unsigned int i) const |
void | SetPixelAtPoint (const std::array< unsigned int, 2 > &point_xy, T val) |
void | SetPixelAtPoint (unsigned int i, T val) |
unsigned int | Width () const |
unsigned int | Height () const |
void | SaveImageAsPgm (const std::string &filename) const |
Protected Member Functions | |
void | LoadImageAsGrayScale (const std::string &file_path_image) |
void | pnm_read (std::ifstream &file, std::string &buf) const |
BpImage< unsigned char > | ImageRead (const std::string &file_name, beliefprop::ImageType image_type, bool weighted_rgb_conversion=true) const |
unsigned int | TotalPixels () const |
Protected Attributes | |
std::array< unsigned int, 2 > | width_height_ |
std::unique_ptr< T[]> | pixels_ |
Class to define images that are used in bp processing.
T |
|
inline |
|
protected |
Definition at line 90 of file BpImage.cpp.
|
protected |
Definition at line 31 of file BpImage.cpp.
|
inline |
|
inline |
|
protected |
Definition at line 72 of file BpImage.cpp.
|
inline |
|
inline |
|
inline |
|
inline |
|
inlineprotected |
|
inline |
|
inline |
|
protected |
|
protected |