Examples of Markov random field programs, including the ICM,BP algorithm, MATLAB to write, a total of 30 several functions. The complete source code, has been tested.
File list:
matlab MRF toy examples
......................\addNoise.m
......................\computeBeliefs.m
......................\gaussplot.m
......................\getCliqueProb.m
......................\getLogProb.m
......................\getPropMat.m
......................\getRasterNeighbors.m
......................\ICM.m
......................\initBPMessages.m
......................\initICM.m
......................\initLocalEvidence.m
......................\initMRF.m
......................\initNodes.m
......................\initPaths.m
......................\ipf.m
......................\marginals2image.m
......................\multMessages.m
......................\oneIterBP.m
......................\runBP.m
......................\showIm.m
......................\states2image.m
......................\testMRF.m
......................\utAxisAngleToRotmat.m
......................\utCropImageToPowerOfTwo.m
......................\utFilename.m
......................\utIf.m
......................\utIsScalarBoolean.m
......................\utIsScalarInteger.m
......................\utIsScalarReal.m
......................\utIsSingleString.m
......................\utNormalize.m
......................\utParseArgs.m
......................\utReadPnm.m
......................\utRotmatToAxisAngle.m
......................\utSafeInverse.m
......................\utSafeMult.m
......................\utSigmoid.m
......................\utWritePnm.m