CN110719484B - 图像处理方法 - Google Patents

图像处理方法 Download PDF

Info

Publication number
CN110719484B
CN110719484B CN201910874716.7A CN201910874716A CN110719484B CN 110719484 B CN110719484 B CN 110719484B CN 201910874716 A CN201910874716 A CN 201910874716A CN 110719484 B CN110719484 B CN 110719484B
Authority
CN
China
Prior art keywords
ycbcr4
image
format image
original
format
Prior art date
Legal status (The legal status 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 status listed.)
Active
Application number
CN201910874716.7A
Other languages
English (en)
Other versions
CN110719484A (zh
Inventor
方华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Meishi Technology Co.,Ltd.
Original Assignee
Guangzhou Meishi Electronic Technology Co ltd
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 Guangzhou Meishi Electronic Technology Co ltd filed Critical Guangzhou Meishi Electronic Technology Co ltd
Priority to CN201910874716.7A priority Critical patent/CN110719484B/zh
Publication of CN110719484A publication Critical patent/CN110719484A/zh
Application granted granted Critical
Publication of CN110719484B publication Critical patent/CN110719484B/zh
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/42Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by implementation details or hardware specially adapted for video compression or decompression, e.g. dedicated software implementation
    • 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/70Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by syntax aspects related to video coding, e.g. related to compression standards
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N9/00Details of colour television systems
    • H04N9/64Circuits for processing colour signals

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Facsimile Image Signal Circuits (AREA)
  • Processing Of Color Television Signals (AREA)
  • Color Image Communication Systems (AREA)

Abstract

本发明公开了一种图像处理方法,所述方法包括如下步骤:S1、将原始YCbCr4:4:4格式图像输入编码解码器;S2、将所述原始YCbCr4:4:4格式图像分解成YCbCr4:2:0格式图像和CbCr参数图像;S3、将所述YCbCr4:2:0格式图像和所述CbCr参数图像经H.265编码及解码;S4、将H.265解码后的图像以最终YCbCr4:4:4格式图像输出至显示设备。本方法使用廉价的YCbCr4:2:0格式图像的编码解码器,合成具备YCbCr4:4:4格式图像编码解码器色度表现能力的图像,使图像显示清晰度高、显示效果、成本低廉、带宽较低,且易于找到硬件实现平台。

Description

图像处理方法
技术领域
本发明涉及图像处理。特别涉及一种图像处理方法。
背景技术
YCbCr是色彩空间的一种,通常会用于影片中的影像连续处理,或是数字摄影系统中。YCbCr其中Y是指亮度分量,Cb指蓝色色度分量,而Cr指红色色度分量。人的肉眼对视频的Y分量更敏感,因此在通过对色度分量进行子采样来减少色度分量后,肉眼将察觉不到的图像质量的变化。
主要的子采样格式有 YCbCr 4:2:0、YCbCr 4:2:2 和 YCbCr 4:4:4。4:2:0表示每4个像素有4个亮度分量,2个色度分量 (YYYYCbCr),仅采样奇数扫描线,是便携式视频设备(MPEG-4)以及电视会议(H.263)最常用格式;4:2:2表示每4个像素有4个亮度分量,4个色度分量(YYYYCbCrCbCr),是DVD、数字电视、HDTV 以及其它消费类视频设备的最常用格式;4:4:4表示全像素点阵(YYYYCbCrCbCrCbCrCbCr),用于高质量视频应用、演播室以及专业视频产品。
在安防系统,常常使用YCbCr 4:2:0 格式图像,是因为安防系统的巨大用量,致使YCbCr 4:2:0 格式图像的编解码器非常廉价且易于获得。
在实现使用中,YCbCr 4:2:0 格式图像编解码器对色彩的还原,尤其抽取比较厉害的红色(Cr),蓝色(Cb)纯色画面表现非常差,所以YCbCr 4:4:4格式图像比YCbCr 4:2:0格式图像有较高的显示清晰度,YCbCr 4:4:4格式图像显示效果好,但是用于编码解码YCbCr 4:4:4图像的设备价格高昂,增加了使用成本。
所以亟需一种图像显示效果好,且使用成本低的解决方案。
发明内容
针对现有技术中存在的问题,本发明提供了一种图像处理方法,本方法使用廉价的YCbCr 4:2:0 格式图像的编码解码器,合成具备YCbCr 4:4:4 格式图像编码解码器色度表现能力的图像,使图像显示清晰度高、显示效果好、成本低廉、带宽较低,且易于找到硬件实现平台。
为了实现上述目的,本发明实施例提供了一种图像处理方法,所述方法主要包括如下步骤:
S1 将原始YCbCr4:4:4格式图像输入编码解码器;
S2 将所述原始YCbCr4:4:4格式图像分解成YCbCr4:2:0格式图像和CbCr参数图像;
S3 将所述YCbCr4:2:0格式图像和所述CbCr参数图像经H.265编码及解码;
S4 将H.265解码后的图像以最终YCbCr4:4:4格式图像输出至显示设备。
在S2步骤,所述YCbCr4:2:0格式图像中,Cb值为所述原始YCbCr4:4:4格式图像中所有Cb值的平均值,Cr值为所述原始YCbCr4:4:4格式图像中所有Cr值的平均值。
在S2步骤,所述CbCr参数图像中,Cb或Cr的值根据所述原始YCbCr4:4:4格式图像的颜色来确定。
进一步的,当所述原始YCbCr4:4:4格式图像的颜色偏向于红色时,则所述CbCr参数图像取值原始YCbCr4:4:4格式图像的Cr值,且设定常数A和B,其中A大于B,该 CbCr参数图像标记为CrAB。
进一步的,当所述原始YCbCr4:4:4格式图像的颜色偏向于蓝色时,则所述CbCr参数图像取值原始YCbCr4:4:4格式图像的Cb值,且设定常数A和B,其中A大于B,该 CbCr参数图像标记为CbBA。
当所述YCbCr4:2:0格式图像偏向于红色,且所述CbCr参数图像标记为CrAB时,所述最终YCbCr4:4:4格式图像中,Cb值为所述原始YCbCr4:4:4格式图像中所有Cb值的平均值,Cr值为所述原始YCbCr4:4:4格式图像中各自的Cr值。
当所述YCbCr4:2:0格式图像偏向于蓝色,且所述CbCr参数图像标记为CbBA时,所述最终YCbCr4:4:4格式图像中,Cb值为所述原始YCbCr4:4:4格式图像中各自的Cb值,Cr值为所述原始YCbCr4:4:4格式图像中所有Cb值的平均值。
本发明的有益技术效果是:本方法使用廉价的YCbCr 4:2:0 格式图像的编码解码器,合成具备YCbCr 4:4:4 格式图像编码解码器色度表现能力的图像,使图像显示清晰度高、显示效果好、成本低廉、带宽较低,且易于找到硬件实现平台。
附图说明
图1是本发明实施例图像处理方法的流程图。
具体实施方式
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。
如图1是本发明实施例图像处理方法的流程图,所述方法主要包括如下步骤:
S1、将原始YCbCr4:4:4格式图像输入编码解码器;
S2、将所述原始YCbCr4:4:4格式图像分解成YCbCr4:2:0格式图像和CbCr参数图像;
S3、将所述YCbCr4:2:0格式图像和所述CbCr参数图像经H.265编码及解码;
S4、将H.265解码后的图像以最终YCbCr4:4:4格式图像输出至显示设备。
本实施例中,原始YCbCr4:4:4格式图像用Y1Cb1Cr1、Y2Cb2Cr2、Y3Cb3Cr3、Y4Cb4Cr4表示。
S2步骤中,所述YCbCr4:2:0格式图像中,Cb值为所述原始YCbCr4:4:4格式图像中所有Cb值的平均值,Cr值为所述原始YCbCr4:4:4格式图像中所有Cr值的平均值,即YCbCr4:2:0格式图像用Y1C(b1+b2+b3+b4)/4 C(r1+r2+r3+r4)/4、Y2C(b1+b2+b3+b4)/4 C(r1+r2+r3+r4)/4、Y3C(b1+b2+b3+b4)/4 C(r1+r2+r3+r4)/4、Y4C(b1+b2+b3+b4)/4 C(r1+r2+r3+r4)/4表示。
在S2步骤,所述CbCr参数图像中,Cb或Cr的值根据所述原始YCbCr4:4:4格式图像的颜色来确定。
当所述原始YCbCr4:4:4格式图像的颜色偏向于红色时,则所述CbCr参数图像取值原始YCbCr4:4:4格式图像的Cr值,且设定常数A和B,其中A大于B,该 CbCr参数图像标记为CrAB,即CbCr参数图像用Cr1AB、Cr2AB、Cr3AB、Cr4AB表示。
当所述原始YCbCr4:4:4格式图像的颜色偏向于蓝色时,则所述CbCr参数图像取值原始YCbCr4:4:4格式图像的Cb值,且设定常数A和B,其中A大于B,该 CbCr参数图像标记为CbBA,即CbCr参数图像用Cb1BA、Cb2BA、Cb3BA、Cb4BA表示。
当所述YCbCr4:2:0格式图像偏向于红色,且所述CbCr参数图像标记为CrAB时,所述最终YCbCr4:4:4格式图像中,Cb值为所述原始YCbCr4:4:4格式图像中所有Cb值的平均值,Cr值为所述原始YCbCr4:4:4格式图像中各自的Cr值,即最终YCbCr4:4:4格式图像用Y1C(b1+b2+b3+b4)/4 Cr1、Y2C(b1+b2+b3+b4)/4 Cr2、Y3C(b1+b2+b3+b4)/4 Cr3、Y4C(b1+b2+b3+b4)/4Cr4表示。
当所述YCbCr4:2:0格式图像偏向于蓝色,且所述CbCr参数图像标记为CbBA时,所述最终YCbCr4:4:4格式图像中,Cb值为所述原始YCbCr4:4:4格式图像中各自的Cb值,Cr值为所述原始YCbCr4:4:4格式图像中所有Cb值的平均值,即最终YCbCr4:4:4格式图像用Y1Cb1C(r1+r2+r3+r4)/4、Y2Cb2C(r1+r2+r3+r4)/4、Y3Cb3C(r1+r2+r3+r4)/4、Y4Cb4C(r1+r2+r3+r4)/4表示。
本方法使用廉价的YCbCr 4:2:0 格式图像的编码解码器,合成具备YCbCr 4:4:4格式图像编码解码器色度表现能力的图像,使图像显示清晰度高、显示效果好、成本低廉、带宽较低,且易于找到硬件实现平台。
尽管已经示出和描述了本发明的实施例,本领域的普通技术人员可以理解:在不脱离本发明的原理和宗旨的情况下可以对这些实施例进行多种变化、修改、替换和变型,本发明的范围由权利要求及其等同物限定。

Claims (3)

1.一种图像处理方法,其特征在于,所述方法包括如下步骤:
S1 将原始YCbCr4:4:4格式图像输入编码解码器;
S2 将所述原始YCbCr4:4:4格式图像分解成YCbCr4:2:0格式图像和CbCr参数图像;
S3 将所述YCbCr4:2:0格式图像和所述CbCr参数图像经H.265编码及解码;
S4 将H.265解码后的图像以最终YCbCr4:4:4格式图像输出至显示设备;
在S2步骤,所述YCbCr4:2:0格式图像中,Cb值为所述原始YCbCr4:4:4格式图像中所有Cb值的平均值,Cr值为所述原始YCbCr4:4:4格式图像中所有Cr值的平均值;
在S2步骤,所述CbCr参数图像中,Cb或Cr的值根据所述原始YCbCr4:4:4格式图像的颜色来确定;
当所述原始YCbCr4:4:4格式图像的颜色偏向于红色时,则所述CbCr参数图像取值原始YCbCr4:4:4格式图像的Cr值,且设定常数A和B,其中A大于B,该 CbCr参数图像标记为CrAB;
当所述原始YCbCr4:4:4格式图像的颜色偏向于蓝色时,则所述CbCr参数图像取值原始YCbCr4:4:4格式图像的Cb值,且设定常数A和B,其中A大于B,该 CbCr参数图像标记为CbBA。
2.根据权利要求1所述的图像处理方法,其特征在于,当所述YCbCr4:2:0格式图像偏向于红色,且所述CbCr参数图像标记为CrAB时,所述最终YCbCr4:4:4格式图像中,Cb值为所述原始YCbCr4:4:4格式图像中所有Cb值的平均值,Cr值为所述原始YCbCr4:4:4格式图像中各自的Cr值。
3.根据权利要求1所述的图像处理方法,其特征在于,当所述YCbCr4:2:0格式图像偏向于蓝色,且所述CbCr参数图像标记为CbBA时,所述最终YCbCr4:4:4格式图像中,Cb值为所述原始YCbCr4:4:4格式图像中各自的Cb值,Cr值为所述原始YCbCr4:4:4格式图像中所有Cb值的平均值。
CN201910874716.7A 2019-09-17 2019-09-17 图像处理方法 Active CN110719484B (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910874716.7A CN110719484B (zh) 2019-09-17 2019-09-17 图像处理方法

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910874716.7A CN110719484B (zh) 2019-09-17 2019-09-17 图像处理方法

Publications (2)

Publication Number Publication Date
CN110719484A CN110719484A (zh) 2020-01-21
CN110719484B true CN110719484B (zh) 2020-08-04

Family

ID=69209864

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910874716.7A Active CN110719484B (zh) 2019-09-17 2019-09-17 图像处理方法

Country Status (1)

Country Link
CN (1) CN110719484B (zh)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115150370B (zh) * 2022-07-05 2023-08-01 广东魅视科技股份有限公司 一种图像处理的方法
CN115396643B (zh) * 2022-08-23 2023-08-29 中船重工(武汉)凌久电子有限责任公司 一种自动路由图像变换方法及系统

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101742317A (zh) * 2009-12-31 2010-06-16 北京中科大洋科技发展股份有限公司 一种带阿尔法透明通道的视频压缩编码方法
CN107211150A (zh) * 2015-01-16 2017-09-26 微软技术许可有限责任公司 动态更新质量至较高的色度采样率

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
BR112016021529B1 (pt) * 2014-03-27 2023-02-28 Microsoft Technology Licensing, Llc Dispositivo de computação, método e meio legível por computador para ajuste de quantização/escalada e quantização/escalada inversa ao alternar áreas de cor

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101742317A (zh) * 2009-12-31 2010-06-16 北京中科大洋科技发展股份有限公司 一种带阿尔法透明通道的视频压缩编码方法
CN107211150A (zh) * 2015-01-16 2017-09-26 微软技术许可有限责任公司 动态更新质量至较高的色度采样率

Also Published As

Publication number Publication date
CN110719484A (zh) 2020-01-21

Similar Documents

Publication Publication Date Title
US11178412B2 (en) Method and apparatus of encoding and decoding a color picture
WO2019210822A1 (zh) 视频编解码方法、装置、系统及存储介质
EP3329677A1 (en) Methods and devices for encoding and decoding a hdr color picture
US11741585B2 (en) Method and device for obtaining a second image from a first image when the dynamic range of the luminance of the first image is greater than the dynamic range of the luminance of the second image
US11310532B2 (en) Method and device for reconstructing image data from decoded image data
WO2020135357A1 (zh) 数据压缩方法及装置、数据编码/解码方法及装置
WO2018178367A1 (en) Method and device for color gamut mapping
US20180124289A1 (en) Chroma-Based Video Converter
KR20170115500A (ko) 컬러 픽처를 디코딩하는 방법 및 디바이스
JP2018530942A (ja) コード化および復号方法ならびに対応するデバイス
WO2017001330A1 (en) Method and device for encoding both a hdr picture and a sdr picture obtained from said hdr picture using color mapping functions
CN110719484B (zh) 图像处理方法
TWI472232B (zh) 利用色彩解耦的視訊傳輸的方法及其裝置和具有編碼指令的處理器之可讀取媒介
KR102401881B1 (ko) 이미지 데이터를 프로세싱하기 위한 방법 및 장치
EP3051489A1 (en) A method and apparatus of encoding and decoding a color picture
CN114827620A (zh) 图像处理方法、装置、设备与介质
CN110636304B (zh) 一种YCbCr444和YCbCr422转换方法
US20180014024A1 (en) Method and apparatus of encoding and decoding a color picture
CN114494051A (zh) 图像处理方法、装置、电子设备及可读存储介质
EP3350774A1 (en) Determination of a co-located luminance sample of a color component sample, for hdr coding/decoding

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder

Address after: 510000 Guangdong city of Guangzhou province Haizhuqu District Industrial Avenue South Road South West go Wai Industrial Zone Fifth self building No. 2 layer 603, 604 room 6

Patentee after: Guangdong Meishi Technology Co.,Ltd.

Address before: 510000 Guangdong city of Guangzhou province Haizhuqu District Industrial Avenue South Road South West go Wai Industrial Zone Fifth self building No. 2 layer 603, 604 room 6

Patentee before: Guangzhou Meishi Electronic Technology Co.,Ltd.

CP01 Change in the name or title of a patent holder