The invention discloses a
sedimentary rock sample
nanoindentation test layering preprocessing method and
system, and the method comprises the steps: after the preparation of a
sedimentary rock sample is completed, carrying out local non-mean filtering to remove illumination interference, retaining the texture and
color difference of the
rock sample, separating image channels, extracting features to obtain multi-dimensional data, dividing image lines through k-means clustering, determining an original layer boundary, and then removing a pseudo layer; and then visual layering of the stratification line is completed. Through a coordinate resetting function, coordinate selection and
pairing of the pricking points and the
physical control points are completed, a two-dimensional affine model is constructed and solved, and a coordinate transformation relation is obtained and used for positioning an indentation measuring area. In order to correlate the colors of the images under the mirror and the macroscopic image, different types of images under the mirror are converted to 8-bit depth, corresponding
adaptation is completed, foreground and background are segmented,
adhesive particles are separated based on
Euclidean distance transformation and a
watershed method, qualified particles are obtained through filtering,
physical property parameters are imported, and a sample visual image is obtained. And an accurate basis is provided for measuring point selection of the
nanoindentation test.