KR20220151324A - Electronic device to improve the visibility of video using local contrast enhancement and the method thereof - Google Patents
Electronic device to improve the visibility of video using local contrast enhancement and the method thereof Download PDFInfo
- Publication number
- KR20220151324A KR20220151324A KR1020210058420A KR20210058420A KR20220151324A KR 20220151324 A KR20220151324 A KR 20220151324A KR 1020210058420 A KR1020210058420 A KR 1020210058420A KR 20210058420 A KR20210058420 A KR 20210058420A KR 20220151324 A KR20220151324 A KR 20220151324A
- Authority
- KR
- South Korea
- Prior art keywords
- pixel
- image
- weight
- electronic device
- processor
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 19
- 230000002093 peripheral effect Effects 0.000 claims description 11
- 230000002708 enhancing effect Effects 0.000 claims description 5
- 238000003702 image correction Methods 0.000 claims description 3
- 238000004422 calculation algorithm Methods 0.000 abstract description 27
- 125000001475 halogen functional group Chemical group 0.000 abstract description 3
- 238000004891 communication Methods 0.000 description 48
- 230000006870 function Effects 0.000 description 18
- 238000005516 engineering process Methods 0.000 description 11
- 238000012545 processing Methods 0.000 description 11
- 238000013528 artificial neural network Methods 0.000 description 8
- 230000001965 increasing effect Effects 0.000 description 8
- 238000013473 artificial intelligence Methods 0.000 description 4
- 238000004590 computer program Methods 0.000 description 4
- 238000010586 diagram Methods 0.000 description 4
- 230000000694 effects Effects 0.000 description 4
- 238000004364 calculation method Methods 0.000 description 3
- 239000002096 quantum dot Substances 0.000 description 3
- 238000013527 convolutional neural network Methods 0.000 description 2
- 230000007423 decrease Effects 0.000 description 2
- 230000033001 locomotion Effects 0.000 description 2
- 238000010801 machine learning Methods 0.000 description 2
- 230000000116 mitigating effect Effects 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000000306 recurrent effect Effects 0.000 description 2
- 230000004044 response Effects 0.000 description 2
- 230000009466 transformation Effects 0.000 description 2
- 230000001133 acceleration Effects 0.000 description 1
- 230000002457 bidirectional effect Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 230000010267 cellular communication Effects 0.000 description 1
- 230000001413 cellular effect Effects 0.000 description 1
- 239000004020 conductor Substances 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000007613 environmental effect Effects 0.000 description 1
- 239000000446 fuel Substances 0.000 description 1
- 230000036541 health Effects 0.000 description 1
- 230000010354 integration Effects 0.000 description 1
- 230000003155 kinesthetic effect Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 230000001537 neural effect Effects 0.000 description 1
- 230000002787 reinforcement Effects 0.000 description 1
- 230000005236 sound signal Effects 0.000 description 1
- 230000000638 stimulation Effects 0.000 description 1
- 239000000758 substrate Substances 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G09—EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
- G09G—ARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
- G09G5/00—Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators
- G09G5/10—Intensity circuits
-
- G—PHYSICS
- G09—EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
- G09G—ARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
- G09G5/00—Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators
- G09G5/02—Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators characterised by the way in which colour is displayed
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N5/00—Details of television systems
- H04N5/14—Picture signal circuitry for video frequency region
- H04N5/21—Circuitry for suppressing or minimising disturbance, e.g. moiré or halo
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N5/00—Details of television systems
- H04N5/44—Receiver circuitry for the reception of television signals according to analogue transmission standards
- H04N5/57—Control of contrast or brightness
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Physics & Mathematics (AREA)
- Computer Hardware Design (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Image Processing (AREA)
Abstract
Description
본 문서는 전자 장치에 관한 것이며, 예를 들어 지역 대비 강화를 이용하여 영상의 시인성을 향상시키는 방법에 관한 것이다.This document relates to an electronic device, and relates to a method of improving visibility of an image using, for example, area contrast enhancement.
이동통신 기술 및 프로세서 기술의 발달에 따라 휴대용 전자 장치(이하, 전자 장치)는 종래의 통화 기능에서 나아가 다양한 기능들을 구현할 수 있게 되었다. 전자 장치는 영상 및 이미지 파일을 저장하고 재생할 수 있으며, 외부 장치와 통신 연결을 수립하여 영상 및 이미지 파일을 수신할 수 있다.With the development of mobile communication technology and processor technology, a portable electronic device (hereinafter referred to as an electronic device) can implement various functions beyond a conventional call function. The electronic device can store and reproduce video and image files, and can receive video and image files by establishing a communication connection with an external device.
예를 들어, 전자 장치는 디스플레이의 픽셀마다 소정 계조 범위(예: 0~255)를 갖는 서로 다른 RGB값을 할당할 수 있다. 전자 장치는 영상 파일의 데이터에서 픽셀마다 할당할 RGB값을 획득하여 매 프레임 마다 다른 RGB값을 할당할 수 있다.For example, the electronic device may allocate different RGB values having a predetermined grayscale range (eg, 0 to 255) to each pixel of the display. The electronic device may acquire RGB values to be assigned to each pixel from data of the image file and assign different RGB values to each frame.
종래의 전자 장치는 영상의 시인성을 높이기 위하여, 영상을 지역적으로 나눈 후 각각의 영역에서 대비(contrast)를 높이는 지역 대비 강화(local contrast enhancement) 알고리즘을 사용했으나, 이는 계조가 평탄한 부분에서 이미지가 왜곡되는 문제점이 발생할 수 있다.Conventional electronic devices have used a local contrast enhancement algorithm that increases contrast in each area after dividing the image into regions in order to increase the visibility of the image, but this causes the image to be distorted in areas where the gradation is flat. problems may arise.
본 문서의 다양한 실시예들은 상기와 같이 전자 장치에서 시인성 향상을 위해 지역 대비 강화 알고리즘을 사용하는 경우, 계조가 평탄한 부분에서 이미지가 왜곡되는 현상(Halo, 헤일로)을 완화하기 위한 방법을 제공함에 그 목적이 있다.Various embodiments of this document provide a method for mitigating the image distortion phenomenon (Halo) in a flat portion of the grayscale when the area contrast enhancement algorithm is used to improve visibility in an electronic device as described above. There is a purpose.
다양한 실시예에 따른 전자 장치는, 적어도 하나의 픽셀을 포함하는 디스플레이, 메모리, 및 상기 디스플레이 및 상기 메모리와 작동적으로(operatively) 연결되는 프로세서를 포함하고, 상기 프로세서는, 제1영상을 지역 대비 강화(local contrast enhancement)한 제2영상을 생성하고, 상기 제1영상의 적어도 하나의 프레임에서, 적어도 하나의 픽셀의 RGB값을 획득하고, 중심 픽셀 및 상기 중심 픽셀로부터 소정 거리 내에 위치하는 적어도 하나의 주변 픽셀을 포함하는 적어도 하나의 블록에서, 상기 중심 픽셀의 RGB값과 적어도 하나의 상기 주변 픽셀의 RGB값의 차이를 계산하고, 상기 RGB값 차이에 기초하여 상기 중심 픽셀이 평탄 영역에 속하는지 여부를 결정하고, 전체 픽셀에서 상기 평탄 영역에 속하는 픽셀의 비율에 기초하여 상기 제1영상에 대한 제1가중치 및 상기 제2영상에 대한 제2가중치를 결정하고, 상기 제1영상을 제1가중치만큼 반영하고 상기 제2영상을 제2가중치만큼 반영한 제3영상을 생성할 수 있다.An electronic device according to various embodiments includes a display including at least one pixel, a memory, and a processor operatively connected to the display and the memory, wherein the processor displays a first image as a regional contrast. A second image with local contrast enhancement is generated, an RGB value of at least one pixel is obtained in at least one frame of the first image, and a center pixel and at least one pixel located within a predetermined distance from the center pixel are obtained. In at least one block including peripheral pixels of, calculating the difference between the RGB value of the central pixel and the RGB value of at least one neighboring pixel, and determining whether the central pixel belongs to a flat area based on the RGB value difference. determine whether or not the first weight of the first image and the second weight of the second image are determined based on the ratio of pixels belonging to the flat region to all pixels, and determine the first weight of the first image and a third image reflecting the second weight by the second weight may be generated.
다양한 실시예에 따른 지역 대비 강화를 이용한 영상 보정 방법은, 제1영상을 지역 대비 강화한 제2영상을 생성하는 동작, 상기 제1영상의 적어도 하나의 프레임에서, 적어도 하나의 픽셀의 RGB값을 획득하는 동작, 중심 픽셀 및 상기 중심 픽셀로부터 소정 거리 내에 위치하는 적어도 하나의 주변 픽셀을 포함하는 적어도 하나의 블록에서, 상기 중심 픽셀의 RGB값과 적어도 하나의 상기 주변 픽셀의 RGB값의 차이를 계산하는 동작, 상기 RGB값 차이에 기초하여 상기 중심 픽셀이 평탄 영역에 속하는지 여부를 결정하는 동작, 전체 픽셀에서 상기 평탄 영역에 속하는 픽셀의 비율에 기초하여 상기 제1영상에 대한 제1가중치 및 상기 제2영상에 대한 제2가중치를 결정하는 동작, 및 상기 제1영상을 제1가중치만큼 반영하고 상기 제2영상을 제2가중치만큼 반영한 제3영상을 생성하는 동작을 포함할 수 있다.An image correction method using regional contrast enhancement according to various embodiments includes an operation of generating a second image obtained by enhancing a first image by regional contrast enhancement, and acquiring an RGB value of at least one pixel in at least one frame of the first image. In at least one block including a central pixel and at least one neighboring pixel located within a predetermined distance from the central pixel, calculating the difference between the RGB value of the central pixel and the RGB value of at least one neighboring pixel An operation of determining whether the center pixel belongs to the flat area based on the RGB value difference, a first weight value for the first image and the first weight value of the first image based on a ratio of pixels belonging to the flat area to all pixels. An operation of determining a second weight for the two images, and an operation of generating a third image by reflecting the first image by the first weight and reflecting the second image by the second weight.
다양한 실시예에 따르면, 전자 장치는 영상에서 지역 대비 강화 알고리즘을 사용한 경우 발생하는 이미지 왜곡 현상을 완화할 수 있다. 예를 들어, 전자 장치는 계조가 평탄한 영역과 평탄하지 않은 영역을 구분하고, 계조가 평탄한 영역에 지역 대비 강화된 영상의 반영 비율을 조정하여 이미지 왜곡 현상을 최소화할 수 있다. 이를 통하여 전자 장치는 대비를 강화하면서도 노이즈가 없는 선명한 영상을 제공할 수 있다.According to various embodiments, the electronic device may mitigate image distortion occurring when a region contrast enhancement algorithm is used in an image. For example, the electronic device may minimize image distortion by discriminating between areas with flat gradations and areas with uneven gradations, and adjusting a reflection ratio of the enhanced image compared to the area in the areas with flat gradations. Through this, the electronic device may provide a clear image without noise while enhancing contrast.
그 외에 전자 장치의 다양한 실시예들로 인하여 얻을 수 있거나 예측되는 효과에 대해서는 전자 장치의 실시예에 대한 상세한 설명에서 직접적으로 또는 암시적으로 개시하도록 한다. 예컨대, 전자 장치의 다양한 실시예들에 따라 예측되는 다양한 효과에 대해서는 후술될 상세한 설명 내에서 개시될 것이다.In addition, effects that can be obtained or predicted due to various embodiments of the electronic device will be directly or implicitly disclosed in the detailed description of the embodiment of the electronic device. For example, various effects predicted according to various embodiments of an electronic device will be disclosed within the detailed description to be described later.
도 1은 다양한 실시예들에 따른, 네트워크 환경 내의 전자 장치의 블록도이다.
도 2a 및 도 2b는 다양한 실시예에 따른 제1영상 및 지역 대비 강화 알고리즘을 사용한 제2영상을 도시한 것이다.
도 3은 다양한 실시예에 따른 전자 장치의 블록도이다.
도 4a 및 도 4b는 다양한 실시예에 따른 영상에서 하나의 픽셀을 중심으로 하는 블록을 도시한 것이다.
도 5는 다양한 실시예에 따른 영상 시인성 향상 방법의 흐름도이다.1 is a block diagram of an electronic device in a network environment, according to various embodiments.
2A and 2B illustrate a first image and a second image using a regional contrast enhancement algorithm according to various embodiments.
3 is a block diagram of an electronic device according to various embodiments.
4A and 4B illustrate blocks centered on one pixel in an image according to various embodiments.
5 is a flowchart of a method for improving image visibility according to various embodiments.
도 1은, 다양한 실시예들에 따른, 네트워크 환경(100) 내의 전자 장치(101)의 블록도이다.1 is a block diagram of an
도 1을 참조하면, 네트워크 환경(100)에서 전자 장치(101)는 제 1 네트워크(198)(예: 근거리 무선 통신 네트워크)를 통하여 전자 장치(102)와 통신하거나, 또는 제 2 네트워크(199)(예: 원거리 무선 통신 네트워크)를 통하여 전자 장치(104) 또는 서버(108) 중 적어도 하나와 통신할 수 있다. 일실시예에 따르면, 전자 장치(101)는 서버(108)를 통하여 전자 장치(104)와 통신할 수 있다. 일실시예에 따르면, 전자 장치(101)는 프로세서(120), 메모리(130), 입력 모듈(150), 음향 출력 모듈(155), 디스플레이 모듈(160), 오디오 모듈(170), 센서 모듈(176), 인터페이스(177), 연결 단자(178), 햅틱 모듈(179), 카메라 모듈(180), 전력 관리 모듈(188), 배터리(189), 통신 모듈(190), 가입자 식별 모듈(196), 또는 안테나 모듈(197)을 포함할 수 있다. 어떤 실시예에서는, 전자 장치(101)에는, 이 구성요소들 중 적어도 하나(예: 연결 단자(178))가 생략되거나, 하나 이상의 다른 구성요소가 추가될 수 있다. 어떤 실시예에서는, 이 구성요소들 중 일부들(예: 센서 모듈(176), 카메라 모듈(180), 또는 안테나 모듈(197))은 하나의 구성요소(예: 디스플레이 모듈(160))로 통합될 수 있다.Referring to FIG. 1 , in a
프로세서(120)는, 예를 들면, 소프트웨어(예: 프로그램(140))를 실행하여 프로세서(120)에 연결된 전자 장치(101)의 적어도 하나의 다른 구성요소(예: 하드웨어 또는 소프트웨어 구성요소)를 제어할 수 있고, 다양한 데이터 처리 또는 연산을 수행할 수 있다. 일실시예에 따르면, 데이터 처리 또는 연산의 적어도 일부로서, 프로세서(120)는 다른 구성요소(예: 센서 모듈(176) 또는 통신 모듈(190))로부터 수신된 명령 또는 데이터를 휘발성 메모리(132)에 저장하고, 휘발성 메모리(132)에 저장된 명령 또는 데이터를 처리하고, 결과 데이터를 비휘발성 메모리(134)에 저장할 수 있다. 일실시예에 따르면, 프로세서(120)는 메인 프로세서(121)(예: 중앙 처리 장치 또는 어플리케이션 프로세서) 또는 이와는 독립적으로 또는 함께 운영 가능한 보조 프로세서(123)(예: 그래픽 처리 장치, 신경망 처리 장치(NPU: neural processing unit), 이미지 시그널 프로세서, 센서 허브 프로세서, 또는 커뮤니케이션 프로세서)를 포함할 수 있다. 예를 들어, 전자 장치(101)가 메인 프로세서(121) 및 보조 프로세서(123)를 포함하는 경우, 보조 프로세서(123)는 메인 프로세서(121)보다 저전력을 사용하거나, 지정된 기능에 특화되도록 설정될 수 있다. 보조 프로세서(123)는 메인 프로세서(121)와 별개로, 또는 그 일부로서 구현될 수 있다.The
보조 프로세서(123)는, 예를 들면, 메인 프로세서(121)가 인액티브(예: 슬립) 상태에 있는 동안 메인 프로세서(121)를 대신하여, 또는 메인 프로세서(121)가 액티브(예: 어플리케이션 실행) 상태에 있는 동안 메인 프로세서(121)와 함께, 전자 장치(101)의 구성요소들 중 적어도 하나의 구성요소(예: 디스플레이 모듈(160), 센서 모듈(176), 또는 통신 모듈(190))와 관련된 기능 또는 상태들의 적어도 일부를 제어할 수 있다. 일실시예에 따르면, 보조 프로세서(123)(예: 이미지 시그널 프로세서 또는 커뮤니케이션 프로세서)는 기능적으로 관련 있는 다른 구성요소(예: 카메라 모듈(180) 또는 통신 모듈(190))의 일부로서 구현될 수 있다. 일실시예에 따르면, 보조 프로세서(123)(예: 신경망 처리 장치)는 인공지능 모델의 처리에 특화된 하드웨어 구조를 포함할 수 있다. 인공지능 모델은 기계 학습을 통해 생성될 수 있다. 이러한 학습은, 예를 들어, 인공지능 모델이 수행되는 전자 장치(101) 자체에서 수행될 수 있고, 별도의 서버(예: 서버(108))를 통해 수행될 수도 있다. 학습 알고리즘은, 예를 들어, 지도형 학습(supervised learning), 비지도형 학습(unsupervised learning), 준지도형 학습(semi-supervised learning) 또는 강화 학습(reinforcement learning)을 포함할 수 있으나, 전술한 예에 한정되지 않는다. 인공지능 모델은, 복수의 인공 신경망 레이어들을 포함할 수 있다. 인공 신경망은 심층 신경망(DNN: deep neural network), CNN(convolutional neural network), RNN(recurrent neural network), RBM(restricted boltzmann machine), DBN(deep belief network), BRDNN(bidirectional recurrent deep neural network), 심층 Q-네트워크(deep Q-networks) 또는 상기 중 둘 이상의 조합 중 하나일 수 있으나, 전술한 예에 한정되지 않는다. 인공지능 모델은 하드웨어 구조 이외에, 추가적으로 또는 대체적으로, 소프트웨어 구조를 포함할 수 있다. The
메모리(130)는, 전자 장치(101)의 적어도 하나의 구성요소(예: 프로세서(120) 또는 센서 모듈(176))에 의해 사용되는 다양한 데이터를 저장할 수 있다. 데이터는, 예를 들어, 소프트웨어(예: 프로그램(140)) 및, 이와 관련된 명령에 대한 입력 데이터 또는 출력 데이터를 포함할 수 있다. 메모리(130)는, 휘발성 메모리(132) 또는 비휘발성 메모리(134)를 포함할 수 있다. The
프로그램(140)은 메모리(130)에 소프트웨어로서 저장될 수 있으며, 예를 들면, 운영 체제(142), 미들 웨어(144) 또는 어플리케이션(146)을 포함할 수 있다. The
입력 모듈(150)은, 전자 장치(101)의 구성요소(예: 프로세서(120))에 사용될 명령 또는 데이터를 전자 장치(101)의 외부(예: 사용자)로부터 수신할 수 있다. 입력 모듈(150)은, 예를 들면, 마이크, 마우스, 키보드, 키(예: 버튼), 또는 디지털 펜(예: 스타일러스 펜)을 포함할 수 있다. The
음향 출력 모듈(155)은 음향 신호를 전자 장치(101)의 외부로 출력할 수 있다. 음향 출력 모듈(155)은, 예를 들면, 스피커 또는 리시버를 포함할 수 있다. 스피커는 멀티미디어 재생 또는 녹음 재생과 같이 일반적인 용도로 사용될 수 있다. 리시버는 착신 전화를 수신하기 위해 사용될 수 있다. 일실시예에 따르면, 리시버는 스피커와 별개로, 또는 그 일부로서 구현될 수 있다.The
디스플레이 모듈(160)은 전자 장치(101)의 외부(예: 사용자)로 정보를 시각적으로 제공할 수 있다. 디스플레이 모듈(160)은, 예를 들면, 디스플레이, 홀로그램 장치, 또는 프로젝터 및 해당 장치를 제어하기 위한 제어 회로를 포함할 수 있다. 일실시예에 따르면, 디스플레이 모듈(160)은 터치를 감지하도록 설정된 터치 센서, 또는 상기 터치에 의해 발생되는 힘의 세기를 측정하도록 설정된 압력 센서를 포함할 수 있다. The
오디오 모듈(170)은 소리를 전기 신호로 변환시키거나, 반대로 전기 신호를 소리로 변환시킬 수 있다. 일실시예에 따르면, 오디오 모듈(170)은, 입력 모듈(150)을 통해 소리를 획득하거나, 음향 출력 모듈(155), 또는 전자 장치(101)와 직접 또는 무선으로 연결된 외부 전자 장치(예: 전자 장치(102))(예: 스피커 또는 헤드폰)를 통해 소리를 출력할 수 있다.The
센서 모듈(176)은 전자 장치(101)의 작동 상태(예: 전력 또는 온도), 또는 외부의 환경 상태(예: 사용자 상태)를 감지하고, 감지된 상태에 대응하는 전기 신호 또는 데이터 값을 생성할 수 있다. 일실시예에 따르면, 센서 모듈(176)은, 예를 들면, 제스처 센서, 자이로 센서, 기압 센서, 마그네틱 센서, 가속도 센서, 그립 센서, 근접 센서, 컬러 센서, IR(infrared) 센서, 생체 센서, 온도 센서, 습도 센서, 또는 조도 센서를 포함할 수 있다. The
인터페이스(177)는 전자 장치(101)가 외부 전자 장치(예: 전자 장치(102))와 직접 또는 무선으로 연결되기 위해 사용될 수 있는 하나 이상의 지정된 프로토콜들을 지원할 수 있다. 일실시예에 따르면, 인터페이스(177)는, 예를 들면, HDMI(high definition multimedia interface), USB(universal serial bus) 인터페이스, SD카드 인터페이스, 또는 오디오 인터페이스를 포함할 수 있다.The
연결 단자(178)는, 그를 통해서 전자 장치(101)가 외부 전자 장치(예: 전자 장치(102))와 물리적으로 연결될 수 있는 커넥터를 포함할 수 있다. 일실시예에 따르면, 연결 단자(178)는, 예를 들면, HDMI 커넥터, USB 커넥터, SD 카드 커넥터, 또는 오디오 커넥터(예: 헤드폰 커넥터)를 포함할 수 있다.The
햅틱 모듈(179)은 전기적 신호를 사용자가 촉각 또는 운동 감각을 통해서 인지할 수 있는 기계적인 자극(예: 진동 또는 움직임) 또는 전기적인 자극으로 변환할 수 있다. 일실시예에 따르면, 햅틱 모듈(179)은, 예를 들면, 모터, 압전 소자, 또는 전기 자극 장치를 포함할 수 있다.The
카메라 모듈(180)은 정지 영상 및 동영상을 촬영할 수 있다. 일실시예에 따르면, 카메라 모듈(180)은 하나 이상의 렌즈들, 이미지 센서들, 이미지 시그널 프로세서들, 또는 플래시들을 포함할 수 있다.The
전력 관리 모듈(188)은 전자 장치(101)에 공급되는 전력을 관리할 수 있다. 일실시예에 따르면, 전력 관리 모듈(188)은, 예를 들면, PMIC(power management integrated circuit)의 적어도 일부로서 구현될 수 있다.The
배터리(189)는 전자 장치(101)의 적어도 하나의 구성요소에 전력을 공급할 수 있다. 일실시예에 따르면, 배터리(189)는, 예를 들면, 재충전 불가능한 1차 전지, 재충전 가능한 2차 전지 또는 연료 전지를 포함할 수 있다.The
통신 모듈(190)은 전자 장치(101)와 외부 전자 장치(예: 전자 장치(102), 전자 장치(104), 또는 서버(108)) 간의 직접(예: 유선) 통신 채널 또는 무선 통신 채널의 수립, 및 수립된 통신 채널을 통한 통신 수행을 지원할 수 있다. 통신 모듈(190)은 프로세서(120)(예: 어플리케이션 프로세서)와 독립적으로 운영되고, 직접(예: 유선) 통신 또는 무선 통신을 지원하는 하나 이상의 커뮤니케이션 프로세서를 포함할 수 있다. 일실시예에 따르면, 통신 모듈(190)은 무선 통신 모듈(192)(예: 셀룰러 통신 모듈, 근거리 무선 통신 모듈, 또는 GNSS(global navigation satellite system) 통신 모듈) 또는 유선 통신 모듈(194)(예: LAN(local area network) 통신 모듈, 또는 전력선 통신 모듈)을 포함할 수 있다. 이들 통신 모듈 중 해당하는 통신 모듈은 제 1 네트워크(198)(예: 블루투스, WiFi(wireless fidelity) direct 또는 IrDA(infrared data association)와 같은 근거리 통신 네트워크) 또는 제 2 네트워크(199)(예: 레거시 셀룰러 네트워크, 5G 네트워크, 차세대 통신 네트워크, 인터넷, 또는 컴퓨터 네트워크(예: LAN 또는 WAN)와 같은 원거리 통신 네트워크)를 통하여 외부의 전자 장치(104)와 통신할 수 있다. 이런 여러 종류의 통신 모듈들은 하나의 구성요소(예: 단일 칩)로 통합되거나, 또는 서로 별도의 복수의 구성요소들(예: 복수 칩들)로 구현될 수 있다. 무선 통신 모듈(192)은 가입자 식별 모듈(196)에 저장된 가입자 정보(예: 국제 모바일 가입자 식별자(IMSI))를 이용하여 제 1 네트워크(198) 또는 제 2 네트워크(199)와 같은 통신 네트워크 내에서 전자 장치(101)를 확인 또는 인증할 수 있다. The
무선 통신 모듈(192)은 4G 네트워크 이후의 5G 네트워크 및 차세대 통신 기술, 예를 들어, NR 접속 기술(new radio access technology)을 지원할 수 있다. NR 접속 기술은 고용량 데이터의 고속 전송(eMBB(enhanced mobile broadband)), 단말 전력 최소화와 다수 단말의 접속(mMTC(massive machine type communications)), 또는 고신뢰도와 저지연(URLLC(ultra-reliable and low-latency communications))을 지원할 수 있다. 무선 통신 모듈(192)은, 예를 들어, 높은 데이터 전송률 달성을 위해, 고주파 대역(예: mmWave 대역)을 지원할 수 있다. 무선 통신 모듈(192)은 고주파 대역에서의 성능 확보를 위한 다양한 기술들, 예를 들어, 빔포밍(beamforming), 거대 배열 다중 입출력(massive MIMO(multiple-input and multiple-output)), 전차원 다중입출력(FD-MIMO: full dimensional MIMO), 어레이 안테나(array antenna), 아날로그 빔형성(analog beam-forming), 또는 대규모 안테나(large scale antenna)와 같은 기술들을 지원할 수 있다. 무선 통신 모듈(192)은 전자 장치(101), 외부 전자 장치(예: 전자 장치(104)) 또는 네트워크 시스템(예: 제 2 네트워크(199))에 규정되는 다양한 요구사항을 지원할 수 있다. 일실시예에 따르면, 무선 통신 모듈(192)은 eMBB 실현을 위한 Peak data rate(예: 20Gbps 이상), mMTC 실현을 위한 손실 Coverage(예: 164dB 이하), 또는 URLLC 실현을 위한 U-plane latency(예: 다운링크(DL) 및 업링크(UL) 각각 0.5ms 이하, 또는 라운드 트립 1ms 이하)를 지원할 수 있다.The
안테나 모듈(197)은 신호 또는 전력을 외부(예: 외부의 전자 장치)로 송신하거나 외부로부터 수신할 수 있다. 일실시예에 따르면, 안테나 모듈(197)은 서브스트레이트(예: PCB) 위에 형성된 도전체 또는 도전성 패턴으로 이루어진 방사체를 포함하는 안테나를 포함할 수 있다. 일실시예에 따르면, 안테나 모듈(197)은 복수의 안테나들(예: 어레이 안테나)을 포함할 수 있다. 이런 경우, 제 1 네트워크(198) 또는 제 2 네트워크(199)와 같은 통신 네트워크에서 사용되는 통신 방식에 적합한 적어도 하나의 안테나가, 예를 들면, 통신 모듈(190)에 의하여 상기 복수의 안테나들로부터 선택될 수 있다. 신호 또는 전력은 상기 선택된 적어도 하나의 안테나를 통하여 통신 모듈(190)과 외부의 전자 장치 간에 송신되거나 수신될 수 있다. 어떤 실시예에 따르면, 방사체 이외에 다른 부품(예: RFIC(radio frequency integrated circuit))이 추가로 안테나 모듈(197)의 일부로 형성될 수 있다.
The
다양한 실시예에 따르면, 안테나 모듈(197)은 mmWave 안테나 모듈을 형성할 수 있다. 일실시예에 따르면, mmWave 안테나 모듈은 인쇄 회로 기판, 상기 인쇄 회로 기판의 제 1 면(예: 아래 면)에 또는 그에 인접하여 배치되고 지정된 고주파 대역(예: mmWave 대역)을 지원할 수 있는 RFIC, 및 상기 인쇄 회로 기판의 제 2 면(예: 윗 면 또는 측 면)에 또는 그에 인접하여 배치되고 상기 지정된 고주파 대역의 신호를 송신 또는 수신할 수 있는 복수의 안테나들(예: 어레이 안테나)을 포함할 수 있다.According to various embodiments, the
상기 구성요소들 중 적어도 일부는 주변 기기들간 통신 방식(예: 버스, GPIO(general purpose input and output), SPI(serial peripheral interface), 또는 MIPI(mobile industry processor interface))을 통해 서로 연결되고 신호(예: 명령 또는 데이터)를 상호간에 교환할 수 있다.At least some of the components are connected to each other through a communication method between peripheral devices (eg, a bus, general purpose input and output (GPIO), serial peripheral interface (SPI), or mobile industry processor interface (MIPI)) and signal ( e.g. commands or data) can be exchanged with each other.
일실시예에 따르면, 명령 또는 데이터는 제 2 네트워크(199)에 연결된 서버(108)를 통해서 전자 장치(101)와 외부의 전자 장치(104)간에 송신 또는 수신될 수 있다. 외부의 전자 장치(102, 또는 104) 각각은 전자 장치(101)와 동일한 또는 다른 종류의 장치일 수 있다. 일실시예에 따르면, 전자 장치(101)에서 실행되는 동작들의 전부 또는 일부는 외부의 전자 장치들(102, 104, 또는 108) 중 하나 이상의 외부의 전자 장치들에서 실행될 수 있다. 예를 들면, 전자 장치(101)가 어떤 기능이나 서비스를 자동으로, 또는 사용자 또는 다른 장치로부터의 요청에 반응하여 수행해야 할 경우에, 전자 장치(101)는 기능 또는 서비스를 자체적으로 실행시키는 대신에 또는 추가적으로, 하나 이상의 외부의 전자 장치들에게 그 기능 또는 그 서비스의 적어도 일부를 수행하라고 요청할 수 있다. 상기 요청을 수신한 하나 이상의 외부의 전자 장치들은 요청된 기능 또는 서비스의 적어도 일부, 또는 상기 요청과 관련된 추가 기능 또는 서비스를 실행하고, 그 실행의 결과를 전자 장치(101)로 전달할 수 있다. 전자 장치(101)는 상기 결과를, 그대로 또는 추가적으로 처리하여, 상기 요청에 대한 응답의 적어도 일부로서 제공할 수 있다. 이를 위하여, 예를 들면, 클라우드 컴퓨팅, 분산 컴퓨팅, 모바일 에지 컴퓨팅(MEC: mobile edge computing), 또는 클라이언트-서버 컴퓨팅 기술이 이용될 수 있다. 전자 장치(101)는, 예를 들어, 분산 컴퓨팅 또는 모바일 에지 컴퓨팅을 이용하여 초저지연 서비스를 제공할 수 있다. 다른 실시예에 있어서, 외부의 전자 장치(104)는 IoT(internet of things) 기기를 포함할 수 있다. 서버(108)는 기계 학습 및/또는 신경망을 이용한 지능형 서버일 수 있다. 일실시예에 따르면, 외부의 전자 장치(104) 또는 서버(108)는 제 2 네트워크(199) 내에 포함될 수 있다. 전자 장치(101)는 5G 통신 기술 및 IoT 관련 기술을 기반으로 지능형 서비스(예: 스마트 홈, 스마트 시티, 스마트 카, 또는 헬스 케어)에 적용될 수 있다. According to an embodiment, commands or data may be transmitted or received between the
본 문서에 개시된 다양한 실시예들에 따른 전자 장치는 다양한 형태의 장치가 될 수 있다. 전자 장치는, 예를 들면, 휴대용 통신 장치(예: 스마트폰), 컴퓨터 장치, 휴대용 멀티미디어 장치, 휴대용 의료 기기, 카메라, 웨어러블 장치, 또는 가전 장치를 포함할 수 있다. 본 문서의 실시예에 따른 전자 장치는 전술한 기기들에 한정되지 않는다.Electronic devices according to various embodiments disclosed in this document may be devices of various types. The electronic device may include, for example, a portable communication device (eg, a smart phone), a computer device, a portable multimedia device, a portable medical device, a camera, a wearable device, or a home appliance. An electronic device according to an embodiment of the present document is not limited to the aforementioned devices.
본 문서의 다양한 실시예들 및 이에 사용된 용어들은 본 문서에 기재된 기술적 특징들을 특정한 실시예들로 한정하려는 것이 아니며, 해당 실시예의 다양한 변경, 균등물, 또는 대체물을 포함하는 것으로 이해되어야 한다. 도면의 설명과 관련하여, 유사한 또는 관련된 구성요소에 대해서는 유사한 참조 부호가 사용될 수 있다. 아이템에 대응하는 명사의 단수 형은 관련된 문맥상 명백하게 다르게 지시하지 않는 한, 상기 아이템 한 개 또는 복수 개를 포함할 수 있다. 본 문서에서, "A 또는 B", "A 및 B 중 적어도 하나", "A 또는 B 중 적어도 하나", "A, B 또는 C", "A, B 및 C 중 적어도 하나", 및 "A, B, 또는 C 중 적어도 하나"와 같은 문구들 각각은 그 문구들 중 해당하는 문구에 함께 나열된 항목들 중 어느 하나, 또는 그들의 모든 가능한 조합을 포함할 수 있다. "제 1", "제 2", 또는 "첫째" 또는 "둘째"와 같은 용어들은 단순히 해당 구성요소를 다른 해당 구성요소와 구분하기 위해 사용될 수 있으며, 해당 구성요소들을 다른 측면(예: 중요성 또는 순서)에서 한정하지 않는다. 어떤(예: 제 1) 구성요소가 다른(예: 제 2) 구성요소에, "기능적으로" 또는 "통신적으로"라는 용어와 함께 또는 이런 용어 없이, "커플드" 또는 "커넥티드"라고 언급된 경우, 그것은 상기 어떤 구성요소가 상기 다른 구성요소에 직접적으로(예: 유선으로), 무선으로, 또는 제 3 구성요소를 통하여 연결될 수 있다는 것을 의미한다.Various embodiments of this document and terms used therein are not intended to limit the technical features described in this document to specific embodiments, but should be understood to include various modifications, equivalents, or substitutes of the embodiments. In connection with the description of the drawings, like reference numbers may be used for like or related elements. The singular form of a noun corresponding to an item may include one item or a plurality of items, unless the relevant context clearly dictates otherwise. In this document, "A or B", "at least one of A and B", "at least one of A or B", "A, B or C", "at least one of A, B and C", and "A Each of the phrases such as "at least one of , B, or C" may include any one of the items listed together in that phrase, or all possible combinations thereof. Terms such as "first", "second", or "first" or "secondary" may simply be used to distinguish a given component from other corresponding components, and may be used to refer to a given component in another aspect (eg, importance or order) is not limited. A (e.g., first) component is said to be "coupled" or "connected" to another (e.g., second) component, with or without the terms "functionally" or "communicatively." When mentioned, it means that the certain component may be connected to the other component directly (eg by wire), wirelessly, or through a third component.
본 문서의 다양한 실시예들에서 사용된 용어 "모듈"은 하드웨어, 소프트웨어 또는 펌웨어로 구현된 유닛을 포함할 수 있으며, 예를 들면, 로직, 논리 블록, 부품, 또는 회로와 같은 용어와 상호 호환적으로 사용될 수 있다. 모듈은, 일체로 구성된 부품 또는 하나 또는 그 이상의 기능을 수행하는, 상기 부품의 최소 단위 또는 그 일부가 될 수 있다. 예를 들면, 일실시예에 따르면, 모듈은 ASIC(application-specific integrated circuit)의 형태로 구현될 수 있다. The term "module" used in various embodiments of this document may include a unit implemented in hardware, software, or firmware, and is interchangeable with terms such as, for example, logic, logical blocks, parts, or circuits. can be used as A module may be an integrally constructed component or a minimal unit of components or a portion thereof that performs one or more functions. For example, according to one embodiment, the module may be implemented in the form of an application-specific integrated circuit (ASIC).
본 문서의 다양한 실시예들은 기기(machine)(예: 전자 장치(101)) 의해 읽을 수 있는 저장 매체(storage medium)(예: 내장 메모리(136) 또는 외장 메모리(138))에 저장된 하나 이상의 명령어들을 포함하는 소프트웨어(예: 프로그램(140))로서 구현될 수 있다. 예를 들면, 기기(예: 전자 장치(101))의 프로세서(예: 프로세서(120))는, 저장 매체로부터 저장된 하나 이상의 명령어들 중 적어도 하나의 명령을 호출하고, 그것을 실행할 수 있다. 이것은 기기가 상기 호출된 적어도 하나의 명령어에 따라 적어도 하나의 기능을 수행하도록 운영되는 것을 가능하게 한다. 상기 하나 이상의 명령어들은 컴파일러에 의해 생성된 코드 또는 인터프리터에 의해 실행될 수 있는 코드를 포함할 수 있다. 기기로 읽을 수 있는 저장 매체는, 비일시적(non-transitory) 저장 매체의 형태로 제공될 수 있다. 여기서, ‘비일시적’은 저장 매체가 실재(tangible)하는 장치이고, 신호(signal)(예: 전자기파)를 포함하지 않는다는 것을 의미할 뿐이며, 이 용어는 데이터가 저장 매체에 반영구적으로 저장되는 경우와 임시적으로 저장되는 경우를 구분하지 않는다.Various embodiments of this document provide one or more instructions stored in a storage medium (eg,
일실시예에 따르면, 본 문서에 개시된 다양한 실시예들에 따른 방법은 컴퓨터 프로그램 제품(computer program product)에 포함되어 제공될 수 있다. 컴퓨터 프로그램 제품은 상품으로서 판매자 및 구매자 간에 거래될 수 있다. 컴퓨터 프로그램 제품은 기기로 읽을 수 있는 저장 매체(예: compact disc read only memory(CD-ROM))의 형태로 배포되거나, 또는 어플리케이션 스토어(예: 플레이 스토어TM)를 통해 또는 두 개의 사용자 장치들(예: 스마트 폰들) 간에 직접, 온라인으로 배포(예: 다운로드 또는 업로드)될 수 있다. 온라인 배포의 경우에, 컴퓨터 프로그램 제품의 적어도 일부는 제조사의 서버, 어플리케이션 스토어의 서버, 또는 중계 서버의 메모리와 같은 기기로 읽을 수 있는 저장 매체에 적어도 일시 저장되거나, 임시적으로 생성될 수 있다.According to one embodiment, the method according to various embodiments disclosed in this document may be included and provided in a computer program product. Computer program products may be traded between sellers and buyers as commodities. A computer program product is distributed in the form of a device-readable storage medium (eg compact disc read only memory (CD-ROM)), or through an application store (eg Play Store TM ) or on two user devices ( It can be distributed (eg downloaded or uploaded) online, directly between smart phones. In the case of online distribution, at least part of the computer program product may be temporarily stored or temporarily created in a device-readable storage medium such as a manufacturer's server, an application store server, or a relay server's memory.
다양한 실시예들에 따르면, 상기 기술한 구성요소들의 각각의 구성요소(예: 모듈 또는 프로그램)는 단수 또는 복수의 개체를 포함할 수 있으며, 복수의 개체 중 일부는 다른 구성요소에 분리 배치될 수도 있다. 다양한 실시예들에 따르면, 전술한 해당 구성요소들 중 하나 이상의 구성요소들 또는 동작들이 생략되거나, 또는 하나 이상의 다른 구성요소들 또는 동작들이 추가될 수 있다. 대체적으로 또는 추가적으로, 복수의 구성요소들(예: 모듈 또는 프로그램)은 하나의 구성요소로 통합될 수 있다. 이런 경우, 통합된 구성요소는 상기 복수의 구성요소들 각각의 구성요소의 하나 이상의 기능들을 상기 통합 이전에 상기 복수의 구성요소들 중 해당 구성요소에 의해 수행되는 것과 동일 또는 유사하게 수행할 수 있다. 다양한 실시예들에 따르면, 모듈, 프로그램 또는 다른 구성요소에 의해 수행되는 동작들은 순차적으로, 병렬적으로, 반복적으로, 또는 휴리스틱하게 실행되거나, 상기 동작들 중 하나 이상이 다른 순서로 실행되거나, 생략되거나, 또는 하나 이상의 다른 동작들이 추가될 수 있다.According to various embodiments, each component (eg, module or program) of the above-described components may include a single object or a plurality of entities, and some of the plurality of entities may be separately disposed in other components. have. According to various embodiments, one or more components or operations among the aforementioned corresponding components may be omitted, or one or more other components or operations may be added. Alternatively or additionally, a plurality of components (eg modules or programs) may be integrated into a single component. In this case, the integrated component may perform one or more functions of each of the plurality of components identically or similarly to those performed by a corresponding component of the plurality of components prior to the integration. . According to various embodiments, the actions performed by a module, program, or other component are executed sequentially, in parallel, iteratively, or heuristically, or one or more of the actions are executed in a different order, or omitted. or one or more other actions may be added.
도 2a 및 도 2b는 다양한 실시예에 따른 제1영상 및 지역 대비 강화 알고리즘을 사용한 제2영상을 도시한 것이다.2A and 2B illustrate a first image and a second image using a regional contrast enhancement algorithm according to various embodiments.
다양한 실시예에 따르면, 전자 장치는 지역 대비 강화(local contrast enhancement) 알고리즘을 이용하여 영상의 시인성을 향상할 수 있다. 지역 대비 강화 알고리즘을 이용하면, 전자 장치는 영상에서 대비(contrast)가 부족한 부분의 선명도를 높일 수 있다. 영상 대비는 영상 내에서 어두운 부분과 밝은 부분의 차이를 의미하는 것으로, 영상 대비가 강하면 밝은 부분과 어두운 부분의 차이가 크며, 영상 대비가 약하면 밝은 부분과 어두운 부분의 차이가 작을 수 있다. 시청자가 영상을 볼 때 대비가 약하면 영상의 선명함과 시인성(visibility)이 떨어지는 문제가 발생할 수 있다. 전자 장치는 영상의 대비를 증가시키기 위하여 다양한 방법(contrast enhancement, CE)을 사용할 수 있다.According to various embodiments, the electronic device may improve visibility of an image using a local contrast enhancement algorithm. Using the local contrast enhancement algorithm, the electronic device may increase the sharpness of a part of the image where contrast is insufficient. Image contrast refers to the difference between a dark part and a bright part in an image. If the image contrast is strong, the difference between the bright part and the dark part is large, and if the image contrast is weak, the difference between the bright part and the dark part may be small. When a viewer views an image, if the contrast is weak, the sharpness and visibility of the image may deteriorate. An electronic device may use various methods (contrast enhancement, CE) to increase the contrast of an image.
예를 들어, 전자 장치는 정해진 대비 수치에 의해서 표현한 이미지 및/또는 영상의 대비를 향상시키기 위한 알고리즘(direct enhancement method)(예: 멱급수 변환, 로그함수 변환, 그레이 레벨 분할 방식)을 사용할 수 있다. 또는, 전자 장치는 이미지 및/또는 영상의 확률 밀도를 재분배해서 대비를 향상시키기 위한 알고리즘(indirect enhancement method)(예: histogram specification, histogram equalization, histogram modification)을 사용할 수 있다.For example, the electronic device may use a direct enhancement method (eg, power series transformation, log function transformation, gray level division method) for enhancing the contrast of an image and/or video expressed by a predetermined contrast value. Alternatively, the electronic device may use an indirect enhancement method (eg, histogram specification, histogram equalization, histogram modification) for improving contrast by redistributing probability densities of images and/or videos.
다양한 실시예에 따르면, 전자 장치는 영상의 대비를 강화하기 위하여 지역 대비 강화 알고리즘을 사용할 수 있다. 도 2a는 지역 대비 강화를 수행하기 전의 화면(200)을, 도 2b는 지역 대비 강화를 수행한 이후의 화면(210)을 나타낸다. 도 2a를 참조하면, 전자 장치에서 재생하는 영상은 평탄한 영역을 포함할 수도 있고, 평탄하지 않은 영역을 포함할 수도 있다. 전자 장치는 평탄한 영역과 평탄하지 않은 영역에서 모두 지역 대비 강화를 수행할 수 있다. 지역 대비 강화를 수행할 때, 평탄한 영역에서는 인근에 RGB값이 높은 영역 때문에 지역 대비 강화가 수행되는 픽셀의 RGB값이 충분히 증가하지 않아서 이미지의 왜곡(예: 헤일로 현상)이 발생할 수 있다. 반면 평탄하지 않은 곳에서는 지역 대비 강화를 수행해도 상대적으로 이미지 왜곡 현상이 적게 발생할 수 있다.According to various embodiments, the electronic device may use a regional contrast enhancement algorithm to enhance image contrast. 2A shows the
다양한 실시예에 따르면, 전자 장치는 현재 픽셀 RGB값을 기준으로 하여 주위 픽셀 RGB값이 높으면 현재 픽셀 RGB값을 유지하고, 주위 픽셀 RGB값이 낮으면 현재 픽셀 RGB값을 증가시킬 수 있다. 이와 같은 지역 대비 강화 알고리즘을 통하여 전자 장치는 이미지의 대비를 국부적으로 증가시킬 수 있다. 지역 대비 강화 알고리즘을 이용하면 평탄한 영역이 적은 이미지에서는 선명한 이미지를 얻을 수 있지만, 평탄 영역이 많은 이미지에서는 RGB값이 높은 픽셀 주위에서 이미지 왜곡이 발생할 수 있다. 예를 들어, 전자 장치가 지역 대비 강화 알고리즘을 수행할 때 주변 픽셀의 RGB값이 높으면 중심 픽셀의 RGB값을 충분히 증가시키지 않을 수 있다. 따라서 주변 픽셀의 RGB값이 높은 중심 픽셀과, 주변 픽셀의 RGB값이 낮은 중심 픽셀은 지역 대비 강화 알고리즘의 수행 정도에 차이가 나 이미지 왜곡이 발생할 수 있다.According to various embodiments, the electronic device may maintain the current pixel RGB value when the RGB value of the surrounding pixel is high based on the RGB value of the current pixel, and increase the RGB value of the current pixel when the RGB value of the surrounding pixel is low. Through the regional contrast enhancement algorithm, the electronic device can locally increase the contrast of the image. A sharp image can be obtained in an image with few flat areas by using the local contrast enhancement algorithm, but image distortion may occur around pixels with high RGB values in images with many flat areas. For example, when an electronic device performs an area contrast enhancement algorithm, if the RGB values of neighboring pixels are high, the RGB values of the central pixel may not be sufficiently increased. Therefore, image distortion may occur between the central pixel having a high RGB value of the surrounding pixels and the central pixel having a low RGB value of the surrounding pixels due to the difference in the performance of the regional contrast enhancement algorithm.
예를 들어 도 2a 및 도 2b를 참조하면, 제1영역(212)과 제2영역(214)의 바탕색은 같으나, 지역 대비 강화 알고리즘을 수행한 이후 도 2b의 이미지(210)에서는 차이가 발생했다. 제1영역(212) 내의 그래픽 객체를 표시하는 픽셀의 RGB값이 바탕색의 RGB값보다 더 높기 때문에, 프로세서가 지역 대비 강화 알고리즘을 수행할 때 중심 픽셀의 RGB값을 적게 증가시킬 수 있다. 결과적으로 프로세서가 제1영역(212)에서 수행한 지역 대비 강화 알고리즘에 의해 이미지 왜곡이 발생할 수 있다. 반면, 제2영역(214)에 위치하는 픽셀들의 RGB값은 비슷하기 때문에 이미지 왜곡이 발생하지 않을 수 있다.For example, referring to FIGS. 2A and 2B , the background color of the
다양한 실시예에 따르면, 전자 장치는 이미지 왜곡 현상을 방지하기 위하여 지역 대비 강화 알고리즘을 수행한 영상의 반영 비율을 조절할 수 있다. 예를 들어, 전자 장치는 제1영상을 제1가중치만큼 반영하고 제2영상을 제2가중치만큼 반영하여 제3영상을 생성할 수 있다. 전자 장치가 지역 대비 강화를 수행한 영상의 반영 비율을 조절하여 이미지 왜곡 현상을 완화하고 영상의 시인성을 향상한 방법에 대하여는 이하 도3 내지 도5에서 후술한다.According to various embodiments, the electronic device may adjust a reflection ratio of an image on which a regional contrast enhancement algorithm is performed in order to prevent image distortion. For example, the electronic device may generate a third image by reflecting the first image by a first weight and reflecting the second image by a second weight. A method of mitigating image distortion and improving visibility of an image by adjusting a reflection ratio of an image subjected to regional contrast enhancement by an electronic device will be described later with reference to FIGS. 3 to 5 .
도 3은 다양한 실시예에 따른 전자 장치의 블록도이다.3 is a block diagram of an electronic device according to various embodiments.
도 3을 참조하면, 전자 장치(300)는 디스플레이(320), 프로세서(310) 및 메모리(330)를 포함할 수 있으며, 다양한 실시예에서, 도시된 구성 중 일부가 생략 또는 치환 될 수도 있다. 전자 장치(300)는 도 1의 전자 장치(101)의 구성 및/또는 기능 중 적어도 일부를 더 포함할 수 있다. 도시된(또는 도시되지 않은) 전자 장치(300)의 각 구성 중 적어도 일부는 상호 작동적으로(operatively), 기능적으로(functionally) 및/또는 전기적으로 (electrically) 연결될 수 있다.Referring to FIG. 3 , an
다양한 실시예에 따르면, 디스플레이(320)는 프로세서(310)(예: AP, DDI)의 제어에 따라 다양한 영상을 표시할 수 있다. 디스플레이(320)는 액정 디스플레이(liquid crystal display(LCD)), 발광 다이오드(light-emitting diode(LED)) 디스플레이, 마이크로 LED(micro LED) 디스플레이, QD(quantum dot) 디스플레이 또는 유기 발광 다이오드(organic light-emitting diode(OLED)) 디스플레이 중 어느 하나로 구현될 수 있으며, 이에 한정되지는 않는다. 디스플레이(320)는 사용자의 신체 일부(예: 손가락) 또는 입력 장치(예: 스타일러스 펜)를 이용한 터치 및/또는 근접 터치(또는 호버링) 입력을 감지하는 터치 스크린으로 형성될 수 있다. 디스플레이(320)는 도 1의 디스플레이 모듈(160)의 구성 및/또는 기능 중 적어도 일부를 포함할 수 있다.According to various embodiments, the
다양한 실시예에 따르면, 디스플레이(320)는 적어도 일부가 플렉서블(flexible) 할 수 있으며, 폴더블(foldable) 디스플레이, 또는 롤러블(rollable) 디스플레이로 구현될 수도 있다.According to various embodiments, at least a portion of the
다양한 실시예에 따르면, 메모리(330)는 휘발성 메모리(예: 도 1의 휘발성 메모리(132)) 및 비휘발성 메모리(예: 도 1의 비휘발성 메모리(134))를 포함하여, 다양한 데이터들을 일시적 또는 영구적으로 저장할 수 있다. 메모리(330)는 도 1의 메모리(130)의 구성 및/또는 기능 중 적어도 일부를 포함하고, 도 1의 프로그램(140)을 저장할 수 있다.According to various embodiments, the
다양한 실시예에 따르면, 메모리(330)는 프로세서(310)에서 수행될 수 있는 다양한 인스트럭션(instruction)들을 저장할 수 있다. 이와 같은 인스트럭션들은 프로세서(310)에 의해 인식될 수 있는 산술 및 논리 연산, 데이터 이동, 입출력 등과 같은 제어 명령을 포함할 수 있다.According to various embodiments, the
다양한 실시예에 따르면, 프로세서(310)는 전자 장치(300) 각 구성요소들(예: 디스플레이(320), 메모리(330))과 작동적으로(operatively), 기능적으로(functionally), 및/또는 전기적으로(electrically) 연결되어, 각 구성요소들의 제어 및/또는 통신에 관한 연산이나 데이터 처리를 수행할 수 있는 구성일 수 있다. 프로세서(310)는 도 1의 프로세서(120)의 구성 및/또는 기능 중 적어도 일부를 포함할 수 있다.According to various embodiments, the
다양한 실시예에 따르면, 프로세서(310)가 전자 장치(300) 상에서 구현할 수 있는 연산 및 데이터 처리 기능에는 한정됨이 없을 것이나, 이하에서 영상의 시인성을 향상시키기 위한 다양한 실시예에 대해 설명하기로 한다. 후술할 프로세서(310)의 동작들은 메모리(330)에 저장된 인스트럭션들을 로딩(loading)함으로써 수행될 수 있다.According to various embodiments, calculation and data processing functions that the
다양한 실시예에 따르면, 프로세서(310)는 DDI가 제1영상을 디스플레이(320)에 표시하도록 제어할 수 있다. 프로세서(310)는 메모리(330)에 저장되어 있는 제1영상을 재생하거나 외부 장치로부터 수신한 제1영상을 재생할 수 있다. 프로세서(310)는 제1영상의 데이터에 기초하여 디스플레이(320)의 각 픽셀에 RGB값을 할당할 수 있다. RGB값은 R(red)데이터, G(green)데이터 및 B(blue)데이터를 포함할 수 있다. R데이터, G데이터 및 B데이터는 정해진 범위(예: 0~255)를 갖는 각 색깔의 계조에 대한 정보를 포함할 수 있다.According to various embodiments, the
다양한 실시예에 따르면, 프로세서(310)는 제1영상에 지역 대비 강화 알고리즘을 수행하여 제1영상에 비하여 대비(contrast)가 강화된 제2영상을 생성할 수 있다. 프로세서(310)는 다음과 같은 알고리즘을 이용하여 지역 대비 강화를 수행할 수 있다. 먼저, 프로세서(310)는 제1픽셀 및 주위 픽셀의 RGB값을 확인할 수 있다. 주위 픽셀은 제1픽셀을 중심으로 소정 거리 이내에 위치하는 적어도 하나의 픽셀을 포함할 수 있다. 프로세서(310)는 주위 픽셀의 RGB값이 제1픽셀의 RGB값보다 높은 경우에는 제1픽셀의 RGB값을 유지하고, 주위 픽셀의 RGB값이 제1픽셀의 RGB값보다 낮은 경우에는 제1픽셀의 RGB값을 높여 국부적으로 대비를 높일 수 있다. 예를 들어, 제1픽셀의 RGB값은 100인데 주위 픽셀의 RGB값은 150인 경우 프로세서(310)는 제1픽셀의 RGB값을 바꾸지 않고 유지할 수 있다. 반면, 제1픽셀의 RGB값이 100인데 주위 픽셀의 RGB값이 50인 경우 프로세서(310)는 제1픽셀의 RGB값을 높여 주위 픽셀과의 RGB값 차이를 증가시킬 수 있다. 일 실시예에 따르면, 프로세서(310)는 지역 대비 강화 알고리즘을 모든 픽셀에 대하여 수행하여 이미지의 전체적인 대비를 증가시킬 수 있다. 일 실시예에 따르면, 프로세서(310)는 전체 영역에서 RGB값이 상대적으로 낮은 부분에 대하여 지역 대비 강화를 수행할 수 있다.According to various embodiments, the
다양한 실시예에 따르면, 프로세서(310)는 하나의 픽셀을 중심으로 하는 블록을 생성할 수 있다. 일 실시예에 따르면, 프로세서(310)는 블록의 형태를 다양하게 결정할 수 있다. 예를 들어 프로세서(310)가 생성한 블록은 중심 픽셀과 같은 행에 위치하는 픽셀만 포함할 수도 있고, 중심 픽셀과 같은 열에 위치하는 픽셀만 포함할 수도 있다. 다른 실시예에 따르면, 프로세서(310)는 중심 픽셀로부터 소정 거리 내에 위치하는 적어도 하나의 픽셀을 포함하는 영역으로 이루어진 블록을 생성할 수도 있다. 즉, 프로세서(310)는 하나의 픽셀을 중심으로 원형, 사각형, 삼각형과 같은 형태를 갖는 블록을 생성할 수도 있다.According to various embodiments, the
다양한 실시예에 따르면, 프로세서(310)는 픽셀이 평탄 영역에 속하는지 여부를 결정하기 위하여 임계치를 결정할 수 있다. 프로세서(310)는 이미지의 대비를 향상시키면서 이미지 왜곡 현상도 개선할 수 있는 임계치를 결정할 수 있다. 즉, 임계치가 너무 높으면 평탄 영역에 속하는 픽셀이 많아져서 지역 대비 강화 효과가 떨어질 수 있고, 임계치가 너무 낮으면 평탄 영역에 속하는 픽셀이 적어져서 이미지 왜곡을 개선할 수 없는 문제가 있다. 따라서 프로세서(310)는 적절한 값을 선택하여 임계치를 결정할 수 있다.According to various embodiments, the
다양한 실시예에 따르면, 프로세서(310)는 적어도 하나의 픽셀에 대한 RGB값을 획득할 수 있다. 프로세서(310)는 제1영상의 데이터를 확인하고, 디스플레이(320)를 구성하는 적어도 하나의 픽셀에 프레임마다 다른 RGB값을 할당할 수 있다. 프로세서(310)는 중심 픽셀이 평탄 영역에 속하는지 여부를 판단하기 위하여 중심 픽셀의 RGB값 및 주변 픽셀의 RGB값을 획득할 수 있다.According to various embodiments, the
예를 들어, 프로세서(310)는 제1픽셀을 중심 픽셀로 하는 제1블록에 포함되는 적어도 하나의 픽셀의 RGB값을 획득할 수 있다. 프로세서(310)는 제1픽셀 및 제1블록에 포함되는 주변 픽셀의 RGB값의 차이를 계산할 수 있다. 일 실시예에 따르면, 프로세서(310)는 주변 픽셀의 RGB값의 평균을 계산하고, 이 평균값과 제1픽셀의 RGB값의 차이를 계산할 수 있다.For example, the
다양한 실시예에 따르면, 프로세서(310)는 계산한 상기 차이에 기초하여 제1픽셀이 평탄 영역에 포함되는지 여부를 결정할 수 있다. 프로세서(310)는 제1픽셀의 RGB값과 주변 픽셀의 RGB값의 차이가 임계치 미만인 경우 제1픽셀을 평탄 영역에 포함되는 것으로 결정할 수 있다. 반대로, 제1픽셀의 RGB값과 주변 픽셀의 RGB값의 차이가 임계치 이상인 경우 프로세서(310)는 제1픽셀이 평탄 영역에 포함되지 않는 것으로 결정할 수 있다. 같은 방식으로, 프로세서(310)는 디스플레이(320)에 포함된 모든 픽셀에 대하여 평탄 영역에 포함되는지 여부를 결정할 수 있다. 일 실시예에 따르면, 제1영상에서 지역 대비 강화를 수행한 경우, 제1영상 내에 평탄 영역이 많을수록 이미지 왜곡 현상이 잘 나타나고, 평탄 영역이 적을수록 이미지 왜곡 현상이 잘 나타나지 않을 수 있다.According to various embodiments, the
다양한 실시예에 따르면, 프로세서(310)는 제1가중치 및 제2가중치를 결정할 수 있다. 프로세서(310)는 제1가중치 및 제2가중치를 0부터 1 사이의 수 중 하나로 각각 결정할 수 있다. 일 실시예에 따르면, 프로세서(310)는 전체 픽셀에서 평탄 영역에 포함되는 픽셀이 차지하는 비율에 기초하여 가중치를 결정할 수 있다. 예를 들어, 전체 픽셀 대비 평탄 영역에 포함되는 픽셀이 차지하는 비율이 제1비율인 경우, 프로세서(310)는 제1비율에 비례하는 제2가중치를 설정할 수 있다. 프로세서(310)는 제2가중치에 기초하여 제1가중치를 계산할 수 있다. 예를 들어, 제1가중치와 제2가중치를 더하면 1이 되도록 제1가중치를 계산할 수 있다.According to various embodiments, the
다른 실시예에 따르면, 프로세서(310)는 픽셀의 평탄한 정도를 계산할 수 있다. 프로세서(310)는 블록 내에서 중심 픽셀의 RGB값과 주변 픽셀의 RGB값 차이에 기초하여 평탄한 정도를 계산할 수 있다. 프로세서(310)는 각 픽셀에서 중심 픽셀 RGB값과 주변 픽셀 RGB값의 차이에 기초하여 정해진 범위(예: 0~1) 내의 값으로 평탄한 정도를 나타낼 수 있다. 예를 들어, 제1픽셀의 RGB값과 제1픽셀의 주변 픽셀의 RGB값의 차이가 제2픽셀의 RGB값과 제2픽셀의 주변 픽셀의 RGB값의 차이보다 더 적게 나는 경우, 프로세서(310)는 제1픽셀이 제2픽셀보다 더 평탄한 것으로 결정하고, 각 픽셀의 평탄도에 따른 숫자를 부여할 수 있다.According to another embodiment, the
다양한 실시예에 따르면, 프로세서(310)는 계산한 픽셀의 평탄도에 기초하여 제1가중치 및 제2가중치를 결정할 수 있다. 평탄도가 낮을수록 중심 픽셀의 RGB값과 주변 픽셀의 RGB값의 차이가 크고, 평탄도가 높을수록 중심 픽셀의 RGB값과 주변 픽셀의 RGB값의 차이가 작을 수 있다. 프로세서(310)는 평탄도가 높은 픽셀에 대해서는 이미지 왜곡을 줄이기 위하여 제1가중치를 높게 결정할 수 있고, 평탄도가 낮은 픽셀에 대해서는 시인성 향상을 위하여 제2가중치를 높게 결정할 수 있다.According to various embodiments, the
다양한 실시예에 따르면, 프로세서(310)는 제1영상 및 제2영상을 조합하여 제3영상을 생성할 수 있다. 일 실시예에 따르면, 프로세서(310)는 계산한 제1가중치 및 제2가중치에 기초하여 제1영상 및 제2영상을 조합할 수 있다. 예를 들면, 프로세서(310)는 하기 식 1을 이용하여 제1영상과 제2영상을 조합할 수 있다. 프로세서(310)는 정해진 프레임에 대하여, 제1영상에서 제1픽셀의 RGB값과 제2영상에서 제1픽셀의 RGB값을 확인하고, 식 1에 대입하여 제3영상에서 제1픽셀에 대한 RGB값을 결정할 수 있다. 같은 방식으로, 프로세서(310)는 제3영상의 모든 픽셀에 대한 RGB값을 결정할 수 있다.According to various embodiments, the
[식 1][Equation 1]
4a 및 도 4b는 다양한 실시예에 따른 영상에서 하나의 픽셀을 중심으로 하는 블록을 도시한 것이다. 4A and 4B illustrate blocks centered on one pixel in an image according to various embodiments.
다양한 실시예에 따르면, 프로세서(예: 도 3의 프로세서(310))는 지역 대비 강화를 수행하기 위하여 적어도 하나의 픽셀을 포함하는 블록을 생성할 수 있다. 프로세서는 중심 픽셀을 결정하고, 중심 픽셀로부터 소정 거리 내에 위치하는 적어도 하나의 픽셀을 포함하는 블록을 생성할 수 있다. 프로세서는 블록의 형태를 다양하게 설정할 수 있다. 예를 들어, 블록의 형태는 이미지 특성, 단말의 현재 상태(예: 절전 모드인지 여부), 및 배터리 레벨과 같은 요소에 따라서 달라질 수 있다.According to various embodiments, a processor (eg, the
도 4a는 평탄 영역이 적은 이미지의 한 예이다. 프로세서는 도 4a의 이미지에서 상대적으로 RGB값이 낮은 영역에 지역 대비 강화를 수행할 수 있다. 일 실시예에 따르면, 프로세서는 주위 픽셀 RGB값이 중심 픽셀의 RGB값보다 낮은 경우 중심 픽셀 RGB값을 높이고, 주위 픽셀 RGB값이 중심 픽셀의 RGB값보다 높은 경우 중심 픽셀 RGB값을 유지하여 국부적으로 대비를 증가시킬 수 있다.4A is an example of an image with few flat areas. The processor may perform regional contrast enhancement on a region having a relatively low RGB value in the image of FIG. 4A. According to an embodiment, the processor increases the center pixel RGB value when the RGB values of the surrounding pixels are lower than the RGB values of the center pixel, and maintains the RGB values of the center pixel when the RGB values of the surrounding pixels are higher than the RGB values of the center pixel. Contrast can be increased.
다양한 실시예에 따르면, 프로세서가 평탄 영역이 적은 이미지에서 지역 대비 강화를 수행하는 경우, 이미지 왜곡 현상이 적게 발생할 수 있다. 도 4a와 같은 이미지에서는 지역 대비 강화를 수행하더라도 이미지 왜곡이 잘 발생하지 않아, 대비가 향상되고 선명한 이미지를 얻을 수 있다. 따라서 도 4a와 같은 이미지에서는 대비를 강화하기 위해서 지역 대비 강화 알고리즘을 그대로 적용할 수도 있다.According to various embodiments, when the processor performs regional contrast enhancement on an image with a small number of flat regions, image distortion may occur less. In the image shown in FIG. 4A , image distortion does not occur easily even when regional contrast enhancement is performed, and thus contrast is improved and a clear image can be obtained. Therefore, the local contrast enhancement algorithm may be applied as it is to enhance contrast in the image of FIG. 4A.
예를 들어, 프로세서는 제1픽셀(412)을 중심 픽셀로 하는 제1블록(410)을 설정할 수 있다. 프로세서는 제1블록(410)에 포함된 픽셀들의 RGB값을 획득하고, 제1픽셀(412)의 RGB값과 주변 픽셀의 RGB값의 차이를 계산할 수 있다. 도 4a의 이미지(400)는 평탄 영역이 적은 이미지로, 제1픽셀(412)의 RGB값과 주변 픽셀의 RGB값의 차이가 임계치보다 크게 계산될 수 있다. 즉, 평탄 영역의 비율이 낮으므로 지역 대비 강화 알고리즘을 수행하더라도 이미지 왜곡이 적게 발생할 수 있다. 프로세서는 영상의 시인성을 향상하기 위하여 제2가중치를 높게 결정할 수 있다. 도 4a의 이미지로 제3영상을 만들 때, 프로세서는 제1영상의 반영 비율을 낮추고 제2영상의 반영 비율을 높일 수 있다. 즉, 프로세서는 제1가중치를 낮게 설정하고 제2가중치를 높게 설정할 수 있다.For example, the processor may set the
도 4b는 평탄 영역이 많은 이미지의 한 예로, 메시지를 표시하는 일부 영역을 제외하고는 각 픽셀의 색 차이가 크지 않은 영상이다. 프로세서는 도 4b의 이미지(420)에서 상대적으로 RGB값이 낮은 영역에 지역 대비 강화를 수행할 수 있다. 일 실시예에 따르면, 프로세서가 도 4b와 같이 평탄한 영역이 많은 이미지에서 지역 대비 강화 알고리즘 수행 시 이미지 왜곡 현상이 발생할 수 있다.FIG. 4B is an example of an image with many flat areas, and is an image in which the color difference of each pixel is not large except for a part of the message display area. The processor may perform regional contrast enhancement on an area having a relatively low RGB value in the
예를 들어, 색이 변경되는 경계선 부근에서 이미지의 왜곡이 발생할 수 있다. 프로세서는 경계선 부근에 위치하는 제2픽셀(432)을 중심 픽셀로 하는 제2블록(430)을 생성하여 지역 대비 강화 알고리즘을 수행할 수 있다. 지역 대비 강화 알고리즘을 수행할 때 프로세서는 제2픽셀(432)의 주변 픽셀의 RGB값을 확인할 수 있다. 프로세서는 주변 픽셀의 RGB값이 높은 경우 제2픽셀(432)의 RGB값을 유지하고, 주변 픽셀의 RGB값이 낮은 경우 제2픽셀(432)의 RGB값을 증가시킬 수 있다. 즉, 제2픽셀(432)의 주변 픽셀의 RGB값이 높은 경우에는 RGB값을 증가시키지 않게 된다. 그런데 제2픽셀(432)과 동일한 RGB값을 가진 제3픽셀 주위에 RGB값이 낮은 픽셀이 존재하는 경우, 프로세서는 제3픽셀의 RGB값을 증가시킬 수 있다. 따라서 제1영상에서는 제2픽셀(432)과 제3픽셀의 RGB값이 동일했으나 제2영상에서는 RGB값에 차이가 나는 이미지 왜곡이 발생할 수 있다.For example, distortion of an image may occur near a boundary line where a color is changed. The processor may generate the
다양한 실시예에 따르면, 프로세서는 전체 픽셀에서 평탄 영역에 속하는 픽셀이 차지하는 비율에 기초하여 제1가중치 및 제2가중치를 결정할 수 있다. 예를 들면, 전체 픽셀에서 평탄 영역에 속하는 픽셀이 차지하는 비율이 10%인 경우, 프로세서는 제2가중치를 0.1로 설정할 수 있고, 전체 픽셀에서 평탄 영역에 속하는 픽셀이 차지하는 비율이 20%인 경우, 프로세서는 제2가중치를 0.2로 설정할 수 있다. 다른 실시예에 따르면, 프로세서는 픽셀의 평탄도에 따라서 제1가중치 및 제2가중치를 결정할 수 있다. 프로세서는 블록에서 중심 픽셀의 RGB값과 주변 픽셀의 RGB값 차이에 기초하여 각 픽셀의 평탄도를 결정할 수 있다.According to various embodiments, the processor may determine the first weight and the second weight based on a ratio of pixels belonging to the flat region to all pixels. For example, if the ratio of pixels belonging to the flat region to all pixels is 10%, the processor may set the second weight to 0.1, and if the ratio of pixels belonging to the flat region to all pixels is 20%, The processor may set the second weight to 0.2. According to another embodiment, the processor may determine the first weight and the second weight according to the flatness of the pixel. The processor may determine flatness of each pixel based on a difference between an RGB value of a central pixel and an RGB value of neighboring pixels in a block.
다양한 실시예에 따르면, 프로세서는 제2가중치에 기초하여 제1가중치를 결정할 수 있다. 예를 들어, 프로세서는 제1가중치와 제2가중치를 더하면 1이 되도록 제1가중치를 결정할 수 있다. 즉, 프로세서는 제2가중치를 0.2로 결정한 경우 제1가중치를 0.8로 결정할 수 있다.According to various embodiments, the processor may determine the first weight based on the second weight. For example, the processor may determine the first weight such that 1 is obtained by adding the first weight and the second weight. That is, the processor may determine the first weight to be 0.8 when the second weight is determined to be 0.2.
다양한 실시예에 따르면, 프로세서는 결정한 제1가중치 및 제2가중치에 기초하여 제3영상을 생성할 수 있다. 구체적으로, 프로세서는 제1영상을 제1가중치만큼 반영하고, 제2영상을 제2가중치만큼 반영하여 제3영상을 생성할 수 있다. 프로세서는 제1영상에 평탄 영역이 많은 경우 제1가중치를 높여 이미지 왜곡 현상을 최소화하고, 제1영상에 평탄 영역이 적은 경우 제2가중치를 높여 영상의 시인성을 향상할 수 있다. According to various embodiments, the processor may generate a third image based on the determined first weight and second weight. Specifically, the processor may generate a third image by reflecting the first image by the first weight and by reflecting the second image by the second weight. When the first image has many flat regions, the processor may increase the first weight to minimize image distortion, and increase the second weight when the first image has few flat regions to improve image visibility.
다양한 실시예에 따른 전자 장치는, 적어도 하나의 픽셀을 포함하는 디스플레이, 메모리, 및 상기 디스플레이 및 상기 메모리와 작동적으로(operatively) 연결되는 프로세서를 포함하고, 상기 프로세서는, 제1영상을 지역 대비 강화(local contrast enhancement)한 제2영상을 생성하고, 상기 제1영상의 적어도 하나의 프레임에서, 적어도 하나의 픽셀의 RGB값을 획득하고, 중심 픽셀 및 상기 중심 픽셀로부터 소정 거리 내에 위치하는 적어도 하나의 주변 픽셀을 포함하는 적어도 하나의 블록에서, 상기 중심 픽셀의 RGB값과 적어도 하나의 상기 주변 픽셀의 RGB값의 차이를 계산하고, 상기 RGB값 차이에 기초하여 상기 중심 픽셀이 평탄 영역에 속하는지 여부를 결정하고, 전체 픽셀에서 상기 평탄 영역에 속하는 픽셀의 비율에 기초하여 상기 제1영상에 대한 제1가중치 및 상기 제2영상에 대한 제2가중치를 결정하고, 상기 제1영상을 제1가중치만큼 반영하고 상기 제2영상을 제2가중치만큼 반영한 제3영상을 생성할 수 있다.An electronic device according to various embodiments includes a display including at least one pixel, a memory, and a processor operatively connected to the display and the memory, wherein the processor displays a first image as a regional contrast. A second image with local contrast enhancement is generated, an RGB value of at least one pixel is obtained in at least one frame of the first image, and a center pixel and at least one pixel located within a predetermined distance from the center pixel are obtained. In at least one block including peripheral pixels of, calculating the difference between the RGB value of the central pixel and the RGB value of at least one neighboring pixel, and determining whether the central pixel belongs to a flat area based on the RGB value difference. determine whether or not the first weight of the first image and the second weight of the second image are determined based on the ratio of pixels belonging to the flat region to all pixels, and determine the first weight of the first image and a third image reflecting the second weight by the second weight may be generated.
다양한 실시예에 따르면, 상기 프로세서는, 상기 중심 픽셀의 RGB값과 적어도 하나의 상기 주변 픽셀의 RGB값의 차이에 대한 임계값을 결정하고, 상기 RGB값 차이가 상기 임계값 이하면 상기 중심 픽셀이 평탄 영역에 속하는 것으로 결정하고, 상기 RGB값 차이가 상기 임계값을 초과하면 상기 중심 픽셀이 평탄 영역에 속하지 않는 것으로 결정할 수 있다.According to various embodiments, the processor determines a threshold value for a difference between an RGB value of the central pixel and an RGB value of at least one neighboring pixel, and if the RGB value difference is less than or equal to the threshold value, the central pixel It is determined that the pixels belong to the flat region, and if the RGB value difference exceeds the threshold value, the center pixel may be determined not to belong to the flat region.
다양한 실시예에 따르면, 상기 프로세서는, 상기 RGB값 차이에 기초하여 적어도 하나의 픽셀의 평탄도(flatness)를 계산할 수 있다.According to various embodiments, the processor may calculate flatness of at least one pixel based on the RGB value difference.
다양한 실시예에 따르면, 상기 디스플레이는 적어도 하나의 픽셀로 이루어진 행과 열을 포함하며, 상기 프로세서는, 상기 중심 픽셀로부터 상기 소정 거리 내에 위치하는 적어도 하나의 픽셀을 포함하거나, 상기 중심 픽셀과 같은 행에 위치하는 적어도 하나의 픽셀만 포함하거나, 또는 같은 열에 위치한 적어도 하나의 픽셀만 포함하는 블록을 생성할 수 있다.According to various embodiments, the display includes a row and a column of at least one pixel, and the processor includes at least one pixel positioned within the predetermined distance from the center pixel, or the same row as the center pixel. A block including only at least one pixel positioned at , or at least one pixel positioned at the same column may be created.
다양한 실시예에 따르면, 상기 프로세서는, 상기 블록을 생성하기 위한 상기 소정 거리를 결정할 수 있다.According to various embodiments, the processor may determine the predetermined distance for generating the block.
다양한 실시예에 따르면, 상기 프로세서는, 전체 픽셀 중에서 상기 평탄 영역에 속하는 픽셀이 차지하는 비율에 비례하여 상기 제1가중치 및 상기 제2가중치를 결정할 수 있다.According to various embodiments, the processor may determine the first weight and the second weight in proportion to a ratio occupied by pixels belonging to the flat region among all pixels.
다양한 실시예에 따르면, 상기 프로세서는, 전체 픽셀에서 상기 평탄 영역에 속하는 픽셀이 차지하는 비율 및 영상 특성에 기초하여 제1가중치 및 제2가중치를 결정할 수 있다.According to various embodiments, the processor may determine a first weight and a second weight based on a ratio of pixels belonging to the flat region to all pixels and image characteristics.
다양한 실시예에 따르면, 상기 프로세서는, 상기 중심 픽셀의 RGB값과 상기 주변 픽셀의 RGB값 차이를 계산하여 상기 중심 픽셀의 평탄한 정도를 계산하고, 상기 중심 픽셀의 평탄한 정도에 기초하여 상기 제1가중치 및 상기 제2가중치를 결정할 수 있다.According to various embodiments, the processor calculates a flatness of the central pixel by calculating a difference between an RGB value of the central pixel and an RGB value of the peripheral pixels, and calculates the flatness of the central pixel, and determines the first weight value based on the flatness of the central pixel. and the second weight value may be determined.
도 5는 다양한 실시예에 따른 영상 시인성 향상 방법의 흐름도이다.5 is a flowchart of a method for improving image visibility according to various embodiments.
다양한 실시예에 따르면, 전자 장치는 제1영상을 디스플레이(예: 도 3의 디스플레이(320))에 표시하고 재생할 수 있다. 전자 장치는 메모리(예: 도 3의 메모리(330))에 저장되어 있는 제1영상을 재생하거나 외부 장치로부터 수신한 제1영상을 재생할 수 있다. 전자 장치는 제1영상의 데이터에 기초하여 디스플레이의 각 픽셀에 RGB값을 할당할 수 있다. RGB값은 R(red)데이터, G(green)데이터 및 B(blue)데이터를 포함할 수 있다. R데이터, G데이터 및 B데이터는 정해진 범위(예: 0~255)를 갖는 각 색깔의 계조에 대한 정보를 포함할 수 있다.According to various embodiments, the electronic device may display and reproduce the first image on a display (eg, the
다양한 실시예에 따르면, 동작 502에서, 전자 장치는 제1영상을 지역 대비 강화(local contrast enhancement)한 제2영상을 생성할 수 있다. 전자 장치는 제1픽셀 및 주위 픽셀의 RGB값을 확인하고, 주위 픽셀의 RGB값이 제1픽셀의 RGB값보다 높은 경우에는 제1픽셀의 RGB값을 유지하고, 주위 픽셀의 RGB값이 제1픽셀의 RGB값보다 낮은 경우에는 제1픽셀의 RGB값을 높여 국부적으로 대비를 높일 수 있다. 일 실시예에 따르면, 전자 장치는 지역 대비 강화 알고리즘을 모든 픽셀에 대하여 수행하여 이미지의 전체적인 대비를 증가시킬 수 있다. 일 실시예에 따르면, 전자 장치는 전체 영역에서 RGB값이 상대적으로 낮은 부분에 대하여 지역 대비 강화를 수행할 수 있다.According to various embodiments, in
다양한 실시예에 따르면, 동작 504에서, 전자 장치는 중심 픽셀과 적어도 하나의 주변 픽셀을 포함하는 적어도 하나의 블록을 결정할 수 있다. 일 실시예에 따르면, 전자 장치는 블록의 형태를 다양하게 결정할 수 있다. 예를 들어 전자 장치가 생성한 블록은 중심 픽셀과 같은 행에 위치하는 픽셀만 포함할 수도 있고, 중심 픽셀과 같은 열에 위치하는 픽셀만 포함할 수도 있다. 다른 실시예에 따르면, 전자 장치는 중심 픽셀로부터 소정 거리 내에 위치하는 적어도 하나의 픽셀을 포함하는 영역으로 이루어진 블록을 생성할 수도 있다. 즉, 전자 장치는 하나의 픽셀을 중심으로 원형, 사각형, 삼각형과 같은 형태를 갖는 블록을 생성할 수도 있다.According to various embodiments, in
다양한 실시예에 따르면, 전자 장치는 픽셀이 평탄 영역에 속하는지 여부를 결정하기 위하여 임계치를 결정할 수 있다. 전자 장치는 이미지의 대비를 향상시키면서 이미지 왜곡 현상도 개선할 수 있는 임계치를 결정할 수 있다. 즉, 임계치가 너무 높으면 평탄 영역에 속하는 픽셀이 많아져서 지역 대비 강화 효과가 떨어질 수 있고, 임계치가 너무 낮으면 평탄 영역에 속하는 픽셀이 적어져서 이미지 왜곡을 개선할 수 없는 문제가 발생할 수 있다. 따라서 전자 장치는 적절한 값을 선택하여 임계치를 결정할 수 있다.According to various embodiments, the electronic device may determine a threshold to determine whether a pixel belongs to a flat region. The electronic device may determine a threshold value capable of improving image distortion while improving image contrast. That is, if the threshold is too high, the number of pixels belonging to the flat region increases, and the area contrast enhancement effect may deteriorate. If the threshold is too low, the number of pixels belonging to the flat region decreases, and image distortion may not be improved. Therefore, the electronic device can determine the threshold by selecting an appropriate value.
다양한 실시예에 따르면, 전자 장치는 적어도 하나의 픽셀에 대한 RGB값을 획득할 수 있다. 전자 장치는 제1영상의 데이터를 확인하고, 디스플레이를 구성하는 적어도 하나의 픽셀에 프레임마다 다른 RGB값을 할당할 수 있다. 전자 장치는 중심 픽셀이 평탄 영역에 속하는지 여부를 판단하기 위하여 중심 픽셀의 RGB값 및 주변 픽셀의 RGB값을 획득할 수 있다.According to various embodiments, an electronic device may acquire RGB values of at least one pixel. The electronic device may check the data of the first image and allocate a different RGB value for each frame to at least one pixel constituting the display. The electronic device may acquire RGB values of the central pixel and RGB values of neighboring pixels in order to determine whether the central pixel belongs to the flat area.
다양한 실시예에 따르면, 동작 506에서, 전자 장치는 다양한 방식으로 각 픽셀이 평탄 영역에 포함되는지 여부를 결정할 수 있다. 예를 들어, 전자 장치는 제1블록에서 중심 픽셀의 RGB값과 주변 픽셀의 RGB값의 차이가 임계치 미만인 경우 중심 픽셀이 평탄 영역에 포함되는 것으로 결정할 수 있다. 반대로, 중심 픽셀의 RGB값과 주변 픽셀의 RGB값의 차이가 임계치 이상인 경우 전자 장치는 중심 픽셀이 평탄 영역에 포함되지 않는 것으로 결정할 수 있다. 같은 방식으로, 전자 장치는 디스플레이에 포함된 모든 픽셀에 대하여 평탄 영역에 포함되는지 여부를 결정할 수 있다.According to various embodiments, in
다른 실시예에 따르면, 전자 장치는 한 블록에서 주변 픽셀들 중 임계치를 넘는 픽셀이 하나라도 있는 경우 중심 픽셀이 평탄 영역에 속하지 않는 것으로 결정할 수 있다.According to another embodiment, the electronic device may determine that the center pixel does not belong to the flat region when there is at least one pixel exceeding a threshold among neighboring pixels in one block.
다른 실시예에 따르면, 전자 장치는 한 블록의 전체 픽셀에서 주변 픽셀 중 임계치를 넘는 픽셀이 차지하는 비율에 기초하여 중심 픽셀의 평탄 영역 여부를 결정할 수 있다. 예를 들어, 전자 장치는 블록의 전체 픽셀에서 임계치를 넘는 주변 픽셀의 비율이 제1비율을 넘지 않는 경우에만 중심 픽셀을 평탄 영역이 아닌 것으로 결정할 수 있다.다른 실시예에 따르면, 전자 장치는 한 블록의 주변 픽셀의 RGB값의 평균값을 계산하고, 이 평균값과 중심 픽셀의 RGB값의 차이값에 기초하여 평탄 영역 여부를 결정할 수 있다. 예를 들어, 주변 픽셀의 RGB값의 평균값과 중심 픽셀의 RGB값의 차이가 기준값 미만인 경우, 전자 장치는 중심 픽셀을 평탄 영역에 속하는 것으로 결정할 수 있다.According to another embodiment, the electronic device may determine whether the center pixel is a flat region based on a ratio of pixels exceeding a threshold value among neighboring pixels in all pixels of a block. For example, the electronic device may determine that the center pixel is not a flat area only when the ratio of all pixels in the block to the neighboring pixels exceeding the threshold does not exceed the first ratio. According to another embodiment, the electronic device may The average value of the RGB values of pixels around the block is calculated, and whether or not the block is a flat area can be determined based on the difference between the average value and the RGB value of the central pixel. For example, when the difference between the average RGB value of the peripheral pixels and the RGB value of the center pixel is less than the reference value, the electronic device may determine that the center pixel belongs to the flat area.
다른 실시예에 따르면, 동작 506에서, 전자 장치는 픽셀의 평탄한 정도(flatness)를 계산할 수 있다. 전자 장치는 블록 내에서 중심 픽셀의 RGB값과 주변 픽셀의 RGB값 차이에 기초하여 평탄한 정도를 계산할 수 있다. 전자 장치는 각 픽셀에서 중심 픽셀 RGB값과 주변 픽셀 RGB값의 차이에 기초하여 정해진 범위(예: 0~1) 내의 값으로 평탄한 정도를 나타낼 수 있다.According to another embodiment, in
일 실시예에 따르면, 전자 장치는 제1블록에 속하는 전체 픽셀 중에서 임계치를 넘는 주변 픽셀의 비율에 기초하여 중심 픽셀의 평탄도를 계산할 수 있다. 예를 들어, 제1블록의 전체 픽셀 중에서 임계치를 넘는 주변 픽셀이 차지하는 비율이 50%인 경우, 전자 장치는 제1블록의 중심 픽셀의 평탄도를 0.5로 결정할 수 있다.According to an embodiment, the electronic device may calculate the flatness of the central pixel based on a ratio of peripheral pixels exceeding a threshold among all pixels belonging to the first block. For example, when the ratio of all pixels of the first block to the neighboring pixels exceeding the threshold is 50%, the electronic device may determine the flatness of the center pixel of the first block as 0.5.
다양한 실시예에 따르면, 동작 508에서, 전자 장치는 제1가중치 및 제2가중치를 결정할 수 있다. 일 실시예에 따르면, 전자 장치는 전체 픽셀에서 평탄 영역에 포함되는 픽셀이 차지하는 비율에 기초하여 가중치를 결정할 수 있다. 전자 장치는 제1가중치 및 제2가중치를 0부터 1 사이의 수 중 하나로 각각 결정할 수 있다. 예를 들어, 전자 장치는 제1가중치와 제2가중치를 더하면 1이 되도록 제1가중치를 계산할 수 있다.According to various embodiments, in
다양한 실시예에 따르면, 전자 장치는 계산한 픽셀의 평탄도에 기초하여 제1가중치 및 제2가중치를 결정할 수 있다. 평탄도가 낮을수록 중심 픽셀의 RGB값과 주변 픽셀의 RGB값의 차이가 크고, 평탄도가 높을수록 중심 픽셀의 RGB값과 주변 픽셀의 RGB값의 차이가 작을 수 있다. 전자 장치는 평탄도가 높은 픽셀에 대해서는 이미지 왜곡을 줄이기 위하여 제1가중치를 높게 결정할 수 있고, 평탄도가 낮은 픽셀에 대해서는 시인성 향상을 위하여 제2가중치를 높게 결정할 수 있다.According to various embodiments, the electronic device may determine the first weight and the second weight based on the calculated flatness of the pixel. The lower the flatness, the larger the difference between the RGB values of the central pixel and the RGB values of the surrounding pixels, and the higher the flatness, the smaller the difference between the RGB values of the central pixel and the surrounding pixels. The electronic device may determine a high first weight for pixels with high flatness to reduce image distortion, and may set a high second weight for pixels with low flatness to improve visibility.
다양한 실시예에 따르면, 동작 510에서, 전자 장치는 제1영상과 제2영상을 조합하여 제3영상을 생성할 수 있다. 일 실시예에 따르면, 전자 장치는 계산한 제1가중치 및 제2가중치에 기초하여 제1영상 및 제2영상을 조합할 수 있다. 전자 장치는 정해진 프레임에 대하여, 제1영상에서 제1픽셀의 RGB값과 제2영상에서 제1픽셀의 RGB값을 확인하여 제3영상에서 제1픽셀에 대한 RGB값을 결정할 수 있다. 같은 방식으로, 전자 장치는 제3영상의 모든 픽셀에 대한 RGB값을 결정할 수 있다.According to various embodiments, in
다양한 실시예에 따른 지역 대비 강화를 이용한 영상 보정 방법은, 제1영상을 지역 대비 강화한 제2영상을 생성하는 동작, 상기 제1영상의 적어도 하나의 프레임에서, 적어도 하나의 픽셀의 RGB값을 획득하는 동작, 중심 픽셀 및 상기 중심 픽셀로부터 소정 거리 내에 위치하는 적어도 하나의 주변 픽셀을 포함하는 적어도 하나의 블록에서, 상기 중심 픽셀의 RGB값과 적어도 하나의 상기 주변 픽셀의 RGB값의 차이를 계산하는 동작, 상기 RGB값 차이에 기초하여 상기 중심 픽셀이 평탄 영역에 속하는지 여부를 결정하는 동작, 전체 픽셀에서 상기 평탄 영역에 속하는 픽셀의 비율에 기초하여 상기 제1영상에 대한 제1가중치 및 상기 제2영상에 대한 제2가중치를 결정하는 동작, 및 상기 제1영상을 제1가중치만큼 반영하고 상기 제2영상을 제2가중치만큼 반영한 제3영상을 생성하는 동작을 포함할 수 있다.An image correction method using regional contrast enhancement according to various embodiments includes an operation of generating a second image obtained by enhancing a first image by regional contrast enhancement, and acquiring an RGB value of at least one pixel in at least one frame of the first image. In at least one block including a central pixel and at least one neighboring pixel located within a predetermined distance from the central pixel, calculating the difference between the RGB value of the central pixel and the RGB value of at least one neighboring pixel An operation of determining whether the center pixel belongs to the flat area based on the RGB value difference, a first weight value for the first image and the first weight value of the first image based on a ratio of pixels belonging to the flat area to all pixels. An operation of determining a second weight for the two images, and an operation of generating a third image by reflecting the first image by the first weight and reflecting the second image by the second weight.
다양한 실시예에 따르면, 상기 중심 픽셀이 평탄 영역에 속하는지 여부를 결정하는 동작은, 상기 중심 픽셀의 RGB값과 적어도 하나의 상기 주변 픽셀의 RGB값의 차이에 대한 임계값을 결정하는 동작, 상기 RGB값 차이가 상기 임계값 이하면 상기 중심 픽셀이 평탄 영역에 속하는 것으로 결정하는 동작, 및 상기 RGB값 차이가 상기 임계값을 초과하면 상기 중심 픽셀이 평탄 영역에 속하지 않는 것으로 결정하는 동작을 포함할 수 있다.According to various embodiments, the determining whether the central pixel belongs to the flat region may include determining a threshold value for a difference between an RGB value of the central pixel and an RGB value of at least one neighboring pixel; and determining that the central pixel belongs to the flat region when the RGB value difference is less than or equal to the threshold value, and determining that the central pixel does not belong to the flat region when the RGB value difference exceeds the threshold value. can
다양한 실시예에 따르면, 상기 RGB값 차이에 기초하여 적어도 하나의 픽셀의 평탄도(flatness)를 계산하는 동작을 더 포함할 수 있다.According to various embodiments, an operation of calculating a flatness of at least one pixel based on the RGB value difference may be further included.
다양한 실시예에 따르면, 상기 중심 픽셀로부터 상기 소정 거리 내에 위치하는 적어도 하나의 픽셀을 포함하거나, 상기 중심 픽셀과 같은 행에 위치하는 적어도 하나의 픽셀만 포함하거나, 또는 같은 열에 위치한 적어도 하나의 픽셀만 포함하는 블록을 생성하는 동작을 더 포함할 수 있다.According to various embodiments, at least one pixel positioned within the predetermined distance from the center pixel is included, at least one pixel positioned in the same row as the center pixel, or at least one pixel positioned in the same column as the center pixel is included. An operation of generating a block including the block may be further included.
다양한 실시예에 따르면, 상기 블록을 생성하기 위한 상기 소정 거리를 결정하는 동작을 더 포함할 수 있다.According to various embodiments, an operation of determining the predetermined distance for generating the block may be further included.
다양한 실시예에 따르면, 상기 제1가중치 및 상기 제2가중치를 결정하는 동작은, 전체 픽셀 중에서 상기 평탄 영역에 속하는 픽셀이 차지하는 비율에 비례하여 상기 제1가중치 및 상기 제2가중치를 결정하는 동작을 포함할 수 있다.According to various embodiments, the determining of the first weight and the second weight may include determining the first weight and the second weight in proportion to a ratio occupied by pixels belonging to the flat region among all pixels. can include
다양한 실시예에 따르면, 상기 제1가중치 및 상기 제2가중치를 결정하는 동작은, 전체 픽셀에서 상기 평탄 영역에 속하는 픽셀이 차지하는 비율 및 영상 특성에 기초하여 제1가중치 및 제2가중치를 결정하는 동작을 포함할 수 있다.According to various embodiments, the determining of the first weight and the second weight may include determining the first weight and the second weight based on a ratio of pixels belonging to the flat region to all pixels and image characteristics. can include
다양한 실시예에 따르면, 상기 제1가중치 및 상기 제2가중치를 결정하는 동작은, 상기 중심 픽셀의 RGB값과 상기 주변 픽셀의 RGB값 차이를 계산하여 상기 중심 픽셀의 평탄한 정도를 계산하는 동작, 및 상기 중심 픽셀의 평탄한 정도에 기초하여 상기 제1가중치 및 상기 제2가중치를 결정하는 동작을 포함할 수 있다.According to various embodiments, the determining of the first weight and the second weight may include calculating a flatness of the center pixel by calculating a difference between RGB values of the central pixel and RGB values of the peripheral pixels; and and determining the first weight and the second weight based on the flatness of the central pixel.
Claims (16)
적어도 하나의 픽셀을 포함하는 디스플레이;
메모리; 및
상기 디스플레이 및 상기 메모리와 작동적으로(operatively) 연결되는 프로세서를 포함하고,
상기 프로세서는,
제1영상을 지역 대비 강화(local contrast enhancement)한 제2영상을 생성하고,
상기 제1영상의 적어도 하나의 프레임에서, 적어도 하나의 픽셀의 RGB값을 획득하고,
중심 픽셀 및 상기 중심 픽셀로부터 소정 거리 내에 위치하는 적어도 하나의 주변 픽셀을 포함하는 적어도 하나의 블록에서, 상기 중심 픽셀의 RGB값과 적어도 하나의 상기 주변 픽셀의 RGB값의 차이를 계산하고,
상기 RGB값 차이에 기초하여 상기 중심 픽셀이 평탄 영역에 속하는지 여부를 결정하고,
전체 픽셀에서 상기 평탄 영역에 속하는 픽셀의 비율에 기초하여 상기 제1영상에 대한 제1가중치 및 상기 제2영상에 대한 제2가중치를 결정하고,
상기 제1영상을 제1가중치만큼 반영하고 상기 제2영상을 제2가중치만큼 반영한 제3영상을 생성하도록 설정된 전자 장치.
In electronic devices,
a display comprising at least one pixel;
Memory; and
a processor operatively connected with the display and the memory;
the processor,
generating a second image obtained by performing local contrast enhancement on the first image;
obtaining RGB values of at least one pixel in at least one frame of the first image;
In at least one block including a central pixel and at least one neighboring pixel located within a predetermined distance from the central pixel, calculating a difference between an RGB value of the central pixel and an RGB value of at least one neighboring pixel;
determining whether the center pixel belongs to a flat area based on the RGB value difference;
determining a first weight for the first image and a second weight for the second image based on a ratio of pixels belonging to the flat region to all pixels;
The electronic device configured to generate a third image by reflecting the first image by a first weight and by reflecting the second image by a second weight.
상기 프로세서는,
상기 중심 픽셀의 RGB값과 적어도 하나의 상기 주변 픽셀의 RGB값의 차이에 대한 임계값을 결정하고,
상기 RGB값 차이가 상기 임계값 이하면 상기 중심 픽셀이 평탄 영역에 속하는 것으로 결정하고,
상기 RGB값 차이가 상기 임계값을 초과하면 상기 중심 픽셀이 평탄 영역에 속하지 않는 것으로 결정하도록 설정된 전자 장치.
According to claim 1,
the processor,
determining a threshold value for a difference between an RGB value of the central pixel and an RGB value of at least one peripheral pixel;
If the RGB value difference is less than or equal to the threshold value, it is determined that the center pixel belongs to a flat area;
The electronic device configured to determine that the central pixel does not belong to a flat region when the RGB value difference exceeds the threshold value.
상기 프로세서는,
상기 RGB값 차이에 기초하여 적어도 하나의 픽셀의 평탄도(flatness)를 계산하도록 설정된 전자 장치.
According to claim 1,
the processor,
An electronic device configured to calculate flatness of at least one pixel based on the RGB value difference.
상기 디스플레이는 적어도 하나의 픽셀로 이루어진 행과 열을 포함하며,
상기 프로세서는,
상기 중심 픽셀로부터 상기 소정 거리 내에 위치하는 적어도 하나의 픽셀을 포함하거나, 상기 중심 픽셀과 같은 행에 위치하는 적어도 하나의 픽셀만 포함하거나, 또는 같은 열에 위치한 적어도 하나의 픽셀만 포함하는 블록을 생성하도록 설정된 전자 장치.
According to claim 1,
The display includes rows and columns of at least one pixel;
the processor,
To generate a block including at least one pixel located within the predetermined distance from the center pixel, including only at least one pixel located in the same row as the center pixel, or including only at least one pixel located in the same column as the center pixel set electronics.
상기 프로세서는,
상기 블록을 생성하기 위한 상기 소정 거리를 결정하도록 설정된 전자 장치.
According to claim 1,
the processor,
An electronic device configured to determine the predetermined distance for generating the block.
상기 프로세서는,
전체 픽셀 중에서 상기 평탄 영역에 속하는 픽셀이 차지하는 비율에 비례하여 상기 제1가중치 및 상기 제2가중치를 결정하도록 설정된 전자 장치.
According to claim 1,
the processor,
The electronic device configured to determine the first weight and the second weight in proportion to a ratio occupied by pixels belonging to the flat region among all pixels.
상기 프로세서는,
전체 픽셀에서 상기 평탄 영역에 속하는 픽셀이 차지하는 비율 및 영상 특성에 기초하여 제1가중치 및 제2가중치를 결정하도록 설정된 전자 장치.
According to claim 1,
the processor,
An electronic device configured to determine a first weight and a second weight based on a ratio of pixels belonging to the flat region to all pixels and image characteristics.
상기 프로세서는,
상기 중심 픽셀의 RGB값과 상기 주변 픽셀의 RGB값 차이를 계산하여 상기 중심 픽셀의 평탄한 정도를 계산하고,
상기 중심 픽셀의 평탄한 정도에 기초하여 상기 제1가중치 및 상기 제2가중치를 결정하도록 설정된 전자 장치.
According to claim 1,
the processor,
Calculate a degree of flatness of the center pixel by calculating a difference between the RGB values of the center pixel and the RGB values of the surrounding pixels;
The electronic device configured to determine the first weight and the second weight based on the degree of flatness of the central pixel.
제1영상을 지역 대비 강화한 제2영상을 생성하는 동작,
상기 제1영상의 적어도 하나의 프레임에서, 적어도 하나의 픽셀의 RGB값을 획득하는 동작,
중심 픽셀 및 상기 중심 픽셀로부터 소정 거리 내에 위치하는 적어도 하나의 주변 픽셀을 포함하는 적어도 하나의 블록에서, 상기 중심 픽셀의 RGB값과 적어도 하나의 상기 주변 픽셀의 RGB값의 차이를 계산하는 동작,
상기 RGB값 차이에 기초하여 상기 중심 픽셀이 평탄 영역에 속하는지 여부를 결정하는 동작,
전체 픽셀에서 상기 평탄 영역에 속하는 픽셀의 비율에 기초하여 상기 제1영상에 대한 제1가중치 및 상기 제2영상에 대한 제2가중치를 결정하는 동작, 및
상기 제1영상을 제1가중치만큼 반영하고 상기 제2영상을 제2가중치만큼 반영한 제3영상을 생성하는 동작을 포함하는 방법.
In the image correction method using regional contrast enhancement,
An operation of generating a second image by enhancing the first image compared to the region;
obtaining an RGB value of at least one pixel in at least one frame of the first image;
Calculating a difference between an RGB value of the central pixel and an RGB value of at least one neighboring pixel in at least one block including a central pixel and at least one neighboring pixel located within a predetermined distance from the central pixel;
determining whether the center pixel belongs to a flat area based on the RGB value difference;
determining a first weight for the first image and a second weight for the second image based on a ratio of pixels belonging to the flat region to all pixels; and
and generating a third image by reflecting the first image by a first weight and by reflecting the second image by a second weight.
상기 중심 픽셀이 평탄 영역에 속하는지 여부를 결정하는 동작은,
상기 중심 픽셀의 RGB값과 적어도 하나의 상기 주변 픽셀의 RGB값의 차이에 대한 임계값을 결정하는 동작,
상기 RGB값 차이가 상기 임계값 이하면 상기 중심 픽셀이 평탄 영역에 속하는 것으로 결정하는 동작, 및
상기 RGB값 차이가 상기 임계값을 초과하면 상기 중심 픽셀이 평탄 영역에 속하지 않는 것으로 결정하는 동작을 포함하는 방법.
According to claim 9,
The operation of determining whether the center pixel belongs to the flat region,
determining a threshold for a difference between an RGB value of the central pixel and an RGB value of at least one neighboring pixel;
determining that the center pixel belongs to a flat region when the RGB value difference is less than or equal to the threshold value; and
and determining that the center pixel does not belong to a flat region when the RGB value difference exceeds the threshold value.
상기 RGB값 차이에 기초하여 적어도 하나의 픽셀의 평탄도(flatness)를 계산하는 동작을 더 포함하는 방법.
According to claim 9,
The method further comprising calculating a flatness of at least one pixel based on the RGB value difference.
상기 중심 픽셀로부터 상기 소정 거리 내에 위치하는 적어도 하나의 픽셀을 포함하거나, 상기 중심 픽셀과 같은 행에 위치하는 적어도 하나의 픽셀만 포함하거나, 또는 같은 열에 위치한 적어도 하나의 픽셀만 포함하는 블록을 생성하는 동작을 더 포함하는 방법.
According to claim 9,
Generating a block including at least one pixel located within the predetermined distance from the center pixel, including only at least one pixel located in the same row as the center pixel, or including only at least one pixel located in the same column How to include more action.
상기 블록을 생성하기 위한 상기 소정 거리를 결정하는 동작을 더 포함하는 방법.
According to claim 9,
The method further comprising determining the predetermined distance for generating the block.
상기 제1가중치 및 상기 제2가중치를 결정하는 동작은,
전체 픽셀 중에서 상기 평탄 영역에 속하는 픽셀이 차지하는 비율에 비례하여 상기 제1가중치 및 상기 제2가중치를 결정하는 동작을 포함하는 방법.
According to claim 9,
The operation of determining the first weight and the second weight,
and determining the first weight and the second weight in proportion to a ratio occupied by pixels belonging to the flat region among all pixels.
상기 제1가중치 및 상기 제2가중치를 결정하는 동작은,
전체 픽셀에서 상기 평탄 영역에 속하는 픽셀이 차지하는 비율 및 영상 특성에 기초하여 제1가중치 및 제2가중치를 결정하는 동작을 포함하는 방법.
According to claim 9,
The operation of determining the first weight and the second weight,
and determining a first weight and a second weight based on a ratio of pixels belonging to the flat region to all pixels and image characteristics.
상기 제1가중치 및 상기 제2가중치를 결정하는 동작은,
상기 중심 픽셀의 RGB값과 상기 주변 픽셀의 RGB값 차이를 계산하여 상기 중심 픽셀의 평탄한 정도를 계산하는 동작, 및
상기 중심 픽셀의 평탄한 정도에 기초하여 상기 제1가중치 및 상기 제2가중치를 결정하는 동작을 포함하는 방법.According to claim 9,
The operation of determining the first weight and the second weight,
Calculating a degree of flatness of the central pixel by calculating a difference between the RGB values of the central pixel and the RGB values of the surrounding pixels; and
and determining the first weight and the second weight based on the flatness of the central pixel.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1020210058420A KR20220151324A (en) | 2021-05-06 | 2021-05-06 | Electronic device to improve the visibility of video using local contrast enhancement and the method thereof |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1020210058420A KR20220151324A (en) | 2021-05-06 | 2021-05-06 | Electronic device to improve the visibility of video using local contrast enhancement and the method thereof |
Publications (1)
Publication Number | Publication Date |
---|---|
KR20220151324A true KR20220151324A (en) | 2022-11-15 |
Family
ID=84042088
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
KR1020210058420A KR20220151324A (en) | 2021-05-06 | 2021-05-06 | Electronic device to improve the visibility of video using local contrast enhancement and the method thereof |
Country Status (1)
Country | Link |
---|---|
KR (1) | KR20220151324A (en) |
-
2021
- 2021-05-06 KR KR1020210058420A patent/KR20220151324A/en active Search and Examination
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20230152957A1 (en) | Electronic device comprising display, and method for controlling display thereof | |
US11842670B2 (en) | Electronic device for dynamically adjusting refresh rate of display | |
US11893956B2 (en) | Electronic device comprising display and operation method thereof | |
US11749173B2 (en) | Electronic device configured to quickly update screen upon receiving input from peripheral device | |
KR20220151324A (en) | Electronic device to improve the visibility of video using local contrast enhancement and the method thereof | |
KR20220070912A (en) | Method for providing image and electronic device for supporting the same | |
KR20220001314A (en) | Electronic device including display device with variable refresh rate and method for operating thereof | |
KR20220113064A (en) | An electronic device and a method controlling the same | |
US20240021128A1 (en) | Method for driving display at multiple driving frequencies and electronic device performing same | |
US20230260439A1 (en) | Method, electronic device, and storage medium for controlling optical sensor on basis of tensile information of stretchable display | |
US11955074B2 (en) | Electronic device and method for calibrating image data in electronic device | |
US20230335037A1 (en) | Method for controlling refresh rate, and electronic device supporting same | |
US20240040265A1 (en) | Electronic device including camera and operation method of electronic device | |
KR20240067194A (en) | Electronic device, method, and non-transitory computer readable storage device changing driving frequency | |
KR20230168560A (en) | Method for controlling display and electronic device supporting the same | |
US20240105142A1 (en) | Electronic device, method, and non-transitory computer readable storage medium identifying brightness level according to on pixel ratio | |
EP4366290A1 (en) | Electronic device comprising camera, and operation method thereof | |
EP4318457A1 (en) | Electronic device comprising flexible display, and operation method therefor | |
KR20220170609A (en) | Electronic device, method, and computer readable storage medium for reducing afterimage in display area | |
KR20240039549A (en) | Electronic device and method for excluding broken area of display | |
KR20230007144A (en) | Electronic device and method for changing gamma according to refresh rate | |
KR20240043039A (en) | Electronic device, mehtod, and non-transitory computer readable storage medium identifying brightness level according to on pixel ratio | |
KR20240054828A (en) | Electronic device including display and method for controlling thereof | |
KR20220170610A (en) | Electronic device for controlling different display areas based on different emission signals and method thereof | |
KR20230018957A (en) | An electronic device for improving image quality deterioration due to diffraction and control method thereof |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A201 | Request for examination |