[go: up one dir, main page]

TWI825410B - Image processing methods, devices, photographic equipment and storage media - Google Patents

Image processing methods, devices, photographic equipment and storage media Download PDF

Info

Publication number
TWI825410B
TWI825410B TW110115437A TW110115437A TWI825410B TW I825410 B TWI825410 B TW I825410B TW 110115437 A TW110115437 A TW 110115437A TW 110115437 A TW110115437 A TW 110115437A TW I825410 B TWI825410 B TW I825410B
Authority
TW
Taiwan
Prior art keywords
image
data
image block
component
brightness value
Prior art date
Application number
TW110115437A
Other languages
Chinese (zh)
Other versions
TW202141427A (en
Inventor
劉召軍
張胡夢圓
莫煒靜
Original Assignee
大陸商深圳市思坦科技有限公司
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by 大陸商深圳市思坦科技有限公司 filed Critical 大陸商深圳市思坦科技有限公司
Publication of TW202141427A publication Critical patent/TW202141427A/en
Application granted granted Critical
Publication of TWI825410B publication Critical patent/TWI825410B/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/169Methods 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/186Methods 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 colour or a chrominance component
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/169Methods 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/17Methods 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/176Methods 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/169Methods 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/182Methods 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/60Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using transform coding
    • H04N19/625Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using transform coding using discrete cosine transform [DCT]

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • Discrete Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

本發明實施例提供了一種影像處理方法、裝置、攝影設備和儲存介質。該影像處理方法包括:採集初始圖像,所述初始圖像對應RGB資料格式;將所述初始圖像劃分為多個圖像區塊;將所述多個圖像區塊中的每個圖像區塊由RGB資料格式轉換成YUV資料格式,其中,Y為亮度值,UV是色度值;將靶心圖表像區塊的亮度值Y反轉為暗度值D,所述靶心圖表像區塊為所述多個圖像區塊中的一個或多個;將所述靶心圖表像區塊的DUV資料和未反轉圖像區塊的YUV資料進行編碼,得到所述初始圖像的目標圖像資料。通過將亮度值Y反轉為暗度值D,達到降低編碼得到的圖像資料的資料量的效果。 Embodiments of the present invention provide an image processing method, device, photography equipment and storage medium. The image processing method includes: collecting an initial image, the initial image corresponding to the RGB data format; dividing the initial image into a plurality of image blocks; and dividing each image in the plurality of image blocks. The image block is converted from the RGB data format to the YUV data format, where Y is the brightness value and UV is the chromaticity value; the brightness value Y of the bullseye chart image block is inverted into the darkness value D, and the bullseye chart image area The block is one or more of the plurality of image blocks; the DUV data of the bullseye chart image block and the YUV data of the non-inverted image block are encoded to obtain the target of the initial image Image data. By inverting the brightness value Y into the darkness value D, the effect of reducing the data amount of the encoded image data is achieved.

Description

影像處理方法、裝置、攝影設備和儲存介質 Image processing methods, devices, photographic equipment and storage media

本發明實施例涉及影像處理技術領域,尤其涉及一種影像處理方法、裝置、攝影設備和儲存介質。 Embodiments of the present invention relate to the field of image processing technology, and in particular, to an image processing method, device, photography equipment and storage medium.

隨著5G技術和高解析度影像技術的進展,高解析度顯示的需求越來越多。 With the advancement of 5G technology and high-resolution imaging technology, there is an increasing demand for high-resolution displays.

目前,對高解析度影像進行顯示,是通過將影像分成一幀一幀圖片,針對每個圖片由RGB資料轉換成YUV資料後進行解碼。然後傳輸至顯示裝置,例如電視上進行播放。常用的顯示裝置都是採用被動發光模式進行顯示的,因此已有的編碼方法也是針對被動發光模式的顯示裝置來設置的。對於一些主動發光模式的顯示裝置來說,也在沿用被動發光模式的編碼方式。 Currently, high-resolution images are displayed by dividing the image into frames, and converting RGB data into YUV data for each image before decoding it. It is then transmitted to a display device, such as a television, for playback. Commonly used display devices all use passive light-emitting mode for display, so existing encoding methods are also set up for display devices in passive light-emitting mode. For some active light-emitting mode display devices, the encoding method of passive light-emitting mode is also used.

然而,對於主動發光模式的顯示裝置來說,還沿用被動發光模式的編碼方式來對影像的每一幀圖像進行編碼,會導致編碼得到的圖像資料的資料量非常大。 However, for display devices in active light-emitting mode, the encoding method of passive light-emitting mode is still used to encode each frame of the image, which results in a very large amount of encoded image data.

本發明實施例提供一種影像處理方法、裝置、攝影設備和儲存介質,以實現降低編碼得到的圖像資料的資料量。 Embodiments of the present invention provide an image processing method, device, photography equipment, and storage medium to reduce the amount of encoded image data.

第一方面,本發明實施例提供了一種影像處理方法,包括:採集初始圖像,所述初始圖像對應RGB資料格式; 將所述初始圖像劃分為多個圖像區塊;將所述多個圖像區塊中的每個圖像區塊由RGB資料格式轉換成YUV資料格式,其中,Y為亮度值,UV是色度值;將靶心圖表像區塊的亮度值Y反轉為暗度值D,所述靶心圖表像區塊為所述多個圖像區塊中的一個或多個;將所述靶心圖表像區塊的DUV資料和未反轉圖像區塊的YUV資料進行編碼,得到所述初始圖像的目標圖像資料。 In a first aspect, embodiments of the present invention provide an image processing method, including: collecting an initial image, where the initial image corresponds to an RGB data format; Divide the initial image into multiple image blocks; convert each image block in the multiple image blocks from the RGB data format to the YUV data format, where Y is the brightness value, and UV is the chromaticity value; invert the brightness value Y of the bull's-eye chart image block, which is one or more of the plurality of image blocks, into the darkness value D; The DUV data of the image block of the image and the YUV data of the non-inverted image block are encoded to obtain the target image data of the initial image.

可選的,所述圖像區塊包括一個或多個圖元點,所述RGB資料格式包括R分量、G分量和B分量,所述YUV資料格式包括Y分量、U分量和V分量,所述將所述多個圖像區塊中的每個圖像區塊由RGB資料格式轉換成YUV資料格式,包括:確定每個圖像區塊對應的一個或多個圖元點;根據每個圖元點的R分量、G分量和B分量確定每個圖元點的Y分量;確定所述一個或多個圖元點中的第一目標圖元點;根據所述第一目標圖元點的R分量、G分量和B分量確定所述第一目標圖元點的U分量和/或V分量。 Optionally, the image block includes one or more primitive points, the RGB data format includes R component, G component and B component, and the YUV data format includes Y component, U component and V component, so Converting each image block in the plurality of image blocks from RGB data format to YUV data format includes: determining one or more graphic element points corresponding to each image block; according to each The R component, G component and B component of the primitive point determine the Y component of each primitive point; determine the first target primitive point among the one or more primitive points; according to the first target primitive point The R component, G component and B component determine the U component and/or V component of the first target primitive point.

可選的,所述將靶心圖表像區塊的亮度值Y反轉為暗度值D,包括:通過第一預設公式將靶心圖表像區塊的亮度值Y反轉為暗度值D,所述第一預設公式為:D=255-Y,其中Y=(0.299R+0.587G+0.114B)。 Optionally, inverting the brightness value Y of the bullseye chart image block into the darkness value D includes: inverting the brightness value Y of the bullseye chart image block into the darkness value D through a first preset formula, The first preset formula is: D=255-Y, where Y=(0.299R+0.587G+0.114B).

可選的,所述將靶心圖表像區塊的亮度值Y反轉為暗度值D,包括: 獲取每個圖像區塊的平均亮度值;將所述平均亮度值大於第一預設亮度閾值的圖像區塊確定為所述靶心圖表像區塊;將所述靶心圖表像區塊對應的每個圖元點的亮度值Y反轉為暗度值D。 Optionally, inverting the brightness value Y of the bullseye chart image block into the darkness value D includes: Obtain the average brightness value of each image block; determine the image block whose average brightness value is greater than the first preset brightness threshold as the bull's-eye chart image block; determine the target image block corresponding to the bull's-eye chart image block The brightness value Y of each primitive point is inverted into the darkness value D.

可選的,所述將靶心圖表像區塊的亮度值Y反轉為暗度值D,包括:獲取每個圖像區塊對應的每個圖元點的亮度值Y;將亮度值Y大於第二預設亮度閾值的圖元點確定為第二目標圖元點;將所述第二目標圖元點的亮度值Y反轉成暗度值D。 Optionally, inverting the brightness value Y of the bullseye chart image block into the darkness value D includes: obtaining the brightness value Y of each primitive point corresponding to each image block; converting the brightness value Y to greater than The primitive point with the second preset brightness threshold is determined as the second target primitive point; the brightness value Y of the second target primitive point is inverted into the darkness value D.

可選的,所述將所述靶心圖表像區塊的DUV資料和未反轉圖像區塊的YUV資料進行編碼,得到所述初始圖像的目標圖像資料,包括:對所述靶心圖表像區塊的DUV資料和未反轉圖像區塊的YUV資料進行離散餘弦變換,得到離散餘弦變換後的DUV資料和離散餘弦變換後的YUV數據;對所述離散餘弦變換後的DUV資料和離散餘弦變換後的YUV資料進行編碼,得到所述初始圖像的目標圖像資料。 Optionally, encoding the DUV data of the image block of the bull's-eye chart and the YUV data of the non-inverted image block to obtain the target image data of the initial image includes: encoding the bull's-eye chart The DUV data of the image block and the YUV data of the non-inverted image block are subjected to discrete cosine transformation to obtain the DUV data after discrete cosine transformation and the YUV data after discrete cosine transformation; the DUV data after discrete cosine transformation and The YUV data after discrete cosine transformation is encoded to obtain the target image data of the initial image.

可選的,在所述將所述靶心圖表像區塊的DUV資料和未反轉圖像區塊的YUV資料進行編碼,得到所述初始圖像的目標圖像資料之後,包括:將所述目標圖像資料傳輸至顯示裝置,以供所述顯示裝置對所述初始圖像的目標圖像資料進行解碼播放。 Optionally, after encoding the DUV data of the bullseye chart image block and the YUV data of the non-inverted image block to obtain the target image data of the initial image, the method includes: The target image data is transmitted to the display device for the display device to decode and play the target image data of the initial image.

第二方面,本發明實施例提供了一種影像處理裝置,包括: 圖像採集模組,用於採集初始圖像,所述初始圖像對應RGB資料格式;劃分模組,用於將所述初始圖像劃分為多個圖像區塊;資料轉換模組,用於將所述多個圖像區塊中的每個圖像區塊由RGB資料格式轉換成YUV資料格式,其中,Y為亮度值,UV是色度值;所述資料轉換模組還用於將靶心圖表像區塊的亮度值Y反轉為暗度值D,所述靶心圖表像區塊為所述多個圖像區塊中的一個或多個;編碼模組,用於將所述靶心圖表像區塊的DUV資料和未反轉圖像區塊的YUV資料進行編碼,得到所述初始圖像的目標圖像資料。 In a second aspect, an embodiment of the present invention provides an image processing device, including: The image acquisition module is used to collect the initial image, and the initial image corresponds to the RGB data format; the division module is used to divide the initial image into multiple image blocks; the data conversion module is used Converting each image block in the plurality of image blocks from the RGB data format to the YUV data format, where Y is the brightness value and UV is the chromaticity value; the data conversion module is also used Invert the brightness value Y of the bullseye chart image block to the darkness value D, and the bullseye chart image block is one or more of the plurality of image blocks; an encoding module is used to convert the The DUV data of the bullseye chart image block and the YUV data of the non-inverted image block are encoded to obtain the target image data of the initial image.

第三方面,本發明實施例提供了一種攝影設備,包括:一個或多個處理器;儲存裝置,用於儲存一個或多個程式,當所述一個或多個程式被所述一個或多個處理器執行,使得所述一個或多個處理器實現如本發明任意實施例所述的影像處理方法。 In a third aspect, embodiments of the present invention provide a photographic device, including: one or more processors; a storage device for storing one or more programs. When the one or more programs are used by the one or more The processor executes, so that the one or more processors implement the image processing method according to any embodiment of the present invention.

第四方面,本發明實施例提供了一種電腦可讀儲存介質,其上儲存有電腦程式,該程式被處理器執行時實現如本發明任意實施例所述的影像處理方法。 In a fourth aspect, embodiments of the present invention provide a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the image processing method as described in any embodiment of the present invention is implemented.

本發明實施例通過採集初始圖像,所述初始圖像對應RGB資料格式;將所述初始圖像劃分為多個圖像區塊;將所述多個圖像區塊中的每個圖像區塊由RGB資料格式轉換成YUV資料格式,其中,Y為亮度值,UV是色度值;將靶心圖表像區塊的亮度值Y反轉為暗度值D,所述靶心圖表像區塊為所述多個圖像區塊中的一個或多個;將所述靶心圖表像區塊的DUV資料和未反轉圖像區塊的YUV資料進行編碼,得到所述初始圖像的目標圖像資料,解決了編碼得到的圖像資料的資料量非常大的問題,實現了降低編碼得到的圖像資料的資料量 的效果。 The embodiment of the present invention collects an initial image corresponding to the RGB data format; divides the initial image into multiple image blocks; and divides each image in the multiple image blocks into The block is converted from the RGB data format to the YUV data format, where Y is the brightness value and UV is the chromaticity value; the brightness value Y of the bullseye chart image block is inverted into the darkness value D, and the bullseye chart image block is Be one or more of the plurality of image blocks; encode the DUV data of the bullseye chart image block and the YUV data of the non-inverted image block to obtain the target image of the initial image Image data solves the problem of a very large amount of image data obtained by encoding and reduces the amount of image data obtained by encoding. Effect.

S110,S120,S130,S140,S150:步驟 S110, S120, S130, S140, S150: steps

S210,S220,S230,S240,S250,S260:步驟 S210, S220, S230, S240, S250, S260: steps

310:圖像採集模組 310:Image acquisition module

320:劃分模組 320:Divide module

330:資料轉換模組 330:Data conversion module

340:編碼模組 340: Encoding module

612:攝影設備 612: Photographic equipment

614:外部設備 614:External device

616:處理器 616: Processor

618:匯流排 618:Bus

620:網路介面 620:Network interface

622:輸入/輸出介面 622:Input/output interface

624:顯示器 624:Display

628:儲存裝置 628:Storage device

630:隨機存取記憶體 630: Random access memory

632:快取記憶體 632: cache memory

634:儲存系統 634:Storage system

640:應用程式 640:Application

642:程式模組 642:Program module

圖1是本發明實施例一提供的一種影像處理方法的流程示意圖;圖2是本發明實施例二提供的一種影像處理方法的流程示意圖;圖3是本發明實施例三提供的一種影像處理裝置的結構示意圖;圖4是本發明實施例四提供的一種攝影設備的結構示意圖。 Figure 1 is a schematic flowchart of an image processing method provided in Embodiment 1 of the present invention; Figure 2 is a schematic flowchart of an image processing method provided in Embodiment 2 of the present invention; Figure 3 is an image processing device provided in Embodiment 3 of the present invention 4 is a schematic structural diagram of a photographic device provided in Embodiment 4 of the present invention.

下面結合附圖和實施例對本發明作進一步的詳細說明。可以理解的是,此處所描述的具體實施例僅僅用於解釋本發明,而非對本發明的限定。另外還需要說明的是,為了便於描述,附圖中僅示出了與本發明相關的部分而非全部結構。 The present invention will be further described in detail below in conjunction with the accompanying drawings and examples. It can be understood that the specific embodiments described here are only used to explain the present invention, but not to limit the present invention. In addition, it should be noted that, for convenience of description, only some but not all structures related to the present invention are shown in the drawings.

在更加詳細地討論示例性實施例之前應當提到的是,一些示例性實施例被描述成作為流程圖描繪的處理或方法。雖然流程圖將各步驟描述成順序的處理,但是其中的許多步驟可以被並行地、併發地或者同時實施。此外,各步驟的順序可以被重新安排。當其操作完成時處理可以被終止,但是還可以具有未包括在附圖中的附加步驟。處理可以對應於方法、函數、規程、子常式、副程式等等。 Before discussing example embodiments in more detail, it should be mentioned that some example embodiments are described as processes or methods depicted as flowcharts. Although the flowcharts depict steps as a sequential process, many of the steps may be performed in parallel, concurrently, or simultaneously. Additionally, the order of steps can be rearranged. The process may be terminated when its operations are completed, but may also have additional steps not included in the figures. Processing may correspond to methods, functions, procedures, subroutines, subroutines, and so on.

此外,術語“第一”、“第二”等可在本文中用於描述各種方向、動作、步驟或元件等,但這些方向、動作、步驟或元件不受這些術語限制。這些術語僅用於將第一個方向、動作、步驟或元件與另一個方向、動作、步驟或元件區分。舉例來說,在不脫離本申請的範圍的情況下,可以將第一目標圖元點為第二目標圖元點,且類似地,可將第二目標圖元點稱為第一目標圖元點。 第一目標圖元點和第二目標圖元點兩者都是目標圖元點,但其不是同一目標圖元點。術語“第一”、“第二”等而不能理解為指示或暗示相對重要性或者隱含指明所指示的技術特徵的數量。由此,限定有“第一”、“第二”的特徵可以明示或者隱含地包括一個或者更多個該特徵。在本發明的描述中,“多個”的含義是至少兩個,例如兩個,三個等,除非另有明確具體的限定。 In addition, the terms "first," "second," etc. may be used herein to describe various directions, actions, steps or elements, but these directions, actions, steps or elements are not limited by these terms. These terms are only used to distinguish a first direction, act, step or element from another direction, act, step or element. For example, without departing from the scope of the present application, a first target primitive point may be referred to as a second target primitive point, and similarly, the second target primitive point may be referred to as a first target primitive point. point. The first target primitive point and the second target primitive point are both target primitive points, but they are not the same target primitive point. The terms "first", "second", etc. shall not be understood as indicating or implying relative importance or implying an indication of the number of technical features indicated. Therefore, features defined as "first" and "second" may explicitly or implicitly include one or more of these features. In the description of the present invention, "plurality" means at least two, such as two, three, etc., unless otherwise expressly and specifically limited.

實施例一 Embodiment 1

圖1為本發明實施例一提供的一種影像處理方法的流程示意圖,可適用於對圖像進行處理的場景,該方法可以由影像處理裝置來執行,該裝置可以採用軟體和/或硬體的方式實現,並可整合在攝影設備上。 Figure 1 is a schematic flowchart of an image processing method provided by Embodiment 1 of the present invention, which can be applied to image processing scenarios. The method can be executed by an image processing device, and the device can adopt software and/or hardware. This method is implemented and can be integrated into photography equipment.

如圖1所示,本發明實施例一提供的影像處理方法包括: As shown in Figure 1, the image processing method provided by Embodiment 1 of the present invention includes:

S110、採集初始圖像,所述初始圖像對應RGB資料格式。 S110. Collect an initial image, where the initial image corresponds to the RGB data format.

其中,初始圖像是指需要進行編碼處理的圖像。具體的,初始圖像可以是組成一個影像的多幀圖像中的每一幀圖像,例如高解析度影像的每一幀圖像都可以作為本實施例的初始圖像;初始圖像還可以是一張圖片,例如風景照等,此處不作具體限制。在本步驟中,初始圖像對應RGB資料格式。RGB資料格式是指在RGB色彩模式下的資料格式。具體的,任意一種色光F都可以用不同分量的R、G、B三色相加混合而成:F=r[R]+g[G]+b[B]。其中,R、G、B分別為三原色參與混合的係數。可選的,可以通過攝影機等具有圖像拍攝功能的攝影設備採集得到初始圖像,經過分色校正後得到初始圖像中每個圖元點的RGB資料格式,即每個圖元點的RGB值。 Among them, the initial image refers to the image that needs to be encoded. Specifically, the initial image can be each frame of multiple images that make up an image. For example, each frame of a high-resolution image can be used as the initial image in this embodiment; the initial image can also be It can be a picture, such as a landscape photo, etc. There are no specific restrictions here. In this step, the initial image corresponds to the RGB data format. RGB data format refers to the data format in RGB color mode. Specifically, any color light F can be additively mixed with three colors of R, G, and B with different components: F=r[R]+g[G]+b[B]. Among them, R, G, and B are the coefficients of the three primary colors participating in the mixing. Optionally, the initial image can be collected through a camera or other photographic equipment with image shooting function. After color separation correction, the RGB data format of each primitive point in the initial image can be obtained, that is, the RGB of each primitive point. value.

S120、將所述初始圖像劃分為多個圖像區塊。 S120. Divide the initial image into multiple image blocks.

在本步驟中,具體的,多個圖像區塊之間的圖像互不重疊。多個圖像區塊是指兩個或兩個以上圖像區塊,多個圖像區塊的具體數量不作限制。可選的,多個圖像區塊之間的圖像大小可以相同,也可以不同,此處不作具體 限制。優選的,多個圖像區塊之間的圖像大小相同。例如,初始圖像為160*160大小,分為20*20個8*8的區塊,每個區塊共有64個圖元點,每個圖元點用RGB表示。 In this step, specifically, the images between multiple image blocks do not overlap with each other. Multiple image blocks refer to two or more image blocks, and the specific number of multiple image blocks is not limited. Optionally, the image sizes between multiple image blocks can be the same or different, which will not be specified here. limit. Preferably, the image sizes among the multiple image blocks are the same. For example, the initial image is 160*160 in size and divided into 20*20 blocks of 8*8. Each block has a total of 64 primitive points, and each primitive point is represented by RGB.

S130、將所述多個圖像區塊中的每個圖像區塊由RGB資料格式轉換成YUV資料格式,其中,Y為亮度值,UV是色度值。 S130. Convert each image block in the plurality of image blocks from the RGB data format to the YUV data format, where Y is the brightness value and UV is the chromaticity value.

在本步驟中,具體的,每個圖像區塊包括一個或多個圖元點。圖元點的具體數量根據劃分圖像區塊的方式決定,本實施例不作具體限定。 In this step, specifically, each image block includes one or more primitive points. The specific number of primitive points is determined according to the way of dividing the image blocks, and is not specifically limited in this embodiment.

在一個可選的實施方式中,所述圖像區塊包括一個或多個圖元點,所述RGB資料格式包括R分量、G分量和B分量,所述YUV資料格式包括Y分量、U分量和V分量,所述將所述多個圖像區塊中的每個圖像區塊由RGB資料格式轉換成YUV資料格式,包括:確定每個圖像區塊對應的一個或多個圖元點;根據每個圖元點的R分量、G分量和B分量確定每個圖元點的Y分量;確定所述一個或多個圖元點中的第一目標圖元點;根據所述第一目標圖元點的R分量、G分量和B分量確定所述第一目標圖元點的U分量和/或V分量。 In an optional implementation, the image block includes one or more primitive points, the RGB data format includes R component, G component and B component, and the YUV data format includes Y component, U component and V components. Converting each image block in the plurality of image blocks from the RGB data format to the YUV data format includes: determining one or more graphics elements corresponding to each image block. points; determine the Y component of each primitive point according to the R component, G component and B component of each primitive point; determine the first target primitive point among the one or more primitive points; according to the first The R component, G component and B component of a target primitive point determine the U component and/or V component of the first target primitive point.

在本實施方式中,可以通過對初始圖像進行分色校正得到每個圖元點的R分量、G分量和B分量。再根據每個圖元點的R分量、G分量和B分量確定每個圖元點的Y分量。可選的,可以通過Y=(0.299R+0.587G+0.114B)計算得到每個圖元點的Y分量。第一目標圖元點是指需要計算U分量和/或V分量的圖元點。具體的,對於不同的YUV資料格式,第一目標圖元點也不同。以YUV420格式為例,每個圖元都保留一個Y(亮度)分量,而在水平方向上,不是每行都取U和V分量,而是一行只取U分量,則其接著一行就只取V分量,以此重複(即4:2:0,4:0:2,4:2:0,4:0:2.......)。可選的,可以通過U=-0.147R-0.289G+0.436B計算得 到第一目標圖元點的U分量。可以通過V=0.615R-0.515G-0.100B計算得到第一目標圖元點的V分量。 In this embodiment, the R component, G component and B component of each primitive point can be obtained by performing color separation correction on the initial image. Then determine the Y component of each primitive point based on the R component, G component and B component of each primitive point. Optionally, the Y component of each primitive point can be calculated through Y=(0.299R+0.587G+0.114B). The first target primitive point refers to the primitive point for which the U component and/or V component needs to be calculated. Specifically, for different YUV data formats, the first target primitive point is also different. Taking the YUV420 format as an example, each primitive retains a Y (brightness) component. In the horizontal direction, instead of taking the U and V components for each row, only the U component is taken for one row, and then only the U component is taken for the next row. V component, repeat this (i.e. 4:2:0, 4:0:2, 4:2:0, 4:0:2...). Optional, can be calculated by U=-0.147R-0.289G+0.436B U component to the first target primitive point. The V component of the first target primitive point can be calculated through V=0.615R-0.515G-0.100B.

S140、將靶心圖表像區塊的亮度值Y反轉為暗度值D,所述靶心圖表像區塊為所述多個圖像區塊中的一個或多個。 S140. Invert the brightness value Y of the bull's-eye chart image block, which is one or more of the plurality of image blocks, into the darkness value D.

其中,靶心圖表像區塊是指在多個圖像區塊中,需要將亮度值Y反轉為暗度值D的一個或多個圖像區塊。可選的,可以將多個圖像區塊中的全部圖像區塊作為本實施例的靶心圖表像區塊,從而將亮度值Y反轉為暗度值D;還可以是將多個圖像區塊中的部分圖像區塊,例如區塊的平均亮度值大於128的圖像區塊作為本實施例的靶心圖表像區塊,此處不作具體限定。 The bull's-eye chart image block refers to one or more image blocks among multiple image blocks that need to invert the brightness value Y to the darkness value D. Optionally, all image blocks in the multiple image blocks can be used as bullseye chart image blocks in this embodiment, thereby inverting the brightness value Y to the darkness value D; it is also possible to convert multiple image blocks into Some of the image blocks, for example, the image blocks whose average brightness value is greater than 128 are used as bullseye chart image blocks in this embodiment, and are not specifically limited here.

可選的,可以通過第一預設公式將靶心圖表像區塊的亮度值Y反轉為暗度值D,所述第一預設公式為:D=255-Y,其中Y=(0.299R+0.587G+0.114B)。其中,R、G、B分別為三原色參與混合的係數。 Optionally, the brightness value Y of the bullseye chart image block can be inverted into the darkness value D through a first preset formula. The first preset formula is: D=255-Y, where Y=(0.299R +0.587G+0.114B). Among them, R, G, and B are the coefficients of the three primary colors participating in the mixing.

在一個可選的實施方式中,所述將靶心圖表像區塊的亮度值Y反轉為暗度值D,包括:獲取每個圖像區塊的平均亮度值;將所述平均亮度值大於第一預設亮度閾值的圖像區塊確定為所述靶心圖表像區塊;將所述靶心圖表像區塊對應的每個圖元點的亮度值Y反轉為暗度值D。 In an optional implementation, inverting the brightness value Y of the bullseye chart image block into the darkness value D includes: obtaining the average brightness value of each image block; changing the average brightness value to be greater than The image block with the first preset brightness threshold is determined as the bull's-eye chart image block; the brightness value Y of each primitive point corresponding to the bull's-eye chart image block is inverted into a darkness value D.

在本實施方式中,平均亮度值可以通過對每個圖像區塊對應的圖元點的亮度值Y進行求和,得到本實施方式的平均亮度值。可選的,第一預設亮度閾值為128。在本實施方式中,對靶心圖表像區塊的每個圖元點的亮度值Y反轉為暗度值D。 In this embodiment, the average brightness value in this embodiment can be obtained by summing the brightness values Y of the primitive points corresponding to each image block. Optionally, the first preset brightness threshold is 128. In this embodiment, the brightness value Y of each primitive point of the bullseye chart image block is inverted into the darkness value D.

具體的,對全部圖像區塊的圖元點的亮度值Y都反轉為暗度值D,可以降低資料量。但部分圖像區塊的亮度值Y反轉為暗度值D反而提高了資 料量。因此,對於平均亮度值大於第一預設亮度閾值的靶心圖表像區塊進行反轉,而非靶心圖表像區塊不進行反轉,進一步降低了解碼得到的資料量。 Specifically, the brightness value Y of the primitive points of all image blocks is inverted into the darkness value D, which can reduce the amount of data. However, the brightness value Y of some image blocks is inverted into the darkness value D, which actually improves the data. Material quantity. Therefore, the bull's-eye chart image blocks whose average brightness value is greater than the first preset brightness threshold are inverted, while the non-bull's-eye chart image blocks are not inverted, further reducing the amount of data obtained by decoding.

在另一個可選的實施方式中,所述將靶心圖表像區塊的亮度值Y反轉為暗度值D,包括:獲取每個圖像區塊對應的每個圖元點的亮度值Y;將亮度值Y大於第二預設亮度閾值的圖元點確定為第二目標圖元點;將所述第二目標圖元點的亮度值Y反轉成暗度值D。 In another optional implementation, inverting the brightness value Y of the bullseye chart image block into the darkness value D includes: obtaining the brightness value Y of each primitive point corresponding to each image block. ; Determine the primitive point whose brightness value Y is greater than the second preset brightness threshold as the second target primitive point; invert the brightness value Y of the second target primitive point into a darkness value D.

在本實施方式中,可選的,將所有的圖像區塊作為靶心圖表像區塊。第二目標圖元點是指亮度值Y大於第二預設亮度閾值的圖元點。可選的,第二預設亮度閾值為128。在本實施方式中,將第二目標圖元點的亮度值Y反轉成暗度值D,而其他非第二目標圖元點的亮度值Y不需要反轉成暗度值D,進一步降低了解碼得到的資料量。 In this implementation, optionally, all image blocks are used as bullseye chart image blocks. The second target primitive point refers to a primitive point whose brightness value Y is greater than the second preset brightness threshold. Optionally, the second preset brightness threshold is 128. In this embodiment, the brightness value Y of the second target graphic element point is inverted into the darkness value D, and the brightness value Y of other non-second target graphic element points does not need to be inverted into the darkness value D, which further reduces Determines the amount of data obtained by decoding.

S150、將所述靶心圖表像區塊的DUV資料和未反轉圖像區塊的YUV資料進行編碼,得到所述初始圖像的目標圖像資料。 S150: Encode the DUV data of the bullseye chart image block and the YUV data of the non-inverted image block to obtain the target image data of the initial image.

其中,目標圖像資料是指對初始圖像中的靶心圖表像區塊的DUV資料以及未反轉圖像區塊的YUV資料進行編碼得到的資料。編碼是指將DUV資料和YUV資料編譯成二進位字元的操作。未反轉圖像區塊為多個圖像區塊中,除靶心圖表像區塊以外的圖像區塊。 Among them, the target image data refers to the data obtained by encoding the DUV data of the bullseye chart image block in the initial image and the YUV data of the non-inverted image block. Encoding refers to the operation of compiling DUV data and YUV data into binary characters. The non-inverted image block is the image block among the plurality of image blocks except the bullseye chart image block.

在本實施例中,具體的,由於目前的高解析度顯示裝置大多採用主動發光模式(暗色背景+高亮圖案,即黑底白字)顯示影像畫面,大面積是暗色的顯示。而被動發光模式中,暗色顯示的編碼為1,亮色顯示的編碼為0,但在主動發光模式中,暗色顯示的編碼為0,亮色顯示的編碼為1,此時如果只是將全部圖像區塊的YUV資料按照主動發光模式的要求進行編碼時,必然會導致編碼得到的資料量非常大。而本實施例通過對靶心圖表像區塊的亮度值Y反轉為暗 度值D,適配主動發光模式的顯示裝置進行編碼,解決了編碼得到的圖像資料的資料量非常大的問題,尤其是解決了對於主動發光模式的顯示裝置進行編碼得到的圖像資料的資料量非常大的問題。此外,降低了解碼得到的圖像資料的資料量,也提高了傳輸到顯示裝置進行播放的傳輸效率。 In this embodiment, specifically, since most current high-resolution display devices use active light-emitting mode (dark background + highlight pattern, that is, white text on a black background) to display images, a large area is darkly displayed. In the passive light-emitting mode, the dark color display is coded as 1, and the bright color display is coded as 0. However, in the active light-emitting mode, the dark color display is coded as 0, and the bright color display is coded as 1. At this time, if you just change the entire image area When the block YUV data is encoded according to the requirements of the active light-emitting mode, it will inevitably lead to a very large amount of encoded data. In this embodiment, the brightness value Y of the bullseye chart image block is inverted into dark Degree value D, adapts to the active light-emitting mode display device for encoding, solves the problem of a very large amount of image data obtained by encoding, especially solves the problem of encoding the image data obtained by encoding the active light-emitting mode display device The problem is that the amount of data is very large. In addition, the amount of decoded image data is reduced, and the transmission efficiency to the display device for playback is improved.

在一個可選的實施方式中,在所述將所述靶心圖表像區塊的DUV資料和未反轉圖像區塊的YUV資料進行編碼,得到所述初始圖像的目標圖像資料之後,包括:將所述目標圖像資料傳輸至顯示裝置,以供所述顯示裝置對所述初始圖像的目標圖像資料進行解碼播放。 In an optional implementation, after encoding the DUV data of the bullseye chart image block and the YUV data of the non-inverted image block to obtain the target image data of the initial image, The method includes: transmitting the target image data to a display device so that the display device can decode and play the target image data of the initial image.

在本實施方式中,顯示裝置可以是主動發光模式,也可以是主動發光模式與被動發光模式相容的設備。具體的,當對初始圖像的所有圖元點都由亮度值Y反轉為暗度值D時,則顯示裝置為主動發光模式的設備即可,暗色顯示的編碼為0,亮色顯示的編碼為1。當初始圖像的部分圖元點由亮度值Y反轉成暗度值D時,則反轉的部分圖元點採用主動發光模式顯示,即暗色顯示的編碼為0,亮色顯示的編碼為1;而剩餘的未反轉的部分圖元點採用被動發光模式進行顯示,即暗色顯示的編碼為1,亮色顯示的編碼為0進行顯示。解碼播放是指對目標圖像資料進行反解碼後進行播放顯示的操作。 In this embodiment, the display device may be in an active light-emitting mode, or may be a device in which the active light-emitting mode and the passive light-emitting mode are compatible. Specifically, when all the primitive points of the initial image are inverted from the brightness value Y to the darkness value D, the display device can be a device in active light-emitting mode. The code for dark display is 0, and the code for bright display is 0. is 1. When some of the primitive points of the initial image are inverted from the brightness value Y to the dark value D, then the reversed part of the primitive points are displayed in the active light-emitting mode, that is, the dark color display is coded as 0, and the bright color display is coded as 1 ; The remaining non-inverted primitive points are displayed in passive light-emitting mode, that is, the code for dark display is 1, and the code for bright display is 0. Decoding and playback refers to the operation of decoding the target image data and then playing and displaying it.

具體的,當初始圖像為一張圖片時,顯示裝置可以對初始圖像進行解碼播放。當初始圖像為組成一個影像的多幀圖像中的每一幀圖像時,則按照時間戳記對每一個初始圖像解碼編碼,從而實現一個影像的完整播放。 Specifically, when the initial image is a picture, the display device can decode and play the initial image. When the initial image is each frame of multiple images that make up an image, each initial image is decoded and encoded according to the time stamp, thereby achieving complete playback of an image.

本發明實施例的技術方案,通過採集初始圖像,所述初始圖像對應RGB資料格式;將所述初始圖像劃分為多個圖像區塊;將所述多個圖像區塊中的每個圖像區塊由RGB資料格式轉換成YUV資料格式,其中,Y為亮度值,UV是色度值;將靶心圖表像區塊的亮度值Y反轉為暗度值D,所述靶心圖表像區 塊為所述多個圖像區塊中的一個或多個;將所述靶心圖表像區塊的DUV資料和未反轉圖像區塊的YUV資料進行編碼,得到所述初始圖像的目標圖像資料,通過將亮度值Y反轉成暗度值D,適配主動發光模式的顯示裝置進行編碼,達到降低編碼得到的圖像資料的資料量的技術效果。 The technical solution of the embodiment of the present invention is to collect an initial image corresponding to the RGB data format; divide the initial image into a plurality of image blocks; and divide the plurality of image blocks into Each image block is converted from the RGB data format to the YUV data format, where Y is the brightness value and UV is the chromaticity value; the brightness value Y of the bullseye chart image block is inverted into the darkness value D, and the bullseye chart image area The block is one or more of the plurality of image blocks; the DUV data of the bullseye chart image block and the YUV data of the non-inverted image block are encoded to obtain the target of the initial image The image data is encoded by inverting the brightness value Y into the darkness value D and adapted to the active light-emitting mode display device, thereby achieving the technical effect of reducing the data volume of the encoded image data.

實施例二 Embodiment 2

圖2是本發明實施例二提供的一種影像處理方法的流程示意圖。本實施例是在上述技術方案的進一步細化,適用於對圖像進行處理的場景。該方法可以由影像處理裝置來執行,該裝置可以採用軟體和/或硬體的方式實現,並可整合在攝影設備上。 FIG. 2 is a schematic flowchart of an image processing method provided in Embodiment 2 of the present invention. This embodiment is a further refinement of the above technical solution and is suitable for scenes of image processing. The method can be executed by an image processing device, which can be implemented in software and/or hardware, and can be integrated on the photography equipment.

如圖2所示,本發明實施例二提供的影像處理方法包括: As shown in Figure 2, the image processing method provided by Embodiment 2 of the present invention includes:

S210、採集初始圖像,所述初始圖像對應RGB資料格式。 S210. Collect an initial image, where the initial image corresponds to the RGB data format.

其中,初始圖像是指需要進行編碼處理的圖像。 Among them, the initial image refers to the image that needs to be encoded.

S220、將所述初始圖像劃分為多個圖像區塊。 S220. Divide the initial image into multiple image blocks.

在本步驟中,具體的,多個圖像區塊之間的圖像互不重疊。多個圖像區塊是指兩個或兩個以上圖像區塊,多個圖像區塊的具體數量不作限制。 In this step, specifically, the images between multiple image blocks do not overlap with each other. Multiple image blocks refer to two or more image blocks, and the specific number of multiple image blocks is not limited.

S230、將所述多個圖像區塊中的每個圖像區塊由RGB資料格式轉換成YUV資料格式,其中,Y為亮度值,UV是色度值。 S230. Convert each image block in the plurality of image blocks from the RGB data format to the YUV data format, where Y is the brightness value and UV is the chrominance value.

在本步驟中,具體的,每個圖像區塊包括一個或多個圖元點。圖元點的具體數量根據劃分圖像區塊的方式決定,本實施例不作具體限定。 In this step, specifically, each image block includes one or more primitive points. The specific number of primitive points is determined according to the way of dividing the image blocks, and is not specifically limited in this embodiment.

S240、將靶心圖表像區塊的亮度值Y反轉為暗度值D,所述靶心圖表像區塊為所述多個圖像區塊中的一個或多個。 S240. Invert the brightness value Y of the bull's-eye chart image block, which is one or more of the plurality of image blocks, into the darkness value D.

其中,靶心圖表像區塊是指在多個圖像區塊中,需要將亮度值Y反轉為暗度值D的一個或多個圖像區塊。 The bull's-eye chart image block refers to one or more image blocks among multiple image blocks that need to invert the brightness value Y to the darkness value D.

S250、對所述靶心圖表像區塊的DUV資料和未反轉圖像區塊的YUV資料進行離散餘弦變換,得到離散餘弦變換後的DUV資料和離散餘弦變換後的YUV數據。 S250: Perform discrete cosine transform on the DUV data of the bullseye chart image block and the YUV data of the non-inverted image block, to obtain DUV data after discrete cosine transform and YUV data after discrete cosine transform.

在本步驟中,對靶心圖表像區塊和未反轉圖像區塊進行離散餘弦變換,是指將圖像區塊從空間域轉換到頻率域,就是計算出圖像由哪些二維餘弦波構成。具體的,離散餘弦變換捨棄高頻係數(AC係數),保留低頻資訊(DC係數)。高頻係數一般保存的是圖像的邊界、紋理資訊,低頻資訊主要是保存的圖像中平坦區域資訊。 In this step, the discrete cosine transform is performed on the bullseye chart image block and the non-inverted image block, which refers to converting the image block from the spatial domain to the frequency domain, which is to calculate which two-dimensional cosine waves the image consists of. composition. Specifically, the discrete cosine transform discards high-frequency coefficients (AC coefficients) and retains low-frequency information (DC coefficients). High-frequency coefficients generally store the boundary and texture information of the image, while low-frequency information mainly stores flat area information in the image.

S260、對所述離散餘弦變換後的DUV資料和離散餘弦變換後的YUV資料進行編碼,得到所述初始圖像的目標圖像資料。 S260: Encode the DUV data after discrete cosine transformation and the YUV data after discrete cosine transformation to obtain target image data of the initial image.

在本步驟中,對所述離散餘弦變換後的DUV資料和離散餘弦變換後的YUV資料進行編碼,從而得到所述初始圖像的目標圖像資料。 In this step, the DUV data after discrete cosine transformation and the YUV data after discrete cosine transformation are encoded, thereby obtaining the target image data of the initial image.

本發明實施例的技術方案,通過採集初始圖像,所述初始圖像對應RGB資料格式;將所述初始圖像劃分為多個圖像區塊;將所述多個圖像區塊中的每個圖像區塊由RGB資料格式轉換成YUV資料格式,其中,Y為亮度值,UV是色度值;將靶心圖表像區塊的亮度值Y反轉為暗度值D,所述靶心圖表像區塊為所述多個圖像區塊中的一個或多個;將所述靶心圖表像區塊的DUV資料和未反轉圖像區塊的YUV資料進行編碼,得到所述初始圖像的目標圖像資料,通過將亮度值Y反轉成暗度值D,適配主動發光模式的顯示裝置進行編碼,達到降低編碼得到的圖像資料的資料量的技術效果。 The technical solution of the embodiment of the present invention is to collect an initial image corresponding to the RGB data format; divide the initial image into a plurality of image blocks; and divide the plurality of image blocks into Each image block is converted from the RGB data format to the YUV data format, where Y is the brightness value and UV is the chromaticity value; the brightness value Y of the bullseye chart image block is inverted into the darkness value D, and the bullseye The chart image block is one or more of the plurality of image blocks; the DUV data of the bullseye chart image block and the YUV data of the non-inverted image block are encoded to obtain the initial image By inverting the brightness value Y into the darkness value D, the target image data of the image is encoded by adapting to the active light-emitting mode display device, thereby achieving the technical effect of reducing the data volume of the encoded image data.

實施例三 Embodiment 3

圖3是本發明實施例三提供的一種影像處理裝置的結構示意圖,本實施例可適用於對圖像進行處理的場景,該裝置可以採用軟體和/或硬體的方式實現,並可整合在攝影設備上。 Figure 3 is a schematic structural diagram of an image processing device provided in Embodiment 3 of the present invention. This embodiment can be applied to image processing scenarios. The device can be implemented in software and/or hardware, and can be integrated in on photography equipment.

如圖3所示,本實施例提供的影像處理裝置可以包括圖像採集模組310、劃分模組320、資料轉換模組330和編碼模組340,其中:圖像採集模組310,用於採集初始圖像,所述初始圖像對應RGB資料格式;劃分模組320,用於將所述初始圖像劃分為多個圖像區塊;資料轉換模組330,用於將所述多個圖像區塊中的每個圖像區塊由RGB資料格式轉換成YUV資料格式,其中,Y為亮度值,UV是色度值;所述資料轉換模組330還用於將靶心圖表像區塊的亮度值Y反轉為暗度值D,所述靶心圖表像區塊為所述多個圖像區塊中的一個或多個;編碼模組340,用於將所述靶心圖表像區塊的DUV資料和未反轉圖像區塊的YUV資料進行編碼,得到所述初始圖像的目標圖像資料。 As shown in Figure 3, the image processing device provided by this embodiment may include an image acquisition module 310, a dividing module 320, a data conversion module 330 and an encoding module 340, wherein: the image acquisition module 310 is used for Collect an initial image, which corresponds to the RGB data format; the dividing module 320 is used to divide the initial image into multiple image blocks; the data conversion module 330 is used to convert the multiple Each image block in the image block is converted from the RGB data format to the YUV data format, where Y is the brightness value and UV is the chromaticity value; the data conversion module 330 is also used to convert the bullseye chart image area The brightness value Y of the block is inverted into the darkness value D, and the bull's-eye chart image block is one or more of the plurality of image blocks; the encoding module 340 is used to convert the bull's-eye chart image area The DUV data of the block and the YUV data of the non-inverted image block are encoded to obtain the target image data of the initial image.

可選的,所述圖像區塊包括一個或多個圖元點,所述RGB資料格式包括R分量、G分量和B分量,所述YUV資料格式包括Y分量、U分量和V分量,資料轉換模組330包括:圖元點確定單元,用於確定每個圖像區塊對應的一個或多個圖元點;Y分量確定單元,用於根據每個圖元點的R分量、G分量和B分量確定每個圖元點的Y分量;第一目標圖元點確定單元,用於確定所述一個或多個圖元點中的第一目標圖元點;UV分量確定單元,用於根據所述第一目標圖元點的R分量、G分量和B分量確定所述第一目標圖元點的U分量和/或V分量。 Optionally, the image block includes one or more primitive points, the RGB data format includes R component, G component and B component, and the YUV data format includes Y component, U component and V component. The conversion module 330 includes: a primitive point determination unit, used to determine one or more primitive points corresponding to each image block; a Y component determination unit, used to determine the R component and G component of each primitive point. and B components to determine the Y component of each primitive point; a first target primitive point determination unit, used to determine the first target primitive point among the one or more primitive points; a UV component determination unit, used to The U component and/or V component of the first target primitive point is determined according to the R component, G component and B component of the first target primitive point.

可選的,資料轉換模組330具體用於通過第一預設公式將靶心圖表像區塊的亮度值Y反轉為暗度值D,所述第一預設公式為: D=255-Y,其中Y=(0.299R+0.587G+0.114B)。 Optionally, the data conversion module 330 is specifically configured to invert the brightness value Y of the bullseye chart image block into the darkness value D through a first preset formula, where the first preset formula is: D=255-Y, where Y=(0.299R+0.587G+0.114B).

可選的,資料轉換模組330還包括:平均亮度值獲取單元,用於獲取每個圖像區塊的平均亮度值;靶心圖表像區塊確定單元,用於將所述平均亮度值大於第一預設亮度閾值的圖像區塊確定為所述靶心圖表像區塊;第一暗度值反轉單元,用於將所述靶心圖表像區塊對應的每個圖元點的亮度值Y反轉為暗度值D。 Optionally, the data conversion module 330 also includes: an average brightness value acquisition unit, used to obtain the average brightness value of each image block; a bullseye chart image block determination unit, used to determine the average brightness value greater than the An image block with a preset brightness threshold is determined as the bull's-eye chart image block; a first darkness value inversion unit is used to convert the brightness value Y of each primitive point corresponding to the bull's-eye chart image block Invert to the darkness value D.

可選的,該資料轉換模組330還包括:亮度值Y獲取單元,用於獲取每個圖像區塊對應的每個圖元點的亮度值Y;第二目標圖元點確定單元,用於將亮度值Y大於第二預設亮度閾值的圖元點確定為第二目標圖元點;第二該度值反轉單元,用於將所述第二目標圖元點的亮度值Y反轉成暗度值D。 Optionally, the data conversion module 330 also includes: a brightness value Y obtaining unit, used to obtain the brightness value Y of each primitive point corresponding to each image block; a second target primitive point determination unit, using The graphic element point whose brightness value Y is greater than the second preset brightness threshold is determined as the second target graphic element point; the second degree value inversion unit is used to invert the brightness value Y of the second target graphic element point. Convert to darkness value D.

可選的,該編碼模組340包括:變化單元,用於對所述靶心圖表像區塊的DUV資料和未反轉圖像區塊的YUV資料進行離散餘弦變換,得到離散餘弦變換後的DUV資料和離散餘弦變換後的YUV數據;編碼單元,用於對所述離散餘弦變換後的DUV資料和離散餘弦變換後的YUV資料進行編碼,得到所述初始圖像的目標圖像資料。 Optionally, the encoding module 340 includes: a transformation unit for performing discrete cosine transformation on the DUV data of the bullseye chart image block and the YUV data of the non-inverted image block to obtain the DUV after discrete cosine transformation. data and YUV data after discrete cosine transform; a coding unit, used to encode the DUV data after discrete cosine transform and YUV data after discrete cosine transform, to obtain the target image data of the initial image.

可選的,該裝置還包括:傳輸模組,用於將所述目標圖像資料傳輸至顯示裝置,以供所述顯示裝置對所述初始圖像的目標圖像資料進行解碼播放。 Optionally, the device further includes: a transmission module for transmitting the target image data to a display device, so that the display device can decode and play the target image data of the initial image.

本發明實施例所提供的影像處理裝置可執行本發明任意實施例所提供的影像處理方法,具備執行方法相應的功能模組和有益效果。本發明實施例中未詳盡描述的內容可以參考本發明任意方法實施例中的描述。 The image processing device provided by the embodiment of the present invention can execute the image processing method provided by any embodiment of the present invention, and has functional modules and beneficial effects corresponding to the execution method. Contents that are not described in detail in the embodiments of the present invention may refer to the descriptions in any method embodiments of the present invention.

實施例四 Embodiment 4

圖4是本發明實施例四提供的一種攝影設備的結構示意圖。圖4示出了適於用來實現本發明實施方式的示例性攝影設備612的方塊圖。圖4顯示的攝影設備612僅僅是一個示例,不應對本發明實施例的功能和使用範圍帶來任何限制。 Figure 4 is a schematic structural diagram of a photographic device provided in Embodiment 4 of the present invention. Figure 4 shows a block diagram of an exemplary photographic device 612 suitable for implementing embodiments of the present invention. The photography device 612 shown in FIG. 4 is only an example and should not bring any limitations to the functions and scope of use of the embodiments of the present invention.

如圖4所示,攝影設備612以通用攝影設備的形式表現。攝影設備612的元件可以包括但不限於:一個或者多個處理器616,儲存裝置628,連接不同系統元件(包括儲存裝置628和處理器616)的匯流排618。 As shown in FIG. 4 , the photographing device 612 is embodied in the form of a general photographing device. Components of the photography device 612 may include, but are not limited to: one or more processors 616, storage devices 628, and a bus 618 connecting different system components (including the storage device 628 and the processor 616).

匯流排618表示幾類匯流排結構中的一種或多種,包括儲存裝置匯流排或者儲存裝置控制器、週邊匯流排、圖形加速埠、處理器或者使用多種匯流排結構中的任意匯流排結構的局域匯流排。舉例來說,這些體系結構包括但不限於工業標準架構(Industry Subversive Alliance,ISA)匯流排、微通道架構(Micro Channel Architecture,MAC)匯流排、增強型ISA匯流排、影像電子標準協會(Video Electronics Standards Association,VESA)局域匯流排以及周邊元件連接(Peripheral Component Interconnect,PCI)匯流排。 Bus 618 represents one or more of several types of bus structures, including a storage bus or storage controller, a peripheral bus, a graphics acceleration port, a processor, or a local computer using any of a variety of bus structures. Domain bus. For example, these architectures include, but are not limited to, Industry Subversive Alliance (ISA) bus, Micro Channel Architecture (MAC) bus, Enhanced ISA bus, Video Electronics Standards Association (Video Electronics) Standards Association, VESA) local bus and peripheral component interconnect (Peripheral Component Interconnect, PCI) bus.

攝影設備612典型地包括多種電腦系統可讀介質。這些介質可以是任何能夠被攝影設備612存取的可用介質,包括揮發性和非揮發性介質,可移動的和不可移動的介質。 Photography device 612 typically includes a variety of computer system readable media. These media may be any available media that can be accessed by the photography device 612, including volatile and non-volatile media, removable and non-removable media.

儲存裝置628可以包括揮發性記憶體形式的電腦系統可讀介質,例如隨機存取記憶體(Random Access Memory,RAM)630和/或快取記憶體632。終端612可以進一步包括其他可移動/不可移動的、揮發性/非揮發性電腦系統儲 存介質。僅作為舉例,儲存系統634可以用於讀寫不可移動的、非揮發性磁介質(圖4未顯示,通常稱為“硬碟驅動器”)。儘管圖4中未示出,可以提供用於對可移動非揮發性磁片(例如“軟碟”)讀寫的磁碟機,以及對可移動非揮發性光碟,例如唯讀光碟(Compact Disc Read-Only Memory,CD-ROM)、數位視訊光碟(Digital Video Disc-Read Only Memory,DVD-ROM)或者其他光介質)讀寫的光碟驅動器。在這些情況下,每個驅動器可以通過一個或者多個資料介質介面與匯流排618相連。儲存裝置628可以包括至少一個程式產品,該程式產品具有一組(例如至少一個)程式模組,這些程式模組被配置以執行本發明各實施例的功能。 Storage device 628 may include computer system-readable media in the form of volatile memory, such as random access memory (Random Access Memory, RAM) 630 and/or cache memory 632. Terminal 612 may further include other removable/non-removable, volatile/non-volatile computer system storage. storage media. By way of example only, storage system 634 may be used to read and write to non-removable, non-volatile magnetic media (not shown in Figure 4 and commonly referred to as a "hard drive"). Although not shown in FIG. 4, a disk drive may be provided for reading and writing removable non-volatile magnetic disks (eg, "floppy disks"), and for removable non-volatile optical disks, such as read-only compact discs (Compact Discs). An optical disc drive that reads and writes from Read-Only Memory (CD-ROM), Digital Video Disc-Read Only Memory (DVD-ROM) or other optical media). In these cases, each drive may be connected to bus 618 through one or more data media interfaces. Storage device 628 may include at least one program product having a set of (eg, at least one) program modules configured to perform the functions of various embodiments of the invention.

具有一組(至少一個)程式模組642的應用程式640,可以儲存在例如儲存裝置628中,這樣的程式模組642包括但不限於作業系統、一個或者多個應用程式、其他程式模組以及程式資料,這些示例中的每一個或某種組合中可能包括網路環境的實現。程式模組642通常執行本發明所描述的實施例中的功能和/或方法。 An application 640 having a set (at least one) of program modules 642 may be stored, for example, in a storage device 628. Such program modules 642 include, but are not limited to, an operating system, one or more applications, other program modules, and Programming Materials Each or some combination of these examples may include an implementation of a network environment. Program modules 642 generally perform functions and/or methods in the described embodiments of the invention.

攝影設備612也可以與一個或多個外部設備614(例如鍵盤、指向終端、顯示器624等)通信,還可與一個或者多個使得使用者能與該攝影設備612交互的終端通信,和/或與使得該攝影設備612能與一個或多個其他計算終端進行通信的任何終端(例如網卡,數據機等等)通信。這種通信可以通過輸入/輸出(I/O)介面622進行。並且,攝影設備612還可以通過網路介面卡620與一個或者多個網路(例如局域網(Local Area Network,LAN)、廣域網路(Wide Area Network,WAN)和/或公共網路,例如網際網路)通信。如圖4所示,網路介面卡620通過匯流排618與攝影設備612的其他模組通信。應當明白,儘管圖中未示出,可以結合攝影設備612使用其他硬體和/或軟體模組,包括但不限於:微代碼、終端驅動器、冗餘處理器、外部磁片驅動陣列、磁碟陣列(Redundant Arrays of Independent Disks,RAID)系統、磁帶驅動器以及資料備份儲存系統等。 Photography device 612 may also communicate with one or more external devices 614 (eg, keyboard, pointing terminal, display 624, etc.), may also communicate with one or more terminals that enable a user to interact with the camera device 612, and/or Communicates with any terminal (eg, network card, modem, etc.) that enables the photography device 612 to communicate with one or more other computing terminals. This communication may occur through input/output (I/O) interface 622. Moreover, the photography device 612 can also communicate with one or more networks (such as a local area network (LAN), a wide area network (WAN)) and/or a public network, such as the Internet, through the network interface card 620 road) communication. As shown in FIG. 4 , the network interface card 620 communicates with other modules of the photography device 612 through the bus 618 . It should be understood that, although not shown in the figure, other hardware and/or software modules may be used in conjunction with the photography device 612, including but not limited to: microcode, terminal drivers, redundant processors, external disk drive arrays, disks Array (Redundant Arrays of Independent Disks, RAID) systems, tape drives and data backup storage systems, etc.

處理器616通過運行儲存在儲存裝置628中的程式,從而執行各種功能應用以及資料處理,例如實現本發明任意實施例所提供的一種影像處理方法,該方法可以包括:採集初始圖像,所述初始圖像對應RGB資料格式;將所述初始圖像劃分為多個圖像區塊;將所述多個圖像區塊中的每個圖像區塊由RGB資料格式轉換成YUV資料格式,其中,Y為亮度值,UV是色度值;將靶心圖表像區塊的亮度值Y反轉為暗度值D,所述靶心圖表像區塊為所述多個圖像區塊中的一個或多個;將所述靶心圖表像區塊的DUV資料和未反轉圖像區塊的YUV資料進行編碼,得到所述初始圖像的目標圖像資料。 The processor 616 executes programs stored in the storage device 628 to perform various functional applications and data processing, such as implementing an image processing method provided by any embodiment of the present invention. The method may include: acquiring an initial image, the The initial image corresponds to the RGB data format; the initial image is divided into multiple image blocks; each image block in the multiple image blocks is converted from the RGB data format to the YUV data format, Wherein, Y is the brightness value, UV is the chromaticity value; the brightness value Y of the bullseye chart image block is inverted into the darkness value D, and the bullseye chart image block is one of the plurality of image blocks. or more; encoding the DUV data of the bullseye chart image block and the YUV data of the non-inverted image block to obtain the target image data of the initial image.

本發明實施例的技術方案,通過採集初始圖像,所述初始圖像對應RGB資料格式;將所述初始圖像劃分為多個圖像區塊;將所述多個圖像區塊中的每個圖像區塊由RGB資料格式轉換成YUV資料格式,其中,Y為亮度值,UV是色度值;將靶心圖表像區塊的亮度值Y反轉為暗度值D,所述靶心圖表像區塊為所述多個圖像區塊中的一個或多個;將所述靶心圖表像區塊的DUV資料和未反轉圖像區塊的YUV資料進行編碼,得到所述初始圖像的目標圖像資料,通過將亮度值Y反轉成暗度值D,適配主動發光模式的顯示裝置進行編碼,達到降低編碼得到的圖像資料的資料量的技術效果。 The technical solution of the embodiment of the present invention is to collect an initial image corresponding to the RGB data format; divide the initial image into a plurality of image blocks; and divide the plurality of image blocks into Each image block is converted from the RGB data format to the YUV data format, where Y is the brightness value and UV is the chromaticity value; the brightness value Y of the bullseye chart image block is inverted into the darkness value D, and the bullseye The chart image block is one or more of the plurality of image blocks; the DUV data of the bullseye chart image block and the YUV data of the non-inverted image block are encoded to obtain the initial image By inverting the brightness value Y into the darkness value D, the target image data of the image is encoded by adapting to the active light-emitting mode display device, thereby achieving the technical effect of reducing the data volume of the encoded image data.

實施例五 Embodiment 5

本發明實施例五還提供了一種電腦可讀儲存介質,其上儲存有電腦程式,該程式被處理器執行時實現如本發明任意實施例所提供的一種影像處理方法,該方法可以包括:採集初始圖像,所述初始圖像對應RGB資料格式; 將所述初始圖像劃分為多個圖像區塊;將所述多個圖像區塊中的每個圖像區塊由RGB資料格式轉換成YUV資料格式,其中,Y為亮度值,UV是色度值;將靶心圖表像區塊的亮度值Y反轉為暗度值D,所述靶心圖表像區塊為所述多個圖像區塊中的一個或多個;將所述靶心圖表像區塊的DUV資料和未反轉圖像區塊的YUV資料進行編碼,得到所述初始圖像的目標圖像資料。 Embodiment 5 of the present invention also provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, an image processing method as provided in any embodiment of the present invention is implemented. The method may include: acquisition Initial image, the initial image corresponds to the RGB data format; Divide the initial image into multiple image blocks; convert each image block in the multiple image blocks from the RGB data format to the YUV data format, where Y is the brightness value, and UV is the chromaticity value; invert the brightness value Y of the bull's-eye chart image block, which is one or more of the plurality of image blocks, into the darkness value D; The DUV data of the image block of the image and the YUV data of the non-inverted image block are encoded to obtain the target image data of the initial image.

本發明實施例的電腦可讀儲存介質,可以採用一個或多個電腦可讀的介質的任意組合。電腦可讀介質可以是電腦可讀信號介質或者電腦可讀儲存介質。電腦可讀儲存介質例如可以是──但不限於──電、磁、光、電磁、紅外線、或半導體的系統、裝置或器件,或者任意以上的組合。電腦可讀儲存介質的更具體的例子(非窮舉的列表)包括:具有一個或多個導線的電連接、可擕式電腦磁片、硬碟、隨機存取記憶體(RAM)、唯讀記憶體(ROM)、可抹除式可程式設計唯讀記憶體(EPROM或快閃記憶體)、光纖、可擕式緊湊磁片唯讀記憶體(CD-ROM)、光記憶體件、磁記憶體件、或者上述的任意合適的組合。在本案中,電腦可讀儲存介質可以是任何包含或儲存程式的有形介質,該程式可以被指令執行系統、裝置或者器件使用或者與其結合使用。 The computer-readable storage medium in the embodiment of the present invention may be any combination of one or more computer-readable media. The computer-readable medium may be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination thereof. More specific examples (non-exhaustive list) of computer-readable storage media include: electrical connections having one or more wires, portable computer disks, hard drives, random access memory (RAM), read-only Memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact magnetic disk read-only memory (CD-ROM), optical memory, magnetic memory device, or any suitable combination of the above. In this case, a computer-readable storage medium may be any tangible medium that contains or stores a program for use by or in connection with an instruction execution system, device, or device.

電腦可讀的信號介質可以包括在基頻中或者作為載波一部分傳播的資料信號,其中承載了電腦可讀的程式碼。這種傳播的資料信號可以採用多種形式,包括但不限於電磁信號、光信號或上述的任意合適的組合。電腦可讀的信號介質還可以是電腦可讀儲存介質以外的任何電腦可讀介質,該電腦可讀介質可以發送、傳播或者傳輸用於由指令執行系統、裝置或者器件使用或者與其結合使用的程式。 A computer-readable signal medium may include a data signal propagating at a fundamental frequency or as part of a carrier wave carrying computer-readable program code. Such propagated data signals may take many forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium that can send, propagate, or transmit a program for use by or in connection with an instruction execution system, device, or device .

儲存介質上包含的程式碼可以用任何適當的介質傳輸,包括──但不限於無線、電線、光纜、RF等等,或者上述的任意合適的組合。 Program code contained on a storage medium may be transmitted using any suitable medium, including but not limited to wireless, wire, optical cable, RF, etc., or any suitable combination of the above.

可以以一種或多種程式設計語言或其組合來編寫用於執行本發明操作的電腦程式代碼,所述程式設計語言包括物件導向的程式設計語言─諸如Java、Smalltalk、C++,還包括常規的過程式程式設計語言─諸如“C”語言或類似的程式設計語言。程式碼可以完全地在使用者電腦上執行、部分地在使用者電腦上執行、作為一個獨立的套裝軟體執行、部分在使用者電腦上部分在遠端電腦上執行、或者完全在遠端電腦或終端上執行。在涉及遠端電腦的情形中,遠端電腦可以通過任意種類的網路──包括局域網(LAN)或廣域網路(WAN)─連接到使用者電腦,或者,可以連接到外部電腦(例如利用網際網路服務提供者來通過網際網路連接)。 Computer program code for performing operations of the present invention may be written in one or more programming languages, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming, or a combination thereof. Programming language - such as "C" or similar programming language. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer, or entirely on the remote computer or Execute on terminal. In the case of a remote computer, the remote computer can be connected to the user's computer through any kind of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computer (e.g., using the Internet). Internet service provider to connect via the Internet).

本發明實施例的技術方案,通過採集初始圖像,所述初始圖像對應RGB資料格式;將所述初始圖像劃分為多個圖像區塊;將所述多個圖像區塊中的每個圖像區塊由RGB資料格式轉換成YUV資料格式,其中,Y為亮度值,UV是色度值;將靶心圖表像區塊的亮度值Y反轉為暗度值D,所述靶心圖表像區塊為所述多個圖像區塊中的一個或多個;將所述靶心圖表像區塊的DUV資料和未反轉圖像區塊的YUV資料進行編碼,得到所述初始圖像的目標圖像資料,通過將亮度值Y反轉成暗度值D,適配主動發光模式的顯示裝置進行編碼,達到降低所得到的圖像資料編碼資料量的技術效果。 The technical solution of the embodiment of the present invention is to collect an initial image corresponding to the RGB data format; divide the initial image into a plurality of image blocks; and divide the plurality of image blocks into Each image block is converted from the RGB data format to the YUV data format, where Y is the brightness value and UV is the chromaticity value; the brightness value Y of the bullseye chart image block is inverted into the darkness value D, and the bullseye The chart image block is one or more of the plurality of image blocks; the DUV data of the bullseye chart image block and the YUV data of the non-inverted image block are encoded to obtain the initial image By inverting the brightness value Y into the darkness value D, the target image data of the image is encoded by adapting to the active light-emitting mode display device, thereby achieving the technical effect of reducing the amount of encoded image data obtained.

注意,上述僅為本發明的較佳實施例及所運用技術原理。本領域技術人員會理解,本發明不限於這裡所述的特定實施例,對本案所屬技術領域中具有通常知識者來說能夠進行各種明顯的變化、重新調整和替代而不會脫離本發明的保護範圍。因此,雖然通過以上實施例對本發明進行了較為詳細的說 明,但是本發明不僅僅限於以上實施例,在不脫離本發明構思的情況下,還可以包括更多其他等效實施例,而本發明的範圍由所附的申請專利範圍決定。 Note that the above are only the preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made to those with ordinary skill in the technical field to which the subject matter belongs without departing from the protection of the present invention. Scope. Therefore, although the present invention has been described in more detail through the above embodiments, However, the present invention is not limited to the above embodiments, and may also include more equivalent embodiments without departing from the concept of the present invention, and the scope of the present invention is determined by the appended patent application scope.

S110~S150:步驟 S110~S150: steps

Claims (10)

一種影像處理方法,其中,包括:利用一圖像採集模組採集一初始圖像,該初始圖像對應RGB資料格式;利用一劃分模組將該初始圖像劃分為多個圖像區塊;利用一資料轉換模組將該多個圖像區塊中的每個圖像區塊由RGB資料格式轉換成YUV資料格式,其中,Y為亮度值,UV是色度值;通過該資料轉換模組將一靶心圖表像區塊的亮度值Y反轉為暗度值D,該靶心圖表像區塊為該多個圖像區塊中的一個或多個;利用一編碼模組將該靶心圖表像區塊的DUV資料和未反轉圖像區塊的YUV資料進行編碼,得到該初始圖像的一目標圖像資料。 An image processing method, which includes: using an image acquisition module to collect an initial image, the initial image corresponding to the RGB data format; using a dividing module to divide the initial image into multiple image blocks; A data conversion module is used to convert each image block in the plurality of image blocks from the RGB data format to the YUV data format, where Y is the brightness value and UV is the chromaticity value; through the data conversion module The group inverts the brightness value Y of a bull's-eye chart image block into a darkness value D, and the bull's-eye chart image block is one or more of the plurality of image blocks; using an encoding module to convert the bull's-eye chart The DUV data of the image block and the YUV data of the non-inverted image block are encoded to obtain a target image data of the initial image. 如請求項1所述的影像處理方法,其中,該圖像區塊包括一個或多個圖元點,RGB資料格式包括R分量、G分量和B分量,YUV資料格式包括Y分量、U分量和V分量,所述將該多個圖像區塊中的每個該圖像區塊由RGB資料格式轉換成YUV資料格式,包括:確定每個該圖像區塊對應的一個或多個圖元點;根據每個該圖元點的R分量、G分量和B分量確定每個該圖元點的Y分量;確定該一個或多個圖元點中的一第一目標圖元點;根據該第一目標圖元點的R分量、G分量和B分量確定該第一目標圖元點的U分量和/或V分量。 The image processing method as described in claim 1, wherein the image block includes one or more primitive points, the RGB data format includes R component, G component and B component, and the YUV data format includes Y component, U component and V component, the step of converting each of the plurality of image blocks from the RGB data format to the YUV data format includes: determining one or more graphics elements corresponding to each of the image blocks. point; determine the Y component of each primitive point according to the R component, G component and B component of each primitive point; determine a first target primitive point among the one or more primitive points; according to the The R component, G component and B component of the first target primitive point determine the U component and/or V component of the first target primitive point. 如請求項1所述的影像處理方法,其中,所述將該靶心圖表像區塊的亮度值Y反轉為暗度值D,包括: 通過一第一預設公式將該靶心圖表像區塊的亮度值Y反轉為暗度值D,該第一預設公式為:D=255-Y,其中Y=(0.299R+0.587G+0.114B)。 The image processing method as described in claim 1, wherein said inverting the brightness value Y of the bullseye chart image block into the darkness value D includes: The brightness value Y of the bullseye chart image block is inverted into the darkness value D through a first preset formula. The first preset formula is: D=255-Y, where Y=(0.299R+0.587G+ 0.114B). 如請求項1所述的影像處理方法,其中,所述將該靶心圖表像區塊的亮度值Y反轉為暗度值D,包括:獲取每個該圖像區塊的一平均亮度值;將該平均亮度值大於一第一預設亮度閾值的該圖像區塊確定為該靶心圖表像區塊;將該靶心圖表像區塊對應的每個圖元點的亮度值Y反轉為暗度值D。 The image processing method according to claim 1, wherein said inverting the brightness value Y of the bullseye chart image block into the darkness value D includes: obtaining an average brightness value of each image block; The image block whose average brightness value is greater than a first preset brightness threshold is determined as the bull's-eye chart image block; the brightness value Y of each primitive point corresponding to the bull's-eye chart image block is inverted to dark Degree value D. 如請求項1所述的影像處理方法,其中,所述將該靶心圖表像區塊的亮度值Y反轉為暗度值D,包括:獲取每個該圖像區塊對應的每個圖元點的亮度值Y;將亮度值Y大於一第二預設亮度閾值的圖元點確定為一第二目標圖元點;將該第二目標圖元點的亮度值Y反轉成暗度值D。 The image processing method as described in claim 1, wherein inverting the brightness value Y of the bullseye chart image block into the darkness value D includes: obtaining each graphic element corresponding to each image block. The brightness value Y of the point; determine the primitive point whose brightness value Y is greater than a second preset brightness threshold as a second target primitive point; invert the brightness value Y of the second target primitive point into a darkness value D. 如請求項1所述的影像處理方法,其中,所述將該靶心圖表像區塊的DUV資料和未反轉圖像區塊的YUV資料進行編碼,得到該初始圖像的該目標圖像資料,包括:對該靶心圖表像區塊的DUV資料和未反轉圖像區塊的YUV資料進行離散餘弦變換,得到離散餘弦變換後的DUV資料和離散餘弦變換後的YUV數據;對該離散餘弦變換後的DUV資料和離散餘弦變換後的YUV資料進行編碼,得到該初始圖像的該目標圖像資料。 The image processing method as described in claim 1, wherein the DUV data of the bullseye chart image block and the YUV data of the non-inverted image block are encoded to obtain the target image data of the initial image. , including: performing discrete cosine transform on the DUV data of the bullseye chart image block and the YUV data of the non-inverted image block, to obtain the DUV data after discrete cosine transform and the YUV data after discrete cosine transform; The transformed DUV data and the discrete cosine transformed YUV data are encoded to obtain the target image data of the initial image. 如請求項1所述的影像處理方法,其中,在所述將該靶心圖表像區塊的DUV資料和未反轉圖像區塊的YUV資料進行編碼,得到該初始圖像的該目標圖像資料之後,包括:將該目標圖像資料傳輸至一顯示裝置,以供該顯示裝置對該初始圖像的該目標圖像資料進行解碼播放。 The image processing method as described in claim 1, wherein the DUV data of the bullseye chart image block and the YUV data of the non-inverted image block are encoded to obtain the target image of the initial image. After the data is generated, the method includes: transmitting the target image data to a display device for the display device to decode and play the target image data of the initial image. 一種影像處理裝置,其中,包括:一圖像採集模組,用於採集一初始圖像,該初始圖像對應RGB資料格式;一劃分模組,用於將該初始圖像劃分為多個圖像區塊;一資料轉換模組,用於將該多個圖像區塊中的每個圖像區塊由RGB資料格式轉換成YUV資料格式,其中,Y為亮度值,UV是色度值;該資料轉換模組還用於將一靶心圖表像區塊的亮度值Y反轉為暗度值D,該靶心圖表像區塊為該多個圖像區塊中的一個或多個;以及一編碼模組,用於將該靶心圖表像區塊的DUV資料和未反轉圖像區塊的YUV資料進行編碼,得到該初始圖像的一目標圖像資料。 An image processing device, which includes: an image acquisition module, used to acquire an initial image, the initial image corresponding to the RGB data format; a dividing module, used to divide the initial image into multiple images Image block; a data conversion module for converting each image block in the plurality of image blocks from the RGB data format to the YUV data format, where Y is the brightness value and UV is the chroma value. ; The data conversion module is also used to invert the brightness value Y of a bull's-eye chart image block, which is one or more of the plurality of image blocks, into a darkness value D; and An encoding module is used to encode the DUV data of the bullseye chart image block and the YUV data of the non-inverted image block to obtain a target image data of the initial image. 一種攝影設備,其中,包括:一個或多個處理器;一儲存裝置,用於儲存一個或多個程式;當該一個或多個程式被該一個或多個處理器執行,使得該一個或多個處理器實現如請求項1-7中任一項所述的影像處理方法。 A photographic device, which includes: one or more processors; a storage device for storing one or more programs; when the one or more programs are executed by the one or more processors, the one or more A processor implements the image processing method described in any one of claims 1-7. 一種電腦可讀儲存介質,其上儲存有一電腦程式,其中,該電腦程式被一處理器執行時實現如請求項1-7中任一項所述的影像處理方法。 A computer-readable storage medium on which a computer program is stored, wherein when the computer program is executed by a processor, the image processing method described in any one of claims 1-7 is implemented.
TW110115437A 2020-04-28 2021-04-28 Image processing methods, devices, photographic equipment and storage media TWI825410B (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010352076.6A CN111526366B (en) 2020-04-28 2020-04-28 Image processing method, image processing apparatus, image capturing device, and storage medium
CN202010352076.6 2020-04-28

Publications (2)

Publication Number Publication Date
TW202141427A TW202141427A (en) 2021-11-01
TWI825410B true TWI825410B (en) 2023-12-11

Family

ID=71905032

Family Applications (1)

Application Number Title Priority Date Filing Date
TW110115437A TWI825410B (en) 2020-04-28 2021-04-28 Image processing methods, devices, photographic equipment and storage media

Country Status (2)

Country Link
CN (1) CN111526366B (en)
TW (1) TWI825410B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112017174B (en) * 2020-09-03 2024-05-31 湖南省华芯医疗器械有限公司 Image processing method, device, electronic equipment and storage medium
US12367550B2 (en) 2022-04-29 2025-07-22 Samsung Electronics Co., Ltd. System and method for adaptive discrete cosine transform (DCT) noise filtering for digital images

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040208362A1 (en) * 2003-04-15 2004-10-21 Nokia Corporation Encoding and decoding data to render 2D or 3D images
US20040258324A1 (en) * 2003-06-20 2004-12-23 Kuan Liang Method for dynamic contrast enhancement by area gray-level detection
US20090034872A1 (en) * 2007-08-03 2009-02-05 Hon Hai Precision Industry Co., Ltd. Method and apparatus for increasing brightness of image captured in low light
CN101873503A (en) * 2009-12-09 2010-10-27 杭州海康威视软件有限公司 Method and device for adjusting image property
CN103489427A (en) * 2012-06-14 2014-01-01 深圳深讯和科技有限公司 Method and system for converting YUV into RGB and converting RGB into YUV
CN107360429A (en) * 2016-05-09 2017-11-17 杨家辉 The depth of field is packed and the rgb format and the conversion of yuv format and the method for inverse transform and circuit of solution packaging
CN107886550A (en) * 2017-11-07 2018-04-06 上海应用技术大学 Picture editting's transmission method and system
CN110136183A (en) * 2018-02-09 2019-08-16 华为技术有限公司 An image processing method and related equipment
CN110910333A (en) * 2019-12-12 2020-03-24 腾讯科技(深圳)有限公司 Image processing method and image processing apparatus

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100630888B1 (en) * 2004-11-23 2006-10-04 삼성전자주식회사 Apparatus and Method for Improving Image Cancer Recognition Rate
JP4156631B2 (en) * 2006-04-26 2008-09-24 シャープ株式会社 Image processing method and image processing apparatus
US20110135198A1 (en) * 2009-12-08 2011-06-09 Xerox Corporation Chrominance encoding and decoding of a digital image
WO2012127836A1 (en) * 2011-03-18 2012-09-27 パナソニック株式会社 Generation device, display device, reproduction device, and glasses
CN104885382B (en) * 2012-12-27 2017-08-22 松下电器(美国)知识产权公司 Visible light signal of communication display methods and display device
JP2015176252A (en) * 2014-03-13 2015-10-05 オムロン株式会社 Image processor and image processing method
TWI756365B (en) * 2017-02-15 2022-03-01 美商脫其泰有限責任公司 Image analysis systems and related methods

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040208362A1 (en) * 2003-04-15 2004-10-21 Nokia Corporation Encoding and decoding data to render 2D or 3D images
US20040258324A1 (en) * 2003-06-20 2004-12-23 Kuan Liang Method for dynamic contrast enhancement by area gray-level detection
US20090034872A1 (en) * 2007-08-03 2009-02-05 Hon Hai Precision Industry Co., Ltd. Method and apparatus for increasing brightness of image captured in low light
CN101873503A (en) * 2009-12-09 2010-10-27 杭州海康威视软件有限公司 Method and device for adjusting image property
CN103489427A (en) * 2012-06-14 2014-01-01 深圳深讯和科技有限公司 Method and system for converting YUV into RGB and converting RGB into YUV
CN107360429A (en) * 2016-05-09 2017-11-17 杨家辉 The depth of field is packed and the rgb format and the conversion of yuv format and the method for inverse transform and circuit of solution packaging
CN107886550A (en) * 2017-11-07 2018-04-06 上海应用技术大学 Picture editting's transmission method and system
CN110136183A (en) * 2018-02-09 2019-08-16 华为技术有限公司 An image processing method and related equipment
CN110910333A (en) * 2019-12-12 2020-03-24 腾讯科技(深圳)有限公司 Image processing method and image processing apparatus

Also Published As

Publication number Publication date
CN111526366B (en) 2021-08-06
CN111526366A (en) 2020-08-11
TW202141427A (en) 2021-11-01

Similar Documents

Publication Publication Date Title
KR102617258B1 (en) Image processing method and apparatus
EP3306944B1 (en) Display method and display device
TWI825410B (en) Image processing methods, devices, photographic equipment and storage media
CN112565603B (en) Image processing method, device and electronic device
KR20200011000A (en) Device and method for augmented reality preview and positional tracking
JP2017502353A (en) Method and device for tone mapping high dynamic range images
EP3251085A1 (en) A method and apparatus for inverse-tone mapping a picture
US20180352263A1 (en) Method and device for processing color image data representing colors of a color gamut
CN114040246A (en) Image format conversion method, device, equipment and storage medium of graphic processor
CN118590766A (en) Terminal device and method for creating/displaying HDR image
CN108833803A (en) Imaging method, device and electronic equipment
CN112511896A (en) Video rendering method and device
CN108471536B (en) Alpha channel transmission method and device, terminal device and storage medium
CN119211502A (en) Video data processing method, device, equipment, medium and product
WO2023010755A1 (en) Hdr video conversion method and apparatus, and device and computer storage medium
WO2021217428A1 (en) Image processing method and apparatus, photographic device and storage medium
CN116880937A (en) Desktop screen capturing data processing method, device, equipment and medium for interactive classroom
CN112868242B (en) Method and apparatus for HDR hardware processor inline to hardware encoders and decoders
CN116416344A (en) Image processing method, device, electronic equipment and readable storage medium
CN118764573B (en) Panoramic video processing method, device, video processing equipment and storage medium
CN115460461B (en) Video processing method and device, terminal equipment and computer readable storage medium
CN114675922B (en) Display data processing method and device, storage medium and electronic equipment
CN115063327B (en) Image processing method and device, and video processing method and device
CN119697434A (en) Video processing method, device, electronic device and storage medium
CN118537418A (en) Image editing rollback method and device, electronic equipment and medium