Documentaton - GENERICS - CRFPROCESS

[LABELS EAFTER E] = CRFPROCESS(SEGS, SEGCLASS, UNARY, PARAMS, BOUNDARY) Sets up and processes a CRF on the structure SEGS, with initial labels SEGCLASS, unary potentials UNARY, parameters PARAMS, and shared boundary lengths BOUNDARY. The energy which is minimized is the same as is suggested in Fulkerson et. al 2009.

PARAMS is a structure which has l_edge, the tradeoff between the unary and pairwise potentials.

BOUNDARY is a sparse matrix which contains the boundary lengths between each adjacent pair of superpixels.