# NOT RUN {
# The example below calculates the fractal dimension of 3D sliced image/s
# contained into folder/s that are placed into "source.dir".
# Then, a file named "res.rds" is saved into the "output" folder.
# The distance between sliced image is 10 px.
fct3D <- fract3D(dir = "source.dir",
dist.slice = 10,
box.size = c(1,2,4,8,16,32,64,128,256,512),
save.dir = "output/", save.name = "res")
fct3D$D # a data frame with the estimated fractal dimension
fct3D$raw.dat # the raw data from which fractal dimension was calculated
# }
Run the code above in your browser using DataLab