mrf2d: Markov Random Field Models for Image Analysis

Model fitting, sampling and visualization for the (Hidden) Markov Random Field model with pairwise interactions and general interaction structure from Freguglia, Garcia & Bicas (2020) <doi:10.1002/env.2613>, which has many popular models used in 2-dimensional lattices as particular cases, like the Ising Model and Potts Model. A complete manuscript describing the package is available in Freguglia & Garcia (2022) <doi:10.18637/jss.v101.i08>.

Version: 1.0
Depends: R (≥ 3.5.0)
Imports: Rcpp (≥ 1.0.1), dplyr (≥ 0.8.1), tidyr, methods, ggplot2, Rdpack
LinkingTo: Rcpp, RcppArmadillo
Suggests: testthat (≥ 2.1.0), covr, knitr, rmarkdown, glue
Published: 2022-01-25
DOI: 10.32614/CRAN.package.mrf2d
Author: Victor Freguglia ORCID iD [aut, cre]
Maintainer: Victor Freguglia <victorfreguglia at>
License: GPL-3
NeedsCompilation: yes
Citation: mrf2d citation info
Materials: README NEWS
CRAN checks: mrf2d results


Reference manual: mrf2d.pdf
Vignettes: Parameter restriction families in mrf2d
Working with 3d lattices in mrf2d


Package source: mrf2d_1.0.tar.gz
Windows binaries: r-devel:, r-release:, r-oldrel:
macOS binaries: r-release (arm64): mrf2d_1.0.tgz, r-oldrel (arm64): mrf2d_1.0.tgz, r-release (x86_64): mrf2d_1.0.tgz, r-oldrel (x86_64): mrf2d_1.0.tgz
Old sources: mrf2d archive


Please use the canonical form to link to this page.