Semi-automatic image-analysis applied to the quantification of bone microstructure