Optimized Belief Propagation (CPU and GPU)
pnmfile.h File Reference
#include <cstdlib>
#include <climits>
#include <cstring>
#include <fstream>
#include "image.h"
#include "misc.h"
Include dependency graph for pnmfile.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  bp_single_thread_imp::pnm_error
 

Namespaces

 bp_single_thread_imp
 Class and structs in single-thread CPU bp implementation by Pedro Felzenwalb available at https://cs.brown.edu/people/pfelzens/bp/index.html.
 

Macros

#define BUF_SIZE   256
 

Functions

template<class T >
void load_image (bp_single_thread_imp::image< T > **im, const char *name)
 
template<class T >
void save_image (bp_single_thread_imp::image< T > *im, const char *name)
 

Variables

const bool kUseWeightedRGBToGrayscaleConversion_PNMFILE = true
 

Macro Definition Documentation

◆ BUF_SIZE

#define BUF_SIZE   256

Definition at line 31 of file pnmfile.h.

Function Documentation

◆ load_image()

template<class T >
void load_image ( bp_single_thread_imp::image< T > **  im,
const char *  name 
)

Definition at line 285 of file pnmfile.h.

◆ save_image()

template<class T >
void save_image ( bp_single_thread_imp::image< T > *  im,
const char *  name 
)

Definition at line 305 of file pnmfile.h.

Here is the call graph for this function:

Variable Documentation

◆ kUseWeightedRGBToGrayscaleConversion_PNMFILE

const bool kUseWeightedRGBToGrayscaleConversion_PNMFILE = true

Definition at line 32 of file pnmfile.h.