Summary of the invention
Technical matters solved by the invention is: all view data that how scanning obtained are stored in same image file.
For solving the problems of the technologies described above, technical solution of the present invention provides a kind of information processing method of image, comprising:
Read in scanning document, described scanning document comprises at least one scintigram file;
Obtain the header file information of described scanning document, described header file information comprises and indicates whether the 3rd mark and the compress mode of memory scanning figure;
Based on described scintigram file, obtain the image information of the scintigram of corresponding multiplying power group, described multiplying power group comprises a plurality of different multiplying powers;
By described compress mode, the image information of described scintigram is compressed, to obtain the compressed image information of scintigram;
Compressed image information and the header file information of described scintigram are write image file.
Optionally, header file information is write image file, comprising:
Described header file information is encrypted, the header file information after encrypting is write described image file.
Optionally, described described header file information is encrypted, based on following formula:
a=M1×b+M2
Wherein, a is described encryption back fileinfo, and b is the True Data of header file information, and M1, M2 are the checking coefficient of header file information.
Optionally, the scanning document that reads in also comprises other map files, and described header file information also comprises other figure marks that indicate whether to store other figure;
The information processing method of described image also comprises:
Based on described other map files, obtain the image information of corresponding other figure;
By described compress mode, the image information of described other figure is compressed, to obtain the compressed image information of other figure;
The compressed image information of described other figure is write described image file.
Optionally, described other figure comprise preview graph and/or label figure.
Optionally, the information that writes image file is stored with binary data format.
Optionally, described multiplying power group comprises that the original multiplying power of scintigram and at least one set multiplying power; Based on described scintigram file, the image information that obtains the scintigram of corresponding multiplying power group comprises:
Described scintigram is divided into several tactic sub-scintigrams;
Each sub-scintigram is set multiplying power by each to be dwindled;
Determine respectively each sub-scintigram in described original multiplying power and respectively set image information corresponding under multiplying power;
The set of the image information of the sub-scintigram of the same scintigram of correspondence is made as the image information of this scintigram.
For addressing the above problem, technical solution of the present invention also provides a kind of display packing of image, and described image generates based on image file, and described image file adopts the information processing method of above-mentioned image to obtain, and comprising:
Receive scintigram and show request, described scintigram shows that the information that request is carried comprises that scintigram shows multiplying power;
The read head fileinfo;
The 3rd mark in described header file information is indicated memory scanning figure, selects to show with described scintigram the multiplying power that multiplying power is corresponding in described multiplying power group;
Read the compressed image information of described scintigram corresponding with selected multiplying power in described image file;
Decompress based on the compressed image information of the compress mode in described header file information to the scintigram that reads, to obtain the image information of described scintigram;
Image information based on described scintigram generates scintigram and is shown.
Optionally, the header file information of described image file is encrypted header file information, and described read head fileinfo comprises: read the header file information of described image file and be decrypted.
Optionally, described header file information also comprises other figure marks that indicate whether to store other figure;
The display packing of described image also comprises:
Receive other figure and show request;
The read head fileinfo;
Store other figure when other figure mark indications of described header file information, read the compressed image information of described other figure;
Decompress based on the compressed image information of the compress mode in described header file information to other figure of reading, to obtain the image information of other figure;
Image information based on described other figure generates other figure and is shown.
Optionally, described other figure are preview graph and/or label figure.
Optionally, described scintigram shows that information that request is carried also comprises the scintigram viewing area; The compressed image information of described scintigram is the set of compressed image information of the sub-scintigram of corresponding same scintigram;
The described compressed image information that reads described scintigram corresponding with selected multiplying power in described image file comprises: read in described image file the compressed image information that the sub-scintigram of common factor is arranged with described viewing area in the compressed image information with described scintigram corresponding to selected multiplying power;
Describedly decompress based on the compressed image information of the compress mode in described header file information to the scintigram that reads, comprise with the image information that obtains described scintigram: decompress based on the compressed image information of the compress mode in described header file information to the sub-scintigram that read, to obtain the image information of described sub-scintigram;
Described image information based on described scintigram generates scintigram and shown and comprises: the image information based on the sub-scintigram that obtains generates the part scintigram of corresponding described viewing area and is shown.
For addressing the above problem, technical solution of the present invention also provides a kind of signal conditioning package of image, comprising:
Reading unit is used for reading in scanning document, and described scanning document comprises at least one scintigram file;
Acquiring unit is used for obtaining the header file information of described scanning document, and described header file information comprises and indicates whether the 3rd mark and the compress mode of memory scanning figure;
Obtain the unit, be used for based on described scintigram file, obtain the image information of the scintigram of corresponding multiplying power group, described multiplying power group comprises a plurality of different multiplying powers;
Compression unit is used for by described compress mode, the image information of described scintigram being compressed, to obtain the compressed image information of scintigram;
Writing unit is used for compressed image information and the header file information of described scintigram are write image file.
Optionally, the said write unit comprises:
Ciphering unit is used for described header file information is encrypted;
Sub-writing unit, the header file information after being used for encrypting writes described image file.
Optionally, the scanning document that reads in also comprises other map files, and described header file information also comprises other figure marks that indicate whether to store other figure;
Described acquisition unit also is used for based on described other map files, obtains the image information of corresponding other figure;
Described compression unit also is used for by described compress mode, the image information of described other figure being compressed, to obtain the compressed image information of other figure;
The said write unit also is used for the compressed image information of described other figure is write described image file.
Optionally, described multiplying power group comprises that the original multiplying power of scintigram and at least one set multiplying power; Described acquisition unit comprises:
Division unit is used for described scintigram is divided into several tactic sub-scintigrams;
Dwindle the unit, be used for that each sub-scintigram is set multiplying power by each and dwindle;
Determining unit is used for determining respectively each sub-scintigram in described original multiplying power and respectively sets image information corresponding under multiplying power and the set of the image information of the sub-scintigram of the same scintigram of correspondence is made as the image information of this scintigram.
For addressing the above problem, technical solution of the present invention also provides a kind of display device of image, and described image generates based on image file, and described image file adopts the signal conditioning package of above-mentioned image to obtain, and comprising:
Receiving element is used for receiving scintigram and shows request, and described scintigram shows that the information that request is carried comprises that scintigram shows multiplying power;
Header file information reading unit is used for the read head fileinfo;
Selected cell is used for indicating memory scanning figure when the 3rd mark of described header file information, selects to show with described scintigram the multiplying power that multiplying power is corresponding in described multiplying power group;
Image information reading unit is for the compressed image information that reads the described image file described scintigram corresponding with selected multiplying power;
Decompression unit is used for decompressing based on the compress mode of the described header file information compressed image information to the scintigram that reads, to obtain the image information of described scintigram;
Display unit is used for generating scintigram and being shown based on the image information of described scintigram.
Optionally, the header file information of described image file is encrypted header file information, and described header file information reading unit comprises:
Sub-reading unit is for the header file information that reads described image file;
Decryption unit is used for the header file information of described image file is decrypted.
Optionally, described header file information also comprises other figure marks that indicate whether to store other figure;
Described receiving element also is used for receiving other figure and shows request;
Described image information reading unit also is used for having stored other figure when other figure mark indications of described header file information, reads the compressed image information of described other figure;
Described decompression unit also is used for decompressing based on the compress mode of the described header file information compressed image information to other figure of reading, to obtain the image information of other figure;
Described display unit also is used for generating other figure and being shown based on the image information of described other figure.
Optionally, described scintigram shows that information that request is carried also comprises the scintigram viewing area; The compressed image information of described scintigram is the set of compressed image information of the sub-scintigram of corresponding same scintigram;
Described image information reading unit is for the compressed image information of the sub-scintigram of common factor is arranged with described viewing area in the compressed image information that reads the described image file described scintigram corresponding with selected multiplying power;
Described decompression unit is used for decompressing based on the compress mode of the described header file information compressed image information to the sub-scintigram that reads, to obtain the image information of described sub-scintigram;
Described display unit is used for generating the part scintigram of corresponding described viewing area and being shown based on the image information of the sub-scintigram that obtains.
Technical solution of the present invention comprises following beneficial effect at least:
All data that produce in scanning document all are stored in same image file, directly the storage data are compressed processing, and a large amount of scan-datas is carried out the multiplying power layering, and realize the data storage of single file, improve the efficient of data call and file management.
In possibility, also possess other advantages:
Improved the security of image text content, this is embodied on header file information and other information related; Header file information is a kind of information that is encrypted with user-defined format, some words and the device flag information about scanning document of storing with the txt text formatting in the prior art itself have been comprised, after these have the content-encrypt of secret and privacy, only can be by decrypted the reading of data type of certainly setting;
In addition, the information whether figure such as header file information described the 3rd mark of storage and other figure marks store is set, realizes the relevance of header file information and scintigram, other figure (preview graph is or/and label figure); Only read and deciphering header file information, can read scintigram and other figure by above-mentioned mark, thus the security that has improved picture material.
Embodiment
Prior art such as sectioning image, produces the up to a hundred images that magnify pixel to I haven't seen you for ages using the scanner scanning image, generally can be 1000PX * 2098PX.But owing to can produce a lot of important information in the process of scanning, take sectioning image as example, comprising: focus information, image tagged information, each image information.Traditional approach is to be with focus information, and image tagged information etc. are processed with text (for example txt file), and each image information is pressed map file (for example jpg file) format analysis processing.But the processing mode of above-mentioned data can produce following problem:
1) the file number is various: above-mentioned processing mode makes the file that forms based on scan-data comprise at least text and map file, and the file number is many file management difficulty will occur, and compression duplicate copy speed is slow, File Open speed waits problem slowly;
2) the file memory contents is large: the raw data that produces through standard scan is larger, and the data that above-mentioned file is stored by special compression, itself can not make data volume be reduced;
3) file security can not be protected: all scan-datas are processed without security in the situation that be processed into text and map file, and the confidentiality of information is very low.
The inventor has produced following invention thinking for the problems referred to above: in the process of scan image, only produce an image file, just can preserve the information in all scanning documents; And the information in the scanning document of storing is through overcompression, and its compress mode can be stored in image file, realizes the self-defined of compress mode.
Embodiment 1
The information processing method of a kind of image as shown in Figure 1, its corresponding and thinking foregoing invention people comprises:
Step S101 reads in scanning document.
Described scanning document comprises at least one scintigram file.
For example, for a sectioning image, because of its sweep object biological tissue image often, in scanning process, at first to choose the focal position of concrete scanning and produce focus information on this focus the tissue of scanning, the scanning device that also has can produce the preview graph file after scanning, the schematic diagram of preview graph is referring to Fig. 2.Total length and width (unit: pixel of tissue image after scanning process also can be calculated scanning according to the outer rim size of this preview graph, PX) and the number that forms, this number is the quantity of the scintigram of its generation, is also shown in the focus information of scanning on preview graph, as the focus X-ray 1 ~ X4 in Fig. 2.
Step S102 obtains the header file information of described scanning document.
Described header file information comprises and indicates whether the 3rd mark and the compress mode of memory scanning figure.
Described header file information has specifically comprised the global information of described image file, and header file information can directly be obtained by scanning device in scanning process, includes but not limited to following content:
Focus information in scanning process comprises the coordinate information of focus on focus number, same scintigram;
Focus information on each focus;
Label information comprises the 3rd mark;
The compress mode of image file.
Fig. 3 is the structural representation of the header file information in image file.
The type of above-mentioned the 3rd mark can be the quantity information of described scintigram.
Step S103 based on described scintigram file, generates the image information of the scintigram of corresponding multiplying power group.
Described multiplying power group comprises a plurality of different multiplying powers.
Step S104 compresses the image information of the scintigram that generates by described compress mode, to obtain the compressed image information of scintigram.
In the present embodiment, step S103 ~ S104 is to scan-data, and particularly the image information of scintigram is carried out the processing procedure of layering and compression storage, when the reading rate of scintigram is got a promotion, reduces memory data output.
Described multiplying power group is user-defined one group of multiplying power data, the mode of reading scan figure is complementary in order to read also with the user, data in this step process scintigram file, based on the image information of the scintigram of the corresponding different multiplying of scintigram data formation, the custom of this multiplying power and user's general demonstration multiplying power is close.The multiplying power group comprises original multiplying power, and original multiplying power is exactly the scanning multiplying power when section is scanned, and is a maximum multiplying power, sets in the present embodiment, and original multiplying power is 40, the multiplying power group can be set contain multiplying power 1,2,5,10,20,40.
According to above-mentioned, the compressed image information of the scintigram of final formed corresponding different multiplying group moderate multiplying factor has defined the partial data that is used for generating in described image file, the compressed image information structure of the scintigram of corresponding multiplying power group moderate multiplying factor can with reference to figure 4, include but not limited to following content:
Data entries quantity;
The virtual path of depositing of scintigram;
The scintigram filename;
The scintigram origin coordinates has defined the coordinate information of scintigram starting point;
The initial length and width of scintigram;
The multiplying power information that scintigram is corresponding (such as 1,2,5,10,20 or 40);
The scintigram reduction length has defined scintigram after completing data compression in the specific compression mode, the length information of this packed data;
The scintigram packed data has defined the packed data of scintigram after completing data compression in the specific compression mode.
Step S105 writes image file with compressed image information and the header file information of described scintigram.
The order that writes can be compressed image information and the header file information (certainly, get final product so long as order writes, but header file information must write on the head of data) of scintigram, and at first header file information be read when reading described image file; Header file information contains the 3rd mark, only has the header file information when image file to comprise the 3rd mark that is shown as "Yes", and the positional information of the compressed image information place data of scintigram just can be read, and therefore has certain file protection function; In addition, header file information has also comprised the data of compress mode, in the time will reading compressed data, only has and has first read header file information, can carry out decompress(ion) to compressed data, realizes the confidentiality of file.
Embodiment 2
The present embodiment is based on a kind of more preferred technical scheme of embodiment 1, referring to Fig. 5.
The disposal route of image file shown in Figure 5 comprises:
Step S201 reads in scanning document.
Described scanning document comprises at least one scintigram file, preview graph file and label map file.Here, preview graph file and label map file are also referred to as other map files.
Here, the implication of step S201 and step S101 are similar, different is, label figure can be with two-dimension code form canned data, it points to some tag recognition information of scanning document and the column information of label figure, as shown in Figure 6, to have put down in writing scanning document be to belong to xxxxx hospital, pathology department and image in 2 D code to label figure.
Step S202 obtains the header file information of described scanning document.
Described header file information comprises the first mark of indicating whether to store preview graph, indicate whether storage tags figure the second mark, indicate whether the 3rd mark and the compress mode of memory scanning figure; Here, the first mark and second is labeled as corresponding other figure marks, compress mode refers to mode that the information of processing is compressed, this compress mode can be any one feasible mode of in prior art, binary data being compressed, it can be also the combination of self-defining prior art, because belonging to the category of prior art, repeat no more herein.
Corresponding embodiment 1, structure and Fig. 3 of the header file information of the present embodiment image file are similar, and it includes but not limited to following content:
Focus information in scanning process comprises the coordinate information of focus on focus number, same scintigram;
Focus information on each focus;
The quantity of scintigram;
Label information comprises the first mark, the second mark and the 3rd mark;
The compress mode of image file.
Step S203 is encrypted described header file information.
Described described header file information is encrypted, based on following formula:
a=M1×b+M2 (1)
In formula (1), a is described encryption back fileinfo, and b is the True Data of header file information, and M1, M2 are the checking coefficient of header file information.
Above-mentioned cipher mode is a kind of self-defined mode, and checking coefficient M1, the M2 of header file information can set up on their own, certainly, in other embodiments, encrypts formula and can adopt other to have the formula of encryption function.
Step S204 based on described scintigram file, generates the image information of the scintigram of corresponding multiplying power group.
Described multiplying power group comprises a plurality of different multiplying powers.
Step S205 based on described preview graph file, generates the image information of corresponding preview graph;
Step S206 based on described label map file, generates the image information of corresponding label figure.
Certainly, the order between step S204 ~ S206 can arbitrary arrangement.
Step S207, respectively image information, the image information of preview graph and the image information of label figure of the scintigram that generates are compressed by described compress mode, to obtain compressed image information, the compressed image information of preview graph and the compressed image information of label figure of scintigram.
Through the processing of step S204 ~ S207, the structure of the compressed image information of the scintigram of corresponding multiplying power group is consistent with embodiment 1.Similar with the definition mode of the compressed image information of scintigram, the compressed image information of formed preview graph has defined the partial data that is used for generating described image file preview graph, includes but not limited to following content:
The virtual path of depositing of preview graph;
The filename of preview graph;
The origin coordinates of preview graph has defined the coordinate information of preview graph starting point;
The initial length and width of preview graph;
The multiplying power information of the correspondence of preview graph has defined the multiplying power information that scans the corresponding original structure of preview graph that forms;
The reduction length of preview graph has defined after completing the data compression of preview graph in the specific compression mode length information of preview graph packed data;
The packed data of preview graph has defined the packed data of preview graph after completing data compression in the specific compression mode.
The compressed image information of formed label figure has defined the partial data that is used for generating described image file label figure, includes but not limited to following content:
The virtual path of depositing of label figure;
The filename of label figure;
The origin coordinates of label figure has defined the coordinate information of label figure starting point;
The initial length and width of label figure;
The multiplying power information of the correspondence of label figure has defined the multiplying power information that scans the corresponding original structure of label figure that forms;
The reduction length of label figure has defined after completing the data compression of preview graph in the specific compression mode length information of preview graph packed data;
The packed data of label figure has defined the packed data of preview graph after completing data compression in the specific compression mode.
The compressed image information of above-mentioned scintigram, preview graph or label figure is stored with binary data format.
Step S208 writes image file with the compressed image information of described scintigram, the compressed image information of preview graph, the compressed image information of label figure and the header file information after encryption.
The order that writes can be compressed image information, the preview graph of scintigram compressed image information, label figure compressed image information and encrypt after header file information (certainly, so long as writing, order gets final product, but header file information must write on the head of data), when image file was read, what at first read was header file information; Header file information contains the first mark, the second mark and the 3rd mark, only have the header file information when image file to comprise the first mark, the second mark or the 3rd mark that is shown as "Yes", the positional information of the compressed image information institute data writing of corresponding preview graph, label figure and scintigram just can be read.In addition, header file information has also comprised compress mode, in the time will reading compressed image information, only has and has first read header file information, can carry out decompress(ion) to compressed image information.
Owing to also having comprised the ciphering process of header file information at the present embodiment.In conjunction with above-mentioned, as can be known, the information that arranges between the compressed image information by header file information and image (label figure, scintigram, preview graph) reads related, can improve Information Security and the security performance of image file.
In the present embodiment, described multiplying power group comprises that the original multiplying power of scintigram and at least one set multiplying power, such as, continue to use the example of embodiment 1, original multiplying power is 40, sets multiplying power and comprises 1,2,5,10,12; As shown in Figure 7, step S204, specifically can realize with following mode:
Step S241 is divided into several tactic sub-scintigrams with described scintigram;
Step S242 sets multiplying power to each sub-scintigram and dwindles by each;
Step S243 determines respectively each sub-scintigram in described original multiplying power and respectively sets image information corresponding under multiplying power;
Step S244 is made as the set of the image information of the sub-scintigram of the same scintigram of correspondence the image information of this scintigram.
Said process can be specifically referring to Fig. 8.Shown in Figure 8 is the parts of images of a certain scintigram, and this scintigram is divided, and forms tactic sub-scintigram, this order is not limit, but be divided into suitablely with the positive four limit types of rule, the sub-scan image of each positive four limit types is matrix array to be arranged, sub-scan image 100 as shown in FIG..Each sub-scintigram is dwindled this step by each setting multiplying power specifically can be with reference to the description of step S204.Through step S214 ~ S244, the compressed image information of the formed scintigram of step S207 is the set of the compressed image information of sub-scintigram, the compressed image information that is scintigram is take the compressed image information of sub-scintigram as the information storage cell, the definition mode of the compressed image information of sub-scintigram, son in Fig. 8 scans Figure 100 as example, certainly, it is the part of the scintigram of corresponding a certain multiplying power, includes but not limited to following content:
The virtual path of depositing of son scanning Figure 100;
The filename of son scanning Figure 100;
Son scans the origin coordinates of Figure 100, has defined the coordinate information of sub-scanning Figure 100 starting point, in Fig. 8, namely puts the coordinate of S1, certainly, gets a S2 and also can as the point of origin coordinates;
The initial length and width of son scanning Figure 100;
The multiplying power information of the correspondence of son scanning Figure 100;
The reduction length of son scanning Figure 100 has defined sub-scanning Figure 100 after completing data compression in the specific compression mode, the length information of this packed data;
The packed data of son scanning Figure 100 has defined the packed data of sub-scanning Figure 100 after completing data compression in the specific compression mode.
The form of the final image file KFB that forms of the present embodiment can be referring to Fig. 9.
Embodiment 3
The display packing of a kind of image as shown in figure 10 based on the resulting image file of embodiment 2, comprising:
Step S301 receives scintigram and shows request;
Described scintigram shows that information that request is carried comprises that scintigram shows multiplying power and scintigram viewing area.
Step S302 reads described header file information.
Because described header file information is encrypted header file information, describedly read described header file information, based on following formula:
b=(a-M2)÷M1 (2)
In formula (2), a is described encrypted header file information, and b is the True Data of the header file information that reads, and M1, M2 are the checking coefficient of header file information.
Step S303, to read in the compressed image information of described scintigram corresponding with selected multiplying power in described image file the compressed image information that the sub-scintigram of common factor is arranged with described scintigram viewing area when the 3rd mark of described header file information is designated as.
Here, the 3rd mark is designated as "Yes", and referring to scan number of graphs is not 0, represents memory scanning figure.The compressed image information of scintigram is the set of the compressed image information of its all sub-scintigrams.
Step S304 decompresses based on the compressed image information of the compress mode in described header file information to the sub-scintigram that reads, to obtain the image information of described sub-scintigram;
Step S305 generates the part scintigram of corresponding described viewing area and is shown based on the image information of the sub-scintigram that obtains.
Specifically can show at display window the scintigram of the corresponding viewing area that generates.Said process is the process of reading scan figure.
Display mode for the preview graph in embodiment 2 image files and label figure is similar to said process:
Demonstration for preview graph comprises step:
Receive preview graph and show request;
The read head fileinfo;
Store other figure (such as being "Yes") when the first mark indication of described header file information, read the compressed image information of preview graph;
Decompress based on the compressed image information of the compress mode in described header file information to the preview graph that reads, to obtain the image information of preview graph;
Image information based on described preview graph generates preview graph and is shown at display window.
For the demonstration of label figure, the step that its step and preview graph show is similar, repeats no more herein.
In addition, it needs to be noted at the present embodiment:
1) due to the compressed image file of the scintigram of having deposited corresponding different multiplying in image file, its essence is that the image information of scintigram is carried out the layering storage according to different multiplying; Image file also carries out the division of sub-scintigram to each scintigram.Scintigram under these different multiplying is shown, its main thought is to show the part scintigram image that is spliced to form by corresponding sub-scintigram, the advantage of doing like this is can improve the user in the reading speed of browsing scintigram under different proportion, has solved the slower problem of user's image browsing.
Such as, with the implementation procedure of the process of an example description of step S301 ~ S305:
The scintigram that sends in the client operation user interface that receives the user shows request; This demonstration request can be sent by the input of the hardware such as user's operating mouse, keyboard and the link of having opened on the special icon on the user interface, and indicating user requires at display window reading scan figure image.Scintigram shows that request has comprised that scintigram shows multiplying power information and display region information.Certainly, can adjust by use the mode of display window, demonstration multiplying power information in the loaded and displayed request and display region information (such as, the image itself that display window shows has been determined display position, the required demonstration multiplying power of ratio reckoning user of the length and width length of the window that can adjust by current window length and width length and user).
The scintigram of selecting to be fit in the scintigram of corresponding multiplying power group comprises two kinds of tolerance situations:
When demonstration multiplying power that the user asks is multiplying power in the multiplying power group just, so directly the scintigram of corresponding corresponding multiplying power gets final product;
When demonstration multiplying power that the user asks is not equal in the multiplying power group multiplying power arbitrarily, need so corresponding approach the most but greater than the scintigram of the multiplying power in the multiplying power group of this demonstration multiplying power, and then the multiplying power of adjusting this scintigram is described demonstration multiplying power.
For example only comprise the scintigram of storing corresponding 10 multiplying powers and the scintigram of 20 multiplying powers, ask so the display requirement of 10 multiplying powers for the user, directly select the scintigram of corresponding 10 multiplying powers; If but the user asks the display requirement of 15 multiplying powers, selects the scintigram of corresponding 20 multiplying powers, then the demonstration multiplying power of the scintigram of corresponding 20 multiplying powers is adjusted into 15 multiplying powers.
The fundamental purpose of so doing is in order to prevent display distortion.
In addition, the display position information that provides due to the user occurs with the form of putting often, selects arbitrarily certain point on display window as the user, is the concept of coordinate points on image.But for sub-scintigram, the corresponding viewing area that comprises this point also will be in conjunction with the area size of display window, so the user viewing area of sending is given according to the display window zone that comprises a position.Have again, because the length and width length of display window is that the user adjusts, its relative length adds the point that the user selects, define required viewing area (such as, the viewing area central point of point for asking that the user selects is set, length and width length in conjunction with display window obtains required viewing area).
Display window is final, and what show is the part scintigram, and this part scintigram is by having the sub-scintigram splicing of common factor, above-mentioned scintigram formed with this partial display zone.
Above-mentioned this request shows the mode that loads, and has accelerated greatly that data read and display efficiency.
2) because the information of image file is stored with binary data, when this image file is read, label information and compress mode in necessary first read head fileinfo can read other diagram datas (such as the compressed image information of scintigram, the compressed image information of label figure, the compressed image information of preview graph).
Label information in header file, such as the first mark, the second mark and the 3rd mark, essence is the byte number of view data, and in the binary data of image file, reads image data is to locate the position of this view data in the binary data of image file with byte number, that is to say, if user's read head fileinfo not, the user can't locate the Data Position that will read, and also can't ask to be shown to corresponding image.such as, the 3rd mark can be above-mentioned scanning number of graphs information (because scintigram is that the storage data are arranged certainly), suppose the image information (compressed image information of label figure, the compressed image information of preview graph, the compressed image information of scintigram or the compressed image information of sub-scintigram) byte number of the data of storing is 20 bytes, the memory word joint number of other items for information is 4 bytes, so, from the beginning the items for information in fileinfo obtains the positional information of special image data in the image file of storing with binary data, thereby read.Such as, in binary data, the shared byte of fileinfo (comprising label information) is 4 * N right overhead, the shared byte of the compressed image information of preview graph is 20, the shared byte of the compressed image information of label figure is 20, the shared byte of the compressed image information of scintigram is 20 * M, wherein N is the data entries quantity of header file information, M is the quantity of all scintigrams of compressed image information of scintigram, be labeled as and be when first so, can directly read the 4th * N+1 byte in binary data ~ 4 * N+20 byte, it is the compressed image information of preview graph; To be labeled as be that the compressed image information of reading tag figure in like manner when second; When the 3rd be labeled as storage be scanning number of graphs, when the compressing image data that reads P scintigram, can locate and read [4 * N+40+20 * (P-1)+1] byte in binary data ~ [4 * N+40+20 * P] byte.
In addition, owing to having stored the compress mode of above-mentioned data in header file information, can know by the read head fileinfo to be packed data in which way, otherwise can't realize the decompress(ion) of data.
Therefore, be encrypted by correct fileinfo, can realize security and the confidentiality of image file general image data.
Although the present invention with preferred embodiment openly as above; but it is not to limit the present invention; any those skilled in the art without departing from the spirit and scope of the present invention; can utilize method and the technology contents of above-mentioned announcement to make possible change and modification to technical solution of the present invention; therefore; every content that does not break away from technical solution of the present invention; to any simple modification, equivalent variations and modification that above embodiment does, all belong to the protection domain of technical solution of the present invention according to technical spirit of the present invention.