CN115866395A - Mobile focusing method, scanning method and device of digital slice scanner - Google Patents

Mobile focusing method, scanning method and device of digital slice scanner Download PDF

Info

Publication number
CN115866395A
CN115866395A CN202111116450.3A CN202111116450A CN115866395A CN 115866395 A CN115866395 A CN 115866395A CN 202111116450 A CN202111116450 A CN 202111116450A CN 115866395 A CN115866395 A CN 115866395A
Authority
CN
China
Prior art keywords
positions
scanning
focusing
shooting
definition
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111116450.3A
Other languages
Chinese (zh)
Inventor
任思远
徐俊毅
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Deepmega Intelligent Technology Co ltd
Original Assignee
Suzhou Deepmega Intelligent Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou Deepmega Intelligent Technology Co ltd filed Critical Suzhou Deepmega Intelligent Technology Co ltd
Priority to CN202111116450.3A priority Critical patent/CN115866395A/en
Publication of CN115866395A publication Critical patent/CN115866395A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Microscoopes, Condenser (AREA)

Abstract

The application relates to a moving focusing method, a scanning method and a device of a digital slice scanner, wherein the moving focusing method comprises the following steps: the method comprises the steps of determining a Z-axis movement direction by calculating the definition of an overlapping area of adjacent shooting positions on a preset scanning path and determining a condition for confirming the reduction of the definition of the overlapping area, and then scanning the next position according to the determined Z-axis movement direction until the end to obtain a plurality of focusing positions. The scanning method comprises the following steps: and scanning according to the optimal focusing position obtained by the weighted average of the plurality of focusing positions. The method and the device use the overlapping area of the adjacent shooting positions in the moving focusing to calculate the change of the definition, so that a more accurate result can be obtained; the definition change of adjacent overlapping areas is compared to determine the definition reduction confirmation condition, the Z-axis movement direction is changed, the accurate focusing position can be obtained, unnecessary Z-axis movement is reduced, the efficiency is improved, and the problem that the accuracy and the efficiency cannot be considered in the conventional movement focusing process is solved.

Description

Mobile focusing method, scanning method and device of digital slice scanner
Technical Field
The present application relates to the field of digital slice scanning devices, and in particular, to a moving focusing method, a scanning method, and a scanning device for a digital slice scanner.
Background
With the development of the digital technology, the digital section technology is more and more widely applied, and in the medical field, the traditional pathological section can be digitized through a digital section scanner. The principle of digitization is to collect images of multiple visual fields by using a camera, and to splice the images to combine into a panoramic digital pathological section.
Before each field of view is acquired, the digital slice scanner needs to find the focus of each field of view, so that the image acquired by each field of view can be ensured to be clear. In the process of acquiring images by a digital slice scanner, the focusing of the images is a very key index, and the focusing effect directly influences the imaging definition of the images, thereby influencing the scanning quality of digital slices.
In the focusing method of the existing digital slice scanner, the image definition obtained by scanning and the scanning efficiency cannot be considered at the same time. For example, in order to improve the scanning efficiency, the number of focusing points is often reduced, but when the scanning position is out of a certain range of focusing points obtained in advance, the image sharpness cannot be ensured. If a plurality of focusing positions are obtained, a long time is required for focusing, but this reduces the efficiency of focusing.
Accordingly, there is a need for improvements in the art that overcome the deficiencies in the prior art.
Disclosure of Invention
The application provides a moving focusing method, a scanning method and a device of a digital slice scanner, which are used for solving the problem that in the focusing method of the digital slice scanner in the prior art, the image definition and the scanning efficiency cannot be considered at the same time.
In order to solve the technical problem, the technical scheme is as follows:
in a first aspect, a method for moving focus of a digital slice scanner is provided, the method comprising:
responding to the scanning triggering operation of a user, outputting a focusing control instruction, and enabling the image acquisition assembly to carry out moving shooting on the sample slice according to a preset scanning path; the preset scanning path comprises a plurality of shooting positions, an overlapping area is arranged between every two adjacent shooting positions, and the shooting positions are positions to be shot in a scanning area on the sample slice;
executing a position adjusting step, wherein the position adjusting step comprises outputting a position adjusting instruction along with the change of the shooting position so as to adjust the positions of the image acquisition assembly in the X-axis direction, the Y-axis direction and the Z-axis direction;
sequentially acquiring images of each shooting position acquired by the image acquisition assembly, and respectively determining the definition of the overlapping area of each two adjacent shooting positions in the corresponding images;
and for the shooting positions of the continuous preset number, determining the Z-axis moving direction of the image acquisition assembly in the moving shooting process according to the definition change of the overlapping area, and jumping to the execution position adjusting step until the scanning is finished to obtain a plurality of focusing positions in the scanning area.
Optionally, the determining, for a preset number of consecutive shooting positions, a Z-axis moving direction of the image capturing assembly in a moving shooting process according to the change of the definition of the overlapping area includes:
and outputting a Z-axis direction adjusting instruction in response to that the definition of the overlapping area in the images corresponding to the continuous preset number of shooting positions meets the definition reduction confirmation condition, so that the Z-axis moving direction of the image acquisition assembly is adjusted from the first direction to the second direction, wherein the first direction is opposite to the second direction.
Optionally, for a preset number of consecutive shooting positions, determining a Z-axis moving direction of the image capturing assembly in a moving shooting process according to the change of the definition of the overlapping area, further includes:
and in response to that the definition of the overlapping area does not meet the definition reduction confirmation condition in the images corresponding to the shooting positions of the continuous preset number, keeping the current Z-axis moving direction of the image acquisition assembly unchanged.
Optionally, the sharpness reduction confirmation condition is:
in a preset scanning section, the definition corresponding to the current shooting position is greater than a preset threshold value, and in a preset frame number after the current shooting position, for a continuous preset number of shooting positions, the definition of an overlapping area of adjacent shooting positions is that the definition of a next frame is reduced relative to that of a previous frame, wherein the preset scanning section is one of scanning paths on the preset scanning path.
Optionally, after the responding to that the definition of the overlap region satisfies the definition reduction confirmation condition in the preset number of consecutive shooting positions, the method further includes:
and for the preset scanning section, determining the Z-axis coordinate of the image acquisition assembly at the shooting position corresponding to the definition peak value as a current focusing position.
In a second aspect, a scanning method of a digital slice scanner is provided, the method comprising:
performing moving focusing by adopting the method of the first aspect to obtain a plurality of focusing positions in a sample slice scanning area;
and determining the optimal focusing positions corresponding to different positions to be scanned in the area to be scanned of the sample slice based on the plurality of focusing positions, and scanning the sample slice to obtain a panoramic digital slice image.
Optionally, the determining, based on the multiple focusing positions, an optimal focusing position corresponding to different scanning positions in the region to be scanned of the sample slice includes:
selecting a focusing position within a preset distance range taking the current position to be scanned as the center from the plurality of focusing positions;
calculating a weighted average value of the selected focusing positions;
and taking the weighted average value as the optimal focusing position of the current position to be scanned.
In a third aspect, there is provided a moving in-focus position of a digital slice scanner, the apparatus comprising:
the scanning trigger module is used for responding to the scanning trigger operation of a user and outputting a focusing control instruction so as to enable the image acquisition assembly to carry out moving shooting on the sample slice according to a preset scanning path; the preset scanning path comprises a plurality of shooting positions, an overlapping area is arranged between every two adjacent shooting positions, and the shooting positions are positions to be shot in a scanning area on the sample slice;
the position adjusting module is used for executing a position adjusting step, and the position adjusting step comprises the step of outputting a position adjusting instruction along with the change of the shooting position so as to adjust the positions of the image acquisition assembly in the directions of an X axis, a Y axis and a Z axis;
the overlapping area definition calculating module is used for sequentially acquiring the images of the shooting positions acquired by the image acquisition assembly and respectively determining the definition of the overlapping area of every two adjacent shooting positions in the corresponding images;
and the focusing position determining module is used for determining the Z-axis moving direction of the image acquisition assembly in the moving shooting process according to the definition change of the overlapping area for the continuous preset number of shooting positions, and jumping to the execution position adjusting step until the scanning is finished to obtain a plurality of focusing positions in the scanning area.
In a fourth aspect, there is provided a scanning apparatus for a digital slice scanner, the apparatus comprising:
a focusing module, configured to perform moving focusing by using the method of the first aspect to obtain a plurality of focusing positions in a sample slice scanning area;
an optimal focusing position determining module, configured to determine an optimal focusing position corresponding to different positions to be scanned in a region to be scanned of the sample slice based on the multiple focusing positions
And the image acquisition module is used for scanning the sample slice based on the optimal focusing position so as to obtain a panoramic digital slice image.
In a fifth aspect, an electronic device is provided, the apparatus comprising a processor and a memory; the memory has stored therein a program that is loaded and executed by the processor to implement the moving focus method of the digital slice scanner of the first aspect and/or the scanning method of the digital slice scanner of the second aspect.
In a sixth aspect, a computer-readable storage medium is provided, in which a program is stored, which, when being executed by a processor, is adapted to carry out the method of moving focus of the digital slice scanner of the first aspect and/or the scanning method of the digital slice scanner of the second aspect.
The beneficial effect of this application lies in: according to the moving focusing method, the definition of the overlapping area of adjacent shooting positions on the preset scanning path is calculated, the Z-axis movement direction is determined according to the definition change of the overlapping area in the corresponding images of the continuous preset number of shooting positions, and then the position adjusting step is executed again according to the determined Z-axis movement direction until the scanning is finished, so that a plurality of focusing positions are obtained. According to the method and the device, the Z-axis movement direction is determined according to the change of the definition of the overlapping area, so that unnecessary Z-axis movement can be reduced, the scanning efficiency is improved, images with higher definition can be obtained, and the problem that the image definition and the scanning efficiency cannot be considered in the prior art is solved.
The foregoing description is only an overview of the technical solutions of the present application, and in order to make the technical means of the present application more clearly understood and to be implemented in accordance with the content of the specification, the following detailed description is given with reference to the accompanying drawings and preferred embodiments of the present application.
Drawings
FIG. 1 is a flow chart of a method of moving focus of a digital slice scanner by one embodiment of the present application;
FIG. 2 is a schematic illustration of a capture position of a sample slice as provided by one embodiment of the present application;
FIG. 3 is a schematic illustration of adjacent capture positions of a sample slice as provided by one embodiment of the present application;
FIG. 4 is a diagram illustrating changes in sharpness of overlapping regions of adjacent frames in a scan path according to an embodiment of the present application;
FIG. 5 is a schematic illustration of different scan areas of a digital slice as provided by an embodiment of the present application;
fig. 6 is a flow chart of a scanning method of a digital slice scanner provided by an embodiment of the present application;
FIG. 7 is a block diagram of a moving focus device of a digital slice scanner provided by an embodiment of the present application;
fig. 8 is a block diagram of a scanning device of a digital slice scanner provided by an embodiment of the present application;
fig. 9 is a block diagram of an electronic device provided by an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the following detailed description of the embodiments of the present application is provided in conjunction with the accompanying drawings and examples. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
One embodiment of the present application provides a digital slice scanning system for implementing a moving focus method, a scanning method and an apparatus of a digital slice scanner, the digital slice scanning system comprising: optical microscope device, controlling means, actuating mechanism.
The optical microscope device comprises an object stage and an image acquisition assembly. Wherein, the objective table is used for bearing the sample section. The sample slice in this example is a tissue of a living body which is sliced. May be a pathological section of, for example, the heart.
And the image acquisition assembly is used for acquiring images at different shooting positions on a preset scanning path in a scanning area, and the images at the different shooting positions are spliced to finally form a panoramic digital slice image.
The panoramic digital slice image is a virtual image that contains all lesion information on the sample slice. The scanning area refers to an area to be scanned on the sample slice, wherein the preset scanning path comprises a plurality of shooting positions, and an overlapping area is formed between every two adjacent shooting positions. The image capturing component of this embodiment may be, for example, a camera, an objective lens, and the like, and the specific type of the image capturing component is not limited in this embodiment.
And a control device having a program installed therein, the program being configured to implement the moving focus method of the present application when executed.
The control device acquires the scanning area, presets a scanning path based on the corresponding scanning area, and outputs a focusing control instruction based on the preset scanning path so as to enable the image acquisition assembly to move in the X-axis, Y-axis and Z-axis directions to realize moving shooting. Then, in the moving shooting process, the definition of the overlapping area of the adjacent shooting positions collected by the image collection assembly in the corresponding image is calculated, and the moving direction of the image collection assembly on the Z axis is changed based on the change of the definition of the overlapping area. The control device of this embodiment may be, for example, a computer, an intelligent terminal, or the like, and the specific type of the control device is not limited in this embodiment.
And the driving mechanism is used for receiving the focusing control instruction sent by the control device and controlling the moving positions of the image acquisition assembly in the X-axis, Y-axis and Z-axis directions.
Wherein, the movement in the X-axis and Y-axis directions is a movement in a plane corresponding to the shooting position of the preset scanning area, optionally, the X-axis represents the transverse direction of the sample slice, and the Y-axis represents the longitudinal direction of the sample slice.
In this embodiment, the Z-axis represents the vertical direction of the sample slice, and the movement in the Z-axis direction is used to adjust the focal length.
In this embodiment, the control device may further include a display screen, and the display screen is a touch display screen. After the control device acquires the definition of the overlapping area of every two adjacent shooting positions in the corresponding image, different definition changes can be displayed through the display screen for the staff to check.
Fig. 1 is a flowchart of a moving focus method of a digital slice scanner according to an embodiment of the present application. The method is implemented by taking a control device in a scanning system as an execution main body, and as shown in fig. 1, the moving focusing method at least comprises the following steps 11-16:
and 11, responding to the scanning triggering operation of the user, outputting a focusing control instruction, and enabling the image acquisition assembly to perform moving shooting on the sample slice according to a preset scanning path.
Specifically, in this embodiment, the user may click "start scanning" on the display screen of the control device by operating the mouse, so as to implement the scanning trigger operation. Or, by knocking the keyboard, the scanning triggering operation is realized.
Fig. 2 is a schematic diagram of shooting positions of a sample slice according to an embodiment of the present application, and as shown in fig. 2, a preset scanning path of the embodiment includes a plurality of shooting positions, and an overlapping region is disposed between two adjacent shooting positions, where a shooting position is a position to be shot in a scanning region on a sample slice.
The moving shooting of the embodiment refers to controlling the moving positions of the image acquisition assembly in the directions of the X axis, the Y axis and the Z axis based on the preset scanning path so as to acquire images at different shooting positions on the preset scanning path.
In the embodiment, the image acquisition assembly receives and executes a scanning task, and the sample slice is subjected to moving shooting based on a preset scanning path.
Alternatively, the preset scanning path may be a straight line or a curved line according to different distribution positions of the sample slice space.
Step 12, executing a position adjusting step, wherein the position adjusting step comprises outputting a position adjusting instruction along with the change of the shooting position so as to adjust the position of the image acquisition assembly in the X-axis, Y-axis and Z-axis directions
Specifically, in the process of scanning a sample slice along a preset scanning path, the positions of the image acquisition assembly in the directions of an X axis, a Y axis and a Z axis are adjusted according to different shooting positions, wherein the movement in the directions of the X axis and the Y axis is the movement in a plane, the movement positions in the directions of the X axis and the Y axis correspond to the shooting position of the preset scanning path, and the image acquisition assembly can shoot the current shooting position in the corresponding position by adjusting the positions in the directions of the X axis and the Y axis.
In this embodiment, the Z-axis direction is a vertical direction, and the focal length is adjusted by adjusting the position in the Z-axis direction. The initial direction of the Z axis is a first direction, and the first direction may be, for example, a positive direction of the Z axis, or may also be a negative direction of the Z axis.
In the process of controlling the image acquisition assembly to move and shoot, the control device outputs a position adjusting instruction to enable the driving mechanism to drive the position of the image acquisition assembly in the X-axis direction and the Y-axis direction, enable the image acquisition assembly to move to the position corresponding to the position to be shot, and adjust the position in the Z-axis direction at the same time, so that the image acquisition assembly shoots the current position to be shot.
And step 13, sequentially acquiring the images of the shooting positions acquired by the image acquisition assembly, and respectively determining the definition of the overlapping area of each two adjacent shooting positions in the corresponding images.
Specifically, the image acquisition assembly moves along a preset scanning path for shooting, the control device sequentially acquires images of each shooting position acquired by the image acquisition assembly, and the definition of the overlapping area in the images of the corresponding two adjacent shooting positions is calculated respectively.
As shown in fig. 3, a schematic diagram of adjacent shooting positions is provided for an embodiment of the present application, where an image a and an image b are captured at two adjacent shooting positions, there is an overlapping area between the image a and the image b, the overlapping area is denoted as a1 in the image a, the overlapping area is denoted as b1 in the image b, the sharpness of a1 in the image a and the sharpness of b1 in the image b are calculated, and so on.
Optionally, the method for calculating the sharpness in this embodiment may be, for example:
first, the overlap region is calculated using a Brenner gradient function, which is calculated as D (f) = ∑ x ∑ y | f (x +1, y) -f (x, y) | 2 Wherein, f (x, y) refers to the brightness value of the pixel point with the coordinate (x, y), f (x +1, y) refers to the brightness value with the coordinate (x +1, y), and D (f) refers to the definition of the pixel point f.
Secondly, converting a scanned image into a gray image, performing convolution operation by Laplace, and calculating a standard deviation, wherein the value of the standard deviation represents definition.
For the calculation of the definition, other calculation methods may be adopted to calculate the definition of the image, which belong to the technologies known in the art and are not described herein again. The embodiment does not limit the method for calculating the image sharpness.
And step 14, determining the Z-axis moving direction of the image acquisition assembly in the moving shooting process according to the definition change of the overlapping area corresponding to the shooting positions in the continuous preset number.
Specifically, the present embodiment calculates the sharpness of the overlapping area in the corresponding image for each two adjacent shooting positions on the preset scanning path.
The present embodiment determines the Z-axis movement direction by:
and outputting a Z-axis direction adjusting instruction under the condition that the definition change meets the definition reduction condition so as to adjust the Z-axis moving direction of the image acquisition assembly.
In the case where the sharpness change does not satisfy the sharpness reduction condition, the Z-axis moving direction is determined to remain the current moving direction, and the process continues to step 12.
Optionally, the manner of determining whether the sharpness change satisfies the sharpness reduction confirmation condition in this embodiment is as follows:
in a preset scanning section, the definition corresponding to the current shooting position is larger than a preset threshold value, and in a preset frame number after the current shooting position, for the shooting positions of continuous preset number, the definition of the overlapping area of any adjacent shooting position is that the definition of the next frame is reduced relative to the definition of the previous frame, and then the definition change is judged to meet the definition reduction confirmation condition, otherwise, the definition reduction confirmation condition is not met.
The predetermined scanning segment refers to a scanning path on the preset scanning path.
Fig. 4 is a schematic diagram showing changes in the definition of the overlapping area on the scanning path according to an embodiment of the present application, as shown in fig. 4, in each predetermined scanning segment, the definition of the overlapping area has a peak, and after the peak is reached, the definition gradually decreases, and when the condition for confirming the decrease in the definition is satisfied, the definition is again increased by adjusting the moving direction of the Z axis until the peak is reached, and then decreases again, and this is repeated.
Optionally, the present embodiment adjusts a Z-axis moving direction of the image capturing assembly, for example, a current moving direction of the image capturing assembly in the Z-axis is a first direction, and when it is determined that the sharpness change satisfies the sharpness reduction confirmation condition, a Z-axis direction adjustment instruction is output to adjust the moving direction of the image capturing assembly in the Z-axis from the first direction to a second direction, while the moving directions of the image capturing assembly in the X-axis and the Y-axis remain unchanged.
Wherein the first direction is opposite to the second direction. For example, the first direction is positive along the Z-axis, and the second direction is negative along the Z-axis. Or the first direction is the negative direction of the Z axis, and the second direction is the positive direction of the Z axis.
Optionally, in this embodiment, for one of the scanning paths on the preset scanning path, if the definition reaches the peak value, and after the peak value is reached, the definitions of the consecutive preset number decrease relative to the peak value, then for the shooting positions of the consecutive preset number, the shooting position corresponding to the definition peak value is recorded, and the Z-axis coordinate of the image capturing component is a current focusing position.
Such as: the definitions of the overlapping areas of the first shooting position and the second shooting position are respectively marked as A and B, the definitions of the overlapping areas of the third shooting position and the fourth shooting position are respectively marked as C and D, the definitions of the overlapping areas of the fourth shooting position and the fifth shooting position are respectively marked as E and F, and the definitions of the overlapping areas of the fifth shooting position and the sixth shooting position are respectively marked as G and H8230.
And if A < B < C < D > E > F > G > H and the definition of the fourth shooting position reaches the peak value, recording the Z-axis position at the fourth shooting position as the focusing position.
And 15, judging whether the scanning is finished or not, if not, skipping to the step 12, and if so, executing the step 16.
Specifically, the completion of scanning refers to scanning the last shooting position on the scanning path.
And step 16, completing the moving focusing to obtain a plurality of focusing positions in the scanning area.
Optionally, when the scanning area includes a plurality of areas that are not connected to each other, the moving focusing method of the digital slice scanner described in steps 11 to 16 is performed on different scanning areas respectively.
Such as: fig. 5 is a schematic diagram of different scanning areas of a digital slice provided in an embodiment of the present application, where area C is a whole sample slice, and area a and area B include a plurality of areas that are not connected to each other, and the moving focus method of the digital slice scanner described in steps 11-16 is performed on area a and area B, respectively.
Fig. 6 is a flowchart of a scanning method of a digital slice scanner provided by an embodiment of the present application. The method comprises at least steps 21-22:
and step 21, focusing by adopting a moving focusing method of the digital slice scanner to obtain a plurality of focusing positions in the sample slice scanning area.
Optionally, the moving focus method of the digital slice scanner is the method described in step 11-step 16.
And step 22, determining the optimal focusing positions corresponding to different positions to be scanned in the area to be scanned of the sample slice based on the plurality of focusing positions, and scanning the sample slice to obtain a panoramic digital slice image.
Specifically, according to the plurality of focusing positions obtained by the moving focusing method of the digital slice scanner in steps 11 to 16, a weighted average value of the focusing positions within a preset distance range with the current position to be scanned as the center is selected as the optimal focusing position.
And selecting different optimal focusing positions according to different positions to be scanned, scanning the sample slice to obtain digital slice images corresponding to the different positions to be scanned, and finally forming a panoramic digital slice image.
In summary, in the moving focusing method provided in the embodiment of the present application, the definition of the overlapping area of the adjacent shooting positions on the preset scanning path is calculated, the Z-axis movement direction is determined according to the change of the definition of the overlapping area in the corresponding images of the shooting positions of the continuous preset number, and then the position adjustment step is executed again according to the determined Z-axis movement direction until the scanning is finished, so as to obtain a plurality of focusing positions. According to the method and the device, the Z-axis movement direction is determined according to the change of the definition of the overlapping area, so that unnecessary Z-axis movement can be reduced, the scanning efficiency is improved, images with higher definition can be obtained, and the problem that the image definition and the scanning efficiency cannot be considered in the prior art is solved.
According to the scanning method provided by the embodiment of the application, when focusing is carried out, the moving direction of the Z axis is determined in a moving focusing mode according to the change of the definition of the overlapping area of the adjacent shooting positions, the unnecessary movement of the Z axis is avoided, the scanning efficiency can be improved, and meanwhile, the focusing position can be accurately determined.
FIG. 7 is a block diagram of a mobile focusing device of a digital slice scanner provided by an embodiment of the present application. As shown in fig. 7, the apparatus includes at least the following modules: a scanning trigger module 701, a position adjustment module 702, a sharpness calculation module 703, and a focusing module 704.
The scanning trigger module 701 is used for responding to scanning trigger operation of a user and outputting a focusing control instruction so that the image acquisition assembly performs moving shooting on the sample slice according to a preset scanning path; the preset scanning path comprises a plurality of shooting positions, an overlapping area is arranged between every two adjacent shooting positions, and the shooting positions are positions to be shot in a scanning area on the sample slice;
a position adjusting module 702, configured to perform a position adjusting step, where the position adjusting step includes outputting a position adjusting instruction along with changes of the shooting position to adjust positions of the image capturing assembly in the X-axis, Y-axis, and Z-axis directions;
a definition calculating module 703, configured to sequentially obtain an image of each shooting position acquired by the image acquisition assembly, and respectively determine the definition of the overlapping area of each two adjacent shooting positions in the corresponding image;
a focusing position determining module 704, configured to determine, for a preset number of consecutive shooting positions, a Z-axis moving direction of the image capturing component in a moving shooting process according to the change of the definition of the overlapping area, and jump to the execution position adjusting step until scanning is finished, so as to obtain a plurality of focusing positions in the scanning area.
For related details, reference is made to the above embodiments of the moving focus method.
Fig. 8 is a block diagram of a scanning device of a digital slice scanner provided by an embodiment of the present application. The device at least comprises the following modules: a focusing module 801, a focusing position module 802 and an image acquisition module 803.
A focusing module 801, configured to perform moving focusing by using the method according to any one of claims 1 to 5, to obtain a plurality of focusing positions in a sample slice scanning area;
an optimal focusing position determining module 802, configured to determine, based on each of the multiple focusing positions, a focusing position corresponding to different positions to be scanned in a region to be scanned of the sample slice;
an image acquisition module 803 for scanning the sample slice based on the best focus position to obtain a panoramic digital slice image.
For details, reference is made to the above-described scanning method embodiments.
It should be noted that: the moving focusing device and the scanning device of the digital slice scanner provided in the above embodiments are only illustrated by the division of the above functional modules, and in practical applications, the above functions may be distributed by different functional modules according to needs. I.e. the moving focusing device of the digital slice scanner and the internal structure of the scanning device are divided into different functional modules to complete all or part of the above described functions.
Embodiments of the present invention further provide an electronic device, which has a moving focus function and/or a scanning function of a digital slice scanner. Fig. 9 is a block diagram of an electronic device provided in an embodiment of the present application, and as shown in fig. 8, the electronic device includes a processor 901 and a memory 902.
Processor 901 may include one or more processing cores such as: 4 core processors, 6 core processors, etc. The processor may be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field-Programmable gate array), PLA (Programmable logic array).
The memory 902 may include high-speed random access memory and may also include non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), at least one magnetic disk storage device, a memory device, or other volatile solid state storage device.
The memory of this embodiment stores a computer program that is executable on the processor, and the processor, when executing the computer program, may implement all or part of the implementation steps of the moving focus method and/or the scanning method related embodiments of the digital slice scanner of the present invention, and/or other contents described in the text.
Those skilled in the art will appreciate that fig. 9 is only one possible implementation manner of the control assembly in the embodiment of the present application, and other embodiments may include more or less components, or combine some components, or different components, and the embodiment is not limited thereto.
Optionally, the present application further provides a computer-readable storage medium, in which a program is stored, and the program is loaded and executed by a processor to implement the moving focusing method and/or the scanning method of the digital slice scanner.
The technical features of the embodiments described above may be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the embodiments described above are not described, but should be considered as being within the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present invention, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent application shall be subject to the appended claims.

Claims (11)

1. A method of moving focus for a digital slice scanner, the method comprising:
responding to scanning trigger operation of a user, outputting a focusing control instruction, and enabling an image acquisition assembly to carry out moving shooting on a sample slice according to a preset scanning path; the preset scanning path comprises a plurality of shooting positions, an overlapping area is formed between every two adjacent shooting positions, and the shooting positions are positions to be shot in a scanning area on the sample slice;
executing a position adjusting step, wherein the position adjusting step comprises the step of outputting a position adjusting instruction along with the change of the shooting position so as to adjust the positions of the image acquisition assembly in the X-axis direction, the Y-axis direction and the Z-axis direction;
sequentially acquiring the images of each shooting position acquired by the image acquisition assembly, and respectively determining the definition of the overlapping area of each two adjacent shooting positions in the corresponding images;
and for the shooting positions with the continuous preset number, determining the Z-axis moving direction of the image acquisition assembly in the moving shooting process according to the definition change, and jumping to the execution position adjustment step until the scanning is finished to obtain a plurality of focusing positions in the scanning area.
2. The method according to claim 1, wherein the determining the Z-axis movement direction of the image capturing assembly during the moving capture according to the sharpness variation for a consecutive preset number of the capturing positions comprises:
and outputting a Z-axis direction adjusting instruction in response to the condition that the definition of the overlapping area meets the definition reduction confirmation condition in the images corresponding to the continuous preset number of shooting positions, so that the Z-axis moving direction of the image acquisition assembly is adjusted from the first direction to the second direction, wherein the first direction is opposite to the second direction.
3. The method according to claim 1, wherein the determining a Z-axis moving direction of the image capturing assembly during the moving capturing according to the definition change of the overlapping area for a consecutive preset number of the capturing positions further comprises:
and in response to that the definition of the overlapping area does not meet the definition reduction confirmation condition in the images corresponding to the shooting positions of the continuous preset number, keeping the current Z-axis moving direction of the image acquisition assembly unchanged.
4. The method according to claim 2 or 3, wherein the sharpness reduction confirmation condition is:
in a preset scanning section, the definition corresponding to the current shooting position is greater than a preset threshold value, and in a preset frame number after the current shooting position, for a continuous preset number of shooting positions, the definition of an overlapping area of any adjacent shooting position is that the definition of a next frame is reduced relative to that of a previous frame, wherein the preset scanning section is one of scanning paths on the preset scanning path.
5. The method according to claim 4, wherein the responding to the resolution of the overlapping area satisfying the resolution reduction confirmation condition in a preset number of consecutive shooting positions further comprises:
and for the preset scanning section, determining the Z-axis coordinate of the image acquisition assembly at the shooting position corresponding to the definition peak value as a current focusing position.
6. A method of scanning by a digital slice scanner, the method comprising:
performing moving focusing by using the method of any one of claims 1 to 5 to obtain a plurality of focusing positions in the scanning area of the sample slice;
determining the optimal focusing positions corresponding to different positions to be scanned in the area to be scanned of the sample slice based on the plurality of focusing positions;
scanning the sample slice based on the best focus position to obtain a panoramic digital slice image.
7. The method of claim 6, wherein determining the optimal focusing position corresponding to different scanning positions in the region to be scanned of the sample slice based on the plurality of focusing positions comprises:
selecting a focusing position within a preset distance range taking the current position to be scanned as the center from the plurality of focusing positions;
calculating a weighted average value of the selected focusing positions;
and taking the weighted average value as the optimal focusing position of the current position to be scanned.
8. A mobile focus position for a digital slice scanner, the apparatus comprising:
the scanning triggering module is used for responding to the scanning triggering operation of a user and outputting a focusing control instruction so that the image acquisition assembly carries out moving shooting on the sample slice according to a preset scanning path; the preset scanning path comprises a plurality of shooting positions, an overlapping area is arranged between every two adjacent shooting positions, and the shooting positions are positions to be shot in a scanning area on the sample slice;
the position adjusting module is used for executing a position adjusting step, and the position adjusting step comprises the step of outputting a position adjusting instruction along with the change of the shooting position so as to adjust the positions of the image acquisition assembly in the directions of an X axis, a Y axis and a Z axis;
the overlapping area definition calculating module is used for sequentially acquiring the images of the shooting positions acquired by the image acquisition assembly and respectively determining the definition of the overlapping area of every two adjacent shooting positions in the corresponding images;
and the focusing position determining module is used for determining the Z-axis moving direction of the image acquisition assembly in the moving shooting process according to the definition change of the overlapping area for the continuous preset number of shooting positions, and jumping to the execution position adjusting step until the scanning is finished to obtain a plurality of focusing positions in the scanning area.
9. A scanning apparatus for a digital slice scanner, the apparatus comprising:
a focusing module for performing moving focusing by using the method of any one of claims 1 to 5 to obtain a plurality of focusing positions in the sample slice scanning area;
the optimal focusing position determining module is used for determining optimal focusing positions corresponding to different positions to be scanned in the area to be scanned of the sample slice based on the plurality of focusing positions;
and the image acquisition module is used for scanning the sample slice based on the optimal focusing position so as to obtain a panoramic digital slice image.
10. An electronic device, wherein the apparatus comprises a processor and a memory; the memory has stored therein a program that is loaded and executed by the processor to implement the moving focus method of the digital slice scanner of any of claims 1 to 5 and/or the scanning method of the digital slice scanner of any of claims 6-7.
11. A computer-readable storage medium, characterized in that the storage medium has stored therein a program which, when being executed by a processor, is adapted to carry out the moving focus method of a digital slice scanner according to any one of claims 1 to 5 and/or the scanning method of a digital slice scanner according to any one of claims 6 to 7.
CN202111116450.3A 2021-09-23 2021-09-23 Mobile focusing method, scanning method and device of digital slice scanner Pending CN115866395A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111116450.3A CN115866395A (en) 2021-09-23 2021-09-23 Mobile focusing method, scanning method and device of digital slice scanner

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111116450.3A CN115866395A (en) 2021-09-23 2021-09-23 Mobile focusing method, scanning method and device of digital slice scanner

Publications (1)

Publication Number Publication Date
CN115866395A true CN115866395A (en) 2023-03-28

Family

ID=85652305

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111116450.3A Pending CN115866395A (en) 2021-09-23 2021-09-23 Mobile focusing method, scanning method and device of digital slice scanner

Country Status (1)

Country Link
CN (1) CN115866395A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114858820A (en) * 2022-05-19 2022-08-05 华中科技大学 Multi-rotor scanning method and system for silk screen detection

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114858820A (en) * 2022-05-19 2022-08-05 华中科技大学 Multi-rotor scanning method and system for silk screen detection
CN114858820B (en) * 2022-05-19 2024-05-14 华中科技大学 Multi-sub scanning method and system for silk screen detection

Similar Documents

Publication Publication Date Title
US9894252B2 (en) Image processing apparatus, image pickup apparatus, image processing method, and storage medium for reducing noise of an image obtained by combining parallax images
US8648927B2 (en) Imaging device, imaging method and program storage medium
US8629915B2 (en) Digital photographing apparatus, method of controlling the same, and computer readable storage medium
CN1977526B (en) Image capture method and image capture device
US7725019B2 (en) Apparatus and method for deciding in-focus position of imaging lens
JP6137847B2 (en) IMAGING DEVICE AND IMAGING DEVICE CONTROL METHOD
JP5453573B2 (en) Imaging apparatus, imaging method, and program
US9477138B2 (en) Autofocus
JP5720275B2 (en) Imaging apparatus and imaging method
JP5374119B2 (en) Distance information acquisition device, imaging device, and program
JP6274794B2 (en) Information processing apparatus, information processing method, program, and image measurement apparatus
CN108387517B (en) Slice scanning method and system
JP2007072606A (en) Image processor and processing method
KR20130018330A (en) Imaging apparatus, image processing method, and recording medium for recording program thereon
US7957633B2 (en) Focus adjusting apparatus and focus adjusting method
US9046677B2 (en) Microscope system and autofocus method
JP2007206433A (en) Focusing apparatus, imaging apparatus, and control method
JP2008205774A (en) System, method and program for guiding photographing work
CN109272575B (en) Method for improving modeling speed of digital slice scanner
CN115866395A (en) Mobile focusing method, scanning method and device of digital slice scanner
US20130076886A1 (en) Automatic Focus and Sample Detection
JP2016051167A (en) Image acquisition device and control method therefor
JP2009058932A (en) User-aided auto-focus
US7339147B2 (en) System and method for automatic focusing of images
CN103529544A (en) Nano membrane thickness measuring instrument capable of automatically positioning and focusing

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination