crackplot(crackrec) | R Documentation |
Adds detected crackpaths and lines which connect the start and end points of the paths to an image.
crackplot(crackpaths,cracks,cex.points=0.3,lwd.lines=2,col.points="red", col.lines="yellow")
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. |
Christine Mueller cmueller@mathematik.uni-kassel.de
rbmp
, threshold.msi
, shadow.remove
, medianfilter
, crackrec
## 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)