plotBD: Visualization of posterior boundary estimates and data

Description Usage Arguments Value References Examples

Description

Produces plots of image data, posterior boundary estimates,
and 95

Usage

1
plotBD(fitted.image, plot.type)

Arguments

fitted.image

An object containing the
output of either fitBinImage or fitContImage.

plot.type

takes values 1, 2 or 3:
1 to plot the data only;
2 to plot the estimate and 95% uniform credible bands;
and 3 to plot the data with the estimated boundary overlaid.

Value

There is no output to console; plotBD produces plots.

References

Li, M. and Ghosal, S.(2015) "Bayesian Detection of Image Boundaries." arXiv 1508.05847.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
## Not run: 
set.seed(12345)
gamma.fun = ellipse(a = 0.35, b = 0.25)
bin.obs = par2obs(m = 100, pi.in = 0.5, pi.out = 0.2,
 design = 'J', center = c(0.5,0.5), gamma.fun)
bin.fit = fitBinImage(image = bin.obs, nrun=1000, nburn=1000,
 J=10, ordering='I', slice = FALSE, outputAll=FALSE)
par(mfrow = c(1,3))
plotBD(bin.fit, 1)
plotBD(bin.fit, 2)
plotBD(bin.fit, 3)

## End(Not run)

Example output



BayesBD documentation built on May 1, 2019, 10:17 p.m.