The application discloses a
total knee replacement
surgery image inspection method and device. A CT image of a professional DCM, i.e. a CT image with a
metal rod, is read in, maximum and minimum gray scale values of the image are obtained, and more than 75% of the gray scale values are taken, which include the
metal rod and some scattered points. A maximum connected threshold is used to extract and remove points other than the
metal rod. At this time, the image only has the metal rod. The image is binarized, the number of
layers of the image, the height of the image and the space height of a layer are obtained, the number of
layers of the image within 10 mm is calculated, a center point is taken every 10 mm of the total number of
layers, the vectors of adjacent points are calculated, the error is obtained by subtracting the adjacent vectors, a reasonable range is defined, all errors within the range are qualified, and otherwise, the errors are unqualified. Therefore, the error rate of planning and
bone cutting navigation according to unqualified pictures in the later stage can be reduced, the leg bone of the picture is consistent with the leg bone of the patient, and the time of manual judgment is reduced.