Disclosure of Invention
The technical problem to be solved by the invention is as follows: aiming at the technical problems in the prior art, the invention provides a pathological section double-objective lens adaptive scanning control method and system which are simple in implementation method, low in cost and power consumption, high in intelligent degree and capable of giving consideration to both scanning efficiency and image resolution.
In order to solve the technical problems, the technical scheme provided by the invention is as follows:
a pathological section double-objective lens adaptive scanning control method comprises the following steps:
step S01 integral scan: controlling to use a first-magnification objective lens to scan all areas of a target slice to obtain a slice panoramic image, and storing the obtained slice panoramic image and the zoomed image of the slice panoramic image according to a pyramid image storage format to form a multi-resolution pyramid image layer;
step S02, region of interest identification: acquiring the slice panoramic image from the multi-resolution pyramid image layer for image processing, and identifying and positioning an interested region;
step S03 local scan: and mapping the position coordinates of the region of interest in the multi-resolution pyramid image layer to actual physical coordinates to be scanned, determining a scanning motion path, controlling to use a second magnification objective lens to perform local scanning on the identified region of interest to obtain a corresponding local image, and storing the local image in a newly constructed image layer in the multi-resolution pyramid image layer according to a coordinate mapping relation to realize sparse storage, wherein the magnification of the second magnification objective lens is higher than that of the first magnification objective lens.
Further, the step of obtaining the slice panorama in step S01 includes:
step S101, preview: controlling the preview slice to obtain the outline of the whole area of the target slice;
step S102, focusing: controlling to focus multiple points on the target slice by using the first magnification objective lens, and fitting to obtain a focusing plane of the whole area of the target slice;
step S103, scanning: scanning the whole area of the target slice according to the fitting result of the focusing plane;
step S104, splicing: and splicing the scanning results obtained in the step S103 to obtain the slice panoramic image.
Further, in step S02, identifying and locating the region of interest by using a deep convolutional neural network, including:
s201, training: training a deep convolutional neural network by using a historical pathology digital panorama database;
s202, predicting: predicting whether each area in the slice panoramic image is a positive area by using a trained deep convolution neural network to obtain the prediction probability distribution of each area;
s203, identifying and positioning: and determining the region of interest according to the prediction probability distribution.
Further, the step S202 includes: acquiring the slice panoramic image stored in the pyramid image storage format in the step S01, wherein the original slice panoramic image is stored in the bottom layer, the original slice panoramic image is stored in each layer except the bottom layer after being zoomed, and the resolution of each layer is gradually reduced from bottom to top; performing foreground segmentation on a top-level picture in the slice panoramic image and then performing binarization to obtain a tissue foreground image; and indexing the image blocks corresponding to the bottom layer image layer in the slice panoramic image according to the pixel coordinates of the tissue foreground image, then sending the image blocks obtained by each index into the trained deep convolutional neural network as input to predict a positive probability value, and finally writing the corresponding positive probability value obtained by predicting the position of each pixel into the corresponding coordinates to form a predicted probability distribution map, namely a thermodynamic diagram.
Further, the step of step S03 includes:
step S301, determining a target area needing to be locally scanned by using a second magnification objective according to the positive probability value in each coordinate range in the region of interest;
step S302, mapping the determined target area into actual physical coordinates to be scanned, and determining a scanning motion path according to the actual physical coordinates obtained by mapping;
and step S303, controlling to use the second magnification objective lens to scan the target area according to the scanning motion path determined in the step S302.
Further, in the step S301, a prediction probability distribution map of the region of interest is obtained, that is, a thermodynamic diagram, and the coordinate ranges in the region of interest are sorted according to the probability according to the thermodynamic diagram; according to a preset positive region probability value threshold valueP thr And a maximum number threshold of positive regionsP num And finally, determining a target area needing to be locally scanned by using the second magnification objective lens.
Further, the step of step S302 includes:
step S321, determining the relative coordinate of the target area relative to the scanning starting point according to the magnification of the second magnification objective;
step S322, mapping the target area into the actual physical coordinate to be scanned according to the relative coordinate;
and step S323, replanning the scanned motion path according to the S-shaped scanning path so as to minimize the distance between the real physical coordinate of the current scanning point and the scanning origin point during each scanning, and determining to obtain the final scanning motion path.
Further, when the multi-resolution pyramid image layer is formed in step S01, specifically, storing an original slice panorama obtained by scanning with the objective lens with the first magnification at the bottom layer, sequentially reducing the original slice panorama according to a specified magnification, and then respectively storing the reduced original slice panorama to each corresponding image layer, wherein the resolution of each image layer is gradually reduced from bottom to top, so as to form an initial multi-resolution pyramid image layer; when the local image is stored in the multiresolution pyramid map layer in step S03, a new bottom layer is constructed in the initial multiresolution pyramid map layer, and the local image is stored in the newly constructed bottom layer according to the coordinate mapping relationship to realize sparse storage, so as to form a final sparse multiresolution pyramid map layer.
Further, the method further comprises the steps of obtaining a selection signal which is input from the outside and used for selecting the region of interest, determining corresponding coordinates under a current display layer in the multi-resolution pyramid image layer according to screen coordinates corresponding to the selection signal, and obtaining and displaying an image according to the determined coordinates.
A pathological section double-objective lens adaptive scanning control system comprises:
the integral scanning module is used for controlling the first-magnification objective lens to scan all areas of a target slice to obtain a slice panoramic image, and storing the obtained slice panoramic image and the zoomed image of the slice panoramic image according to a pyramid image storage format to form a multi-resolution pyramid image layer;
the interested region identification module is used for acquiring the slice panoramic image from the multi-resolution pyramid image layer to perform image processing and identifying and positioning an interested region;
and the local scanning module is used for mapping the position coordinates of the region of interest in the multi-resolution pyramid image layer to actual physical coordinates to be scanned, determining a scanning motion path, controlling a second magnification objective lens to locally scan the identified region of interest to obtain a corresponding local image, and storing the local image in a newly constructed image layer in the multi-resolution pyramid image layer according to a coordinate mapping relation to realize sparse storage, wherein the magnification of the second magnification objective lens is higher than that of the first magnification objective lens.
A pathological section double-objective lens adaptive scanning control system comprises a processor and a memory, wherein the memory is used for storing a computer program, the processor is used for executing the computer program, and the processor is used for executing the computer program so as to execute the method.
Compared with the prior art, the invention has the advantages that:
1. the invention simulates the actual analysis process of pathological sections, rapidly scans all the areas of the sections by using the low-magnification objective lens to obtain a section panoramic image, then performs image processing on the section panoramic image to identify and locate the region of interest, and then performs higher-magnification scanning on the identified and located region of interest by using the higher-magnification objective lens, so that the rapid scanning of the sections can be ensured, the requirements on system resources can be reduced, and simultaneously higher image resolution of the region of interest can be obtained, namely, the requirements on scanning efficiency, image resolution and system resources can be simultaneously considered, the whole scanning process can be free from manual participation, and the intelligent scanning analysis of the pathological sections can be realized.
2. On the basis of using the low-magnification objective lens to carry out integral fast scanning on the slice, the interested pathological area is automatically identified and positioned by combining the image processing and the deep learning method, so that the automatic switching of the high-magnification objective lens and the low-magnification objective lens can be realized in a matching way, the imaging magnification is adaptively adjusted, the observation and diagnosis process of the pathological slice is simulated, the double-objective lens imaging is automatically switched in the whole process, the requirement on system resources can be reduced under the condition of keeping fast scanning, the diagnosis requirement on the high-resolution pathological area is considered, and the pathological diagnosis process can be efficiently assisted and completed.
3. The invention further constructs a sparse multi-resolution pyramid image layer format to support an automatic and external input mode, and stores the high-magnification clear image acquired correspondingly in a sparse mode into the bottommost sparse image layer in the multi-resolution pyramid format, thereby being convenient for storing the local high-resolution image, being easy to display the local high-resolution image by combining a software front-end display interface, and simultaneously reducing the transmission of unnecessary image data, thereby efficiently completing the process from sparse acquisition and sparse storage to final sparse display of the local high-magnification clear image.
4. The invention further combines the high-magnification objective lens and the S-shaped scanning method to realize the quick secondary scanning of the interested region, the distance between the real physical coordinate of the current scanning point and the scanning origin is minimum during each scanning, the high image resolution of the interested region can be ensured, the scanning efficiency can be improved as much as possible, and the scanning efficiency and the comprehensive performance of the image resolution can be further improved.
Detailed Description
The invention is further described below with reference to the drawings and specific preferred embodiments of the description, without thereby limiting the scope of protection of the invention.
As shown in fig. 1 and 2, the method for controlling the pathological section double-objective adaptive scanning according to the embodiment includes the following steps:
step S01 integral scan: controlling to use a first magnification objective lens to scan all areas of a target slice to obtain a slice panoramic image, and storing the obtained slice panoramic image and the zoomed slice panoramic image according to a pyramid image storage format to form a multi-resolution pyramid image layer;
step S02, region of interest identification: acquiring a slice panoramic image from a multiresolution pyramid image layer for image processing, and identifying and positioning an interested region;
step S03 local scan: and mapping the position coordinates of the region of interest in the multi-resolution pyramid image layer to actual physical coordinates to be scanned, determining a scanning motion path, controlling to use a second magnification objective lens to perform local scanning on the identified region of interest to obtain a corresponding local image, and storing the local image in a newly constructed image layer in the multi-resolution pyramid image layer according to a coordinate mapping relation to realize sparse storage, wherein the magnification of the second magnification objective lens is higher than that of the first magnification objective lens.
In the actual analysis process of pathological sections, an analyst usually uses the low power objective lens to perform rough condition observation, and then uses the high power objective lens to perform careful observation on the region of interest. This embodiment simulates pathological section's actual analysis process, carry out the fast scan to sliced whole region through using low magnification objective earlier, obtain the section panorama, then carry out image processing to the section panorama, the region of interest is fixed out in the discernment, later use higher magnification objective to fix out the region of interest to the discernment again and carry out the scan of higher magnification, can realize objective self-adaptation regulation control, make both can guarantee sliced fast scan, can reduce the requirement to system resources again, can also compromise simultaneously and acquire the higher image resolution ratio of region of interest, can compromise simultaneously scanning efficiency, the requirement of image resolution ratio and system resources, and whole scanning process can need not artifical the participation, can realize pathological section's intelligent scanning analysis.
In the embodiment, the low-magnification objective lens is firstly adopted to rapidly scan the whole area of the whole slice, and the low-magnification objective lens is adopted in the process, so that the requirements on the precision and the like of the focusing module are not high, and the hardware cost can be effectively reduced.
In this embodiment, the step of obtaining the slice panorama in step S01 includes:
step S101, preview: controlling the preview slice to obtain the outline of the whole area of the target slice;
step S102, focusing: controlling to focus multiple points on the target slice by using a first-magnification objective lens, and fitting to obtain a focusing plane of the whole area of the target slice;
step S103, scanning: scanning the whole area of the target slice according to the fitting result of the focusing plane;
step S104, splicing: and splicing the scanning results obtained in the step S103 to obtain a slice panoramic image.
The above step S101 may be specifically implemented by using a preview camera to obtain the outline of the whole region when previewing the slice. The fast scan path can be determined by previewing the slice, and specifically, the fast scan path can be determined by the following method: avoid scanning from the top left origin of the slice, while from the starting point (x) with the foreground of the tissue image, based on the contour of the whole area0, y0) Scanning is started and the width W and height H of the scan are confirmed.
In step S102, after the first magnification objective lens is used to perform fast focusing on multiple points on the wafer, a polynomial fitting manner is used to fit and obtain a focusing plane of the entire region. The low-power objective lens is adopted in the focusing process, so that the requirements on the precision and the like of the focusing module are not high, and the hardware cost and the requirements on system resources can be reduced.
In the step S103, the whole area to be scanned is divided into W × H areas, and the motor moves according to the S-type scanning method, so as to obtain the scanning path as shown in fig. 3; and finishing the scanning process of the whole area of the slice according to the fitting result of the focusing plane and the preset focus value of each scanning area. The combination of the low-magnification objective lens and the S-shaped scanning method can realize the rapid scanning of the whole area of the slice.
In a specific application embodiment, the detailed steps of the overall scanning performed in step S01 are as follows: presetting relevant initial parameters of first-magnification objective scanning, and controlling a motor to start scanning by a system; previewing the slice with a preview camera, obtaining the outline of the whole area, and analyzing the image to obtain a fast scan path to confirm the starting point (x) from the foreground of the tissue image0, y0) Starting scanning, and confirming the width W and the height H of the scanning; fast focusing multiple points on the wafer by using a first-magnification objective lens, and obtaining a focusing plane of the whole area through polynomial fitting; dividing the whole area to be scanned into W multiplied by H areas, and moving a motor according to an S-shaped scanning method to obtain a scanning path; according to the result of the focusing plane fitting and the preset focus value of each scanning area, completing the scanning process of the whole area of the slice; and obtaining a digital pathological section panoramic image under the low-magnification objective lens after splicing.
In this embodiment, after the scanning in step S01, the sliced panorama is stored in a multi-resolution pyramid image storage format, where the multi-resolution pyramid image format is as shown in fig. 4, the original sliced panorama is stored in the bottommost layer, the original sliced panorama is sequentially reduced according to a specified magnification and then is stored in each layer except the bottommost layer, and the resolution of each layer is gradually reduced from bottom to top. By the multi-resolution pyramid image storage format, multi-resolution image data can be obtained, image display under different requirements can be conveniently met, and transmission of unnecessary image data can be reduced.
It is understood that, in step S01, the low-power objective lens may be controlled to adopt other scanning manners according to actual requirements, so as to perform overall fast scanning on the slice.
In step S02, the region of interest is specifically identified and located by using a deep convolutional neural network, so as to realize intelligent and accurate location of the pathological region of interest by using a deep learning method.
The specific steps of identifying and positioning the region of interest by adopting the deep convolutional neural network in the embodiment comprise:
s201, training: training a deep convolutional neural network by using a historical pathology digital panorama database;
s202, predicting: predicting whether each area in the slice panoramic image is a positive area by using the trained deep convolution neural network to obtain the prediction probability distribution of each area;
s203, identifying and positioning: and determining the region of interest according to the predicted probability distribution.
In this embodiment, a large number of historical pathological digital panoramas are used for data set production, as shown in fig. 5, a large number of historical pathological digital panoramas are collected, each pathological digital panoramas are stored according to a multi-resolution pyramid format, a top layer picture with low resolution is taken out for image processing, a tissue foreground picture is obtained and binarized to discard blank picture blocks, corresponding picture blocks located in bottom layer layers of the pyramid are indexed according to pixel coordinates of the binarized foreground picture, and then each picture block is cut into a corresponding data set. And training the deep convolutional neural network by using the manufactured data set, and testing the trained deep convolutional neural network to finally obtain the optimized deep convolutional neural network which accords with the required identification and positioning precision. The deep convolutional neural network has the function of predicting the probability of positive areas in the slice.
In the embodiment, a trained and optimized deep convolutional neural network is adopted to carry out pathological prediction on the whole region of the digital slice panoramic image acquired in the step S01 to obtain a positive region prediction probability distribution map, namely a thermodynamic map, which represents the probability of whether each image block is a positive region, wherein the deeper the color is, the higher the probability of the corresponding positive region is; as shown in fig. 6, a region of interest can be identified and located by using a thermodynamic diagram, a top-layer picture of the slice panorama is taken out for foreground segmentation, binarization is performed, a binarized tissue foreground map subjected to foreground segmentation is obtained, a blank background is discarded, unnecessary processing data amount is reduced, a corresponding image block of a bottom-layer picture layer of the slice panorama is indexed according to pixel coordinates of the foreground map, then the image block obtained by each index is input into a trained and optimized network for positive probability value prediction, and finally the corresponding positive probability value obtained by each pixel position prediction is written into corresponding coordinates to obtain the thermodynamic diagram.
On the basis of using the low-magnification objective lens to carry out overall fast scanning on the slices, the method is combined with image processing and deep learning methods, the interested pathological area is automatically identified and positioned, further local scanning can be realized by the identified and positioned interested area, automatic switching of the high-magnification objective lens and the low-magnification objective lens can be realized in a matched mode, the diagnosis process from overall pathological conditions to local high-definition pathological analysis is seen by simulation analysts from the low-magnification objective lens, full-flow automatic switching double-objective imaging is realized, under the condition of keeping fast scanning, the requirements on system resources are reduced, and meanwhile, the diagnosis requirements on the high-resolution pathological area are considered.
It is understood that other methods can be adopted to realize the identification and positioning of the region of interest according to actual requirements.
In this embodiment, after the region of interest is located, the high-magnification objective lens is used to perform local scanning on the pathological region of interest, so as to obtain a high-magnification clear pathological image. The specific steps of step S03 in this embodiment include:
step S301, determining a target area needing to be locally scanned by using a second magnification objective according to the positive probability value in each coordinate range in the region of interest;
step S302, mapping the determined target area into actual physical coordinates to be scanned, and determining a scanning motion path according to the actual physical coordinates obtained by mapping;
and step S303, controlling to use the second magnification objective lens to scan the target area according to the scanning motion path determined in the step S302.
In step S301 of this embodiment, a prediction probability distribution map of the region of interest is obtained, that isSequencing coordinate ranges in the region of interest according to probability for the thermodynamic diagram; according to a preset positive region probability value threshold valueP thr And a maximum number threshold of positive regionsP num And finally, determining a target area needing to be locally scanned by using the second magnification objective lens, so that local high-magnification scanning can be ensured only for the interested positive area.
In a specific application embodiment, the detailed step of step S301 includes:
when locating a pathological region of interest according to thermodynamic diagrams, the size of the thermodynamic diagrams corresponds to the size of the top-level picture in the slice panorama, and the thermodynamic diagrams are converted into one-dimensional positive region probability vectors containing coordinate information by pixel coordinates, which can be expressed as:
wherein,
representing pixels in a thermodynamic diagram
xCoordinates and
ya positive probability value vector in the coordinates of,
xis shown in the range of
x 1 ~x M ,
MIs the number of pixel columns in the thermodynamic diagram,
yis shown in the range of
y 1 ~ y N,
NFor the number of pixel rows in the thermodynamic diagram,
representing a vector transpose;
sequencing the interested regions according to the positive probability obtained by estimation from big to small, and obtaining a one-dimensional positive region probability vector after sequencing, namely:
wherein,
representing pixel coordinates after sorting from large to small according to positive region probability values
And
the following positive probability value vector is used,
indicated range the same as
xThe coordinates of the position of the object to be imaged,
indicated range the same as
yCoordinates;
according to the threshold value of the probability value of the preset positive areaP thr And a maximum number threshold of positive regionsP num And determining a positive area needing to be scanned by the objective lens with the second magnification, wherein the positive area can be specifically configured as follows: the probability value of the determined positive area is larger thanP thr And the maximum number is not more thanP num (ii) a The final area coordinate vector needing high-magnification objective lens scanning is obtained as follows:
wherein
k 1And
k 2is shown as
KUnder one coordinate
And
the index is set under the coordinate, and the index,
。
through the steps, the positive regions needing important attention can be automatically screened out according to the probability distribution of the positive regions, and the condition that unimportant regions are scanned with high magnification is avoided.
In this embodiment, the step S302 includes:
step S321, determining the relative coordinate of the target area relative to the scanning starting point according to the multiplying power of the second multiplying power objective;
step S322, mapping the target area into the actual physical coordinate to be scanned according to the relative coordinate;
and step S323, replanning the scanned motion path according to the S-shaped scanning path so as to minimize the distance between the real physical coordinate of the current scanning point and the scanning origin point during each scanning, and determining to obtain the final scanning motion path.
In the above steps of this embodiment, the second magnification objective lens and the S-type scanning method may be combined to implement fast secondary high-magnification scanning on the region of interest, and the distance between the real physical coordinate of the current scanning point and the scanning origin is the smallest during each scanning, so that not only the high image resolution of the region of interest can be ensured, but also the scanning efficiency can be improved as much as possible, and the scanning efficiency and the comprehensive performance of the image resolution can be further improved.
In a specific application embodiment, the detailed step of step S302 is:
firstly, according to the determined coordinate vector of the scanning area of the high-magnification objective lens
XY K Mapping to real physical coordinates to be scanned actually, wherein the widths and heights of real scanning areas to be scanned obtained by shooting with the preview camera are W and H as described in step S01, and correspond to the column number and row number of preview images obtained by shooting with the preview camera, such as N and M in step S01; the width and height of the pixel size (i.e. the width and height of each pixel) of the camera are n and m respectively, and the magnification of the high-power objective lens is B, so that the camera corresponds to the area coordinate in the thermodynamic diagram
The relative abscissa and ordinate corresponding to the scanning start point are obtained as:
then, a slice origin corresponding to the motor motion is obtained, and the real motor motion coordinate is:
a series of real motion coordinates can be obtained in the above manner as follows:
further replanning the motor motion path according to the scanning method of the motor S, taking the chessboard distance D from the coordinates to the origin as an index, wherein the chessboard distance D represents two coordinates
And
the sum of absolute values of the coordinate value differences of (a) is:
when the motor motion path is re-planned, the motor motion path is firstly planned
Minimum coordinates of D value from origin
Put it in the first place, then find the remaining coordinates and
and then the coordinate with the smallest D value
And the motion coordinate vector is placed at the second position, the motion coordinate vector optimally planned according to the motor motion path is obtained by analogy, and the distance between the real physical coordinate of the current scanning point and the scanning origin can be ensured to be minimum during each scanning according to the planned motion path, so that the scanning efficiency is improved as much as possible. The motion coordinate vector obtained by final planning is specifically as follows:
then according to the planned motion coordinate vector
And the system controls the motor to rapidly move to each positioned interested area, and uses the second high-magnification objective lens to scan the local high-magnification objective lens.
In this embodiment, after the step S03, the local high-magnification clear image obtained by scanning is stored in the multi-resolution pyramid image layer again, and during storage, the local image is stored in the newly constructed bottommost layer of the multi-resolution pyramid image layer according to the coordinate mapping relationship, so as to implement sparse storage, thereby forming a sparse multi-resolution pyramid image layer. Firstly, a bottommost layer is constructed in the original multi-resolution pyramid image layers, and a position obtained based on analysis and positioning is constructed
Corresponding relation exists with original thermodynamic diagram coordinate position
XY K According to the corresponding motion coordinates
Find the corresponding thermodynamic diagram
iA coordinate
And then mapping the pixel coordinates of the thermal image to the bottommost layer to obtain the position of the local high-magnification clear image at the bottommost layer, correspondingly cutting the local high-magnification clear image into tile image blocks, and storing the tile image blocks into the position corresponding to the bottommost layer to obtain the sparse multi-resolution pyramid image storage format. As shown in fig. 7, a slice panorama originally obtained by scanning with a first-magnification objective lens is stored according to a multi-resolution pyramid format to form an initial multi-resolution pyramid image layer; in order to store a local image obtained by scanning the second magnification objective lens, a new bottommost layer is constructed on the bottommost layer of the initial multi-resolution pyramid image layer, and then the local image obtained by scanning and collecting the second magnification objective lens is stored in the newly-built bottommost layer image layer according to the mapping relation of thermodynamic diagram coordinates, so that a sparse multi-resolution pyramid image storage format is formed. By adopting the storage format, the storage of the local high-resolution image can be facilitated, the local high-resolution image is easy to display by combining a software front-end display interface, and meanwhile, the transmission of unnecessary image data can be reduced.
In a specific application embodiment, software operation corresponding to the storage format of the sparse multi-resolution pyramid image capable of being displayed can be correspondingly realized at the display front end in a matching manner according to the self-defined storage format of the sparse multi-resolution pyramid image, so that the final double-objective lens adaptive magnification switching scanning analysis process is completed.
According to the invention, through intelligently positioning a pathological region of interest, adaptively adjusting imaging magnification, simulating an observation and diagnosis process of pathological sections, firstly scanning all regions of the whole pathological section by using a low-magnification objective lens, then quickly positioning an interested pathological region by using a deep learning method, and finally locally scanning the interested pathological region obtained by quick positioning by using a high-magnification objective lens, the requirements on system resources can be reduced under the condition of keeping quick scanning, meanwhile, the diagnosis requirements on a high-resolution pathological region are considered, and the pathological diagnosis process can be efficiently completed in an auxiliary manner.
In this embodiment, the method further includes obtaining a selection signal for selecting the region of interest, which is input from the outside, determining a corresponding coordinate of a current display layer in the multi-resolution pyramid image layer according to a screen coordinate corresponding to the selection signal, and obtaining and displaying an image according to the determined coordinate, so that a required image can be flexibly displayed according to the selection signal input from the outside, thereby implementing a manual operation mode.
Specifically, high-magnification images of other areas needing to be checked can be configured, the mode is switched to a manual mode, a mouse is used for clicking an imaging area of a low-magnification objective lens to be checked at the front end of a display interface, and corresponding screen coordinates are acquired
Obtaining the corresponding coordinates of the display layer positioned under the pyramid by utilizing the relative transformation relation between the screen coordinates and the interface coordinates
The number of layers different from the top layer is set as
t1, the number of layers differing from the bottom sparse layer is
t2, obtaining the coordinates corresponding to the top layer
Coordinates corresponding to the bottom sparse layer
Respectively, as follows:
wherein,
representing a power of 2 k, with scaling between the multi-resolution pyramid layers by 2.
Further, top level coordinates
Correspondingly obtaining the motion coordinate of the motor according to the transformation relation in the step S03
Correspondingly, the clear image acquired by high magnification is stored in the corresponding coordinate of the bottommost sparse layer
In the middle, the storage and updating of the sparse multiresolution pyramid images are completed.
According to the method, the automatic and external input mode can be supported by constructing the sparse multi-resolution pyramid image layer format, the high-magnification clear images acquired correspondingly are stored in the bottommost sparse image layer in the multi-resolution pyramid format in a sparse mode, and corresponding format analysis is carried out at the front end of interface display according to the corresponding self-defined sparse multi-resolution pyramid image layer format, so that the process from sparse acquisition and sparse storage to final sparse display of local high-magnification clear images can be efficiently completed.
This embodiment pathological section double objective self-adaptation scanning control system includes:
the integral scanning module is used for controlling the first-magnification objective lens to scan all areas of the target slice to obtain a slice panoramic image;
the interest area identification module is used for identifying and positioning the interest area in the panoramic picture of the slice;
and the local scanning module is used for controlling the second magnification objective lens to locally scan the identified interested region to obtain a corresponding local image, and the magnification of the second magnification objective lens is higher than that of the first magnification objective lens.
In this embodiment, the integral scanning module includes:
the preview unit is used for controlling the preview slice and acquiring the outline of the whole area of the target slice;
the focusing unit is used for controlling the first-magnification objective lens to focus multiple points on the target slice and fitting to obtain a focusing plane of the whole area of the target slice;
the scanning unit is used for scanning the whole area of the target slice according to the fitting result of the focusing plane;
and the splicing unit is used for splicing the scanning results obtained in the step S103 to obtain a slice panoramic image.
In this embodiment, the region of interest identification module identifies and locates the region of interest by using a deep convolutional neural network, and the region of interest identification module specifically includes:
the training unit is used for training the deep convolutional neural network by using the historical pathology digital panoramic map database;
the prediction unit is used for predicting whether each area in the slice panoramic image is a positive area by using the trained deep convolutional neural network to obtain the prediction probability distribution of each area;
and the identification positioning unit is used for determining the region of interest according to the prediction probability distribution.
In this embodiment, the local scanning module includes:
the first unit is used for determining a target area needing to be locally scanned by using a second magnification objective according to the positive probability value in each coordinate range in the region of interest;
the second unit is used for mapping the determined target area into actual physical coordinates to be scanned and determining a scanning motion path according to the actual physical coordinates obtained by mapping;
and a third unit for controlling the scanning of the target area using the second magnification objective lens according to the scanning motion path determined by the second unit.
In the embodiment, the prediction probability distribution map of the region of interest is obtained in the first unit, namely the thermodynamic diagram, and the coordinate ranges in the region of interest are sorted according to the probability according to the thermodynamic diagram; according to a preset positive region probability value threshold valueP thrAnd a maximum number threshold of positive regionsP num And finally, determining a target area needing to be locally scanned by using the second magnification objective lens.
The pathological section double-objective lens adaptive scanning control system and the pathological section double-objective lens adaptive scanning control method in the embodiment are in one-to-one correspondence, and have the same implementation principle and technical effect, and are not described in detail herein.
In other application embodiments, the pathological section double-objective adaptive scanning control system of the present invention may further include: the system comprises a processor and a memory, wherein the memory is used for storing a computer program, the processor is used for executing the computer program, and the processor is used for executing the computer program so as to execute the pathological section double-objective adaptive scanning control method.
The foregoing is considered as illustrative of the preferred embodiments of the invention and is not to be construed as limiting the invention in any way. Although the present invention has been described with reference to the preferred embodiments, it is not intended to be limited thereto. Therefore, any simple modification, equivalent change and modification made to the above embodiments according to the technical spirit of the present invention should fall within the protection scope of the technical scheme of the present invention, unless the technical spirit of the present invention departs from the content of the technical scheme of the present invention.