hausdorffError: Hausdorff Error of boundary estimate

Description Usage Arguments Examples

View source: R/hausdorffError.R

Description

Utility function to calculate the Hausdorff error between true image boudnary and estimated image boundary in a simulated image.

Usage

1

Arguments

fit

the output of fitBinImage or fitContImage

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
set.seed(12345)
gamma.fun = ellipse(a = 0.35, b = 0.25)
norm.obs = parnormobs(m = 100, mu.in = 4, mu.out = 1, sd.in = 1.5, sd.out = 1, design = 'J',
 center = c(0.5,0.5), gamma.fun)
## Not run: 
norm.samp = fitContImage(norm.obs, NULL,NULL,.4, 1000, 0, 10,"I","I",rep(1,10000), FALSE, FALSE)
par(mfrow = c(1,3))
plotBD(norm.samp, 1)
plotBD(norm.samp, 2)
plotBD(norm.samp, 3)
hausdorffError(norm.samp)

## End(Not run)

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