Summary of the invention
In view of this, the invention provides digital pathological section moving method and device, canAccurately mobile digital pathological section, ensures the accuracy that section is mobile, facilitates user to watchSection.
First aspect, the embodiment of the present invention provides a kind of digital pathological section moving method,Described method comprises:
Obtain the pixel chi of digital pathological section corresponding to the current demonstration multiplying power of display interfaceVery little;
Described in calculating according to the Pixel Dimensions of default moving ratio and described digital pathological sectionThe unit of numeral pathological section moves pixel distance;
Obtain the moving direction of described digital pathological section;
Move pixel distance and described digital pathology is cut according to the unit of described digital pathological sectionThe moving direction of sheet moves described digital pathological section.
In conjunction with first aspect, the embodiment of the present invention provides first aspect the first possible realityExecute mode, wherein, the moving ratio that described basis is default and the picture of described digital pathological sectionThe unit that element size is calculated described digital pathological section moves pixel distance, comprises;
The unit that calculates described digital pathological section by formula s=w*k moves pixel distance,Wherein, s represents that the unit of described digital pathological section moves pixel distance, described in w representsLength pixel value or the width pixel value of numeral pathological section, k represents described default movingMoving ratio.
In conjunction with first aspect, the embodiment of the present invention provides first aspect the second possible realityExecute mode, wherein, the described unit according to described digital pathological section move pixel distance andThe moving direction of described digital pathological section moves described digital pathological section, comprising:
According to the unit of described digital pathological section move pixel distance, described digital pathology is cutThe current display centre of the moving direction of sheet and described digital pathological section determines that described numeral is sickDisplay centre after reason section is mobile;
Display centre and described display interface pair after moving according to described digital pathological sectionThe indication range of answering is determined the demonstration border after described digital pathological section moves;
Display centre and described digital pathological section after moving according to described digital pathological sectionDemonstration border after movement loads described digital pathological section.
In conjunction with first aspect, the embodiment of the present invention provides first aspect the third possible realityExecute mode, wherein, described in obtain the moving direction of described digital pathological section, comprising:
According to the moving direction of determining described digital pathological section from user's move.
In conjunction with first aspect, first aspect the first in the third possible embodimentMethod described in any one, the embodiment of the present invention provides first aspect the 4th kind of possible realityExecute mode, wherein, moving pixel distance and institute according to the unit of described digital pathological sectionThe moving direction of stating digital pathological section also comprises after moving described digital pathological section:
Determine that according to the total mobile pixel distance of described digital pathological section described digital pathology cutsThe actual displacement of sheet also shows.
Second aspect, the embodiment of the present invention provides a kind of digital pathological section mobile device,Described device comprises:
Pixel Dimensions acquisition module is corresponding for obtaining the current demonstration multiplying power of display interfaceThe Pixel Dimensions of numeral pathological section;
Unit moves pixel distance computing module, for according to default moving ratio and described inThe unit that the Pixel Dimensions of numeral pathological section calculates described digital pathological section moves pixel distanceFrom;
Moving direction acquisition module, for obtaining the moving direction of described digital pathological section;
Section mobile module, for moving pixel distance according to the unit of described digital pathological sectionFrom moving described digital pathological section with the moving direction of described digital pathological section.
In conjunction with second aspect, the embodiment of the present invention provides second aspect the first possible realityExecute mode, wherein, described unit moves pixel distance computing module and comprises;
Computing unit, for calculating the unit of described digital pathological section by formula s=w*kMobile pixel distance, wherein, s represents that the unit of described digital pathological section moves pixel distanceFrom, w represents length pixel value or the width pixel value of described digital pathological section, k tableShow described default moving ratio.
In conjunction with second aspect, the embodiment of the present invention provides second aspect the second possible realityExecute mode, wherein, described section mobile module comprises:
Display centre determining unit, moves picture for the unit according to described digital pathological sectionThe moving direction of element distance, described digital pathological section and described digital pathological section currentDisplay centre is determined the display centre after described digital pathological section moves;
Show border determining unit, for the demonstration after moving according to described digital pathological sectionCenter and indication range corresponding to described display interface determine that described digital pathological section movesAfter demonstration border;
Section loading unit, for the display centre after moving according to described digital pathological sectionDemonstration border after moving with described digital pathological section loads described digital pathological section.
In conjunction with second aspect, the embodiment of the present invention provides second aspect the third possible realityExecute mode, wherein, described moving direction acquisition module comprises:
Moving direction determining unit, determines described number for basis from user's moveThe moving direction of word pathological section.
In conjunction with second aspect, second aspect the first in the third possible embodimentDevice described in any one, the embodiment of the present invention provides second aspect the 4th kind of possible realityExecute mode, wherein, described device also comprises:
Actual displacement display module, for according to total movement of described digital pathological sectionPixel distance is determined the actual displacement of described digital pathological section and is shown.
In the embodiment of the present invention, because the unit that can calculate digital pathological section movesPixel distance, and move pixel distance mobile digital pathological section according to unit, therefore pass throughDigital pathological section moving method in the embodiment of the present invention and device can not rely on user and existOperating distance mobile digital pathological section on screen, reaches micro-mobile digital pathological sectionEffect, thereby mobile digital pathological section accurately ensures the accuracy that section is mobile,Facilitate user to watch section.
Detailed description of the invention
For making object, technical scheme and the advantage of the embodiment of the present invention clearer, below willIn conjunction with accompanying drawing in the embodiment of the present invention, to the technical scheme in the embodiment of the present invention carry out clear,Intactly describe, obviously, described embodiment is only the present invention's part embodiment,Instead of whole embodiment. The invention process of describing and illustrating in common accompanying drawing hereinThe assembly of example can be arranged and design with various configuration. Therefore, to attachedThe detailed description of the embodiments of the invention that provide in figure is not intended to limit claimed basisScope of invention, but only represent selected embodiment of the present invention. Based on reality of the present inventionExecute example, the institute that those skilled in the art obtain under the prerequisite of not making creative workThere are other embodiment, all belong to the scope of protection of the invention.
Consider that prior art is that the operating distance on screen calculates digital pathology according to userThe mobile pixel value of section, and the operating distance of user on screen manually determined by user,There is larger uncertainty, cause the accuracy that in prior art, digital pathological section movesBe difficult to ensure, cannot meet the demand that user accurately moves, bring not for user watches sectionJust, the invention provides digital pathological section moving method and device, can accurately moveNumeral pathological section, ensures the accuracy that section is mobile, facilitates user to watch section. BelowBe described in detail in conjunction with the embodiments.
The digital pathological section side of movement providing with reference to the embodiment of the present invention as shown in Figure 1Method, the method comprises the following steps:
Step 102, obtains the digital pathological section corresponding to current demonstration multiplying power of display interfacePixel Dimensions;
Step 104, according to the Pixel Dimensions meter of default moving ratio and digital pathological sectionThe count unit of word pathological section moves pixel distance;
Step 106, obtains the moving direction of digital pathological section;
Step 108, moves pixel distance and digital pathology according to the unit of digital pathological sectionThe moving direction mobile digital pathological section of section.
In the embodiment of the present invention, because the unit that can calculate digital pathological section movesPixel distance, and move pixel distance mobile digital pathological section according to unit, therefore pass throughDigital pathological section moving method in the embodiment of the present invention can not rely on user on screenOperating distance mobile digital pathological section, reach the effect of micro-mobile digital pathological section,Thereby accurately mobile digital pathological section, ensures the accuracy that section is mobile, facilitates userWatch section.
Those skilled in the art should know, in practical operation, first utilize slice scanner to fromSufferer place extracts the pathological section obtaining and scans, and the digitlization of cutting into slices, then by numeralThe slice of data of changing is stored in the mode of hierarchical classification, finally as aobvious in computer by display terminalRegistration word pathological section. Display terminal, showing in the process of digital pathological section, can obtainThe pixel of digital pathological section corresponding to the scanning multiplying power of peek word pathological section, scanning multiplying powerSize, and the data such as the actual physical size of digital pathological section, can also obtain numeralThe data such as the Pixel Dimensions that the current demonstration multiplying power of pathological section, current demonstration multiplying power are corresponding.On this basis, can carry out above-mentioned steps 102 to step 108 to digital pathological section graspsDo, thus mobile digital pathological section.
Step 102, obtains the digital pathological section corresponding to current demonstration multiplying power of display interfacePixel Dimensions, if current demonstration multiplying power is 10 times, the now pixel chi of digital pathological sectionVery little is length 6,000,000 pixels, height 4,000,000 pixels. Those skilled in the art should know, whenThe Pixel Dimensions of digital pathological section corresponding to front demonstration multiplying power can be from digital pathological sectionIn packet, transfer and obtain.
Step 104, according to the Pixel Dimensions meter of default moving ratio and digital pathological sectionThe count unit of word pathological section moves pixel distance, can pass through following process implementation: logicalCross the unit that formula s=w*k calculates digital pathological section and move pixel distance, wherein, s tableThe unit of registration word pathological section moves pixel distance, the length of w representative digit pathological sectionPixel value or width pixel value, k represents above-mentioned default moving ratio. Particularly, forReach the accurately effect of mobile digital pathological section of trace, in the present embodiment, get rid of userThe manual factor at the enterprising line operate of screen, by setting default moving ratio unit of accountMobile pixel distance, moves pixel distance trace mobile digital pathological section according to unit. OneIn planting preferred embodiment, moving ratio k is 0.01, and in this case, unit movesPixel distance s equals length pixel value/width pixel of centesimal digital pathological sectionValue. Can understand, in the time that digital pathological section moves along its length, unit moves pixelEqual the length pixel value of centesimal digital pathological section apart from s, when digital pathology is cutWhen sheet broad ways moves, unit moves pixel distance s and equals centesimal numeral diseaseThe width pixel value of reason section.
Further, the Pixel Dimensions of the above-mentioned digital pathological section of mentioning, i.e. digital pathologyLength pixel value/width pixel value of section, all refers to the number under current demonstration multiplying powerValue. In the time that the demonstration multiplying power of digital pathological section changes, the length of digital pathological sectionPixel value/width pixel value also can change. But, because moving ratio k is fixed value,Therefore in the time that the demonstration multiplying power of digital pathological section changes, unit moves pixel distance to be begunEqual eventually k current length pixel value/width pixel value doubly. Be transformed into digital pathological sectionActual physical size known, the unit of digital pathological section moves physical distance and equals all the timeK actual physical size doubly, at physical layer, the unit motive objects of digital pathological sectionReason distance all the time with k about, with the fixed range that shows that multiplying power is irrelevant.
Step 106, obtains the moving direction of digital pathological section. Moving of numeral pathological sectionMoving direction can be both the moving direction of system default, also can control from user. A kind ofPreferred embodiment, according to determine digital pathological section from user's moveMoving direction. For example, four buttons are up and down set in display interface, user clicksThese four button input moving directions. In the present embodiment, determine according to user's moveThe moving direction of numeral pathological section, can be user-friendly, makes the accurate mobile number of userWord pathological section.
Step 108, moves pixel distance and digital pathology according to the unit of digital pathological sectionThe moving direction mobile digital pathological section of section, specifically comprises: (1) is according to digital pathologyThe unit of section moves moving direction and the digital pathology of pixel distance, digital pathological section and cutsThe current display centre of sheet is determined the display centre after digital pathological section moves; (2) basisThe indication range that display centre after numeral pathological section moves and display interface are corresponding is determinedDemonstration border after numeral pathological section moves; (3) after moving according to digital pathological sectionDemonstration border after display centre and digital pathological section move loads digital pathological section.
Particularly, in process (1), first obtain the current aobvious of mobile front digital pathological sectionShow center, as pixel coordinate (302,506), then according to the movement side of digital pathological sectionTo, as move right, and the unit of digital pathological section moves pixel distance, as 20Individual pixel, determines the display centre after digital pathological section moves, for pixel coordinate (322,506). In process (2), the display centre after moving according to digital pathological section, i.e. pixelCoordinate (322,506), and indication range corresponding to display interface, as long in rectangle indication rangeWide 200 pixels of 400 pixels, determine the demonstration border after digital pathological section moves, hereCan determine digital pathological section move rear four apex coordinates be respectively (122,406),(522,406), (122,606), (522,606). Can understand, here display interfaceCorresponding indication range is not limited only to rectangle, can be also other shapes such as ellipse or circleShape. In process (3), the display centre after moving according to digital pathological section, pixel is satMark (322,506), and the demonstration border of digital pathological section after moving, digital pathology is cutSheet move rear four apex coordinates (122,406), (522,406), (122,606), (522,606), load the image of the digital pathological section within the scope of this, thereby reach mobile digital diseaseThe effect of reason section, makes user watch the digital pathological section after moving.
In the present embodiment, in mobile digital pathological section process, first determine after movingDisplay centre, then determines the demonstration border after moving, last according in the demonstration after movementDemonstration border frame after the heart and movement loads digital pathological section, can reach accurate mobile numberThe effect of word pathological section.
In the present embodiment, establishing moving ratio k is 0.01. Suppose the reality of digital pathological sectionPhysical size is for long 5 centimetres wide 4 centimetres, digital pathological section in the longitudinal directionIt is one of percentage of 5 centimetres that unit moves physical distance, 0.5 millimeter, and at widthOn unit to move physical distance be one of percentage of 4 centimetres, 0.4 millimeter. This enforcementIn example, user can repeat move operation, thereby moves number at length direction or widthWord pathological section, as moved 5 times at length direction continuously, thereby moves digital pathological sectionMoving 2.5 millimeters.
In order to make user execute the actual movement of knowing digital pathological section after move operationDistance, the situation of movement of clearer understanding numeral pathological section, as shown in Figure 2, this realityThe method of executing in example also comprises step 110, according to the total mobile pixel distance of digital pathological sectionFrom determining the actual displacement of digital pathological section and showing. As arranged on display interfaceRectangle dialog box, the actual displacement that shows digital pathological section is 2.5 millimeters.
In practical application, four moving directions up and down can be set on display interfaceButton, thus facilitate user to utilize mouse or touch screen operation mobile digital pathological section. ?Show in the constant situation of multiplying power every mobile button, the digital pathological section clicked of userAll move identical unit and move pixel distance. Have nothing to do with showing multiplying power, the every point of userHit mobile button, digital pathological section all moves identical unit and moves physical distance.By being set, the mode of mobile button can also ensure that section is exactly along four up and downDirection moves, and ensures that the mobile direction of section is accurate.
The application scenarios of digital pathological section moving method as shown in Figure 3, in this scene,First utilize slice scanner 32 to scan physics section 31, obtain digital pathological section, soAfter utilize server 33 to carry out the storage of classification piecemeal and image logic place to digital pathological sectionReason, finally by view data input display terminal 34 corresponding digital pathological section, by aobviousShow that terminal 34 shows digital pathological section, user utilizes up and down four of display terminal 34The mobile button mobile digital pathological section of individual direction.
In sum, by the digital pathological section moving method in the present embodiment, can be notRely on the operating distance mobile digital pathological section of user on screen, reach micro-mobile numberThe effect of word pathological section, thereby mobile digital pathological section accurately, ensure that section is mobileAccuracy, facilitate user to watch section. Digital pathological section in the present embodiment is movedThe method use that combines with moving method of the prior art, can provide multiple number for userWord pathological section move mode, improves user's experience, facilitates user to watch digital pathologySection.
In order to further illustrate above-mentioned digital pathological section moving method, the embodiment of the present inventionDigital pathological section mobile device is also provided, has moved for carrying out above-mentioned digital pathological sectionMoving method. The digital pathological section providing with reference to the embodiment of the present invention as shown in Figure 4 movesMoving device, this device comprises:
Pixel Dimensions acquisition module 41, for obtaining the current demonstration multiplying power correspondence of display interfaceThe Pixel Dimensions of digital pathological section;
Unit moves pixel distance computing module 42, for according to default moving ratio and numberThe unit that the Pixel Dimensions of word pathological section calculates digital pathological section moves pixel distance;
Moving direction acquisition module 43, for obtaining the moving direction of digital pathological section;
Section mobile module 44, moves pixel distance for the unit according to digital pathological sectionMoving direction mobile digital pathological section with digital pathological section.
Fig. 4 only schematically shows one in digital pathological section mobile device various structuresPlant structure, in another embodiment, moving direction acquisition module 43 can also not move with unitMoving pixel distance computing module 42 connects, and is only connected with section mobile module 44.
In the embodiment of the present invention, owing to moving pixel distance computing module 42 by unitThe unit that calculates digital pathological section moves pixel distance, and utilizes section mobile module44 move pixel distance mobile digital pathological section according to unit, therefore pass through the invention processDigital pathological section mobile device in example can not rely on the operating distance of user on screenMobile digital pathological section, reaches the effect of micro-mobile digital pathological section, thereby accuratelyGround mobile digital pathological section, ensures the accuracy that section is mobile, facilitates user to watch section.
Further, in the present embodiment, unit moves pixel distance computing module 42 and comprises:Computing unit, moves pixel for the unit that calculates digital pathological section by formula s=w*kDistance, wherein, the unit of s representative digit pathological section moves pixel distance, and w represents numberThe length pixel value of word pathological section or width pixel value, k represents default moving ratio.In the present embodiment, move pixel distance, root by setting default moving ratio unit of accountMove pixel distance trace mobile digital pathological section according to unit, can reach micro-mobile numberThe effect of word pathological section. Because default moving ratio is changeless value, therefore alsoCan ensure at physical layer, the unit of digital pathological section move physical distance be all the time withDefault moving ratio relevant, with show the irrelevant fixed range of multiplying power.
Further, in the present embodiment, section mobile module 44 comprises: display centre is determinedUnit, for moving pixel distance, digital pathological section according to the unit of digital pathological sectionMoving direction and the current display centre of digital pathological section determine that digital pathological section movesAfter display centre; Show border determining unit, after moving according to digital pathological sectionDisplay centre and after indication range corresponding to display interface determine that digital pathological section movesDemonstration border; Section loading unit, for the demonstration after moving according to digital pathological sectionDemonstration border after center and digital pathological section move loads digital pathological section. This enforcementIn example, in mobile digital pathological section process, first determine the display centre after moving,Then determine the demonstration border after moving, finally according to the display centre after movement with after movingDemonstration border frame load digital pathological section, can reach accurate mobile digital pathological sectionEffect.
Further, in the present embodiment, moving direction acquisition module 43 comprises: moving directionDetermining unit, determines the movement of digital pathological section from user's move for basisDirection. In the present embodiment, determine the movement of digital pathological section according to user's moveDirection, can be user-friendly, makes the accurate mobile digital pathological section of user.
Further, as shown in Figure 5, the digital pathological section mobile device in the present embodimentAlso comprise: actual displacement display module 51, for always moving according to digital pathological sectionMoving pixel distance is determined the actual displacement of digital pathological section and is shown. In the present embodiment,Can make user obtain executing after move operation by actual displacement display module 51Know the actual displacement of digital pathological section, the digital pathology of the clearer understanding of user is cutThe situation of movement of sheet.
In sum, by digital pathological section moving method and device in the present embodiment,Can not rely on the operating distance mobile digital pathological section of user on screen, reach traceThe effect of mobile digital pathological section, thereby mobile digital pathological section accurately, ensure to cutThe accuracy that sheet moves, facilitates user to watch section. Digital pathology in the present embodiment is cutThe use that combines with moving method of the prior art of sheet moving method and device, can be for usingFamily provides multiple digital pathological section move mode, improves user's experience, facilitates userWatch digital pathological section.
The digital pathological section mobile device that the embodiment of the present invention provides can be on equipmentSpecific hardware or be installed on software or the firmware etc. on equipment. The embodiment of the present invention providesDevice, its technique effect of realizing principle and generation is identical with preceding method embodiment, forConcise and to the point description, the not mentioned part of device embodiment part, can be with reference in preceding method embodimentCorresponding contents. Those skilled in the art can be well understood to, and is the convenience of describingSuccinctly, the specific works process of the system of aforementioned description, device and unit, all can joinBe admitted to the corresponding process of stating in embodiment of the method, do not repeat them here.
In embodiment provided by the present invention, should be understood that, the apparatus and method that disclose,Can realize by another way. Device embodiment described above is only schematic, for example, the division of described unit, is only that a kind of logic function is divided, actual realizationTime can have other dividing mode, again for example, multiple unit or assembly can in conjunction with orCan be integrated into another system, or some features can ignore, or not carry out. Another point,Shown or discussed coupling each other or direct-coupling or communication connection can be to pass throughSome communication interfaces, INDIRECT COUPLING or the communication connection of device or unit, can be electrically,Machinery or other form.
The described unit as separating component explanation can be or can not be also physically to divideOpen, the parts that show as unit can be or can not be also physical location,To be positioned at a place, or also can be distributed on multiple NEs. Can be according to realityThe needs on border select some or all of unit wherein to realize the order of the present embodiment scheme.
In addition, the each functional unit in embodiment provided by the invention can be integrated in oneIn processing unit, can be also that the independent physics of unit exists, also can two or twoAbove unit is integrated in a unit.
If described function realizes and as product pin independently using the form of SFU software functional unitWhen selling or using, can be stored in a computer read/write memory medium. Based on like thisUnderstanding, the portion that technical scheme of the present invention contributes to prior art in essence in other wordsPoint or the part of this technical scheme can embody with the form of software product, this calculatingMachine software product is stored in a storage medium, comprises that some instructions are in order to make a meterCalculation machine equipment (can be personal computer, server, or the network equipment etc.) carry out thisInvent all or part of step of method described in each embodiment. And aforesaid storage medium bagDraw together: USB flash disk, portable hard drive, read-only storage (ROM, Read-OnlyMemory),Random access memory (RAM, RandomAccessMemory), magnetic disc or CDEtc. various media that can be program code stored.
It should be noted that: in similar label and letter accompanying drawing below, represent similar terms, because ofThis, once be defined in an a certain Xiang Yi accompanying drawing, it is right in accompanying drawing subsequently, not needIt further defines and explains, in addition, and term " first ", " second ", " the 3rd "Deng only for distinguishing description, and can not be interpreted as instruction or hint relative importance.
Finally it should be noted that: the above embodiment is only specific embodiment of the invention sideFormula, in order to technical scheme of the present invention to be described, is not intended to limit, protection model of the present inventionEnclose and be not limited to this, although the present invention is had been described in detail with reference to previous embodiment,Those of ordinary skill in the art is to be understood that: be anyly familiar with those skilled in the artIn the technical scope disclosing in the present invention, the skill that it still can be recorded previous embodimentArt scheme is modified or can be expected easily changing, or part technical characterictic is wherein carried outBe equal to replacement; And these are revised, change or replace, do not make the basis of appropriate technical solutionMatter departs from the spirit and scope of embodiment of the present invention technical scheme. All should be encompassed in of the present inventionWithin protection domain. Therefore, protection scope of the present invention should the described protection with claimScope is as the criterion.