1. Field of the Invention
The present invention relates to an image processing device and a related image compression method, and more particularly, to an image processing device and a related image compression method capable of applying to filter the fixed pattern noise of an image.
2. Description of the Prior Art
The conventional surveillance camera and the vehicle operation recorder capture an image and store the foresaid image directly into the memory unit, and then the operation processing unit reads the foresaid image from the memory unit to execute a related image processing procedure in accordance with a control command of the user. For this reason, the conventional surveillance camera and the vehicle operation recorder waste transmission frequency bandwidth during the image read-in/read-out procedures, storage quantity of the memory unit is occupied by the unprocessed image, and the surveillance camera and/or the vehicle operation recorder cannot provide preferred image processing efficiency.
The present invention provides an image processing device and a related image compression method capable of applying to filter the fixed pattern noise of an image for solving above drawbacks.
According to the claimed invention, an image compression method includes applying characteristic value calculation to an image along a predetermined direction to generate a series of characteristic values, comparing a pixel matrix of the image with the series of characteristic values, and acquiring a difference matrix according to a comparison result, wherein the difference matrix is compressed and indicated as a compression datum of the image.
According to the claimed invention, a step of applying the characteristic value calculation to the image along the predetermined direction includes dividing the pixel matrix of the image into a plurality of regions, applying the characteristic value calculation to each region of the plurality of regions along the predetermined direction, and arranging results of the characteristic value calculation applied to the each region of the plurality of regions in sequence to form the series of characteristic values.
According to the claimed invention, an image processing device includes an image capturing unit and an image capturing unit. The image capturing unit is adapted to capture an image. The operation processing unit is electrically connected to the image capturing unit and adapted to apply characteristic value calculation to the image along a predetermined direction to generate a series of characteristic values, to compare a pixel matrix of the image with the series of characteristic values, and to acquire a difference matrix according to a comparison result, wherein the difference matrix is compressed and indicated as a compression datum of the image.
The noise of the fixed pattern may be formed on the captured image due to quality of the image capturing unit. For filtering the said noise of the fixed pattern, the image processing device of the present invention utilizes the image compression method to calculate the series of characteristic values of the image along the specific predetermined direction, and then generates the difference matrix via a comparison between the series of characteristic values and the image pixel matrix. The difference matrix contains parameter information of the pixel matrix, compression of the difference matrix has preferred efficiency rather than compression of the image pixel matrix owing to datum region similarity, and the compression of difference matrix has advantages of reduced data quantity and economized transmission frequency bandwidth while accessing the memory unit because the difference matrix owns the smaller domain range. The image processing device and the related image compression method of the present invention can be used to filter the noise of the fixed pattern on the image, and to increase compression efficiency and economize the transmission frequency bandwidth accordingly.
These and other objectives of the present invention will no doubt become obvious to those of ordinary skill in the art after reading the following detailed description of the preferred embodiment that is illustrated in the various figures and drawings.
Please refer to
Please refer to
In step 202, the image compression method can divide the pixel matrix Mi of the image I into a plurality of regions along the predetermined direction D, such like each pixel row or each pixel column of the pixel matrix Mi being indicated as one region which can be the dotted region shown in
Then, steps 204 and 206 are executed to compare the pixel matrix Mi of the image I with the series of characteristic values S by the operation processing unit 14 so as to acquire a difference matrix Md according to a comparison result. In the embodiment of the present invention, as shown in
The encoding unit 18 and the decoding unit 20 of the image processing device 10 can be independent from the image capturing unit 12, or be a built-in module of the image capturing unit 12. After the step of preliminary process in accordance with the above-mentioned procedures (the step of transforming the pixel matrix Mi of the image I into the difference matrix Md with the reduced domain range), the image compression method further executes steps 208, 210 and 212 to encode and compress the difference matrix Md by the encoding unit 18 (which is represented as the functional block 302) so the compressed difference matrix Md can be indicated as a compression datum of the image I, to store the compressed difference matrix Md and the series of characteristic values S into the memory unit 16 (which is represented as the functional block 304), to take out the compressed difference matrix Md from the memory unit 16 according to user's demand and then decode the compressed difference matrix Md via the decoding unit 18 (which is represented as the functional block 306), and to restore the image to an initial condition captured by the image capturing unit 12 (which is represented as the functional block 308). In step 212, the image compression method utilizes the series of characteristic values S and the compressed difference matrix Md to proceed with the image restoring procedure.
It should be mentioned that while the pixel matrix Mi of the image I is transformed into the difference matrix Md via the functional block 300, the image compression method not only can directly apply compression step of the functional block 302 to the difference matrix Md, but also can pre-execute characteristic value quantitative analysis of the functional block 310 optionally. The characteristic value quantitative analysis sets a difference value of the difference matrix Md lower than a specific threshold as a predetermined value (for example, the difference values smaller than numeral of 3 are defined as zero), then records an amount of the predetermined value to be a read-in parameter of the difference matrix Md; furthermore, the above-mentioned step of setting the predetermined value can be executed by other application, for example, the image compression method may pre-set a threshold, defines the difference value (which is lower than a specific numeral after subtracting the threshold from the original difference value) as the above-mentioned predetermined value, and then the predetermined value can be defined as the read-in parameter of the difference matrix Md. Thus, an amount of the difference value within the difference matrix Md is lower than the numeral of n, the data quantity of the difference matrix Md can be effectively decreased, and the transmission frequency bandwidth between the functional block 302 and the functional block 304 can be reduced accordingly.
Please refer to
In addition to the above-mentioned embodiments, the predetermined direction used in the image compression method of the present invention further can be designed as an inclined direction of the pixel matrix Mi. For example, while the predetermined direction is the 45-degree inclined direction, a region of the pixel matrix Mi is composed of the characteristic values A11, A22, A33 etc., other regions of the pixel matrix Mi are composed of the characteristic values A21, A32 etc. and the characteristic values A12, A23 etc., and the said characteristic values are arranged to form the related series of characteristic values. While the predetermined direction is the 135-degree inclined direction, a region of the pixel matrix Mi is composed of the characteristic values A31, A22, A13 etc., other regions of the pixel matrix Mi are composed of the characteristic values A12, A21 etc. and the characteristic values A32, A23 etc., and the characteristic values calculated by the said regions are arranged to form the related series of characteristic values. Variation of the predetermined direction and the series of characteristic values are not limited to the above-mentioned embodiment, which depend on design demand, and a detailed description is omitted herein for simplicity.
Please refer to
In conclusion, noise of the fixed pattern may be formed on the captured image due to quality of the image capturing unit. For filtering the said noise of the fixed pattern, the image processing device of the present invention utilizes the image compression method to calculate the series of characteristic values of the image along the specific predetermined direction, and then generates the difference matrix via a comparison between the series of characteristic values and the image pixel matrix. The difference matrix contains parameter information of the pixel matrix, compression of the difference matrix has preferred efficiency rather than compression of the image pixel matrix owing to datum region similarity, and the compression of difference matrix has advantages of reduced data quantity and economized transmission frequency bandwidth while accessing the memory unit because the difference matrix owns the smaller domain range. Comparing to the prior art, the image processing device and the related image compression method of the present invention can be used to filter the noise of the fixed pattern on the image, and to increase compression efficiency and economize the transmission frequency bandwidth accordingly.
Those skilled in the art will readily observe that numerous modifications and alterations of the device and method may be made while retaining the teachings of the invention. Accordingly, the above disclosure should be construed as limited only by the metes and bounds of the appended claims.
Number | Date | Country | Kind |
---|---|---|---|
105100228 | Jan 2016 | TW | national |