crackplot(crackrec)R Documentation

crackplot

Description

Adds detected crackpaths and lines which connect the start and end points of the paths to an image.

Usage

crackplot(crackpaths,cracks,cex.points=0.3,lwd.lines=2,col.points="red",
col.lines="yellow") 

Arguments

crackpaths Output crackpaths of crackrec: list of matrices with two rows.
cracks Output cracks of crackrec: matrix with 6 rows and column number coinciding with the numbers of list elements of crackpaths where the last four columns contain the cordinates of the start and end points of the cracks.
cex.points Size of the plotted points of crackpaths.
lwd.lines Size of the plotted lines connecting start and end points of the cracks.
col.points Color of the plotted points of crackpaths.
col.lines Color of the plotted lines connecting start and end points of the cracks.

Author(s)

Christine Mueller cmueller@mathematik.uni-kassel.de

See Also

rbmp, threshold.msi, shadow.remove, medianfilter, crackrec

Examples

## Not run: 
mx<-rbmp("image.bmp")
result<-crackrec(mx)
image(1:dim(mx)[[1]],1:dim(mx)[[2]], mx, col=gray((1:32)/32))
crackplot(result$crackpaths, result$cracks)
## End(Not run)

[Package crackrec version 2.1.5 Index]