Login| Sign Up| Help| Contact|

Patent Searching and Data


Title:
METHOD AND APPARATUS FOR ENCODING/DECODING IMAGE IN BITMAP FORMAT
Document Type and Number:
WIPO Patent Application WO/2010/076970
Kind Code:
A2
Abstract:
An apparatus and a method of encoding/decoding an image are provided. The method includes generating a bitmap table by mapping a quantized image, that is quantized according to a predetermined bit-depth, to a map table, and setting a bitmap index corresponding to each pixel location of the quantized image with reference to the bitmap table; setting a fixed filter index corresponding to an image of each pixel of the image by analyzing local characteristics of the image; generating bitmap data by adding the filter index to the bitmap index; extracting a bitmap index, a bitmap table, and a filter index from the bitmap data; extracting an encoded image mapped to the bitmap index from the bitmap table; and filtering the extracted encoded image based on a filter corresponding to the filter index.

Inventors:
JEONG YOUNG-HOON (KR)
Application Number:
PCT/KR2009/006560
Publication Date:
July 08, 2010
Filing Date:
November 10, 2009
Export Citation:
Click for automatic bibliography generation   Help
Assignee:
SAMSUNG ELECTRONICS CO LTD (KR)
International Classes:
H04N7/24
Foreign References:
EP1944974A12008-07-16
Other References:
See also references of EP 2371135A4
Attorney, Agent or Firm:
Y.P.LEE, MOCK & PARTNERS (1575-1Seocho-dong, Seocho-gu, Seoul 137-875, KR)
Download PDF:
Claims:
Claims

[Claim 1] 1. A method of encoding an image, the method comprising: generating a bitmap table by mapping a quantized image, that is quantized according to a predetermined bit-depth, to a map table, and setting a bitmap index corresponding to each pixel location of the quantized image with reference to the bitmap table; setting a fixed filter index corresponding to an image of each pixel of the image by analyzing local characteristics of the image; and generating bitmap data by adding the filter index to the bitmap index.

[Claim 2] 2. The method of claim 1, wherein the generating the bitmap table and the setting the bitmap index comprise: quantizing image data input through a user interface to the predetermined bit-depth to generate the quantized image; generating the bitmap table by mapping the quantized image data to a map table pixels -by-pixel; and generating the bitmap index representing an image location of each pixel of the quantized image stored in the bitmap table.

[Claim 3] 3. The method of claim 1, wherein the setting of the filter index comprises: selecting a pre-defined filter for each pixel of the image according to local image characteristics between a current pixel and neighboring pixels; and indexing the selected filter.

[Claim 4] 4. The method of claim 3, wherein the local characteristics comprise at least one of a brightness difference between the current pixel and the neighboring pixels and an average value between the current pixel and the neighboring pixels.

[Claim 5] 5. The method of claim 3, wherein filter information corresponding to the filter index is shared by an encoder and a decoder. [Claim 6] 6. The method of claim 3, wherein the selecting the filter comprises: selecting a high-frequency pass filter if a difference between a current pixel value and neighboring pixel values is equal to or greater than a threshold value; and selecting a low-frequency pass filter if the difference between the current pixel value and the neighboring pixel values is lower than the threshold value.

[Claim 7] 7. The method of claim 3, wherein the generating the bitmap data comprises adding the filter index to the bitmap index on a pixel- by-pixel basis.

[Claim 8] 8. A method of decoding an image, the method comprising: extracting a bitmap index, a bitmap table, and a filter index from bitmap data; extracting an image mapped to the bitmap index from the bitmap table and storing the extracted image in a storage unit; and filtering the extracted image based on a filter corresponding to the filter index.

[Claim 9] 9. The method of claim 8, wherein the filtering of the extracted image comprises filtering a current pixel value and neighboring pixel values by using the filter corresponding to the filter index.

[Claim 10] 10. A method of encoding and decoding an image, the method comprising: encoding an image by: generating a bitmap table by mapping a quantized image, that is quantized according to a predetermined bit-depth, to a map table, and setting a bitmap index corresponding to each pixel location of the quantized image with reference to the bitmap table; setting a fixed filter index regarding an image of each pixel of the image by analyzing local characteristics of the image; and generating bitmap data by adding the filter index to the bitmap index; and decoding an encoded image by: extracting a bitmap index, a bitmap table, and a filter index from the bitmap data; extracting the encoded image mapped to the bitmap index from the bitmap table; and filtering the extracted encoded image based on a filter corresponding to the filter index.

[Claim 11] 11. An apparatus for encoding an image, the apparatus comprising: a bitmap data creator which generates a bitmap table by using a quantized image that is quantized to a predetermined bit-depth, and sets a bitmap index corresponding to each pixel location of the quantized image with reference to the bitmap table; a filter index creator which sets a fixed filter index regarding an image of each pixel of the image by analyzing local image characteristics of the image; and a merging unit which merges the bitmap index created by the bitmap data creator and the filter index created by the filter index creator.

[Claim 12] 12. The apparatus of claim 11, wherein the filter index creator comprises: an arithmetic calculator which extracts local image characteristic parameters between a current pixel and neighboring pixels; and a filter selector which selects a pre-defined filter for each pixel according to the local image characteristic parameters extracted by the arithmetic calculator and indexes the selected filter.

[Claim 13] 13. An apparatus for decoding an image, the apparatus comprising: a bitmap data restorer which extracts a pixel value mapped to a bitmap table according to a bitmap index; and an adaptive filtering unit which filters a current pixel and neighboring pixels, which are extracted by the bitmap data restorer, according to a filter corresponding to a filter index assigned to the bitmap index.

[Claim 14] 14. A computer readable recording medium having recorded thereon a computer program for executing the method of claim 1. [Claim 15] 15. A computer readable recording medium having recorded thereon a computer program for executing the method of claim 8.

Description:
Description

Title of Invention: METHOD AND APPARATUS FOR ENCODING/DECODING IMAGE IN BITMAP FORMAT

Technical Field Technical Field

[1] Apparatuses and methods consistent with the present invention relate to improving image quality, and more particularly, to encoding/decoding a graphic image in a bitmap format in order to improve image quality.

Background Art

Background Art [2] A bitmap is a bit-type standard graphic file format in Windows and is generally used to represent graphic images in mobile devices or personal computers (PCs). [3] Bitmap processing apparatuses use many bitmap indices to represent gradient levels for naturally displaying boundaries of a graphic image such as a font or an icon.

Disclosure of Invention

Technical Problem [4] Thus, the bitmap processing apparatuses require a solution for reducing the number of bitmap indices used.

Technical Solution [5] The present invention provides a method and apparatus for encoding/decoding an image in a bitmap format in order to improve image quality.

Advantageous Effects [6] According to the present invention, bitmap indices used to represent boundaries of a font or an icon may be reduced and an image close to true colors may be represented by allocating surplus bitmap indices to colors and gradations even when almost the same bandwidth as a related art method is used.

Description of Drawings [7] The above and/or other aspects of the present invention will become more apparent by describing in detail exemplary embodiments thereof with reference to the attached drawings in which: [8] FIG. 1 is a block diagram of an apparatus for encoding an image in a bitmap format, according to an exemplary embodiment of the present invention; [9] FIG. 2A is a block diagram of a bitmap data creator illustrated in FIG. 1, according to an exemplary embodiment of the present invention; [10] FIG. 2B is a block diagram of a filter index creator illustrated in FIG. 1, according to an exemplary embodiment of the present invention;

[11] FIG. 2C is a diagram showing an example of local characteristics calculated by an arithmetic calculator of the filter index creator illustrated in FIG. 2B, according to an exemplary embodiment of the present invention;

[12] FIG. 3 is a block diagram of an apparatus for decoding an image in a bitmap format, according to an exemplary embodiment of the present invention;

[13] FIG. 4 is a block diagram of a bitmap data restorer illustrated in FIG. 3, according to an exemplary embodiment of the present invention;

[14] FIG. 5 is a diagram showing an exemplary merging operation of bitmap index data and filter index data, according to an exemplary embodiment of the present invention;

[15] FIGS. 6A through 6C are graphs for describing a method of encoding/decoding an image in a bitmap format, according to an exemplary embodiment of the present invention;

[16] FIG. 7 is a flowchart of a method of encoding an image in a bitmap format, according to an exemplary embodiment of the present invention; and

[17] FIG. 8 is a flowchart of a method of decoding an image in a bitmap format, according to an exemplary embodiment of the present invention. Best Mode

[18] According to an aspect of the present invention, there is provided a method of encoding an image, the method including: quantizing the image according to a predetermined bit-depth; creating a bitmap table by mapping the quantized image to a map table, and setting a bitmap index corresponding to each pixel location of the image with reference to the bitmap table; setting a fixed filter index regarding an image of each pixel or block by analyzing local characteristics of the image; and creating bitmap data by adding the filter index to the bitmap index.

[19] According to another aspect of the present invention, there is provided a method of decoding an image, the method including extracting a bitmap index, a bitmap table, and a filter index from bitmap data; extracting the image mapped to the bitmap index from the bitmap table; and filtering the extracted image using a filter corresponding to the filter index.

[20] According to another aspect of the present invention, there is provided an apparatus for encoding an image, the apparatus including a bitmap data creator for creating a bitmap table by using an image quantized to a predetermined bit-depth, and setting a bitmap index corresponding to each pixel location of the bitmap table; a filter index creator for setting a fixed filter index regarding an image of each pixel or block by analyzing local image characteristics of the image; and a merging unit for merging the bitmap index created by the bitmap data creator and the filter index created by the filter index creator. [21] According to another aspect of the present invention, there is provided an apparatus for decoding an image, the apparatus including a bitmap data restorer for extracting a pixel value mapped to a bitmap table according to a bitmap index; and an adaptive filtering unit for filtering a current pixel and neighboring pixels, which are extracted by the bitmap data restorer, according to a filter corresponding to a filter index provided to the bitmap index. Mode for Invention

[22] Hereinafter, exemplary embodiments of the present invention will be described in detail with reference to accompanying drawings, wherein like numerals refer to like elements and repetitive descriptions will be avoided as necessary .

[23] FIG. 1 is a block diagram of an apparatus for encoding an image in a bitmap format, according to an exemplary embodiment of the present invention.

[24] Referring to FIG. 1, the apparatus according to the current embodiment includes a bitmap data creator 110 and a filter index creator 120.

[25] The bitmap data creator 110 quantizes a graphic image such as icons or fonts to a fixed bit-depth, creates a bitmap table by mapping the quantized image to a lookup table, and creates a bitmap index corresponding to each pixel location of the quantized image with reference to the bitmap table.

[26] The filter index creator 120 creates a pre-defined filter index regarding each pixel (or block) of the image by using local characteristics between a current pixel (or a current block) and neighboring pixels (or neighboring blocks). In this case, an encoder and a decoder pre-define a filter corresponding to a filter index.

[27] A merging unit 130 merges the bitmap table/bitmap index created by the bitmap data creator 110 and the filter index created by the filter index creator 120, pixel-by-pixel or block-by-block.

[28] Ultimately, the apparatus according to the current exemplary embodiment creates bitmap data in which the filter index is added to the bitmap index.

[29] FIG. 2A is a block diagram of the bitmap data creator 110 illustrated in FIG. 1, according to an exemplary embodiment of the present invention.

[30] Referring to FIG. 2A, the bitmap data creator 110 includes an image data storage

210, a quantizer 220, a bitmap index creator 230, and a bitmap table creator 240.

[31] The image data storage 210 stores graphic image data such as icons or fonts in frames or fields. In this case, the graphic image data may be 2 N bits.

[32] The quantizer 220 converts N-bit image data stored in the image data storage 210 into M-bit image data that is smaller than the N-bit image data, by using a quantization algorithm. For example, the quantizer 220 quantizes 2 24 -bit true color data into 256 or 128 R, G, and B combinations. Here, the 256 or 128 R, G, and B combinations are applied to a color table. [33] The bitmap table creator 240 maps R, G, and B or Y, Cb, and Cr combinations quantized by the quantizer 220 to a map table, and creates a bitmap table.

[34] The bitmap index creator 230 converts the R, G, and B combinations quantized by the quantizer 220 into an index located in the bitmap table.

[35] The current exemplary embodiment is applicable to gray scale data as well as color data.

[36] FIG. 2B is a block diagram of the filter index creator 120 illustrated in FIG. 1, according to an exemplary embodiment of the present invention.

[37] Referring to FIG. 2B, the filter index creator 120 includes an image data storage 250, an arithmetic calculator 260, and a filter selector 270.

[38] The image data storage 250 stores graphic image data such as icons or fonts in frames or fields.

[39] The arithmetic calculator 260 analyzes local characteristics between a current pixel and neighboring pixels, which are stored in the image data storage 250. For example, as illustrated in FIG. 2C, the arithmetic calculator 260 extracts a brightness difference, an average value, a variance value, a minimum/maximum value, etc., between a current pixel I and MxN neighboring pixels U, B, L, R, UL, UR, BL, and BR.

[40] The filter selector 270 selects a pre-defined filter for each pixel or each block and indexes the selected filter, based on local characteristic parameters analyzed by the arithmetic calculator 260. For example, the filter selector 270 selects a high-frequency pass filter if a difference between a current pixel value and neighboring pixel values is equal to or greater than a threshold value, and selects a low-frequency pass filter if the difference is lower than the threshold value. Also, a filter size and a filter coefficient are calculated based on the local characteristic parameters.

[41] The pre-defined filter may include a low -pass filter, a high-pass filter, an average filter, a Gaussian filter, and a Laplacian filter.

[42] FIG. 3 is a block diagram of an apparatus for decoding an image in a bitmap format, according to an exemplary embodiment of the present invention.

[43] Referring to FIG. 3, the apparatus according to the current embodiment includes a bitmap data restorer 310, an image storage 320, and an adaptive filtering unit 330.

[44] The bitmap data restorer 310 receives a bitmap table, sets bitmap table values in advance, and extracts local pixel values mapped to bitmap indices from the bitmap table.

[45] The image storage 320 stores the local pixel values extracted by the bitmap data restorer 310.

[46] The adaptive filtering unit 330 selects a pre-defined filter based on a filter index regarding each pixel or each block and received from an encoding apparatus, and filters a current pixel and neighboring pixels, which are stored in the image storage 320, by using the extracted filter. [47] For example, 5x5 pixels with reference to the current pixel are filtered from among pixels stored in the image storage 320. If a region around the current pixel corresponds to a flat region, a filter index corresponding to a low-pass filter is selected. Then, the flat region is filtered to a medium gradation by low-pass filtering the current pixel and the neighboring pixels. Meanwhile, if the region around the current pixel corresponds to a boundary region, a filter index corresponding to a high-pass filter is selected.

Then, the boundary region is filtered sharply by high-pass filtering the current pixel and the neighboring pixels. [48] Thus, the adaptive filtering unit 330 may display boundaries of a graphic image such as a font or an icon naturally on a screen by adaptively filtering image data bitmapped by the bitmap data restorer 310. [49] The image data filtered by the adaptive filtering unit 330 is output to a display device such as a liquid crystal display (LCD) device. [50] FIG. 4 is a block diagram of the bitmap data restorer 310 illustrated in FIG. 3, according to an exemplary embodiment of the present invention. [51] Referring to FIG. 4, an address decoder 410 decodes N-bit bitmap indices into 2 N addresses. [52] A bitmap table unit 420 stores images of R, G, and B or Y, Cb, and Cr channels, which are mapped to the addresses of the address decoder 410, at 2 N levels. [53] An output buffer 430 outputs pixel values stored in the bitmap table unit 420 according to the 2 N addresses. For example, an 8-bit image signal is output with respect to each of the R, G, and B or Y, Cb, and Cr channels. [54] FIG. 5 is a diagram showing an exemplary merging operation which is performed by the merging unit 130 to merge bitmap index data and filter index data according to an exemplary embodiment of the present invention. [55] Referring to FIG. 5, newly defined 2-bit filter index data is added to original 6-bit bitmap index data. The bitmap index data and the filter index data are created pixel- by-pixel or block-by-block. [56] FIGS. 6A through 6C are graphs for describing a method of encoding/decoding an image in a bitmap format, according to an exemplary embodiment of the present invention.

[57] FIG. 6A illustrates original image data digitized on an image line of the x-axis.

[58] Referring to FIG. 6A, the original image data is divided into a background region of a low-frequency and a font/icon region of a high-frequency. [59] FIG. 6B illustrates image data encoded into representative level values in a bitmap format. [60] Referring to FIG. 6B, bitmap indices '1 1 1 2 2 2 3 3 3 2 5 5 2 5 2 5 3' are allocated to pixels on the image line of the x-axis based on representative level values '1, 2, 3, 4, and 5'.

[61] In this case, the bitmap indices '1 1 1 2 2 2 3 3 3' correspond to the image data of the background region and the bitmap indices '2 5 5 2 5 2 5 3' correspond to the image data of the font/icon region.

[62] Thus, filter index values '0 0 0 0 0 0 0 0 0' corresponding to a low-pass filter are provided to the bitmap indices '1 1 1 2 2 2 3 3 3' corresponding to pixels of the background region. Also, filter index values '1 1 1 1 1 1 1 1 1' corresponding to a high- pass filter are provided to the bitmap indices '2 5 5 2 5 2 5 3' corresponding to pixels of the font/icon region.

[63] FIG. 6C illustrates image data adaptively filtered by adaptive filtering unit 330 according to filter indices.

[64] Referring to FIG. 6C, the pixels of the background region are low-pass filtered by using a low-pass filter corresponding to the filter index values '0 0 0 0 0 0 0 0 0' and the pixels of the font/icon region are high-pass filtered by using a high-pass filter corresponding to the filter index values '1 1 1 1 1 1 1 1 1'.

[65] Accordingly, the image data of the background region is filtered to a medium gradation and the image data of the font/icon region is filtered sharply. However, a related art image decoding apparatus merely restores image data based on the image data illustrated in FIG. 6B, and thus, the restored image data differs from original image data.

[66] Ultimately, the adaptively filtered image data, as shown in FIG. 6C, is restored according to an exemplary embodiment of the present invention to be similar to the original image data illustrated in FIG. 6A.

[67] FIG. 7 is a flowchart of a method of encoding an image in a bitmap format, according to an exemplary embodiment of the present invention.

[68] Referring to FIG. 7, initially, a graphic image such as a font or an icon is input through a graphic user interface (GUI).

[69] Then, it is checked whether bitmap processing using a quantization algorithm is performed on the input image to a fixed bit-depth (operation 710).

[70] In this case, if the bitmap processing has not been performed on the input image, bitmap processing is performed in operations 720, 730 and 740. First, the input image is quantized to the fixed bit-depth (operation 720).

[71] Then, pixel types (e.g., R, G, and B or Y, Cb, and Cr) according to quantization are analyzed and a bitmap table is created by mapping the quantized image to a map table (operation 730).

[72] Then, a bitmap index corresponding to each pixel location in the bitmap table is created with reference to the bitmap table (operation 740). [73] If it has been determined in operation 710 that the bitmap processing has been performed on the input image, the bitmap index and the bitmap table are already created.

[74] Thus, after the bitmap processing is performed on the input image, local image characteristics between a current pixel and neighboring pixels are analyzed (operation 750).

[75] Then, a filter index regarding each pixel or block is determined according to the local image characteristics (operation 760).

[76] Lastly, pixel or block-based bitmap data in which the filter index is added to the bitmap index is created (operation 770).

[77] FIG. 8 is a flowchart of a method of decoding an image in a bitmap format, according to an exemplary embodiment of the present invention.

[78] Referring to FIG. 8, initially, bitmap data is received from an image encoding apparatus and a bitmap table, 2 N bitmap indices, and 2 N filter indices are extracted (operation 810).

[79] Then, bitmap table values are set and pixel values mapped to the bitmap indices are extracted from the bitmap table (operation 820).

[80] Then, a current pixel and neighboring pixels are filtered by using a filter corresponding to a filter index regarding each pixel or each block (operation 830).

[81] The present invention has been particularly shown and described with reference to exemplary embodiments thereof, it will be understood by those of ordinary skill in the art that various changes in form and details may be made therein without departing from the spirit and scope of the present invention as defined by the following claims. Industrial Applicability

[82] The present invention can be embodied as computer readable code on a computer readable recording medium. The computer readable recording medium is any data storage device that can store data which can be thereafter read by a computer system. Examples of the computer readable recording medium include read-only memory (ROM), random-access memory (RAM), CD-ROMs, magnetic tapes, floppy discs, and optical data storage devices. In another exemplary embodiment, the computer readable recording medium can also be distributed over network coupled computer systems so that the computer readable code is stored and executed in a distributed fashion.