Classes
contrib/brl/bseg/sdet/sdet_mrf_site_bp.h File Reference

A class for representing a site node in an MRF. More...

#include <vbl/vbl_ref_count.h>
#include <vcl_vector.h>
#include "sdet_mrf_site_bp_sptr.h"

Go to the source code of this file.

Classes

class  sdet_mrf_site_bp

Detailed Description

A class for representing a site node in an MRF.

Author:
J.L. Mundy
Date:
26 March 2011

Stores two sets of buffer arrays,one for messages received at the last step and one for messages coming in during the current iteration the MRF has a 4-neighborhood (u, l, r, d) with the neighbor index in the order (0 1 2 3).

The data cost for each site is D(fp) = lambda_*(fp-x)^2, where x is the observed data and fp is a site label.

D(fp) is set to min(lambda_*(fp-x)^2, truncation_cost_);

Each site stores a pair of label buffers for each of the neighbors One buffer in the pair stores the message received on the last iteration (p), the other receives the current messages (c). On each iteration, the buffers are swapped. A pair of buffers is allocated for each of the (u, l, r, d) neighbors in the 4-connected neighborhood as shown below.

(c p) u (c,p) l x r (c,p) d (c,p)

Definition in file sdet_mrf_site_bp.h.