CN1799492A - Quasi-lossless image compression and decompression method of wireless endoscope system - Google Patents
Quasi-lossless image compression and decompression method of wireless endoscope system Download PDFInfo
- Publication number
- CN1799492A CN1799492A CN 200510126255 CN200510126255A CN1799492A CN 1799492 A CN1799492 A CN 1799492A CN 200510126255 CN200510126255 CN 200510126255 CN 200510126255 A CN200510126255 A CN 200510126255A CN 1799492 A CN1799492 A CN 1799492A
- Authority
- CN
- China
- Prior art keywords
- filtering
- compression
- data
- image data
- row
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000007906 compression Methods 0.000 title claims abstract description 142
- 230000006835 compression Effects 0.000 title claims abstract description 142
- 238000000034 method Methods 0.000 title claims abstract description 95
- 230000006837 decompression Effects 0.000 title claims abstract description 20
- 238000001914 filtration Methods 0.000 claims description 137
- 239000002775 capsule Substances 0.000 claims description 33
- 238000006243 chemical reaction Methods 0.000 claims description 13
- 238000003908 quality control method Methods 0.000 claims description 12
- 230000006870 function Effects 0.000 claims description 7
- 229910003460 diamond Inorganic materials 0.000 claims description 4
- 239000010432 diamond Substances 0.000 claims description 4
- 238000013500 data storage Methods 0.000 claims description 3
- 238000011084 recovery Methods 0.000 claims description 3
- 238000010586 diagram Methods 0.000 abstract description 6
- 229910052799 carbon Inorganic materials 0.000 description 13
- 239000004744 fabric Substances 0.000 description 6
- 238000012545 processing Methods 0.000 description 6
- 230000009182 swimming Effects 0.000 description 6
- 238000002347 injection Methods 0.000 description 5
- 239000007924 injection Substances 0.000 description 5
- 238000004891 communication Methods 0.000 description 4
- 241001504519 Papio ursinus Species 0.000 description 3
- 230000001360 synchronised effect Effects 0.000 description 3
- 235000002566 Capsicum Nutrition 0.000 description 2
- 241000758706 Piperaceae Species 0.000 description 2
- 230000006978 adaptation Effects 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 2
- 230000015572 biosynthetic process Effects 0.000 description 2
- 238000007796 conventional method Methods 0.000 description 2
- 238000013144 data compression Methods 0.000 description 2
- 238000013461 design Methods 0.000 description 2
- 238000000605 extraction Methods 0.000 description 2
- 230000004927 fusion Effects 0.000 description 2
- 238000011002 quantification Methods 0.000 description 2
- 238000012360 testing method Methods 0.000 description 2
- NAWXUBYGYWOOIX-SFHVURJKSA-N (2s)-2-[[4-[2-(2,4-diaminoquinazolin-6-yl)ethyl]benzoyl]amino]-4-methylidenepentanedioic acid Chemical compound C1=CC2=NC(N)=NC(N)=C2C=C1CCC1=CC=C(C(=O)N[C@@H](CC(=C)C(O)=O)C(O)=O)C=C1 NAWXUBYGYWOOIX-SFHVURJKSA-N 0.000 description 1
- 238000004458 analytical method Methods 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 230000003467 diminishing effect Effects 0.000 description 1
- 238000007907 direct compression Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000009499 grossing Methods 0.000 description 1
- 238000007726 management method Methods 0.000 description 1
- 238000013507 mapping Methods 0.000 description 1
- OTCVAHKKMMUFAY-UHFFFAOYSA-N oxosilver Chemical compound [Ag]=O OTCVAHKKMMUFAY-UHFFFAOYSA-N 0.000 description 1
- 238000011160 research Methods 0.000 description 1
- 238000005070 sampling Methods 0.000 description 1
- 229910001923 silver oxide Inorganic materials 0.000 description 1
- NDVLTYZPCACLMA-UHFFFAOYSA-N silver oxide Substances [O-2].[Ag+].[Ag+] NDVLTYZPCACLMA-UHFFFAOYSA-N 0.000 description 1
- 238000012795 verification Methods 0.000 description 1
Images
Landscapes
- Compression Or Coding Systems Of Tv Signals (AREA)
- Endoscopes (AREA)
Abstract
The invention belongs to field of medical digital picture compression technique, which is a picture compression and decompression method based on compression first and color interpolation later, removing the high-frequency component of the picture with low-pass filter before compression, controlling the filtered wave picture dot percentage of the whole picture with mass controlling factor to improve the picture quality, determining the pixel area directly for coding without compression with interesting area to guarantee the picture quality in interesting area. The compression without damage is coded with JPEG-LS compression. The hardware diagram is relatively provided. Compressing the seven natural picture in the standard picture database for experiment, realizing the continuously adjustment of signal-to-noise ratio from 46.37 dB to infinity, the relevant compression rate changing in range of from 3.3 bit/ pixel point to 6.9 bit/ pixel point; if compressing the wireless endoscope picture, we can get the average picture compression rate of 2.18 bit/ pixel point and PSNR larger than 47.57dB.
Description
Technical field
Harmless and the accurate Lossless Image Compression method and the device of wireless endoscope system belong to the medical digital images compression technique area, relate in particular to from the technical field of the quality digital compression of images with similar Bayer coloured image array format of digital image sensor output.Accurate in the present invention Lossless Image Compression is defined as follows: the Y-PSNR of compressed images (PSNR) is greater than 46.37dB, and the error amount before and after the compression of arbitrary pixel is no more than 2.
Background technology
The color digital image pick off has been widely used in the video field of various high-end and low sides.But, therefore compression of color image data is seemed extremely important because the data volume of coloured image is big.What generally mainly adopt in the consumer image product of low side is lossy compression method; And in the application, particularly field of medical images of high-end color image sensor, picture quality is primary, and therefore harmless the and Lossless Image Compression research of high efficiency standard seems particularly important in the application of high-end color image sensor.
In wireless endoscope system, for the emission power consumption that reduces communication bandwidth and save view data (when the no compression of images, in the capsule image emissions power consumption account for total power consumption in the whole capsule 90%), the application of a kind of low complex degree, high-quality image compression algorithm is very important.The block diagram that has shown image acquisition, compression and the wireless transmitting system simplified in the system in the wineless endoscope capsule as Fig. 1.In wireless endoscope system, the endoscopic images data of the BAYER form of color image sensor collection will directly be compressed before carrying out color interpolation, be sent to external by wireless transceiver by chnnel coding again.Bayer color array form is a kind of form that the most generally adopts in digital image sensor, and Fig. 2 is this format chart.And external receiver carries out color interpolation to the view data that receives again after decompressing, and offers the doctor at last as last diagnostic image.Owing to adopt two joint silver oxide cells to power in the capsule, therefore require this image compression system to have low-complexity, to guarantee the low and low-power consumption of hardware spending.
In the application of most of conventional digital imageing sensors, all be earlier to carrying out interpolation processing from the digital picture with similar Bayer coloured image array of digital image sensor output, obtain the RGB data of full color, and then the full color data after the interpolation are compressed processing, at last the data after these compressions are stored in this locality, perhaps by wireless or wired communication mode the data of compression are sent, this method can be shown among Fig. 3.Yet this traditional method (method of first color interpolation recompression) be before compression of images earlier the initial data to the Bayer form of imageing sensor output carry out the full color interpolation, introduced new data redundancy but this makes before compression of images, this is unfavorable for the compression of image very much.People have begun to propose the method for the new interpolation of compression earlier that is used for imageing sensor at present, as shown in Figure 4.This compression method is by the similar Bayer color format view data of imageing sensor output directly being compressed, avoided the unnecessary data redundancy of color interpolation introducing, so this method for compressing image can being improved the performance of compression.But the methods of the various interpolations of compression earlier of these new propositions mainly propose at diminishing compression of images, and the improper application that the high quality graphic requirement is arranged is particularly to the application of medical images such as wireless endoscope etc.
Summary of the invention
The object of the invention is to provide a kind of and is used for efficient, the low complex degree of wireless endoscope system, based on harmless and the accurate Lossless Image Compression/decompression method and the device of similar Bayer coloured image array, its structure is as illustrated in Figures 5 and 6.
Method of the present invention is characterised in that: this method is a kind of compression of images, decompression method based on color interpolation after the compression earlier that is used for wireless endoscope system, and described method is made of successively compression method and decompression method, wherein:
The accurate Lossless Image Compression method of wireless endoscope system is with three components R of low pass filter to this Digital Image Data to the Bayer coloured image array data that a lot of high fdrequency components are arranged of imageing sensor output, B and G carry out low-pass filtering respectively, and then a kind of method that described three picture content data after the filtering are compressed with lossless compression-encoding respectively, in the wherein said Bayer coloured image array, image G component data assumes diamond in shape, data volume accounts for 1/2 of whole Bayer image data amount, R and B component are rectangular, respectively account for 1/4 of whole Bayer image data amount, described lossless compression-encoding is meant the JPEG-LS compressed encoding; Described compression method contains following steps successively:
Step 11: the JPEG-LS compressed encoding control unit in wineless endoscope capsule is set the input parameter that following low-pass filtering is used:
The quality control factor, promptly filtered pixel account for entire image pixel percentage ratio, represent with q; In the low pass filter in described wineless endoscope capsule, laterally select equably during filtering should filtering row; Vertically during filtering, select to answer the row of filtering equably;
Region of interest is represented with ROI, has comprised in this district not carry out filtering for the position and the shape of directly carrying out the lossless compress pixel, and this ROI represents to carry out the disposal ability of lossless compress;
Step 12: the JPEG-LS compressed encoding control unit in the step 11 after receiving q and ROI, these data be sent to be arranged in reach the wineless endoscope capsule low pass filter the low-pass filtering control device and the storage;
Step 13: foremost digital image sensor is gathered Bayer array color data in the described wineless endoscope capsule, and under the synchronizing signal control that described JPEG-LS compressed encoding control unit is sent this Bayer array color data is sent in the described low pass filter;
Step 14: the low-pass filtering control unit in the described low pass filter is sent to buffer memory SRAM built-in in the described low pass filter to the data that do not need filtering according to the ROI that sets; Carry out the data of filtering for needs, at first the G component is carried out rhombus to orthogonal map function, promptly the ignore of the rhombus G component in the color image data of described Bayer form is removed, then remaining data directly are combined into a rectangle, so with same group of wave filter, after according to following steps G, B, R component being used G component low pass filter and B, the filtering of R component filters respectively, deposit among the built-in buffer memory SRAM of described corresponding low pass filter:
The I step: laterally filtering, to slacken the radio-frequency component of horizontal direction in the original image, described horizontal filtering is carried out from left to right successively in proper order by row,
Expression rounds operation downwards, promptly
The 1st row view data after the filtering=former the 1st row view data,
· · ·
II step: the new data that the described I step is obtained carries out vertical filtering, and with level and smooth radio-frequency component longitudinally, described vertical filtering has by row goes up to carrying out according to following order down,
Expression rounds up, promptly
The 1st row view data=former the 1st ranks view data after the filtering,
· · ·
Step 15: described JPEG-LS compressed encoding control unit is sent to the filtered view data of be set forth in the JPEG-LS encoder that is built in the described wineless endoscope capsule after the filtered view data of being stored among the built-in SRAM of described low pass filter is sent to the SRAM that is arranged in described wineless endoscope capsule and treats all images data filtering;
Step 16: described JPEG-LS encoder carries out lossless compress to the whole filtered view data of being received by the JPEG-LS lossless compression-encoding under the control of JPEG-LS compressed encoding control unit.
Step 17: after treating that the described squeeze operation of step 16 is finished, the described JPEG-LS encoder image data storage after compression is in described SRAM and deliver to the chnnel coding unit, output to the wireless transceiver that is positioned at described wineless endoscope capsule after encoding, send to external with wireless mode;
Harmless and the accurate lossless image decompression method of wireless endoscope system and under the control unit control of external JPEG-LS losslessly encoding, carry out according to the following steps:
Step 21: external wireless transmitter receives that related device in the described wineless endoscope capsule sends pass through filtering, packed data successively after, described data are sent to a JPEG-LS decoder and decode;
Step 22: described JPEG-LS decoder is to after the packed data in the step 21 decoding, respectively G component and B, the R component is sent to G component reconfigurable filter and B, R component reconfigurable filter are reconstructed filtering;
Step 23: reconfigurable filter described in the step 22 is reconstructed filtering respectively to described G component and B, R component successively according to the following steps:
The I step: described reconfigurable filter is not needing the data of reconstruct filtering to be sent among the buffer memory SRAM built-in in this reconfigurable filter in the ROI zone of setting; Undertaken by filtering of the following stated axial reconstruction and horizontal reconstruct filtering successively according to the q value of setting for the data that need reconstruct filtering;
The II step: axial reconstruction filtering: carry out from the bottom to top line by line in turn as follows, recovered vertical initial data;
The capable image data value of the former m of the capable image data value=2* of m-capable image data value of former m-1 after the reconstruct, the capable image data value of the former m-1 of the capable image data value=2* of m-1-capable image data value of former m-2 after the reconstruct,
· · ·
Former the 2nd row image data value of the 2nd row image data value=2*-former the 1st row image data value after the reconstruct,
The 1st row image data value after the reconstruct=former the 1st row image data value,
III step: laterally reconstruct filtering: obtain to such an extent that new data carries out by row as follows in turn from right to left to the II step, to finish the recovery of horizontal direction data;
The former m row of m row image data value=2* image data value-former m-1 row image data value after the reconstruct, the former m-1 row of m-1 row image data value=2* image data value-former m-2 row image data value after the reconstruct,
· · ·
Former the 2nd row image data value of the 2nd row image data value=2*-former the 1st row image data value after the reconstruct,
The 1st row image data value after the reconstruct=former the 1st row image data value;
The IV step: the filtered view data of reconstruct is sent among the described built-in SRAM;
Step 24: described reconfigurable filter is sent to rhombus to the G component data through reconstruct filtering and carries out conversion in the rectangular transform device;
Step 25: the G component data that passes through conversion after the reconstruct filtering that the filtered B of reconstruct, R component data and the step 24 that step 23 is obtained obtains again is sent to the original Bayer color image data that has been recovered after the adder addition;
Step 26: the data that step 25 is obtained are sent to a color interpolation processor and obtain the full-color image data after by the Laplace method interpolation.
Described lossless compression-encoding can be JPEG-LS, JPEG2000 lossless compress part and FELICS algorithm (P.G.Howard and J.S.Vitter, Fast and Efficient Lossless Image Compression[A], IEEE DataCompression Conference[C], USA, any in 1993:351-360.).
The present invention realizes in order to lower device: described device is one and is positioned at intravital wineless endoscope capsule that it comprises:
Inner asic chip contains: rhombus to the rectangular transform unit, the control unit of G component image data low-pass filter unit, B, R component low-pass filter unit, JPEG-LS lossless compression unit and JPEG-LS lossless compress, wherein:
Rhombus is to orthogonal converter unit, and this unitary input links to each other with the imageing sensor that can export the Bayer color image data, so that the blank spot in the rhombohedral G component data is removed, exports after again the data of being left directly being combined into a rectangle again;
Low pass filter, the low-pass filter unit that contains G component and B, R component, described low pass filter contains: SRAM, G, B, R component depositor, data selector A, data selector B and the filtering operation device of low-pass filtering control device, linage-counter, column counter, input synchronous extraction circuit, buffer memory two row view data, wherein:
The low-pass filtering control device is provided with: quality control factor q value input, and described q is meant: filtered pixel accounts for the percentage ratio of entire image pixel; Region of interest ROI value input, described ROI value are meant to comprise and do not carry out filtering for the position and the shape of directly carrying out the lossless compress pixel;
Linage-counter and column counter, its outfan link to each other with the respective input of described low-pass filtering control device respectively;
The input synchronization extractor is provided with: Bayer view data input, and this input links to each other with the corresponding output end of image sensor cell; The synchronous signal input end that comprises the synchronised clock of row/field sync signal and each pixel, this input links to each other with the corresponding output end of image sensing cell; The input synchronization extractor is sent to the row and column counter unit to the corresponding line and the column information that extract respectively; This input synchronization extractor under the control of described synchronizing signal line by line or by the Bayer view data data that are listed as 8 current ranks of output;
Buffer memory SRAM is provided with the address signal input, and this input links to each other with the corresponding output end of described low-pass filtering control device, also is provided with the data input pin and the outfan of last row or column;
G component depositor, B component depositor and R component depositor respectively are provided with the gating signal input, and this input links to each other with the corresponding output end of described low-pass filtering control device; Be provided with the data input pin of last row or column, this input links to each other with the corresponding output end of described buffer memory SRAM; Also be provided with the data input pin of current row or column, this input links to each other with the unitary corresponding output end of described input simultaneous extraction;
Data selector A is provided with the corresponding input of dateout with described G, B, the current row or column of R component depositor, last row or column;
Arithmetical unit, the corresponding data output end of data input pin and described data selector A linked to each other, and successively the view data of each component of input was carried out horizontal filtering and vertically filtering according to following compute mode:
The I step: laterally filtering, to slacken the radio-frequency component of horizontal direction in the original image, described horizontal filtering is carried out from left to right successively in proper order by row,
Expression rounds operation downwards, promptly
The 1st row view data after the filtering=former the 1st row view data,
· · ·
II step: the new data that the described I step is obtained carries out vertical filtering, and with level and smooth radio-frequency component longitudinally, described vertical filtering has by row goes up to carrying out according to following order down,
Expression rounds up, promptly
The 1st row view data=former the 1st ranks view data after the filtering,
· · ·
Data selector B is provided with the gating signal input, and this input links to each other with the corresponding output end of described low-pass filtering control device, so that the input that input needn't view data filtering and filtering respectively; Be provided with the data input pin in the ROI district, this input links to each other with the Bayer color image data outfan of the current row or column of described input synchronization extractor, also is provided with the filtering data input, and this input links to each other with the corresponding data outfan of described arithmetical unit; The view data outfan that also has the transmissive wave of a last row or column in addition, this outfan links to each other with the view data input of the last row or column of described buffer memory SRAM, and the view data outfan of described last row or column still is the Bayer color image data outfan after a described low pass filter of process is handled;
SRAM is provided with Bayer color image data input, and this input links to each other with the corresponding data outfan of described low pass filter; Also be provided with a control signal input, this input links to each other with the corresponding output end of the control unit of described JPEG-LS lossless coding;
JPEG-LS lossless compression-encoding device is pressed JEPG-LS lossless compress normative document coding, and this encoder contains:
The buffer memory of four parameter A, B, C, N, the corresponding outfan of four parameter A setting in each input and the described SRAM, B, C, N links to each other, described four parameters are all corresponding with a context condition, A refers to accumulate under the current context condition absolute error value, C is meant the mean error value, N is meant the total degree that current context occurs, the B parameter is the intermediate quantity of to calculate and introducing in order to simplify, A, B, C, N parameter are to carry out self adaptation adjustment usefulness for self content of image, are used to reduce the error of predictive value;
Distance of swimming scanning and Run-Length Coding circuit, the distance of swimming pattern of this circuit are set end and are linked to each other with the outfan of the distance of swimming mode value of described sram cache;
The context decision circuit, the control unit interconnection of this circuit and described JPEG-LS lossless compression-encoding, and have input to link to each other with the data output end of SRAM.This decision circuit is carried out the calculating and the quantification of local gradient according to the context that is compressed a little, and to the fusion of gradient after quantizing and the selection of compact model; Described local gradient, three Grad (i.e. difference between two pixels) that refer to pixel to be compressed 4 formation on every side, local gradient comprises three gradient components, respectively corresponding pixel to be compressed upper right with just go up, just going up and two upper left horizontal gradients, and upper left with a just left vertical gradient;
The error prediction circuit, the control signal data terminal of this circuit links to each other with the control unit corresponding output end of described JPEG-LS lossless compression-encoding, and there is input to link to each other with the data output end of SRAM, another outlet links to each other with parameter calculation unit, to carry out reading and upgrading write-back of A, B, C, N parameter, 4 value was slightly predicted around the error prediction circuit reached according to local gradient, and A, B, C, N parameter according to the context value correspondence of current pixel are finely tuned the prediction initial value, thereby finally determine predictive value, upgrade A, B, C, N parameter then;
The computing unit of parameter A, B, C and N: be provided with four data ports, described port links to each other with described four parameter A, B, C, the unitary corresponding output end of N buffer area; Be provided with an error input port, described port links to each other with the error prediction circuit; This unit is finished carrying out computing from the error prediction value of error circuit input and the analog value that reads in from parameter A, B, C, N buffer area unit, and the resulting result of computing is sent back to parameter A, B, C, N buffer area unit and the storage of error prediction unit;
The control unit of JEPG-LS lossless compression-encoding is provided with the outfan of described q, ROI value, and the corresponding output end of the low-pass filtering control device in this outfan and the described low pass filter links to each other; Simultaneously, the control unit of this JPEG-LS lossless compression-encoding again with described low pass filter, SRAM and JPEG-LS condensing encoder in context decision circuit, error control circuit and distance of swimming scanning link to each other with coding circuit.
The invention effect is as follows:
1) this compression method a kind of efficient, low complex degree that is used for wireless endoscope system is provided, based on the harmless and accurate Lossless Image Compression of similar Bayer coloured image array.In order to prove the effectiveness of this compression method, a Bayer color format view data part ' lena ' from the standard picture storehouse, ' baboon ', ' airplane ', ' house ', ' lake ' obtains by the sampling operation in ' peppers ' and 7 width of cloth standard pictures such as ' splash '; Another part image is from 6 width of cloth wireless endoscope images that collect.
Natural image in the standard picture storehouse is adopted this compression method, and when quality control factor q=1, the average compression bit rate of coloured image is peak signal noise ratio (the PSNR)>=46.37dB of 3.35 bits/pixel point, image; Adopting this compression method that the average compression bit rate of coloured image can be provided to the wireless endoscope image is peak signal noise ratio (the PSNR)>=47.57dB of 2.18 bits/pixel point, image.
2) implementation complexity of the low pass filter that relates in this method is very low, only needs addition and shift operation to realize.
3) because the compression method that the present invention proposes is to compress before color interpolation, with the method for compressing behind the first color interpolation of routine relatively, the G component data that need compress has only half of conventional method G component data amount, and R and B component all have only 1/4th of conventional method, therefore this method greatly reduces the data volume of compression, has reduced hard-wired complexity and memory space.
4) can provide the signal to noise ratio view data of the accurate lossless compress of continually varying or lossless compress within the specific limits.Show in the result that the image in the standard picture storehouse is compressed: by the control to the input parameter quality factor of low pass filter can obtain signal to noise ratio from about 46.37dB to infinitely great scope in the view data of the accurate lossless compress of continually varying, lossless compress, corresponding compression ratio changes from average 3.35 bits/pixel point~6.9 bits/pixel points.
5) can provide specifying region of interest ROI zone to realize functions such as lossless compress, promptly support region of interest (ROI) processing capacity.By to region of interest (ROI) compression control port.The shape of ROI can be arbitrarily such as rectangle, circle, ellipse and arbitrary shape etc.
For the effectiveness of verification algorithm, table 1 has been listed the algorithm of paper proposition and the result that following several algorithm compares.
A) ' compression method of the present invention (q=1), lossless compression-encoding JPEG-LS ': the compression method that the present invention proposes, lossless compression-encoding wherein partly adopts the JPEG-LS compressed encoding, the quality control factor q=100% of low pass filter.
B) ' compression method of the present invention (q=1), lossless compression-encoding JPEG2000 ': the compression method that the present invention proposes, lossless compression-encoding wherein partly adopts the JPEG2000 compressed encoding, the quality control factor q=100% of low pass filter.
C) ' compression method of the present invention (q=1), lossless compression-encoding FELICS ': the compression method that the present invention proposes, lossless compression-encoding wherein partly adopts the FELICS compressed encoding, the quality control factor q=100% of low pass filter.
D) ' the accurate lossless compress of JPEG-LS (the near parameter is 2) ': directly by the accurate lossless compression-encoding device compression of JPEG-LS, wherein the near parameter is 2 to the BAYER data, and promptly the error amount of each pixel of compressed images is not more than 2.
E) ' compression method of the present invention (q=0.25), lossless compression-encoding JPEG-LS ': the compression method that the present invention proposes, lossless compression-encoding wherein partly adopts the JPEG-LS compressed encoding, the quality control factor q=25% of low pass filter.
F) ' (the Chin Chye Koh of the structure conversion method in the list of references, Jayanta Mukherjee and Sanjit K.Mitra, New Efficient Methods of Image Compression in Digital Cameras with Color Filter Array[J] (the efficient method for compressing image that is used for the digital camera of color filter array view data output), IEEE Trans.ConsumerElectronics, Nov 2003,49 (4): 1448-1456.) ': the BAYER data are carried out lossless compression-encoding through JPEG-LS after by the structure switched filter filtering in the document again.
G) ' JPEG-LS is the method for compression directly ': adopt JPEG-LS directly the view data of Bayer color format to be compressed.
F) ' JPEG2000 directly compresses ': adopt JPEG2000 directly the view data of Bayer color format to be compressed.
Table 1 is that 7 width of cloth are marked on a map as the result who compresses in the alignment image storehouse, it shows: the average compression bit rate of the compression method (q=1) that the present invention proposes reaches 3.35 bits/pixel point, mean P SNR value reaches 46.43dB, and each pixel point value error of compression back can be greater than 2, so this algorithm has guaranteed the quality of compressed image; The compression bit rate that compression method obtained (q=1) that the present invention proposes will be significantly less than and adopt JPEG-LS and JPEG2000 lossless encoder to the compression bit rate under the directly compression situation of Bayer color format view data, and image still keeps very high signal to noise ratio (greater than 46.37dB) after recovering; Compression result in the table has shown that also the lossless compression-encoding in the compression method that the present invention proposes adopts JPEG-LS and than adopting JPEG2000 and FELICS better compression performance arranged; When q=0.25, the compression performance of the compression method that the present invention proposes will be higher than " structure conversion " algorithm in the list of references; When q=1, the compression performance of the compression method that the present invention proposes will be higher than the accurate lossless compress (the near parameter is 2) of JPEG-LS.
Table 2 is result of the tests that the typical wireless endoscope image of six width of cloth is compressed.The result has shown that equally the compression algorithm that the present invention proposes has than " structure conversion " compression performance that algorithm is higher in accurate lossless compress of JPEG-LS (the near parameter is 2) and the list of references.
Result of the test shows from the angle of compression performance and hardware realization complexity to be considered, the compression method that the present invention proposes is the optimum algorithm that directly Bayer color array view data is carried out accurate lossless compress, also therefore is appropriate to the requirement of wineless endoscope capsule system to low complex degree, low-power consumption.
Experimental result and the comparison of 7 width compression of images in table 1 pair standard picture storehouse
Image (512*512) | airplane | baboon | house | lake | lena | peppers | splash | |
Compression method of the present invention (q=1), lossless compression-encoding JPEG-LS | PSNR(dB) | 46.4160 | 46.3914 | 46.4328 | 46.4011 | 46.4099 | 46.5528 | 46.5374 |
CR(bpp) | 2.8963 | 4.6882 | 3.3301 | 3.7741 | 3.1440 | 3.2130 | 2.4590 | |
Compression method of the present invention (q=1), lossless compression-encoding JPEG2000 | PSNR(dB) | 46.4160 | 46.3914 | 46.4328 | 46.4011 | 46.4099 | 46.5528 | 46.5374 |
CR(bpp) | 4.7924 | 6.6782 | 5.0576 | 5.7585 | 5.0936 | 5.1689 | 4.2871 | |
Compression method of the present invention (q=1), lossless compression-encoding FELICS | PSNR(db) | 46.4160 | 46.3914 | 46.4328 | 46.4011 | 46.4099 | 46.5528 | 46.5374 |
CR(bpp) | 4.1916 | 5.6328 | 5.4711 | 5.5309 | 6.5132 | 7.0018 | 6.8462 | |
The compression that the accurate harmless parameter of JPEG-LS equals 2 | PSNR(dB) | 45.1718 | 45.3809 | 45.1541 | 45.1337 | 45.1239 | 45.2419 | 45.2670 |
CR(bpp) | 3.0123 | 6.6121 | 3.9325 | 4.4080 | 4.8955 | 5.2372 | 4.8723 | |
Compression method of the present invention (q=0.25), lossless compression-encoding JPEG-LS | PSNR(db) | 52.4090 | 52.3816 | 52.4528 | 52.3953 | 52.4134 | 525909 | 52.6665 |
CR(bpp) | 4.3952 | 6.3473 | 5.2241 | 5.6612 | 4.7357 | 4.7772 | 3.7493 | |
A list of references mistake! Do not find Reference source. In the structure conversion method | PSNR(db) | 52.4083 | 52.3809 | 52.3770 | 52.3889 | 52.3387 | 525615 | 52.5792 |
CR(bpp) | 4.5939 | 6.6935 | 5.8489 | 5.8734 | 5.1658 | 4.9416 | 4.1000 | |
JPEG-LS directly compresses | PSNR(dB) | ∞ | ∞ | ∞ | ∞ | ∞ | ∞ | ∞ |
CR(bpp) | 5.2069 | 7.5596 | 6.2539 | 6.8519 | 7.4460 | 7.6901 | 7.4404 | |
JPEG2000 directly compresses | PSNR(dB) | ∞ | ∞ | ∞ | ∞ | ∞ | ∞ | ∞ |
CR(bpp) | 4.5739 | 5.7557 | 5.2302 | 5.8539 | 5.4564 | 5.6753 | 5.0229 |
CR represents compression bit rate, and ∝ represents infinity
The comparison of several image compression algorithms of table 2 (the typical wireless endoscope image of 6 width of cloth)
Image (256 * 256) | (a) | (b) | (c) | (d) | (e) | (f) | |
Compression method of the present invention (q=1), lossless compression-encoding JPEG-LS | PSNR(db) CR(bit/pixel) | 46.891 1.962 | 46.882 2.176 | 46.921 2.223 | 46.875 2.256 | 46.904 2.081 | 46.913 2.411 |
Compression method of the present invention (q=0.25), lossless compression-encoding JPEG-LS | PSNR(db) CR(bit/pixel) | 52.815 3.095 | 52.798 3.331 | 53.006 3.581 | 52.962 3.636 | 52.991 3.209 | 53.017 3.752 |
The accurate lossless compress of JPEG-LS (the near parameter is 2) | PSNR(db) CR(bits/pixel) | 45.387 2.168 | 45.734 2.412 | 45.736 2.228 | 45.219 2.6311 | 45.581 2.174 | 45.592 2.415 |
Structure conversion method in the list of references | PSNR(db) CR(bits/pixel) | 51.731 3.815 | 51.698 4.022 | 51.812 4.206 | 51.296 4.318 | 51.799 4.031 | 51.825 4.527 |
The compression method that the present invention proposes also has the function that lossless compress can be adjusted and ROI was carried out to the compressed image quality except having low-complexity and high compression performance.Figure 15 has shown three width of cloth image (baboon, lena and airplane) adjustable picture quality PSNR and the relation of compression bit rate, to infinitely great continuous adjustable function, corresponding average compression bit rate o'clock changes to 6.9 bits/pixel point ranges from 3.35 bits/pixel picture quality PSNR from 46.37dB.
Description of drawings
The image compression system model of simplifying in Fig. 1 wireless endoscope;
Fig. 2 BAYER color array format chart;
Fig. 3 tradition is based on image acquisition, compression and the transmission system (compression method behind the first color interpolation) of digital image sensor;
The image acquisition that Fig. 4 is new, compression and transmission system (compression back color interpolation method earlier) based on digital image sensor;
A kind of pressure texture block diagram that is used for wireless endoscope system that Fig. 5 the present invention proposes based on color interpolation method after the compression earlier;
A kind of decompression structured flowchart that is used for wireless endoscope system that Fig. 6 the present invention proposes based on color interpolation method after the compression earlier;
The G component of Fig. 7 Bayer color format view data from rhombus to orthogonal conversion figure;
Fig. 8 is based on digital-image non-loss and the accurate Lossless Image Compression/decompression method and the device instance graph of similar Bayer coloured image array;
The horizontal filtering of Fig. 9 a;
The vertical filtering of Fig. 9 b;
The filtering of Fig. 9 c axial reconstruction;
The horizontal reconstruct filtering of Fig. 9 d;
During Figure 10 (a) q=50%, the filtered line number that transversal filter is selected; (b) when q=25%, the filtered columns that longitudinal filter is selected;
Algorithm flow chart when Figure 11 picture quality is adjusted;
In Figure 12 frame of broken lines the ROI that selects;
The VLSI structure of Figure 13 method for compressing image;
The hardware implementation structure of low pass filter in Figure 14 image compression algorithm;
The relation of compression bit rate and compression ratio when Figure 15 adjusts the quality control factor of compression of images;
The program flow diagram of the compression method that Figure 16 the present invention proposes;
The program flow diagram of the decompression method that Figure 17 the present invention proposes;
The specific embodiment:
Fig. 1 is the block diagram of image acquisition, compression and the wireless transmitting system of system simplification in the wineless endoscope capsule.The Bayer color format view data of the imageing sensor output in the wineless endoscope capsule directly is compressed, and delivers to the chnnel coding unit then, carries out outputing to wireless transceiver after the chnnel coding, sends to external with the form of radio wave.Capsule also can be delivered to the channel-decoding unit then by the control command data of wireless transceiver reception from the outside, and decoded data output to control unit, are controlled next step action of capsule internal circuit according to the control command that receives by control unit.
Fig. 2 is the BAYER format color image array of imageing sensor output.Wherein image G component data assumes diamond in shape, and data volume accounts for 1/2 of whole Bayer image data amount, and R and B component are rectangular, respectively account for 1/4 of whole Bayer image data amount.
Fig. 3 is the method for compressing behind traditional first color interpolation.The color image data of imageing sensor output Bayer form is at first handled the rgb image data that the back forms full color through color interpolation, then the view data of this full color is carried out data compression, data after the compression send in this locality storage or by wired or wireless communication modes, at last to be stored in this locality or decompress by the packed data that wired or wireless mode obtains after the view data of full color after can being restored.
The compression method that Fig. 4 is new based on color interpolation after the compression earlier.The Bayer color format view data of imageing sensor output directly is compressed, data after the compression will send in this locality storage or by wired or wireless communication modes, at last the packed data that is stored in this locality or obtain by wired or wireless receive mode is decompressed, at last the Bayer color format view data after decompressing is carried out color interpolation and handle the rgb image data that the back forms full color, revert to the rgb image data of full color.
Fig. 5 is the pressure texture based on color interpolation after the compression earlier that is used for wireless endoscope system that the present invention proposes.The color image data of imageing sensor output Bayer form, after G component in the data at first arrives orthogonal conversion by rhombus, be sent to and carry out smothing filtering in the low pass filter, send into the lossless compress module at last and carry out lossless compress, wherein R and B component are exactly rectangle originally, therefore will directly carry out low-pass filtering respectively by low pass filter, send into the lossless compress module at last and carry out lossless compress, smoothing filter has two control parameters: the quality control factor and region of interest (ROI) parameter.
Be that the packed data of exporting among Fig. 5 is decompressed among Fig. 6, G component to the output that decompresses arrives rhombohedral conversion by rectangle then, sending into reconfigurable filter again is reconstructed, R that exports decompressing and B component are then directly sent into reconfigurable filter respectively and are reconstructed, reconfigurable filter has two input control parameters identical with the low pass filter of compression section: the quality control factor and region of interest (ROI) parameter, G to two reconfigurable filter outputs, the color image data that R and B component are reassembled into the Bayer form by adder outputs to the color interpolation processing unit and carries out color interpolation, obtains the data output of full color RGB at last.
Fig. 7 removes the ignore of the rhombus G component in the color image data of Bayer form, then remaining data point directly is combined into a rectangle.
Shown in Figure 8 be efficient, the low complex degree that is used for wireless endoscope system that the present invention relates to, based on the concrete device for carrying out said of the harmless and accurate Lossless Image Compression/decompression method of similar Bayer coloured image array.Comprise compressor (comprising that rhombus arrives orthogonal converter unit, low pass filter, JPEG-LS encoder) and wireless receiving and dispatching injection device A that data acquisition, the present invention propose in the wineless endoscope capsule; Outside wireless capsule, comprise data decompression and recovery device that the present invention proposes, and wireless receiving and dispatching injection device B group.Data acquisition, compressor in the capsule are mainly finished the collection of Bayer color format view data and the process of compression, this device be the CCD/CMOS digital image sensor foremost, it exports Bayer color format view data after finishing image acquisition.Because Bayer color format data have a lot of high fdrequency components, the initial data that does not add processing is not suitable for direct compression, thereby needs initial data is carried out the low pass The disposal of gentle filter.The pixel of G component is arranged and is assumed diamond in shape in the Bayer color format view data, before to the filtering of G component, need to carry out to orthogonal conversion by rhombus, carry out low-pass filtering then, R and B component then can directly carry out low-pass filtering, last filtered three components will be sent into lossless compression unit respectively and be compressed, and compression unit adopts the lossless compression-encoding of JPEG-LS.This compressor adopts special IC (ASIC) to realize.Data after compression will be transmitted into outside the capsule with the radio wave form by wireless receiving and dispatching injection device A.
The outer wireless receiving and dispatching injection device B of capsule receives from the compressing image data of launching in the capsule, these data are carried out data decompression by the decompression method that the present invention proposes, and the data after the decompression are handled the rgb image data that reverts to full color by color interpolation at last.Decompressing device comprises that reconfigurable filter, rhombus are to orthogonal converter unit, adder and JPEG-LS decoder.The part that decompresses is realized by software in instantiation.
At first define the standard of comparison of an objective compression of images, as follows face formula (1):
Low pass filter design:
At first the G component is carried out earlier arriving orthogonal map function as the rhombus of Fig. 7,, and adopt one group of identical wave filter then to G, B, R filtering respectively.This group wave filter is in two sub-sections: laterally filtering see Fig. 9 a and vertically filtering see Fig. 9 b.Shown in the figure 4 * 4 bayer data.Among Fig. 9 a, ' ● ' represents first initial data,
Represent data after the filtering of m row,
Represent m to be listed as unfiltered initial data, in horizontal filtering, other data except that first column data all will be passed through Filtering Processing, and concrete operations can be expressed by formula (2), wherein
Expression rounds operation, has
The order of filtering operation is from left to right.
The 1st row view data after the filtering=former the 1st row view data,
· · ·
Through after the horizontal filtering, the radio-frequency component of horizontal direction significantly reduces in the original image, and for further level and smooth radio-frequency component longitudinally, the filtering dateout inserts a longitudinal filter, filtering such as Fig. 9 b.Among Fig. 9 b, ' ● ' represents the first trip initial data,
Represent data after the capable filtering of m,
Represent the capable unfiltered initial data of m, concrete operations can be used formula (3) expression.Wherein
Be to round operation, but
Filtering in accordance with the order from top to bottom.
The 1st row view data=former the 1st ranks view data after the filtering
· · ·
The reconfigurable filter design:
The reconfigurable filter group also comprises two wave filter: axial reconstruction wave filter and horizontal reconfigurable filter, this two parts reconstruct filtering is corresponding with horizontal filtering respectively at vertical filtering of front.Axial reconstruction filtering purpose is to recover vertical initial data, and the filtering operation process is seen Fig. 9 c, and restructuring procedure is undertaken by row, according to from the bottom to top in proper order, recovers the lastrow data value one by one till first trip, and concrete filtering can be expressed by formula 4.During axial reconstruction, the sequence number in the formula is represented the sequence number of row.
The capable image data value of the former m of the capable image data value=2* of m-capable image data value of former m-1 after the reconstruct
The capable image data value of the former m-1 of the capable image data value=2* of m-1-capable image data value of former m-2 after the reconstruct
· · ·
Former the 2nd row image data value of the 2nd row image data value=2*-former the 1st row image data value after the reconstruct
The 1st row image data value after the reconstruct=former the 1st row image data value (4)
Laterally reconfigurable filter is finished the function that the horizontal direction data are recovered, restructuring procedure is undertaken by row, according to dextrosinistral order, recover the previous column data one by one till first, the also available formula of process (4) is described, but the sequence number in the formula is represented the sequence number that is listed as, and its filtering operation process is seen Fig. 9 d.
Error analysis:
The error generation root that proposes algorithm is the horizontal and vertical filtering operation in low pass filter, also is the operation that rounds in formula (2) and (3).What adopt in the actual wireless endoscopic system is the precision of 8 bits/pixel points.The error e that horizontal filtering formula (2) causes
HCan use formula (5) to express, in the formula x be in the expression filtering adjacent two pixel point values and, be the integer of one 8 bit.From this formula as can be known: e
H=0 or 1.
The error e that same vertically filtering formula (3) causes
VCan use formula (6) to express.From this formula as can be known: e
V=0 or-1.
Therefore by after the horizontal and vertical filtering, total error can be described with following formula (7).Wherein in the formula
Part is because the final error after error enlarges by horizontal reconfigurable filter is again introduced in vertical filtering, and
Then be because the error that horizontal filtering is introduced.Therefore the total introducing error of low pass filter will can be greater than 2 as can be known by formula (6).
By the result that great amount of images is added up, can obtain shown in the formula (8) about horizontal filter and longitudinal filter introduce the probability distribution of error respectively.
Introduce the probability distribution of error in conjunction with the error formula (7) of low pass filter and horizontal and vertical filtering, can draw probability distribution that low pass filter must introduce error amount face formula (9) as follows.
Therefore according to the definition (1) of the probability of error distribution formula (8) and the PSNR of low pass filter, the theoretic PSNR value that can draw the reconstructed image data after the decompression will be 46.37dB, see formula (10).Therefore the accurate lossless compression algorithm that proposes of the paper error amount that in theory not only guarantees to understand each pixel after the compression reconfiguration is no more than 2, guarantees also that simultaneously image PSNR after the understanding compression reconfiguration is greater than 46.37dB.
Can select the quality of how much adjusting compressed images and the compression ratio of pixel number that will be filtered in the algorithm by the quality factor of control wave filter.Filtered pixel accounts for the percentage ratio of entire image pixel in algorithm, will be used as the input parameter of low pass filter, i.e. the quality control factor.If quality factor is introduced formula (1), can draw the formula (11) that to adjust picture quality.Q represents quality factor in the formula, q≤1.When q=0, the expression lossless compress, it is infinitely great that PSNR is tending towards, and when q=1, represents that all pixels will be all filtered, at this moment PSNR=46.37dB.Therefore this algorithm can provide PSNR from about 46.37dB to infinitely-great adjustment.
In order to simplify the selection of filtered point, the present invention has provided a straightforward procedure and has carried out the filtering point selection in the application of reality.Change the quality of the selection of filtering row or column being adjusted compressed image into by selection to filtering point.When horizontal filtering,, select the row of this filtering equably according to quality factor; When vertical filtering, then select the row of this filtering equably as far as possible.Figure 10 shown when q=25%, vertically with the filtered line number and the columns of transversal filter selection.The flow process of the visible Figure 11 of algorithmic procedure when carrying out the picture quality adjustment.
In order to guarantee the quality of region of interest (ROI) view data, algorithm provides the disposal ability that can carry out lossless compress to ROI.Information such as ROI position that comprises in the input ROI parameter of algorithm according to wave filter and shape are not carried out filtering to the point in the ROI and are realized lossless compress to ROI.Provided the example that ROI shown in one 2 * 2 empty frame is carried out lossless compress as Figure 12, G44 wherein, R45, four of B54 and G55 name a person for a particular job not filtered.
The large scale integrated circuit of image compression circuit (VLSI) structure is seen Figure 13.At first will carry out the low pass smothing filtering respectively to G, B and R component from the Bayer array color image data and the various synchronizing signal of imageing sensor output by a low pass filter, deposit among the SRAM then, finish up to all pixel filtering, by the JPEG-LS module filtered data are read from SRAM again and carry out lossless compress, data after the compression will be deposited back SRAM once more, can be transmitted into the capsule outside with different code checks so that the wireless receiving and dispatching injection device to be provided.The hardware of JPEG-LS realizes that part mainly comprises following a few part:
A) control unit of JPEG-LS
Main realization is to the filtering of the Bayer view data of input and the control of data storage, and the compression of data, and the output result of contextual decision package judged the coding mode that current compression point should enter, it is also controlling the Clock management of whole JPEG-LS compression module.
B) context decision unit
This module is to carry out the calculating and the quantification of local gradient according to the current context that is compressed a little, and to the fusion of gradient after quantizing and the selection of compact model, the result of decision-making will send control unit back to, described local gradient, three Grad (i.e. difference between two pixels) that refer to pixel to be compressed 4 formation on every side, local gradient comprises three gradient components, respectively corresponding pixel to be compressed upper right with just go up, just going up and two upper left horizontal gradients, and upper left with a just left vertical gradient.。
C) error prediction
This unit is at first finished being compressed intermediate value rim detection a little, also promptly to being compressed the fixedly prediction of point value, and fixing predictive value is carried out adaptively correcting, calculates the error of predictive value then, and to the classification and the mapping of error amount.
D) computing unit of parameter A, B, C and N
At error prediction with in calculating, need use four groups of parameter A, B, C and N, described parameter A refers to accumulate under the current context condition absolute error value, C is meant the mean error value, N is meant the total degree that current context occurs, the B parameter is the intermediate quantity of to calculate and introducing in order to simplify, these four groups of parameter A, B, C, N carries out self adaptation adjustment usefulness for image according to self content, be used to reduce the error of predictive value, this unit is finished the error prediction value of importing from error circuit with from parameter A, B, C, the analog value that N buffer area unit reads in carries out computing, resulting result sends parameter A back to computing, B, C, N buffer area unit is stored in the buffer area that these four groups of Prediction Parameters are stored in each autoregressive parameter and the error prediction unit, required memory size=368 * 16 (parameter A)+368 * 6 (B parameter)+368 * 8 (parameters C)+368 * 6 (parameter N)=13248 bit.
E) Golomb coding
Under the normal encoding pattern of JPEG-LS, prediction error value is limited the Golomb coding of code word size.
F) distance of swimming scanning and Run-Length Coding
The compression point that enters the Run-Length Coding pattern is carried out distance of swimming scanning, and the run length of scanning is carried out the Golomb coding.Therefore the total memory cost of compression of images part is 322 * 288 * 8+13248=755136 bit.
Wherein the hardware configuration of the filter segment of core is seen shown in Figure 14ly, realizes very simple.The synchronizing signal of input mainly comprises: OK/and field sync signal, and the synchronizing clock signals of each pixel output etc.Row field sync signal and synchronizing clock signals are mainly used to calculate the row and column at current output image data place, whether provide the filtering control unit to make a strategic decision current pixel will be by the filtering of low pass device, and the selection by data selector B, realize the view data in the ROI is realized lossless compress.Unfiltered data all will deposit among the SRAM among those filtered and ROI.Filtering only needs the adder of one 8 bit bit wide, and it is to realize by data selector A that the input of adder is selected, and promptly realizes selecting G, B and R three road picture contents are carried out filtering respectively.The hardware spending of this wave filter is very low, needs the pixel of filtering only need carry out the add operation of twice 8 bit bit wides and the write operation of a SRAM for each, and each chrominance component only needs two depositors to store the pixel point value of consecutive points.
Claims (2)
1. the accurate Lossless Image Compression and the decompression method of wireless endoscope system, it is characterized in that this method is a kind of compression of images, decompression method based on color interpolation after the compression earlier that is used for wireless endoscope system, described method is made of successively compression method and decompression method, wherein:
The accurate Lossless Image Compression method of wireless endoscope system is with three components R of low pass filter to this Digital Image Data to the Bayer coloured image array data that a lot of high fdrequency components are arranged of imageing sensor output, B and G carry out low-pass filtering respectively, and then a kind of method that described three picture content data after the filtering are compressed with lossless compression-encoding respectively, in the wherein said Bayer coloured image array, image G component data assumes diamond in shape, data volume accounts for 1/2 of whole Bayer image data amount, R and B component are rectangular, respectively account for 1/4 of whole Bayer image data amount, described lossless compression-encoding is meant the JPEG-LS compressed encoding; Described compression method contains following steps successively:
Step 11: the JPEG-LS compressed encoding control unit in wineless endoscope capsule is set the input parameter that following low-pass filtering is used:
The quality control factor, promptly filtered pixel account for entire image pixel percentage ratio, represent with q; In the low pass filter in described wineless endoscope capsule, laterally select equably during filtering should filtering row; Vertically during filtering, select to answer the row of filtering equably;
Region of interest is represented with ROI, has comprised in this district not carry out filtering for the position and the shape of directly carrying out the lossless compress pixel, and this ROI represents to carry out the disposal ability of lossless compress;
Step 12: the JPEG-LS compressed encoding control unit in the step 11 after receiving q and ROI, these data be sent to be arranged in reach the wineless endoscope capsule low pass filter the low-pass filtering control device and the storage;
Step 13: foremost digital image sensor is gathered Bayer array color data in the described wineless endoscope capsule, and under the synchronizing signal control that described JPEG-LS compressed encoding control unit is sent this Bayer array color data is sent in the described low pass filter;
Step 14: the low-pass filtering control unit in the described low pass filter is sent to buffer memory SRAM built-in in the described low pass filter to the data that do not need filtering according to the ROI that sets; Carry out the data of filtering for needs, at first the G component is carried out rhombus to orthogonal map function, promptly the ignore of the rhombus G component in the color image data of described Bayer form is removed, then remaining data directly are combined into a rectangle, so with same group of wave filter, after according to following steps G, B, R component being used G component low pass filter and B, the filtering of R component filters respectively, deposit among the built-in buffer memory SRAM of described corresponding low pass filter:
The I step: laterally filtering, to slacken the radio-frequency component of horizontal direction in the original image, described horizontal filtering is carried out from left to right successively in proper order by row,
Expression rounds operation downwards, promptly
The 1st row view data after the filtering=former the 1st row view data,
II step: the new data that the described I step is obtained carries out vertical filtering, and with level and smooth radio-frequency component longitudinally, described vertical filtering has by row goes up to carrying out according to following order down,
Expression rounds up, promptly
The 1st row view data=former the 1st ranks view data after the filtering,
Step 15: described JPEG-LS compressed encoding control unit is sent to the filtered view data of be set forth in the JPEG-LS encoder that is built in the described wineless endoscope capsule after the filtered view data of being stored among the built-in SRAM of described low pass filter is sent to the SRAM that is arranged in described wineless endoscope capsule and treats all images data filtering;
Step 16: described JPEG-LS encoder carries out lossless compress to the whole filtered view data of being received by the JPEG-LS lossless compression-encoding under the control of JPEG-LS compressed encoding control unit.
Step 17: after treating that the described squeeze operation of step 16 is finished, the described JPEG-LS encoder image data storage after compression is in described SRAM and deliver to the chnnel coding unit, output to the wireless transceiver that is positioned at described wineless endoscope capsule after encoding, send to external with wireless mode;
Harmless and the accurate lossless image decompression method of wireless endoscope system and under the control unit control of external JPEG-LS losslessly encoding, carry out according to the following steps:
Step 21: external wireless transmitter receives that related device in the described wineless endoscope capsule sends pass through filtering, packed data successively after, described data are sent to a JPEG-LS decoder and decode;
Step 22: described JPEG-LS decoder is to after the packed data in the step 21 decoding, respectively G component and B, the R component is sent to G component reconfigurable filter and B, R component reconfigurable filter are reconstructed filtering;
Step 23: reconfigurable filter described in the step 22 is reconstructed filtering respectively to described G component and B, R component successively according to the following steps:
The I step: described reconfigurable filter is not needing the data of reconstruct filtering to be sent among the buffer memory SRAM built-in in this reconfigurable filter in the ROI zone of setting; Undertaken by filtering of the following stated axial reconstruction and horizontal reconstruct filtering successively according to the q value of setting for the data that need reconstruct filtering;
The II step: axial reconstruction filtering: carry out from the bottom to top line by line in turn as follows, recovered vertical initial data;
The capable image data value of the former m of the capable image data value=2* of m-capable image data value of former m-1 after the reconstruct,
The capable image data value of the former m-1 of the capable image data value=2* of m-1-capable image data value of former m-2 after the reconstruct,
…
Former the 2nd row image data value of the 2nd row image data value=2*-former the 1st row image data value after the reconstruct,
The 1st row image data value after the reconstruct=former the 1st row image data value,
III step: laterally reconstruct filtering: obtain to such an extent that new data carries out by row as follows in turn from right to left to the II step, to finish the recovery of horizontal direction data;
The former m row of m row image data value=2* image data value-former m-1 row image data value after the reconstruct,
The former m-1 row of m-1 row image data value=2* image data value-former m-2 row image data value after the reconstruct,
…
Former the 2nd row image data value of the 2nd row image data value=2*-former the 1st row image data value after the reconstruct,
The 1st row image data value after the reconstruct=former the 1st row image data value;
The IV step: the filtered view data of reconstruct is sent among the described built-in SRAM;
Step 24: described reconfigurable filter is sent to rhombus to the G component data through reconstruct filtering and carries out conversion in the rectangular transform device;
Step 25: the G component data that passes through conversion after the reconstruct filtering that the filtered B of reconstruct, R component data and the step 24 that step 23 is obtained obtains again is sent to the original Bayer color image data that has been recovered after the adder addition;
Step 26: the data that step 25 is obtained are sent to a color interpolation processor and obtain the full-color image data after by the Laplace method interpolation.
2. wireless endoscope system according to claim 1 can't harm with accurate Lossless Image Compression, connects compression method, it is characterized in that: described lossless compression-encoding can be JPEG-LS, any in JPEG2000 lossless compress part and the FELICS algorithm.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2005101262553A CN100394883C (en) | 2005-12-02 | 2005-12-02 | Quasi-lossless image compression and decompression method of wireless endoscope system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2005101262553A CN100394883C (en) | 2005-12-02 | 2005-12-02 | Quasi-lossless image compression and decompression method of wireless endoscope system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN1799492A true CN1799492A (en) | 2006-07-12 |
CN100394883C CN100394883C (en) | 2008-06-18 |
Family
ID=36809864
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNB2005101262553A Active CN100394883C (en) | 2005-12-02 | 2005-12-02 | Quasi-lossless image compression and decompression method of wireless endoscope system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN100394883C (en) |
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102457722A (en) * | 2010-10-26 | 2012-05-16 | 珠海全志科技股份有限公司 | Processing method and device for Bayer image |
CN101902650B (en) * | 2009-05-27 | 2012-06-27 | 中国科学院微电子研究所 | Lossless compression method suitable for Bayer image format |
CN105163125A (en) * | 2015-06-19 | 2015-12-16 | 美国掌赢信息科技有限公司 | Real-time video coding method and electronic equipment |
CN106955084A (en) * | 2017-02-24 | 2017-07-18 | 重庆金山医疗器械有限公司 | A kind of radio capsule medical system |
CN108495134A (en) * | 2018-03-26 | 2018-09-04 | 西安电子科技大学 | Bayer image compression method based on JPEG2000 standards |
TWI666922B (en) * | 2018-03-21 | 2019-07-21 | 元智大學 | Image dynamic compression system and method thereof |
CN110049337A (en) * | 2019-05-24 | 2019-07-23 | 安翰科技(武汉)股份有限公司 | The compression processing method and system of capsule endoscope bayer image |
CN110139039A (en) * | 2019-05-24 | 2019-08-16 | 安翰科技(武汉)股份有限公司 | The compression processing method and system of capsule endoscope bayer image |
CN110149554A (en) * | 2019-05-31 | 2019-08-20 | Oppo广东移动通信有限公司 | Method, apparatus, electronic equipment and the storage medium of video image processing |
CN110974138A (en) * | 2019-11-20 | 2020-04-10 | 西南医科大学附属中医医院 | Special wireless transmission type cochlear endoscope device for ear-nose-throat department |
CN112805990A (en) * | 2018-11-15 | 2021-05-14 | 深圳市欢太科技有限公司 | Video processing method and device, electronic equipment and computer readable storage medium |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US3971065A (en) * | 1975-03-05 | 1976-07-20 | Eastman Kodak Company | Color imaging array |
US5418565A (en) * | 1994-02-15 | 1995-05-23 | Eastman Kodak Company | CFA compatible resolution reduction in a single sensor electronic camera |
US6229578B1 (en) * | 1997-12-08 | 2001-05-08 | Intel Corporation | Edge-detection based noise removal algorithm |
US6075889A (en) * | 1998-06-12 | 2000-06-13 | Eastman Kodak Company | Computing color specification (luminance and chrominance) values for images |
EP1439715A1 (en) * | 2003-01-16 | 2004-07-21 | Dialog Semiconductor GmbH | Weighted gradient based colour interpolation for colour filter array |
CN1199607C (en) * | 2003-04-11 | 2005-05-04 | 清华大学 | Bidirectional digital radio introscope system and method for operating the same |
-
2005
- 2005-12-02 CN CNB2005101262553A patent/CN100394883C/en active Active
Cited By (16)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101902650B (en) * | 2009-05-27 | 2012-06-27 | 中国科学院微电子研究所 | Lossless compression method suitable for Bayer image format |
CN102457722A (en) * | 2010-10-26 | 2012-05-16 | 珠海全志科技股份有限公司 | Processing method and device for Bayer image |
CN102457722B (en) * | 2010-10-26 | 2014-01-22 | 珠海全志科技股份有限公司 | Processing method and device for Bayer image |
CN105163125A (en) * | 2015-06-19 | 2015-12-16 | 美国掌赢信息科技有限公司 | Real-time video coding method and electronic equipment |
CN106955084A (en) * | 2017-02-24 | 2017-07-18 | 重庆金山医疗器械有限公司 | A kind of radio capsule medical system |
TWI666922B (en) * | 2018-03-21 | 2019-07-21 | 元智大學 | Image dynamic compression system and method thereof |
CN108495134A (en) * | 2018-03-26 | 2018-09-04 | 西安电子科技大学 | Bayer image compression method based on JPEG2000 standards |
CN112805990A (en) * | 2018-11-15 | 2021-05-14 | 深圳市欢太科技有限公司 | Video processing method and device, electronic equipment and computer readable storage medium |
CN110139039A (en) * | 2019-05-24 | 2019-08-16 | 安翰科技(武汉)股份有限公司 | The compression processing method and system of capsule endoscope bayer image |
CN110049337A (en) * | 2019-05-24 | 2019-07-23 | 安翰科技(武汉)股份有限公司 | The compression processing method and system of capsule endoscope bayer image |
CN110049337B (en) * | 2019-05-24 | 2021-05-25 | 安翰科技(武汉)股份有限公司 | Compression processing method and system for capsule endoscope bayer image |
CN110139039B (en) * | 2019-05-24 | 2021-09-21 | 安翰科技(武汉)股份有限公司 | Compression processing method and system for capsule endoscope bayer image |
CN110149554A (en) * | 2019-05-31 | 2019-08-20 | Oppo广东移动通信有限公司 | Method, apparatus, electronic equipment and the storage medium of video image processing |
CN110149554B (en) * | 2019-05-31 | 2021-06-15 | Oppo广东移动通信有限公司 | Video image processing method and device, electronic equipment and storage medium |
CN110974138A (en) * | 2019-11-20 | 2020-04-10 | 西南医科大学附属中医医院 | Special wireless transmission type cochlear endoscope device for ear-nose-throat department |
CN110974138B (en) * | 2019-11-20 | 2022-01-25 | 西南医科大学附属中医医院 | Special wireless transmission type cochlear endoscope device for ear-nose-throat department |
Also Published As
Publication number | Publication date |
---|---|
CN100394883C (en) | 2008-06-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN1799492A (en) | Quasi-lossless image compression and decompression method of wireless endoscope system | |
CN1221927C (en) | Image processing device and method | |
CN101080014A (en) | Video decoding method and apparatus | |
CN101031021A (en) | Image capturing apparatus, imaging circuit, and image capturing method | |
CN1207897C (en) | Image processing method and device, computer program and storage medium | |
CN1260946C (en) | Imaging equipment, image processing method and recording medium | |
US10187645B2 (en) | Image processing device and method | |
CN1149851C (en) | Method and apparatus for transmitting picture data, processing pictures and recording medium therefor | |
CN104702926B (en) | Video camera | |
CN1681330A (en) | Adaptive 2n-ary tree generating method, and method and apparatus for encoding and decoding 3d volume data using it | |
CN1747525A (en) | Image encoding apparatus and method | |
CN2567940Y (en) | Camera equipment | |
CN1374789A (en) | Digital image compression method | |
CN1717058A (en) | Method and apparatus for coding images and method and apparatus for decoding the images | |
CN1347620A (en) | Method and architecture for converting MPE G-2 4:2:2-profile bitstreams into main-profile bitstreams | |
CN1922859A (en) | Image compression method, image compression device, image transmission system, data compression pre-processing device, and computer program | |
CN1627830A (en) | Color space coding framework | |
CN1820509A (en) | Image processing display device and method | |
WO2016064583A1 (en) | Lossless compression of raw color sensor data from a color array filtered image sensor | |
CN1574968A (en) | Moving image decoding apparatus and moving image decoding method | |
CN1674632A (en) | Image processing equipment and method | |
CN1791219A (en) | Dual layer bus architecture for system-on-a-chip | |
CN1263279C (en) | Image processing apparatus | |
CN1808469A (en) | Image searching device and method, program and program recording medium | |
CN101075348A (en) | Method and device for compressing image |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |