# NOT RUN {
file <- system.file("sample_img/balloon1.png", package = "Rvision")
balloon <- image(file)
changeColorSpace(balloon, "GRAY", in_place = TRUE)
bin <- balloon < 200
dst <- distanceTransform(bin)
plot(dst * round(65536 / 255))
# }
Run the code above in your browser using DataLab