Summary of the invention
In view of this, the object of the embodiment of the present invention is the measuring method and the measurement mechanism that provide a kind of digital pathological section, so that the actual, measured dimension on digital pathological section image corresponding to certain section of line segment can be shown exactly, thus meet the demand that observer obtains actual, measured dimension in real time.
First aspect, embodiments provides a kind of measuring method of digital pathological section, and this measuring method comprises:
The positional information of the starting point that monitoring users is chosen on digital pathological section display interface and terminal, wherein, described digital pathological section is the digital picture by scanning rear acquisition to pathological section;
The pixel distance of described starting point and terminal is obtained according to the positional information of described starting point and terminal;
According to the reduction formula of the pixel distance of described starting point and terminal and pixel distance corresponding to described display interface and actual range, determine the actual range of described starting point and terminal;
Described display interface shows the actual range of described starting point and terminal.
In conjunction with first aspect, embodiments provide the first possible embodiment of first aspect, wherein, the described positional information according to described starting point and terminal obtains the pixel distance of described starting point and terminal, comprising:
According to computing formula
B=parseInt (Math.sqrt (squer (x2-x1)+squer (y2-y1))) calculates the pixel distance of described starting point and terminal, wherein, (x1, y1) is the coordinate of described starting point, (x2, y2) is the coordinate of described terminal, B is the pixel distance of described starting point and terminal, described parseInt is bracket function, and described Math.sqrt is evolution function, and described squer is for asking chi square function.
In conjunction with first aspect, embodiments provide the embodiment that the second of first aspect is possible, wherein, the positional information of the starting point that described monitoring users is chosen on digital pathological section display interface and terminal, comprising:
Real-time listening user is by the positional information of each point of process in mouse pointer or the touch-screen contact drag operation process in described display interface, using the positional information of the starting point that the positional information of the starting point of described drag operation is chosen as described user, using the positional information of the terminating point that the positional information of each point in described drag operation process is chosen as described user;
Or,
Monitoring users is by the positional information of each point of process in mouse pointer or the touch-screen contact drag operation process in described display interface, using the positional information of the starting point that the positional information of the starting point of described drag operation is chosen as described user, using the positional information of the terminating point that the positional information of halt final in described drag operation process is chosen as described user.
In conjunction with first aspect, embodiments provide the third possible embodiment of first aspect, wherein, according to the reduction formula of the pixel distance of described starting point and terminal and pixel distance corresponding to described display interface and actual range, determine the actual range of described starting point and terminal, comprising:
According to the reduction formula of the pixel distance of described starting point and terminal and pixel distance corresponding to described display interface and actual range
calculate the actual range of described starting point and terminal, wherein, A is the actual range of starting point and terminal, B is the pixel distance of starting point and terminal, a is the actual range of physics pathological section, b is the pixel wide of digital pathological section under maximum scan multiplying power, and rate is maximum scan multiplying power, and clay is current display multiplying power.
In conjunction with first aspect, embodiments provide the 4th kind of possible embodiment of first aspect, wherein, the described actual range showing described starting point and terminal on described display interface, comprising:
When the actual range of described starting point and terminal is less than 1000 microns, described display interface shows micron-sized described actual range and units of micrometers mark;
When the actual range of described starting point and terminal is more than or equal to 1000 microns, described micron-sized actual range is converted to millimetre-sized actual range; Show described millimetre-sized actual range and millimeter unit markings.
Second aspect, the embodiment of the present invention additionally provides a kind of measurement mechanism of digital pathological section, and this measurement mechanism comprises:
The position information acquisition module of starting point and terminal, the starting point chosen on digital pathological section display interface for monitoring users and the positional information of terminal, wherein, described digital pathological section is the digital picture by scanning rear acquisition to pathological section;
The pixel distance determination module of starting point and terminal, for obtaining the pixel distance of described starting point and terminal according to the positional information of described starting point and terminal;
The actual range determination module of starting point and terminal, for the reduction formula according to the pixel distance of described starting point and terminal and pixel distance corresponding to described display interface and actual range, determines the actual range of described starting point and terminal;
Actual range display module, for showing the actual range of described starting point and terminal on described display interface.
In conjunction with second aspect, embodiments provide the first possible embodiment of second aspect, wherein, the pixel distance determination module of described starting point and terminal comprises:
Pixel distance computing unit, for according to computing formula
B=parseInt (Math.sqrt (squer (x2-x1)+squer (y2-y1))) calculates the pixel distance of described starting point and terminal, wherein, (x1, y1) is the coordinate of described starting point, (x2, y2) is the coordinate of described terminal, B is the pixel distance of described starting point and terminal, described parseInt is bracket function, and described Math.sqrt is evolution function, and described squer is for asking chi square function.
In conjunction with second aspect, embodiments provide the embodiment that the second of second aspect is possible, wherein, the position information acquisition module of described starting point and terminal comprises:
The location information acquiring unit of the first initial point and terminal, for the positional information of real-time listening user by each point of process in mouse pointer or the touch-screen contact drag operation process in described display interface, using the positional information of the starting point that the positional information of the starting point of described drag operation is chosen as described user, using the positional information of the terminating point that the positional information of each point in described drag operation process is chosen as described user;
Or,
The location information acquiring unit of the second starting point and terminal, for the positional information of monitoring users by each point of process in mouse pointer or the touch-screen contact drag operation process in described display interface, using the positional information of the starting point that the positional information of the starting point of described drag operation is chosen as described user, using the positional information of the terminating point that the positional information of halt final in described drag operation process is chosen as described user.
In conjunction with second aspect, embodiments provide the third possible embodiment of second aspect, wherein, the actual range determination module of described starting point and terminal comprises:
The actual distance calculation unit of starting point and terminal, for the reduction formula according to the pixel distance of described starting point and terminal and pixel distance corresponding to described display interface and actual range
calculate the actual range of described starting point and terminal, wherein, A is the actual range of starting point and terminal, B is the pixel distance of starting point and terminal, a is the actual range of physics pathological section, b is the pixel wide of digital pathological section under maximum scan multiplying power, and rate is maximum scan multiplying power, and clay is current display multiplying power.
In conjunction with second aspect, embodiments provide the 4th kind of possible embodiment of second aspect, wherein, described actual range display module comprises:
First actual range display unit, for when the actual range of described starting point and terminal is less than 1000 microns, described display interface shows micron-sized described actual range and units of micrometers mark;
Second actual range display unit, for when the actual range of described starting point and terminal is more than or equal to 1000 microns, is converted to millimetre-sized actual range by described micron-sized actual range; Show described millimetre-sized actual range and millimeter unit markings.
In the measuring method of the digital pathological section provided in the embodiment of the present invention and device, the starting point chosen by real-time listening user and the positional information of terminal, determine the pixel distance of starting point and terminal, then calculate the actual range of point-to-point transmission according to the pixel distance of the reduction formula between the pixel distance of starting point and terminal and actual range and the above-mentioned starting point determined and terminal and show, thus the actual, measured dimension that can show exactly on digital pathological section image corresponding to certain section of line segment, meet the demand that observer obtains actual, measured dimension in real time.
For making above-mentioned purpose of the present invention, feature and advantage become apparent, preferred embodiment cited below particularly, and coordinate appended accompanying drawing, be described in detail below.
Embodiment
For making the object of the embodiment of the present invention, technical scheme and advantage clearly, below in conjunction with accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.The assembly of the embodiment of the present invention describing and illustrate in usual accompanying drawing herein can be arranged with various different configuration and design.Therefore, below to the detailed description of the embodiments of the invention provided in the accompanying drawings and the claimed scope of the present invention of not intended to be limiting, but selected embodiment of the present invention is only represented.Based on embodiments of the invention, the every other embodiment that those skilled in the art obtain under the prerequisite not making creative work, all belongs to the scope of protection of the invention.
Consider in correlation technique no matter be utilize digital representation, still line segment formula representation is utilized, or utilize textual representation to be all not easy to observer to read actual, measured dimension on digital pathological section image corresponding to certain section of line segment in real time, the demand that observer obtains actual, measured dimension in real time cannot be met.Based on this, embodiments provide a kind of measuring method and measurement mechanism of digital pathological section, be described below by embodiment.
As shown in Figure 1, embodiments provide a kind of measuring method of digital pathological section, this measuring method comprises step S102-S108, specific as follows:
Step S102: the positional information of the starting point that monitoring users is chosen on digital pathological section display interface and terminal, wherein, above-mentioned digital pathological section is the digital picture by scanning rear acquisition to pathological section;
Step S104: the pixel distance obtaining above-mentioned starting point and terminal according to the positional information of above-mentioned starting point and terminal;
Step S106: according to the reduction formula of the pixel distance of above-mentioned starting point and terminal and pixel distance corresponding to above-mentioned display interface and actual range, determine the actual range of above-mentioned starting point and terminal;
Step S108: the actual range showing above-mentioned starting point and terminal on above-mentioned display interface.
Wherein, in practical operation, first slice scanner is utilized to scan extracting from sufferer the pathological section obtained, by pathological section digitizing, then digitized slice of data is stored as classification small images packet and relevant information thereof in the mode of hierarchical classification, as scanning multiple (common 40 and 20 times) of cutting into slices, the wide high level of section physics, the section wide high level of pixel (the wide height of pixel during maximum multiple), slice of data bag classification (i.e. maximum series), and case relevant information, finally by display terminal as computer shows digital pathological section.Display terminal is in the process of display digital pathological section, the scanning multiplying power of digital pathological section can be obtained, scan the Pixel Dimensions of digital pathological section corresponding to multiplying power, and the data such as the actual physical size of digital pathological section, the data such as Pixel Dimensions corresponding to the current display multiplying power of digital pathological section, current display multiplying power can also be obtained.On this basis, by the concrete operations of above-mentioned steps 102 to step 108, thus the actual measurement range data reading point-to-point transmission in real time can be realized.
The positional information of the terminal that the measuring method of the digital pathological section provided in the embodiment of the present invention is chosen by real-time listening user, determine point-to-point transmission pixel distance, then calculate the actual range of point-to-point transmission and show, thus the actual, measured dimension that can show exactly on digital pathological section image corresponding to certain section of line segment, meet the demand that observer obtains actual, measured dimension in real time.
Further, the above-mentioned positional information according to above-mentioned starting point and terminal obtains the pixel distance of above-mentioned starting point and terminal, comprising:
According to computing formula
B=parseInt (Math.sqrt (squer (x2-x1)+squer (y2-y1))) calculates the pixel distance of above-mentioned starting point and terminal, wherein, (x1, y1) is the coordinate of above-mentioned starting point, (x2, y2) is the coordinate of above-mentioned terminal, B is the pixel distance of above-mentioned starting point and terminal, above-mentioned parseInt is bracket function, and above-mentioned Math.sqrt is evolution function, and above-mentioned squer is for asking chi square function.
Concrete, the positional information of the starting point that above-mentioned monitoring users is chosen on digital pathological section display interface and terminal, comprising:
Real-time listening user is by the positional information of each point of process in mouse pointer or the touch-screen contact drag operation process in above-mentioned display interface, using the positional information of the starting point that the positional information of the starting point of above-mentioned drag operation is chosen as above-mentioned user, using the positional information of the terminating point that the positional information of each point in above-mentioned drag operation process is chosen as above-mentioned user;
Or,
Monitoring users is by the positional information of each point of process in mouse pointer or the touch-screen contact drag operation process in above-mentioned display interface, using the positional information of the starting point that the positional information of the starting point of above-mentioned drag operation is chosen as above-mentioned user, using the positional information of the terminating point that the positional information of halt final in above-mentioned drag operation process is chosen as above-mentioned user.
In embodiments of the present invention, the obtain manner of two kinds of end point location information is provided, a kind of be in real-time listening user drag operation process process each point positional information, using this positional information as end point location information, the now actual range of real-time display point-to-point transmission on display interface, the actual range namely shown is the drag operation change in process in above-mentioned display interface with mouse pointer or touch-screen contact; Another kind only has when mouse left click is determined or touch-screen contact determines, this is finally determined a little as end point location information, namely in drag operation process, actual range is not shown, only have when input validation instruction, display actual range, can select according to the actual requirements in actual mechanical process.
Concrete, according to the reduction formula of the pixel distance of above-mentioned starting point and terminal and pixel distance corresponding to above-mentioned display interface and actual range, determine the actual range of above-mentioned starting point and terminal, comprising:
According to the reduction formula of the pixel distance of above-mentioned starting point and terminal and pixel distance corresponding to above-mentioned display interface and actual range
calculate the actual range of above-mentioned starting point and terminal, wherein, A is the actual range of starting point and terminal, B is the pixel distance of starting point and terminal, and a is the actual range of physics pathological section, and b is the pixel wide of digital pathological section under maximum scan multiplying power, rate is maximum scan multiplying power, clay is current display multiplying power, and in addition, current display multiplying power clay can be obtained by following formula:
wherein, c is the pixel wide of digital pathological section under current display multiplying power.
The code of above-mentioned current display multiplying power is:
Clay=Rate*screenWidth*getZoom(!0)/Width
Rate is maximum scan multiplying power (40 or 20); ScreenWidth is the width of screen display scope, and width is the pixel wide of section; Getzoom (! 0) be developed width under the current enlargement ratio of section and the ratio value of screen width.
Consider when starting point and the actual range of terminal are larger, numerical value figure place is not easy to user more and reads, and based on this, the above-mentioned actual range showing above-mentioned starting point and terminal on above-mentioned display interface, comprising:
When the actual range of above-mentioned starting point and terminal is less than 1000 microns, above-mentioned display interface shows micron-sized above-mentioned actual range and units of micrometers mark;
When the actual range of above-mentioned starting point and terminal is more than or equal to 1000 microns, above-mentioned micron-sized actual range is converted to millimetre-sized actual range; Show above-mentioned millimetre-sized actual range and millimeter unit markings.
Such as, when the actual range calculated is 500 microns, then show 500 μm; When the actual range calculated is 5000 microns, then show 5mm.
The code of the actual range of above-mentioned starting point and terminal is:
C=ch>1000?(ch/1000).toFixed(2)+"mm":ch+"μm";
Wherein, ch is the length value of starting point and terminal, and unit is micron; Get 2 radix point divided by 1000 when ch value is greater than 1000, change millimeter value into.
Concrete, illustrate, the actual physics width of physics pathological section to be studied is 200 microns, the scanning multiplying power being 40 times with maximum multiple scans this physics pathological section and generates the classification small images packet of digital pathological section and store with on server, now under maximum multiplying power, the pixel wide of digital pathological section is 5000 pixels, when display interface shows, display multiplying power is amplified to 20 times, then under current display multiplying power, the pixel wide of digital pathological section is 2500 pixels, if when digital pathological section is measured, pixel distance between the starting point obtained and terminal is 1000 pixels, the pixel distance be then converted between maximum multiplying power 40 times of lower starting points and terminal is 2000 pixels, therefore, actual range between starting point and terminal is (200/5000) * (40/20) * 1000 is 80 microns, be presented at obtained the actual range of point-to-point transmission by above-mentioned computation process after on display interface, be convenient to user and read this measuring distance.
The application scenarios of the measuring method of digital pathological section as shown in Figure 2, in this application scenarios, first slice scanner 32 is utilized to scan physics section 31, obtain digital pathological section, then server 33 pairs of digital pathological section are utilized to carry out the storage of classification piecemeal and image logic process, finally by view data corresponding for digital pathological section input display terminal 34, digital pathological section is shown by display terminal 34, user can the actual range of the point-to-point transmission of display in reading displayed terminal 34 in real time, and now actual range is 259.20 μm.
In the measuring method of the digital pathological section provided in the embodiment of the present invention, the starting point chosen by real-time listening user and the positional information of terminal, determine the pixel distance of starting point and terminal, then calculate the actual range of point-to-point transmission according to the pixel distance of the reduction formula between the pixel distance of starting point and terminal and actual range and the above-mentioned starting point determined and terminal and show, thus the actual, measured dimension that can show exactly on digital pathological section image corresponding to certain section of line segment, meet the demand that observer obtains actual, measured dimension in real time.
As shown in Figure 3, embodiments provide a kind of measurement mechanism of digital pathological section, this measurement mechanism comprises:
The position information acquisition module 302 of starting point and terminal, the starting point chosen on digital pathological section display interface for monitoring users and the positional information of terminal, wherein, above-mentioned digital pathological section is the digital picture by scanning rear acquisition to pathological section;
The pixel distance determination module 304 of starting point and terminal, for obtaining the pixel distance of above-mentioned starting point and terminal according to the positional information of above-mentioned starting point and terminal;
The actual range determination module 306 of starting point and terminal, for the reduction formula according to the pixel distance of above-mentioned starting point and terminal and pixel distance corresponding to above-mentioned display interface and actual range, determines the actual range of above-mentioned starting point and terminal;
Actual range display module 308, for showing the actual range of above-mentioned starting point and terminal on above-mentioned display interface.
Concrete, the pixel distance determination module 304 of above-mentioned starting point and terminal comprises:
Pixel distance computing unit, for according to computing formula
B=parseInt (Math.sqrt (squer (x2-x1)+squer (y2-y1))) calculates the pixel distance of above-mentioned starting point and terminal, wherein, (x1, y1) be the coordinate of above-mentioned starting point, (x2, y2) be the coordinate of above-mentioned terminal, B is the pixel distance of above-mentioned starting point and terminal, above-mentioned parseInt is bracket function, above-mentioned Math.sqrt is evolution function, above-mentioned squer is for asking chi square function, it should be noted that, as (x1, y1) (x2, y2) be same point, then judge that this single measurement is invalid, do not do and show.
Concrete, the position information acquisition module 302 of above-mentioned starting point and terminal comprises:
The location information acquiring unit of the first initial point and terminal, for the positional information of real-time listening user by each point of process in mouse pointer or the touch-screen contact drag operation process in above-mentioned display interface, using the positional information of the starting point that the positional information of the starting point of above-mentioned drag operation is chosen as above-mentioned user, using the positional information of the terminating point that the positional information of each point in above-mentioned drag operation process is chosen as above-mentioned user;
Or,
The location information acquiring unit of the second starting point and terminal, for the positional information of monitoring users by each point of process in mouse pointer or the touch-screen contact drag operation process in above-mentioned display interface, using the positional information of the starting point that the positional information of the starting point of above-mentioned drag operation is chosen as above-mentioned user, using the positional information of the terminating point that the positional information of halt final in above-mentioned drag operation process is chosen as above-mentioned user.
Concrete, the actual range determination module 306 of above-mentioned starting point and terminal comprises:
The actual distance calculation unit of starting point and terminal, for the reduction formula according to the pixel distance of above-mentioned starting point and terminal and pixel distance corresponding to above-mentioned display interface and actual range
calculate the actual range of above-mentioned starting point and terminal, wherein, A is the actual range of starting point and terminal, B is the pixel distance of starting point and terminal, a is the actual range of physics pathological section, b is the pixel wide of digital pathological section under maximum scan multiplying power, and rate is maximum scan multiplying power, and clay is current display multiplying power.
Concrete, above-mentioned actual range display module 308 comprises:
First actual range display unit, for when the actual range of above-mentioned starting point and terminal is less than 1000 microns, above-mentioned display interface shows micron-sized above-mentioned actual range and units of micrometers mark;
Second actual range display unit, for when the actual range of above-mentioned starting point and terminal is more than or equal to 1000 microns, is converted to millimetre-sized actual range by above-mentioned micron-sized actual range; Show above-mentioned millimetre-sized actual range and millimeter unit markings.
Known based on above-mentioned analysis, compared with the measurement mechanism of the digital pathological section in correlation technique, the positional information of the terminal that the measurement mechanism that the embodiment of the present invention provides is chosen by real-time listening user, determine point-to-point transmission pixel distance, then calculate the actual range of point-to-point transmission and show, thus the actual, measured dimension that can show exactly on digital pathological section image corresponding to certain section of line segment, meet the demand that observer obtains actual, measured dimension in real time.
The measurement mechanism of the digital pathological section that the embodiment of the present invention provides can be the specific hardware on equipment or the software be installed on equipment or firmware etc.The device that the embodiment of the present invention provides, its technique effect realizing principle and generation is identical with preceding method embodiment, is concise and to the point description, and the not mentioned part of device embodiment part can with reference to corresponding contents in preceding method embodiment.Those skilled in the art can be well understood to, and for convenience and simplicity of description, the specific works process of the system of aforementioned description, device and unit, all with reference to the corresponding process in said method embodiment, can not repeat them here.
In embodiment provided by the present invention, should be understood that disclosed apparatus and method can realize by another way.Device embodiment described above is only schematic, such as, the division of described unit, be only a kind of logic function to divide, actual can have other dividing mode when realizing, again such as, multiple unit or assembly can in conjunction with or another system can be integrated into, or some features can be ignored, or do not perform.Another point, shown or discussed coupling each other or direct-coupling or communication connection can be by some communication interfaces, and the indirect coupling of device or unit or communication connection can be electrical, machinery or other form.
The described unit illustrated as separating component or can may not be and physically separates, and the parts as unit display can be or may not be physical location, namely can be positioned at a place, or also can be distributed in multiple network element.Some or all of unit wherein can be selected according to the actual needs to realize the object of the present embodiment scheme.
In addition, each functional unit in embodiment provided by the invention can be integrated in a processing unit, also can be that the independent physics of unit exists, also can two or more unit in a unit integrated.
If described function using the form of SFU software functional unit realize and as independently production marketing or use time, can be stored in a computer read/write memory medium.Based on such understanding, the part of the part that technical scheme of the present invention contributes to prior art in essence in other words or this technical scheme can embody with the form of software product, this computer software product is stored in a storage medium, comprising some instructions in order to make a computer equipment (can be personal computer, server, or the network equipment etc.) perform all or part of step of method described in each embodiment of the present invention.And aforesaid storage medium comprises: USB flash disk, portable hard drive, ROM (read-only memory) (ROM, Read-OnlyMemory), random access memory (RAM, RandomAccessMemory), magnetic disc or CD etc. various can be program code stored medium.
It should be noted that: in similar label and letter accompanying drawing below, represent similar terms, therefore, once be defined in an a certain Xiang Yi accompanying drawing, then do not need to define further it and explain in accompanying drawing subsequently, in addition, term " first ", " second ", " the 3rd " etc. only for distinguishing description, and can not be interpreted as instruction or hint relative importance.
Last it is noted that the above embodiment, be only the specific embodiment of the present invention, in order to technical scheme of the present invention to be described, be not intended to limit, protection scope of the present invention is not limited thereto, although with reference to previous embodiment to invention has been detailed description, those of ordinary skill in the art is to be understood that: be anyly familiar with those skilled in the art in the technical scope that the present invention discloses, it still can be modified to the technical scheme described in previous embodiment or can expect change easily, or equivalent replacement is carried out to wherein portion of techniques feature, and these amendments, change or replacement, do not make the essence of appropriate technical solution depart from the spirit and scope of embodiment of the present invention technical scheme.All should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should described be as the criterion with the protection domain of claim.