if (FALSE) {
# Not run:
library(BoneProfileR)
bone <- BP_OpenImage()
# or
path_Hedgehog <- system.file("extdata", "Erinaceus_europaeus_fem_2-1_small.png",
package = "BoneProfileR")
bone <- BP_OpenImage(file=path_Hedgehog)
bone <- BP_DetectBackground(bone=bone)
bone <- BP_DetectForeground(bone=bone)
bone <- BP_DetectCenters(bone=bone)
plot(bone, type="mineralized", show.grid=FALSE)
plot(bone, type="unmineralized", show.grid=FALSE)
plot(bone, type="section", show.grid=FALSE)
# Note that some parts of the section are concave but it does not give problems in the analysis
# For section with very strong concavity, it could be safer to use:
bone <- BP_DetectCenters(bone=bone, analysis="logistic", method="AccurateConvex")
plot(bone, type="mineralized", show.grid=FALSE)
plot(bone, type="unmineralized", show.grid=FALSE)
plot(bone, type="section", show.grid=FALSE)
}
Run the code above in your browser using DataLab