Device for performing an automated seamless main corneal incision, comprising a
machine operating arm and a scalpel (1) installed on the
machine operating arm, wherein the
machine operating arm comprises a clamping device (2) for clamping the scalpel (1) and a drive arm for driving the clamping device (2) to oscillate, wherein the drive arm is provided with a first
linear motor (3) and a second
linear motor (4), wherein the clamping device (2) is provided with a third
linear motor (5), characterized by that the device is designed to perform the automated seamless corneal main incision according to a method comprising the following steps: Step 1: two eye images are taken using a
microscope camera
system with a
vertical shift in the
millimeter range (a); Step 2: each image is preprocessed, converted into a
grayscale image, and the first image is subjected to vertex detection to obtain a plurality of candidate vertices and obtain the coordinates of the vertices; Step 3: a plurality of vertices are centered and R j is the
radius to detect black and white points relative to the vertices, and the
black point is located in the white pixel area of the vertex and the
white point is located in the black pixel area of the vertex, and the pixel
gray level of the
black point is < 0.5 and the pixel
gray level of the
white point is > 0.5, then the vertex is the scalpel point P' i , and the calculation formula for the position of the black dot and the white dot is as follows: X blacki = ∑ j ∈ R j ( 1 − I ( X j . Y j ) ) Y blacki = ∑ j ∈ R j ( 1 − I ( X j . Y j ) ) Y j ∑ j ∈ R j ( 1 − I ( X j . Y j ) ) X whitei = ∑ j ∈ R j ( 1 − I ( X j . Y j ) ) Y whitei = ∑ j ∈ R j ( 1 − I ( X j . Y j ) ) Y j ∑ j ∈ R i ( 1 − I ( X j . Y j ) ) R j ⇒ [ (X j − X i ) 2 + (Y j − Y i ) 2 ≤ range 2 ] including X blacki and Y blacki the coordinate values of the
black point, X whitei and Y whitei are the coordinate values of the
white point, X j and Y j are the respective coordinates of all pixels in the area of the corner point as the center and R j as
radius, I is the gray value of the point, range is the maximum value of the selected
radius and X i and Y i are the coordinate values of the scalpel point P' i ; Step 4: the P' iof the first image is adjusted to the second image to achieve a pixel distance between the adjustment points P'' i , P' i and P'' i to obtain; Step 5: The formula for calculating the depth of the scalpel point is as follows: z ′ = ( r Δ r + 1 ) a where r is the distance between the scalpel point P' i and the
magnification center of the
microscope, and Δr is the pixel distance between P' i and P'' i , which is called
parallax; Step 6: the position and
relative depth of the scalpel (1) are obtained according to the calculation, and the position of the iris is determined and the
cutting position is positioned at the point on the edge of the iris closest to the
pupil center; Step 7: the machine operating arm controls the movement of the scalpel (1) along the set
cutting path.