TW201937929A - Image processing apparatus, image processing method, and image processing program - Google Patents
Image processing apparatus, image processing method, and image processing program Download PDFInfo
- Publication number
- TW201937929A TW201937929A TW108106354A TW108106354A TW201937929A TW 201937929 A TW201937929 A TW 201937929A TW 108106354 A TW108106354 A TW 108106354A TW 108106354 A TW108106354 A TW 108106354A TW 201937929 A TW201937929 A TW 201937929A
- Authority
- TW
- Taiwan
- Prior art keywords
- information
- pixel
- reference pixel
- image processing
- value
- Prior art date
Links
- 238000012545 processing Methods 0.000 title claims abstract description 34
- 238000003672 processing method Methods 0.000 title claims description 4
- 230000000903 blocking effect Effects 0.000 claims abstract 2
- 238000013507 mapping Methods 0.000 claims description 73
- 239000003086 colorant Substances 0.000 claims description 11
- 238000013139 quantization Methods 0.000 claims description 9
- 230000006870 function Effects 0.000 claims description 4
- 238000010586 diagram Methods 0.000 description 14
- 238000004364 calculation method Methods 0.000 description 4
- 238000000034 method Methods 0.000 description 4
- 230000015556 catabolic process Effects 0.000 description 3
- 238000006731 degradation reaction Methods 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 3
- 238000004891 communication Methods 0.000 description 1
- 230000006835 compression Effects 0.000 description 1
- 238000007906 compression Methods 0.000 description 1
- 238000007796 conventional method Methods 0.000 description 1
- 230000006866 deterioration Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 239000000463 material Substances 0.000 description 1
- 230000011218 segmentation Effects 0.000 description 1
- 238000010187 selection method Methods 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 230000003936 working memory Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/10—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
- H04N19/102—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
- H04N19/103—Selection of coding mode or of prediction mode
- H04N19/105—Selection of the reference unit for prediction within a chosen coding or prediction mode, e.g. adaptive choice of position and number of pixels used for prediction
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T3/00—Geometric image transformations in the plane of the image
- G06T3/40—Scaling of whole images or parts thereof, e.g. expanding or contracting
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/10—Segmentation; Edge detection
- G06T7/11—Region-based segmentation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/70—Determining position or orientation of objects or cameras
- G06T7/73—Determining position or orientation of objects or cameras using feature-based methods
- G06T7/74—Determining position or orientation of objects or cameras using feature-based methods involving reference images or patches
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/90—Determination of colour characteristics
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T9/00—Image coding
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/10—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
- H04N19/102—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
- H04N19/124—Quantisation
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/10—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
- H04N19/169—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
- H04N19/17—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object
- H04N19/176—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object the region being a block, e.g. a macroblock
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/10—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
- H04N19/169—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
- H04N19/182—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being a pixel
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/50—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding
- H04N19/593—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding involving spatial prediction techniques
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/90—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using coding techniques not provided for in groups H04N19/10-H04N19/85, e.g. fractals
- H04N19/98—Adaptive-dynamic-range coding [ADRC]
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/10—Image acquisition modality
- G06T2207/10004—Still image; Photographic image
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/20—Special algorithmic details
- G06T2207/20021—Dividing image into blocks, subimages or windows
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/20—Special algorithmic details
- G06T2207/20212—Image combination
- G06T2207/20224—Image subtraction
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Signal Processing (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Compression Or Coding Systems Of Tv Signals (AREA)
- Compression Of Band Width Or Redundancy In Fax (AREA)
Abstract
Description
本發明涉及圖像處理裝置、圖像處理方法、及圖像處理程式
。The present invention relates to an image processing apparatus, an image processing method, and an image processing program.
作爲圖像編碼技術,如專利文獻1所公開,作爲3DCG用的紋理編碼技術已知S3TC(S3 Texture Compression,也被稱爲DXTC)。在此,S3TC中將圖像資訊分割爲4×4的塊。接下來,針對每個區塊設定兩個代表色和該代表色之間的兩個中間色,並以這四個顔色替換每個像素(替換圖像)。具體而言,儲存表示這四個顔色中使用了哪一個顔色的索引資訊。根據上述構成,通過保留每個區塊的代表色與索引資訊,可以再現(重現)上述替換圖像。由此,可以壓縮圖像資訊。As an image coding technology, as disclosed in Patent Document 1, S3TC (S3 Texture Compression, also referred to as DXTC) is known as a texture coding technology for 3DCG. Here, S3TC divides the image information into 4 × 4 blocks. Next, two representative colors and two intermediate colors between the representative colors are set for each block, and each pixel is replaced with these four colors (replacement image). Specifically, index information indicating which of the four colors is used is stored. According to the above configuration, the replacement image can be reproduced (reproduced) by retaining the representative color and index information of each block. Thereby, image information can be compressed.
專利文獻1:日本公表專利公報「特表2001-519608號」。Patent Document 1: Japanese Public Table Patent Gazette "Special Table 2001-519608".
然而,根據圖像,有時解碼後的圖像的劣化程度變大。鑒於上述問題,相較於現有技術,本發明的目的在於,實現能夠防止解碼後圖像劣化的圖像處理裝置。However, depending on the image, the degree of deterioration of the decoded image may increase. In view of the foregoing problems, an object of the present invention is to achieve an image processing device capable of preventing degradation of an image after decoding, as compared with the prior art.
本發明的圖像處理裝置包括:區塊化部,其將圖像資訊分割爲複數個區塊;映射資訊取得部,用於取得映射資訊,該映射資訊爲將表示對象像素所要參照的參照像素的複數個參照像素資訊、以及表示該對象像素與該參照像素之間的位置關係的位置資訊與該區塊內的該對象像素相關聯的資訊;參照像素資訊選擇部,基於該對象像素的像素值與該參照像素的像素值,在該映射資訊所包含的該複數個參照像素資訊中,選擇一個參照像素資訊。The image processing device of the present invention includes: a segmentation section that divides image information into a plurality of blocks; and a mapping information acquisition section for acquiring mapping information, which is a reference pixel to be referred to by a display target pixel A plurality of reference pixel information, and information relating to position information indicating a positional relationship between the target pixel and the reference pixel and the target pixel in the block; a reference pixel information selection unit, based on the pixels of the target pixel Value and the pixel value of the reference pixel, and among the plurality of reference pixel information included in the mapping information, one reference pixel information is selected.
本發明的圖像處理方法中,將圖像資訊分割爲複數個區塊;並取得映射資訊,該映射資訊爲將表示對象像素所要參照的參照像素的複數個參照像素資訊、以及表示該對象像素與該參照像素之間的位置關係的位置資訊與該區塊內的該對象像素相關聯的資訊;以及基於該對象像素的像素值與該參照像素的像素值,在該映射資訊所包含的該複數個參照像素資訊中,選擇一個參照像素資訊。In the image processing method of the present invention, the image information is divided into a plurality of blocks, and mapping information is obtained. The mapping information is a plurality of reference pixel information indicating a reference pixel to be referred to by the target pixel, and the target pixel is indicated. Position information related to the positional relationship between the reference pixels and information associated with the target pixel within the block; and based on the pixel value of the target pixel and the pixel value of the reference pixel, the From among the plurality of reference pixel information, select one reference pixel information.
本發明的圖像處理程式使電腦實現以下各部的功能:區塊化部,將圖像資訊分割爲複數個區塊;映射資訊取得部,用於取得映射資訊,該映射資訊爲將表示對象像素所要參照的參照像素的複數個參照像素資訊、以及表示該對象像素與該參照像素之間的位置關係的位置資訊與該區塊內的該對象像素相關聯的資訊;以及參照像素資訊選擇部,基於該對象像素的像素值與該參照像素的像素值,在該映射資訊所包含的該複數個參照像素資訊中,選擇一個參照像素資訊。The image processing program of the present invention enables a computer to implement the functions of the following sections: a block-based section that divides image information into a plurality of blocks; a mapping information obtaining section for obtaining mapping information that maps pixels to be displayed A plurality of reference pixel information of a reference pixel to be referred to, and information relating to position information indicating a positional relationship between the target pixel and the reference pixel and the target pixel in the block; and a reference pixel information selection section, Based on the pixel value of the target pixel and the pixel value of the reference pixel, one of the reference pixel information is selected from the plurality of reference pixel information included in the mapping information.
以下參數圖式詳細說明關於本發明的較佳實施形態。所涉及的實施形態中所示的尺寸、材料、其他具體數值等僅僅是爲了便於理解本發明的示例,除非另有說明,否則不限制本發明。並且,在本說明書和圖式中,具有基本相同的功能和構成的要素由相同的符號表示,由此省略了重複說明,並且省略與本發明不直接相關的要素。The following parameter diagrams describe preferred embodiments of the present invention in detail. The dimensions, materials, and other specific numerical values shown in the embodiments are merely examples to facilitate understanding of the present invention, and the present invention is not limited unless otherwise specified. In addition, in this specification and the drawings, elements having substantially the same functions and structures are denoted by the same symbols, and redundant descriptions are omitted, and elements not directly related to the present invention are omitted.
圖1爲示出本發明的圖像處理裝置的構成的一個例子的示意圖。如圖1所示,本發明的圖像處理裝置11例如功能性的包括:區塊化部12、映射資訊取得部13、參照像素資訊選擇部14、映射選擇部15、量子化部16、儲存部17、運算部18及編碼部19。FIG. 1 is a schematic diagram illustrating an example of a configuration of an image processing apparatus according to the present invention. As shown in FIG. 1, the image processing device 11 of the present invention functionally includes, for example, a block generation unit 12, a mapping information acquisition unit 13, a reference pixel information selection unit 14, a mapping selection unit 15, a quantization unit 16, and a storage unit. The unit 17, the computing unit 18, and the coding unit 19.
此外,所述圖像處理裝置11作爲硬體構成包括例如由CPU、MPU等構成的控制部,其根據被儲存在儲存部17的程式運作。並且,所述構成僅爲一個例子,例如也可構成爲,由一個LSI保存有後述的如圖4B所示的映射資訊(參照像素資訊、與位置關係相關的資訊、位元分配資訊、模式資訊等)。由該控制部實現區塊化部12、映射資訊取得部13、參照像素資訊選擇部14、映射選擇部15、量子化部16、運算部18及編碼部19。儲存部17例如由ROM、RAM等資訊儲存介質構成,是用於保存由控制部執行的程式的資訊儲存介質。此外,儲存部17也作爲控制部的工作儲存器來運作。並且,該程式也可以例如經由網絡下載而提供,或通過CD-ROM、DVD-ROM、半導體儲存器等的電腦可讀取的各種資訊儲存介質來提供。In addition, the image processing device 11 includes, as a hardware configuration, a control section composed of, for example, a CPU, an MPU, and the like, and operates according to a program stored in the storage section 17. In addition, the configuration is only an example. For example, it may be configured that mapping information (reference pixel information, position-related information, bit allocation information, and mode information) shown in FIG. 4B described later is stored in one LSI. Wait). The control unit realizes the block generation unit 12, the mapping information acquisition unit 13, the reference pixel information selection unit 14, the mapping selection unit 15, the quantization unit 16, the calculation unit 18, and the encoding unit 19. The storage unit 17 is composed of an information storage medium such as a ROM or a RAM, and is an information storage medium for storing a program executed by the control unit. The storage unit 17 also functions as a working memory of the control unit. In addition, the program may be provided by downloading through a network, or provided by various information storage media readable by a computer such as a CD-ROM, DVD-ROM, or semiconductor memory.
在此,輸入至圖像處理裝置11的圖像資訊爲,例如如圖2所示,圖像資訊Vmn在水平方向X(圖中的左右方向)上排列的m個像素資訊,並且在垂直方向Y(圖中的上下方向)上排列n個像素資訊( m、n是自然數)。此外,該圖像資訊例如由RGB的各種顔色形成。並且,除了RGB以外,該圖像資訊也可以由YUV等的不同形式的圖像資訊形成,下述的例子中,以RGB爲例子進行說明。Here, the image information input to the image processing device 11 is, for example, as shown in FIG. 2, the image information Vmn is m pixel information arranged in the horizontal direction X (the left-right direction in the figure) and is in the vertical direction. N pixel information is arranged on Y (up and down direction in the figure) (m and n are natural numbers). The image information is formed of, for example, various colors of RGB. In addition to RGB, the image information may also be formed from image information in different forms such as YUV. In the following examples, RGB is used as an example for description.
例如如圖3所示,區塊化部12將被輸入的圖像資訊分割爲4×4行的包括16個像素P0~P15的複數個區塊。所述區塊並不限定於4×4行,只要包括複數個像素,並不特別限定。For example, as shown in FIG. 3, the block division unit 12 divides the input image information into a plurality of blocks including 16 pixels P0 to P15 in a 4 × 4 line. The block is not limited to 4 × 4 lines, as long as it includes a plurality of pixels, it is not particularly limited.
所述區塊的每個像素的像素值通過量子化部16被量子化,並生成量子化區塊。該量子化區塊被儲存在儲存部17中。The pixel value of each pixel of the block is quantized by the quantization unit 16 and a quantized block is generated. The quantized block is stored in the storage unit 17.
量子化部16例如基於區塊中的像素的像素值,計算圖像資訊的RGB各色的最大值、最小值以作爲代表值。並且,通過將最大值和最小值之間用由規定的位元寬度(例如,12bit)表示的複數個中間值替換,來量子化該區塊內的各像素的像素值。所述區塊及量子化區塊被儲存在儲存部17中。上述例子中,將最大值與最小值作爲代表值,但並不限定於此。The quantization unit 16 calculates, as a representative value, the maximum value and the minimum value of the RGB colors of the image information based on the pixel values of the pixels in the block, for example. Then, the pixel value of each pixel in the block is quantized by replacing the maximum value and the minimum value with a plurality of intermediate values represented by a predetermined bit width (for example, 12 bits). The blocks and the quantized blocks are stored in the storage unit 17. In the above examples, the maximum value and the minimum value are taken as the representative values, but it is not limited to this.
映射資訊取得部13取得映射資訊,所述映射資訊爲表示對象像素所要參照的參照像素的複數個參照像素資訊與表示對象像素與參照像素之間的位置關係的位置資訊相關聯的資訊。具體而言,使用圖4B所示的映射資訊來進行說明。圖4B中,對象像素爲Q1至Q4。如圖4B右側所示,參照像素P1、P4、P1和P13、P4和P7作爲參照像素資訊與對象像素Q1相關聯。此外,如圖4B左側所示,也將各參照像素與對象像素的位置關係相關聯。進一步,如圖4B右側所示,每個參照像素資訊(對象像素Q1與P1、P4、P1和P13、P4和P7等)與模式資訊相關聯、或所述模式資訊表示直接參照參照像素還是以1:2內分等。並且,關於直接參照及內分等的詳細說明將後述。進一步,映射資訊中,對象像素的位元寬度及對象像素以外的像素位元寬度也相關聯。並且,該映射資訊僅爲一個例子,映射資訊並不限定於上述構成。The mapping information acquisition unit 13 obtains mapping information, and the mapping information is information related to a plurality of reference pixel information indicating a reference pixel to be referred to by the target pixel and position information indicating a positional relationship between the target pixel and the reference pixel. Specifically, description is made using the mapping information shown in FIG. 4B. In FIG. 4B, the target pixels are Q1 to Q4. As shown on the right side of FIG. 4B, reference pixels P1, P4, P1 and P13, P4 and P7 are associated with the target pixel Q1 as reference pixel information. As shown in the left side of FIG. 4B, the positional relationship between each reference pixel and the target pixel is also associated. Further, as shown on the right side of FIG. 4B, each reference pixel information (target pixels Q1 and P1, P4, P1 and P13, P4 and P7, etc.) is associated with the mode information, or the mode information indicates whether the reference pixel is directly referenced or not. 1: 2 internal classification. A detailed description of the direct reference and internal division will be described later. Further, in the mapping information, the bit width of the target pixel and the pixel bit width other than the target pixel are also related. In addition, the mapping information is only an example, and the mapping information is not limited to the above configuration.
此外,相應於在上述的現有技術中解碼時圖像的劣化程度大的各圖像,預先設定各映射資訊。具體而言,例如,當區塊內的像素的顔色像漸變一樣連續變化時,由代碼6或代碼7表示的映射資訊能夠抑制解碼時的圖像劣化的程度。In addition, each mapping information is set in advance corresponding to each image in which the degree of degradation of the image during decoding in the conventional technique described above is large. Specifically, for example, when the color of pixels in a block continuously changes like a gradient, the mapping information represented by code 6 or code 7 can suppress the degree of image degradation during decoding.
參照像素資訊選擇部14基於對象像素的像素值與參照像素的像素值,選擇一個參照像素資訊。具體而言,將所述對象像素Q1的情况作爲例子說明。如上所述,Q1與P1、P4、P1和P13、P4和P7相關聯,因此分別獲得候補像素值。更具體而言,例如,圖4B第一行的參照像素資訊中,作爲模式資訊相關聯了直接參照,因此候補像素值爲P1的像素值。同樣地,第二行的參照像素值爲P4的像素值。另一方面,關於第三行的像素值而言,由於作爲參照像素資訊相關聯了P1和P13,因此根據對象像素Q1和參照像素P1、P13的距離,獲得候補像素資訊。具體而言,Q1和P1之間的距離及Q1和P13之間的距離的比率爲1:2,因此Q1的候補像素資訊根據P1的像素值×2/3+P13的像素值×1/3來獲得。關於第四行的參照像素值而言,作爲參照像素資訊相關聯了P4和P7,因此與第三行的參照像素資訊相同地,根據P4的像素值×2/3+P7的像素值×1/3來獲得參照像素值。當以公式表示,根據對應於Q1和P1之間的距離及Q1和P13之間的距離來計算參照像素值的公式如下。The reference pixel information selection unit 14 selects one reference pixel information based on the pixel value of the target pixel and the pixel value of the reference pixel. Specifically, the case of the target pixel Q1 will be described as an example. As described above, Q1 is associated with P1, P4, P1 and P13, P4, and P7, and thus obtains candidate pixel values, respectively. More specifically, for example, in the reference pixel information in the first row of FIG. 4B, a direct reference is associated with the mode information, so the candidate pixel value is the pixel value of P1. Similarly, the reference pixel value of the second row is the pixel value of P4. On the other hand, regarding the pixel values of the third row, since P1 and P13 are associated as reference pixel information, candidate pixel information is obtained based on the distance between the target pixel Q1 and the reference pixels P1 and P13. Specifically, the ratio of the distance between Q1 and P1 and the distance between Q1 and P13 is 1: 2, so the candidate pixel information of Q1 is obtained according to the pixel value of P1 × 2/3 + the pixel value of P13 × 1/3. . As for the reference pixel value of the fourth row, P4 and P7 are associated as the reference pixel information. Therefore, similarly to the reference pixel information of the third row, the pixel value of P4 × 2/3 + the pixel value of P7 × 1/3 To get the reference pixel value. When expressed by a formula, the formula for calculating the reference pixel value based on the distance corresponding to Q1 and P1 and the distance between Q1 and P13 is as follows.
[公式1]
[Formula 1]
並且,上述參照像素值的計算方法僅爲一個例子,並不限定該計算方法。參照像素資訊選擇部14還使運算部18計算對象像素值與所述參照像素值之間的差分,並作爲參照像素資訊選擇對應於該差分爲最小的參照像素值的參照像素。在此示出了計算差分來選擇的例子,但並不限定於此,只要是使對象像素的像素值與參照像素值之間的誤差小的選擇方法,可以爲其他任意方法。例如,所述差分值使用近似差分值等來計算。The calculation method of the reference pixel value is only an example, and the calculation method is not limited. The reference pixel information selection unit 14 further causes the arithmetic unit 18 to calculate a difference between the target pixel value and the reference pixel value, and selects, as the reference pixel information, a reference pixel corresponding to a reference pixel value whose difference is the smallest. Although an example of selecting by calculating a difference is shown here, it is not limited to this, and any other method may be used as long as it is a selection method that reduces the error between the pixel value of the target pixel and the reference pixel value. For example, the difference value is calculated using an approximate difference value or the like.
參照像素資訊選擇部14相同地選擇關於圖4B所示的對象像素Q2~Q4的參照像素資訊。並且,取得了關於圖4B~圖4H所示的映射資訊時,進行與上述相同的處理,因此省略其說明。The reference pixel information selection unit 14 similarly selects reference pixel information on the target pixels Q2 to Q4 shown in FIG. 4B. When the mapping information shown in FIG. 4B to FIG. 4H is acquired, the same processing as described above is performed, and therefore description thereof is omitted.
映射選擇部15基於替換區塊和替換前的區塊選擇所述複數個映射資訊中的一個映射資訊,其中所述替換區塊是以針對每個映射資訊根據參照像素資訊選擇部14選擇的參照像素資訊計算出的像素值來替換。映射選擇部15基於包含每個對象像素的參照像素資訊的映射資訊,將對應於每個對象像素的參照像素以所獲得的參照像素值替換,並獲得替換區塊。映射選擇部15是運算部18計算所獲得的替換區塊和替換前的區塊之間的差分,並選擇差分最小的映射資訊。差分的計算方法並不特別限定,可以計算直接差分,也可以計算近似值的差分。在此示出計算差分並選擇的例子,選擇映射資訊時的方法並不限定於此,只要使替換區塊與替換前的區塊的誤差變小,可以爲任意方法。The mapping selection unit 15 selects one of the plurality of mapping information based on a replacement block and a block before replacement, wherein the replacement block is a reference selected by the reference pixel information selection unit 14 for each mapping information. The pixel value calculated by the pixel information is replaced. The mapping selection unit 15 replaces the reference pixel corresponding to each target pixel with the obtained reference pixel value based on the mapping information including the reference pixel information of each target pixel, and obtains a replacement block. The mapping selection unit 15 calculates a difference between the obtained replacement block and the block before replacement, and selects mapping information having the smallest difference. The calculation method of the difference is not particularly limited, and a direct difference may be calculated, or an approximate value difference may be calculated. An example of calculating the difference and selecting is shown here. The method for selecting the mapping information is not limited to this, and any method may be used as long as the error between the replacement block and the block before replacement is reduced.
例如,編碼部19作爲編碼資訊輸出:將上述所選擇的映射資訊(例如,代碼1)量子化的數據、將對應於所選擇的映射資訊的參照像素資訊(例如,表示Q1的參照像素P1的資訊)量子化的數據、將對象像素以外的像素值(例如,P0)量子化的數據、所述最大值與最小值量子化的數據。如上所述,在此映射資訊與位元分配資訊相關聯,例如,對應於該映射資訊,量子化部16將參照像素資訊及對象像素以外的像素值進行量子化。並且,也可以構成爲:根據所述最大值與最小值的數據所包含的順序,判斷是基於RGB的數據還是基於YUV的數據。For example, the encoding unit 19 outputs as encoded information: quantized data of the selected mapping information (for example, code 1), and reference pixel information (for example, the reference pixel P1 indicating Q1) corresponding to the selected mapping information. (Information) quantized data, quantized data of pixel values (eg, P0) other than the target pixel, and quantized data of the maximum and minimum values. As described above, the mapping information is associated with the bit allocation information. For example, in accordance with the mapping information, the quantization unit 16 quantizes the reference pixel information and pixel values other than the target pixel. In addition, it may be configured to determine whether it is RGB-based data or YUV-based data according to an order included in the data of the maximum value and the minimum value.
本發明的圖像處理裝置還可以構成爲:具備解碼部(未圖示),被編碼的資訊在解碼部中進行解碼,生成被解碼後的圖像數據。The image processing apparatus of the present invention may be further configured to include a decoding unit (not shown), and the encoded information is decoded by the decoding unit to generate decoded image data.
此外,所述通信處理裝置11還可以具備單色判斷部,其用於判斷圖像資訊是否由單色構成。該情况下,單色判斷部判斷所述區塊中所述像素是否由單色表示。當判斷爲區塊中的每個像素爲單色的情况下,也通過將RGB各顔色獨立地具有的最大值/最小值相同設置,將剩餘的位元分配給量子化時的位元寬度。例如,使用如圖4A所示的代碼0的映射資訊來進行處理。如圖4A所示,由於沒有參照像素,所以在編碼時原樣使用區塊的資訊。例如,使用如圖4A所示的區塊內的像素P0~15被分配12bit的位元寬度的區塊。並且,該情况下也可以使用上述圖4B至4H中所示的映射資訊來進行處理。此外,單色的情况下能夠以一個顔色表示,因此不需要對其他顔色分配位元寬度,因此也可以構成爲,進一步將剩餘的位元寬度分配給該單色中。另外,例如,即使每個像素的值R、G、B,R、G在一定範圍內相同,也可以像單色一樣處理。組合不限於此。具備單色判斷的情况下,通過將判斷是否爲單色的附加位元添加到代碼數據中,由此能夠在解碼時進行判斷。In addition, the communication processing device 11 may further include a monochrome determination unit for determining whether or not the image information is composed of monochrome. In this case, the monochrome determination unit determines whether the pixels in the block are represented by monochrome. When it is determined that each pixel in the block is monochrome, the remaining bits are also allocated to the bit width at the time of quantization by setting the maximum / minimum values of the RGB colors independently. For example, processing is performed using the mapping information of code 0 as shown in FIG. 4A. As shown in FIG. 4A, since there is no reference pixel, the information of the block is used as it is during encoding. For example, a block having a bit width of 12 bits is allocated using pixels P0 to 15 in the block shown in FIG. 4A. Moreover, in this case, processing can also be performed using the mapping information shown in the above-mentioned FIGS. 4B to 4H. In addition, in the case of a single color, since it can be represented by one color, there is no need to assign a bit width to other colors. Therefore, it may be configured to further allocate the remaining bit width to the single color. In addition, for example, even if the values R, G, B, R, and G of each pixel are the same within a certain range, it can be processed like a single color. The combination is not limited to this. In the case where monochrome judgment is provided, it is possible to judge at the time of decoding by adding additional bits that determine whether or not the image is monochrome.
以下,參照圖5例示的流程圖說明本實施形態涉及的圖像處理裝置11執行的圖像處理流程。Hereinafter, an image processing flow executed by the image processing device 11 according to the present embodiment will be described with reference to a flowchart illustrated in FIG. 5.
如圖5所示,向圖像處理裝置11輸入圖像資訊(S1)。區塊化部12將被輸入的圖像資訊分割爲4×4行的包括16個像素P0~P15的複數個區塊(S2)。基於區塊中的像素的像素值,將圖像資訊的RGB各色的最大值、最小值作爲代表值來計算(S3)。As shown in FIG. 5, image information is input to the image processing apparatus 11 (S1). The block division unit 12 divides the input image information into a plurality of blocks including 16 pixels P0 to P15 in a 4 × 4 line (S2). Based on the pixel values of the pixels in the block, the maximum and minimum values of the RGB colors of the image information are calculated as representative values (S3).
映射資訊取得部13取得映射資訊,所述映射資訊爲表示對象像素所要參照的參照像素的複數個參照像素資訊與表示對象像素與參照像素之間的位置關係的位置資訊相關聯的資訊(S4)。參照像素資訊選擇部14還使運算部18計算對象像素值與所述參照像素值之間的差分,並作爲參照像素資訊選擇對應於該差分爲最小的參照像素值的參照像素(S5)。對每個映射資訊進行該處理。The mapping information acquisition unit 13 obtains mapping information, and the mapping information is information associated with a plurality of reference pixel information indicating a reference pixel to be referred to by the target pixel and position information indicating a positional relationship between the target pixel and the reference pixel (S4) . The reference pixel information selection unit 14 further causes the arithmetic unit 18 to calculate a difference between the target pixel value and the reference pixel value, and selects, as the reference pixel information, a reference pixel corresponding to a reference pixel value in which the difference is smallest (S5). This processing is performed for each mapping information.
映射選擇部15基於替換區塊和替換前的區塊選擇所述複數個映射資訊中的一個映射資訊,其中所述替換區塊是以由參照像素資訊選擇部14選擇的參照像素資訊計算出的像素值來替換(S6)。The mapping selection section 15 selects one of the plurality of mapping information based on the replacement block and the block before replacement, wherein the replacement block is calculated based on the reference pixel information selected by the reference pixel information selection section 14 The pixel value is replaced (S6).
例如,編碼部19作爲編碼資訊輸出:將上述所選擇的映射資訊(例如,代碼1)量子化的數據、將對應於所選擇的映射資訊的參照像素資訊(例如,表示Q1的參照像素P1的資訊)量子化的數據對象像素以外的像素值(例如,P0)量子化的數據、將所述最大值與最小值量子化的數據(S7)。For example, the encoding unit 19 outputs as encoded information: quantized data of the selected mapping information (for example, code 1), and reference pixel information (for example, the reference pixel P1 indicating Q1) corresponding to the selected mapping information. Information) Quantized data of pixel values (for example, P0) other than the quantized data object pixel, and quantized data of the maximum and minimum values (S7).
根據上述實施形態,與上述的現有技術相比,能夠防止解碼後的圖像劣化。According to the above embodiment, it is possible to prevent the decoded image from being deteriorated as compared with the above-mentioned conventional technology.
例如,上述實施形態中,還可以構成爲,例如基於整體位元數和各顔色的最大值和最小值的差分比(範圍比、r1≤r2≤r3),確定各顔色(RGB或YUV)的位元分配(b1≤b2≤b3),由此進行分配。該情况下,取得位元分配資訊,並基於該位元分配資訊確定向各顔色的位元分配,所述位元分配資訊例如如下表所示,表示針對每個代碼預先設定的範圍比和位元分配之間的關係。並且,下表表示位元分配資訊的一部分的一個例子。更具體而言,例如代碼1的情况下,當像素資訊的範圍比(r1,r2、r3)爲(2、5、4096)時,是位元分配資訊(2、4、4096),由於對應於r2的5爲對應位元分配資訊的r2的4以上,因此基於下表中第一行的位元分配資訊,(b1、b2、b3)的位元分配設爲(1、2、12)等。並且,下表僅爲位元分配資訊的一個例子,並不限定於下表。例如,可以針對每個上述代碼或各代碼組(代碼1至4等)預先設定。由此,可以更加均衡每個位元數可以表示的最大範圍。並且,例如也可以構成爲向各範圍上添加1,以使上述範圍(r1等)不會成爲0。此外,爲了增加Y的權重,也可以構成爲加權到3倍。進一步,爲了打破平局,也可以構成爲G添加1。並且,上述說明中,使用最大值和最小值之間的差分比作爲示例,並不限定於此。For example, in the above embodiment, it may be configured to determine the color of each color (RGB or YUV) based on the overall number of bits and the difference ratio (range ratio, r1≤r2≤r3) of the maximum and minimum values of each color Bit allocation (b1≤b2≤b3), so that allocation is performed. In this case, the bit allocation information is obtained, and the bit allocation to each color is determined based on the bit allocation information. The bit allocation information, for example, is shown in the following table, which indicates the range ratio and bit set in advance for each code. Relationship between meta-allocations. The following table shows an example of a part of the bit allocation information. More specifically, for example, in the case of code 1, when the range ratio of pixel information (r1, r2, r3) is (2, 5, 4096), it is bit allocation information (2, 4, 4096). 5 at r2 is 4 or more of r2 corresponding to the bit allocation information, so based on the bit allocation information in the first row in the table below, the bit allocation of (b1, b2, b3) is set to (1, 2, 12) Wait. The following table is only an example of bit allocation information and is not limited to the following table. For example, each of the above codes or each code group (codes 1 to 4 and the like) may be set in advance. Thereby, the maximum range that can be represented by each bit number can be more balanced. Further, for example, a configuration may be adopted in which 1 is added to each range so that the above range (r1, etc.) does not become 0. In addition, in order to increase the weight of Y, it may be configured to be weighted to 3 times. Furthermore, in order to break the tie, G may be added to 1. Moreover, in the above description, the difference ratio between the maximum value and the minimum value is used as an example, and it is not limited to this.
[表1]
[Table 1]
本發明不限於上述實施形態,可以用與上述實施形態所示的構成基本相同的構成、實現相同作用效果的構成、或者可以實現相同目的的構成替換。並且,例如,在8K電視中,編碼/解碼圖像資訊時可以應用所述圖像處理裝置。The present invention is not limited to the above-mentioned embodiment, and may be replaced with a structure that is substantially the same as the structure shown in the above-mentioned embodiment, a structure that achieves the same effect, or a structure that can achieve the same purpose. And, for example, in an 8K television, the image processing device may be applied when encoding / decoding image information.
本發明不限於上述各實施形態,能在申請專利範圍所示的範圍中進行各種變更,適當組合不同的實施形態中分別公開的技術手段而得到的實施形態也包含於本發明的技術範圍。而且,能夠通過組合各實施形態分別公開的技術方法來形成新的技術特徵。The present invention is not limited to the above-mentioned embodiments, and various changes can be made within the scope shown in the patent application scope. Embodiments obtained by appropriately combining technical means disclosed in different embodiments are also included in the technical scope of the present invention. Furthermore, new technical features can be formed by combining the technical methods disclosed in the respective embodiments.
11‧‧‧圖像處理裝置11‧‧‧Image processing device
12‧‧‧區塊化部 12‧‧‧ Block Division
13‧‧‧映射資訊取得部 13‧‧‧Mapping Information Acquisition Department
14‧‧‧參照像素資訊選擇部 14‧‧‧Reference pixel information selection section
15‧‧‧映射選擇部 15‧‧‧Map selection department
16‧‧‧量子部 16‧‧‧ Quantum Department
17‧‧‧儲存部 17‧‧‧Storage Department
18‧‧‧運算部 18‧‧‧ Computing Department
19‧‧‧編碼部 19‧‧‧ Coding Department
圖1爲本發明的實施形態涉及的圖像處理裝置的構成的說明圖。FIG. 1 is an explanatory diagram of a configuration of an image processing apparatus according to an embodiment of the present invention.
圖2爲示出被輸入的圖像資訊的一個例子的示意圖。 FIG. 2 is a schematic diagram showing an example of inputted image information.
圖3爲示出被區塊化的區塊的構成的一個例子的示意圖。 FIG. 3 is a schematic diagram showing an example of the structure of a block that is divided into blocks.
圖4A爲示出映射資訊的一個例子的示意圖。 FIG. 4A is a schematic diagram showing an example of mapping information.
圖4B爲示出映射資訊的其他例子的示意圖。 FIG. 4B is a schematic diagram illustrating another example of the mapping information.
圖4C爲示出映射資訊的其他例子的示意圖。 FIG. 4C is a schematic diagram showing another example of the mapping information.
圖4D爲示出映射資訊的其他例子的示意圖。 FIG. 4D is a schematic diagram showing another example of the mapping information.
圖4E爲示出映射資訊的其他例子的示意圖。 FIG. 4E is a schematic diagram showing another example of the mapping information.
圖4F爲示出映射資訊的其他例子的示意圖。 FIG. 4F is a schematic diagram showing another example of the mapping information.
圖4G爲示出映射資訊的其他例子的示意圖。 FIG. 4G is a schematic diagram showing another example of the mapping information.
圖4H爲示出映射資訊的其他例子的示意圖。 FIG. 4H is a schematic diagram showing another example of the mapping information.
圖5爲示出本發明的實施形態的流程的一個例子示意圖。 FIG. 5 is a schematic diagram showing an example of a flow of an embodiment of the present invention.
Claims (12)
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2018033045A JP6975070B2 (en) | 2018-02-27 | 2018-02-27 | Image processing device, image processing method, and image processing program |
JP2018-033045 | 2018-02-27 |
Publications (2)
Publication Number | Publication Date |
---|---|
TW201937929A true TW201937929A (en) | 2019-09-16 |
TWI736850B TWI736850B (en) | 2021-08-21 |
Family
ID=67685121
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
TW108106354A TWI736850B (en) | 2018-02-27 | 2019-02-25 | (無) |
Country Status (4)
Country | Link |
---|---|
US (1) | US10937194B2 (en) |
JP (1) | JP6975070B2 (en) |
CN (1) | CN110197512B (en) |
TW (1) | TWI736850B (en) |
Family Cites Families (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5956431A (en) | 1997-10-02 | 1999-09-21 | S3 Incorporated | System and method for fixed-rate block-based image compression with inferred pixel values |
US6775417B2 (en) * | 1997-10-02 | 2004-08-10 | S3 Graphics Co., Ltd. | Fixed-rate block-based image compression with inferred pixel values |
US6819793B1 (en) * | 2000-06-30 | 2004-11-16 | Intel Corporation | Color distribution for texture and image compression |
US6807300B1 (en) * | 2000-07-20 | 2004-10-19 | Eastman Kodak Company | Noise reduction method utilizing color information, apparatus, and program for digital image processing |
TW476921B (en) * | 2000-11-20 | 2002-02-21 | Silicon Integrated Sys Corp | Method of block-based texture compression using edge information in a block |
WO2006126949A1 (en) * | 2005-05-27 | 2006-11-30 | Telefonaktiebolaget Lm Ericsson (Publ) | Weight based image processing |
JP4808067B2 (en) * | 2006-04-24 | 2011-11-02 | 富士通株式会社 | Image compression apparatus, image compression program, and image compression method |
CN101502124B (en) * | 2006-07-28 | 2011-02-23 | 株式会社东芝 | Image encoding and decoding method and apparatus |
JP5500163B2 (en) * | 2009-02-19 | 2014-05-21 | 日本電気株式会社 | Image processing system, image processing method, and image processing program |
KR102575126B1 (en) * | 2018-12-26 | 2023-09-05 | 주식회사 엘엑스세미콘 | Image precessing device and method thereof |
-
2018
- 2018-02-27 JP JP2018033045A patent/JP6975070B2/en active Active
-
2019
- 2019-02-25 TW TW108106354A patent/TWI736850B/en active
- 2019-02-26 US US16/285,894 patent/US10937194B2/en active Active
- 2019-02-26 CN CN201910140389.2A patent/CN110197512B/en active Active
Also Published As
Publication number | Publication date |
---|---|
US20190266757A1 (en) | 2019-08-29 |
JP2019149672A (en) | 2019-09-05 |
JP6975070B2 (en) | 2021-12-01 |
CN110197512B (en) | 2023-05-02 |
US10937194B2 (en) | 2021-03-02 |
TWI736850B (en) | 2021-08-21 |
CN110197512A (en) | 2019-09-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11917140B2 (en) | Selection of an extended intra prediction mode | |
US10291926B2 (en) | Method and apparatus for compressing and decompressing data | |
TWI466066B (en) | Block compressing system, block decompressing system and related methods | |
US20150208090A1 (en) | Image encoding apparatus and image encoding method | |
EP3069322B1 (en) | An apparatus and a method for associating a video block partitioning pattern to a video coding block | |
US8244033B2 (en) | Image encoding apparatus, image decoding apparatus, and control method thereof | |
US10021405B2 (en) | Encoding device, decoding device, and image processing device | |
CN113347416B (en) | Chroma intra prediction method and device, and computer storage medium | |
TW201937929A (en) | Image processing apparatus, image processing method, and image processing program | |
US20220303551A1 (en) | Video decoding method and apparatus, and video encoding method and apparatus | |
JP2006080793A (en) | Image coder, method, compputer program, and computer readable storage medium | |
JP2006512019A (en) | Image processing device | |
JP5933987B2 (en) | Image coding apparatus and control method thereof | |
CN112437307A (en) | Video coding method, video coding device, electronic equipment and video coding medium | |
JP4862186B2 (en) | Predictive processing system | |
CN113422955B (en) | HEIF image encoding method, HEIF image decoding method, HEIF image encoding device, HEIF image decoding device, HEIF image encoding program, HEIF image decoding program, and HEIF image decoding program | |
CN109618162B (en) | Post-selection prediction method in bandwidth compression | |
KR101268588B1 (en) | Apparatus and method for lossless image compression | |
CN117221533A (en) | Intra-frame prediction method and device, video encoding device and storage medium | |
CN118118679A (en) | Image lossless compression method, device and system and readable storage medium | |
WO2019082413A1 (en) | Image processing device, and image processing method | |
US20130301940A1 (en) | Method for image data compression of image block | |
Farouk et al. | New adaptive technique for color image compression | |
JP2001218061A (en) | Image compression processor | |
JP2017107378A (en) | Super-resolution device, super-resolution method, and program |