KR20210078656A - Method for providing white balance and electronic device for supporting the same - Google Patents

Method for providing white balance and electronic device for supporting the same Download PDF

Info

Publication number
KR20210078656A
KR20210078656A KR1020190170310A KR20190170310A KR20210078656A KR 20210078656 A KR20210078656 A KR 20210078656A KR 1020190170310 A KR1020190170310 A KR 1020190170310A KR 20190170310 A KR20190170310 A KR 20190170310A KR 20210078656 A KR20210078656 A KR 20210078656A
Authority
KR
South Korea
Prior art keywords
white balance
balance gain
delta
image
color temperature
Prior art date
Application number
KR1020190170310A
Other languages
Korean (ko)
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 삼성전자주식회사
Priority to KR1020190170310A priority Critical patent/KR20210078656A/en
Priority to PCT/KR2020/017656 priority patent/WO2021125645A1/en
Publication of KR20210078656A publication Critical patent/KR20210078656A/en

Links

Images

Classifications

    • H04N9/735
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/80Camera processing pipelines; Components thereof
    • H04N23/84Camera processing pipelines; Components thereof for processing colour signals
    • H04N23/88Camera processing pipelines; Components thereof for processing colour signals for colour balance, e.g. white-balance circuits or colour temperature control
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/62Control of parameters via user interfaces
    • H04N5/23216

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Color Television Image Signal Generators (AREA)

Abstract

The present invention relates to a method for providing white balance to provide a reliable image and an electronic device supporting the same. According to various embodiments of the present invention, the electronic device comprises an image sensor, a processor operatively coupled to the image sensor, a processor coupled to the processor, and a memory connected to the processor and storing a table including white balance gains for a plurality of color temperatures and a plurality of delta UVs. The memory stores instructions allowing the processor, during execution, to acquire a first image through the image sensor; determine a first white balance gain on the basis of the first image; determine at least one delta UV related to the first white balance gain on the basis of the table and the first white balance gain; check a first color temperature input from a user; determine a second white balance gain on the basis of the table, the first color temperature, and the at least one delta UV; and acquire a second image by applying the second white balance gain to the first image.

Description

화이트 밸런스를 제공하는 방법 및 이를 지원하는 전자 장치{METHOD FOR PROVIDING WHITE BALANCE AND ELECTRONIC DEVICE FOR SUPPORTING THE SAME}METHOD FOR PROVIDING WHITE BALANCE AND ELECTRONIC DEVICE FOR SUPPORTING THE SAME

본 발명의 다양한 실시예들은, 화이트 밸런스를 제공하는 방법 및 이를 지원하는 전자 장치에 관한 것이다.Various embodiments of the present disclosure relate to a method of providing a white balance and an electronic device supporting the same.

사람은 광원에 순응하여 피사체의 화이트를 화이트로 인지하는 칼라 항상성(color constancy)를 가진다. 예를 들어, 사람은 광원(예: 백색 램프, 형광 조명등, 태양광 등)의 종류와 무관하게 화이트를 화이트로 인지할 수 있다. Humans have color constancy in which the white of the subject is perceived as white in response to the light source. For example, a person may perceive white as white regardless of the type of light source (eg, a white lamp, a fluorescent lamp, sunlight, etc.).

반면, 전자 장치(예: 디지털 카메라)는, 광원의 색 온도(color temperature)에 따라 동일한 피사체에 대하여 다른 색을 가지는 이미지를 획득할 수 있다. 전자 장치는 광원의 색 온도에 의해 야기되는 색의 차이를 보상하기 위하여 화이트 밸런스 기능을 제공하고 있다. 예를 들어, 전자 장치는 자동적으로 화이트 밸런스를 설정(또는 조정)하거나 사용자에 의해 입력된 색 온도에 따라(또는 수동적으로) 화이트 밸런스를 설정하는 기능을 제공하고 있다.On the other hand, an electronic device (eg, a digital camera) may acquire images having different colors for the same subject according to a color temperature of a light source. The electronic device provides a white balance function to compensate for a color difference caused by a color temperature of a light source. For example, the electronic device provides a function of automatically setting (or adjusting) a white balance or setting a white balance according to a color temperature input by a user (or manually).

전자 장치는 광원의 색 온도에 기반하여 화이트 밸런스를 설정하고 있다. 예를 들어, 전자 장치는, 사용자에 의해 입력된 색 온도에 기반하여 화이트 밸런스를 설정하는 경우, 사용자에 의해 입력된 색 온도와 동일한 흑체 궤적(black body locus) 상의 색 온도(또는 광원의 상관 색 온도(CCT, correlated color temperature))에 대응하는 화이트 밸런스 게인(white balance gain)을 이용하고 있다.The electronic device sets the white balance based on the color temperature of the light source. For example, when the electronic device sets the white balance based on the color temperature input by the user, the color temperature (or the correlated color of the light source) on the same black body locus as the color temperature input by the user A white balance gain corresponding to a temperature (correlated color temperature (CCT)) is used.

전자 장치가 흑체 궤적 상의 색 온도만을 고려하여 화이트 밸런스를 설정하는 경우, 전자 장치가 획득한 이미지의 색이 틀어지는 문제가 발생할 수 있다. 이미지의 색이 틀어지는 문제를 해결하기 위하여, 전자 장치는, 이미지의 색을 조정(예: 미세 조정)하기 위한 사용자 입력이 필요할 수 있다. 전자 장치가 화이트 밸런스를 정확하게 설정하기 위해서는 광원의 색 온도 외에 (등온선) 색도 차(예: delta uv)에 대한 정보가 필요할 수 있다. 광원(예: 인공 조명)은, 예를 들면, 발광 물질 및/또는 방사 효율에 따라 다른 색 온도와 색도 차이(예: delta uv)를 가질 수 있다.When the electronic device sets the white balance in consideration of only the color temperature on the blackbody locus, a problem in which the color of an image acquired by the electronic device is distorted may occur. In order to solve the problem that the color of the image is distorted, the electronic device may need a user input for adjusting (eg, fine-tuning) the color of the image. In order for the electronic device to accurately set the white balance, information on (isothermal) chromaticity difference (eg, delta uv) may be required in addition to the color temperature of the light source. A light source (eg artificial light) may have a different color temperature and chromaticity difference (eg delta uv) depending on, for example, the luminescent material and/or radiation efficiency.

본 발명의 다양한 실시예들은, 색 온도, delta uv, 및/또는 화이트 밸런스 게인 간 상관 관계를 정의한 데이터(예: 테이블)에 기반하여 광원의 delta uv를 고려하여(또는 광원의 delta uv에 적응적으로) 화이트 밸런스를 설정할 수 있는, 화이트 밸런스를 제공하는 방법 및 이를 지원하기 위한 전자 장치에 관한 것이다. 또한, 다양한 실시예들은, 전자 장치에서의 화이트 밸런스를 제공하는 방법 및 전자 장치를 제공할 수 있다.Various embodiments of the present invention consider the delta uv of the light source (or adaptive to the delta uv of the light source) based on data (eg, a table) defining a correlation between color temperature, delta uv, and/or white balance gain. ), a method of providing a white balance capable of setting a white balance, and an electronic device supporting the same. Also, various embodiments may provide a method and an electronic device for providing white balance in an electronic device.

본 발명이 이루고자 하는 기술적 과제들은 이상에서 언급한 기술적 과제로 제한되지 않으며, 언급되지 않은 또 다른 기술적 과제들은 아래의 기재로부터 본 발명이 속하는 기술분야에서 통상의 지식을 가진 자에게 명확하게 이해될 수 있을 것이다.The technical problems to be achieved by the present invention are not limited to the technical problems mentioned above, and other technical problems not mentioned can be clearly understood by those of ordinary skill in the art to which the present invention belongs from the description below. There will be.

본 발명의 다양한 실시예들에 따른 전자 장치는, 이미지 센서, 상기 이미지 센서와 기능적으로 연결된 프로세서, 및 상기 프로세서와 연결되고, 복수의 색 온도들(color temperatures) 및 복수의 delta uv들에 대한 화이트 밸런스(white balance) 게인들(gains)을 포함하는 테이블(table)을 저장한 메모리를 포함하고, 상기 메모리는, 실행 시, 상기 프로세서가, 상기 이미지 센서를 통하여 제 1 이미지를 획득하고, 상기 제 1 이미지에 기반하여 제 1 화이트 밸런스 게인을 결정하고, 상기 테이블 및 상기 제 1 화이트 밸런스 게인에 기반하여, 상기 제 1 화이트 밸런스 게인과 관련된 적어도 하나의 delta uv를 결정하고, 사용자로부터 입력된 제 1 색 온도를 확인하고, 상기 테이블, 상기 제 1 색 온도, 및 상기 적어도 하나의 delta uv에 기반하여, 제 2 화이트 밸런스 게인을 결정하고, 및 상기 제 1 이미지에 상기 제 2 화이트 밸런스 게인을 적용함으로써, 제 2 이미지를 획득하도록 하는 인스트럭션들을 저장할 수 있다.An electronic device according to various embodiments of the present disclosure includes an image sensor, a processor operatively connected to the image sensor, and a white color for a plurality of color temperatures and a plurality of delta uvs connected to the processor and a memory storing a table including white balance gains, wherein the memory, when executed, causes the processor to acquire a first image through the image sensor, and A first white balance gain is determined based on a first image, and at least one delta uv related to the first white balance gain is determined based on the table and the first white balance gain, and a first ascertaining a color temperature, determining a second white balance gain based on the table, the first color temperature, and the at least one delta uv, and applying the second white balance gain to the first image , instructions for obtaining the second image may be stored.

본 발명의 다양한 실시예들에 따른, 전자 장치에서 화이트 밸런스를 제공하는 방법은, 상기 전자 장치의 이미지 센서를 통하여 제 1 이미지를 획득하는 동작, 상기 제 1 이미지에 기반하여 제 1 화이트 밸런스 게인을 결정하는 동작, 복수의 색 온도들 및 복수의 delta uv들에 대한 화이트 밸런스 게인들을 포함하고 상기 전자 장치의 메모리에 저장된 테이블 및 상기 제 1 화이트 밸런스 게인에 기반하여, 상기 제 1 화이트 밸런스 게인과 관련된 적어도 하나의 delta uv를 결정하는 동작, 사용자로부터 입력된 제 1 색 온도를 확인하는 동작, 상기 테이블, 상기 제 1 색 온도, 및 상기 적어도 하나의 delta uv에 기반하여, 제 2 화이트 밸런스 게인을 결정하는 동작, 및 상기 제 1 이미지에 상기 제 2 화이트 밸런스 게인을 적용함으로써, 제 2 이미지를 획득하도록 하는 동작을 포함할 수 있다.According to various embodiments of the present disclosure, a method of providing a white balance in an electronic device includes: acquiring a first image through an image sensor of the electronic device; and calculating a first white balance gain based on the first image an operation of determining, including white balance gains for a plurality of color temperatures and a plurality of delta uvs, and related to the first white balance gain based on a table stored in the memory of the electronic device and the first white balance gain Determining at least one delta uv, determining a first color temperature input from a user, determining a second white balance gain based on the table, the first color temperature, and the at least one delta uv and obtaining a second image by applying the second white balance gain to the first image.

본 발명의 다양한 실시예들에 따른 전자 장치는, 카메라, 색 온도, 상기 색 온도와 관련된 delta uv, 및 복수의 화이트 밸런스 게인들을 저장하는 메모리, 및 상기 카메라 및 상기 메모리와 기능적으로 연결된 프로세서를 포함하고, 상기 프로세서는, 상기 카메라를 이용하여 제 1 이미지를 획득하고, 상기 제 1 이미지에 기반하여 제 1 화이트 밸런스 게인을 확인하고, 상기 카메라에 설정된 색 온도, 상기 delta uv, 상기 제 1 화이트 밸런스 게인, 및 상기 메모리에 저장된 복수의 화이트 밸런스 게인들에 기반하여, 제 2 화이트 밸런스 게인을 결정하고, 및 상기 제 1 이미지에 상기 제 2 화이트 밸런스 게인을 적용한 제 2 이미지를 생성하도록 설정될 수 있다.An electronic device according to various embodiments of the present disclosure includes a camera, a memory for storing a color temperature, a delta uv related to the color temperature, and a plurality of white balance gains, and a processor functionally connected to the camera and the memory and, the processor acquires a first image using the camera, identifies a first white balance gain based on the first image, and includes a color temperature set in the camera, the delta uv, and the first white balance. a second white balance gain may be determined based on the gain and a plurality of white balance gains stored in the memory, and a second image obtained by applying the second white balance gain to the first image may be generated. .

본 발명의 다양한 실시예에 따른 화이트 밸런스를 제공하는 방법 및 이를 지원하는 전자 장치는, 광원의 delta uv를 고려하여 화이트 밸런스를 설정함으로써, 보다 신뢰성 있는 이미지를 제공할 수 있다. 또한, 전자 장치는, 이미지의 색을 미세 조정하기 위한 사용자 입력 없이 화이트 밸런스를 제공할 수 있어, 전자 장치의 활용성을 향상시킬 수 있다.A method for providing a white balance according to various embodiments of the present disclosure and an electronic device supporting the same may provide a more reliable image by setting the white balance in consideration of the delta uv of a light source. In addition, the electronic device may provide white balance without a user input for finely adjusting the color of the image, thereby improving the usability of the electronic device.

도 1은, 다양한 실시예에 따른, 네트워크 환경 내의 전자 장치의 블럭도이다.
도 2는, 다양한 실시예들에 따른, 카메라 모듈의 블럭도이다.
도 3a 및 도 3b는, 다양한 실시예들에 따른, 화이트 밸런스를 제공하기 위한 데이터를 설명하기 위한 도면들이다.
도 4는, 다양한 실시예들에 따른, 화이트 밸런스를 제공하는 방법을 설명하기 위한 흐름도이다.
도 5a 및 도 5b는, 다양한 실시예들에 따른, 화이트 밸런스를 제공하는 방법을 설명하기 위한 예시도이다.
도 6은, 다양한 실시예들에 따른, 화이트 밸런스를 제공하는 방법을 설명하기 위한 흐름도이다.
도 7은, 다양한 실시예들에 따른, 이미지를 제공하는 방법을 설명하기 위한 흐름도이다.
도 8은, 다양한 실시예들에 따른, 화이트 밸런스를 제공하는 방법을 설명하기 위한 흐름도이다.
도 9는, 다양한 실시예들에 따른, 화이트 밸런스를 제공하는 방법을 설명하기 위한 예시도이다.
도 10은, 다양한 실시예들에 따른, 전자 장치와 기능적으로 연결된 카메라의 화이트 밸런스 모드에 따라 화이트 밸런스를 제공하는 방법을 설명하기 위한 예시도이다.
1 is a block diagram of an electronic device in a network environment, according to various embodiments of the present disclosure;
2 is a block diagram of a camera module according to various embodiments of the present disclosure;
3A and 3B are diagrams for explaining data for providing white balance, according to various embodiments.
4 is a flowchart illustrating a method of providing white balance, according to various embodiments.
5A and 5B are exemplary diagrams for explaining a method of providing a white balance, according to various embodiments.
6 is a flowchart illustrating a method of providing white balance, according to various embodiments.
7 is a flowchart illustrating a method of providing an image, according to various embodiments.
8 is a flowchart illustrating a method of providing white balance, according to various embodiments.
9 is an exemplary diagram for explaining a method of providing white balance, according to various embodiments.
10 is an exemplary diagram for explaining a method of providing a white balance according to a white balance mode of a camera functionally connected to an electronic device, according to various embodiments

도 1은, 다양한 실시예에 따른, 네트워크 환경(100) 내의 전자 장치(101)의 블럭도이다. 1 is a block diagram of an electronic device 101 in a network environment 100 according to various embodiments of the present disclosure.

도 1을 참조하면, 네트워크 환경(100)에서 전자 장치(101)는 제 1 네트워크(198)(예: 근거리 무선 통신 네트워크)를 통하여 전자 장치(102)와 통신하거나, 또는 제 2 네트워크(199)(예: 원거리 무선 통신 네트워크)를 통하여 전자 장치(104) 또는 서버(108)와 통신할 수 있다. 일 실시예에 따르면, 전자 장치(101)는 서버(108)를 통하여 전자 장치(104)와 통신할 수 있다. 일 실시예에 따르면, 전자 장치(101)는 프로세서(120), 메모리(130), 입력 장치(150), 음향 출력 장치(155), 표시 장치(160), 오디오 모듈(170), 센서 모듈(176), 인터페이스(177), 햅틱 모듈(179), 카메라 모듈(180), 전력 관리 모듈(188), 배터리(189), 통신 모듈(190), 가입자 식별 모듈(196), 또는 안테나 모듈(197)을 포함할 수 있다. 어떤 실시예에서는, 전자 장치(101)에는, 이 구성요소들 중 적어도 하나(예: 표시 장치(160) 또는 카메라 모듈(180))가 생략되거나, 하나 이상의 다른 구성 요소가 추가될 수 있다. 어떤 실시예에서는, 이 구성요소들 중 일부들은 하나의 통합된 회로로 구현될 수 있다. 예를 들면, 센서 모듈(176)(예: 지문 센서, 홍채 센서, 또는 조도 센서)은 표시 장치(160)(예: 디스플레이)에 임베디드된 채 구현될 수 있다.Referring to FIG. 1 , in a network environment 100 , an electronic device 101 communicates with an electronic device 102 through a first network 198 (eg, a short-range wireless communication network) or a second network 199 . It may communicate with the electronic device 104 or the server 108 through (eg, a long-distance wireless communication network). According to an embodiment, the electronic device 101 may communicate with the electronic device 104 through the server 108 . According to an embodiment, the electronic device 101 includes a processor 120 , a memory 130 , an input device 150 , a sound output device 155 , a display device 160 , an audio module 170 , and a sensor module ( 176 , interface 177 , haptic module 179 , camera module 180 , power management module 188 , battery 189 , communication module 190 , subscriber identification module 196 , or antenna module 197 . ) may be included. In some embodiments, at least one of these components (eg, the display device 160 or the camera module 180 ) may be omitted or one or more other components may be added to the electronic device 101 . In some embodiments, some of these components may be implemented as one integrated circuit. For example, the sensor module 176 (eg, a fingerprint sensor, an iris sensor, or an illuminance sensor) may be implemented while being embedded in the display device 160 (eg, a display).

프로세서(120)는, 예를 들면, 소프트웨어(예: 프로그램(140))를 실행하여 프로세서(120)에 연결된 전자 장치(101)의 적어도 하나의 다른 구성요소(예: 하드웨어 또는 소프트웨어 구성요소)을 제어할 수 있고, 다양한 데이터 처리 또는 연산을 수행할 수 있다. 일 실시예에 따르면, 데이터 처리 또는 연산의 적어도 일부로서, 프로세서(120)는 다른 구성요소(예: 센서 모듈(176) 또는 통신 모듈(190))로부터 수신된 명령 또는 데이터를 휘발성 메모리(132)에 로드하고, 휘발성 메모리(132)에 저장된 명령 또는 데이터를 처리하고, 결과 데이터를 비휘발성 메모리(134)에 저장할 수 있다. 일 실시예에 따르면, 프로세서(120)는 메인 프로세서(121)(예: 중앙 처리 장치 또는 어플리케이션 프로세서), 및 이와는 독립적으로 또는 함께 운영 가능한 보조 프로세서(123)(예: 그래픽 처리 장치, 이미지 시그널 프로세서, 센서 허브 프로세서, 또는 커뮤니케이션 프로세서)를 포함할 수 있다. 추가적으로 또는 대체적으로, 보조 프로세서(123)은 메인 프로세서(121)보다 저전력을 사용하거나, 또는 지정된 기능에 특화되도록 설정될 수 있다. 보조 프로세서(123)는 메인 프로세서(121)와 별개로, 또는 그 일부로서 구현될 수 있다.The processor 120, for example, executes software (eg, a program 140) to execute at least one other component (eg, a hardware or software component) of the electronic device 101 connected to the processor 120 . It can control and perform various data processing or operations. According to one embodiment, as at least part of data processing or operation, the processor 120 converts commands or data received from other components (eg, the sensor module 176 or the communication module 190 ) to the volatile memory 132 . may be loaded into the volatile memory 132 , process commands or data stored in the volatile memory 132 , and store the resulting data in the non-volatile memory 134 . According to an embodiment, the processor 120 includes a main processor 121 (eg, a central processing unit or an application processor), and a secondary processor 123 (eg, a graphic processing unit, an image signal processor) that can operate independently or together with the main processor , a sensor hub processor, or a communication processor). Additionally or alternatively, the auxiliary processor 123 may be configured to use less power than the main processor 121 or to be specialized for a designated function. The auxiliary processor 123 may be implemented separately from or as a part of the main processor 121 .

보조 프로세서(123)는, 예를 들면, 메인 프로세서(121)가 인액티브(예: 슬립) 상태에 있는 동안 메인 프로세서(121)를 대신하여, 또는 메인 프로세서(121)가 액티브(예: 어플리케이션 실행) 상태에 있는 동안 메인 프로세서(121)와 함께, 전자 장치(101)의 구성요소들 중 적어도 하나의 구성요소(예: 표시 장치(160), 센서 모듈(176), 또는 통신 모듈(190))와 관련된 기능 또는 상태들의 적어도 일부를 제어할 수 있다. 일 실시예에 따르면, 보조 프로세서(123)(예: 이미지 시그널 프로세서 또는 커뮤니케이션 프로세서)는 기능적으로 관련 있는 다른 구성 요소(예: 카메라 모듈(180) 또는 통신 모듈(190))의 일부로서 구현될 수 있다. The auxiliary processor 123 may be, for example, on behalf of the main processor 121 while the main processor 121 is in an inactive (eg, sleep) state, or when the main processor 121 is active (eg, executing an application). ), together with the main processor 121, at least one of the components of the electronic device 101 (eg, the display device 160, the sensor module 176, or the communication module 190) It is possible to control at least some of the related functions or states. According to an embodiment, the coprocessor 123 (eg, an image signal processor or a communication processor) may be implemented as part of another functionally related component (eg, the camera module 180 or the communication module 190). have.

메모리(130)는, 전자 장치(101)의 적어도 하나의 구성요소(예: 프로세서(120) 또는 센서모듈(176))에 의해 사용되는 다양한 데이터를 저장할 수 있다. 데이터는, 예를 들어, 소프트웨어(예: 프로그램(140)) 및, 이와 관련된 명령에 대한 입력 데이터 또는 출력 데이터를 포함할 수 있다. 메모리(130)는, 휘발성 메모리(132) 또는 비휘발성 메모리(134)를 포함할 수 있다. The memory 130 may store various data used by at least one component (eg, the processor 120 or the sensor module 176 ) of the electronic device 101 . The data may include, for example, input data or output data for software (eg, the program 140 ) and instructions related thereto. The memory 130 may include a volatile memory 132 or a non-volatile memory 134 .

프로그램(140)은 메모리(130)에 소프트웨어로서 저장될 수 있으며, 예를 들면, 운영 체제(142), 미들 웨어(144) 또는 어플리케이션(146)을 포함할 수 있다. The program 140 may be stored as software in the memory 130 , and may include, for example, an operating system 142 , middleware 144 , or an application 146 .

입력 장치(150)는, 전자 장치(101)의 구성요소(예: 프로세서(120))에 사용될 명령 또는 데이터를 전자 장치(101)의 외부(예: 사용자)로부터 수신할 수 있다. 입력 장치(150)은, 예를 들면, 마이크, 마우스, 키보드, 또는 디지털 펜(예:스타일러스 펜)을 포함할 수 있다. The input device 150 may receive a command or data to be used by a component (eg, the processor 120 ) of the electronic device 101 from the outside (eg, a user) of the electronic device 101 . The input device 150 may include, for example, a microphone, a mouse, a keyboard, or a digital pen (eg, a stylus pen).

음향 출력 장치(155)는 음향 신호를 전자 장치(101)의 외부로 출력할 수 있다. 음향 출력 장치(155)는, 예를 들면, 스피커 또는 리시버를 포함할 수 있다. 스피커는 멀티미디어 재생 또는 녹음 재생과 같이 일반적인 용도로 사용될 수 있고, 리시버는 착신 전화를 수신하기 위해 사용될 수 있다. 일 실시예에 따르면, 리시버는 스피커와 별개로, 또는 그 일부로서 구현될 수 있다.The sound output device 155 may output a sound signal to the outside of the electronic device 101 . The sound output device 155 may include, for example, a speaker or a receiver. The speaker can be used for general purposes such as multimedia playback or recording playback, and the receiver can be used to receive incoming calls. According to one embodiment, the receiver may be implemented separately from or as part of the speaker.

표시 장치(160)는 전자 장치(101)의 외부(예: 사용자)로 정보를 시각적으로 제공할 수 있다. 표시 장치(160)은, 예를 들면, 디스플레이, 홀로그램 장치, 또는 프로젝터 및 해당 장치를 제어하기 위한 제어 회로를 포함할 수 있다. 일 실시예에 따르면, 표시 장치(160)는 터치를 감지하도록 설정된 터치 회로(touch circuitry), 또는 상기 터치에 의해 발생되는 힘의 세기를 측정하도록 설정된 센서 회로(예: 압력 센서)를 포함할 수 있다. The display device 160 may visually provide information to the outside (eg, a user) of the electronic device 101 . The display device 160 may include, for example, a display, a hologram device, or a projector and a control circuit for controlling the corresponding device. According to an embodiment, the display device 160 may include a touch circuitry configured to sense a touch or a sensor circuit (eg, a pressure sensor) configured to measure the intensity of a force generated by the touch. have.

오디오 모듈(170)은 소리를 전기 신호로 변환시키거나, 반대로 전기 신호를 소리로 변환시킬 수 있다. 일 실시예에 따르면, 오디오 모듈(170)은, 입력 장치(150)를 통해 소리를 획득하거나, 음향 출력 장치(155), 또는 전자 장치(101)와 직접 또는 무선으로 연결된 외부 전자 장치(예: 전자 장치(102)) (예: 스피커 또는 헤드폰))를 통해 소리를 출력할 수 있다.The audio module 170 may convert a sound into an electric signal or, conversely, convert an electric signal into a sound. According to an embodiment, the audio module 170 acquires a sound through the input device 150 , or an external electronic device (eg, a sound output device 155 ) connected directly or wirelessly with the electronic device 101 . The sound may be output through the electronic device 102 (eg, a speaker or a headphone).

센서 모듈(176)은 전자 장치(101)의 작동 상태(예: 전력 또는 온도), 또는 외부의 환경 상태(예: 사용자 상태)를 감지하고, 감지된 상태에 대응하는 전기 신호 또는 데이터 값을 생성할 수 있다. 일 실시예에 따르면, 센서 모듈(176)은, 예를 들면, 제스처 센서, 자이로 센서, 기압 센서, 마그네틱 센서, 가속도 센서, 그립 센서, 근접 센서, 컬러 센서, IR(infrared) 센서, 생체 센서, 온도 센서, 습도 센서, 또는 조도 센서를 포함할 수 있다. The sensor module 176 detects an operating state (eg, power or temperature) of the electronic device 101 or an external environmental state (eg, user state), and generates an electrical signal or data value corresponding to the sensed state. can do. According to an embodiment, the sensor module 176 may include, for example, a gesture sensor, a gyro sensor, a barometric sensor, a magnetic sensor, an acceleration sensor, a grip sensor, a proximity sensor, a color sensor, an IR (infrared) sensor, a biometric sensor, It may include a temperature sensor, a humidity sensor, or an illuminance sensor.

인터페이스(177)는 전자 장치(101)이 외부 전자 장치(예: 전자 장치(102))와 직접 또는 무선으로 연결되기 위해 사용될 수 있는 하나 이상의 지정된 프로토콜들을 지원할 수 있다. 일 실시예에 따르면, 인터페이스(177)는, 예를 들면, HDMI(high definition multimedia interface), USB(universal serial bus) 인터페이스, SD카드 인터페이스, 또는 오디오 인터페이스를 포함할 수 있다.The interface 177 may support one or more designated protocols that may be used for the electronic device 101 to directly or wirelessly connect with an external electronic device (eg, the electronic device 102 ). According to an embodiment, the interface 177 may include, for example, a high definition multimedia interface (HDMI), a universal serial bus (USB) interface, an SD card interface, or an audio interface.

연결 단자(178)는, 그를 통해서 전자 장치(101)가 외부 전자 장치(예: 전자 장치(102))와 물리적으로 연결될 수 있는 커넥터를 포함할 수 있다. 일 실시예에 따르면, 연결 단자(178)은, 예를 들면, HDMI 커넥터, USB 커넥터, SD 카드 커넥터, 또는 오디오 커넥터(예: 헤드폰 커넥터)를 포함할 수 있다.The connection terminal 178 may include a connector through which the electronic device 101 can be physically connected to an external electronic device (eg, the electronic device 102 ). According to an embodiment, the connection terminal 178 may include, for example, an HDMI connector, a USB connector, an SD card connector, or an audio connector (eg, a headphone connector).

햅틱 모듈(179)은 전기적 신호를 사용자가 촉각 또는 운동 감각을 통해서 인지할 수 있는 기계적인 자극(예: 진동 또는 움직임) 또는 전기적인 자극으로 변환할 수 있다. 일 실시예에 따르면, 햅틱 모듈(179)은, 예를 들면, 모터, 압전 소자, 또는 전기 자극 장치를 포함할 수 있다.The haptic module 179 may convert an electrical signal into a mechanical stimulus (eg, vibration or movement) or an electrical stimulus that the user can perceive through tactile or kinesthetic sense. According to an embodiment, the haptic module 179 may include, for example, a motor, a piezoelectric element, or an electrical stimulation device.

카메라 모듈(180)은 정지 영상 및 동영상을 촬영할 수 있다. 일 실시예에 따르면, 카메라 모듈(180)은 하나 이상의 렌즈들, 이미지 센서들, 이미지 시그널 프로세서들, 또는 플래시들을 포함할 수 있다.The camera module 180 may capture still images and moving images. According to an embodiment, the camera module 180 may include one or more lenses, image sensors, image signal processors, or flashes.

전력 관리 모듈(188)은 전자 장치(101)에 공급되는 전력을 관리할 수 있다. 일 실시예에 따르면, 전력 관리 모듈(388)은, 예를 들면, PMIC(power management integrated circuit)의 적어도 일부로서 구현될 수 있다.The power management module 188 may manage power supplied to the electronic device 101 . According to an embodiment, the power management module 388 may be implemented as, for example, at least a part of a power management integrated circuit (PMIC).

배터리(189)는 전자 장치(101)의 적어도 하나의 구성 요소에 전력을 공급할 수 있다. 일 실시예에 따르면, 배터리(189)는, 예를 들면, 재충전 불가능한 1차 전지, 재충전 가능한 2차 전지 또는 연료 전지를 포함할 수 있다.The battery 189 may supply power to at least one component of the electronic device 101 . According to one embodiment, the battery 189 may include, for example, a non-rechargeable primary cell, a rechargeable secondary cell, or a fuel cell.

통신 모듈(190)은 전자 장치(101)와 외부 전자 장치(예: 전자 장치(102), 전자 장치(104), 또는 서버(108))간의 직접(예: 유선) 통신 채널 또는 무선 통신 채널의 수립, 및 수립된 통신 채널을 통한 통신 수행을 지원할 수 있다. 통신 모듈(190)은 프로세서(120)(예: 어플리케이션 프로세서)와 독립적으로 운영되고, 직접(예: 유선) 통신 또는 무선 통신을 지원하는 하나 이상의 커뮤니케이션 프로세서를 포함할 수 있다. 일 실시예에 따르면, 통신 모듈(190)은 무선 통신 모듈(192)(예: 셀룰러 통신 모듈, 근거리 무선 통신 모듈, 또는 GNSS(global navigation satellite system) 통신 모듈) 또는 유선 통신 모듈(194)(예: LAN(local area network) 통신 모듈, 또는 전력선 통신 모듈)을 포함할 수 있다. 이들 통신 모듈 중 해당하는 통신 모듈은 제 1 네트워크(198)(예: 블루투스, WiFi direct 또는 IrDA(infrared data association) 같은 근거리 통신 네트워크) 또는 제 2 네트워크(199)(예: 셀룰러 네트워크, 인터넷, 또는 컴퓨터 네트워크(예: LAN 또는 WAN)와 같은 원거리 통신 네트워크)를 통하여 외부 전자 장치와 통신할 수 있다. 이런 여러 종류의 통신 모듈들은 하나의 구성 요소(예: 단일 칩)으로 통합되거나, 또는 서로 별도의 복수의 구성 요소들(예: 복수 칩들)로 구현될 수 있다. 무선 통신 모듈(192)은 가입자 식별 모듈(196)에 저장된 가입자 정보(예: 국제 모바일 가입자 식별자(IMSI))를 이용하여 제 1 네트워크(198) 또는 제 2 네트워크(199)와 같은 통신 네트워크 내에서 전자 장치(101)를 확인 및 인증할 수 있다. The communication module 190 is a direct (eg, wired) communication channel or a wireless communication channel between the electronic device 101 and an external electronic device (eg, the electronic device 102, the electronic device 104, or the server 108). It can support establishment and communication through the established communication channel. The communication module 190 may include one or more communication processors that operate independently of the processor 120 (eg, an application processor) and support direct (eg, wired) communication or wireless communication. According to one embodiment, the communication module 190 is a wireless communication module 192 (eg, a cellular communication module, a short-range wireless communication module, or a global navigation satellite system (GNSS) communication module) or a wired communication module 194 (eg, : It may include a local area network (LAN) communication module, or a power line communication module). Among these communication modules, a corresponding communication module is a first network 198 (eg, a short-range communication network such as Bluetooth, WiFi direct, or IrDA (infrared data association)) or a second network 199 (eg, a cellular network, the Internet, or It may communicate with an external electronic device via a computer network (eg, a telecommunication network such as a LAN or WAN). These various types of communication modules may be integrated into one component (eg, a single chip) or may be implemented as a plurality of components (eg, multiple chips) separate from each other. The wireless communication module 192 uses the subscriber information (eg, International Mobile Subscriber Identifier (IMSI)) stored in the subscriber identification module 196 within a communication network such as the first network 198 or the second network 199 . The electronic device 101 may be identified and authenticated.

안테나 모듈(197)은 신호 또는 전력을 외부(예: 외부 전자 장치)로 송신하거나 외부로부터 수신할 수 있다. 일 실시예에 따르면, 안테나 모듈은 서브스트레이트(예: PCB) 위에 형성된 도전체 또는 도전성 패턴으로 이루어진 방사체를 포함하는 하나의 안테나를 포함할 수 있다. 일 실시예에 따르면, 안테나 모듈(197)은 복수의 안테나들을 포함할 수 있다. 이런 경우, 제 1 네트워크(198) 또는 제 2 네트워크(199)와 같은 통신 네트워크에서 사용되는 통신 방식에 적합한 적어도 하나의 안테나가, 예를 들면, 통신 모듈(190)에 의하여 상기 복수의 안테나들로부터 선택될 수 있다. 신호 또는 전력은 상기 선택된 적어도 하나의 안테나를 통하여 통신 모듈(190)과 외부 전자 장치 간에 송신되거나 수신될 수 있다. 어떤 실시예에 따르면, 방사체 이외에 다른 부품(예: RFIC)이 추가로 안테나 모듈(197)의 일부로 형성될 수 있다.The antenna module 197 may transmit or receive a signal or power to the outside (eg, an external electronic device). According to an embodiment, the antenna module may include one antenna including a conductor formed on a substrate (eg, a PCB) or a radiator formed of a conductive pattern. According to an embodiment, the antenna module 197 may include a plurality of antennas. In this case, at least one antenna suitable for a communication method used in a communication network such as the first network 198 or the second network 199 is connected from the plurality of antennas by, for example, the communication module 190 . can be selected. A signal or power may be transmitted or received between the communication module 190 and an external electronic device through the selected at least one antenna. According to some embodiments, other components (eg, RFIC) other than the radiator may be additionally formed as a part of the antenna module 197 .

상기 구성요소들 중 적어도 일부는 주변 기기들간 통신 방식(예: 버스, 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 a signal ( e.g. commands or data) can be exchanged with each other.

일 실시예에 따르면, 명령 또는 데이터는 제 2 네트워크(199)에 연결된 서버(108)를 통해서 전자 장치(101)와 외부의 전자 장치(104)간에 송신 또는 수신될 수 있다. 전자 장치(102, 104) 각각은 전자 장치(101)와 동일한 또는 다른 종류의 장치일 수 있다. 일 실시예에 따르면, 전자 장치(101)에서 실행되는 동작들의 전부 또는 일부는 외부 전자 장치들(102, 104, or 108) 중 하나 이상의 외부 장치들에서 실행될 수 있다. 예를 들면, 전자 장치(101)가 어떤 기능이나 서비스를 자동으로, 또는 사용자 또는 다른 장치로부터의 요청에 반응하여 수행해야 할 경우에, 전자 장치(101)는 기능 또는 서비스를 자체적으로 실행시키는 대신에 또는 추가적으로, 하나 이상의 외부 전자 장치들에게 그 기능 또는 그 서비스의 적어도 일부를 수행하라고 요청할 수 있다. 상기 요청을 수신한 하나 이상의 외부 전자 장치들은 요청된 기능 또는 서비스의 적어도 일부, 또는 상기 요청과 관련된 추가 기능 또는 서비스를 실행하고, 그 실행의 결과를 전자 장치(101)로 전달할 수 있다. 전자 장치(101)는 상기 결과를, 그대로 또는 추가적으로 처리하여, 상기 요청에 대한 응답의 적어도 일부로서 제공할 수 있다. 이를 위하여, 예를 들면, 클라우드 컴퓨팅, 분산 컴퓨팅, 또는 클라이언트-서버 컴퓨팅 기술이 이용될 수 있다. According to an embodiment, the command or data may be transmitted or received between the electronic device 101 and the external electronic device 104 through the server 108 connected to the second network 199 . Each of the electronic devices 102 and 104 may be the same or a different type of the electronic device 101 . According to an embodiment, all or part of the operations performed by the electronic device 101 may be executed by one or more of the external electronic devices 102 , 104 , or 108 . For example, when the electronic device 101 needs to perform a function or service automatically or in response to a request from a user or other device, the electronic device 101 may perform the function or service itself instead of executing the function or service itself. Alternatively or additionally, one or more external electronic devices may be requested to perform at least a part of the function or the service. The one or more external electronic devices that have received the request may execute at least a part of the requested function or service, or an additional function or service related to the request, and transmit a result of the execution to the electronic device 101 . The electronic device 101 may process the result as it is or additionally and provide it as at least a part of a response to the request. For this purpose, for example, cloud computing, distributed computing, or client-server computing technology may be used.

본 문서에 개시된 다양한 실시예들에 따른 전자 장치는 다양한 형태의 장치가 될 수 있다. 전자 장치는, 예를 들면, 휴대용 통신 장치 (예: 스마트폰), 컴퓨터 장치, 휴대용 멀티미디어 장치, 휴대용 의료 기기, 카메라, 웨어러블 장치, 또는 가전 장치를 포함할 수 있다. 본 문서의 실시예에 따른 전자 장치는 전술한 기기들에 한정되지 않는다.The electronic device according to various embodiments disclosed in this document may have various types of devices. 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 device. The electronic device according to the embodiment of the present document is not limited to the above-described devices.

본 문서의 다양한 실시예들 및 이에 사용된 용어들은 본 문서에 기재된 기술적 특징들을 특정한 실시예들로 한정하려는 것이 아니며, 해당 실시예의 다양한 변경, 균등물, 또는 대체물을 포함하는 것으로 이해되어야 한다. 도면의 설명과 관련하여, 유사한 또는 관련된 구성요소에 대해서는 유사한 참조 부호가 사용될 수 있다. 아이템에 대응하는 명사의 단수 형은 관련된 문맥상 명백하게 다르게 지시하지 않는 한, 상기 아이템 한 개 또는 복수 개를 포함할 수 있다. 본 문서에서, "A 또는 B", "A 및 B 중 적어도 하나","A 또는 B 중 적어도 하나,""A, B 또는 C," "A, B 및 C 중 적어도 하나,"및 "A, B, 또는 C 중 적어도 하나"와 같은 문구들 각각은 그 문구들 중 해당하는 문구에 함께 나열된 항목들 중 어느 하나, 또는 그들의 모든 가능한 조합을 포함할 수 있다. "제 1", "제 2", 또는 "첫째" 또는 "둘째"와 같은 용어들은 단순히 해당 구성요소를 다른 해당 구성요소와 구분하기 위해 사용될 수 있으며, 해당 구성요소들을 다른 측면(예: 중요성 또는 순서)에서 한정하지 않는다. 어떤(예: 제 1) 구성요소가 다른(예: 제 2) 구성요소에, "기능적으로" 또는 "통신적으로"라는 용어와 함께 또는 이런 용어 없이, "커플드" 또는 "커넥티드"라고 언급된 경우, 그것은 상기 어떤 구성요소가 상기 다른 구성요소에 직접적으로(예: 유선으로), 무선으로, 또는 제 3 구성요소를 통하여 연결될 수 있다는 것을 의미한다.It should be understood that the various embodiments of this document and the terms used therein are not intended to limit the technical features described in this document to specific embodiments, and include various modifications, equivalents, or substitutions of the embodiments. In connection with the description of the drawings, like reference numerals may be used for similar or related components. The singular form of the noun corresponding to the item may include one or more of the item, unless the relevant context clearly dictates otherwise. As used herein, "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 , B, or C" each may include any one of the items listed together in the corresponding one of the phrases, or all possible combinations thereof. Terms such as “first”, “second”, or “first” or “second” may simply be used to distinguish the component from other components in question, and may refer to components in other aspects (e.g., importance or order) is not limited. It is said that one (eg, first) component is "coupled" or "connected" to another (eg, second) component, with or without the terms "functionally" or "communicatively". When referenced, it means that one component can be connected to the other component directly (eg by wire), wirelessly, or through a third component.

본 문서에서 사용된 용어 "모듈"은 하드웨어, 소프트웨어 또는 펌웨어로 구현된 유닛을 포함할 수 있으며, 예를 들면, 로직, 논리 블록, 부품, 또는 회로 등의 용어와 상호 호환적으로 사용될 수 있다. 모듈은, 일체로 구성된 부품 또는 하나 또는 그 이상의 기능을 수행하는, 상기 부품의 최소 단위 또는 그 일부가 될 수 있다. 예를 들면, 일 실시예에 따르면, 모듈은 ASIC(application-specific integrated circuit)의 형태로 구현될 수 있다. As used herein, the term “module” may include a unit implemented in hardware, software, or firmware, and may be used interchangeably with terms such as, for example, logic, logic block, component, or circuit. A module may be an integrally formed part or a minimum unit or a part of the part that performs one or more functions. For example, according to an 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 the present document include one or more instructions stored in a storage medium (eg, internal memory 136 or external memory 138) readable by a machine (eg, electronic device 101). may be implemented as software (eg, the program 140) including For example, the processor (eg, the processor 120 ) of the device (eg, the electronic device 101 ) may call at least one of one or more instructions stored from a storage medium and execute it. This makes it possible for the device to be operated to perform at least one function according to the at least one command called. The one or more instructions may include code generated by a compiler or code executable by an interpreter. The device-readable storage medium may be provided in the form of a non-transitory storage medium. Here, 'non-transitory' only means that the storage medium is a tangible device and does not include a signal (eg, electromagnetic wave), and this term is used in cases where data is semi-permanently stored in the storage medium and It does not distinguish between temporary storage cases.

일 실시예에 따르면, 본 문서에 개시된 다양한 실시예들에 따른 방법은 컴퓨터 프로그램 제품(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 provided as included in a computer program product. Computer program products may be traded between sellers and buyers as commodities. The computer program product is distributed in the form of a machine-readable storage medium (eg compact disc read only memory (CD-ROM)), or via an application store (eg Play Store TM ) or on two user devices ( It can be distributed (eg downloaded or uploaded) directly, online between smartphones (eg: smartphones). In the case of online distribution, at least a part of the computer program product may be temporarily stored or temporarily created in a machine-readable storage medium such as a memory of a server of a manufacturer, a server of an application store, or a relay server.

다양한 실시예들에 따르면, 상기 기술한 구성요소들의 각각의 구성요소(예: 모듈 또는 프로그램)는 단수 또는 복수의 개체를 포함할 수 있다. 다양한 실시예들에 따르면, 전술한 해당 구성요소들 중 하나 이상의 구성요소들 또는 동작들이 생략되거나, 또는 하나 이상의 다른 구성요소들 또는 동작들이 추가될 수 있다. 대체적으로 또는 추가적으로, 복수의 구성요소들(예: 모듈 또는 프로그램)은 하나의 구성요소로 통합될 수 있다. 이런 경우, 통합된 구성요소는 상기 복수의 구성요소들 각각의 구성요소의 하나 이상의 기능들을 상기 통합 이전에 상기 복수의 구성요소들 중 해당 구성요소에 의해 수행되는 것과 동일 또는 유사하게 수행할 수 있다. 다양한 실시예들에 따르면, 모듈, 프로그램 또는 다른 구성요소에 의해 수행되는 동작들은 순차적으로, 병렬적으로, 반복적으로, 또는 휴리스틱하게 실행되거나, 상기 동작들 중 하나 이상이 다른 순서로 실행되거나, 생략되거나, 또는 하나 이상의 다른 동작들이 추가될 수 있다.According to various embodiments, each component (eg, a module or a program) of the above-described components may include a singular or a plurality of entities. According to various embodiments, one or more components or operations among the above-described corresponding components may be omitted, or one or more other components or operations may be added. Alternatively or additionally, a plurality of components (eg, a module or a program) may be integrated into one component. In this case, the integrated component may perform one or more functions of each component of the plurality of components identically or similarly to those performed by the corresponding component among the plurality of components prior to the integration. . According to various embodiments, operations performed by a module, program, or other component are executed sequentially, in parallel, repeatedly, or heuristically, or one or more of the operations are executed in a different order, or omitted. or one or more other operations may be added.

도 2는, 다양한 실시예들에 따른, 카메라 모듈(180)의 블럭도(200)이다. 도 2를 참조하면, 카메라 모듈(180)은 렌즈 어셈블리(210), 플래쉬(220), 이미지 센서(230), 이미지 스태빌라이저(240), 메모리(250)(예: 버퍼 메모리), 또는 이미지 시그널 프로세서(260)를 포함할 수 있다. 렌즈 어셈블리(210)는 이미지 촬영의 대상인 피사체로부터 방출되는 빛을 수집할 수 있다. 렌즈 어셈블리(210)는 하나 또는 그 이상의 렌즈들을 포함할 수 있다. 일 실시예에 따르면, 카메라 모듈(180)은 복수의 렌즈 어셈블리(210)들을 포함할 수 있다. 이런 경우, 카메라 모듈(180)은, 예를 들면, 듀얼 카메라, 360도 카메라, 또는 구형 카메라(spherical camera)일 수 있다. 복수의 렌즈 어셈블리(210)들은 동일한 렌즈 속성(예: 화각, 초점 거리, 자동 초점, f 넘버(f number), 또는 광학 줌)을 갖거나, 또는 적어도 하나의 렌즈 어셈블리는 다른 렌즈 렌즈 어셈블리와 적어도 하나의 다른 렌즈 속성을 가질 수 있다. 렌즈 어셈블리(210)는, 예를 들면, 광각 렌즈 또는 망원 렌즈를 포함할 수 있다. 플래쉬(220)는 피사체로부터 방출되는 빛을 강화하기 위하여 사용되는 광원을 방출할 수 있다. 플래쉬(220)는 하나 이상의 발광 다이오드들(예: RGB(red-green-blue) LED, white LED, infrared LED, 또는 ultraviolet LED), 또는 xenon lamp를 포함할 수 있다.2 is a block diagram 200 of a camera module 180, according to various embodiments. Referring to FIG. 2 , the camera module 180 includes a lens assembly 210 , a flash 220 , an image sensor 230 , an image stabilizer 240 , a memory 250 (eg, a buffer memory), or an image signal processor. (260). The lens assembly 210 may collect light emitted from a subject, which is an image to be captured. The lens assembly 210 may include one or more lenses. According to an embodiment, the camera module 180 may include a plurality of lens assemblies 210 . In this case, the camera module 180 may be, for example, a dual camera, a 360 degree camera, or a spherical camera. The plurality of lens assemblies 210 may have the same lens properties (eg, angle of view, focal length, autofocus, f number, or optical zoom), or at least one lens assembly may have at least one lens assembly and at least another lens lens assembly. It can have one different lens property. The lens assembly 210 may include, for example, a wide-angle lens or a telephoto lens. The flash 220 may emit a light source used to enhance light emitted from the subject. The flash 220 may include one or more light emitting diodes (eg, a red-green-blue (RGB) LED, a white LED, an infrared LED, or an ultraviolet LED), or a xenon lamp.

이미지 센서(230)는 피사체로부터 렌즈 어셈블리(210)를 통해 전달된 빛을 전기적인 신호로 변환함으로써, 상기 피사체에 대응하는 이미지를 획득할 수 있다. 일 실시예에 따르면, 이미지 센서(230)는, 예를 들면, RGB 센서, BW(black and white) 센서, IR 센서, 또는 UV 센서와 같이 속성이 다른 이미지 센서들 중 선택된 하나의 이미지 센서, 동일한 속성을 갖는 복수의 이미지 센서들, 또는 다른 속성을 갖는 복수의 이미지 센서들을 포함할 수 있다. 이미지 센서(230)에 포함된 각각의 이미지 센서는, 예를 들면, CCD(charged coupled device) 센서 또는 CMOS(complementary metal oxide semiconductor) 센서로 구현될 수 있다.The image sensor 230 may acquire an image corresponding to the subject by converting light transmitted from the subject through the lens assembly 210 into an electrical signal. According to an embodiment, the image sensor 230 is, for example, one image sensor selected from among image sensors having different properties, such as an RGB sensor, a black and white (BW) sensor, an IR sensor, or a UV sensor, the same It may include a plurality of image sensors having a property, or a plurality of image sensors having different properties. Each image sensor included in the image sensor 230 may be implemented as, for example, a charged coupled device (CCD) sensor or a complementary metal oxide semiconductor (CMOS) sensor.

이미지 스태빌라이저(240)는 카메라 모듈(180) 또는 이를 포함하는 전자 장치(101)의 움직임에 반응하여, 촬영되는 이미지에 대한 상기 움직임에 의한 부정적인 영향(예: 이미지 흔들림)을 적어도 일부 보상하기 위하여 렌즈 어셈블리(210)에 포함된 적어도 하나의 렌즈 또는 이미지 센서(230)를 특정한 방향으로 움직이거나 제어(예: 리드 아웃(read-out) 타이밍을 조정 등)할 수 있다. 일 실시예에 따르면, 이미지 스태빌라이저(240)는, 예를 들면, 광학식 이미지 스태빌라이저로 구현될 수 있으며, 카메라 모듈(180)의 내부 또는 외부에 배치된 자이로 센서(미도시) 또는 가속도 센서(미도시)를 이용하여 상기 움직임을 감지할 수 있다.The image stabilizer 240 responds to the movement of the camera module 180 or the electronic device 101 including the same, and at least partially compensates for a negative effect (eg, image shake) caused by the movement on a photographed image. At least one lens or image sensor 230 included in the assembly 210 may be moved or controlled in a specific direction (eg, read-out timing is adjusted, etc.). According to an embodiment, the image stabilizer 240 may be implemented as, for example, an optical image stabilizer, and a gyro sensor (not shown) or an acceleration sensor (not shown) disposed inside or outside the camera module 180 . ) can be used to detect the movement.

메모리(250)는 이미지 센서(230)을 통하여 획득된 이미지의 적어도 일부를 다음 이미지 처리 작업을 위하여 적어도 일시 저장할 수 있다. 예를 들어, 셔터에 따른 이미지 획득이 지연되거나, 또는 복수의 이미지들이 고속으로 획득되는 경우, 획득된 원본 이미지(예: 높은 해상도의 이미지)는 메모리(250)에 저장이 되고, 그에 대응하는 사본 이미지(예: 낮은 해상도의 이미지)는 표시 장치(160)을 통하여 프리뷰될 수 있다. 이후, 지정된 조건이 만족되면(예: 사용자 입력 또는 시스템 명령) 메모리(250)에 저장되었던 원본 이미지의 적어도 일부가, 예를 들면, 이미지 시그널 프로세서(260)에 의해 획득되어 처리될 수 있다. 일 실시예에 따르면, 메모리(250)는 메모리(130)의 적어도 일부로, 또는 이와는 독립적으로 운영되는 별도의 메모리로 구성될 수 있다.The memory 250 may temporarily store at least a portion of the image acquired through the image sensor 230 for a next image processing operation. For example, when image acquisition is delayed according to the shutter or a plurality of images are acquired at high speed, the acquired original image (eg, a high-resolution image) is stored in the memory 250 and a corresponding copy thereof An image (eg, a low-resolution image) may be previewed through the display device 160 . Thereafter, when a specified condition is satisfied (eg, a user input or a system command), at least a part of the original image stored in the memory 250 may be obtained and processed by, for example, the image signal processor 260 . According to an embodiment, the memory 250 may be configured as at least a part of the memory 130 or as a separate memory operated independently of the memory 130 .

이미지 시그널 프로세서(260)는 이미지 센서(230)을 통하여 획득된 이미지 또는 메모리(250)에 저장된 이미지에 대하여 이미지 처리(예: 깊이 지도(depth map) 생성, 3차원 모델링, 파노라마 생성, 특징점 추출, 이미지 합성, 또는 이미지 보상(예: 노이즈 감소, 해상도 조정, 밝기 조정, 블러링(blurring), 샤프닝(sharpening), 또는 소프트닝(softening))을 수행할 수 있다. 추가적으로 또는 대체적으로, 이미지 시그널 프로세서(260)는 카메라 모듈(180)에 포함된 구성 요소들 중 적어도 하나(예: 이미지 센서(230))에 대한 제어(예: 노출 시간 제어, 또는 리드 아웃 타이밍 제어 등)를 수행할 수 있다. 이미지 시그널 프로세서(260)에 의해 처리된 이미지는 추가 처리를 위하여 메모리(250)에 다시 저장 되거나 카메라 모듈(180)의 외부 구성 요소(예: 메모리(130), 표시 장치(160), 전자 장치(102), 전자 장치(104), 또는 서버(108))로 전달될 수 있다. 일 실시예에 따르면, 이미지 시그널 프로세서(260)는 프로세서(120)의 적어도 일부로 구성되거나, 프로세서(120)와 독립적으로 운영되는 별도의 프로세서로 구성될 수 있다. 별도의 프로세서로 구성된 경우, 이미지 시그널 프로세서(260)에 의해 처리된 이미지들은 프로세서(120)에 의하여 그대로 또는 추가의 이미지 처리를 거친 후 표시 장치(160)를 통해 표시될 수 있다. The image signal processor 260 performs image processing (eg, depth map generation, 3D modeling, panorama generation, feature point extraction, Image synthesis, or image compensation (e.g., noise reduction, resolution adjustment, brightness adjustment, blurring, sharpening, or softening) may be performed. Additionally or alternatively, an image signal processor ( The 260 may perform control (eg, exposure time control, readout timing control, etc.) on at least one (eg, image sensor 230 ) among components included in the camera module 180. Image The image processed by the signal processor 260 is stored back in the memory 250 for further processing, or an external component of the camera module 180 (eg, the memory 130 , the display device 160 , the electronic device 102 ). ), the electronic device 104 , or the server 108. According to an embodiment, the image signal processor 260 is configured as at least a part of the processor 120 or is independent of the processor 120 . In the case of a separate processor, the images processed by the image signal processor 260 are as they are by the processor 120 or after additional image processing is performed by the display device 160 can be displayed through

일 실시예에 따르면, 전자 장치(101)는 각각 다른 속성 또는 기능을 가진 둘 이상의 카메라 모듈(180)들을 포함할 수 있다. 이런 경우, 예를 들면, 적어도 하나의 카메라 모듈(180)은 광각 카메라 또는 전면 카메라이고, 적어도 하나의 다른 카메라 모듈은 망원 카메라 또는 후면 카메라일 수 있다.According to an embodiment, the electronic device 101 may include two or more camera modules 180 each having different properties or functions. In this case, for example, at least one camera module 180 may be a wide-angle camera or a front camera, and at least one other camera module may be a telephoto camera or a rear camera.

도 3a 및 도 3b는, 다양한 실시예들에 따른, 화이트 밸런스를 제공하기 위한 데이터(예: 테이블)를 설명하기 위한 도면들이다.3A and 3B are diagrams for explaining data (eg, a table) for providing white balance, according to various embodiments.

도 3a 및 도 3b를 참조하면, 일 실시예에서, 도 3a는, 색 온도, delta uv, 및 화이트 밸런스 게인(white balance gain)(이하에서, 'WB gain'과 혼용하기로 함) 간 상관 관계를 나타내는 그래프(310)일 수 있다. 3A and 3B , in one embodiment, FIG. 3A shows a correlation between color temperature, delta uv, and white balance gain (hereinafter, to be used interchangeably with 'WB gain') It may be a graph 310 representing

이하에서, delta uv(또는 delta u'v')는, 예를 들면, 흑체 궤적로부터 벗어난 정도 및 방향으로 정의될 수 있다. 또한, delta uv는, 예를 들면, 흑체 궤적의 일 지점의 색도 및 흑체 궤적의 상기 일 지점과 동일한 색 온도에 있는(또는 등온도 선 상에 있는) 광원의 색도 간 차이로 정의될 수 있다. 또한, delta uv는 '등온도 색도 차'로 지칭될 수 있다.Hereinafter, delta uv (or delta u'v') may be defined, for example, as the degree and direction of deviation from the blackbody trajectory. Also, delta uv may be defined, for example, as the difference between the chromaticity of a point on the blackbody locus and the chromaticity of a light source at the same color temperature (or on an isothermal line) as the one point on the blackbody trajectory. Also, delta uv may be referred to as 'isothermal chromaticity difference'.

이하에서, 화이트 밸런스 게인은, 이미지 센서로부터 획득한 이미지의 RGB(red, green, blue) 데이터(또는 RGB 신호)에 기반하여 획득된(또는 산출된) 게인(또는 이득)일 수 있다. 예를 들면, 화이트 밸런스 게인은, 색 온도에 맞추어 RGB 데이터(또는 RGB 신호) 각각의(또는 각 채널의) 게인을 조정하는 것을 포함할 수 있다. 일 실시예에서, 화이트 밸런스 게인은 이미지 센서로부터 획득한 이미지의 화이트 밸런스를 설정(또는 조정)하기 위하여 적용될 게인일 수 있다. 일 실시예에서, 화이트 밸런스 게인은 R(red) 게인 및 B(blue) 게인에 의한 좌표로 표현될 수 있다. 예를 들어, 그래프(310)의 가로축은 R 게인(도 3a의 Rgain)을 의미할 수 있고, 세로축은 B 게인(도 3a의 Bgain)을 의미할 수 있다. R 게인은, 예를 들면, 이미지 센서로부터 획득한 이미지의 G(green) 데이터에 대한 R(red) 데이터의 비율의 역수일 수 있다. B 게인은, 예를 들면, 이미지 센서로부터 획득한 이미지의 G 데이터에 대한 B(red) 데이터의 비율의 역수일 수 있다. 이하, 화이트 밸런스 게인을 결정(또는 산출)하는 방법에 관해서는 상세히 후술하도록 한다. 일 실시예에서, 도 3a에서, 제1 라인(321-1)은 흑체 궤적 상의 화이트 밸런스 게인들을 나타낼 수 있다. 예를 들어, 제1 라인(321-1)은 delta uv(또는 delta uv 데이터)가 0인 경우에 대응하는 화이트 밸런스 게인들을 나타낼 수 있다. 일 실시예에서, 제2 라인(321-2)은 delta uv가 -0.005인 경우에 대응하는 화이트 밸런스 게인들을 나타낼 수 있다. 일 실시예에서, 제3 라인(321-3)은 delta uv가 0.005(또는 +0.005)인 경우에 대응하는 화이트 밸런스 게인들을 나타낼 수 있다. 일 실시예에서, 제4 라인(321-4)은 delta uv가 0.010(또는 +0.010)인 경우에 대응하는 화이트 밸런스 게인들을 나타낼 수 있다. 일 실시예에서, 제1 라인(321-1) 내지 제4 라인(321-4)은, 도시된 실시예에 한정되는 것은 아니며, 다양한 실시예에 따라 제1 라인(321-1) 내지 제4 라인(321-4) 외에 추가적인 라인(미도시)을 포함할 수 있다.Hereinafter, the white balance gain may be a gain (or gain) obtained (or calculated) based on RGB (red, green, blue) data (or RGB signal) of an image obtained from an image sensor. For example, the white balance gain may include adjusting the gain of each (or each channel) of RGB data (or RGB signal) according to the color temperature. In an embodiment, the white balance gain may be a gain to be applied to set (or adjust) the white balance of the image obtained from the image sensor. In an embodiment, the white balance gain may be expressed as a coordinate by an R (red) gain and a B (blue) gain. For example, a horizontal axis of the graph 310 may mean an R gain (Rgain of FIG. 3A ), and a vertical axis may mean a B gain (Bgain of FIG. 3A ). The R gain may be, for example, a reciprocal of a ratio of R (red) data to G (green) data of an image obtained from the image sensor. The B gain may be, for example, a reciprocal of a ratio of B (red) data to G data of an image obtained from the image sensor. Hereinafter, a method of determining (or calculating) the white balance gain will be described in detail later. In one embodiment, in FIG. 3A , the first line 321-1 may represent white balance gains on the blackbody trajectory. For example, the first line 321-1 may indicate white balance gains corresponding to a case in which delta uv (or delta uv data) is 0. In an embodiment, the second line 321 - 2 may represent white balance gains corresponding to a case where delta uv is -0.005. In an embodiment, the third line 321-3 may represent white balance gains corresponding to a case where delta uv is 0.005 (or +0.005). In an embodiment, the fourth line 321-4 may represent white balance gains corresponding to a case where delta uv is 0.010 (or +0.010). In an embodiment, the first line 321-1 to the fourth line 321-4 are not limited to the illustrated embodiment, but the first line 321-1 to the fourth line 321-4 according to various embodiments. In addition to the lines 321-4, additional lines (not shown) may be included.

일 실시예에서, 도 3a에서, 복수의 라인들(331-1 내지 331-9) 각각은, 동일한 색 온도(또는 동일한 상관 색 온도)에 대응하는 화이트 밸런스 게인들을 나타낼 수 있다. 예를 들어, 복수의 라인들(예: 제 1 라인(331-1) 내지 제 9 라인(331-9)) 중 제 1 라인(331-1) 상의 화이트 밸런스 게인은 동일한 색 온도로서 2000 K(kelvin)(또는 절대 온도)에 대응하는 화이트 밸런스 게인들을 나타낼 수 있다. 다른 예를 들어, 복수의 라인들(예: 제 1 라인(331-1) 내지 제 9 라인(331-9)) 중 제 9 라인(331-9) 상의 화이트 밸런스 게인은 동일한 색 온도로서 10000 K에 대응하는 화이트 밸런스 게인들을 나타낼 수 있다. 백색은, 예를 들면, 약 3000K 내지 25000K 사이의 색 온도를 가질 수 있고, 5000K 내지 10000K 사이의 색 온도를 일반적인 백색의 범위로 확인할 수 있다. 일 실시예에서, 복수의 라인들(331-1 내지 331-9)은, 색 온도의 범위(예: 2000K 내지 10000K), 또는 색 온도의 간격 등에 적어도 기반하여 결정될 수 있다. 복수의 라인들(331-1 내지 331-9)은, 도시된 실시예에 한정되는 것은 아니며, 다양한 실시예에 따라 복수의 라인들(331-1 내지 331-9) 외에 추가적인 라인(미도시)을 포함할 수 있다.In an embodiment, in FIG. 3A , each of the plurality of lines 331-1 to 331-9 may represent white balance gains corresponding to the same color temperature (or the same correlated color temperature). For example, the white balance gain on the first line 331-1 among the plurality of lines (eg, the first line 331-1 to the ninth line 331-9) is 2000 K ( kelvin) (or absolute temperature). As another example, the white balance gain on the ninth line 331-9 among the plurality of lines (eg, the first line 331-1 to the ninth line 331-9) is 10000 K as the same color temperature. may represent white balance gains corresponding to . White, for example, may have a color temperature between about 3000K and 25000K, and a color temperature between 5000K and 10000K may be identified as a general white range. In an embodiment, the plurality of lines 331-1 to 331-9 may be determined based on at least a color temperature range (eg, 2000K to 10000K) or an interval of color temperature. The plurality of lines 331-1 to 331-9 is not limited to the illustrated embodiment, but an additional line (not shown) in addition to the plurality of lines 331-1 to 331-9 according to various embodiments. may include.

일 실시예에서, 도 3a에서, 기호('o')는 색 온도 및 delta uv에 대응하는 화이트 밸런스 게인(또는 화이트 밸런스 게인의 좌표)을 나타낼 수 있다. 예를 들어, 기호(341)는, 색 온도가 3000K이고 delta uv가 0.005인 경우에 대응하는 화이트 밸런스 게인일 수 있다.In an embodiment, in FIG. 3A , a symbol 'o' may indicate a white balance gain (or a coordinate of a white balance gain) corresponding to a color temperature and delta uv. For example, the symbol 341 may be a white balance gain corresponding to a case where the color temperature is 3000K and the delta uv is 0.005.

일 실시예에서, 색 온도 및 delta uv에 대응하는 기호들은 그래프(310) 내에서 복수 개 정의될 수 있고, 상기 색 온도 및 상기 delta uv의 수치, 간격, 또는 범위 등에 기반하여, 그래프(310) 내의 기호들의 개수들은 변경될 수 있다. In one embodiment, a plurality of symbols corresponding to the color temperature and delta uv may be defined in the graph 310, and based on the numerical value, interval, or range of the color temperature and the delta uv, the graph 310 The number of symbols in may be changed.

일 실시예에서, 도 3b에서, 테이블(320)(또는 룩-업 테이블(look-up table))은 색 온도, delta uv, 및 화이트 밸런스 게인 간 상관 관계를 정의하는 테이블일 수 있다. 테이블(320)은, 예를 들면, 복수의 색 온도들, 복수의 delta uv들에 대응하는 복수의 화이트 밸런스 게인들(WB1 내지 WB36)을 포함하는 테이블일 수 있다. 일 실시예에서, 테이블(320)에서, A는 delta uv가 -0.005인 경우 나타내고, B는 delta uv가 0인 경우 나타내고, C는 delta uv가 0.005인 경우 나타내고, D는 delta uv가 0.010인 경우 나타낼 수 있다. 다만, 이에 제한되지 않는다. 예를 들어, 테이블(320)은 delta uv들 간 간격이 0.005로 설정된 예시하고 있지만, 테이블에서 0.005 보다 크거나 작은 간격으로 delta uv들이 설정될 수 있다. 다른 예를 들어, 테이블(320)은 delta uv들의 범위가 -0.005 내지 0.010까지의 범위에서 설정되는 것으로 예시하고 있지만, delta uv들의 범위는, 예를 들면, -0.005 이상(예: -0.004)이거나 작은(예: -0.003) delta uv 내지 0.010 이상(예: 0.011)이거나 작은(예: 0.009) delta uv까지의 범위에서 설정될 수 있다. 또한 delta uv들의 간격은, 예를 들면, 0.005 보다 작은 간격(예: 0.001)이나, 0.005 보다 큰 간격(예: 0.010)으로 구성될 수 있다. 예를 들면, delta uv들의 간격이 0.010인 경우, 그래프(320)의 A는 -0.010, B는 0, C는 0.010, 및 D는 0.020으로 설정될 수 있다. 또한 A 내지 D의 간격이 지정된 간격으로 예시하고 있지만, A 내지 D의 간격은 서로 상이할 수 있다. 예를 들면, A 내지 C의 간격은 0.005로 설정되고, C 내지 D의 간격은 0.010으로 설정될 수 있다. 이에 따라, A는 -0.005, B는 0, C는 0.005, 및 D는 0.015로 설정될 수 있다.In one embodiment, in FIG. 3B , table 320 (or look-up table) may be a table defining a correlation between color temperature, delta uv, and white balance gain. The table 320 may be, for example, a table including a plurality of white balance gains WB 1 to WB 36 corresponding to a plurality of color temperatures and a plurality of delta uvs. In one embodiment, in table 320, A represents when delta uv equals -0.005, B represents when delta uv equals 0, C represents when delta uv equals 0.005, and D represents when delta uv equals 0.010. can indicate However, the present invention is not limited thereto. For example, although the table 320 exemplifies that the interval between delta uvs is set to 0.005, delta uvs may be set at an interval larger or smaller than 0.005 in the table. For another example, the table 320 illustrates that the range of delta uvs is set in the range of -0.005 to 0.010, but the range of delta uvs is, for example, -0.005 or more (eg -0.004) or It can be set in the range from small (eg -0.003) delta uv to 0.010 or more (eg 0.011) or small (eg 0.009) delta uv. Also, the interval of the delta uvs may be, for example, an interval smaller than 0.005 (eg 0.001) or an interval greater than 0.005 (eg 0.010). For example, when the interval between delta uvs is 0.010, A of the graph 320 may be set to -0.010, B may be set to 0, C may be set to 0.010, and D may be set to 0.020. In addition, although the intervals A to D are exemplified as specified intervals, the intervals of A to D may be different from each other. For example, the interval between A to C may be set to 0.005, and the interval from C to D may be set to 0.010. Accordingly, A may be set to -0.005, B may be set to 0, C may be set to 0.005, and D may be set to 0.015.

일 실시예에서, 복수의 화이트 밸런스 게인들(WB1 내지 WB36) 중, 색 온도가 2000K인 경우, delta uv에 따라, 제1 화이트 밸런스 게인 셋(WB1, WB2, WB3, WB4)을 포함할 수 있다. 일 실시예에서, delta uv가 -0.005인 경우, 색 온도(2000K 내지 10000K)에 따라, 제2 화이트 밸런스 게인 셋(WB1, WB5, WB9, WB13, WB17, WB21, WB25, WB29, WB33)을 포함할 수 있다. 일 실시예에서, 전자 장치(예: 도 2의 전자 장치(200))는, 제1 화이트 밸런스 게인 셋 또는 제2 화이트 밸런스 게인 셋에 기반하여, 화이트 밸런스 동작을 수행할 수 있다.일 실시예에서, 테이블(320)은 도 3a의 그래프(310)에 대응하는 테이블일 수 있다. 예를 들어, 도 3a의 기호(341)에 대응하는 화이트 밸런스 게인은, 도 3b의 테이블(320)에서 색 온도가 3000K이고 delta uv가 0.005인 경우에 대응하는 화이트 밸런스 게인으로서 WB7일 수 있다.In an embodiment, among the plurality of white balance gains WB 1 to WB 36 , when the color temperature is 2000K, the first white balance gain set WB 1 , WB 2 , WB 3 , WB 4 according to delta uv ) may be included. In one embodiment, when delta uv is -0.005, according to the color temperature (2000K to 10000K), the second white balance gain set (WB 1 , WB 5 , WB 9 , WB 13 , WB 17 , WB 21 , WB 25 ) , WB 29 , WB 33 ) may be included. In an embodiment, the electronic device (eg, the electronic device 200 of FIG. 2 ) may perform a white balance operation based on the first white balance gain set or the second white balance gain set. , the table 320 may be a table corresponding to the graph 310 of FIG. 3A . For example, the white balance gain corresponding to the symbol 341 of FIG. 3A may be WB 7 as the white balance gain corresponding to the case where the color temperature is 3000K and the delta uv is 0.005 in the table 320 of FIG. 3B. .

일 실시예에서, 테이블(320)은 전자 장치(101)(예: 카메라 모듈(180))가 보증하는(또는 전자 장치(101)에서 구현 가능한) 색 온도 범위(예: 2000K 내지 10000K)에서 구성(또는 구축)될 수 있다. 다만, 이에 제한되지 않는다.In one embodiment, the table 320 is configured in a color temperature range (eg, 2000K to 10000K) guaranteed by (or implementable in the electronic device 101 ) by the electronic device 101 (eg, the camera module 180 ). It can be (or built). However, the present invention is not limited thereto.

일 실시예에서, 테이블(320)은 실험(또는 측정)을 통하여 구성될 수 있다. 예를 들어, 광원이 있는 환경에서 계측 장비를 이용하여 광원의 색 온도, delta uv, 및 화이트 밸런스 게인을 측정함으로써 테이블을 구성할 수 있다.In one embodiment, the table 320 may be constructed through experimentation (or measurement). For example, the table may be configured by measuring the color temperature, delta uv, and white balance gain of the light source using measuring equipment in an environment with a light source.

일 실시예에서, 테이블(320)은 메모리(130)(예: 메모리(250))에 저장될 수 있다.In one embodiment, table 320 may be stored in memory 130 (eg, memory 250 ).

이하에서, 도 4 내지 도 10을 참조하면, 테이블(320)에 기반하여 화이트 밸런스를 제공하기 위한 방법에 대하여 상세히 설명하도록 한다.Hereinafter, a method for providing white balance based on the table 320 will be described in detail with reference to FIGS. 4 to 10 .

본 발명의 다양한 실시예들에 따른 전자 장치(101)는, 이미지 센서(230), 상기 이미지 센서(230)와 기능적으로 연결된 프로세서(120), 및 상기 프로세서(120)와 연결되고, 복수의 색 온도들(color temperatures) 및 복수의 delta uv들에 대한 화이트 밸런스(white balance) 게인들(gains)을 포함하는 테이블(320)(table)을 저장한 메모리(130)를 포함하고, 상기 메모리(130)는, 실행 시, 상기 프로세서(120)가, 상기 이미지 센서(230)를 통하여 제 1 이미지를 획득하고, 상기 제 1 이미지에 기반하여 제 1 화이트 밸런스 게인을 결정하고, 상기 테이블(320) 및 상기 제 1 화이트 밸런스 게인에 기반하여, 상기 제 1 화이트 밸런스 게인과 관련된 적어도 하나의 delta uv를 결정하고, 사용자로부터 입력된 제 1 색 온도를 확인하고, 상기 테이블(320), 상기 제 1 색 온도, 및 상기 적어도 하나의 delta uv에 기반하여, 제 2 화이트 밸런스 게인을 결정하고, 및 상기 제 1 이미지에 상기 제 2 화이트 밸런스 게인을 적용함으로써, 제 2 이미지를 획득하도록 하는 인스트럭션들을 저장할 수 있다.The electronic device 101 according to various embodiments of the present disclosure includes an image sensor 230 , a processor 120 functionally connected to the image sensor 230 , and a plurality of colors connected to the processor 120 . a memory 130 storing a table 320 including white balance gains for color temperatures and a plurality of delta uvs; ), when executed, the processor 120 acquires a first image through the image sensor 230, determines a first white balance gain based on the first image, and the table 320 and At least one delta uv related to the first white balance gain is determined based on the first white balance gain, a first color temperature input from a user is checked, the table 320, the first color temperature , and determining a second white balance gain based on the at least one delta uv, and applying the second white balance gain to the first image to obtain a second image.

다양한 실시예에서, 상기 인스트럭션들은, 상기 프로세서(120)가, 상기 테이블(320) 내에서 상기 제 1 화이트 밸런스 게인에 대응하는 delta uv가 있는 경우, 상기 delta uv를 상기 적어도 하나의 delta uv로서 결정하도록 할 수 있다.In various embodiments, the instructions determine, by the processor 120 , the delta uv as the at least one delta uv when there is a delta uv corresponding to the first white balance gain in the table 320 . can make it

다양한 실시예에서, 상기 인스트럭션들은, 상기 프로세서(120)가, 상기 테이블(320) 내에서 상기 제 1 색 온도 및 상기 delta uv에 대응하는 화이트 밸런스 게인을 상기 제 2 화이트 밸런스 게인으로서 결정하도록 할 수 있다.In various embodiments, the instructions may cause the processor 120 to determine, as the second white balance gain, a white balance gain corresponding to the first color temperature and the delta uv in the table 320 . have.

다양한 실시예에서, 상기 인스트럭션들은, 상기 프로세서(120)가, 상기 테이블(320) 내에서 상기 제 1 화이트 밸런스 게인에 대응하는 delta uv가 없는 경우, 상기 제 1 화이트 밸런스 게인이 상기 테이블(320)에서 동일한 색 온도에 대응하는 인접한 적어도 2개의 화이트 밸런스 게인들에 의해 형성되는 라인 상에 있도록 하는, 상기 적어도 2개의 화이트 밸런스 게인들을 확인하고, 상기 적어도 2개의 화이트 밸런스 게인들 각각에 대응하는 제 1 delta uv 및 제 2 delta uv를 상기 적어도 하나의 delta uv로서 결정하고, 및 상기 제 1 화이트 밸런스 게인, 상기 적어도 2개의 화이트 밸런스 게인들에 기반하여, 상기 제 2 화이트 밸런스 게인을 결정하기 위한 제 1 게인 비율을 결정하도록 할 수 있다.In various embodiments, the instructions include, when the processor 120 does not have a delta uv corresponding to the first white balance gain in the table 320 , sets the first white balance gain to the table 320 . identify the at least two white balance gains, such that they are on a line formed by at least two adjacent white balance gains corresponding to the same color temperature, and a first corresponding to each of the at least two white balance gains a first for determining a delta uv and a second delta uv as the at least one delta uv, and for determining the second white balance gain based on the first white balance gain and the at least two white balance gains You can let it determine the gain ratio.

다양한 실시예에서, 상기 인스트럭션들은, 상기 프로세서(120)가, 상기 테이블(320), 상기 제 1 색 온도, 상기 제 1 delta uv, 상기 제 2 delta uv, 및 상기 제 1 게인 비율에 기반하여 상기 제 2 화이트 밸런스 게인을 결정하도록 할 수 있다.In various embodiments, the instructions are configured by the processor 120 based on the table 320, the first color temperature, the first delta uv, the second delta uv, and the first gain ratio. The second white balance gain may be determined.

다양한 실시예에서, 상기 인스트럭션들은, 상기 프로세서(120)가, 상기 테이블(320) 내에서 상기 제 1 화이트 밸런스 게인에 대응하는 delta uv가 없는 경우, 상기 제 1 화이트 밸런스 게인이 상기 테이블(320)에서 제 1-1 색 온도에 대응하는 바로 인접한 제 1-1 화이트 밸런스 게인 및 제 1-2 화이트 밸런스 게인, 제 1-1 색 온도의 바로 이전 또는 바로 다음의 제 1-2 색 온도에 대응하고 상기 제 1-1 화이트 밸런스 게인과 동일한 delta uv에 대응하는 제 1-3 화이트 밸런스 게인, 및 상기 1-2 색 온도에 대응하고 제 1-2 화이트 밸런스 게인과 동일한 delta uv에 대응하는 제 1-4 화이트 밸런스 게인에 의해 형성되는 사각형 내의 영역에 있도록 하는, 상기 제 1-1 화이트 밸런스 게인, 상기 제 1-2 화이트 밸런스 게인, 상기 제 1-3 화이트 밸런스 게인, 및 상기 제 1-4 화이트 밸런스 게인을 확인하고, 상기 제 1-1 화이트 밸런스 게인 및 상기 제 1-3 화이트 밸런스 게인에 대응하는 제 3 delta uv와 상기 제 1-2 화이트 밸런스 게인 및 상기 제 1-4 화이트 밸런스 게인에 대응하는 제 4 delta uv를 상기 적어도 하나의 delta uv로서 결정하고, 상기 제 1 화이트 밸런스 게인, 상기 제 1-2 화이트 밸런스 게인, 상기 제 1-3 화이트 밸런스 게인, 및 상기 제 1-4 화이트 밸런스 게인에 기반하여, 상기 제 2 화이트 밸런스 게인을 결정하기 위한 제 1 게인 비율을 결정하도록 할 수 있다.In various embodiments, the instructions include, when the processor 120 does not have a delta uv corresponding to the first white balance gain in the table 320 , sets the first white balance gain to the table 320 . 1-1 white balance gain and 1-2 white balance gain immediately adjacent corresponding to the 1-1 color temperature, corresponding to a 1-2 color temperature immediately preceding or immediately following the 1-1 color temperature, The 1-3th white balance gain corresponding to a delta uv equal to the 1-1 white balance gain, and the 1-th white balance gain corresponding to the 1-2 color temperature and corresponding to a delta uv equal to the 1-2th white balance gain the 1-1th white balance gain, the 1-2th white balance gain, the 1-3th white balance gain, and the 1-4th white balance to be in an area within a rectangle formed by the 4th white balance gain A gain is checked, and a third delta uv corresponding to the 1-1 white balance gain and the 1-3 white balance gain and a third delta uv corresponding to the 1-2 white balance gain and the 1-4 white balance gain are obtained. A fourth delta uv is determined as the at least one delta uv, and is applied to the first white balance gain, the 1-2 white balance gain, the 1-3 white balance gain, and the 1-4 white balance gain. Based on this, a first gain ratio for determining the second white balance gain may be determined.

다양한 실시예에서, 상기 인스트럭션들은, 상기 프로세서(120)가, 상기 테이블(320), 상기 제 1 색 온도, 상기 제 3 delta uv, 상기 제 4 delta uv, 및 상기 제 1 게인 비율에 기반하여 상기 제 2 화이트 밸런스 게인을 결정하도록 할 수 있다.In various embodiments, the instructions are configured by the processor 120 based on the table 320, the first color temperature, the third delta uv, the fourth delta uv, and the first gain ratio. The second white balance gain may be determined.

다양한 실시예에서, 상기 인스트럭션들은, 상기 프로세서(120)가, 상기 제 1 화이트 밸런스 게인에 대응하는 제 2 색 온도를 더 확인하고, 상기 테이블(320), 상기 제 1 색 온도, 상기 적어도 하나의 delta uv, 및 상기 제 1 색 온도 및 상기 제 2 색 온도 간 색 온도 차이에 기반하여, 상기 제 2 화이트 밸런스 게인을 결정하도록 할 수 있다.In various embodiments, the instructions include, by the processor 120 , further identifying a second color temperature corresponding to the first white balance gain, the table 320 , the first color temperature, and the at least one The second white balance gain may be determined based on delta uv and a color temperature difference between the first color temperature and the second color temperature.

다양한 실시예에서, 상기 인스트럭션들은, 상기 프로세서(120)가, 상기 색 온도 차이가 지정된 색 온도 차이 이상인 경우, 상기 테이블(320), 상기 제 1 색 온도, 및 상기 적어도 하나의 delta uv에 기반하여 결정한 화이트 밸런스 게인을, 등온도 선을 따라 흑체 궤적에 대응하는 화이트 밸런스 게인 방향으로 이동시킴으로써, 상기 제 2 화이트 밸런스 게인을 결정하도록 할 수 있다.In various embodiments, the instructions are configured by the processor 120, based on the table 320, the first color temperature, and the at least one delta uv, when the color temperature difference is greater than or equal to a specified color temperature difference. The second white balance gain may be determined by moving the determined white balance gain in the white balance gain direction corresponding to the blackbody locus along the isothermal line.

다양한 실시예에서, 상기 전자 장치(101)는, 디스플레이(예: 표시 장치(160))를 더 포함하고, 상기 인스트럭션들은, 상기 프로세서(120)가, 카메라 어플리케이션을 실행하는 사용자 입력을 수신하고, 상기 사용자 입력을 수신한 경우, 상기 제 1 이미지에 포함된 복수의 이미지 프레임들(frames) 각각에 대하여 상기 제 2 화이트 밸런스 게인을 적용하고, 상기 제 2 화이트 밸런스 게인이 적용된 상기 복수의 이미지 프레임들 각각을 포함하는 상기 제 2 이미지를 라이브 뷰(live view) 이미지로서 상기 디스플레이(예: 표시 장치(160))를 통하여 표시하도록 하고, 이미지 캡처를 위한 사용자 입력을 수신하고, 상기 이미지 센서(230)로부터 획득한 이미지에 대하여 상기 제 2 화이트 밸런스 게인을 적용함으로써, 제 3 이미지를 획득하고, 상기 획득된 제 3 이미지를 상기 메모리(130)에 저장할 수 있다.In various embodiments, the electronic device 101 further includes a display (eg, a display device 160 ), and the instructions include: the processor 120 receiving a user input for executing a camera application; When the user input is received, the second white balance gain is applied to each of a plurality of image frames included in the first image, and the second white balance gain is applied to the plurality of image frames to which the second white balance gain is applied. Display the second image including each as a live view image through the display (eg, the display device 160 ), receive a user input for image capture, and the image sensor 230 By applying the second white balance gain to the image obtained from , a third image may be obtained, and the obtained third image may be stored in the memory 130 .

본 발명의 다양한 실시예들에 따른 전자 장치(101)는, 카메라(예: 카메라 모듈(180)), 색 온도, 상기 색 온도와 관련된 delta uv, 및 복수의 화이트 밸런스 게인들을 저장하는 메모리(130), 및 상기 카메라(예: 카메라 모듈(180)) 및 상기 메모리(130)와 기능적으로 연결된 프로세서(120)를 포함하고, 상기 프로세서(120)는, 상기 카메라(예: 카메라 모듈(180))를 이용하여 제 1 이미지를 획득하고, 상기 제 1 이미지에 기반하여 제 1 화이트 밸런스 게인을 확인하고, 상기 카메라(예: 카메라 모듈(180))에 설정된 색 온도, 상기 delta uv, 상기 제 1 화이트 밸런스 게인, 및 상기 메모리(130)에 저장된 복수의 화이트 밸런스 게인들에 기반하여, 제 2 화이트 밸런스 게인을 결정하고, 및 상기 제 1 이미지에 상기 제 2 화이트 밸런스 게인을 적용한 제 2 이미지를 생성하도록 설정될 수 있다.The electronic device 101 according to various embodiments of the present disclosure includes a camera (eg, the camera module 180 ), a color temperature, a delta uv related to the color temperature, and a memory 130 for storing a plurality of white balance gains. ), and a processor 120 functionally connected to the camera (eg, camera module 180) and the memory 130, wherein the processor 120 includes the camera (eg, camera module 180). to obtain a first image, check a first white balance gain based on the first image, and determine the color temperature set in the camera (eg, the camera module 180 ), the delta uv, and the first white determine a second white balance gain based on the balance gain and a plurality of white balance gains stored in the memory 130 , and generate a second image in which the second white balance gain is applied to the first image can be set.

다양한 실시예에서, 상기 delta uv는 복수의 delta uv들을 포함하고, 상기 프로세서(120)는, 상기 제 1 화이트 밸런스 게인에 기반하여, 상기 제 1 화이트 밸런스 게인과 관련된 적어도 하나의 delta uv를 확인하도록 설정될 수 있다.In various embodiments, the delta uv includes a plurality of delta uvs, and the processor 120 is configured to identify, based on the first white balance gain, at least one delta uv related to the first white balance gain. can be set.

도 4는, 다양한 실시예들에 따른, 화이트 밸런스를 제공하는 방법을 설명하기 위한 흐름도(400)이다.4 is a flowchart 400 for explaining a method of providing white balance, according to various embodiments.

도 4를 참조하면, 동작 401에서, 일 실시예에서, 프로세서(120)(예: 이미지 시그널 프로세서(260))는, 이미지 센서(230)를 통하여 제 1 이미지를 획득할 수 있다.Referring to FIG. 4 , in operation 401 , in an embodiment, the processor 120 (eg, the image signal processor 260 ) may acquire a first image through the image sensor 230 .

일 실시예에서, 프로세서(120)(예: 이미지 시그널 프로세서(260))는, 이미지 센서(230)로부터 수신한 전기적 이미지 데이터를 보간(interpolation) 처리함으로써, 적색(red), 녹색(green), 및 청색(blue)의 RGB 데이터를 획득할 수 있다. 이하에서, RGB 데이터를 '제 1 이미지 데이터'로 지칭하고, 제 1 이미지 데이터에 기반하여 구성되는 이미지를 '제 1 이미지'로 지칭하기로 한다. In an embodiment, the processor 120 (eg, the image signal processor 260 ) performs interpolation processing on electrical image data received from the image sensor 230 to obtain red, green, and blue RGB data. Hereinafter, RGB data will be referred to as 'first image data', and an image constructed based on the first image data will be referred to as 'first image'.

일 실시예에서, 프로세서(120)(예: 이미지 시그널 프로세서(260))는, 이미지 센서(230)로부터 수신한 전기적 이미지 데이터에 대하여 CDS(correlated double sampling) 동작, AGC(automatic gain control), 및 A/D(analog to digital) 변환 동작을 더 수행할 수 있다,In an embodiment, the processor 120 (eg, the image signal processor 260 ) performs a correlated double sampling (CDS) operation, automatic gain control (AGC), and A/D (analog to digital) conversion operation may be further performed,

동작 403에서, 일 실시예에서, 프로세서(120)(예: 이미지 시그널 프로세서(260))는, 제 1 이미지(또는 제 1 이미지 데이터)에 기반하여 제 1 화이트 밸런스 게인을 결정할 수 있다. In operation 403 , in an embodiment, the processor 120 (eg, the image signal processor 260 ) may determine a first white balance gain based on a first image (or first image data).

일 실시예에서, 프로세서(120)(예: 이미지 시그널 프로세서(260))는, 제 1 이미지 데이터에 기반하여, 제 1 이미지 내에서 화이트(또는 그레이(gray), 또는 무채색) 영역을 결정할 수 있다. 예를 들어, 프로세서(120)는, 하나의 이미지 프레임(frame)의 제 1 이미지의 복수의 영역들(또는 블록들(blocks) 또는 패치들(patches)) 각각의 RGB 데이터를, R 데이터, G 데이터, 및 B 데이터 각각에 대하여 적산(또는 적분)할 수 있다. 예를 들어, 프로세서(120)는, 제 1 이미지가 제 1 영역 내지 제 9 영역을 포함하는 경우, 제 1 영역 내지 제 9 영역 별로, R 데이터 적산 값, G 데이터 적산 값, 및 B 데이터 적산 값을 결정(또는 산출)할 수 있다. 프로세서(120)는, 복수의 영역들 각각의 영역의 R 데이터 적산 값, G 데이터 적산 값, 및 B 데이터 적산 값에 기반하여, 복수의 영역들 중 화이트 영역을 결정할 수 있다. 예를 들어, 프로세서(120)는, 복수의 영역들 각각의 R 데이터 적산 값, G 데이터 적산 값, 및 B 데이터 적산 값에 기반하여, 복수의 영역들 각각의 R/G(예: G 데이터 적산 값에 대한 R 데이터 적산 값의 비율) 및 B/G(예: G 데이터 적산 값에 대한 B 데이터 적산 값의 비율)를 결정할 수 있다. 프로세서(120)는, 복수의 영역들 중에서 R/G 및 B/G가 지정된 범위(예: 흑체 궤적의 R/G 및 B/G로부터 지정된 좌표 범위) 내에 있는 영역을 화이트 영역으로 결정할 수 있다. 다만, 프로세서(120)가 화이트 영역을 결정하는 방법은 전술한 예시에 제한되지 않는다.In an embodiment, the processor 120 (eg, the image signal processor 260 ) may determine a white (or gray, or achromatic) region in the first image based on the first image data. . For example, the processor 120 may convert RGB data of each of a plurality of regions (or blocks or patches) of the first image of one image frame, R data, G Data and B data may be integrated (or integrated) respectively. For example, when the first image includes the first region to the ninth region, the processor 120 may determine the R data integration value, the G data integration value, and the B data integration value for each of the first to ninth regions. can be determined (or calculated). The processor 120 may determine a white area among the plurality of areas based on the integrated R data value, the G data integrated value, and the B data integrated value of each of the plurality of areas. For example, the processor 120 may generate R/G (eg, G data integration) of each of the plurality of regions based on the integrated R data value, the G data integration value, and the B data integration value of each of the plurality of regions. It is possible to determine the ratio of the R data total value to the value) and B/G (eg the ratio of the B data total value to the G data total value). The processor 120 may determine, among the plurality of regions, an area within a range in which R/G and B/G are designated (eg, a coordinate range designated from R/G and B/G of the blackbody locus) as the white area. However, the method for the processor 120 to determine the white area is not limited to the above-described example.

일 실시예에서, 전술한 실시예들에서는, 이미지 센서(230)로부터 획득한 이미지 데이터가 보간 처리된 RGB 데이터에 기반하여 화이트 영역을 결정하는 것으로 설명하고 있지만 이에 제한되지 않는다. 예를 들어, 프로세서(120)는, 보간 처리하기 전 이미지 센서(230)로부터 획득한 이미지 데이터에 기반하여, 전술한 화이트 영역을 결정하는 방법과 동일 또는 유사한 방법을 이용하여 화이트 영역을 결정할 수도 있다.In an embodiment, although it is described that the white area is determined based on RGB data obtained by interpolation of image data obtained from the image sensor 230 in the above-described embodiments, the present invention is not limited thereto. For example, the processor 120 may determine the white area using the same or similar method to the above-described method of determining the white area, based on image data obtained from the image sensor 230 before the interpolation process. .

일 실시예에서, 프로세서(120)(예: 이미지 시그널 프로세서(260))는, 화이트 영역으로 결정된 영역의 R/G 및 B/G 각각의 역수를 제 1 화이트 밸런스 게인으로서 결정할 수 있다. 다만, 제 1 화이트 밸런스 게인을 결정하는 방법은, 전술한 화이트 영역으로 결정된 영역의 R/G 및 B/G에 기반하여 제 1 화이트 밸런스 게인을 결정하는 방법에 제한되지 않는다.In an embodiment, the processor 120 (eg, the image signal processor 260 ) may determine the reciprocal of each of R/G and B/G of the region determined as the white region as the first white balance gain. However, the method of determining the first white balance gain is not limited to the method of determining the first white balance gain based on R/G and B/G of the region determined as the above-described white region.

일 실시예에서, 프로세서(120)(예: 이미지 시그널 프로세서(260))는, 이미지 센서(230)로부터 연속적으로 복수의 제 1 이미지들(또는 복수의 제 1 이미지 데이터)을 획득하는 경우, 복수의 제 1 이미지들 각각에 대한 제 1 화이트 밸런스 게인들을 결정할 수 있다. 예를 들어, 프로세서(120)는, 이미지 센서(230)로부터 동영상을 구성하는 복수의 이미지 프레임들(frames)을 획득하는 경우, 복수의 이미지들 프레임들 각각에 대한 제 1 화이트 밸런스 게인들을 결정할 수 있다. 일 실시예에서, 프로세서(120)는, 결정된 제 1 화이트 밸런스 게인을 메모리(130)(예: 메모리(230))에 저장할 수 있다. 예를 들어, 프로세서(120)는, 복수의 이미지들 프레임들 각각에 대한 제 1 화이트 밸런스 게인들을 결정하는 경우, 결정된 제 1 화이트 밸런스 게인들을 메모리(130)에 저장할 수 있다. In an embodiment, when the processor 120 (eg, the image signal processor 260 ) continuously acquires a plurality of first images (or a plurality of first image data) from the image sensor 230 , the plurality of It is possible to determine first white balance gains for each of the first images of . For example, when obtaining a plurality of image frames constituting a video from the image sensor 230 , the processor 120 may determine first white balance gains for each of the plurality of image frames. have. In an embodiment, the processor 120 may store the determined first white balance gain in the memory 130 (eg, the memory 230 ). For example, when determining first white balance gains for each of the plurality of image frames, the processor 120 may store the determined first white balance gains in the memory 130 .

동작 405에서, 일 실시예에서, 프로세서(120)(예: 이미지 시그널 프로세서(260))는, 테이블(320) 및 제 1 화이트 밸런스 게인에 기반하여, 제 1 화이트 밸런스 게인과 관련된 적어도 하나의 delta uv를 결정할 수 있다.In operation 405 , in one embodiment, the processor 120 (eg, the image signal processor 260 ) is configured to: based on the table 320 and the first white balance gain, at least one delta associated with the first white balance gain uv can be determined.

일 실시예에서, 프로세서(120)(예: 이미지 시그널 프로세서(260))는, 제 1 화이트 밸런스 게인(또는 제 1 화이트 밸런스 게인의 좌표(예: (Rgain, Bgain)))과 동일한 화이트 밸런스 게인이 테이블(320)에 있는 경우, 테이블(320)에서 제 1 화이트 밸런스 게인과 동일한 화이트 밸런스 게인에 대응하는 하나의 delta uv를, 제 1 화이트 밸런스 게인과 관련된 delta uv로서 결정(예: 판단)할 수 있다. 예를 들어, 도 3b의 테이블(320)을 참조하면, 프로세서(120)는, 제 1 화이트 밸런스 게인이 WB7인 것으로 결정되면, 테이블(320)에서 WB7에 대응하는 C(예: 0.005)를 제 1 화이트 밸런스 게인과 관련된 delta uv로서 결정할 수 있다. In one embodiment, the processor 120 (eg, image signal processor 260 ) provides a white balance gain equal to the first white balance gain (or the coordinates of the first white balance gain (eg, (Rgain, Bgain))). If in this table 320, one delta uv corresponding to the white balance gain equal to the first white balance gain in the table 320 is determined (eg, determined) as the delta uv associated with the first white balance gain. can For example, referring to the table 320 of FIG. 3B , when it is determined that the first white balance gain is WB 7 , the processor 120 determines C corresponding to WB 7 in the table 320 (eg, 0.005). may be determined as delta uv related to the first white balance gain.

일 실시예에서, 프로세서(120)(예: 이미지 시그널 프로세서(260))는, 제 1 화이트 밸런스 게인과 동일한 화이트 밸런스 게인이 테이블(320)에 없으나, 제 1 화이트 밸런스 게인이 테이블(320)에서 동일한 색 온도에 대응하는 바로 인접한(여기서, '바로 인접한'은 테이블(320)에서 대응하는 delta uv들이 바로 인접한 것을 의미함) 2개의 화이트 밸런스 게인들에 의해 형성되는 라인(예: 상당히 직선) 상에 있도록 하는, 상기 2개의 화이트 밸런스 게인들을 확인할 수 있다. 프로세서(120)는, 예를 들면, 상기 2개의 화이트 밸런스 게인들과 각각 대응하는 2개의 delta uv들을 제 1 화이트 밸런스 게인과 관련된 delta uv들로서 결정할 수 있다. 일 실시예에서, 프로세서(120)는, 제 1 화이트 밸런스 게인과 상기 결정(예: 확인)된 2개의 화이트 밸런스들에 기반하여, 후술할 제 2 화이트 밸런스 게인을 결정하기 위한 비율(이하에서, '제 1 게인 비율'로 지칭하기로 함)을 더 결정(예: 판단)할 수 있다. 제 1 게인 비율을 결정하는 방법에 대해서는 도 5b를 참조하여 상세히 후술하도록 한다.In one embodiment, the processor 120 (eg, the image signal processor 260 ) is configured such that a white balance gain equal to the first white balance gain is not in the table 320 , but the first white balance gain is in the table 320 . On a line (e.g., fairly straight line) formed by two immediately adjacent (here, 'immediately adjacent' means that the corresponding delta uvs in table 320 are immediately adjacent) corresponding to the same color temperature It can be seen that the two white balance gains, The processor 120 may determine, for example, two delta uvs respectively corresponding to the two white balance gains as delta uvs related to the first white balance gain. In an embodiment, the processor 120 is configured to determine a ratio for determining a second white balance gain, which will be described later, based on the first white balance gain and the two determined (eg, confirmed) white balances. A 'first gain ratio') may be further determined (eg, determined). A method of determining the first gain ratio will be described later in detail with reference to FIG. 5B .

예를 들어, 도 3b의 테이블(320)을 참조하면, 프로세서(120)(예: 이미지 시그널 프로세서(260))는, 제 1 화이트 밸런스 게인과 테이블(320)에 동일한 화이트 밸런스 게인이 없음을 확인할 수 있다. 프로세서(120)는, 일 실시예에 따르면, 테이블(320)에서, 제 1 화이트 밸런스 게인과 동일한 색 온도(예: 4000K)에 대응하는 바로 인접한 2개의 WB11 및 WB12에 의해 형성되는 상당히 직선 상에 있도록 하는, 2개의 WB11 및 WB12를 확인할 수 있다. 프로세서(120)는, 2개의 WB11 및 WB12에 각각 대응하는 C(예: 0.005) 및 D(예: 0.010)를 제 1 화이트 밸런스 게인과 관련된 delta uv들로서 결정할 수 있다. 일 실시예에서, 프로세서(120)는, 제 1 화이트 밸런스 게인과 WB11 및 WB12에 기반하여 제 1 게인 비율을 더 결정할 수 있다.For example, referring to the table 320 of FIG. 3B , the processor 120 (eg, the image signal processor 260 ) checks that the first white balance gain and the table 320 do not have the same white balance gain. can The processor 120 may, according to one embodiment, in the table 320 , a fairly straight line formed by two immediately adjacent WB 11 and WB 12 corresponding to a color temperature equal to the first white balance gain (eg 4000K). You can see the two WB 11 and WB 12 , which are on top. The processor 120 may determine C (eg, 0.005) and D (eg, 0.010) corresponding to the two WB 11 and WB 12 , respectively, as delta uvs related to the first white balance gain. In an embodiment, the processor 120 may further determine the first gain ratio based on the first white balance gain and WB 11 and WB 12 .

일 실시예에서, 프로세서(120)(예: 이미지 시그널 프로세서(260))는, 제 1 화이트 밸런스 게인과 동일한 화이트 밸런스 게인이 테이블(320)에 없으나, 제 1 화이트 밸런스 게인이, 테이블(320)에서 제 1-1 색 온도에 대응하는 바로 인접한 제 1-1 화이트 밸런스 게인 및 제 1-2 화이트 밸런스 게인, 제 1-1 색 온도의 바로 이전 또는 바로 다음의 제 1-2 색 온도에 대응하고 제 1-1 화이트 밸런스 게인과 동일한 delta uv에 대응하는 제 1-3 화이트 밸런스 게인, 및 제 1-3 화이트 밸런스 게인과 동일한 색 온도로서 제 1-2 색 온도에 대응하고 제 1-2 화이트 밸런스 게인과 동일한 delta uv에 대응하는 제 1-4 화이트 밸런스 게인에 의해 형성되는 사각형(예: 상당히 평행 사변형) 내의 영역에 있도록 하는, 제 1-1 화이트 밸런스 게인 및 제 1-3 화이트 밸런스 게인에 대응하는 delta uv와 제 1-2 화이트 밸런스 게인 및 제 1-4 화이트 밸런스 게인에 대응하는 delta uv를, 제 1 화이트 밸런스 게인과 관련된 delta uv로서 결정할 수 있다. 일 실시예에서, 프로세서(120)는, 제 1 화이트 밸런스 게인과 상기 결정된 4개의 화이트 밸런스들(예: 1-1 화이트 밸런스 게인, 1-2 화이트 밸런스 게인, 1-3 화이트 밸런스 게인, 1-4 화이트 밸런스 게인)에 기반하여, 제 1 게인 비율을 더 결정할 수 있다. In one embodiment, the processor 120 (eg, the image signal processor 260 ) is configured such that there is no white balance gain in the table 320 equal to the first white balance gain, but the first white balance gain is 1-1 white balance gain and 1-2 white balance gain immediately adjacent corresponding to the 1-1 color temperature, corresponding to a 1-2 color temperature immediately preceding or immediately following the 1-1 color temperature, The 1-3th white balance gain corresponding to the delta uv equal to the 1-1th white balance gain, and the 1-2th white balance gain corresponding to the 1-2th color temperature as the color temperature equal to the 1-3th white balance gain Corresponding to 1-1 white balance gain and 1-3 white balance gain, to be in an area within a rectangle (eg substantially parallelogram) formed by 1-4th white balance gain corresponding to delta uv equal to gain A delta uv corresponding to the first white balance gain and the first and second white balance gain and a delta uv corresponding to the 1-4th white balance gain may be determined as delta uv related to the first white balance gain. In an embodiment, the processor 120 is configured to perform a first white balance gain and the determined four white balances (eg, 1-1 white balance gain, 1-2 white balance gain, 1-3 white balance gain, 1- 4 white balance gain), a first gain ratio may be further determined.

예를 들어, 도 3b의 테이블(320)을 참조하면, 프로세서(120)(예: 이미지 시그널 프로세서(260))는, 제 1 화이트 밸런스 게인과 테이블(320)에 동일한 화이트 밸런스 게인이 없음을 확인할 수 있다. 프로세서(120)는, 제 1 화이트 밸런스 게인이, 테이블(320)에서 4000K에 대응하는 WB11 및 WB12와, 4000K 다음의 색 온도로서 5000K에 대응하며 WB11과 동일한 C에 대응하는 WB15, 및 5000K에 대응하며 WB12와 동일한 D에 대응하는 WB16에 의해 형성되는 사각형 내에 있도록 하는, WB11, WB12, WB15, 및 WB16를 확인할 수 있다. 프로세서(120)는, WB11, WB15에 대응하는 C와, WB12, WB16에 대응하는 D를 제 1 화이트 밸런스 게인과 관련된 delta uv들로서 결정할 수 있다. 일 실시예에서, 프로세서(120)는, 제 1 화이트 밸런스 게인과 WB11, WB12, WB15, 및 WB16에 기반하여 제 1 게인 비율을 더 결정할 수 있다.For example, referring to the table 320 of FIG. 3B , the processor 120 (eg, the image signal processor 260 ) checks that the first white balance gain and the table 320 do not have the same white balance gain. can The processor 120 has the first white balance gain, WB 11 and WB 12 corresponding to 4000K in the table 320, and WB 15 corresponding to C and the same as WB 11 and corresponding to 5000K as a color temperature following 4000K, and WB 11 , WB 12 , WB 15 , and WB 16 , which are within a rectangle formed by WB 16 corresponding to 5000K and corresponding to D equal to WB 12 . The processor 120 may determine C corresponding to WB 11 and WB 15 and D corresponding to WB 12 and WB 16 as delta uvs related to the first white balance gain. In an embodiment, the processor 120 may further determine the first gain ratio based on the first white balance gain and WB 11 , WB 12 , WB 15 , and WB 16 .

동작 407에서, 일 실시예에서, 프로세서(120)(예: 이미지 시그널 프로세서(260))는, 사용자로부터 입력된 색 온도(이하, '사용자 입력 색 온도'로 지칭함)를 확인할 수 있다.In operation 407 , in an embodiment, the processor 120 (eg, the image signal processor 260 ) may identify a color temperature (hereinafter, referred to as a 'user input color temperature') input by the user.

일 실시예에서, 프로세서(120)(예: 메인 프로세서(121))는, 디스플레이(예: 표시 장치(160))를 통하여, 사용자로부터 색 온도를 입력 받기 위한 인터페이스를 표시할 수 있다. 프로세서(120)(예: 이미지 시그널 프로세서(260))는 인터페이스를 이용하여 사용자로부터 색 온도가 입력되면, 입력된 색 온도를 확인할 수 있다.In an embodiment, the processor 120 (eg, the main processor 121 ) may display an interface for receiving a color temperature input from a user through a display (eg, the display device 160 ). When a color temperature is input by the user using the interface, the processor 120 (eg, the image signal processor 260 ) may check the input color temperature.

동작 409에서, 일 실시예에서, 프로세서(120)(예: 이미지 시그널 프로세서(260))는, 테이블(320), 사용자 입력 색 온도, 및 적어도 하나의 delta uv에 기반하여, 제 2 화이트 밸런스 게인을 결정할 수 있다.In operation 409 , in one embodiment, the processor 120 (eg, the image signal processor 260 ) is configured to generate a second white balance gain based on the table 320 , the user input color temperature, and the at least one delta uv. can be decided

일 실시예에서, 프로세서(120)(예: 이미지 시그널 프로세서(260))는, 테이블(320)에 기반하여(또는 테이블(320)을 참조하여), 테이블(320) 내에서 사용자 입력 색 온도 및 적어도 하나의 delta uv에 대응하는 화이트 밸런스 게인을 확인할 수 있다. 프로세서(120)는, 확인된 화이트 밸런스 게인을 제 2 화이트 밸런스 게인으로 결정할 수 있다.In one embodiment, the processor 120 (eg, the image signal processor 260 ) is configured to, based on (or with reference to the table 320 ), the user input color temperature and the user input color temperature and the table 320 within the table 320 . A white balance gain corresponding to at least one delta uv may be identified. The processor 120 may determine the checked white balance gain as the second white balance gain.

일 실시예에서, 프로세서(120)(예: 이미지 시그널 프로세서(260))는, 동작 405에서 하나의 delta uv가 제 1 화이트 밸런스 게인과 관련된 delta uv로 결정된 경우, 테이블(320) 내에서 사용자 입력 색 온도 및 상기 하나의 delta uv에 대응하는 화이트 밸런스 게인을 제 2 화이트 밸런스 게인으로 결정할 수 있다.In one embodiment, the processor 120 (eg, the image signal processor 260 ) is configured to, in operation 405 , when one delta uv is determined to be a delta uv related to the first white balance gain, a user input in the table 320 . A white balance gain corresponding to the color temperature and the one delta uv may be determined as the second white balance gain.

일 실시예에서, 프로세서(120)(예: 이미지 시그널 프로세서(260))는, 동작 405에서 2개의 delta uv들이 제 1 화이트 밸런스 게인과 관련된 delta uv들로 결정된 경우, 테이블(320) 내에서 상기 2개의 delta uv들, 사용자 입력 색 온도 및 제 1 게인 비율에 기반하여, 제 2 화이트 밸런스 게인을 결정할 수 있다. 예를 들어, 프로세서(120)는, 동작 405에서 2개의 delta uv들이 제 1 화이트 밸런스 게인과 관련된 delta uv들로 결정된 경우, 테이블(320) 내에서 사용자 입력 색 온도에 대응하고 2개의 delta uv들 각각과 대응하는 2개의 화이트 밸런스 게인들을 확인할 수 있다. 프로세서(120)는, 상기 확인된 2개의 화이트 밸런스들 및 제 1 게인 비율에 기반하여, 제 2 화이트 밸런스 게인을 결정할 수 있다.In one embodiment, the processor 120 (eg, the image signal processor 260 ) is configured to, in operation 405 , determine the two delta uvs as the delta uvs related to the first white balance gain in the table 320 . The second white balance gain may be determined based on the two delta uvs, the user input color temperature, and the first gain ratio. For example, if the two delta uvs are determined to be delta uvs related to the first white balance gain in operation 405 , the processor 120 may correspond to the user input color temperature in the table 320 and set the two delta uvs in the table 320 . Two white balance gains corresponding to each can be identified. The processor 120 may determine the second white balance gain based on the two checked white balances and the first gain ratio.

동작 411에서, 일 실시예에서, 프로세서(120)(예: 이미지 시그널 프로세서(260))는, 제 1 이미지(또는 제 1 이미지 데이터)에 제 2 화이트 밸런스 게인을 적용함으로써, 제 2 이미지를 획득할 수 있다.In operation 411 , in an embodiment, the processor 120 (eg, the image signal processor 260 ) obtains a second image by applying a second white balance gain to the first image (or first image data). can do.

일 실시예에서, 프로세서(120)(예: 이미지 시그널 프로세서(260))는, 동작 401에서 이미지 센서(230)로부터 획득한 이미지 데이터가 보간 처리된 RGB 데이터 각각에 제 2 화이트 밸런스 게인을 곱함으로써 제 2 이미지를 획득할 수 있다. 예를 들어, 프로세서(120)는, 이미지 센서(230)의 각 픽셀의 보간 처리된 R 데이터, G 데이터, B 데이터에서, R 데이터에 대하여 제 2 화이트 밸런스 게인의 R게인을 곱하고, B 데이터에 B 게인을 곱함으로써, 제 2 이미지를 획득할 수 있다.In an embodiment, the processor 120 (eg, the image signal processor 260 ) multiplies the RGB data obtained by interpolating the image data obtained from the image sensor 230 by a second white balance gain in operation 401 . A second image may be acquired. For example, in the interpolated R data, G data, and B data of each pixel of the image sensor 230 , the processor 120 multiplies the R data by the R gain of the second white balance gain, and adds the B data to the R data. By multiplying the B gain, the second image may be obtained.

일 실시예에서, 프로세서(120)(예: 이미지 시그널 프로세서(260))는, 제 2 이미지에 대하여 다양한 이미지 처리를 더 수행할 수 있다. 예를 들어, 프로세서(120)는, 제 2 이미지의 크기를 조정(scaling)하거나 제 2 이미지에 대한 감마 보정(gamma correction), 또는 컬러 보정(color correction) 중 적어도 하나를 더 수행할 수 있다. 다만, 프로세서(120)가 수행하는 이미지 처리는 전술한 예시에 제한되지 않는다.In an embodiment, the processor 120 (eg, the image signal processor 260 ) may further perform various image processing on the second image. For example, the processor 120 may further perform at least one of scaling the second image or performing gamma correction or color correction on the second image. However, the image processing performed by the processor 120 is not limited to the above-described example.

일 실시예에서, 프로세서(120)(예: 이미지 시그널 프로세서(260))는, 제 2 이미지를 지정된 형태(또는 포맷(format))의 이미지로 변환할 수 있다. 예를 들어, 프로세서(120)는, 제 2 이미지를 JPEG(joint photographic experts group) 형태의 이미지로 변환할 수 있다. 다만, 제 2 이미지가 변환되는 이미지의 형태는 JPEG에 제한되지 않는다.In an embodiment, the processor 120 (eg, the image signal processor 260 ) may convert the second image into an image of a specified form (or format). For example, the processor 120 may convert the second image into a joint photographic experts group (JPEG) type image. However, the form of the image into which the second image is converted is not limited to JPEG.

일 실시예에서, 프로세서(120)(예: 이미지 시그널 프로세서(260))는, 변환된 이미지를 메모리(130)(예: 메모리(250))에 저장할 수 있다.In an embodiment, the processor 120 (eg, the image signal processor 260 ) may store the converted image in the memory 130 (eg, the memory 250 ).

일 실시예에서, 프로세서(120)(예: 이미지 시그널 프로세서(260))는, 제 2 이미지 또는 제 2 이미지가 변환된 이미지를 디스플레이(예: 표시 장치(160))를 통하여 표시할 수 있다. 예를 들어, 프로세서(120)는, 제 2 이미지를 획득한 것에 응답하여, 제 2 이미지를 디스플레이(예: 표시 장치(160))를 통하여 표시할 수 있다. In an embodiment, the processor 120 (eg, the image signal processor 260 ) may display the second image or an image converted from the second image through a display (eg, the display device 160 ). For example, in response to acquiring the second image, the processor 120 may display the second image through a display (eg, the display device 160 ).

도 5a 및 도 5b는, 다양한 실시예들에 따른, 화이트 밸런스를 제공하는 방법을 설명하기 위한 예시도이다.5A and 5B are exemplary diagrams for explaining a method of providing a white balance, according to various embodiments.

도 5a 및 도 5b를 참조하면, 일 실시예에서, 그래프(예: 도 5a의 그래프(510), 도 5b의 그래프(520))에서, 제 1 라인(521-1)은 흑체 궤적 상의 화이트 밸런스 게인들을 나타낼 수 있다. 예를 들어, 제 1 라인(521-1)은 delta uv가 0(또는 도 3b 테이블(320)의 B)인 경우에 대응하는 화이트 밸런스 게인들을 나타낼 수 있다. 일 실시예에서, 제 2 라인(521-2)은 delta uv가 -0.005(또는 도 3b 테이블(320)의 A)인 경우에 대응하는 화이트 밸런스 게인들을 나타낼 수 있다. 일 실시예에서, 제 3 라인(521-3)은 delta uv가 0.005(또는 +0.005)(또는 도 3b 테이블(320)의 C)인 경우에 대응하는 화이트 밸런스 게인들을 나타낼 수 있다. 일 실시예에서, 제 4 라인(521-4)은 delta uv가 0.010(또는 +0.010)(또는 도 3b 테이블(320)의 D)인 경우에 대응하는 화이트 밸런스 게인들을 나타낼 수 있다. 예를 들어, 그래프(510)의 가로축은 R 게인(도 3a의 Rgain)을 의미할 수 있고, 세로축은 B 게인(도 3a의 Bgain)을 의미할 수 있다. R 게인은, 예를 들면, 0 내지 3의 범위를 포함할 수 있고, B 게인은, 예를 들면, 0 내지 5의 범위를 포함할 수 있다. 도시된 실시예에 한정되는 것은 아니며, 다양한 실시예에 따라 R 게인 및 B 게인의 범위는 확장될 수 있다.5A and 5B , in one embodiment, in a graph (eg, graph 510 of FIG. 5A and graph 520 of FIG. 5B ), a first line 521-1 is a white balance on a blackbody locus. gains can be expressed. For example, the first line 521-1 may represent white balance gains corresponding to a case in which delta uv is 0 (or B in the table 320 of FIG. 3B ). In an embodiment, the second line 521 - 2 may represent white balance gains corresponding to a case where delta uv is -0.005 (or A in the table 320 of FIG. 3B ). In one embodiment, the third line 521-3 may represent white balance gains corresponding to a case where delta uv is 0.005 (or +0.005) (or C in FIG. 3B table 320 ). In one embodiment, the fourth line 521-4 may represent white balance gains corresponding to a case where delta uv is 0.010 (or +0.010) (or D in FIG. 3B table 320 ). For example, the horizontal axis of the graph 510 may indicate the R gain (Rgain of FIG. 3A ), and the vertical axis may indicate the B gain (Bgain of FIG. 3A ). R gain may include, for example, a range of 0 to 3, and B gain may include, for example, a range of 0 to 5. It is not limited to the illustrated embodiment, and the ranges of the R gain and the B gain may be extended according to various embodiments.

일 실시예에서, 도 5a 및 도 5b에서, 복수의 라인들(예: 제 1 라인(531-1) 내지 제 9 라인(531-9)) 각각은, 동일한 색 온도(또는 동일한 상관 색 온도)에 대응하는 화이트 밸런스 게인들을 나타낼 수 있다. 예를 들어, 제 1 라인(531-1) 상의 화이트 밸런스 게인은 동일한 색 온도로서 2000K(kelvin)(또는 절대 온도)에 대응하는 화이트 밸런스 게인들을 나타낼 수 있다. 다른 예를 들어, 제 9 라인(531-9) 상의 화이트 밸런스 게인은 동일한 색 온도로서 10000K에 대응하는 화이트 밸런스 게인들을 나타낼 수 있다.In one embodiment, in FIGS. 5A and 5B , each of the plurality of lines (eg, the first line 531-1 to the ninth line 531-9) has the same color temperature (or the same correlated color temperature). may represent white balance gains corresponding to . For example, the white balance gains on the first line 531-1 may represent white balance gains corresponding to 2000 K (kelvin) (or absolute temperature) as the same color temperature. As another example, the white balance gains on the ninth line 531 - 9 may represent white balance gains corresponding to 10000K as the same color temperature.

일 실시예에서, 프로세서(120)(예: 이미지 시그널 프로세서(260))는, 이미지 센서(230)로부터 획득한 제 1 이미지 데이터(또는 제 1 이미지)에 기반하여 제 1 화이트 밸런스 게인을 결정할 수 있다. 예를 들어, 도 5a에서, 프로세서(120)는, 화이트 밸런스 게인(또는 좌표)(541-1)을 제 1 화이트 밸런스 게인으로 결정할 수 있다. In an embodiment, the processor 120 (eg, the image signal processor 260 ) may determine the first white balance gain based on the first image data (or the first image) obtained from the image sensor 230 . have. For example, in FIG. 5A , the processor 120 may determine the white balance gain (or coordinates) 541-1 as the first white balance gain.

일 실시예에서, 프로세서(120)(예: 이미지 시그널 프로세서(260))는, 테이블(예: 도 3b의 테이블(320))을 참조하여, 제 1 화이트 밸런스 게인과 관련된 적어도 하나의 delta uv를 결정할 수 있다. 예를 들어, 도 5a에서, 프로세서(120)는, 제 1 화이트 밸런스 게인으로 결정된 화이트 밸런스 게인(또는 좌표)(541-1)이 WB7임을 확인하고, 테이블(예: 도 3b의 테이블(320))에서 WB7에 대응하는 delta uv가 C임을 확인할 수 있다.In one embodiment, the processor 120 (eg, the image signal processor 260 ) refers to a table (eg, the table 320 of FIG. 3B ) and calculates at least one delta uv associated with the first white balance gain. can decide For example, in FIG. 5A , the processor 120 determines that the white balance gain (or coordinates) 541-1 determined as the first white balance gain is WB 7 , and a table (eg, the table 320 of FIG. 3B ) )), it can be confirmed that the delta uv corresponding to WB 7 is C.

일 실시예에서, 프로세서(120)(예: 메인 프로세서(121))는, 사용자로부터 입력된 색 온도를 확인할 수 있다. 예를 들어, 프로세서(120)는, 사용자 입력 색 온도가 라인(531-5)(예: 색 온도 6000K에 대응하는 등온도 선(또는 등 색 온도선))에 대응하는 6000K임을 확인할 수 있다.In an embodiment, the processor 120 (eg, the main processor 121 ) may check the color temperature input by the user. For example, the processor 120 may determine that the user input color temperature is 6000K corresponding to the line 531-5 (eg, an isothermal line (or an isothermal line) corresponding to a color temperature of 6000K).

일 실시예에서, 프로세서(120)(예: 이미지 시그널 프로세서(260))는, 테이블(예: 도 3b의 테이블(320))을 참조하여, 사용자 입력 색 온도 및 제 1 화이트 밸런스 게인과 관련된 delta uv에 대응하는 제 2 화이트 밸런스 게인을 결정할 수 있다. 예를 들어, 프로세서(120)는, 사용자 입력 색 온도가 6000K이고 제 1 화이트 밸런스 게인로서 WB7과 관련된 delta uv가 C인 경우, 테이블(320)에서 6000K 및 C에 대응하는 WB19를 제 2 화이트 밸런스 게인으로서 결정할 수 있다.In one embodiment, processor 120 (eg, image signal processor 260 ) refers to a table (eg, table 320 in FIG. 3B ), and a delta associated with the user input color temperature and the first white balance gain. A second white balance gain corresponding to uv may be determined. For example, when the user input color temperature is 6000K and the delta uv associated with WB 7 as the first white balance gain is C, the processor 120 sets WB 19 corresponding to 6000K and C in the table 320 to the second It can be determined as the white balance gain.

도 5b에서, 일 실시예에서, 프로세서(120)(예: 이미지 시그널 프로세서(260))는, 이미지 센서(230)로부터 획득한 제 1 이미지 데이터(또는 제 1 이미지)에 기반하여 제 1 화이트 밸런스 게인을 결정할 수 있다. 예를 들어, 도 5b에서, 프로세서(120)는, 화이트 밸런스 게인(또는 좌표)(551)을 제 1 화이트 밸런스 게인으로 결정할 수 있다. In FIG. 5B , in one embodiment, the processor 120 (eg, the image signal processor 260 ) performs a first white balance based on first image data (or a first image) obtained from the image sensor 230 . gain can be determined. For example, in FIG. 5B , the processor 120 may determine the white balance gain (or coordinates) 551 as the first white balance gain.

일 실시예에서, 프로세서(120)(예: 이미지 시그널 프로세서(260))는, 테이블(예: 도 3b의 테이블(320))에 화이트 밸런스 게인(511)과 동일한 화이트 밸런스 게인에 없음을 확인할 수 있다. 프로세서(120)는, 예를 들면, 그래프(520) 또는 테이블(예: 도 3b의 테이블(320))에서, 화이트 밸런스 게인(551)이 인접한 다른 화이트 밸런스 게인들(예: 화이트 밸런스 게인(551-1), 화이트 밸런스 게인(551-2), 화이트 밸런스 게인(551-3), 및 화이트 밸런스 게인(551-4))에 의해 형성되는 사각형 내의 영역 내에 있도록 하는, 화이트 밸런스 게인(551-1), 화이트 밸런스 게인(551-2), 화이트 밸런스 게인(551-3), 및 화이트 밸런스 게인(551-4)을 결정(예: 확인)할 수 있다.In one embodiment, the processor 120 (eg, the image signal processor 260 ) may check that the white balance gain is not in the same white balance gain as the white balance gain 511 in the table (eg, the table 320 of FIG. 3B ). have. The processor 120, for example, in the graph 520 or a table (eg, the table 320 of FIG. 3B ), the white balance gain 551 is adjacent to other white balance gains (eg, the white balance gain 551 ) -1), white balance gain 551-1, white balance gain 551-3, and white balance gain 551-4) ), the white balance gain 551-2, the white balance gain 551-3, and the white balance gain 551-4 may be determined (eg, confirmed).

일 실시예에서, 프로세서(120)(예: 이미지 시그널 프로세서(260))는, 화이트 밸런스 게인(551-1) 및 화이트 밸런스 게인(551-3)에 대응하는 delta uv가 C임을 확인할 수 있고, 화이트 밸런스 게인(551-2) 및 화이트 밸런스 게인(551-4)에 대응하는 delta uv가 D임을 확인할 수 있다. In an embodiment, the processor 120 (eg, the image signal processor 260 ) may confirm that the delta uv corresponding to the white balance gain 551-1 and the white balance gain 551-3 is C, It can be confirmed that delta uv corresponding to the white balance gain 551-2 and the white balance gain 551-4 is D.

일 실시예에서, 프로세서(120)(예: 이미지 시그널 프로세서(260))는, 화이트 밸런스 게인(551-1), 화이트 밸런스 게인(551-2), 화이트 밸런스 게인(551-3), 화이트 밸런스 게인(551-4), 및 화이트 밸런스 게인(551)에 기반하여 제 1 게인 비율을 결정할 수 있다. 예를 들어, 도 5b에서, 화이트 밸런스 게인(551-1), 화이트 밸런스 게인(551-2), 화이트 밸런스 게인(551-3), 및 화이트 밸런스 게인(551-4)이 평행 사변형의 4개의 꼭지점이고, 제 1 화이트 밸런스 게인으로서 결정된 화이트 밸런스 게인(551)이, 화이트 밸런스 게인(551-1) 및 화이트 밸런스 게인(551-2)을 연결하는 선분과 화이트 밸런스 게인(551-3) 및 화이트 밸런스 게인(551-4)을 연결하는 선분과 실질적으로 평행하고 선분(551-5) 상에 있음을 가정할 수 있다. 프로세서(120)는, 예를 들면, 선분(551-5)를 외분하는 비율(예: 도 5b에서 b/a 또는 a:b)을 제 1 게인 비율로 결정할 수 있다. In one embodiment, the processor 120 (eg, the image signal processor 260 ) includes a white balance gain 551-1, a white balance gain 551-2, a white balance gain 551-3, and a white balance The first gain ratio may be determined based on the gains 551-4 and the white balance gain 551 . For example, in FIG. 5B , a white balance gain 551-1, a white balance gain 551-2, a white balance gain 551-3, and a white balance gain 551-4 are four parallelograms. A white balance gain 551 that is a vertex and determined as the first white balance gain is a line segment connecting the white balance gain 551-1 and the white balance gain 551-2, the white balance gain 551-3, and the white It can be assumed that the balance gain 551-4 is substantially parallel to the line segment connecting it and is on the line segment 551-5. The processor 120 may determine, for example, a ratio (eg, b/a or a:b in FIG. 5B ) for externally dividing the line segment 551 - 5 as the first gain ratio.

일 실시예에서, 프로세서(120)(예: 메인 프로세서(121))는, 사용자로부터 입력된 색 온도를 확인할 수 있다. 예를 들어, 프로세서(120)는, 사용자 입력 색 온도가 제 5 라인(531-5)(예: 색 온도 6000K에 대응하는 등온도 선(또는 등 색 온도선))에 대응하는 6000K임을 확인할 수 있다.In an embodiment, the processor 120 (eg, the main processor 121 ) may check the color temperature input by the user. For example, the processor 120 may confirm that the user input color temperature is 6000K corresponding to the fifth line 531-5 (eg, an isothermal line (or an isothermal line) corresponding to a color temperature of 6000K). have.

일 실시예에서, 프로세서(120)(예: 이미지 시그널 프로세서(260))는, 테이블(예: 도 3b의 테이블(320))을 참조하여, 사용자 입력 색 온도, 제 1 화이트 밸런스 게인과 관련된 복수의 delta uv들, 및 제 1 게인 비율에 기반하여, 제 2 화이트 밸런스 게인을 결정할 수 있다. 예를 들어, 프로세서(120)는, 색 온도 6000K에 대응하고 delta uv C 및 delta uv D 각각에 대응하는 화이트 밸런스 게인들이 화이트 밸런스 게인(552-1) 및 화이트 밸런스 게인(552-2)임을 확인할 수 있다. 화이트 밸런스 게인(552-1) 및 화이트 밸런스 게인(552-2)가 선분(또는 실질적으로 직선)(552-3)을 형성함을 가정할 수 있다. 일 실시예에서, 프로세서(120)는, 선분(552-3)을 제 1 게인 비율(예: b/a)로 외분하는 화이트 밸런스 게인(552)을 제 2 화이트 밸런스 게인으로서 결정할 수 있다. In one embodiment, the processor 120 (eg, the image signal processor 260 ) refers to a table (eg, the table 320 of FIG. 3B ), and refers to a plurality of values related to a user input color temperature and a first white balance gain. The second white balance gain may be determined based on the delta uvs of , and the first gain ratio. For example, the processor 120 may determine that the white balance gains corresponding to the color temperature of 6000K and corresponding to each of delta uv C and delta uv D are the white balance gain 552-1 and the white balance gain 552-2. can It may be assumed that the white balance gain 552-1 and the white balance gain 552-2 form a line segment (or substantially straight line) 552-3. In an embodiment, the processor 120 may determine a white balance gain 552 that divides the line segment 552 - 3 by a first gain ratio (eg, b/a) as the second white balance gain.

도 5b에서는, delta uv들 및 제 1 게인 비율 결정을 위하여 4개의 화이트 밸런스 게인들(551-1, 551-2, 551-3, 551-4)을 이용하는 예시를 설명하였지만, 이에 제한되지 않는다. 일 실시예에서, 도 5b와 다르게, 제 1 화이트 밸런스 게인이 2개의 화이트 밸런스 게인들에 의해 형성되는 선분(또는 실질적으로 직선) 상에 있는 경우, 프로세서(120)(예: 이미지 시그널 프로세서(260))는, 선분을 형성하는 2개의 화이트 밸런스 게인들 및 제 1 화이트 밸런스 게인에 기반하여 2개의 delta uv들 및 제 1 게인 비율을 결정할 수 있다. 예를 들어, 도 5b에서 제 1 화이트 밸런스 게인이 화이트 밸런스 게인(551-1) 및 화이트 밸런스 게인(551-2)에 의해 형성되는 선분 상의 화이트 밸런스 게인(556)인 경우, 화이트 밸런스 게인(551-1) 및 화이트 밸런스 게인(551-2) 각각에 대응하는 delta uv들 C 및 D를 제 1 화이트 밸런스 게인과 관련된 delta uv들로 결정(예: 확인)할 수 있다. 일 실시예에서, 프로세서(120)(예: 이미지 시그널 프로세서(260))는, 화이트 밸런스 게인(551-1) 및 화이트 밸런스 게인(551-2)에 의해 형성되는 선분이 화이트 밸런스 게인(556)에 의해 외분되는 비율(예: d/c 또는 c:d)을 제 1 게인 비율로 결정할 수 있다. In FIG. 5B , an example of using the four white balance gains 551-1, 551-2, 551-3, and 551-4 for determining the delta uvs and the first gain ratio has been described, but the present invention is not limited thereto. In one embodiment, unlike FIG. 5B , when the first white balance gain is on a line segment (or substantially straight line) formed by the two white balance gains, the processor 120 (eg, the image signal processor 260 ) )) may determine the two delta uvs and the first gain ratio based on the first white balance gain and the two white balance gains forming the line segment. For example, in FIG. 5B , when the first white balance gain is the white balance gain 556 on a line segment formed by the white balance gain 551-1 and the white balance gain 551-2, the white balance gain 551 -1) and delta uvs C and D corresponding to each of the white balance gain 551 - 2 may be determined (eg, confirmed) as delta uvs related to the first white balance gain. In one embodiment, the processor 120 (eg, the image signal processor 260 ) is configured to include a line segment formed by the white balance gain 551-1 and the white balance gain 551-2, the white balance gain 556 . A ratio (eg, d/c or c:d) that is externalized by .

도 6은, 다양한 실시예들에 따른, 화이트 밸런스를 제공하는 방법을 설명하기 위한 흐름도(600)이다.6 is a flowchart 600 for explaining a method of providing white balance, according to various embodiments.

도 6을 참조하면, 동작 601에서, 일 실시예에서, 프로세서(120)(예: 메인 프로세서(121))는, 사용자 입력에 기반하여 카메라 어플리케이션을 실행할 수 있다. Referring to FIG. 6 , in operation 601 , in an embodiment, the processor 120 (eg, the main processor 121 ) may execute a camera application based on a user input.

동작 603에서, 일 실시예에서, 프로세서(120)(예: 메인 프로세서(121))는, 카메라 어플리케이션에 설정된 화이트 밸런스 모드(mode)가 수동 모드인지 확인할 수 있다.In operation 603 , in an embodiment, the processor 120 (eg, the main processor 121 ) may determine whether a white balance mode set in the camera application is a manual mode.

일 실시예에서, 프로세서(120)(예: 메인 프로세서(121))는, 카메라 어플리케이션이 실행됨에 응답하여, 카메라 어플리케이션에 설정된 화이트 밸런스 모드(mode)가 수동 모드인지 확인할 수 있다.In an embodiment, in response to the execution of the camera application, the processor 120 (eg, the main processor 121 ) may determine whether a white balance mode set in the camera application is a manual mode.

일 실시예에서, '수동 모드'는 사용자가 입력하는 색 온도에 따라 카메라(또는 이미지)의 화이트 밸런스를 설정(또는 조정)할 수 있는 모드일 수 있다. In an embodiment, the 'manual mode' may be a mode in which a white balance of a camera (or image) can be set (or adjusted) according to a color temperature input by a user.

일 실시예에서, '자동 모드(또는 오토(auto) 모드)'는 자동 화이트 밸런스 알고리즘에 기반하여 카메라의 화이트 밸런스를 설정(또는 조정)할 수 있는 모드일 수 있다. 예를 들어, 자동 화이트 밸런스 알고리즘은 이미지로부터 획득한 제 1 이미지 내에서 화이트 영역의 R 데이터 적산 값 및 G 데이터 적산 값의 비율과 B 데이터 적산 값 및 G 데이터 적산 값의 비율이 1이 되도록 화이트 밸런스 게인을 설정(또는 조정)하는 알고리즘일 수 있다. 다만, 자동 화이트 밸런스 알고리즘은 전술한 예시에 제한되지 않는다.In an embodiment, the 'auto mode (or auto mode)' may be a mode in which the white balance of the camera can be set (or adjusted) based on an automatic white balance algorithm. For example, the automatic white balance algorithm performs the white balance so that the ratio of the R data integration value and the G data integration value of the white region and the ratio of the B data integration value and the G data integration value in the first image obtained from the image becomes 1. It may be an algorithm that sets (or adjusts) the gain. However, the automatic white balance algorithm is not limited to the above-described example.

동작 603에서 화이트 밸런스 모드가 수동 모드가 아닌 것으로 판단한 경우, 프로세서(120)(예: 메인 프로세서(121)), 예를 들면, 동작 605를 수행할 수 있다. If it is determined in operation 603 that the white balance mode is not the manual mode, the processor 120 (eg, the main processor 121 ), for example, operation 605 may be performed.

동작 605에서, 일 실시예에서, 프로세서(120)(예: 메인 프로세서(121))는, 동작 603에서 화이트 밸런스 모드가 수동 모드가 아닌 자동 모드인 것으로 확인되면, 프로세서(120)(예: 이미지 시그널 프로세서(260))는 자동 모드에서 제 3 화이트 밸런스 게인을 결정할 수 있다. 예를 들어, 프로세서(120)는, 이미지 센서(230)로부터 이미지(또는 이미지 데이터)를 획득하고, 획득한 이미지에 기반하여 자동 화이트 밸런스 알고리즘을 이용하여 제 3 화이트 밸런스 게인을 결정할 수 있다. In operation 605 , in an embodiment, the processor 120 (eg, the main processor 121 ), if it is determined in operation 603 that the white balance mode is an automatic mode rather than a manual mode, the processor 120 (eg, image The signal processor 260 may determine the third white balance gain in the automatic mode. For example, the processor 120 may obtain an image (or image data) from the image sensor 230 and determine the third white balance gain using an automatic white balance algorithm based on the obtained image.

동작 607에서, 일 실시예에서, 프로세서(120)(예: 이미지 시그널 프로세서(260))는, 이미지 센서(230)로부터 획득한 이미지에 제 3 화이트 밸런스 게인을 적용함으로써 제 3 이미지를 획득할 수 있다.In operation 607 , in an embodiment, the processor 120 (eg, the image signal processor 260 ) may acquire a third image by applying a third white balance gain to the image acquired from the image sensor 230 . have.

동작 603에서 화이트 밸런스 모드가 수동 모드로 판단한 경우, 프로세서(120)(예: 메인 프로세서(121)), 예를 들면, 동작 609를 수행할 수 있다.When it is determined in operation 603 that the white balance mode is the manual mode, the processor 120 (eg, the main processor 121 ), for example, operation 609 may be performed.

동작 609에서, 일 실시예에서, 프로세서(120)(예: 이미지 시그널 프로세서(260))는, 이미지 센서(230)로부터 획득한 제 1 이미지에 기반하여 제 1 화이트 밸런스 게인을 결정할 수 있다. In operation 609 , in an embodiment, the processor 120 (eg, the image signal processor 260 ) may determine a first white balance gain based on the first image obtained from the image sensor 230 .

동작 611에서, 일 실시예에서, 프로세서(120)(예: 이미지 시그널 프로세서(260))는, 테이블(예: 도 3b의 테이블(320)) 및 제 1 화이트 밸런스 게인에 기반하여, 제 1 화이트 밸런스 게인과 관련된 적어도 하나의 delta uv를 결정(예: 확인)할 수 있다.In operation 611 , in one embodiment, the processor 120 (eg, the image signal processor 260 ) is configured to: based on the table (eg, the table 320 of FIG. 3B ) and the first white balance gain, the first white At least one delta uv related to the balance gain can be determined (eg, confirmed).

동작 613에서, 일 실시예에서, 프로세서(120)(예: 이미지 시그널 프로세서(260))는, 사용자로부터 입력된 색 온도를 확인할 수 있다.In operation 613 , in an embodiment, the processor 120 (eg, the image signal processor 260 ) may identify a color temperature input by the user.

동작 615에서, 일 실시예에서, 프로세서(120)(예: 이미지 시그널 프로세서(260))는, 테이블(예: 도 3b의 테이블(320)), 사용자 입력 색 온도, 및 적어도 하나의 delta uv에 기반하여, 제 2 화이트 밸런스 게인을 결정할 수 있다.In operation 615 , in one embodiment, the processor 120 (eg, the image signal processor 260 ) may store the table (eg, the table 320 in FIG. 3B ), the user input color temperature, and the at least one delta uv. Based on this, the second white balance gain may be determined.

동작 617에서, 일 실시예에서, 프로세서(120)(예: 이미지 시그널 프로세서(260))는, 제 1 이미지(또는 제 1 이미지 데이터)에 제 2 화이트 밸런스 게인을 적용함으로써, 제 2 이미지를 획득할 수 있다.In operation 617 , in one embodiment, the processor 120 (eg, the image signal processor 260 ) obtains a second image by applying a second white balance gain to the first image (or first image data). can do.

도 6의 동작 609 내지 동작 617에 대한 예시들은 도 4의 동작 403 내지 동작 411의 예시들과 적어도 일부가 동일 또는 유사하므로 상세한 설명은 생략하도록 한다.Examples of operations 609 to 617 of FIG. 6 are at least partially the same as or similar to the examples of operations 403 to 411 of FIG. 4 , and thus a detailed description thereof will be omitted.

동작 619에서, 일 실시예에서, 프로세서(120)(예: 메인 프로세서(121))는, 획득한 이미지를 디스플레이(예: 표시 장치(160))를 통하여 표시할 수 있다. 예를 들어, 프로세서(120)(예: 메인 프로세서(121))는, 화이트 밸런스 모드가 수동 모드인 경우 획득한 제 2 이미지를 디스플레이(예: 표시 장치(160))를 통하여 표시할 수 있다. 다른 예를 들어, 프로세서(120)는, 화이트 밸런스 모드가 자동 모드인 경우 획득한 제 3 이미지를 디스플레이(예: 표시 장치(160))를 통하여 표시할 수 있다.In operation 619 , in an embodiment, the processor 120 (eg, the main processor 121 ) may display the acquired image through a display (eg, the display device 160 ). For example, the processor 120 (eg, the main processor 121 ) may display the acquired second image through a display (eg, the display device 160 ) when the white balance mode is the manual mode. As another example, when the white balance mode is the automatic mode, the processor 120 may display the acquired third image through a display (eg, the display device 160 ).

도 6에 도시하지는 않았지만, 일 실시예에서, 도 6의 동작들은 라이브 뷰(live view)(또는 프리뷰(preview)) 이미지를 표시하기 위한 동작들 또는 정지 이미지(또는 캡처(capture) 이미지)를 표시하기 위한 동작들에 해당될 수 있다. 예를 들어, 동작 619에서 표시되는 이미지는 라이브 뷰 이미지 또는 정지 이미지일 수 있다. 동작 619에서 표시되는 이미지는, 서술된 실시예에 한정되는 것은 아니며, 다양한 실시예에 따라 동작 619에서 표시되는 이미지는 다른 형태(예: AR(augmented reality) 이미지, 합성 이미지)의 이미지를 포함할 수 있다.Although not shown in FIG. 6 , in one embodiment, the operations of FIG. 6 display a still image (or capture image) or operations for displaying a live view (or preview) image. It may correspond to the actions to be performed. For example, the image displayed in operation 619 may be a live view image or a still image. The image displayed in operation 619 is not limited to the described embodiment, and according to various embodiments, the image displayed in operation 619 may include an image in a different form (eg, augmented reality (AR) image, composite image). can

도 7은, 다양한 실시예들에 따른, 이미지(예: 정지 이미지)를 제공하는 방법을 설명하기 위한 흐름도(700)이다.7 is a flowchart 700 for explaining a method of providing an image (eg, a still image) according to various embodiments of the present disclosure.

도 7을 참조하면, 동작 701에서, 일 실시예에서, 프로세서(120)(예: 메인 프로세서(121))는, 라이브 뷰 모드에서 이미지(예: 제 1 이미지를 포함하는 복수의 제 1 이미지들)를 디스플레이(예: 표시 장치(160))를 통하여 표시할 수 있다.Referring to FIG. 7 , in operation 701 , in an embodiment, the processor 120 (eg, the main processor 121 ) performs an image (eg, a plurality of first images including the first image) in the live view mode. ) may be displayed through a display (eg, the display device 160 ).

예를 들어, 프로세서(120)(예: 메인 프로세서(121))는, 화이트 밸런스 모드가 수동 모드인 경우에 있어서, 디스플레이(예: 표시 장치(160))를 통하여, 복수의 제 1 이미지들에 대하여 제 2 화이트 밸런스 게인이 적용된 제 2 이미지를 포함하는 복수의 제 2 이미지들을 연속적으로 표시할 수 있다. For example, when the white balance mode is the manual mode, the processor 120 (eg, the main processor 121 ) may display the plurality of first images through a display (eg, the display device 160 ). A plurality of second images including the second image to which the second white balance gain is applied may be continuously displayed.

다른 예를 들어, 프로세서(120)(예: 메인 프로세서(121))는, 화이트 밸런스 모드가 수동 모드인 경우에 있어서, 디스플레이(예: 표시 장치(160))를 통하여, 복수의 제 1 이미지들에 대하여 제 2 화이트 밸런스 게인 적용 없이, 복수의 제 1 이미지들을 연속적으로 표시할 수 있다.As another example, when the white balance mode is the manual mode, the processor 120 (eg, the main processor 121 ) may display the plurality of first images through a display (eg, the display device 160 ). A plurality of first images may be continuously displayed without applying a second white balance gain to .

동작 703에서, 일 실시예에서, 프로세서(120)(예: 메인 프로세서(121))는 이미지 캡처를 위한 사용자 입력을 수신할 수 있다. 예를 들어, 프로세서(120)는, 이미지를 라이브 뷰 모드에서 디스플레이(예: 표시 장치(160))를 통하여 표시하는 동안, 정지 이미지(또는 캡처 이미지)를 획득하기 위한 사용자 입력을 수신할 수 있다.In operation 703 , in an embodiment, the processor 120 (eg, the main processor 121 ) may receive a user input for capturing an image. For example, the processor 120 may receive a user input for acquiring a still image (or a captured image) while displaying the image through a display (eg, the display device 160 ) in the live view mode. .

동작 705에서, 일 실시예에서, 프로세서(120)(예: 이미지 시그널 프로세서(260))는, 제 2 화이트 밸런스 게인을 확인할 수 있다. 예를 들어, 프로세서(120)는, 라이브 뷰 모드에서 표시되는 복수의 제 2 이미지들 중 적어도 하나의 이미지와 관련된 제 2 화이트 밸런스 게인(예: 제 2 이미지를 획득하기 위하여 제 1 이미지에 적용된 제 2 화이트 밸런스 게인)을 확인할 수 있다.In operation 705 , in an embodiment, the processor 120 (eg, the image signal processor 260 ) may identify a second white balance gain. For example, the processor 120 may be configured to generate a second white balance gain associated with at least one of the plurality of second images displayed in the live view mode (eg, a second white balance gain applied to the first image to obtain the second image). 2 white balance gain).

일 실시예에서, 프로세서(120)(예: 이미지 시그널 프로세서(260))는, 제 2 화이트 밸런스 게인을 확인함에 있어서, 복수의 이미지를 이용할 수 있다. 예를 들면, 프로세서(120)는, 라이브 뷰 모드에서 표시되는 복수의 제 2 이미지들 중 지정된 복수의 이미지들을 이용하여 제 2 화이트 밸런스 게인을 확인할 수 있다. 복수의 제 2 이미지들 중 제 2 화이트 밸런스 게인이 처음 적용된 제 2-1 이미지와 이미지 캡쳐를 위한 사용자 입력이 발생한 시점의 제 2-2 이미지를 이용하여, 제 2 화이트 밸런스 게인을 확인할 수 있다. 프로세서(120)는, 예를 들어, 제 2-1 이미지의 화이트 밸런스 게인과 제 2-2 이미지의 화이트 밸런스 게인의 중간 데이터(예: 평균 데이터)를 제 2 화이트 밸런스 게인으로 확인할 수 있다. 또한 프로세서(120)는, 예를 들면, 제 2-1 이미지의 화이트 밸런스 게인과 제 2-2 이미지의 화이트 밸런스 게인과 관련된 데이터는 메모리(130)에 저장할 수 있다.In an embodiment, the processor 120 (eg, the image signal processor 260 ) may use a plurality of images in determining the second white balance gain. For example, the processor 120 may check the second white balance gain by using a plurality of designated images among a plurality of second images displayed in the live view mode. The second white balance gain may be confirmed by using the 2-1 image to which the second white balance gain is first applied among the plurality of second images and the 2-2 image at the point in time when a user input for image capture is generated. For example, the processor 120 may identify intermediate data (eg, average data) of the white balance gain of the 2-1 th image and the white balance gain of the 2-2 th image as the second white balance gain. Also, the processor 120 may store, for example, data related to the white balance gain of the 2-1 th image and the white balance gain of the 2-2 th image in the memory 130 .

일 실시예에서, 프로세서(120)(예: 이미지 시그널 프로세서(260))는, 제 2 화이트 밸런스 게인을 확인함에 있어서, 지정된 시점의 이미지를 이용할 수 있다. 예를 들면, 프로세서(120)는, 복수의 제 2 이미지들 중 제 2 화이트 밸런스 게인이 처음 적용된 시점과 사용자 입력이 발생한 시점의 중간 시점(예: 가운데 시점)의 이미지를 이용하여, 제 2 화이트 밸런스 게인을 확인할 수 있다. 상기 시점에 관련된 정보는 메모리(130)에 기 저장되어질 수 있고, 프로세서(120)는, 메모리(130)에 저장된 상기 시점에 관련된 정보를 이용하여, 제 2 화이트 밸런스 게인을 확인할 수 있다.In an embodiment, the processor 120 (eg, the image signal processor 260 ) may use an image at a specified time in determining the second white balance gain. For example, the processor 120 may use an image of an intermediate time point (eg, a center view point) between a time point at which the second white balance gain is first applied and a time point at which a user input is generated among the plurality of second images, You can check the balance gain. The time-related information may be pre-stored in the memory 130 , and the processor 120 may identify the second white balance gain by using the time-related information stored in the memory 130 .

동작 707에서, 일 실시예에서, 프로세서(120)(예: 이미지 시그널 프로세서(260))는, 제 2 화이트 밸런스 게인을 이미지에 적용함으로써 정지 이미지를 획득할 수 있다.In operation 707 , in an embodiment, the processor 120 (eg, the image signal processor 260 ) may obtain a still image by applying a second white balance gain to the image.

예를 들어, 프로세서(120)(예: 이미지 시그널 프로세서(260))는, 라이브 뷰 모드에서 표시되는 이미지 또는 라이브 뷰 모드에서 표시되는 이미지에 비하여 높은 해상도를 가지는 이미지에 대하여 제 2 화이트 밸런스 게인을 적용함으로써 정지 이미지를 획득할 수 있다.For example, the processor 120 (eg, the image signal processor 260 ) calculates a second white balance gain for an image displayed in the live view mode or an image having a higher resolution than an image displayed in the live view mode. By applying it, a still image can be obtained.

도 7에 도시하지는 않았지만, 프로세서(120)는, 이미지 캡처를 위한 사용자 입력을 수신한 경우, 라이브 뷰 모드에서 표시되고 제 2 화이트 밸런스 게인이 적용된 제 2 이미지를 디스플레이를 통하여 표시할 수도 있다.Although not shown in FIG. 7 , when receiving a user input for image capture, the processor 120 may display a second image displayed in the live view mode and to which the second white balance gain is applied through the display.

도 7에 도시하지는 않았지만, 일 실시예에서, 프로세서(120)(예: 이미지 시그널 프로세서(260))는, 획득한 정지 이미지를 메모리(130)에 저장할 수 있다.Although not shown in FIG. 7 , in an embodiment, the processor 120 (eg, the image signal processor 260 ) may store the acquired still image in the memory 130 .

도 8은, 다양한 실시예들에 따른, 화이트 밸런스를 제공하는 방법을 설명하기 위한 흐름도(800)이다. 8 is a flowchart 800 for explaining a method of providing white balance, according to various embodiments.

도 8을 참조하면, 동작 801에서, 일 실시예에서, 프로세서(120)(예: 이미지 시그널 프로세서(260))는, 이미지 센서(230)를 통하여 제 1 이미지를 획득할 수 있다.Referring to FIG. 8 , in operation 801 , in an embodiment, the processor 120 (eg, the image signal processor 260 ) may acquire a first image through the image sensor 230 .

동작 803에서, 일 실시예에서, 프로세서(120)(예: 이미지 시그널 프로세서(260))는, 이미지 센서(230)로부터 획득한 제 1 이미지에 기반하여 제 1 화이트 밸런스 게인을 결정할 수 있다. In operation 803 , in an embodiment, the processor 120 (eg, the image signal processor 260 ) may determine a first white balance gain based on the first image obtained from the image sensor 230 .

동작 805에서, 일 실시예에서, 프로세서(120)(예: 이미지 시그널 프로세서(260))는, 테이블(예: 도 3b의 테이블(320)) 및 제 1 화이트 밸런스 게인에 기반하여, 제 1 화이트 밸런스 게인과 관련된 적어도 하나의 delta uv를 결정할 수 있다.In operation 805 , in one embodiment, the processor 120 (eg, the image signal processor 260 ) is configured to: based on the table (eg, the table 320 of FIG. 3B ) and the first white balance gain, the first white At least one delta uv related to the balance gain may be determined.

도 8의 동작 801 내지 동작 805에 대한 예시들은 도 4의 동작 401 내지 동작 405의 예시들과 적어도 일부가 동일 또는 유사하므로 상세한 설명은 생략하도록 한다.Examples of operations 801 to 805 of FIG. 8 are at least partially identical to or similar to those of operations 401 to 405 of FIG. 4 , and thus detailed descriptions thereof will be omitted.

동작 807에서, 일 실시예에서, 프로세서(120)(예: 이미지 시그널 프로세서(260))는, 제 1 화이트 밸런스 게인에 대응하는 제 1 색 온도(이하, '제 1 색 온도'로 지칭함)를 결정할 수 있다. In operation 807 , in an embodiment, the processor 120 (eg, the image signal processor 260 ) selects a first color temperature (hereinafter, referred to as a 'first color temperature') corresponding to the first white balance gain. can decide

일 실시예에서, 프로세서(120)(예: 이미지 시그널 프로세서(260))는, 제 1 화이트 밸런스 게인(또는 제 1 화이트 밸런스 게인과 동일한 화이트 밸런스 게인)이 테이블(예: 도 3b의 테이블(320))에 있는 경우, 테이블(예: 도 3b의 테이블(320))에서 제 1 화이트 밸런스 게인과 동일한 화이트 밸런스 게인에 대응하는 색 온도를 제 1 색 온도로서 결정할 수 있다. 예를 들어, 도 3b의 테이블(320)을 참조하면, 프로세서(120)는, 제 1 화이트 밸런스 게인이 WB7인 것으로 결정되면, 테이블(320)에서 WB7에 대응하는 색온도 3000K를 제 1 색 온도로서 결정할 수 있다. In one embodiment, the processor 120 (eg, the image signal processor 260 ) stores a first white balance gain (or a white balance gain equal to the first white balance gain) into a table (eg, table 320 in FIG. 3B ). )), a color temperature corresponding to the same white balance gain as the first white balance gain in a table (eg, the table 320 of FIG. 3B ) may be determined as the first color temperature. For example, referring to the table 320 of FIG. 3B , when it is determined that the first white balance gain is WB 7 , the processor 120 sets the color temperature 3000K corresponding to WB 7 in the table 320 to the first color. It can be determined as temperature.

일 실시예에서, 프로세서(120)(예: 이미지 시그널 프로세서(260))는, 제 1 화이트 밸런스 게인과 동일한 화이트 밸런스 게인이 테이블(예: 도 3b의 테이블(320))에 없으나, 제 1 화이트 밸런스 게인이 테이블(예: 도 3b의 테이블(320))에서 동일한 색 온도에 대응하는 바로 인접한 2개의 화이트 밸런스 게인들에 의해 형성되는 라인(예: 선분) 상에 있도록 하는, 상기 2개의 화이트 밸런스 게인들을 확인할 수 있다. 프로세서(120)는, 상기 2개의 화이트 밸런스 게인들에 대응하는 색 온도를 제 1 색 온도로 결정할 수 있다. 예를 들어, 도 3b의 테이블(320)을 참조하면, 프로세서(120)는, 제 1 화이트 밸런스 게인과 테이블(320)에 동일한 화이트 밸런스 게인이 없음을 확인할 수 있다. 프로세서(120)는, 제 1 화이트 밸런스 게인이 테이블(320)에서 동일한 색 온도에 대응하는 바로 인접한 2개의 WB11 및 WB12에 의해 형성되는 상당히(실질적으로) 직선 상에 있도록 하는, 2개의 WB11 및 WB12를 확인할 수 있다. 프로세서(120)는, 2개의 WB11 및 WB12에 대응하는 색 온도 4000K를 제 1 색 온도로서 결정할 수 있다. In one embodiment, the processor 120 (eg, image signal processor 260 ) is configured such that a white balance gain equal to the first white balance gain is not in a table (eg, table 320 in FIG. 3B ), but the first white the two white balances, such that the balance gain is on a line (eg, a line segment) formed by two immediately adjacent white balance gains corresponding to the same color temperature in a table (eg, table 320 in FIG. 3B ). You can check the gains. The processor 120 may determine the color temperature corresponding to the two white balance gains as the first color temperature. For example, referring to the table 320 of FIG. 3B , the processor 120 may confirm that the first white balance gain and the table 320 do not have the same white balance gain. The processor 120 is configured such that the first white balance gain is on a substantially (substantially) straight line formed by the two immediately adjacent WB 11 and WB 12 corresponding to the same color temperature in the table 320 . 11 and WB 12 can be found. The processor 120 may determine the color temperature 4000K corresponding to the two WB 11 and WB 12 as the first color temperature.

일 실시예에서, 프로세서(120)(예: 이미지 시그널 프로세서(260))는, 제 1 화이트 밸런스 게인과 동일한 화이트 밸런스 게인이 테이블(예: 도 3b의 테이블(320))에 없으나, 제 1 화이트 밸런스 게인이, (예: 도 3b의 테이블(320))에서 제 1-1 색 온도에 대응하는 바로 인접한 제 1-1 화이트 밸런스 게인 및 제 1-2 화이트 밸런스 게인, 제 1-1 색 온도의 바로 이전 또는 바로 다음의 제 1-2 색 온도에 대응하고 제 1-1 화이트 밸런스 게인과 동일한 delta uv에 대응하는 제 1-3 화이트 밸런스 게인, 및 제 1-3 화이트 밸런스 게인과 동일한 색 온도(예: 제 1-2 색 온도)에 대응하고 제 1-2 화이트 밸런스 게인과 동일한 delta uv에 대응하는 제 1-4 화이트 밸런스 게인에 의해 형성되는 사각형(예: 상당히 평행 사변형) 내의 영역에 있도록 하는, 제 1-1 화이트 밸런스 게인, 제 1-2 화이트 밸런스 게인, 제 1-3 화이트 밸런스 게인, 및 제 1-4 화이트 밸런스 게인을 확인할 수 있다. 프로세서(120)는, 제 1 화이트 밸런스 게인으로부터, 제 1-1 색 온도에 대응하는 제 1-1 화이트 밸런스 게인 및 제 1-2 화이트 밸런스 게인에 의해 형성되는 선분 및 제 1-2 색 온도에 대응하는 제 1-3 화이트 밸런스 게인 및 제 1-4 화이트 밸런스 게인에 의해 형성되는 선분 각각까지의 거리들의 비율과, 제 1-1 색 온도와의 차이 및 제 1-2 색 온도와의 차이 간 비율이 동일하도록 하는, 색 온도를 제 1 색 온도로서 결정할 수 있다.In one embodiment, the processor 120 (eg, the image signal processor 260 ) is configured such that a white balance gain equal to the first white balance gain is not in a table (eg, table 320 in FIG. 3B ), but the first white The balance gain is a value of the immediately adjacent 1-1 white balance gain and the 1-2 white balance gain corresponding to the 1-1 color temperature in the table 320 of FIG. 3B , the 1-1 color temperature. 1-3th white balance gain corresponding to the immediately preceding or immediately following 1-2th color temperature and corresponding to delta uv equal to the 1-1th white balance gain, and the same color temperature as the 1-3th white balance gain ( Example: to be in an area within a rectangle (e.g. substantially parallelogram) formed by a 1-4th white balance gain corresponding to a delta uv corresponding to the 1-2th color temperature) and equal to the 1-2th white balance gain. , the 1-1 th white balance gain, the 1-2 th white balance gain, the 1-3 th white balance gain, and the 1-4 th white balance gain may be checked. The processor 120 receives, from the first white balance gain, a line segment formed by the 1-1 white balance gain corresponding to the 1-1 color temperature and the 1-2 white balance gain and the 1-2 color temperature. between the ratio of distances to each of the line segments formed by the corresponding 1-3th white balance gain and 1-4th white balance gain, and the difference from the 1-1th color temperature and the difference from the 1-2th color temperature A color temperature, such that the ratios are equal, can be determined as the first color temperature.

동작 809에서, 일 실시예에서, 프로세서(120)(예: 이미지 시그널 프로세서(260))는, 사용자로부터 입력된 제 2 색 온도(이하, '제 2 색 온도'로 지칭함)를 확인할 수 있다.In operation 809 , in an embodiment, the processor 120 (eg, the image signal processor 260 ) may identify a second color temperature (hereinafter, referred to as a 'second color temperature') input by the user.

동작 811에서, 일 실시예에서, 프로세서(120)(예: 이미지 시그널 프로세서(260))는, 제 1 색 온도 및 제 2 색 온도 간 색 온도 차이(이하, '색 온도 차이'로 지칭함)를 확인할 수 있다. In operation 811 , in an embodiment, the processor 120 (eg, the image signal processor 260 ) calculates the color temperature difference between the first color temperature and the second color temperature (hereinafter referred to as a 'color temperature difference'). can be checked

동작 813에서, 일 실시예에서, 프로세서(120)(예: 이미지 시그널 프로세서(260))는, 색 온도 차이를 고려하여 제 2 화이트 밸런스 게인을 결정할 수 있다.In operation 813 , in an embodiment, the processor 120 (eg, the image signal processor 260 ) may determine the second white balance gain in consideration of the color temperature difference.

일 실시예에서, 프로세서(120)(예: 이미지 시그널 프로세서(260))는, 테이블(예: 도 3b의 테이블(320)), 제 2 색 온도, 및 적어도 하나의 delta uv에 기반하여, 제 2-1 화이트 밸런스 게인을 결정할 수 있다. 예를 들어, 프로세서(120)는, 도 4의 동작 409에서 설명한 실시예들과 적어도 일부가 동일 또는 유사한 실시예들을 통하여, 제 2-1 화이트 밸런스 게인을 결정할 수 있다.In one embodiment, the processor 120 (eg, image signal processor 260 ) is configured to: based on a table (eg, table 320 in FIG. 3B ), a second color temperature, and at least one delta uv, 2-1 You can determine the white balance gain. For example, the processor 120 may determine the 2-1 th white balance gain through embodiments that are at least partially identical to or similar to the embodiments described in operation 409 of FIG. 4 .

일 실시예에서, 프로세서(120)(예: 이미지 시그널 프로세서(260))는, 색 온도 차이가 지정된 색 온도 차이(예: 1000K) 이상인 경우, 제 2-1 화이트 밸런스 게인을 조정할 수 있다. 예를 들어, 프로세서(120)(예: 이미지 시그널 프로세서(260))는, 색 온도 차이가 지정된 색 온도 차이로서 1000K 미만인 경우, 제 2-1 화이트 밸런스 게인을 조정하지 않을 수 있다. 프로세서(120)(예: 이미지 시그널 프로세서(260))는 색 온도 차이가 지정된 색 온도 차이로서 1000K 이상인 경우, 제 2-1 화이트 밸런스 게인을 조정할 수 있다.In an embodiment, the processor 120 (eg, the image signal processor 260 ) may adjust the 2-1 th white balance gain when the color temperature difference is greater than or equal to a specified color temperature difference (eg, 1000K). For example, the processor 120 (eg, the image signal processor 260 ) may not adjust the 2-1 white balance gain when the color temperature difference is less than 1000K as the designated color temperature difference. The processor 120 (eg, the image signal processor 260 ) may adjust the 2-1 th white balance gain when the color temperature difference is 1000K or more as the designated color temperature difference.

일 실시예에서, 프로세서(120)(예: 이미지 시그널 프로세서(260))는, 색 온도 차이가 지정된 차이 이상인 경우, 제 2-1 화이트 밸런스 게인이 등온도 선을 따라 흑체 궤적에 대응하는 화이트 밸런스 게인 방향으로 이동하도록, 제 2-1 화이트 밸런스 게인을 조정할 수 있다. In an embodiment, the processor 120 (eg, the image signal processor 260 ) is configured to, when the color temperature difference is greater than or equal to the specified difference, the 2-1 th white balance gain is the white balance corresponding to the blackbody locus along the isothermal line. The 2-1 white balance gain may be adjusted to move in the gain direction.

일 실시예에서, 프로세서(120)(예: 이미지 시그널 프로세서(260))는, 색 온도 차이가 지정된 색 온도 차이 이상인 경우, 제 2-1 화이트 밸런스 게인이, 색 온도 차이에 대응하는(또는 색 온도 차이에 따라 지정된) 화이트 밸런스 게인 만큼, 제 2-1 화이트 밸런스 게인이 등온도 선을 따라 흑체 궤적에 대응하는 화이트 밸런스 게인 방향으로 이동되도록, 제 2-1 화이트 밸런스 게인을 조정할 수 있다. 일 실시예에서, 프로세서(120)(예: 이미지 시그널 프로세서(260))는, 제 2-1 화이트 밸런스 게인이 조정되는 정도(또는 변화량)가, 제 1 화이트 밸런스 게인에 대응하는 delta uv(또는 제 2-1 화이트 밸런스 게인에 대응하는 delta uv)가, 제 1 색 온도 및 제 2 색 온도 간 색 온도 차이(예: 2000K)에서 지정된 색 온도 차이(예: 1000K)를 감산한 색 온도 차이(예: 1000K)에 대응하는 비율 만큼 감소된 delta uv 변화량에 대응하도록, 제 2-1 화이트 밸런스 게인을 조정할 수 있다. 예를 들어, 프로세서(120)(예: 이미지 시그널 프로세서(260))는, 제 1 화이트 밸런스 게인에 대응하는 delta uv가 0.010이고, 지정된 색 온도 차이가 1000K이고, 제 1 색 온도 및 제 2 색 온도 간 색 온도 차이가 2000K인 경우, 제 1 화이트 밸런스 게인에 대응하는 delta uv 0.010의 50%에 해당하는 delta uv 0.005 만큼 제 2 색 온도의 등온도 선을 따라 흑체 궤적 방향으로 이동한 화이트 밸런스 게인으로 제 2-1 화이트 밸런스 게인을 조정할 수 있다.In an embodiment, the processor 120 (eg, the image signal processor 260 ) is configured to, when the color temperature difference is equal to or greater than the specified color temperature difference, the 2-1 th white balance gain corresponding to the color temperature difference (or the color temperature difference) By the amount of the white balance gain (specified according to the temperature difference), the 2-1 th white balance gain may be adjusted so that the 2-1 th white balance gain moves along the isothermal line in the white balance gain direction corresponding to the blackbody locus. In an embodiment, the processor 120 (eg, the image signal processor 260 ) determines the degree (or amount of change) by which the 2-1 th white balance gain is adjusted, delta uv (or the amount of change) corresponding to the first white balance gain. The color temperature difference ( delta uv corresponding to the 2-1 white balance gain) obtained by subtracting the specified color temperature difference (eg 1000K) from the color temperature difference (eg 2000K) between the first color temperature and the second color temperature Example: The 2-1 th white balance gain may be adjusted to correspond to the delta uv change amount reduced by a ratio corresponding to 1000K). For example, the processor 120 (eg, the image signal processor 260 ) has a delta uv corresponding to the first white balance gain of 0.010, a specified color temperature difference of 1000K, and the first color temperature and the second color. When the color temperature difference between the temperatures is 2000K, the white balance gain moved in the direction of the blackbody locus along the isothermal line of the second color temperature by delta uv 0.005 corresponding to 50% of the delta uv 0.010 corresponding to the first white balance gain to adjust the 2-1 white balance gain.

일 실시예에서, 프로세서(120)(예: 이미지 시그널 프로세서(260))는, 조정된 제 2-1 화이트 밸런스 게인을 제 2 화이트 밸런스 게인으로서 결정할 수 있다.In an embodiment, the processor 120 (eg, the image signal processor 260 ) may determine the adjusted 2-1 th white balance gain as the second white balance gain.

일 실시예에서, 프로세서(120)(예: 이미지 시그널 프로세서(260))는, 색 온도 차이가 지정된 차이 보다 작은 경우, 제 2-1 화이트 밸런스 게인을 제 2 화이트 밸런스 게인으로서 결정할 수 있다.In an embodiment, the processor 120 (eg, the image signal processor 260 ) may determine the 2-1 th white balance gain as the second white balance gain when the color temperature difference is smaller than the specified difference.

도 8에 도시하지는 않았지만, 일 실시예에서, 프로세서(120)(예: 이미지 시그널 프로세서(260))는, 프로세서(120)는, 색 온도 차이 및 제 1 화이트 밸런스 게인에 대응하는 delta uv를 고려하여 제 2 화이트 밸런스 게인을 결정할 수 있다.Although not shown in FIG. 8 , in one embodiment, the processor 120 (eg, the image signal processor 260 ), the processor 120 considers the color temperature difference and delta uv corresponding to the first white balance gain. Thus, the second white balance gain may be determined.

일 실시예에서, 프로세서(120)(예: 이미지 시그널 프로세서(260))는, 색 온도 차이가 지정된 차이 이상이고 제 1 화이트 밸런스 게인에 대응하는 delta uv가 지정된 delta uv 범위 밖에 있는 경우(예: delta uv가 -0.0025 이하 또는 0.0025 이상인 경우), 제 2-1 화이트 밸런스 게인이 등온도 선을 따라 흑체 궤적에 대응하는 화이트 밸런스 게인 방향으로 이동하도록, 제 2-1 화이트 밸런스 게인을 조정할 수 있다. 다만, 이에 제한되지 않으며, 제 1 화이트 밸런스 게인에 대응하는 delta uv 크기와 무관하게 색 온도 차이가 지정된 차이 이상인지 여부에 기반하여 제 2-1 화이트 밸런스 게인이 조정될 수 있다.In one embodiment, the processor 120 (eg, the image signal processor 260 ) is configured to: when the color temperature difference is greater than or equal to the specified difference and the delta uv corresponding to the first white balance gain is outside the specified delta uv range (eg: (delta uv is less than or equal to -0.0025 or greater than or equal to 0.0025), the 2-1th white balance gain may be adjusted so that the 2-1th white balance gain moves along the isothermal line in the white balance gain direction corresponding to the blackbody locus. However, the present invention is not limited thereto, and the 2-1 white balance gain may be adjusted based on whether the color temperature difference is equal to or greater than a specified difference regardless of the delta uv size corresponding to the first white balance gain.

일 실시예에서, 프로세서(120)(예: 이미지 시그널 프로세서(260))는, 색 온도 차이가 지정된 차이 이상이고 제 1 화이트 밸런스 게인에 대응하는 delta uv가 지정된 delta uv 이상인 경우, 제 2-1 화이트 밸런스 게인이, 색 온도 차이에 대응하는(또는 색 온도 차이에 따라 지정된) 화이트 밸런스 게인 만큼, 제 2-1 화이트 밸런스 게인이 등온도 선을 따라 흑체 궤적에 대응하는 화이트 밸런스 게인 방향으로 이동되도록, 제 2-1 화이트 밸런스 게인을 조정할 수 있다.In an embodiment, the processor 120 (eg, the image signal processor 260 ) is configured to perform the 2-1th step, when the color temperature difference is greater than or equal to the specified difference and the delta uv corresponding to the first white balance gain is greater than or equal to the specified delta uv so that the 2-1 white balance gain is shifted in the direction of the white balance gain corresponding to the black body locus along the isothermal line by the white balance gain corresponding to the color temperature difference (or designated according to the color temperature difference) , the 2-1 white balance gain can be adjusted.

일 실시예에서, 프로세서(120)(예: 이미지 시그널 프로세서(260))는, 조정된 제 2-1 화이트 밸런스 게인을 제 2 화이트 밸런스 게인으로서 결정할 수 있다.In an embodiment, the processor 120 (eg, the image signal processor 260 ) may determine the adjusted 2-1 th white balance gain as the second white balance gain.

일 실시예에서, 색 온도 차이에 기반하여 제 2-1 화이트 밸런스 게인을 흑체 궤적 상의 화이트 밸런스 게인 방향으로 조정함으로써 프로세서는(120)(예: 이미지 시그널 프로세서(260))는 사용자에게 안정한 느낌을 전달할 수 있는 이미지를 획득할 수 있다.In one embodiment, the processor 120 (eg, the image signal processor 260 ) provides a sense of stability to the user by adjusting the 2-1 white balance gain in the direction of the white balance gain on the blackbody locus based on the color temperature difference. An image that can be transmitted can be obtained.

일 실시예에서, 프로세서(120)(예: 이미지 시그널 프로세서(260))는, 색 온도 차이가 지정된 차이 보다 작거나 제 1 화이트 밸런스 게인에 대응하는 delta uv가 지정된 delta uv이 보다 작은 경우, 제 2-1 화이트 밸런스 게인을 제 2 화이트 밸런스 게인으로서 결정할 수 있다.In an embodiment, the processor 120 (eg, the image signal processor 260 ) is configured to, when a color temperature difference is less than a specified difference or a delta uv corresponding to a first white balance gain is less than a specified delta uv, The 2-1 white balance gain may be determined as the second white balance gain.

다만, 제 2-1 화이트 밸런스 게인을 조정함으로써 제 2 화이트 밸런스 게인을 결정하는 방법은 전술한 예시에 제한되지 않는다. 예를 들어, 프로세서(120)(예: 이미지 시그널 프로세서(260))는, 색 온도 차이가 지정된 차이 보다 작고 제 1 화이트 밸런스 게인에 대응하는 delta uv가 지정된 delta uv이 이상인 경우에도, 제 2-1 화이트 밸런스 게인이, 색 온도 차이에 대응하는(또는 색 온도 차이에 따라 지정된) 화이트 밸런스 게인 만큼, 제 2-1 화이트 밸런스 게인이 등온도 선을 따라 흑체 궤적에 대응하는 화이트 밸런스 게인 방향으로 이동되도록, 제 2-1 화이트 밸런스 게인을 조정할 수 있다.However, the method of determining the second white balance gain by adjusting the 2-1 white balance gain is not limited to the above-described example. For example, the processor 120 (eg, the image signal processor 260 ) is configured to perform the second-second operation even when the color temperature difference is smaller than the specified difference and the delta uv corresponding to the first white balance gain is greater than or equal to the specified delta uv. As the 1st white balance gain is the white balance gain corresponding to the color temperature difference (or specified according to the color temperature difference), the 2-1 white balance gain moves along the isothermal line in the direction of the white balance gain corresponding to the blackbody locus As much as possible, the 2-1 th white balance gain may be adjusted.

동작 815에서, 일 실시예에서, 프로세서(120)(예: 이미지 시그널 프로세서(260))는, 제 1 이미지(또는 제 1 이미지 데이터)에 제 2 화이트 밸런스 게인을 적용함으로써, 제 2 이미지를 획득할 수 있다. 동작 815의 실시예들은 도 4의 동작 411의 실시예들과 적어도 일부가 동일 또는 유사하므로 상세한 설명은 생략하도록 한다.In operation 815 , in one embodiment, the processor 120 (eg, the image signal processor 260 ) obtains a second image by applying a second white balance gain to the first image (or first image data). can do. Since the embodiments of operation 815 are at least partially the same as or similar to the embodiments of operation 411 of FIG. 4 , a detailed description thereof will be omitted.

도 4, 및 도 6 내지 도 8에 도시된 과정 내지 방법에 기재된 동작(예: 401 내지 411, 601 내지 619, 701 내지 707, 또는 801 내지 815)들은 순차적, 병렬적, 반복적 또는 휴리스틱(heuristic)한 방법으로 실행될 수 있다. 예를 들면, 다른 순서로 실행되거나, 일부 동작이 생략되거나, 다른 동작이 추가될 수 있다. 한 실시예에 따르면, 전자 장치는, 복수의 카메라를 이용하여 복수의 이미지들을 획득 할 수 있고, 상기 복수의 이미지들을 이용하여 화이트 밸런스 게인을 확인하고 적용할 수 있다. 예를 들면, 제 1 카메라(예: 전면 카메라)를 통해 획득된 제 1-1 이미지의 제 1-1 화이트 밸런스 게인 및 제 2 카메라(예: 후면 카메라)를 통해 획득된 제 1-2 이미지의 제 1-2 화이트 밸런스 게인을 이용하여, 제 2 화이트 밸런스 게인을 결정할 수 있고, 제 1-1 이미지 및/또는 제 1-2 이미지에 결정된 제 2 화이트 밸런스를 적용함으로써, 제 2 이미지를 획득할 수 있다.The operations (eg, 401 to 411, 601 to 619, 701 to 707, or 801 to 815) described in the process or method shown in FIGS. 4 and 6 to 8 are sequential, parallel, iterative, or heuristic. It can be done in one way. For example, they may be executed in a different order, some operations may be omitted, or other operations may be added. According to an embodiment, the electronic device may acquire a plurality of images using a plurality of cameras, and may identify and apply a white balance gain using the plurality of images. For example, the 1-1 white balance gain of the 1-1 image acquired through the first camera (eg, front camera) and the 1-2 image acquired through the second camera (eg, rear camera) A second white balance gain may be determined using the 1-2 white balance gain, and a second image may be obtained by applying the determined second white balance to the 1-1 image and/or the 1-2 image. can

도 9는, 다양한 실시예들에 따른, 화이트 밸런스를 제공하는 방법을 설명하기 위한 예시도(900)이다.9 is an exemplary diagram 900 for explaining a method of providing white balance, according to various embodiments.

도 9를 참조하면, 일 실시예에서, 라인(921-1)은 흑체 궤적 상의 화이트 밸런스 게인들을 나타낼 수 있다. 예를 들어, 라인(921-1)은 delta uv가 0(또는 테이블(예: 도 3b의 테이블(320))의 B)인 경우에 대응하는 화이트 밸런스 게인들을 나타낼 수 있다. 일 실시예에서, 라인(921-2)은 delta uv가 -0.005(또는 테이블(예: 도 3b의 테이블(320))의 A)인 경우에 대응하는 화이트 밸런스 게인들을 나타낼 수 있다. 라인(921-3)은 delta uv가 0.005(또는 +0.005)(또는 테이블(예: 도 3b의 테이블(320))의 C)인 경우에 대응하는 화이트 밸런스 게인들을 나타낼 수 있다. 라인(921-4)은 delta uv가 0.010(또는 +0.010)(또는 테이블(예: 도 3b의 테이블(320))의 D)인 경우에 대응하는 화이트 밸런스 게인들을 나타낼 수 있다.Referring to FIG. 9 , in one embodiment, line 921-1 may represent white balance gains on a blackbody trajectory. For example, the line 921-1 may indicate white balance gains corresponding to a case in which delta uv is 0 (or B of a table (eg, table 320 of FIG. 3B )). In one embodiment, line 921 - 2 may represent white balance gains corresponding to a case where delta uv is -0.005 (or A of a table (eg, table 320 in FIG. 3B )). Lines 921-3 may represent white balance gains corresponding to a case where delta uv is 0.005 (or +0.005) (or C of a table (eg, table 320 of FIG. 3B )). Lines 921-4 may represent white balance gains corresponding to a case where delta uv is 0.010 (or +0.010) (or D of a table (eg, table 320 in FIG. 3B )).

일 실시예에서, 도 9에서, 라인들(예: 제 1 라인(931-1) 내지 제 9 라인(931-9)) 각각은, 동일한 색 온도(또는 동일한 상관 색 온도)에 대응하는 화이트 밸런스 게인들을 나타낼 수 있다. 예를 들어, 제 1 라인(931-1) 상의 화이트 밸런스 게인은 동일한 색 온도로서 2000K(kelvin)(또는 절대 온도)에 대응하는 화이트 밸런스 게인들을 나타낼 수 있다. 다른 예를 들어, 제 9 라인(931-9) 상의 화이트 밸런스 게인은 동일한 색 온도로서 10000K에 대응하는 화이트 밸런스 게인들을 나타낼 수 있다. 일 실시예에서, 그래프(900)의 가로축은 R 게인을 의미할 수 있고, 세로축은 B 게인을 의미할 수 있다.In one embodiment, in FIG. 9 , each of the lines (eg, the first line 931-1 to the ninth line 931-9) has a white balance corresponding to the same color temperature (or the same correlated color temperature). gains can be expressed. For example, the white balance gains on the first line 931-1 may represent white balance gains corresponding to 2000 K (kelvin) (or absolute temperature) as the same color temperature. As another example, the white balance gains on the ninth line 931 - 9 may represent white balance gains corresponding to 10000K as the same color temperature. In an embodiment, the horizontal axis of the graph 900 may mean the R gain, and the vertical axis may mean the B gain.

일 실시예에서, 프로세서(120)(예: 이미지 시그널 프로세서(260))는, 이미지 센서(230)로부터 획득한 제 1 이미지 데이터(또는 제 1 이미지)에 기반하여 제 1 화이트 밸런스 게인을 결정할 수 있다. 예를 들어, 도 9에서, 프로세서(120)는, 화이트 밸런스 게인(또는 좌표)(941-1)을 제 1 화이트 밸런스 게인으로 결정할 수 있다. In an embodiment, the processor 120 (eg, the image signal processor 260 ) may determine the first white balance gain based on the first image data (or the first image) obtained from the image sensor 230 . have. For example, in FIG. 9 , the processor 120 may determine the white balance gain (or coordinates) 941-1 as the first white balance gain.

일 실시예에서, 프로세서(120)(예: 이미지 시그널 프로세서(260))는, 테이블(예: 도 3b의 테이블(320))을 참조하여, 제 1 화이트 밸런스 게인과 관련된 적어도 하나의 delta uv를 결정할 수 있다. 예를 들어, 도 9에서, 프로세서(120)는, 제 1 화이트 밸런스 게인으로 결정된 화이트 밸런스 게인(또는 좌표)(941-1)이 WB7임을 확인하고, 테이블(예: 도 3b의 테이블(320))에서 WB7에 대응하는 delta uv가 C임을 확인할 수 있다.In one embodiment, the processor 120 (eg, the image signal processor 260 ) refers to a table (eg, the table 320 of FIG. 3B ) and calculates at least one delta uv associated with the first white balance gain. can decide For example, in FIG. 9 , the processor 120 determines that the white balance gain (or coordinates) 941-1 determined as the first white balance gain is WB 7 , and a table (eg, the table 320 of FIG. 3B ) )), it can be confirmed that the delta uv corresponding to WB 7 is C.

일 실시예에서, 프로세서(120)(예: 이미지 시그널 프로세서(260))는, 제 1 화이트 밸런스 게인에 대응하는 제 1 색 온도를 결정할 수 있다. 예를 들어, 도 9에서, 제 1 화이트 밸런스 게인으로 결정된 화이트 밸런스 게인(941-1)에 대응하는 3000K를 제 1 화이트 밸런스 게인에 대응하는 제 1 색 온도로서 결정할 수 있다.In an embodiment, the processor 120 (eg, the image signal processor 260 ) may determine a first color temperature corresponding to the first white balance gain. For example, in FIG. 9 , 3000K corresponding to the white balance gain 941-1 determined as the first white balance gain may be determined as the first color temperature corresponding to the first white balance gain.

일 실시예에서, 프로세서(120)(예: 이미지 시그널 프로세서(260))는 제 1 색 온도 및 사용자로부터 입력된 제 2 색 온도 간 색 온도 차이를 확인할 수 있다. In an embodiment, the processor 120 (eg, the image signal processor 260 ) may identify a color temperature difference between the first color temperature and the second color temperature input by the user.

일 실시예에서, 프로세서(120)(예: 이미지 시그널 프로세서(260))는, 색 온도 차이를 고려하여 제 2 화이트 밸런스 게인을 결정할 수 있다. In an embodiment, the processor 120 (eg, the image signal processor 260 ) may determine the second white balance gain in consideration of the color temperature difference.

일 실시예에서, 프로세서(120)(예: 이미지 시그널 프로세서(260))는, 테이블(예: 도 3b의 테이블(320)), 제 2 색 온도, 및 적어도 하나의 delta uv에 기반하여, 제 2-1 화이트 밸런스 게인을 결정할 수 있다. 예를 들어, 프로세서(120)는, 도 4의 동작 409에서 설명한 실시예들과 적어도 일부가 동일 또는 유사한 실시예들을 통하여, 제 2-1 화이트 밸런스 게인을 결정할 수 있다.In one embodiment, the processor 120 (eg, image signal processor 260 ) is configured to: based on a table (eg, table 320 of FIG. 3B ), a second color temperature, and at least one delta uv, 2-1 You can determine the white balance gain. For example, the processor 120 may determine the 2-1 th white balance gain through embodiments that are at least partially identical to or similar to the embodiments described in operation 409 of FIG. 4 .

일 실시예에서, 프로세서(120)(예: 이미지 시그널 프로세서(260))는, 색 온도 차이가 지정된 차이 이상인 경우, 제 2-1 화이트 밸런스 게인이 등온도 선을 따라 흑체 궤적에 대응하는 화이트 밸런스 게인 방향으로 이동하도록, 제 2-1 화이트 밸런스 게인을 조정할 수 있다.In an embodiment, the processor 120 (eg, the image signal processor 260 ) is configured to, when the color temperature difference is greater than or equal to the specified difference, the 2-1 th white balance gain is the white balance corresponding to the blackbody locus along the isothermal line. The 2-1 white balance gain may be adjusted to move in the gain direction.

일 실시예에서, 프로세서(120)(예: 이미지 시그널 프로세서(260))는, 제 2-1 화이트 밸런스 게인이 조정되는 정도(또는 변화량)가, 제 1 화이트 밸런스 게인에 대응하는 delta uv(또는 제 2-1 화이트 밸런스 게인에 대응하는 delta uv)가, 제 1 색 온도 및 제 2 색 온도 간 색 온도 차이(예: 2000K)에서 지정된 색 온도 차이(예: 1000K)를 감산한 색 온도 차이(예: 1000K)에 대응하는 비율 만큼 감소된 delta uv 변화량에 대응하도록, 제 2-1 화이트 밸런스 게인을 조정할 수 있다.In an embodiment, the processor 120 (eg, the image signal processor 260 ) determines the degree (or amount of change) by which the 2-1 th white balance gain is adjusted, delta uv (or the amount of change) corresponding to the first white balance gain. The color temperature difference ( delta uv corresponding to the 2-1 white balance gain) obtained by subtracting the specified color temperature difference (eg 1000K) from the color temperature difference (eg 2000K) between the first color temperature and the second color temperature Example: The 2-1 white balance gain may be adjusted to correspond to the delta uv change amount reduced by a ratio corresponding to 1000K).

예를 들어, 프로세서(120)는, 제 1 색 온도가 3000K이고 제 2 색 온도가 7000K이고 지정된 색 온도 차이가 3000K인 경우, 테이블(예: 도 3b의 테이블(320)), 제 2 색 온도, 및 적어도 하나의 delta uv에 기반하여, 화이트 밸런스 게인(941-3)를 제 2-1 화이트 밸런스 게인으로서 결정할 수 있다. 프로세서(120)는, 제 1 색 온도 및 제 2 색 온도 간 차이가 4000K로서 지정된 색 온도 차이 3000K 이상이고, 화이트 밸런스 게인(941-1)에 대응하는 delta uv가 0.005임을 확인할 수 있다. 프로세서(120)는, 색 온도 차이 4000K에서 지정된 색 온도 차이 3000K를 감산한 색 온도 차이가 1000K임을 확인할 수 있다. 프로세서(120)는, 화이트 밸런스 게인(941-3)이, 화이트 밸런스 게인(941-1)에 대응하는 delta uv 0.005가 상기 감산한 색 온도 차이 1000K에 대응하는 비율 만큼 감소된, 예를 들어, delta uv 0.0025 만큼, 제 2 색 온도를 따라 흑체 궤적에 대응하는 화이트 밸런스 게인(941-5) 방향으로 감소(또는 이동)되도록 화이트 밸런스 게인(941-3)을 조정할 수 있다. 프로세서(120)는, 화이트 밸런스 게인(941-3)이 조정된 화이트 밸런스 게인(941-4)를 제 2 화이트 밸런스 게인으로 결정할 수 있다. For example, when the first color temperature is 3000K, the second color temperature is 7000K, and the specified color temperature difference is 3000K, the processor 120 may generate a table (eg, the table 320 of FIG. 3B ), the second color temperature , and at least one delta uv, the white balance gain 941-3 may be determined as the 2-1 th white balance gain. The processor 120 may confirm that the difference between the first color temperature and the second color temperature is 3000K or more, which is designated as 4000K, and the delta uv corresponding to the white balance gain 941-1 is 0.005. The processor 120 may determine that the color temperature difference obtained by subtracting the specified color temperature difference of 3000K from the color temperature difference of 4000K is 1000K. The processor 120 may reduce the white balance gain 941-3 by a ratio corresponding to the color temperature difference 1000K obtained by subtracting the delta uv 0.005 corresponding to the white balance gain 941-1, for example, The white balance gain 941-3 may be adjusted to decrease (or shift) in the direction of the white balance gain 941-5 corresponding to the blackbody locus along the second color temperature by delta uv 0.0025. The processor 120 may determine the white balance gain 941-4 to which the white balance gain 941-3 is adjusted as the second white balance gain.

일 실시예에서, 프로세서(120)(예: 이미지 시그널 프로세서(260))는, 색 온도 차이가 지정된 차이 보다 작은 경우, 제 2-1 화이트 밸런스 게인을 제 2 화이트 밸런스 게인으로 결정할 수 있다. 예를 들어, 프로세서(120)는, 제 1 색 온도가 3000K이고 제 2 색 온도가 5000K이고 지정된 색 온도 차이가 3000K인 경우, 테이블(320), 제 2 색 온도, 및 적어도 하나의 delta uv에 기반하여 기반하여 결정된 화이트 밸런스 게인(941-2)(또는 제 2-1 화이트 밸런스 게인)을 제 2 화이트 밸런스 게인으로서 결정할 수 있다. In an embodiment, the processor 120 (eg, the image signal processor 260 ) may determine the 2-1 th white balance gain as the second white balance gain when the color temperature difference is smaller than the specified difference. For example, if the first color temperature is 3000K, the second color temperature is 5000K, and the specified color temperature difference is 3000K, the processor 120 may store the table 320, the second color temperature, and the at least one delta uv. The white balance gain 941 - 2 (or the 2-1 th white balance gain) determined based on the above may be determined as the second white balance gain.

도 10은, 다양한 실시예들에 따른, 전자 장치(101)와 기능적으로 연결된 카메라의 화이트 밸런스 모드에 따라 화이트 밸런스를 제공하는 방법을 설명하기 위한 예시도이다. 10 is an exemplary diagram for explaining a method of providing a white balance according to a white balance mode of a camera functionally connected to the electronic device 101, according to various embodiments of the present disclosure.

도 10을 참조하면, 일 실시예에서, 도 10의 (a)는, 자동 모드에서 화이트 밸런스가 설정되는 경우를 나타낼 수 있다. Referring to FIG. 10 , according to an embodiment, FIG. 10A may represent a case in which white balance is set in an automatic mode.

일 실시예에서, 오브젝트(1011)는 화이트 밸런스 설정과 관련된 오브젝트일 수 있다. 일 실시예에서, 프로세서(120)(예: 메인 프로세서(121))는, 자동 모드에서 사용자로부터 오브젝트(1011)에 대한 입력이 수신되는 경우, 화이트 밸런스 모드를 자동 모드로부터 수동 모드로 변경할 수 있다. 일 실시예에서, 텍스트(1013)는 현재 화이트 밸런스 모드와 색 온도를 나타낼 수 있다.In an embodiment, the object 1011 may be an object related to white balance setting. In an embodiment, the processor 120 (eg, the main processor 121 ) may change the white balance mode from the automatic mode to the manual mode when an input for the object 1011 is received from the user in the automatic mode. . In one embodiment, text 1013 may indicate the current white balance mode and color temperature.

일 실시예에서, 프로세서(120)(예: 메인 프로세서(121))는, 디스플레이(예: 표시 장치(160))를 통하여, 자동 모드에서 설정된 화이트 밸런스 게인이 적용된 화면(1010)을 표시할 수 있다.In an embodiment, the processor 120 (eg, the main processor 121 ) may display the screen 1010 to which the white balance gain set in the automatic mode is applied through the display (eg, the display device 160 ). have.

일 실시예에서, 도 10의 (b)는, 수동 모드에서 화이트 밸런스가 설정되는 경우를 나타낼 수 있다. In an embodiment, (b) of FIG. 10 may represent a case in which white balance is set in the manual mode.

일 실시예에서, 오브젝트(1021)는 화이트 밸런스 설정과 관련된 오브젝트일 수 있다. 일 실시예에서, 프로세서(120)는, 수동 모드에서 사용자로부터 오브젝트(1021)에 대한 입력이 수신되는 경우, 화이트 밸런스 모드를 수동 모드로부터 자동 모드로 변경할 수 있다. 일 실시예에서, 텍스트(1023)는 사용자에 의해 입력된 색 온도를 나타낼 수 있다. 일 실시예에서, 오브젝트(1025)는 현재 화이트 밸런스 모드가 수동 모드임을 나타낼 수 있다.In an embodiment, the object 1021 may be an object related to white balance setting. In an embodiment, when an input for the object 1021 is received from a user in the manual mode, the processor 120 may change the white balance mode from the manual mode to the automatic mode. In one embodiment, text 1023 may represent a color temperature input by a user. In one embodiment, the object 1025 may indicate that the current white balance mode is a manual mode.

일 실시예에서, 사용자는 바(bar)(1024)를 이용하여 전자 장치(101)로 색 온도를 입력할 수 있다. 예를 들어, 사용자가 바(1024) 상에서 이동 가능한 오브젝트(1026)를 드래그하는 경우, 프로세서(120)(예: 이미지 시그널 프로세서(260))는, 바(1024) 상의 오브젝트(1026)의 위치에 대응하는 색 온도를 확인할 수 있다. In an embodiment, the user may input a color temperature into the electronic device 101 using a bar 1024 . For example, when the user drags the movable object 1026 on the bar 1024 , the processor 120 (eg, the image signal processor 260 ) moves to the position of the object 1026 on the bar 1024 . You can check the corresponding color temperature.

일 실시예에서, 프로세서(120)는, 도 4 내지 도 9를 통하여 설명한 예시들과 같이, 사용자에 의해 입력되는 색 온도에 따라 이미지 센서(230)로부터 획득한 제 1 이미지로 적용될 화이트 밸런스 게인(예: 제 2 화이트 밸런스 게인)을 결정하고, 제 1 이미지에 결정된 화이트 밸런스 게인을 적용함으로써 획득한 제 2 이미지(예: 화면(1020))를 디스플레이(예: 표시 장치(160))를 통하여 표시할 수 있다.In an embodiment, the processor 120, as in the examples described with reference to FIGS. 4 to 9 , applies a white balance gain ( ) to be applied to the first image obtained from the image sensor 230 according to the color temperature input by the user. Example: A second image (eg, the screen 1020) obtained by determining a second white balance gain) and applying the determined white balance gain to the first image is displayed through a display (eg, the display device 160) can do.

본 발명의 다양한 실시예들에 따른, 전자 장치(101)에서 화이트 밸런스를 제공하는 방법은, 상기 전자 장치(101)의 이미지 센서(230)를 통하여 제 1 이미지를 획득하는 동작, 상기 제 1 이미지에 기반하여 제 1 화이트 밸런스 게인을 결정하는 동작, 복수의 색 온도들 및 복수의 delta uv들에 대한 화이트 밸런스 게인들을 포함하고 상기 전자 장치(101)의 메모리(130)에 저장된 테이블(320) 및 상기 제 1 화이트 밸런스 게인에 기반하여, 상기 제 1 화이트 밸런스 게인과 관련된 적어도 하나의 delta uv를 결정하는 동작, 사용자로부터 입력된 제 1 색 온도를 확인하는 동작, 상기 테이블(320), 상기 제 1 색 온도, 및 상기 적어도 하나의 delta uv에 기반하여, 제 2 화이트 밸런스 게인을 결정하는 동작, 및 상기 제 1 이미지에 상기 제 2 화이트 밸런스 게인을 적용함으로써, 제 2 이미지를 획득하도록 하는 동작을 포함할 수 있다.According to various embodiments of the present disclosure, a method for providing white balance in an electronic device 101 includes acquiring a first image through an image sensor 230 of the electronic device 101 , the first image a table 320 including white balance gains for a plurality of color temperatures and a plurality of delta uvs and stored in the memory 130 of the electronic device 101 and Determining at least one delta uv related to the first white balance gain based on the first white balance gain, checking a first color temperature input from a user, the table 320, and the first determining a second white balance gain based on a color temperature and the at least one delta uv, and applying the second white balance gain to the first image to obtain a second image. can do.

다양한 실시예에서, 상기 제 1 화이트 밸런스 게인과 관련된 적어도 하나의 delta uv를 결정하는 동작은, 상기 테이블(320) 내에서 상기 제 1 화이트 밸런스 게인에 대응하는 delta uv가 있는 경우, 상기 delta uv를 상기 적어도 하나의 delta uv로서 결정하는 동작을 포함할 수 있다.In various embodiments, the determining of the at least one delta uv related to the first white balance gain may include determining the delta uv when there is a delta uv corresponding to the first white balance gain in the table 320 . It may include the operation of determining as the at least one delta uv.

다양한 실시예에서, 상기 제 2 화이트 밸런스 게인을 결정하는 동작은, 상기 테이블(320) 내에서 상기 제 1 색 온도 및 상기 delta uv에 대응하는 화이트 밸런스 게인을 상기 제 2 화이트 밸런스 게인으로서 결정하는 동작을 포함할 수 있다.In various embodiments, the determining of the second white balance gain includes determining, as the second white balance gain, a white balance gain corresponding to the first color temperature and the delta uv in the table 320 . may include.

다양한 실시예에서, 상기 제 1 화이트 밸런스 게인과 관련된 적어도 하나의 delta uv를 결정하는 동작은, 상기 테이블(320) 내에서 상기 제 1 화이트 밸런스 게인에 대응하는 delta uv가 없는 경우, 상기 제 1 화이트 밸런스 게인이 상기 테이블(320)에서 동일한 색 온도에 대응하는 인접한 적어도 2개의 화이트 밸런스 게인들에 의해 형성되는 라인 상에 있도록 하는, 상기 적어도 2개의 화이트 밸런스 게인들을 확인하는 동작, 상기 적어도 2개의 화이트 밸런스 게인들 각각에 대응하는 제 1 delta uv 및 제 2 delta uv를 상기 적어도 하나의 delta uv로서 결정하는 동작, 및 상기 제 1 화이트 밸런스 게인, 상기 적어도 2개의 화이트 밸런스 게인들에 기반하여, 상기 제 2 화이트 밸런스 게인을 결정하기 위한 제 1 게인 비율을 결정하는 동작을 포함할 수 있다.In various embodiments, the determining of the at least one delta uv related to the first white balance gain may include, when there is no delta uv corresponding to the first white balance gain in the table 320 , the first white identifying the at least two white balance gains, such that the balance gain is on a line formed by at least two adjacent white balance gains corresponding to the same color temperature in the table (320); determining a first delta uv and a second delta uv corresponding to each of the balance gains as the at least one delta uv, and based on the first white balance gain and the at least two white balance gains, the second 2 and determining a first gain ratio for determining the white balance gain.

다양한 실시예에서, 상기 제 2 화이트 밸런스 게인을 결정하는 동작은, 상기 테이블(320), 상기 제 1 색 온도, 상기 제 1 delta uv, 상기 제 2 delta uv, 및 상기 제 1 게인 비율에 기반하여 상기 제 2 화이트 밸런스 게인을 결정하는 동작을 포함할 수 있다.In various embodiments, the determining of the second white balance gain may be performed based on the table 320 , the first color temperature, the first delta uv, the second delta uv, and the first gain ratio. and determining the second white balance gain.

다양한 실시예에서, 상기 제 1 화이트 밸런스 게인과 관련된 적어도 하나의 delta uv를 결정하는 동작은, 상기 테이블(320) 내에서 상기 제 1 화이트 밸런스 게인에 대응하는 delta uv가 없는 경우, 상기 제 1 화이트 밸런스 게인이 상기 테이블(320)에서 제 1-1 색 온도에 대응하는 바로 인접한 제 1-1 화이트 밸런스 게인 및 제 1-2 화이트 밸런스 게인, 제 1-1 색 온도의 바로 이전 또는 바로 다음의 제 1-2 색 온도에 대응하고 상기 제 1-1 화이트 밸런스 게인과 동일한 delta uv에 대응하는 제 1-3 화이트 밸런스 게인, 및 상기 1-2 색 온도에 대응하고 제 1-2 화이트 밸런스 게인과 동일한 delta uv에 대응하는 제 1-4 화이트 밸런스 게인에 의해 형성되는 사각형 내의 영역에 있도록 하는, 상기 제 1-1 화이트 밸런스 게인, 상기 제 1-2 화이트 밸런스 게인, 상기 제 1-3 화이트 밸런스 게인, 및 상기 제 1-4 화이트 밸런스 게인을 확인하는 동작, 상기 제 1-1 화이트 밸런스 게인 및 상기 제 1-3 화이트 밸런스 게인에 대응하는 제 3 delta uv와 상기 제 1-2 화이트 밸런스 게인 및 상기 제 1-4 화이트 밸런스 게인에 대응하는 제 4 delta uv를 상기 적어도 하나의 delta uv로서 결정하는 동작, 및 상기 제 1 화이트 밸런스 게인, 상기 제 1-2 화이트 밸런스 게인, 상기 제 1-3 화이트 밸런스 게인, 및 상기 제 1-4 화이트 밸런스 게인에 기반하여, 상기 제 2 화이트 밸런스 게인을 결정하기 위한 제 1 게인 비율을 결정하는 동작을 포함할 수 있다.In various embodiments, the determining of the at least one delta uv related to the first white balance gain may include, when there is no delta uv corresponding to the first white balance gain in the table 320 , the first white In the table 320, the 1-1th white balance gain and the 1-2th white balance gain that are immediately adjacent to the 1-1th color temperature corresponding to the 1-1th color temperature, and the 1-1th white balance gain immediately preceding or immediately following the 1-1th color temperature The 1-3th white balance gain corresponding to the 1-2 color temperature and corresponding to the delta uv equal to the 1-1 white balance gain, and the 1-2th white balance gain corresponding to the 1-2 color temperature and the same the 1-1 th white balance gain, the 1-2 th white balance gain, the 1-3 th white balance gain to be in an area within a rectangle formed by the 1-4 th white balance gain corresponding to delta uv; and confirming the 1-4th white balance gain, the third delta uv corresponding to the 1-1th white balance gain and the 1-3th white balance gain, the 1-2th white balance gain, and the first determining a fourth delta uv corresponding to the 1-4 white balance gain as the at least one delta uv, and the first white balance gain, the 1-2 white balance gain, and the 1-3 white balance gain and determining a first gain ratio for determining the second white balance gain based on the 1-4th white balance gain.

다양한 실시예에서, 상기 제 2 화이트 밸런스 게인을 결정하는 동작은, 상기 테이블(320), 상기 제 1 색 온도, 상기 제 3 delta uv, 상기 제 4 delta uv, 및 상기 제 1 게인 비율에 기반하여 상기 제 2 화이트 밸런스 게인을 결정하는 동작을 포함할 수 있다.In various embodiments, the determining of the second white balance gain may be performed based on the table 320 , the first color temperature, the third delta uv, the fourth delta uv, and the first gain ratio. and determining the second white balance gain.

다양한 실시예에서, 상기 방법은 상기 제 1 화이트 밸런스 게인에 대응하는 제 2 색 온도를 확인하는 동작을 더 포함하고, 상기 테이블(320), 상기 제 1 색 온도, 및 상기 적어도 하나의 delta uv에 기반하여, 제 2 화이트 밸런스 게인을 결정하는 동작은, 상기 테이블(320), 상기 제 1 색 온도, 상기 적어도 하나의 delta uv, 및 상기 제 1 색 온도 및 상기 제 2 색 온도 간 색 온도 차이에 기반하여, 상기 제 2 화이트 밸런스 게인을 결정하는 동작을 포함할 수 있다.In various embodiments, the method further comprises: determining a second color temperature corresponding to the first white balance gain, in the table 320, the first color temperature, and the at least one delta uv. Based on the operation of determining the second white balance gain, the table 320, the first color temperature, the at least one delta uv, and a color temperature difference between the first color temperature and the second color temperature based on the second white balance gain, the method may include determining the second white balance gain.

다양한 실시예에서, 상기 테이블(320), 상기 제 1 색 온도, 및 상기 적어도 하나의 delta uv에 기반하여, 제 2 화이트 밸런스 게인을 결정하는 동작은, 상기 색 온도 차이가 지정된 색 온도 차이 이상인 경우, 상기 테이블(320), 상기 제 1 색 온도, 및 상기 적어도 하나의 delta uv에 기반하여 결정한 화이트 밸런스 게인을, 등온도 선을 따라 흑체 궤적에 대응하는 화이트 밸런스 게인 방향으로 이동시킴으로써, 상기 제 2 화이트 밸런스 게인을 결정하는 동작을 포함할 수 있다.In various embodiments, the determining of the second white balance gain based on the table 320 , the first color temperature, and the at least one delta uv may include: when the color temperature difference is greater than or equal to a specified color temperature difference , by moving the white balance gain determined based on the table 320 , the first color temperature, and the at least one delta uv in the white balance gain direction corresponding to the blackbody locus along the isothermal line, the second and determining a white balance gain.

다양한 실시예에서, 상기 방법은, 카메라 어플리케이션을 실행하는 사용자 입력을 수신하는 동작, 상기 사용자 입력을 수신한 경우, 상기 제 1 이미지에 포함된 복수의 이미지 프레임들 각각에 대하여 상기 제 2 화이트 밸런스 게인을 적용하는 동작, 상기 제 2 화이트 밸런스 게인이 적용된 상기 복수의 이미지 프레임들 각각을 포함하는 상기 제 2 이미지를 라이브 뷰(live view) 이미지로서 상기 전자 장치(101)의 디스플레이(예: 표시 장치(160))를 통하여 표시하도록 하는 동작, 이미지 캡처를 위한 사용자 입력을 수신하는 동작, 상기 이미지 센서(230)로부터 획득한 이미지에 대하여 상기 제 2 화이트 밸런스 게인을 적용함으로써, 제 3 이미지를 획득하는 동작, 및 상기 획득된 제 3 이미지를 상기 메모리(130)에 저장하는 동작을 더 포함할 수 있다.In various embodiments, the method includes receiving a user input for executing a camera application, and when receiving the user input, the second white balance gain for each of a plurality of image frames included in the first image applying the second image including each of the plurality of image frames to which the second white balance gain is applied, as a live view image, the display of the electronic device 101 (eg, a display device ( 160)), receiving a user input for capturing an image, and obtaining a third image by applying the second white balance gain to the image acquired from the image sensor 230 , and storing the obtained third image in the memory 130 .

또한, 상술한 본 발명의 실시예에서 사용된 데이터의 구조는 컴퓨터로 읽을 수 있는 기록매체에 여러 수단을 통하여 기록될 수 있다. 상기 컴퓨터로 읽을 수 있는 기록매체는 마그네틱 저장매체(예를 들면, 롬, 플로피 디스크, 하드 디스크 등), 광학적 판독 매체(예를 들면, CD-ROM, DVD 등)와 같은 저장매체를 포함한다.In addition, the structure of the data used in the above-described embodiment of the present invention may be recorded in a computer-readable recording medium through various means. The computer-readable recording medium includes a storage medium such as a magnetic storage medium (eg, a ROM, a floppy disk, a hard disk, etc.) and an optically readable medium (eg, a CD-ROM, a DVD, etc.).

이제까지 본 발명에 대하여 그 바람직한 실시예들을 중심으로 살펴보았다. 본 발명이 속하는 기술 분야에서 통상의 지식을 가진 자는 본 발명이 본 발명의 본질적인 특성에서 벗어나지 않는 범위에서 변형된 형태로 구현될 수 있음을 이해할 수 있을 것이다. 그러므로 개시된 실시예들은 한정적인 관점이 아니라 설명적인 관점에서 고려되어야 한다. 본 발명의 범위는 전술한 설명이 아니라 특허청구범위에 나타나 있으며, 그와 동등한 범위 내에 있는 모든 차이점은 본 발명에 포함된 것으로 해석되어야 할 것이다.So far, with respect to the present invention, the preferred embodiments have been looked at. Those of ordinary skill in the art to which the present invention pertains will understand that the present invention can be implemented in a modified form without departing from the essential characteristics of the present invention. Therefore, the disclosed embodiments are to be considered in an illustrative rather than a restrictive sense. The scope of the present invention is indicated in the claims rather than the foregoing description, and all differences within the scope equivalent thereto should be construed as being included in the present invention.

101, 102, 104 : 전자 장치 108 : 서버101, 102, 104: electronic device 108: server

Claims (20)

전자 장치에 있어서,
이미지 센서;
상기 이미지 센서와 기능적으로 연결된 프로세서; 및
상기 프로세서와 연결되고, 복수의 색 온도들(color temperatures) 및 복수의 delta uv들에 대한 화이트 밸런스(white balance) 게인들(gains)을 포함하는 테이블(table)을 저장한 메모리를 포함하고,
상기 메모리는, 실행 시, 상기 프로세서가,
상기 이미지 센서를 통하여 제 1 이미지를 획득하고,
상기 제 1 이미지에 기반하여 제 1 화이트 밸런스 게인을 결정하고,
상기 테이블 및 상기 제 1 화이트 밸런스 게인에 기반하여, 상기 제 1 화이트 밸런스 게인과 관련된 적어도 하나의 delta uv를 결정하고,
사용자로부터 입력된 제 1 색 온도를 확인하고,
상기 테이블, 상기 제 1 색 온도, 및 상기 적어도 하나의 delta uv에 기반하여, 제 2 화이트 밸런스 게인을 결정하고, 및
상기 제 1 이미지에 상기 제 2 화이트 밸런스 게인을 적용함으로써, 제 2 이미지를 획득하도록 하는 인스트럭션들을 저장하는 전자 장치.
In an electronic device,
image sensor;
a processor operatively connected to the image sensor; and
It is connected to the processor and includes a memory storing a table including white balance gains for a plurality of color temperatures and a plurality of delta uvs,
The memory, when executed, the processor
acquiring a first image through the image sensor,
determining a first white balance gain based on the first image;
determining at least one delta uv related to the first white balance gain based on the table and the first white balance gain;
Check the first color temperature input from the user,
determine a second white balance gain based on the table, the first color temperature, and the at least one delta uv; and
and storing instructions for obtaining a second image by applying the second white balance gain to the first image.
제 1 항에 있어서,
상기 인스트럭션들은, 상기 프로세서가,
상기 테이블 내에서 상기 제 1 화이트 밸런스 게인에 대응하는 delta uv가 있는 경우, 상기 delta uv를 상기 적어도 하나의 delta uv로서 결정하도록 하는 전자 장치.
The method of claim 1,
The instructions, the processor,
and determine the delta uv as the at least one delta uv when there is a delta uv corresponding to the first white balance gain in the table.
제 2 항에 있어서,
상기 인스트럭션들은, 상기 프로세서가,
상기 테이블 내에서 상기 제 1 색 온도 및 상기 delta uv에 대응하는 화이트 밸런스 게인을 상기 제 2 화이트 밸런스 게인으로서 결정하도록 하는 전자 장치.
3. The method of claim 2,
The instructions, the processor,
and determine a white balance gain corresponding to the first color temperature and the delta uv in the table as the second white balance gain.
제 1 항에 있어서,
상기 인스트럭션들은, 상기 프로세서가,
상기 테이블 내에서 상기 제 1 화이트 밸런스 게인에 대응하는 delta uv가 없는 경우, 상기 제 1 화이트 밸런스 게인이 상기 테이블에서 동일한 색 온도에 대응하는 인접한 적어도 2개의 화이트 밸런스 게인들에 의해 형성되는 라인 상에 있도록 하는, 상기 적어도 2개의 화이트 밸런스 게인들을 확인하고,
상기 적어도 2개의 화이트 밸런스 게인들 각각에 대응하는 제 1 delta uv 및 제 2 delta uv를 상기 적어도 하나의 delta uv로서 결정하고, 및
상기 제 1 화이트 밸런스 게인, 상기 적어도 2개의 화이트 밸런스 게인들에 기반하여, 상기 제 2 화이트 밸런스 게인을 결정하기 위한 제 1 게인 비율을 결정하도록 하는 전자 장치.
The method of claim 1,
The instructions, the processor,
When there is no delta uv corresponding to the first white balance gain in the table, the first white balance gain is on a line formed by at least two adjacent white balance gains corresponding to the same color temperature in the table check the at least two white balance gains,
determining a first delta uv and a second delta uv corresponding to each of the at least two white balance gains as the at least one delta uv, and
and determine a first gain ratio for determining the second white balance gain based on the first white balance gain and the at least two white balance gains.
제 4 항에 있어서,
상기 인스트럭션들은, 상기 프로세서가,
상기 테이블, 상기 제 1 색 온도, 상기 제 1 delta uv, 상기 제 2 delta uv, 및 상기 제 1 게인 비율에 기반하여 상기 제 2 화이트 밸런스 게인을 결정하도록 하는 전자 장치.
5. The method of claim 4,
The instructions, the processor,
and determine the second white balance gain based on the table, the first color temperature, the first delta uv, the second delta uv, and the first gain ratio.
제 1 항에 있어서,
상기 인스트럭션들은, 상기 프로세서가,
상기 테이블 내에서 상기 제 1 화이트 밸런스 게인에 대응하는 delta uv가 없는 경우, 상기 제 1 화이트 밸런스 게인이 상기 테이블에서 제 1-1 색 온도에 대응하는 바로 인접한 제 1-1 화이트 밸런스 게인 및 제 1-2 화이트 밸런스 게인, 제 1-1 색 온도의 바로 이전 또는 바로 다음의 제 1-2 색 온도에 대응하고 상기 제 1-1 화이트 밸런스 게인과 동일한 delta uv에 대응하는 제 1-3 화이트 밸런스 게인, 및 상기 1-2 색 온도에 대응하고 제 1-2 화이트 밸런스 게인과 동일한 delta uv에 대응하는 제 1-4 화이트 밸런스 게인에 의해 형성되는 사각형 내의 영역에 있도록 하는, 상기 제 1-1 화이트 밸런스 게인, 상기 제 1-2 화이트 밸런스 게인, 상기 제 1-3 화이트 밸런스 게인, 및 상기 제 1-4 화이트 밸런스 게인을 확인하고,
상기 제 1-1 화이트 밸런스 게인 및 상기 제 1-3 화이트 밸런스 게인에 대응하는 제 3 delta uv와 상기 제 1-2 화이트 밸런스 게인 및 상기 제 1-4 화이트 밸런스 게인에 대응하는 제 4 delta uv를 상기 적어도 하나의 delta uv로서 결정하고,
상기 제 1 화이트 밸런스 게인, 상기 제 1-2 화이트 밸런스 게인, 상기 제 1-3 화이트 밸런스 게인, 및 상기 제 1-4 화이트 밸런스 게인에 기반하여, 상기 제 2 화이트 밸런스 게인을 결정하기 위한 제 1 게인 비율을 결정하도록 하는 전자 장치.
The method of claim 1,
The instructions, the processor,
When there is no delta uv corresponding to the first white balance gain in the table, the first white balance gain corresponds to the immediately adjacent 1-1 white balance gain and the first white balance gain corresponding to the 1-1 color temperature in the table. -2 white balance gain, the 1-3th white balance gain corresponding to the 1-2th color temperature immediately preceding or immediately following the 1-1th color temperature and corresponding to the delta uv equal to the 1-1th white balance gain , and the 1-1 white balance to be in an area within a rectangle formed by the 1-4th white balance gain corresponding to the 1-2 color temperature and corresponding to a delta uv equal to the 1-2th white balance gain. check the gain, the 1-2 th white balance gain, the 1-3 th white balance gain, and the 1-4 th white balance gain;
a third delta uv corresponding to the 1-1 white balance gain and the 1-3 white balance gain and a fourth delta uv corresponding to the 1-2 white balance gain and the 1-4 white balance gain determined as said at least one delta uv,
a first method for determining the second white balance gain based on the first white balance gain, the 1-2 white balance gain, the 1-3 white balance gain, and the 1-4 white balance gain An electronic device that allows to determine a gain ratio.
제 6 항에 있어서,
상기 인스트럭션들은, 상기 프로세서가,
상기 테이블, 상기 제 1 색 온도, 상기 제 3 delta uv, 상기 제 4 delta uv, 및 상기 제 1 게인 비율에 기반하여 상기 제 2 화이트 밸런스 게인을 결정하도록 하는 전자 장치.
7. The method of claim 6,
The instructions, the processor,
and determine the second white balance gain based on the table, the first color temperature, the third delta uv, the fourth delta uv, and the first gain ratio.
제 1 항에 있어서,
상기 인스트럭션들은, 상기 프로세서가,
상기 제 1 화이트 밸런스 게인에 대응하는 제 2 색 온도를 더 확인하고,
상기 테이블, 상기 제 1 색 온도, 상기 적어도 하나의 delta uv, 및 상기 제 1 색 온도 및 상기 제 2 색 온도 간 색 온도 차이에 기반하여, 상기 제 2 화이트 밸런스 게인을 결정하도록 하는 전자 장치.
The method of claim 1,
The instructions, the processor,
further confirming a second color temperature corresponding to the first white balance gain;
and determine the second white balance gain based on the table, the first color temperature, the at least one delta uv, and a color temperature difference between the first color temperature and the second color temperature.
제 8 항에 있어서,
상기 인스트럭션들은, 상기 프로세서가,
상기 색 온도 차이가 지정된 색 온도 차이 이상인 경우, 상기 테이블, 상기 제 1 색 온도, 및 상기 적어도 하나의 delta uv에 기반하여 결정한 화이트 밸런스 게인을, 등온도 선을 따라 흑체 궤적에 대응하는 화이트 밸런스 게인 방향으로 이동시킴으로써, 상기 제 2 화이트 밸런스 게인을 결정하도록 하는 전자 장치.
9. The method of claim 8,
The instructions, the processor,
When the color temperature difference is greater than or equal to the specified color temperature difference, a white balance gain determined based on the table, the first color temperature, and the at least one delta uv is a white balance gain corresponding to a blackbody locus along an isothermal line. direction to determine the second white balance gain.
제 1 항에 있어서,
디스플레이를 더 포함하고,
상기 인스트럭션들은, 상기 프로세서가,
카메라 어플리케이션을 실행하는 사용자 입력을 수신하고,
상기 사용자 입력을 수신한 경우, 상기 제 1 이미지에 포함된 복수의 이미지 프레임들(frames) 각각에 대하여 상기 제 2 화이트 밸런스 게인을 적용하고,
상기 제 2 화이트 밸런스 게인이 적용된 상기 복수의 이미지 프레임들 각각을 포함하는 상기 제 2 이미지를 라이브 뷰(live view) 이미지로서 상기 디스플레이를 통하여 표시하도록 하고,
이미지 캡처를 위한 사용자 입력을 수신하고,
상기 이미지 센서로부터 획득한 이미지에 대하여 상기 제 2 화이트 밸런스 게인을 적용함으로써, 제 3 이미지를 획득하고,
상기 획득된 제 3 이미지를 상기 메모리에 저장하도록 하는 전자 장치.
The method of claim 1,
further comprising a display,
The instructions, the processor,
Receive user input for running the camera application,
When the user input is received, the second white balance gain is applied to each of a plurality of image frames included in the first image;
display the second image including each of the plurality of image frames to which the second white balance gain is applied as a live view image through the display;
receive user input for image capture;
obtaining a third image by applying the second white balance gain to the image obtained from the image sensor;
an electronic device to store the acquired third image in the memory.
전자 장치에서 화이트 밸런스를 제공하는 방법에 있어서,
상기 전자 장치의 이미지 센서를 통하여 제 1 이미지를 획득하는 동작;
상기 제 1 이미지에 기반하여 제 1 화이트 밸런스 게인을 결정하는 동작;
복수의 색 온도들 및 복수의 delta uv들에 대한 화이트 밸런스 게인들을 포함하고 상기 전자 장치의 메모리에 저장된 테이블 및 상기 제 1 화이트 밸런스 게인에 기반하여, 상기 제 1 화이트 밸런스 게인과 관련된 적어도 하나의 delta uv를 결정하는 동작;
사용자로부터 입력된 제 1 색 온도를 확인하는 동작;
상기 테이블, 상기 제 1 색 온도, 및 상기 적어도 하나의 delta uv에 기반하여, 제 2 화이트 밸런스 게인을 결정하는 동작; 및
상기 제 1 이미지에 상기 제 2 화이트 밸런스 게인을 적용함으로써, 제 2 이미지를 획득하도록 하는 동작을 포함하는 방법.
A method for providing white balance in an electronic device, the method comprising:
acquiring a first image through an image sensor of the electronic device;
determining a first white balance gain based on the first image;
at least one delta related to the first white balance gain based on a table including white balance gains for a plurality of color temperatures and a plurality of delta uvs and stored in a memory of the electronic device and the first white balance gain action to determine uv;
checking the first color temperature input by the user;
determining a second white balance gain based on the table, the first color temperature, and the at least one delta uv; and
and obtaining a second image by applying the second white balance gain to the first image.
제 11 항에 있어서,
상기 제 1 화이트 밸런스 게인과 관련된 적어도 하나의 delta uv를 결정하는 동작은,
상기 테이블 내에서 상기 제 1 화이트 밸런스 게인에 대응하는 delta uv가 있는 경우, 상기 delta uv를 상기 적어도 하나의 delta uv로서 결정하는 동작을 포함하는 방법.
12. The method of claim 11,
The operation of determining at least one delta uv related to the first white balance gain includes:
and determining the delta uv as the at least one delta uv when there is a delta uv corresponding to the first white balance gain in the table.
제 12 항에 있어서,
상기 제 2 화이트 밸런스 게인을 결정하는 동작은,
상기 테이블 내에서 상기 제 1 색 온도 및 상기 delta uv에 대응하는 화이트 밸런스 게인을 상기 제 2 화이트 밸런스 게인으로서 결정하는 동작을 포함하는 방법.
13. The method of claim 12,
The operation of determining the second white balance gain includes:
and determining, as the second white balance gain, a white balance gain corresponding to the first color temperature and the delta uv in the table.
제 11 항에 있어서,
상기 제 1 화이트 밸런스 게인과 관련된 적어도 하나의 delta uv를 결정하는 동작은,
상기 테이블 내에서 상기 제 1 화이트 밸런스 게인에 대응하는 delta uv가 없는 경우, 상기 제 1 화이트 밸런스 게인이 상기 테이블에서 동일한 색 온도에 대응하는 인접한 적어도 2개의 화이트 밸런스 게인들에 의해 형성되는 라인 상에 있도록 하는, 상기 적어도 2개의 화이트 밸런스 게인들을 확인하는 동작;
상기 적어도 2개의 화이트 밸런스 게인들 각각에 대응하는 제 1 delta uv 및 제 2 delta uv를 상기 적어도 하나의 delta uv로서 결정하는 동작; 및
상기 제 1 화이트 밸런스 게인, 상기 적어도 2개의 화이트 밸런스 게인들에 기반하여, 상기 제 2 화이트 밸런스 게인을 결정하기 위한 제 1 게인 비율을 결정하는 동작을 포함하는 방법.
12. The method of claim 11,
The operation of determining at least one delta uv related to the first white balance gain includes:
When there is no delta uv corresponding to the first white balance gain in the table, the first white balance gain is on a line formed by at least two adjacent white balance gains corresponding to the same color temperature in the table checking the at least two white balance gains;
determining a first delta uv and a second delta uv corresponding to each of the at least two white balance gains as the at least one delta uv; and
and determining a first gain ratio for determining the second white balance gain based on the first white balance gain and the at least two white balance gains.
제 14 항에 있어서,
상기 제 2 화이트 밸런스 게인을 결정하는 동작은,
상기 테이블, 상기 제 1 색 온도, 상기 제 1 delta uv, 상기 제 2 delta uv, 및 상기 제 1 게인 비율에 기반하여 상기 제 2 화이트 밸런스 게인을 결정하는 동작을 포함하는 방법.
15. The method of claim 14,
The operation of determining the second white balance gain includes:
and determining the second white balance gain based on the table, the first color temperature, the first delta uv, the second delta uv, and the first gain ratio.
제 11 항에 있어서,
상기 제 1 화이트 밸런스 게인에 대응하는 제 2 색 온도를 확인하는 동작을 더 포함하고,
상기 테이블, 상기 제 1 색 온도, 및 상기 적어도 하나의 delta uv에 기반하여, 제 2 화이트 밸런스 게인을 결정하는 동작은,
상기 테이블, 상기 제 1 색 온도, 상기 적어도 하나의 delta uv, 및 상기 제 1 색 온도 및 상기 제 2 색 온도 간 색 온도 차이에 기반하여, 상기 제 2 화이트 밸런스 게인을 결정하는 동작을 포함하는 방법.
12. The method of claim 11,
and checking a second color temperature corresponding to the first white balance gain;
The operation of determining a second white balance gain based on the table, the first color temperature, and the at least one delta uv includes:
determining the second white balance gain based on the table, the first color temperature, the at least one delta uv, and a color temperature difference between the first color temperature and the second color temperature .
제 16 항에 있어서,
상기 테이블, 상기 제 1 색 온도, 및 상기 적어도 하나의 delta uv에 기반하여, 제 2 화이트 밸런스 게인을 결정하는 동작은,
상기 색 온도 차이가 지정된 색 온도 차이 이상인 경우, 상기 테이블, 상기 제 1 색 온도, 및 상기 적어도 하나의 delta uv에 기반하여 결정한 화이트 밸런스 게인을, 등온도 선을 따라 흑체 궤적에 대응하는 화이트 밸런스 게인 방향으로 이동시킴으로써, 상기 제 2 화이트 밸런스 게인을 결정하는 동작을 포함하는 방법.
17. The method of claim 16,
The operation of determining a second white balance gain based on the table, the first color temperature, and the at least one delta uv includes:
When the color temperature difference is greater than or equal to the specified color temperature difference, a white balance gain determined based on the table, the first color temperature, and the at least one delta uv is a white balance gain corresponding to a blackbody locus along an isothermal line. and determining the second white balance gain by moving in a direction.
제 11 항에 있어서,
카메라 어플리케이션을 실행하는 사용자 입력을 수신하는 동작;
상기 사용자 입력을 수신한 경우, 상기 제 1 이미지에 포함된 복수의 이미지 프레임들 각각에 대하여 상기 제 2 화이트 밸런스 게인을 적용하는 동작;
상기 제 2 화이트 밸런스 게인이 적용된 상기 복수의 이미지 프레임들 각각을 포함하는 상기 제 2 이미지를 라이브 뷰(live view) 이미지로서 상기 전자 장치의 디스플레이를 통하여 표시하도록 하는 동작;
이미지 캡처를 위한 사용자 입력을 수신하는 동작;
상기 이미지 센서로부터 획득한 이미지에 대하여 상기 제 2 화이트 밸런스 게인을 적용함으로써, 제 3 이미지를 획득하는 동작; 및
상기 획득된 제 3 이미지를 상기 메모리에 저장하는 동작을 더 포함하는 방법.
12. The method of claim 11,
receiving a user input for executing a camera application;
applying the second white balance gain to each of a plurality of image frames included in the first image when the user input is received;
displaying the second image including each of the plurality of image frames to which the second white balance gain is applied as a live view image through the display of the electronic device;
receiving a user input for capturing an image;
acquiring a third image by applying the second white balance gain to the image acquired from the image sensor; and
The method further comprising the operation of storing the obtained third image in the memory.
전자 장치에 있어서,
카메라;
색 온도, 상기 색 온도와 관련된 delta uv, 및 복수의 화이트 밸런스 게인들을 저장하는 메모리;
상기 카메라 및 상기 메모리와 기능적으로 연결된 프로세서를 포함하고, 상기 프로세서는,
상기 카메라를 이용하여 제 1 이미지를 획득하고,
상기 제 1 이미지에 기반하여 제 1 화이트 밸런스 게인을 확인하고,
상기 카메라에 설정된 색 온도, 상기 delta uv, 상기 제 1 화이트 밸런스 게인, 및 상기 메모리에 저장된 복수의 화이트 밸런스 게인들에 기반하여, 제 2 화이트 밸런스 게인을 결정하고, 및
상기 제 1 이미지에 상기 제 2 화이트 밸런스 게인을 적용한 제 2 이미지를 생성하도록 설정된 전자 장치.
In an electronic device,
camera;
a memory for storing a color temperature, a delta uv associated with the color temperature, and a plurality of white balance gains;
a processor operatively connected to the camera and the memory, wherein the processor comprises:
Acquire a first image using the camera,
check a first white balance gain based on the first image;
determining a second white balance gain based on the color temperature set in the camera, the delta uv, the first white balance gain, and a plurality of white balance gains stored in the memory; and
An electronic device configured to generate a second image to which the second white balance gain is applied to the first image.
제 19항에 있어서, 상기 delta uv는 복수의 delta uv들을 포함하고, 상기 프로세서는,
상기 제 1 화이트 밸런스 게인에 기반하여, 상기 제 1 화이트 밸런스 게인과 관련된 적어도 하나의 delta uv를 확인하도록 설정된 전자 장치.
20. The method of claim 19, wherein the delta uv comprises a plurality of delta uvs, and the processor comprises:
The electronic device is configured to identify at least one delta uv related to the first white balance gain based on the first white balance gain.
KR1020190170310A 2019-12-19 2019-12-19 Method for providing white balance and electronic device for supporting the same KR20210078656A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
KR1020190170310A KR20210078656A (en) 2019-12-19 2019-12-19 Method for providing white balance and electronic device for supporting the same
PCT/KR2020/017656 WO2021125645A1 (en) 2019-12-19 2020-12-04 Method for providing white balance and electronic device supporting same

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020190170310A KR20210078656A (en) 2019-12-19 2019-12-19 Method for providing white balance and electronic device for supporting the same

Publications (1)

Publication Number Publication Date
KR20210078656A true KR20210078656A (en) 2021-06-29

Family

ID=76478457

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020190170310A KR20210078656A (en) 2019-12-19 2019-12-19 Method for providing white balance and electronic device for supporting the same

Country Status (2)

Country Link
KR (1) KR20210078656A (en)
WO (1) WO2021125645A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114630095A (en) * 2022-03-15 2022-06-14 锐迪科创微电子(北京)有限公司 Automatic white balance method and device for target scene image and terminal
WO2023022331A1 (en) * 2021-08-18 2023-02-23 삼성전자 주식회사 Method for providing image, and electronic device for supporting same
US11706532B2 (en) 2021-08-18 2023-07-18 Samsung Electronics Co., Ltd. Method for providing image and electronic device supporting the same

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101356516B1 (en) * 2007-10-24 2014-01-29 엘지전자 주식회사 Apparatus and method for compensation of white balance
JP2009105579A (en) * 2007-10-22 2009-05-14 Sony Corp Color signal processing circuit, image pickup apparatus, and color signal processing method
US9386289B2 (en) * 2014-04-29 2016-07-05 Intel Corporation Automatic white balancing with chromaticity measure of raw image data
US9762878B2 (en) * 2015-10-16 2017-09-12 Google Inc. Auto white balance using infrared and/or ultraviolet signals

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023022331A1 (en) * 2021-08-18 2023-02-23 삼성전자 주식회사 Method for providing image, and electronic device for supporting same
US11706532B2 (en) 2021-08-18 2023-07-18 Samsung Electronics Co., Ltd. Method for providing image and electronic device supporting the same
CN114630095A (en) * 2022-03-15 2022-06-14 锐迪科创微电子(北京)有限公司 Automatic white balance method and device for target scene image and terminal
CN114630095B (en) * 2022-03-15 2024-02-09 锐迪科创微电子(北京)有限公司 Automatic white balance method and device for target scene image and terminal

Also Published As

Publication number Publication date
WO2021125645A1 (en) 2021-06-24

Similar Documents

Publication Publication Date Title
US12069369B2 (en) Electronic device for stabilizing image and method for operating same
KR102386385B1 (en) Electronic device and method for compressing image thereof
KR102318013B1 (en) Electronic device composing a plurality of images and method
KR102610542B1 (en) Electronic device and method for adjusting color of image data using infrared sensor
KR20210078656A (en) Method for providing white balance and electronic device for supporting the same
KR102581679B1 (en) An elelctronic device and method for processing an image in the same
KR20210053096A (en) Method for providing preview and electronic device using the same
KR20210090476A (en) The method to improve image quality in zoom scenarios with a single camera and electronics that contains it
KR20200117695A (en) Electronic device and method for controlling camera using external electronic device
KR20200113522A (en) Method for performing fucntion according to gesture input and electronic device performing thereof
KR20210101941A (en) Electronic device and method for generating high dynamic range images
KR102609734B1 (en) electronic device and method for revising image based on transfer status of image
US20200228689A1 (en) Electronic device for providing function by using rgb image and ir image acquired through one image sensor
US11308593B2 (en) Electronic device for generating composite image and method thereof
KR20190010051A (en) Method for transmitting image data and data associated with control of image capture based on sizes of image data and data associated with control of image capture and electronic device for supporting the same
KR20210130972A (en) Color filter array of an electronic deviceand the electronic
KR102457559B1 (en) Electronic device and method for correcting image based on object included image
KR20210151613A (en) Image Processing Device and Image Processing Method
KR100753195B1 (en) Method and device for detecting color temperature
KR20210144151A (en) Electronic device and method for generating images by performing auto white balance
KR20210128803A (en) Electronic device for detecting defect of image based on differential between sub images acquired by multi photodiode sensor and operating method thereof
CN115514947B (en) Algorithm for automatic white balance of AI (automatic input/output) and electronic equipment
US12081879B2 (en) Method for generating image and electronic device therefor
JP6403811B2 (en) Image processing apparatus and program
US20230156349A1 (en) Method for generating image and electronic device therefor

Legal Events

Date Code Title Description
A201 Request for examination
E902 Notification of reason for refusal
E701 Decision to grant or registration of patent right