Skip to main content
. 2016 Mar 4;6:22534. doi: 10.1038/srep22534

Table 1. Detailed steps for the object recognition and trapping.

Step 1 Initialize Image Inline graphic, t = 0.
Step 2 Capture an image containing the nanoknife and take it as the template Inline graphic. Then, calculate and initialize the position of template T: Inline graphic.
Step 3 Extract the nanoknife tip coordinate in the Template T: First, extract edge of nanoknife using Canny edge detection algorithm based on maximum local gradient value and judgement rules of adaptive histogram threshold; Second, extract all impossible corners of nanoknife using CSS detection algorithm in variable scale space along the above edge curve. Third, get nanoknife tip corner A in the template T: Inline graphic
Step 4 Recognize the nanoknife’s tip position Pt at time t: First, search in It from the last position Inline graphic, and match the template T to get the new matching position Inline graphic; Second, calculate the nanoknife’s tip position Pt in It. Since the nanoknife tip corner A in the template is constant, its position Pt in It can be represented by Bt + A, which is Inline graphic.
Step 5 Calculate the distance between nanoknife and target cell. The sample position S (Sx, Sy) can be obtained via the human-machine interface. So the distance Dt(Dx, Dy) can be represented by: Inline graphic, Inline graphic.
Step 6 Reduce search region in the original image, and update Inline graphic.
Step 7 If Dx < ε0 and Dy < ε0, where ε0 is an arbitrary small positive number, the recognition procedure stops; otherwise set t = t + 1 and go to step 4.