A method of determining an indicator for the stability of a bone implant comprises providing a two- or three-dimensional image mage of a bone at a location where a bone implant is planned. Then determining a bone structural parameter, which is typically representative of trabecular bone texture at said location, from the two- or three-dimensional image, by a texture analysis of a two- or three-dimensional grey scale image in a region of interest at said location where the bone implant is planned. Finally, an indicator for the stability of the planned bone implant after implantation is determined from the bone structural parameter and from implant stability data.