Preferably, element F (i, j) value is random in compression of images mark matrix F.
Preferably, element F (i, j) meets bi-distribution in compression of images mark matrix F:
F (i, j)=b (r) (1)
Wherein, b is Binomial Distributing Function, and r is the probability that Binomial Distributing Function output valve is equal to 1, r spans are 0~1;Image compression ratio is equal with bi-distribution b () input parameter r, and image compression ratio is adjusted by adjusting r.
Make all row vector F in compression of images mark matrix F (i,:) interior element sum S (i) is equal, to ensure every a lineIt is equal to compress pixel quantity in image, wherein, F (i,:) it is the vector that all elements are formed in the rows of F i-th, i span is 1~h.
When h S (i) is unequal in the compression of images mark matrix F of bi-distribution generation, the average M of h S (i) is taken,And M' is obtained to M round numbers;Manual modification compression of images mark matrix F in row vector F (i,:) interior element, make all S (i) in F=M';During repairing changes, the element of modification be dispersed evenly to row vector F (i,:) in.
Present invention has the advantages that:With prior art image pressure is carried out in image frequency domain (such as JPEG, H.264, H.265)The algorithm principle of contracting is different, and the inventive method directly performs pixel and abandon or retain behaviour directly in image acquisition processMake, realize compression of images.Directly pixel abandon operating and realize that the advantages of compressing is:It can be realized by hardware such as FPGAWith pixel clock synchronous compression, processing time is only 1 pixel clock, with the existing frequency domain method for compressing image based on image blockCompare, complexity is lower.Benefit caused by the method for compressing image of this single pixel clock is:Cost is low, low in energy consumption, as long asImage device can be imaged, you can realize the compression of images of arbitrary resolution, arbitrary frame-rate.Therefore, the inventive method, not only may be usedFor industrial camera, high-speed camera can be also used for.In addition, for avoid compress image in storage or transmitting procedure becausePixel puts in order the problem of destroyed after loss of data causes compression, and in image compression process, the present invention is not with view pictureCompression image is packet, but compresses image as packet using a line in image compression process, for storing or transmitting, soHave the advantage that:By the way that entire image is divided into h packet, in packet storage or transmitting procedure, when somePacket is lost in transmitting procedure, nor affects on the reconstruction of entire image.So as to lifted compression of images and rear end decompressionRobustness.
Brief description of the drawings
Fig. 1 compression of images operation principles of the present invention
Wherein, Fig. 1 (a) is input picture, and Fig. 1 (b) is compression of images mark matrix, and Fig. 1 (c) is that pixel abandons result,Fig. 1 (d) is compression image, and Fig. 1 (e) is original pixels, and Fig. 1 (f) is to abandon pixel;
Fig. 2 compresses image reconstruction principle
Wherein, Fig. 2 (a) is compression image, and Fig. 2 (b) is compression of images mark matrix, and Fig. 2 (c) is compression image rearrangement sequenceAs a result, Fig. 2 (d) is compression image reconstruction result, and Fig. 2 (e) is known pixels in compression image, and Fig. 2 (f) is to compress in image notKnow pixel, Fig. 2 (g) is compression image reconstruction pixel;
Fig. 3 image pixels abandon and repairing effect example
Wherein, Fig. 3 (a) input pictures, Fig. 3 (b) abandon pixel image, and Fig. 3 (c) repairs image, for ease of display, Fig. 3(b) pixel is abandoned in and is set to 0.
Fig. 4 compression of images of the present invention and reconstructed results example
Wherein, Fig. 4 (a) input pictures, the compression ratio images of Fig. 4 (b) 99%, the compression ratio images of Fig. 4 (c) 95%, Fig. 4 (d)90% compression image, the compression ratio image reconstruction results of Fig. 4 (e) 99%, the compression ratio image reconstruction results of Fig. 4 (f) 95%, Fig. 4 (g)90% compression ratio image reconstruction result, for ease of display, compress and pixel is abandoned in image with 0 replacement.
Embodiment
In order that the purpose of the present invention, technical scheme and beneficial effect are more clearly understood, below in conjunction with the accompanying drawings and implementExample, the present invention will be described in further detail.It should be noted that specific embodiment described herein is only explaining this hairIt is bright, it is not intended to limit the present invention. Wifi explorer pro 2 1 7 cr2 download free.
Compression of images general principle proposed by the present invention is:Image is high redundancy and local height is similar, is such as schemedShown in 1, a width input picture (Fig. 1 (a)) is given, matrix F (Fig. 1 (b)) is marked according to compression of images, abandoned in the input imagePartial pixel (Fig. 1 (c)), then sort left to right to obtain compression image (Fig. 1 (c)) to abandoning pixel, black disk (Fig. 1 in figure(e) it is) original pixels, white space (Fig. 1 (f)) represents that the position pixel is dropped in Fig. 1 (c).
Fig. 2 gives compression image reconstruction process:Matrix F (Fig. 2 (b)) is first marked according to compression of images, to compressing imagePixel is resequenced in (Fig. 2 (a)), obtains the compression figure comprising known pixels (Fig. 2 (e)) and unknown pixel (Fig. 2 (f))As reordering result (Fig. 2 (c)), further according to known pixels (Fig. 2 (e)) in compression image, using image local similarity feature,Using local neighborhood image rebuilding method, unknown pixel (Fig. 2 (f)) value (Fig. 2 (g)) is estimated, for obtaining compression figureAs reconstruction image (Fig. 2 (d)).
Fig. 3 gives an image discarding and repairing effect example, for proving the validity of the inventive method.Such as Fig. 3Shown, wherein Fig. 2 (a) is Lena images, image resolution ratio 512*512, and bit wide is 8bits gray level image, random drop70% pixel in Lena images, it is dropped pixel position for ease of being shown in and is arranged to 0, obtains abandoning pixel shown in Fig. 3 (b)Image, and the compression image of the present invention, then, picture is abandoned using known pixels compensation in pixel image (Fig. 3 (b)) is abandonedElement, specific method are:For some discarding pixel P (i, j), (i, j) is image coordinate, s*s sizes is taken centered on (i, j)Neighborhood, in neighborhood, all known pixels are found out, and calculate the intermediate value of these known pixels, as discarding pixel P's (i, j)Estimate, and it is filled into (i, the j) opening position for abandoning image.Fig. 3 (c) is to use the big small neighbourhood repairing effect figures of 3*3.From reparationAs a result as can be seen that proposed by the present invention realize that the method for image Fast Compression is feasible by abandoning partial pixel.
Fig. 4 gives the compression of images result in the case of 90%, 95%, 99% compression ratio, and uses the big small neighbourhoods of 9*9Reconstructed results.As can be seen that the inventive method can well reconstruct original image in 90% compression ratio.
The operating procedure of method for compressing image of the present invention is as follows:
1) compression of images mark matrix F is generated, F is that w*h ties up matrix, and w, h are respectively by the width of compression image, height;Element value is 0 or 1 in compression of images marks matrix F;
2) the compression of images mark matrix F of generation is imported in video camera;
3) in image acquisition process, according to camera image sensor export field sync signal V, line synchronising signal H,Pixel clock C, calculate the image coordinate (i, j) of present sample pixel;Read corresponding position member in compression of images mark matrix FPlain F (i, j);As F (i, j)=1, sample and preserve current pixel;As F (i, j)=0, current pixel is abandoned;In image pressureIn compression process, after a line compression of images is completed, new a line image is sequentially arranged into retaining pixel in the row, willNew a line image is used to store or transmit as a packet, or synchronous according to the new row of row reservation pixel quantity generationSignal H'.
The generation method of compression of images mark matrix F of the present invention includes:
Method 1:
It is 0 or 1 to manually set element in F.
Method 2:
Element F (i, j)=b (r) in compression of images matrix is generated using bi-distribution b (), wherein, r is bi-distribution letterSeveral input parameters, r are the probability that Binomial Distributing Function b () output valve is 1.
It is compared with method 1, the advantages of method 2:Element value in the F generated by bi-distribution random function, in imageIn more uniformly spread, be advantageous to lifting compression image reconstruction effect.And it is possible to the value by adjusting input parameter r, realExisting image compression ratio adjustment.
Method 3:
First using method 2 generate compression of images matrix F, and judge row vector F in F (i,:) in element sum S (i) whetherIt is equal, if unequal, the average M of all row vector element sum S (i) is calculated, and M is rounded, obtain M ';Pass through hand againDynamic method of adjustment, change element value in row vector, make in F that element sum is equal to M ' in all row vectors.
In image compression process, the pixel of discarding is no longer saved or transmitted, and is rearranged original pixel order,Therefore, in image reconstruction, it is necessary to the pixel preserved is put back to correspondence position in image according to image tagged matrix, then makeImage reconstruction is carried out with local neighborhood image repair method.Directly entire image is transmitted in order, to data transfer and storageThe requirement of link is higher, once some pixel is lost in the transmission, then image reconstruction will malfunction.Therefore, method 3 passes through settingCompression of images matrix F have identical row vector element and, the pixel quantity for being compressed every a line is identical, and with behavior listPosition, subpackage storage or transmission are carried out, even if in transmission or storing process, some load-source='patent-office'>
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710877306.9ACN107465879A (en) | 2017-09-25 | 2017-09-25 | A kind of camera review Fast Compression method |
Publication Number | Publication Date | ||
---|---|---|---|
CN201710877306.9ACN107465879A (en) | 2017-09-25 | 2017-09-25 | A kind of camera review Fast Compression method |
Country | Link | |||
---|---|---|---|---|
US7194129B1 (en) * | 2003-02-06 | 2007-03-20 | Biomorphic Vlsi, Inc. | Method and system for color space conversion of patterned color images |
CN106600540A (en) * | 2017-01-15 | 2017-04-26 | 四川精目科技有限公司 | Block RBF interpolation high-speed camera compression image reconstruction method |
CN106815816A (en) * | 2017-01-15 | 2017-06-09 | 四川精目科技有限公司 | A kind of RBF interpolation high speed camera compresses image rebuilding method |
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105407272A (en) * | 2015-10-29 | 2016-03-16 | 中国空气动力研究与发展中心设备设计及测试技术研究所 | Method of prolonging shooting duration of high-speed camera |
CN106780638A (en) * | 2017-01-15 | 2017-05-31 | 四川精目科技有限公司 | A kind of high speed camera compresses image fast reconstructing method |
Battiato et al. | A locally adaptive zooming algorithm for digital images | |||
KR100566122B1 (en) | Method of compressing still pictures for mobile devices | |||
CN100539636C (en) | Image data processing system and image processing method | |||
US8374444B2 (en) | Method and apparatus for providing higher resolution images in an embedded device | |||
US7079704B2 (en) | Objective method and system for estimating perceived image and video sharpness | |||
CN101620842B (en) | Image processing circuit, and display panel driver and display device mounting the circuit | |||
CN101378519B (en) | Method for evaluating quality-lose referrence image quality base on Contourlet transformation | |||
CN105430480B (en) | A kind of method and system of video data storage | |||
US20040131263A1 (en) | Image processing apparatus | |||
CN101448175B (en) | Method for evaluating quality of streaming video without reference | |||
KR101007101B1 (en) | Adaptive tone mapping apparatus and method, and image processing system using the method | |||
JP6686438B2 (en) | Transmission device, transmission method, reception device, and reception method | |||
US9626760B2 (en) | System and method to align and merge differently exposed digital images to create a HDR (High Dynamic Range) image |
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination |