The present invention discloses a method, device, medium, and equipment for determining the number of slice
layers in a three-dimensional image, relating to the field of three-dimensional display
imaging technology. The method includes: determining the number of left neighboring slice
layers N‑n and the number of right neighboring slice
layers N+n based on the initial number of slice layers N and the initial search range n; obtaining restored three-dimensional images corresponding to the number of layers N, N‑n, and N+n, capturing two-dimensional plane images of the restored three-dimensional image from different angles, and obtaining characteristic values for characterizing the quality of the restored three-dimensional
image based on the pixel distribution in the two-dimensional plane images at different angles; using the number of slice layers with the optimal characteristic value as the new initial number of slice layers, and repeating the operation until the optimal number of slice layers is obtained. By analyzing the pixel distribution in the two-dimensional plane images of the restored three-dimensional image captured at different angles, the quality of the restored three-dimensional image can be quantified more comprehensively and accurately, thereby obtaining the number of slices that maximizes the imaging
mechanical efficiency and achieves the best imaging effect.