This invention provides a method,
system, electronic device, and storage medium for displaying images of bone
grinding states, relating to the field of
image processing technology. It includes: establishing a three-dimensional model of a target bone based on a user's bone scan image, and obtaining the three-dimensional model data of the target bone; determining the position information of a first target registration point in the camera coordinate
system of a
surgical robot; determining an initial registration matrix based on the position information and the three-dimensional model data; determining a secondary registration matrix based on the initial registration matrix and a second target registration point, to obtain a target
pose matrix based on the secondary registration matrix; transforming the
bone prosthesis model into the coordinate
system of the three-dimensional model of the target bone based on the
pose matrix of the
bone prosthesis model; determining the
grinding state of the target
grinding point in the coordinate system of the three-dimensional model based on the distance from the target grinding point on the three-dimensional model to the
bone prosthesis model; and displaying the target grinding point on the three-dimensional model with a preset color corresponding to the grinding state.