Summary of the invention
The objective of the invention is to overcome above-mentioned defective, the transmission method and the transmission equipment of a kind of CCD camera output image data and auxiliary data are provided, when transmit image data, the two field picture packed data only need be in present frame delegation or the auxiliary data that comprises of several capable image be transferred to back level equipment after splicing, greatly improve the validity of transfer of data, can also improve simultaneously the quality of images, reduce the bit rate that number passes passage.
Above-mentioned purpose of the present invention is achieved by following technical solution:
The transmission method of a kind of ccd image data and auxiliary data comprises the steps:
(1) receives the ccd image data of each frame and the auxiliary data of each frame, the buffer memory that the view data and the auxiliary data of described each frame are spliced laggard line data;
(2) receive the ccd image data and the auxiliary data of each frame of buffer memory output, and the ccd image data and the auxiliary data of each frame carried out following operation:
The ccd image data of present frame are compressed, and judged the number of times that auxiliary data is upgraded in the present frame, establishing update times is n time,
If n 〉=1, then ccd image data after the compression in the present frame and n the auxiliary data of upgrading through n time are spliced, the renewal rower of advancing is annotated simultaneously according to the more new situation of auxiliary data in the present frame, with spliced ccd image packed data of present frame and n the auxiliary data of upgrading through n time, and to the more mark output of newline;
If n=0, then ccd image data after the compression in the present frame and 1 auxiliary data that does not take place to upgrade are spliced, add simultaneously and do not upgrade mark, and with spliced ccd image packed data of present frame and 1 auxiliary data that does not take place to upgrade, and do not upgrade mark output;
(3) receive spliced ccd image packed data of each frame and n the auxiliary data of upgrading through n time, reach the more mark of newline; Or receive spliced ccd image packed data of each frame and 1 auxiliary data that does not take place to upgrade, and do not upgrade mark, and each frame data is carried out following operation:
If n 〉=1, then the ccd image packed data with present frame decompresses, n the auxiliary data of upgrading for n time according to the auxiliary data and the process of the capable mark of current frame inner updating, previous frame footline correspondence recovers the corresponding auxiliary data of each row of ccd image in the present frame simultaneously;
If n=0, then the CCD compressing image data with present frame decompresses, and simultaneously according to 1 auxiliary data not upgrading mark and do not take place to upgrade, recovers the corresponding auxiliary data of each row of ccd image in the present frame;
Wherein n is an integer.
In the transmission method of above-mentioned ccd image data and auxiliary data, if n 〉=1, as follows to the renewal method that rower annotates of advancing in the step (2) according to the more new situation of auxiliary data in the present frame:
(1) establish that the line number of ccd image data is that m is capable in the present frame, the capable view data of described m is added the zero clearing sign, the span of zero clearing sign is 0,1,2.....m;
(2) since first row zero clearing sign of the row that auxiliary data does not take place upgrades is made as 0, the row of the n time auxiliary data renewal in this frame takes place afterwards, zero clearing sign is made as the row number at this row place, and it still is 0 that the zero clearing that the row between row that the n time auxiliary data upgrade and the row that the n+1 time auxiliary data renewal takes place takes place afterwards identifies;
Wherein m is a positive integer.
In the transmission method of above-mentioned ccd image data and auxiliary data, the row counting that the row of the n time auxiliary data renewal in this frame will take place in the step (2) is made as 0 again, and row counting afterwards adds up to add 1.
In the transmission method of above-mentioned ccd image data and auxiliary data, as if n=0, the method that mark is upgraded in interpolation is as follows in the step (2):
If the line number of ccd image data is that m is capable in the present frame, the capable view data of described m is added the zero clearing sign, the value of zero clearing sign is 0.
In the transmission method of above-mentioned ccd image data and auxiliary data, as if n=0,1 auxiliary data that takes place to upgrade is the auxiliary data of the first row ccd image data correspondence in the present frame in the step (2).
In the transmission method of above-mentioned ccd image data and auxiliary data, in the step (3) if n 〉=1, according to n the auxiliary data that the auxiliary data and the process of the capable mark of current frame inner updating, previous frame footline correspondence are upgraded for n time, the method that recovers the auxiliary data that each row of ccd image is corresponding in the present frame is as follows:
(1) since the first capable auxiliary data of each row that the auxiliary data updated images does not take place in the present frame being inserted previous frame footline correspondence respectively;
(2) row that first generation auxiliary data in the present frame is upgraded and next row that auxiliary data upgrades takes place before all each row insert the auxiliary data of upgrading for the 1st time respectively, and the like, up to the auxiliary data of inserting the n time renewal.
In the transmission method of above-mentioned ccd image data and auxiliary data, as if n=0, according to not upgrading mark and 1 auxiliary data that renewal takes place, the method that recovers the auxiliary data of each row correspondence of ccd image in the present frame is as follows in the step (3):
Since first row all each row in the present frame are inserted described 1 auxiliary data that renewal takes place respectively.
In the transmission method of above-mentioned ccd image data and auxiliary data, the data of output also comprise the different dark pixel data of each row in the present frame in the step (2).
The transmission equipment of a kind of ccd image data and auxiliary data comprises ccd image buffer unit, ccd image compression unit and ccd image decompression unit,
Ccd image buffer unit: receive the ccd image data of each frame from the CCD camera, receive the auxiliary data of each frame, the buffer memory that the view data and the auxiliary data of described each frame are spliced laggard line data from the Star Service main frame;
Ccd image compression unit: receive the ccd image data and the auxiliary data of each frame of ccd image buffer unit output, and the ccd image data and the auxiliary data of each frame are carried out following operation:
The ccd image data of present frame are compressed, and judged the number of times that auxiliary data is upgraded in the present frame, establishing update times is n time,
If n 〉=1, then ccd image data after the compression in the present frame and n the auxiliary data of upgrading through n time are spliced, the renewal rower of advancing is annotated simultaneously according to the more new situation of auxiliary data in the present frame, with spliced ccd image packed data of present frame and n the auxiliary data of upgrading through n time, and more the mark of newline is exported to the ccd image decompression unit;
If n=0, then ccd image data after the compression in the present frame and 1 auxiliary data that does not take place to upgrade are spliced, add simultaneously and do not upgrade mark, and with spliced ccd image packed data of present frame and 1 auxiliary data that does not take place to upgrade, and do not upgrade mark and export to the ccd image decompression unit;
The ccd image decompression unit: the spliced ccd image packed data of each frame and n the auxiliary data of upgrading through n time of the output of reception ccd image compression unit reach the more mark of newline; Or receive the spliced ccd image data of each frame of ccd image compression unit output and 1 auxiliary data that does not take place to upgrade, and do not upgrade mark, and carry out following operation:
If n 〉=1, then the ccd image packed data with present frame decompresses, according to the mark of each row in the present frame, the auxiliary data of previous frame footline correspondence and n the auxiliary data that process is upgraded for n time, recover the also output of auxiliary data that each row of ccd image is corresponding in the present frame simultaneously;
If n=0, then the CCD compressing image data with present frame decompresses, and simultaneously according to 1 auxiliary data not upgrading mark and do not take place to upgrade, recovers the corresponding auxiliary data of each row of ccd image in the present frame;
Wherein n is an integer.
In the transmission equipment of above-mentioned ccd image data and auxiliary data, comprise that also a number passes slave computer, described number passes slave computer will give the ccd image buffer unit from the auxiliary data transmission that the Star Service main frame receives.
The present invention has following advantage compared to existing technology:
1, the ccd image data that the present invention proposes and the transmission method of auxiliary data, by judging the update times of auxiliary data in the present frame, and each row view data is marked according to new situation more, auxiliary data after in the images packed data, only transmitting several and upgrading, after to image decompressor, according to the auxiliary data after rower notes that image is done and the renewal, recover all each self-corresponding auxiliary datas of row of a two field picture fully, therefore this technical scheme has improved data transmission efficiency greatly because the data volume of the auxiliary data of transmission reduces greatly.
2, the slot transmission image compression data that adopts technical solution of the present invention can utilize actual transmissions auxiliary data amount to reduce to save recovers picture quality to improve, and can save back level device storage amount, and therefore wide application prospect is arranged.
3, technical solution of the present invention only needs to judge the update times of auxiliary data in each frame, and according to new situation more the rower of respectively advancing is annotated, and carries out the recovery of auxiliary data according to update times and rower notes, and practical operation is simple, has good practical value.
Embodiment
Below in conjunction with the drawings and specific embodiments content of the present invention is described in further detail:
Be illustrated in figure 1 as the procedure chart of ccd image data of the present invention and auxiliary data transmission method, transmission course comprises reception each frame ccd image data and auxiliary data, splices the back buffer memory; Receive the data cached of each frame output, compressing image data, and the update times of judging auxiliary data is n, if n 〉=1, output after n auxiliary data after view data after then will compressing is upgraded for n time with process spliced, the while advances to renewal according to the more new situation of auxiliary data and exports after rower is annotated; If n=0, view data after then will compressing and 1 the auxiliary data splicing back output that does not take place to upgrade; Decompressed image data, if n 〉=1, then according to the auxiliary data of the previous frame footline that receives and n auxiliary data of n renewal of process, the mark of n+1 auxiliary data and each row recovers the auxiliary data of each row correspondence of ccd image altogether; If n=0 then recovers the corresponding auxiliary data of each row of ccd image according to 1 auxiliary data that does not take place to upgrade that receives.The data output of each frame after will recovering at last.
Wherein when n 〉=1, as follows to the renewal method that rower annotates of advancing according to the more new situation of auxiliary data in the present frame:
(1) establish that the line number of ccd image data is that m is capable in the present frame, the capable view data of described m is added the zero clearing sign, the numerical value of zero clearing sign is 0,1,2.....m;
(2) since first row zero clearing sign of the row that auxiliary data does not take place upgrades is made as 0, the row of the n time auxiliary data renewal in this frame takes place afterwards, zero clearing sign is made as the row number at this row place, and it still is 0 that the zero clearing that the row between row that the n time auxiliary data upgrade and the row that the n+1 time auxiliary data renewal takes place takes place afterwards identifies;
In addition, the row counting that the row of the n time auxiliary data renewal in this frame takes place is made as 0 again, row counting afterwards adds up to add 1.
According to n the auxiliary data that the auxiliary data and the process of the capable mark of current frame inner updating, previous frame footline correspondence are upgraded for n time, the method that recovers the auxiliary data that each row of ccd image is corresponding in the present frame is as follows:
(1) since the first capable auxiliary data of each row that the auxiliary data updated images does not take place in the present frame being inserted previous frame footline correspondence respectively;
(2) row that first generation auxiliary data in the present frame is upgraded and next row that auxiliary data upgrades takes place before all each row insert the 1st auxiliary data after the renewal respectively, and the like, up to inserting n the auxiliary data after the renewal.
When n=0, the method that recovers the auxiliary data of each row correspondence of ccd image according to 1 auxiliary data that does not take place to upgrade that receives is: since first row all each row in the present frame are inserted 1 auxiliary data that renewal takes place respectively.
Be illustrated in figure 2 as the schematic diagram of ccd image data of the present invention and auxiliary data transmission equipment, number passes the satellite assistance data that slave computer receives the transmission of Star Service main frame, and it is transferred to the ccd image buffer unit, pass slave computer and do not receive auxiliary data by number by the CCD buffer unit, reason is between number biography slave computer and Star Service main frame communication interface to be arranged, and auxiliary data sends to data transmission system by the Star Service main frame, in order to reduce the number of devices that has interface between Star Service main frame and data transmission system, just adopted several biography slave computers to receive auxiliary data.The CCD buffer unit receives CCD camera image transmitted data simultaneously, and the CCD buffer unit splices the back buffer memory with the view data and the auxiliary data of each frame; The ccd image compression unit receives each frame image data and the auxiliary data of CCD buffer unit output, the view data of present frame is compressed, and the number of times that auxiliary data is upgraded in the judgement present frame, if update times is n time, if n 〉=1, ccd image data after the compression and n the auxiliary data of upgrading through n time are spliced back output, according to the more new situation of auxiliary data in the present frame renewal is advanced simultaneously and export after rower is annotated; If n=0 splices back output with ccd image data after the compression and 1 auxiliary data that does not take place to upgrade, add simultaneously and do not upgrade mark; The CCD decompression unit receives the spliced CCD compressing image data of each frame and n the auxiliary data of upgrading through n time, the more mark of newline of CCD compression unit output; Or spliced CCD compressing image data and 1 auxiliary data that does not take place to upgrade, and renewal marks, compressing image data is decompressed, when n 〉=1, according to the auxiliary data of the capable mark of current frame inner updating, previous frame footline correspondence and n auxiliary data of n renewal of process, recover the corresponding auxiliary data of each row of ccd image in the present frame, when n=0, according to 1 auxiliary data not upgrading mark in the present frame and do not take place to upgrade, recover the corresponding auxiliary data of each row of ccd image in the present frame.
When n 〉=1, because since first row corresponding auxiliary data of the corresponding auxiliary data of each row that auxiliary data upgrades and previous frame footline not taking place in the present frame must be identical, therefore in the ccd image compression unit, view data in the present frame after the compression is only spliced back output with n the auxiliary data of upgrading through n time, the auxiliary data upgraded does not take place and do not need to splice not again, when in the CCD decompression unit, carrying out the recovery of auxiliary data, can carry out the recovery of auxiliary data to each row that the auxiliary data renewal does not take place with reference to the auxiliary data of previous frame footline.
When n=0, because the auxiliary data that each row is corresponding in the present frame is not all upgraded, when carrying out the recovery of auxiliary data, also can recover with reference to the auxiliary data of previous frame footline, but in technical solution of the present invention, export to the method for ccd image decompression unit after the auxiliary data splicing that ccd image data and 1 row took place to upgrade after employing will be compressed, in decompression unit, carry out the recovery of the auxiliary data of each row view data correspondence in the present frame according to the auxiliary data that 1 row that splices takes place to upgrade, the 1 row auxiliary data that does not wherein take place to upgrade can be the auxiliary data of any 1 row view data correspondence in the present frame, the general row counting that calculates is for convenience selected the corresponding auxiliary data of the 1st row.
In transmission equipment shown in Figure 2, a kind of pattern is transferred to the ccd image compression unit after to be the ccd image buffer unit with the view data that receives and auxiliary data splice, also have a kind of pattern to finish the splicing function of each frame image data and auxiliary data, promptly can save the ccd image cache module for the CCD camera.
Enumerate several specific embodiments below:
Embodiment 1
Image auxiliary data upgrades in the present frame
Suppose that the ccd image fabric width is 1024 bytes in the present frame, whole two field picture line number is 256 row, every capable image flyback time slot is 128 bytes, the auxiliary data that wherein every capable view data is carried is 74 bytes, comprise 70 byte auxiliary parameters, 2 byte row counting and the dark pixel of 2 bytes, the compression ratio of view data is 4: 1, as shown in table 1 belowly be the dateout form of CCD compression unit when image auxiliary data upgrades in present frame, this data format has comprised the view data after the present frame compression, update times n, the zero clearing sign, the auxiliary data of the 1st row view data correspondence, and the dark pixel of all the other 255 row images, also comprise the flyback data:
Table 1
Associative list 1 as can be known in the present embodiment because the renewal of auxiliary data does not take place, update times n is 0, and the zero clearing sign of all 256 row is 0 in the frame, this two field picture does not have the auxiliary data of renewal, so view data of compression unit output 256 row compressions, the auxiliary data of the 1st row view data correspondence (also can be the corresponding auxiliary data of other row) and other some data, comprise update times n, the zero clearing sign, the dark pixel of all the other 255 row, because the dark pixel of 2 bytes of every capable image correspondence is all different, so should all export the dark pixel data of 510 bytes.The flyback time slot is 228790 ((1024+128) * 256-65536-586=228790) clock cycle among this embodiment, 586=1+1+74+510 wherein, the flyback time slot comprises invalid data, this time slot can not be deleted in compression unit output, because front end camera output image data is handled through overcompression, so exporting under the constant situation of clock frequency and data bit width, necessarily there is empty slot in the data format that compression unit outputs to back level equipment, back level equipment can remove the invalid data of this slot transmission, saves the device storage amount and reduces transmission code speed.
After entering the CCD decompression unit and decompress by the view data of this CCD compression unit output, according to this frame output auxiliary data recover auxiliary data of each row.
The result who is transmission method in conventional transportation method and the present embodiment below compares:
When image compression rate was 4: 1, a two field picture amount of compressed data was:
1024 * 256/4=65536 (byte)
In the conventional method: the auxiliary data amount of two field picture output is:
256 * 74=18944 byte accounts for a transmission frame number according to 22% of total amount
Only transmit dark pixel 510 bytes of auxiliary data 74 bytes, remaining row (as shown in table 1) that update times 1 byte, zero clearing identify 1 byte, the 1st row image in the present embodiment, the 1+1+74+510=586 byte accounts for a transmission frame number according to 1% of total amount altogether.
If utilize unnecessary slot transmission image compression data, image compression rate can be reduced to 65536/ (65536+18944-586) * 4=3.1247 so doubly, recover picture quality thereby improve
If from the bit rate angle of reduction number biography passage,
Employing conventional method, number biography channel code speed are reduced to the original input data rate
((1024×256)/4+256×74)/((1024+74)×256)=30%;
Employing the present invention program, number biography channel code speed reduce to the original input data rate
((1024×256)/4+586)/((1024+74)×256)=23.52%;
If the original camera data transfer rate is 200Mbps, be respectively 60Mbps and 47.05Mbps through the data transfer rate after 4: 1 image compression and the above-mentioned two kinds of auxiliary data transmission modes so.
Embodiment 2
Image auxiliary data upgrades 1 time in the present frame
Suppose that the ccd image fabric width is 1024 bytes in the present frame, whole two field picture line number is 256 row, every capable image flyback time slot is 128 bytes, the auxiliary data that wherein every capable view data is carried is 74 bytes, comprise 70 byte auxiliary parameters, 2 byte row counting and the dark pixel of 2 bytes, the compression ratio of view data is 4: 1, the renewal of auxiliary data occurs in the 98th row, as shown in table 2 below is the dateout form of CCD compression unit image auxiliary data in present frame when upgrading 1 time, this data format has comprised the view data after the compression, auxiliary data after the renewal, update times n, the zero clearing sign, reach the corresponding dark pixel of all the other 255 row except that the 98th row, also comprise the flyback data:
Table 2
The update times n that auxiliary data takes place in the present embodiment associative list 2 as can be known is 1, the 1st row is 0 to the pairing zero clearing sign of the 97th row in the present frame, the corresponding zero clearing of the 98th row is designated the row number of this row, promptly 98, the zero clearing of all the other each row sign still is 0 afterwards, and the row counting of the 98th row returns 0 again, and row counting accumulative total adds 1 afterwards, up to footline the 158th row (256 row before the corresponding counting again).Export to the CCD decompression unit after 1 auxiliary data after after compression unit will compress 256 row view data and the renewal (row counting wherein becomes 0) splicing, Shu Chu data also comprise update times n, zero clearing sign, the dark pixel of each row except that the 98th row simultaneously, the dark pixel of 2 bytes of wherein every capable view data correspondence is all different, should all export the dark pixel of 510 bytes.
Wherein the flyback time slot is 228790 ((1024+128) * 256-65536-586=228790) clock cycle, wherein 586=1+1+74+510.
The CCD decompression unit is according to the footline auxiliary data of previous frame compressed image transmission, recover present frame the interior the 1st and walk to auxiliary data that each row of auxiliary data renewal does not take place the 97th row, according to the auxiliary data after upgrading, recover that the common 158+1=159 that auxiliary data upgrades takes place after the 98th row is capable, the auxiliary data that each row is corresponding.
The result who is transmission method in conventional transportation method and the present embodiment below compares:
When image compression rate was 4: 1, a two field picture amount of compressed data was:
1024 * 256/4=65536 (byte)
In the conventional method: the auxiliary data amount of two field picture output is:
256 * 74=18944 byte accounts for a transmission frame number according to 22% of total amount
Only transmit dark pixel 510 bytes of auxiliary data 74 bytes, remaining row (as shown in table 2) that update times 1 byte, zero clearing identify 1 byte, the 98th row image in the present embodiment, the 1+1+74+510=586 byte accounts for a transmission frame number according to 1% of total amount altogether.
If utilize unnecessary slot transmission image compression data, image compression rate can be reduced to 65536/ (65536+18944-586) * 4=3.1247 so doubly, recover picture quality thereby improve
If, adopt conventional method from reducing the bit rate angle that number passes passage,
Number biography channel code speed is reduced to the original input data rate
((1024×256)/4+256×74)/((1024+74)×256)=30%;
Employing the present invention program, number biography channel code speed reduce to the original input data rate
((1024×256)/4+586)/((1024+74)×256)=23.52%;
If the original camera data transfer rate is 200Mbps, be respectively 60Mbps and 47.05Mbps through the data transfer rate after 4: 1 image compression and the above-mentioned two kinds of auxiliary data transmission modes so.
Embodiment 3
Image auxiliary data upgrades 2 times in the present frame
Suppose that the ccd image fabric width is 1024 bytes in the present frame, whole two field picture line number is 256 row, every capable image flyback time slot is 128 bytes, the auxiliary data that wherein every capable view data is carried is 74 bytes, comprise 70 byte auxiliary parameters, 2 byte row counting and the dark pixel of 2 bytes, the compression ratio of view data is 4: 1, the renewal of auxiliary data occurs in the 101st row and 161 row respectively, as shown in table 3 below is the dateout form of CCD compression unit image auxiliary data in present frame when upgrading 2 times, this data format has comprised the view data after the compression, auxiliary data 1 and auxiliary data 2 after the renewal, update times n, zero clearing sign 1 and zero clearing sign 2, and remove the 101st, the dark pixel data of all the other 254 row outside the 161st comprise the flyback data in addition:
Table 3
The update times n that auxiliary data takes place in the present embodiment associative list 3 as can be known is 2, the 1st row is 0 to the pairing zero clearing sign of the 100th row in the present frame, the corresponding zero clearing of the 101st row is designated the row number of this row, promptly 101 (zero clearing sign 1 in the table), the 102nd zero clearing sign that walks to each row between the 160th row still is 0 afterwards, and the row counting of the 101st row returns 0 again, and row counting accumulative total adds 1 afterwards, up to the 59th row (the 160th row before the corresponding counting again).Then the corresponding zero clearing of the 161st row is designated the row number of this row, promptly 161 (zero clearing sign 2 in the table), the 162nd zero clearing sign that walks to each row between the 256th row still is 0 afterwards, and the row counting of the 161st row returns 0 again, row counting accumulative total adds 1 afterwards, up to the 95th row (the 256th row before the corresponding counting again).Export to the CCD decompression unit after 2 auxiliary datas splicings after after compression unit will compress 256 row view data and 2 renewals, Shu Chu data comprise that also update times n, zero clearing sign 1 identify 2 with zero clearing, all the other 254 dark pixel data of going except that the 101st, the 161st simultaneously, the dark pixel of 2 bytes of wherein every capable image correspondence is all different, should all export the dark pixel data of 508 bytes.
Wherein the flyback time slot is 228717 ((1024+128) * 256-65536-659=228717) clock cycle, wherein 659=1+2+74 * 2+254 * 2.
The CCD decompression unit is according to the footline auxiliary data of previous frame compressed image transmission, recover present frame interior first and walk to auxiliary data that each row of auxiliary data renewal does not take place the 100th row, according to the auxiliary data 1 after the 1st renewal, recover the 101st and walk to the 160th row, be total to the corresponding auxiliary data of capable each row of 59+1=60, according to the auxiliary data 2 after the 2nd renewal, recover the 161st and walk to 256 row, altogether the corresponding auxiliary data of capable each row of 95+1=96.
The result who is transmission method in conventional transportation method and the present embodiment below compares:
When image compression rate was 4: 1, a two field picture amount of compressed data was:
1024 * 256/4=65536 (byte)
In the conventional method: the auxiliary data amount of two field picture output is:
256 * 74=18944 byte accounts for a transmission frame number according to 22% of total amount
Transmission update times 1 byte in the present embodiment, two zero clearing signs be auxiliary data totally 2 * 74 bytes, dark pixel 508 bytes of remaining row (as shown in table 3) of totally 2 bytes, the 101st row and the 161st row image, 1+2+74 * 2+254 * 2=659 byte accounts for a transmission frame number according to 1% of total amount altogether.
If utilize unnecessary slot transmission image compression data, image compression rate can be reduced to 65536/ (65536+18944-659) * 4=3.127 so doubly, recover picture quality thereby improve
If, adopt conventional method from reducing the bit rate angle that number passes passage,
Number biography channel code speed is reduced to the original input data rate
((1024×256)/4+256×74)/((1024+74)×256)=30%;
Employing the present invention program, number biography channel code speed reduce to the original input data rate
((1024×256)/4+659)/((1024+74)×256)=23.55%,
If the original camera data transfer rate is 200Mbps, be respectively 60Mbps and 47.10Mbps through the data transfer rate after 4: 1 image compression and the above-mentioned two kinds of auxiliary data transmission modes so.
Embodiment 4
Image auxiliary data upgrades 3 times in the present frame
Suppose that the ccd image fabric width is 1024 bytes in the present frame, whole two field picture line number is 256 row, every capable image flyback time slot is 128 bytes, the auxiliary data that wherein every capable view data is carried is 74 bytes, comprise 70 byte auxiliary parameters, 2 byte row counting and the dark pixel of 2 bytes, the compression ratio of view data is 4: 1, the renewal of auxiliary data occurs in the 51st row respectively, the 121st row and the 205th row, as shown in table 4 below is the dateout form of CCD compression unit image auxiliary data in present frame when upgrading 3 times, this data format has comprised the view data after the compression, auxiliary data 1 after the renewal, auxiliary data 2 and auxiliary data 3, zero clearing sign 1, zero clearing sign 2 and zero clearing sign 3, remove the 51st row, the 121st row, the dark pixel of all the other 253 row outside the 205th row comprises the flyback data in addition:
Table 4
The update times n that auxiliary data takes place in the present embodiment associative list 4 as can be known is 3, the 1st row is 0 to the pairing zero clearing sign of the 50th row in the present frame, the corresponding zero clearing of the 51st row is designated the row number of this row, promptly 51 (zero clearing sign 1 in the table), the 52nd zero clearing sign that walks to each row between the 120th row still is 0 afterwards, and the row counting of the 51st row returns 0 again, and row counting accumulative total adds 1 afterwards, up to the 69th row (the 120th row before the corresponding counting again).Then the corresponding zero clearing of the 121st row is designated the row number of this row, promptly 121 (zero clearing sign 2 in the table), the 122nd zero clearing sign that walks to each row between the 204th row still is 0 afterwards, and the row counting of the 121st row returns 0 again, row counting accumulative total adds 1 afterwards, up to the 83rd row (the 204th row before the corresponding counting again).Then the corresponding zero clearing of the 205th row is designated the row number of this row, promptly 205 (zero clearing sign 3 in the table), the 206th zero clearing sign that walks to each row between the 256th row still is 0 afterwards, and the row counting of the 205th row returns 0 again, row counting accumulative total adds 1 afterwards, up to the 51st row (the 256th row before the corresponding counting again), export to the CCD decompression unit after 3 auxiliary datas splicings after after compression unit will compress 256 row view data and 3 renewals, Shu Chu data also comprise update times n simultaneously, zero clearing sign 1, zero clearing sign 2 and zero clearing sign 3, remove the 51st row, the 121st row, the dark pixel data of all the other 253 row outside the 205th row, the dark pixel of 2 bytes of wherein every capable image correspondence is all different, should all export 506 byte datas.
Wherein the flyback time slot is 228644 ((1024+128) * 256-65536-732=228644) clock cycle, wherein 732=1+3+74 * 3+253 * 2.
The CCD decompression unit is according to the footline auxiliary data of previous frame compressed image transmission, recover present frame the interior the 1st and walk to auxiliary data that each row of auxiliary data renewal does not take place the 50th row, according to the auxiliary data 1 after the 1st renewal, recover the 51st and walk to the 120th row, be total to the corresponding auxiliary data of capable each row of 69+1=70, according to the auxiliary data 2 after the 2nd renewal, recover the 121st and walk to 204 row, be total to the corresponding auxiliary data of capable each row of 83+1=84, according to the auxiliary data 3 after the 3rd renewal, recover the 205th and walk to 256 row, altogether the corresponding auxiliary data of capable each row of 51+1=52.
The result who is transmission method in conventional transportation method and the present embodiment below compares:
When image compression rate was 4: 1, a two field picture amount of compressed data was:
1024 * 256/4=65536 (byte)
In the conventional method: the auxiliary data amount of two field picture output is:
256 * 74=18944 byte accounts for a transmission frame number according to 22% of total amount
Transmission update times 1 byte in the present embodiment, three zero clearing signs be auxiliary data totally 3 * 74 bytes, dark pixel 506 bytes of remaining row (as shown in table 4) of totally 3 bytes, the 51st row, the 121st row and the 205th row image, 1+3+74 * 3+253 * 2=732 byte accounts for a transmission frame number according to 1.1% of total amount altogether.
If utilize unnecessary slot transmission image compression data, image compression rate can be reduced to 65536/ (65536+18944-732) * 4=3.130 so doubly, recover picture quality thereby improve
If, adopt conventional method from reducing the bit rate angle that number passes passage,
Number biography channel code speed is reduced to the original input data rate
((1024×256)/4+256×74)/((1024+74)×256)=30%;
Employing the present invention program, number biography channel code speed reduce to the original input data rate
((1024×256)/4+732)/((1024+74)×256)=23.575%,
If the original camera data transfer rate is 200Mbps, be respectively 60Mbps and 47.15Mbps through the data transfer rate after 4: 1 image compression and the above-mentioned two kinds of auxiliary data transmission modes so.
Table 5 is employing conventional transportation method and above-mentioned 4 embodiment of employing the present invention, and what draw is improving efficiency of transmission, utilizing the performance of unnecessary slot transmission image compression data aspect raising recovery picture quality and reduction number biography channel code speed relatively:
Table 5
The above; only be the embodiment of the best of the present invention, but protection scope of the present invention is not limited thereto, anyly is familiar with those skilled in the art in the technical scope that the present invention discloses; the variation that can expect easily or replacement all should be encompassed within protection scope of the present invention.
The content that is not described in detail in the specification of the present invention belongs to this area professional and technical personnel's known technology.