KR20190108833A - Electronic device and method for processing compression using restored information of image acquired by using camera - Google Patents

Electronic device and method for processing compression using restored information of image acquired by using camera Download PDF

Info

Publication number
KR20190108833A
KR20190108833A KR1020180030401A KR20180030401A KR20190108833A KR 20190108833 A KR20190108833 A KR 20190108833A KR 1020180030401 A KR1020180030401 A KR 1020180030401A KR 20180030401 A KR20180030401 A KR 20180030401A KR 20190108833 A KR20190108833 A KR 20190108833A
Authority
KR
South Korea
Prior art keywords
information
image
channel
reconstruction
electronic device
Prior art date
Application number
KR1020180030401A
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 KR1020180030401A priority Critical patent/KR20190108833A/en
Priority to PCT/KR2019/002901 priority patent/WO2019177368A1/en
Publication of KR20190108833A publication Critical patent/KR20190108833A/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N1/00Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
    • H04N1/41Bandwidth or redundancy reduction
    • H04N1/411Bandwidth or redundancy reduction for the transmission or storage or reproduction of two-tone pictures, e.g. black and white pictures
    • H04N1/4115Bandwidth or redundancy reduction for the transmission or storage or reproduction of two-tone pictures, e.g. black and white pictures involving the recognition of specific patterns, e.g. by symbol matching
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N1/00Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
    • H04N1/41Bandwidth or redundancy reduction
    • H04N1/411Bandwidth or redundancy reduction for the transmission or storage or reproduction of two-tone pictures, e.g. black and white pictures
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/169Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
    • H04N19/186Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being a colour or a chrominance component
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/76Television signal recording
    • H04N5/91Television signal processing therefor
    • H04N5/917Television signal processing therefor for bandwidth reduction

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Studio Devices (AREA)

Abstract

Various embodiments relating to an electronic device are disclosed. According to an embodiment, an electronic device comprises: a camera; a communication module; a memory; and a processor, wherein the processor is configured to: obtain a first image on the basis of a raw image obtained by using the camera; obtain first reconstruction information associated with at least one first pixel corresponding to a first color in the first image; obtain first interpolation information corresponding to at least one second pixel corresponding to a second color in the first image by using the first reconstruction information; obtain conversion information generated on the basis of at least one piece of interpolation information and at least one piece of reconstruction information generated in relation to the first image; obtain the second reconstruction information corresponding to at least one second pixel by using the first reconstruction information, the conversion information, and the first interpolation information; generate compression data of the first image by using the first reconstruction information and second reconstruction information; and transmit the compression data to an external device. Other embodiments can also be possible.

Description

카메라를 이용하여 획득한 이미지에 대한 복원 정보를 이용하여 압축 처리하는 전자 장치 및 방법{ELECTRONIC DEVICE AND METHOD FOR PROCESSING COMPRESSION USING RESTORED INFORMATION OF IMAGE ACQUIRED BY USING CAMERA}ELECTRONIC DEVICE AND METHOD FOR PROCESSING COMPRESSION USING RESTORED INFORMATION OF IMAGE ACQUIRED BY USING CAMERA}

다양한 실시예들은 이미지를 압축 처리하는 전자 장치 및 방법에 관한 것이다.Various embodiments relate to electronic devices and methods for compressing images.

이미지를 처리하는 전자 장치는, 이미지 센서를 통하여 로우(raw) 이미지를 획득할 수 있으며, 획득된 로우 이미지를 이미지 신호 프로세서(image signal processor: ISP)를 이용하여 처리할 수 있다. 이미지 신호 프로세서는, 다양한 이미지 처리 알고리즘 예를 들면, 화질 개선 알고리즘 등을 이용하여 수신된 로우 이미지를 처리하여 풀 컬러 이미지를 제공할 수 있다.An electronic device for processing an image may acquire a raw image through an image sensor, and may process the obtained raw image using an image signal processor (ISP). The image signal processor may process the received raw image using various image processing algorithms, for example, an image quality improvement algorithm, to provide a full color image.

통상적으로 풀 컬러 이미지의 데이터 양이 크고 활용도가 높아 풀 컬러 이미지에 대한 압축 기술이 주로 연구되어 왔다. 최근 로우 이미지의 데이터 양도 커지고 로우 이미지를 클라우드 이미지 신호 프로세서(cloude image signal processor)등과 같은 외부 장치로 송신해야 하는 경우도 발생하여 로우 이미지에 대한 압축 기술도 중요한 이슈가 되고 있다.In general, a compression technique for a full color image has been mainly studied because of a large amount of data and high utilization of a full color image. Recently, the amount of data in a raw image is also increased, and the raw image may need to be transmitted to an external device such as a cloud image signal processor. Thus, compression technology for the raw image is also an important issue.

이미지 센서를 이용하여 획득되는 로우 이미지는 다양한 형태일 수 있으며, 로우 이미지 압축 시 이용되는 이미지 압축 기술은 다양할 수 있다. The raw image acquired using the image sensor may have various forms, and the image compression technique used in the raw image compression may vary.

종래 로우 이미지 압축 시 이용되는 이미지 압축 기술은 풀 컬러 이미지 또는 단일 컬러 이미지에 적용되던 이미지 압축 기술로서 로우 이미지 압축하는데는 적합하지 않거나 비효율적일 수 있으며 높은 압축 효율을 제공하지 못할 수 있다. The image compression technique used in the conventional low image compression is an image compression technique applied to a full color image or a single color image, which may not be suitable or inefficient for low image compression, and may not provide high compression efficiency.

예를 들면, 로우 이미지 중 베이어 이미지(bayer image)를 압축하기 위해 이용하는 이용하는 종래 압축 기술은 베이어 이미지를 압축하는데는 적합하지 않거나 비효율적일 수 있으며 높은 압축 효율을 제공하지 못할 수 있다.For example, conventional compression techniques used to compress Bayer images among raw images may not be suitable or inefficient for compressing Bayer images and may not provide high compression efficiency.

다양한 실시예들에 따르면 로우 이미지 압축에 적합하고 압축 효율이 높은 압축 기술을 이용하여 카메라를 이용하여 획득한 이미지를 압축 처리하는 전자 장치 및 방법을 제공할 수 있다. According to various embodiments of the present disclosure, an electronic device and a method for compressing an image acquired using a camera using a compression technique suitable for low image compression and having a high compression efficiency may be provided.

다양한 실시예에 따르면 베이어 이미지(bayer image) 압축에 적합하고 압축 효율이 높은 압축 기술을 이용하여 카메라를 이용하여 획득한 이미지를 압축 처리하는 전자 장치 및 방법을 제공할 수 있다.According to various embodiments of the present disclosure, an electronic device and a method for compressing an image acquired using a camera using a compression technology suitable for Bayer image compression and high compression efficiency may be provided.

다양한 실시예들에 따른 전자 장치는 카메라, 통신 모듈, 메모리 및 프로세서를 포함하고, 상기 프로세서는, 상기 카메라를 이용하여 획득된 원시 이미지(raw image)를 기반으로 제1 이미지를 획득하고, 상기 제1 이미지 내의 제1 색상에 대응하는 적어도 하나 이상의 제 1 픽셀들과 연관된 제 1 복원 정보를 획득하고, 상기 제 1 복원 정보를 이용하여 상기 제1 이미지 내의 제2 색상에 대응하는 적어도 하나 이상의 제 2 픽셀들에 대응하는 제1 보간 정보를 획득하고, 상기 제1 이미지와 관련하여 생성된 적어도 하나의 복원 정보 및 적어도 하나의 보간 정보에 기반하여 생성된 변환 정보를 획득하고, 상기 제1 복원 정보, 상기 변환 정보, 및 상기 제1 보간 정보를 이용하여 상기 적어도 하나 이상의 제2 픽셀들에 대응하는 상기 제2 복원 정보를 생성하고, 상기 제 1 복원 정보 및 상기 제 2 복원 정보를 이용하여 상기 제1 이미지에 대한 압축 데이터를 생성하고, 및 상기 통신 모듈을 이용하여, 상기 압축 데이터를 외부 장치로 전송하도록 설정될 수 있다.According to various embodiments of the present disclosure, an electronic device includes a camera, a communication module, a memory, and a processor, wherein the processor acquires a first image based on a raw image obtained using the camera, Obtain first reconstruction information associated with at least one first pixel corresponding to a first color in a first image, and use the first reconstruction information for at least one second corresponding to a second color in the first image Obtaining first interpolation information corresponding to pixels, acquiring transform information generated based on at least one reconstruction information and at least one interpolation information generated in relation to the first image, the first reconstruction information, Generate the second reconstruction information corresponding to the at least one or more second pixels by using the conversion information and the first interpolation information; The compressed data of the first image may be generated using the decompression information and the second decompressed information, and the compressed data may be transmitted to an external device using the communication module.

다양한 실시예들에 따른 전자 장치에서 카메라를 이용하여 획득한 이미지에 대한 복원 정보를 이용하여 압축하는 방법은, 상기 카메라를 이용하여 획득된 원시 이미지(raw image)를 기반으로 제1 이미지를 획득하는 동작, 상기 제1 이미지 내의 제1 색상에 대응하는 적어도 하나 이상의 제 1 픽셀들과 연관된 제 1 복원 정보를 획득하는 동작, 상기 제 1 복원 정보를 이용하여 상기 제1 이미지 내의 제2 색상에 대응하는 적어도 하나 이상의 제 2 픽셀들에 대응하는 제1 보간 정보를 획득하는 동작, 상기 제1 이미지와 관련하여 생성된 적어도 하나의 복원 정보 및 적어도 하나의 보간 정보에 기반하여 생성된 변환 정보를 획득하는 동작, 상기 제1 복원 정보, 상기 변환 정보, 및 상기 제1 보간 정보를 이용하여 상기 적어도 하나 이상의 제2 픽셀들에 대응하는 상기 제2 복원 정보를 생성하는 동작, 및 상기 제 1 복원 정보 및 상기 제 2 복원 정보를 이용하여 상기 제1 이미지에 대한 압축 데이터를 생성하는 동작을 포함할 수 있다. According to various embodiments of the present disclosure, a method of compressing by using reconstruction information about an image acquired by using a camera in the electronic device may include obtaining a first image based on a raw image obtained by using the camera. Operation, obtaining first reconstruction information associated with at least one first pixel corresponding to a first color in the first image, using the first reconstruction information, corresponding to a second color in the first image Acquiring first interpolation information corresponding to at least one or more second pixels, acquiring transform information generated based on at least one reconstruction information and at least one interpolation information generated in relation to the first image And corresponding to the at least one or more second pixels using the first reconstruction information, the transformation information, and the first interpolation information. 2, operation of generating the decoding information, and wherein the first decoding information and the second can comprise the operation of generating the compressed data for the first image using the second restoration information.

다양한 실시예들에 따른 전자 장치는 이미지 센서, 상기 이미지 센서와 전기적으로 연결된 제어 회로, 및 상기 제어 회로와 지정된 인터페이스로 연결된 프로세서를 포함하고, 상기 제어 회로는, 상기 이미지 센서를 이용하여 획득된 원시 이미지(raw image)를 기반으로 제1 이미지를 획득하고, 상기 제1 이미지 내의 제1 색상에 대응하는 적어도 하나 이상의 제 1 픽셀들과 연관된 제 1 복원 정보를 획득하고, 상기 제 1 복원 정보를 이용하여 상기 제1 이미지 내의 제2 색상에 대응하는 적어도 하나 이상의 제 2 픽셀들에 대응하는 제1 보간 정보를 획득하고, 상기 제1 이미지와 관련하여 생성된 적어도 하나의 복원 정보 및 적어도 하나의 보간 정보에 기반하여 생성된 변환 정보를 획득하고, 상기 제 1 복원 정보, 상기 변환 정보, 및 상기 제1 보간 정보를 이용하여 상기 적어도 하나 이상의 제2 픽셀들에 대응하는 상기 제2 복원 정보를 생성하고, 상기 제 1 복원 정보 및 상기 제 2 복원 정보를 이용하여, 상기 제1 이미지에 대한 압축 데이터를 생성하고, 및 상기 압축 데이터를 상기 프로세서로 전달하도록 설정될 수 있다.According to various embodiments of the present disclosure, an electronic device may include an image sensor, a control circuit electrically connected to the image sensor, and a processor connected to the control circuit through a designated interface, wherein the control circuit may include an original source obtained by using the image sensor. Acquire a first image based on a raw image, obtain first reconstruction information associated with at least one first pixel corresponding to a first color in the first image, and use the first reconstruction information Obtain first interpolation information corresponding to at least one or more second pixels corresponding to a second color in the first image, and at least one reconstruction information and at least one interpolation information generated in relation to the first image. Obtains the conversion information generated based on the first recovery information, and uses the first reconstruction information, the conversion information, and the first interpolation information. Generate the second reconstruction information corresponding to the at least one or more second pixels, generate compressed data for the first image using the first reconstruction information and the second reconstruction information, and compress the It may be configured to deliver data to the processor.

다양한 실시예들에 따르면 로우 이미지 압축에 적합하고 압축 효율이 높은 압축 기술을 이용하여 카메라를 이용하여 획득한 이미지에 대한 복원 정보를 압축 처리하는 전자 장치 및 방법을 제공할 수 있다. According to various embodiments of the present disclosure, an electronic device and a method for compressing reconstruction information about an image acquired using a camera using a compression technique suitable for low image compression and having high compression efficiency may be provided.

다양한 실시예에 따르면 베이어 이미지(bayer image) 압축에 적합하고 압축 효율이 높은 압축 기술을 이용하여 카메라를 이용하여 획득한 이미지에 대한 복원 정보를 압축 처리하는 전자 장치 및 방법을 제공할 수 있다.According to various embodiments of the present disclosure, an electronic device and a method for compressing restoration information about an image acquired using a camera using a compression technology suitable for Bayer image compression and high compression efficiency may be provided.

도 1은 다양한 실시예들에 따른 네트워크 환경 내의 전자 장치의 블럭도이다.
도 2는 다양한 실시예들에 따른 카메라 모듈의 블록도이다.
도 3은 다양한 실시예들에 따른 전자 장치 및 외부 전자 장치의 동작을 설명하기 위한 개념도이다.
도 4a는 다양한 실시예들에 따른 전자 장치 및 외부 전자 장치의 블럭도이다.
도 4b는 다양한 실시예들에 따른 이미지 센서에 연결된 제어 회로를 포함하는 전자 장치의 블록도를 도시한다.
도 5는 다양한 실시예들에 따른 전자 장치 및 외부 전자 장치의 동작 방법을 설명하기 위한 흐름도이다.
도 6은 다양한 실시예들에 따른 전자 장치에서 제1 이미지 내의 제1 블록 압축 방법을 설명하기 위한 도면이다.
도 7a 및 7b은 다양한 실시예에 따른 전자 장치가 처리하는 로우 이미지를 설명하기 위한 도면이다.
도 8a 및 도 8b는 다양한 실시예에 따른 전자 장치에서 제1 이미지를 기반으로 참조 채널에 대응된 제1 픽셀들에 대한 제1 복원 정보와 목표 채널에 대응된 제2 픽셀들에 대한 제1 보간 정보를 획득하는 동작을 설명하기 위한 도면이다.
도 9는 다양한 실시예에 따른 전자 장치에서 제1 보간 정보를 이용하여 적어도 하나 이상의 제2 픽셀들에 대응하는 제2 복원 정보를 획득하기 위한 변환 정보를 획득하는 동작을 설명하기 위한 도면이다.
도 10a 및 도 10b는 다양한 실시예에 따른 전자 장치에서 변환 정보 획득 시 이용되는 제1 블록의 인접 픽셀들을 나타낸 예시도이다.
도 11은 다양한 실시예에 따른 전자 장치에서 제1 이미지의 목표 채널에 대응된 적어도 하나 이상의 제2 픽셀들의 원래 픽셀값과 복원 픽셀값과의 차이를 설명하기 위한 도면이다.
도 12는 다양한 실시예에 따른 R, G, B의 3채널을 포함하는 제1 블록에서 G 채널이 참조 채널로 지정된 경우 압축된 제1 블록을 생성하는 예를 나타낸 도면이다.
도 13은 다양한 실시예에 따른 R, G1, G2, B의 4채널을 포함하는 제1 블록에서 G1 채널이 참조 채널로 지정된 경우 압축된 제1 블록을 생성하는 예를 나타낸 도면이다.
도 14는 다양한 실시예에 따른 R, G1, G2, B의 4채널을 포함하는 제1 블록에서 G1 채널이 참조 채널로 지정된 경우 R 채널에 대응된 색 보간을 수행하는 예를 설명하기 위한 도면이다.
도 15는 다양한 실시예에 따른 제1 블록의 인접 픽셀들에서 변환 계수를 유도하는 예를 설명하기 위한 도면이다.
1 is a block diagram of an electronic device in a network environment according to various embodiments.
2 is a block diagram of a camera module according to various embodiments.
3 is a conceptual diagram illustrating an operation of an electronic device and an external electronic device according to various embodiments of the present disclosure.
4A is a block diagram of an electronic device and an external electronic device according to various embodiments.
4B is a block diagram of an electronic device including a control circuit connected to an image sensor according to various embodiments.
5 is a flowchart illustrating an operation method of an electronic device and an external electronic device according to various embodiments of the present disclosure.
6 is a diagram illustrating a first block compression method in a first image in an electronic device according to various embodiments of the present disclosure.
7A and 7B are diagrams illustrating a row image processed by an electronic device according to various embodiments of the present disclosure.
8A and 8B illustrate first reconstruction information for first pixels corresponding to a reference channel and first interpolation for second pixels corresponding to a target channel based on a first image in an electronic device according to various embodiments of the present disclosure. It is a figure for explaining the operation | movement which acquires information.
9 is a diagram illustrating an operation of obtaining transformation information for acquiring second reconstruction information corresponding to at least one or more second pixels using first interpolation information in an electronic device according to various embodiments of the present disclosure.
10A and 10B are exemplary diagrams illustrating adjacent pixels of a first block used when acquiring transform information in an electronic device according to various embodiments of the present disclosure.
11 is a diagram illustrating a difference between an original pixel value and a reconstructed pixel value of at least one or more second pixels corresponding to a target channel of a first image in an electronic device according to various embodiments of the present disclosure.
12 is a diagram illustrating an example of generating a compressed first block when a G channel is designated as a reference channel in a first block including three channels of R, G, and B according to various embodiments.
FIG. 13 is a diagram illustrating an example of generating a compressed first block when a G1 channel is designated as a reference channel in a first block including four channels of R, G1, G2, and B according to various embodiments.
14 is a diagram illustrating an example of performing color interpolation corresponding to an R channel when a G1 channel is designated as a reference channel in a first block including four channels of R, G1, G2, and B according to various embodiments of the present disclosure. .
FIG. 15 is a diagram for describing an example of deriving a transform coefficient from adjacent pixels of a first block, according to various embodiments.

도 1은, 다양한 실시예들에 따른, 네트워크 환경(100) 내의 전자 장치(101)의 블럭도이다. 도 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)(예: 디스플레이)에 임베디드된 채 구현될 수 있다1 is a block diagram of an electronic device 101 in a network environment 100, according to various embodiments. Referring to FIG. 1, in the network environment 100, the electronic device 101 communicates with the electronic device 102 through a first network 198 (eg, a short-range wireless communication network) or the second network 199. The electronic device 104 may communicate with the server 108 through a long range 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 may include a processor 120, a memory 130, an input device 150, an audio 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 the components (for example, 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 in one integrated circuit. For example, the sensor module 176 (eg, fingerprint sensor, iris sensor, or illuminance sensor) may be implemented embedded in the display device 160 (eg, 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, the program 140) to execute at least one other component (eg, 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, processor 120 may send instructions or data received from another component (eg, sensor module 176 or communication module 190) to volatile memory 132. Can be loaded into, processed in a command or data stored in volatile memory 132, and stored in the non-volatile memory (134). According to an embodiment, the processor 120 may include a main processor 121 (eg, a central processing unit or an application processor), and a coprocessor 123 (eg, a graphics processing unit, an image signal processor) that may operate independently or together. , Sensor hub processor, or communication processor). Additionally or alternatively, the coprocessor 123 may be set to use lower power than the main processor 121 or to be specialized for its designated function. The coprocessor 123 may be implemented separately from or as part of the main processor 121.

보조 프로세서(123)는, 예를 들면, 메인 프로세서(121)가 인액티브(예: 슬립) 상태에 있는 동안 메인 프로세서(121)를 대신하여, 또는 메인 프로세서(121)가 액티브(예: 어플리케이션 실행) 상태에 있는 동안 메인 프로세서(121)와 함께, 전자 장치(101)의 구성요소들 중 적어도 하나의 구성요소(예: 표시 장치(160), 센서 모듈(176), 또는 통신 모듈(190))와 관련된 기능 또는 상태들의 적어도 일부를 제어할 수 있다. 일실시예에 따르면, 보조 프로세서(123)(예: 이미지 시그널 프로세서 또는 커뮤니케이션 프로세서)는 기능적으로 관련 있는 다른 구성 요소(예: 카메라 모듈(180) 또는 통신 모듈(190))의 일부로서 구현될 수 있다.  The coprocessor 123 may, for example, replace the main processor 121 while the main processor 121 is in an inactive (eg, sleep) state, or the main processor 121 may be active (eg, execute an application). 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) together with the main processor 121 while in the) state. Control at least some of the functions or states associated with the. According to one embodiment, the coprocessor 123 (eg, an image signal processor or communication processor) may be implemented as part of other functionally related components (eg, camera module 180 or 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, software (eg, the program 140) and input data or output data for a command related thereto. The memory 130 may include a volatile memory 132 or a nonvolatile 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 for a component (for example, the processor 120) of the electronic device 101 from the outside (for example, a user) of the electronic device 101. The input device 150 may include, for example, a microphone, a mouse, or a keyboard.

음향 출력 장치(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 may be used for general purposes such as multimedia playback or recording playback, and the receiver may be used to receive an incoming call. According to one embodiment, the receiver may be implemented separately from or as part of a 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 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 strength of a force generated by the touch. have.

오디오 모듈(170)은 소리를 전기 신호로 변환시키거나, 반대로 전기 신호를 소리로 변환시킬 수 있다. 일실시예에 따르면, 오디오 모듈(170)은, 입력 장치(150)를 통해 소리를 획득하거나, 음향 출력 장치(155), 또는 전자 장치(101)와 직접 또는 무선으로 연결된 외부 전자 장치(예: 전자 장치(102)) (예: 스피커 또는 헤드폰))를 통해 소리를 출력할 수 있다.The audio module 170 may convert sound into an electric signal or, conversely, convert an electric signal into a sound. According to an embodiment, the audio module 170 may acquire sound through the input device 150, or may output an external electronic device (eg, a sound output device 155, or directly or wirelessly connected to the electronic device 101). 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, a user state), and generates an electrical signal or data value corresponding to the detected state. can do. According to an embodiment, the sensor module 176 may include, for example, a gesture sensor, a gyro sensor, an air pressure sensor, a magnetic sensor, an acceleration sensor, a grip sensor, a proximity sensor, a color sensor, an 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 be directly or wirelessly connected to an external electronic device (for example, 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 may 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 can be perceived by the user through tactile or kinesthetic senses. According to one 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 videos. According to one 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 one embodiment, the power management module 388 may be implemented, for example, as at least 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 may establish a direct (eg wired) communication channel or 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). Establish and perform communication over established communication channels. The communication module 190 may operate independently of the processor 120 (eg, an application processor) and include one or more communication processors supporting direct (eg, wired) or wireless communication. According to one embodiment, the communication module 190 is a wireless communication module 192 (eg, a cellular communication module, a near field 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. The corresponding communication module of these communication modules may be a first network 198 (e.g. a short range communication network such as Bluetooth, WiFi direct or infrared data association (IrDA)) or a second network 199 (e.g. cellular network, the Internet, or Communicate with external electronic devices via a telecommunications network, such as a computer network (eg, LAN or WAN). These various types of communication modules may be integrated into one component (eg, a single chip) or may be implemented by a plurality of components (eg, a plurality of chips) separate from each other. The wireless communication module 192 uses subscriber information (e.g., international mobile subscriber identifier (IMSI)) stored in the subscriber identification module 196 in a communication network such as the first network 198 or the second network 199. The electronic device 101 may be checked and authenticated.

안테나 모듈(197)은 신호 또는 전력을 외부(예: 외부 전자 장치)로 송신하거나 외부로부터 수신할 수 있다. 일실시예에 따르면, 안테나 모듈(197)은 하나 이상의 안테나들을 포함할 수 있고, 이로부터, 제 1 네트워크 198 또는 제 2 네트워크 199와 같은 통신 네트워크에서 사용되는 통신 방식에 적합한 적어도 하나의 안테나가, 예를 들면, 통신 모듈(190)에 의하여 선택될 수 있다. 신호 또는 전력은 상기 선택된 적어도 하나의 안테나를 통하여 통신 모듈(190)과 외부 전자 장치 간에 송신되거나 수신될 수 있다.The antenna module 197 may transmit or receive a signal or power to an external (eg, an external electronic device) or from the outside. According to one embodiment, antenna module 197 may include one or more antennas, from which at least one antenna suitable for a communication scheme used in a communication network, such as first network 198 or second network 199, For example, it may be selected by the communication module 190. The signal or power may be transmitted or received between the communication module 190 and the external electronic device through the at least one selected antenna.

상기 구성요소들 중 적어도 일부는 인접 기기들간 통신 방식(예: 버스, 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 and connected via a communication scheme between adjacent devices (eg, a bus, a general purpose input and output (GPIO), a serial peripheral interface (SPI), or a mobile industry processor interface (MIPI)). For example, commands or data).

일실시예에 따르면, 명령 또는 데이터는 제 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 a device of the same or different type as the electronic device 101. According to an embodiment of the present disclosure, all or part of operations executed in the electronic device 101 may be executed in one or more external devices among 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 another device, the electronic device 101 instead of executing the function or service itself. In addition to or in addition, 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 receive 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 part of a response to the request. For this purpose, for example, cloud computing, distributed computing, or client-server computing technology. This can be used.

도 2는, 다양한 실시예들에 따른, 카메라 모듈(180)을 예시하는 블럭도(200)이다. 도 2를 참조하면, 카메라 모듈(180)은 렌즈 어셈블리(210), 플래쉬(220), 이미지 센서(230), 이미지 스태빌라이저(240), 메모리(250)(예: 버퍼 메모리), 또는 이미지 시그널 프로세서(260)를 포함할 수 있다. 렌즈 어셈블리(210)는 이미지 촬영의 대상인 피사체로부터 방출되는 빛을 수집할 수 있다. 렌즈 어셈블리(210)는 하나 또는 그 이상의 렌즈들을 포함할 수 있다. 일실시예에 따르면, 카메라 모듈(180)은 복수의 렌즈 어셈블리(210)들을 포함할 수 있다. 이런 경우, 카메라 모듈(180)은, 예를 들면, 듀얼 카메라, 360도 카메라, 또는 구형 카메라(spherical camera)를 형성할 수 있다. 복수의 렌즈 어셈블리(210)들 중 일부는 동일한 렌즈 속성(예: 화각, 초점 거리, 자동 초점, f 넘버(f number), 또는 광학 줌)을 갖거나, 또는 적어도 하나의 렌즈 어셈블리는 다른 렌즈 어셈블리의 렌즈 속성들과 다른 하나 이상의 렌즈 속성들을 가질 수 있다. 렌즈 어셈블리(210)는, 예를 들면, 광각 렌즈 또는 망원 렌즈를 포함할 수 있다. 2 is a block diagram 200 illustrating a camera module 180, in accordance with various embodiments. Referring to FIG. 2, the camera module 180 may include 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 may include. The lens assembly 210 may collect light emitted from a subject that is a target of image capturing. 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 form, for example, a dual camera, a 360 degree camera, or a spherical camera. Some of the plurality of lens assemblies 210 have the same lens properties (eg, angle of view, focal length, auto focus, f number, or optical zoom), or at least one lens assembly is a different lens assembly. It may have one or more lens properties different from the lens properties of. The lens assembly 210 may include, for example, a wide angle lens or a telephoto lens.

플래쉬(220)는 피사체로부터 방출 또는 반사되는 빛을 강화하기 위하여 사용되는 빛을 방출할 수 있다. 일실시예에 따르면, 플래쉬(220)는 하나 이상의 발광 다이오드들(예: RGB(red-green-blue) LED, white LED, infrared LED, 또는 ultraviolet LED), 또는 xenon lamp를 포함할 수 있다. 이미지 센서(230)는 피사체로부터 방출 또는 반사되어 렌즈 어셈블리(210)를 통해 전달된 빛을 전기적인 신호로 변환함으로써, 상기 피사체에 대응하는 이미지를 획득할 수 있다. 일실시예에 따르면, 이미지 센서(230)는, 예를 들면, RGB 센서, BW(black and white) 센서, IR 센서, 또는 UV 센서와 같이 속성이 다른 이미지 센서들 중 선택된 하나의 이미지 센서, 동일한 속성을 갖는 복수의 이미지 센서들, 또는 다른 속성을 갖는 복수의 이미지 센서들을 포함할 수 있다. 이미지 센서(230)에 포함된 각각의 이미지 센서는, 예를 들면, CCD(charged coupled device) 센서 또는 CMOS(complementary metal oxide semiconductor) 센서를 이용하여 구현될 수 있다.The flash 220 may emit light used to enhance the light emitted or reflected from the subject. According to an embodiment, the flash 220 may include one or more light emitting diodes (eg, red-green-blue (LED), white LED, infrared LED, or ultraviolet LED), or xenon lamp. The image sensor 230 may acquire an image corresponding to the subject by converting light emitted from or reflected from the subject and transmitted through the lens assembly 210 into an electrical signal. According to one embodiment, the image sensor 230 is the same as one image sensor selected from among image sensors having different properties, such as, for example, an RGB sensor, a black and white (BW) sensor, an IR sensor, or a UV sensor. A plurality of image sensors having a property, or a plurality of image sensors having another property. Each image sensor included in the image sensor 230 may be implemented using, for example, a charged coupled device (CCD) sensor or a complementary metal oxide semiconductor (CMOS) sensor.

이미지 스태빌라이저(240)는 카메라 모듈(180) 또는 이를 포함하는 전자 장치(101)의 움직임에 반응하여, 렌즈 어셈블리(210)에 포함된 적어도 하나의 렌즈 또는 이미지 센서(230)를 특정한 방향으로 움직이거나 이미지 센서(230)의 동작 특성을 제어(예: 리드 아웃(read-out) 타이밍을 조정 등)할 수 있다. 이는 촬영되는 이미지에 대한 상기 움직임에 의한 부정적인 영향의 적어도 일부를 보상하게 해 준다. 일실시예에 따르면, 이미지 스태빌라이저(240)는, 일실시예에 따르면, 이미지 스태빌라이저(240)은 카메라 모듈(180)의 내부 또는 외부에 배치된 자이로 센서(미도시) 또는 가속도 센서(미도시)를 이용하여 카메라 모듈(180) 또는 전자 장치(101)의 그런 움직임을 감지할 수 있다. 일실시예에 따르면, 이미지 스태빌라이저(240)는, 예를 들면, 광학식 이미지 스태빌라이저로 구현될 수 있다. 메모리(250)는 이미지 센서(230)을 통하여 획득된 이미지의 적어도 일부를 다음 이미지 처리 작업을 위하여 적어도 일시 저장할 수 있다. 예를 들어, 셔터에 따른 이미지 획득이 지연되거나, 또는 복수의 이미지들이 고속으로 획득되는 경우, 획득된 원본 이미지(예: Bayer-patterned 이미지 또는 높은 해상도의 이미지)는 메모리(250)에 저장이 되고, 그에 대응하는 사본 이미지(예: 낮은 해상도의 이미지)는 표시 장치(160)을 통하여 프리뷰될 수 있다. 이후, 지정된 조건이 만족되면(예: 사용자 입력 또는 시스템 명령) 메모리(250)에 저장되었던 원본 이미지의 적어도 일부가, 예를 들면, 이미지 시그널 프로세서(260)에 의해 획득되어 처리될 수 있다. 일실시예에 따르면, 메모리(250)는 메모리(130)의 적어도 일부로, 또는 이와는 독립적으로 운영되는 별도의 메모리로 구성될 수 있다.The image stabilizer 240 moves the at least one lens or the image sensor 230 included in the lens assembly 210 in a specific direction in response to the movement of the camera module 180 or the electronic device 101 including the same. An operating characteristic of the image sensor 230 may be controlled (eg, read-out timing may be adjusted). This allows to compensate for at least some of the negative effects of the movement on the image taken. According to one embodiment, the image stabilizer 240, according to one embodiment, the image stabilizer 240 is a gyro sensor (not shown) or an acceleration sensor (not shown) disposed inside or outside the camera module 180. Such movement of the camera module 180 or the electronic device 101 can be detected by using the C-type. According to one embodiment, the image stabilizer 240 may be implemented as, for example, an optical image stabilizer. The memory 250 may at least temporarily store at least a portion of the image acquired through the image sensor 230 for the next image processing task. For example, if the image acquisition according to the shutter is delayed or a plurality of images are obtained at high speed, the obtained original image (eg, Bayer-patterned image or high resolution image) is stored in the memory 250. The corresponding copy image (eg, a low resolution image) may be previewed through the display device 160. Thereafter, if 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 acquired and processed by, for example, the image signal processor 260. According to an embodiment, the memory 250 may be configured as a separate memory operated as at least a part of the memory 130 or 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)과 별도의 프로세서로 구성된 경우, 이미지 시그널 프로세서(260)에 의해 처리된 적어도 하나의 이미지는 프로세서(120)에 의하여 그대로 또는 추가의 이미지 처리를 거친 후 표시 장치(160)를 통해 표시될 수 있다. The image signal processor 260 may perform one or more image processes on the image obtained through the image sensor 230 or the image stored in the memory 250. The one or more image processes may include, for example, depth map generation, three-dimensional modeling, panorama generation, feature point extraction, image synthesis, or image compensation (eg, noise reduction, resolution adjustment, brightness adjustment, blurring) may include blurring, sharpening, or softening In addition or alternatively, the image signal processor 260 may include at least one of components included in the camera module 180 (eg, an image sensor). Control (eg, exposure time control, read-out timing control, etc.) for the image 230. An image processed by the image signal processor 260 is stored back in the memory 250 for further processing. Or as 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 the example, The null processor 260 may be configured as at least a part of the processor 120, or may be configured as a separate processor operating independently of the processor 120. The image signal processor 260 may be a separate processor from the processor 120. When configured, the at least one image processed by the image signal processor 260 may be displayed through the display device 160 as it is or after additional image processing by the processor 120.

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

본 문서에 개시된 다양한 실시예들에 따른 전자 장치는 다양한 형태의 장치가 될 수 있다. 전자 장치는, 예를 들면, 휴대용 통신 장치 (예: 스마트폰), 컴퓨터 장치, 휴대용 멀티미디어 장치, 휴대용 의료 기기, 카메라, 웨어러블 장치, 또는 가전 장치를 포함할 수 있다. 본 문서의 실시예에 따른 전자 장치는 전술한 기기들에 한정되지 않는다.Electronic devices according to various embodiments of the present disclosure may be various types of devices. The electronic device may include, for example, a portable communication device (eg, a smartphone), a computer device, a portable multimedia device, a portable medical device, a camera, a wearable device, or a home appliance device. Electronic devices according to embodiments of the present disclosure are 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 구성요소를 통하여 연결될 수 있다는 것을 의미한다.Various embodiments of the present document and terminology used herein are not intended to limit the technical features described in the present specification to specific embodiments, but should be understood to include various changes, equivalents, or substitutes for the embodiments. In connection with the description of the drawings, similar 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 items, unless the context clearly indicates otherwise. In this document, "A or B", "At least one of A and B", "At least one of A or B," "A, B or C," "At least one of A, B and C," and "A And phrases such as "at least one of B, or C" may include all possible combinations of items listed together in the corresponding one of the phrases. Terms such as "first", "second", or "first" or "second" may be used merely to distinguish a component from other corresponding components, and to separate the components from other aspects (e.g. Order). Some (eg, first) component may be referred to as "coupled" or "connected" to another (eg, second) component, with or without the term "functionally" or "communicatively". When mentioned, it means that any component can be connected directly to the other component (eg, by wire), wirelessly, or via 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 logic, logic block, component, or circuit. The module may be an integral part or a minimum unit or part of the component, which performs one or more functions. For example, according to one embodiment, the module may be implemented in the form of an application-specific integrated circuit (ASIC).

본 문서의 다양한 실시예들은 기기(machine)(예: 전자 장치(101)) 의해 읽을 수 있는 저장 매체(storage medium)(예: 내장 메모리(136) 또는 외장 메모리(138))에 저장된 하나 이상의 명령어들을 포함하는 소프트웨어(예: 프로그램(140))로서 구현될 수 있다. 예를 들면, 기기(예: 전자 장치(101))의 프로세서(예: 프로세서(120))는, 저장 매체로부터 저장된 하나 이상의 명령어들 중 적어도 하나의 명령을 호출하고, 그것을 실행할 수 있다. 이것은 기기가 상기 호출된 적어도 하나의 명령어에 따라 적어도 하나의 기능을 수행하도록 운영되는 것을 가능하게 한다. 상기 하나 이상의 명령어들은 컴파일러에 의해 생성된 코드 또는 인터프리터에 의해 실행될 수 있는 코드를 포함할 수 있다. 기기로 읽을 수 있는 저장매체 는, 비일시적(non-transitory) 저장매체의 형태로 제공될 수 있다. 여기서, ‘비일시적’은 저장매체가 실재(tangible)하는 장치이고, 신호(signal)(예: 전자기파)를 포함하지 않는다는 것을 의미할 뿐이며, 이 용어는 데이터가 저장매체에 반영구적으로 저장되는 경우와 임시적으로 저장되는 경우를 구분하지 않는다.Various embodiments of this document may include one or more instructions stored on a storage medium (eg, internal memory 136 or external memory 138) that can be read by a machine (eg, electronic device 101). It may be implemented as software (eg, program 140) including the. For example, a processor (eg, the processor 120) of the device (eg, the electronic device 101) may call and execute at least one command among one or more instructions stored from the storage medium. This enables the device to be operated to perform at least one function in accordance with the at least one command invoked. 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' means only that the storage medium is a tangible device and does not contain a signal (e.g., electromagnetic waves), which is the case when data is stored semi-permanently on the storage medium. It does not distinguish cases where it is temporarily stored.

일실시예에 따르면, 본 문서에 개시된 다양한 실시예들에 따른 방법은 컴퓨터 프로그램 제품(computer program product)에 포함되어 제공될 수 있다. 컴퓨터 프로그램 제품은 상품으로서 판매자 및 구매자 간에 거래될 수 있다. 컴퓨터 프로그램 제품은 기기로 읽을 수 있는 저장 매체(예: compact disc read only memory (CD-ROM))의 형태로 배포되거나, 또는 어플리케이션 스토어(예: 플레이 스토어TM)를 통해 또는 두개의 사용자 장치들(예: 스마트폰들) 간에 직접, 온라인으로 배포(예: 다운로드 또는 업로드)될 수 있다. 온라인 배포의 경우에, 컴퓨터 프로그램 제품의 적어도 일부는 제조사의 서버, 어플리케이션 스토어의 서버, 또는 중계 서버의 메모리와 같은 기기로 읽을 수 있는 저장 매체에 적어도 일시 저장되거나, 임시적으로 생성될 수 있다.According to one embodiment, a method according to various embodiments disclosed herein may be provided included in a computer program product. The computer program product may be traded between the seller and the buyer as a product. The computer program product may be distributed in the form of a device-readable storage medium (e.g. compact disc read only memory (CD-ROM)), or through an application store (e.g. Play Store TM ) or two user devices ( Example: smartphones) can be distributed (eg downloaded or uploaded) directly or online. In the case of on-line distribution, at least a portion of the computer program product may be stored at least temporarily on a device-readable storage medium such as a server of a manufacturer, a server of an application store, or a relay server, or may be temporarily created.

다양한 실시예들에 따르면, 상기 기술한 구성요소들의 각각의 구성요소(예: 모듈 또는 프로그램)는 단수 또는 복수의 개체를 포함할 수 있다. 다양한 실시예들에 따르면, 전술한 해당 구성요소들 중 하나 이상의 구성요소들 또는 동작들이 생략되거나, 또는 하나 이상의 다른 구성요소들 또는 동작들이 추가될 수 있다. 대체적으로 또는 추가적으로, 복수의 구성요소들(예: 모듈 또는 프로그램)은 하나의 구성요소로 통합될 수 있다. 이런 경우, 통합된 구성요소는 상기 복수의 구성요소들 각각의 구성요소의 하나 이상의 기능들을 상기 통합 이전에 상기 복수의 구성요소들 중 해당 구성요소에 의해 수행되는 것과 동일 또는 유사하게 수행할 수 있다. 다양한 실시예들에 따르면, 모듈, 프로그램 또는 다른 구성요소에 의해 수행되는 동작들은 순차적으로, 병렬적으로, 반복적으로, 또는 휴리스틱하게 실행되거나, 상기 동작들 중 하나 이상이 다른 순서로 실행되거나, 생략되거나, 또는 하나 이상의 다른 동작들이 추가될 수 있다.According to various embodiments, each component (eg, module or program) of the above-described components may include a singular or plural entity. According to various embodiments, one or more of the aforementioned components or operations 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 the component of each of the plurality of components the same as or similar to that performed by the corresponding component of the plurality of components before the integration. . According to various embodiments, operations performed by a module, program, or other component may be executed sequentially, in parallel, repeatedly, or heuristically, or one or more of the operations may be executed in a different order, or omitted. Or one or more other actions may be added.

도 3은 다양한 실시예들에 따른 전자 장치 및 외부 전자 장치의 동작을 설명하기 위한 개념도를 도시한다.3 is a conceptual diagram illustrating an operation of an electronic device and an external electronic device according to various embodiments of the present disclosure.

전자 장치(101)는, 이미지 센서(321), ISP(323) 및 메모리(325)를 포함할 수 있다. 외부 전자 장치(300)는, 인식 모듈(331), ISP(333) 및 저장소(335)를 포함할 수 있다. 인식 모듈(331)은 논리 모듈일 수도 있으며, 외부 전자 장치(300)의 프로세서로 구현될 수도 있다. ISP(333) 또한 외부 전자 장치(300)의 프로세서로 구현될 수 있으며, 예를 들어 외부 전자 장치(300)의 프로세서가 인식과 이미지 처리를 모두 수행할 수도 있다. 도시되지는 않았지만, 전자 장치(101)는 외부 전자 장치(300)와 데이터를 송수신할 수 있는 통신 모듈(예: 통신 인터페이스(170) 또는 통신 모듈(220))을 포함할 수 있다. 외부 전자 장치(300)는 전자 장치(101)와 데이터를 송수신할 수 있는 통신 모듈을 포함할 수 있다.The electronic device 101 may include an image sensor 321, an ISP 323, and a memory 325. The external electronic device 300 may include a recognition module 331, an ISP 333, and a storage 335. The recognition module 331 may be a logic module or may be implemented as a processor of the external electronic device 300. The ISP 333 may also be implemented as a processor of the external electronic device 300. For example, the processor of the external electronic device 300 may perform both recognition and image processing. Although not shown, the electronic device 101 may include a communication module (eg, the communication interface 170 or the communication module 220) that may transmit and receive data with the external electronic device 300. The external electronic device 300 may include a communication module capable of transmitting and receiving data with the electronic device 101.

이미지 센서(321)(예: 카메라 모듈(291))는, 외부 객체에 대한 이미지를 획득할 수 있으며, 이에 대응하는 로우 이미지(311)(원시 이미지, raw image)를 생성할 수 있다. 이미지 센서(321)는, 로우 이미지(311)를 ISP(323)로 전달할 수 있다. 본 발명의 다양한 실시예에서, 이미지 센서(321)는 스몰 로우 이미지(325)를 생성하여 이를 통신 모듈을 통하여 외부 전자 장치(300)로 송신할 수 있다. 또 다른 실시예에서는, 이미지 센서(321)가 아닌 전자 장치(101)의 프로세서가 스몰 로우 이미지(312)를 생성할 수도 있으며, 생성된 스몰 로우 이미지(312)를 통신 모듈을 통하여 외부 전자 장치(300)로 송신할 수 있다. 이미지 센서(321)는, 로우 이미지(311)를 압축된 상태로 상기 ISP 또는 상기 외부 전자 장치(300)으로 송신할 수 있다. 이미지 센서(321)는, 로우 이미지(311)의 일부 처리를 위해 압축하여 상기 이미지 센서(321)내부의 메모리에 저장할 수 있다. 외부 전자 장치(300)의 인식 모듈(331)은 통신 모듈을 통하여 스몰 로우 이미지(312)를 획득할 수 있으며, 스몰 로우 이미지(312)로부터 적어도 하나의 이미지 영역을 세그먼테이션할 수 있다. 인식 모듈(321)은 세그먼테이션 결과로 구분된 적어도 하나의 이미지 영역 각각을 인식할 수 있다. 인식 모듈(321)로부터 생성된 복수의 이미지 영역과 연관된 정보, 예를 들어 이미지 영역의 좌표 정보 또는 인식 결과 중 적어도 하나를 포함하는 보정 영역 정보(332)가 생성될 수 있다. 보정 영역 정보(332)는 전자 장치(101)로 송신될 수 있다. ISP(323)는 보정 영역 정보(332)를 이용하여 로우 이미지(311)를 보정할 수 있으며, 이에 따라 보정된 이미지가 생성될 수 있다. 보정된 이미지는, 예를 들어 YUV의 포맷을 가질 수 있다. 보정된 이미지는 메모리(325)에 저장될 수 있다. 또는, 보정된 이미지는 예를 들어 JPEG 방식에 따라 압축될 수 있으며, 압축된 이미지가 메모리(325)에 저장될 수도 있다.The image sensor 321 (eg, the camera module 291) may acquire an image of an external object and generate a raw image 311 (raw image) corresponding thereto. The image sensor 321 may transfer the raw image 311 to the ISP 323. In various embodiments of the present disclosure, the image sensor 321 may generate the small row image 325 and transmit it to the external electronic device 300 through the communication module. In another embodiment, a processor of the electronic device 101 other than the image sensor 321 may generate the small row image 312, and the generated small row image 312 may be generated through an external electronic device (eg, a communication module). 300). The image sensor 321 may transmit the raw image 311 to the ISP or the external electronic device 300 in a compressed state. The image sensor 321 may be compressed and stored in a memory inside the image sensor 321 for processing of the raw image 311. The recognition module 331 of the external electronic device 300 may acquire the small row image 312 through the communication module, and segment at least one image area from the small row image 312. The recognition module 321 may recognize each of the at least one image area divided by the segmentation result. Correction area information 332 including information associated with a plurality of image areas generated from the recognition module 321, for example, coordinate information of the image area or a recognition result, may be generated. The correction area information 332 may be transmitted to the electronic device 101. The ISP 323 may correct the row image 311 using the correction area information 332, and thus a corrected image may be generated. The corrected image may have a format of YUV, for example. The corrected image may be stored in the memory 325. Alternatively, the corrected image may be compressed according to, for example, a JPEG method, and the compressed image may be stored in the memory 325.

본 발명의 다양한 실시예에서, 이미지 센서(321)로부터 제공되는 로우 이미지(311)는 스몰 로우 이미지(312)와 별도로 외부 전자 장치(300)로 송신될 수 있다. 로우 이미지(311)는, 스몰 로우 이미지(312)에 비하여 용량이 크므로, 스몰 로우 이미지(312)가 우선 외부 전자 장치(300)로 송신되며, 이후 로우 이미지(311)가 외부 전자 장치(300)로 송신될 수 있다. 예를 들어, ISP(323)가 로우 이미지(311)에 대한 보정을 수행하는 동안에 로우 이미지(311)가 외부 전자 장치(300)로 송신될 수도 있다. 로우 이미지(311)는, 이미지 센서(321)에 의하여 생성된 그대로 외부 전자 장치(300)로 업로드될 수도 있으며, 또는 렌즈 왜곡 보상 또는 노이즈 제거가 수행된 전처리 영상이 업로드될 수도 있다. 상술한 전처리는 외부 전자 장치(300)에서 수행될 수도 있다. 외부 전자 장치(300)는, Demosaic 처리 또는 이미지 포맷 변형, 또는 영상 인식률을 높이기 위한 전처리를 수행할 수도 있다. 외부 전자 장치(300)의 ISP(333)는, 수신된 로우 이미지(311)를 보정할 수 있다. 외부 전자 장치(300)는 기존에 생성하였던 보정 영역 정보(332)를 이용하여 로우 이미지(311)를 보정할 수도 있으며, 또는 확장된 보정 영역 정보를 이용하여 로우 이미지(311)를 보정할 수도 있다. 로우 이미지(311)는, 스몰 로우 이미지(312)에 비하여 해상도가 높을 수도 있으며, 이에 따라 외부 전자 장치(300)의 ISP(333)는 고해상도 이미지로부터 보다 상세한 확장된 보정 영역 정보를 획득할 수 있다. ISP(333)는, 기존에 생성된 보정 영역 정보와 로우 이미지(311)를 함께 이용하여 확장된 보정 영역 정보를 생성할 수도 있다. ISP(333)는 확장된 보정 영역 정보를 이용하여 로우 이미지(311)를 보정함으로써, 고해상도 이미지(high quality image)(334)를 획득할 수 있다. 고해상도 이미지(334)는 외부 전자 장치(300)의 저장소(335)에 저장될 수 있으며, 전자 장치(101)로 다운로드될 수도 있다.In various embodiments of the present disclosure, the raw image 311 provided from the image sensor 321 may be transmitted to the external electronic device 300 separately from the small raw image 312. Since the raw image 311 has a larger capacity than the small raw image 312, the small raw image 312 is first transmitted to the external electronic device 300, and then the raw image 311 is transmitted to the external electronic device 300. ) May be sent. For example, the raw image 311 may be transmitted to the external electronic device 300 while the ISP 323 performs correction on the raw image 311. The raw image 311 may be uploaded to the external electronic device 300 as it is generated by the image sensor 321, or a preprocessed image in which lens distortion compensation or noise removal is performed may be uploaded. The preprocessing described above may be performed in the external electronic device 300. The external electronic device 300 may perform demosaic processing, image format modification, or preprocessing to increase an image recognition rate. The ISP 333 of the external electronic device 300 may correct the received row image 311. The external electronic device 300 may correct the row image 311 using the previously generated correction area information 332, or may correct the row image 311 using the extended correction area information. . The raw image 311 may have a higher resolution than the small raw image 312, and accordingly, the ISP 333 of the external electronic device 300 may obtain more detailed extended correction region information from the high resolution image. . The ISP 333 may generate extended correction region information by using the correction region information previously generated and the row image 311 together. The ISP 333 may acquire a high quality image 334 by correcting the row image 311 using the extended correction region information. The high resolution image 334 may be stored in the storage 335 of the external electronic device 300 or downloaded to the electronic device 101.

도 4a는 다양한 실시예들에 따른 전자 장치 및 외부 전자 장치의 블록도를 도시한다. 다양한 실시예에 따른 전자 장치(400)(예: 도 1의 전자 장치(101))는, 이미지 센서(401), 프로세서(410), 메모리(420) 및 디스플레이(430)를 포함할 수 있다. 외부 전자 장치(450)(예: 도 1의 전자 장치(104) 또는 서버(108) 또는 도 3의 외부 전자 장치(300))는, 압축 해제 모듈(451) 및 인식 모듈(452)을 포함할 수 있다. 압축 해제 모듈(451) 및 인식 모듈(452)이 수행하는 동작들은 외부 전자 장치(450)의 프로세서가 수행할 수도 있다.4A is a block diagram of an electronic device and an external electronic device according to various embodiments. The electronic device 400 (eg, the electronic device 101 of FIG. 1) according to various embodiments may include an image sensor 401, a processor 410, a memory 420, and a display 430. External electronic device 450 (e.g., degrees The electronic device 104 or server 108 of FIG. 1 or the external electronic device 300 of FIG. 3 may include a decompression module 451 and a recognition module 452. Operations performed by the decompression module 451 and the recognition module 452 may be performed by a processor of the external electronic device 450.

전자 장치(400)의 이미지 센서(401)(예: 카메라 모듈(291))는 외부 객체를 촬영할 수 있으며, 촬영된 원시 이미지(로우 이미지)(402)를 획득할 수 있다. 로우 이미지(402)는, 메모리(420)(예를 들어, DRAM)에 일시적 또는 비일시적으로 저장될 수 있다. 프로세서(410)는, 경량 이미지 생성 및 압축 모듈(411), ISP(412), 압축 모듈(413)을 포함할 수 있다. 경량 이미지 생성 및 압축 모듈(411), ISP(412) 및 압축 모듈(413)은, 예를 들어 논리 모듈일 수도 있으며, 이에 따라 경량 이미지 생성 및 압축 모듈(411), ISP(412) 및 압축 모듈(413)이 수행하는 동작은, 프로세서(410)(예: 도 1의 프로세서(120)가 수행할 수 있다. 다른 실시예에서는, 경량 이미지 생성 및 압축 모듈(411), ISP(412) 또는 압축 모듈(413) 중 적어도 하나가 프로세서(410) 내의 하드웨어로 구현될 수도 있다. 경량 이미지 생성 및 압축 모듈(411)은, 이미지 센서(401)로부터 생성된 로우 이미지(402)를 수신할 수 있으며, 로우 이미지(402)로부터 스몰 로우 이미지(403)를 생성할 수 있다. 경량 이미지 생성 및 압축 모듈(411)은 로우 이미지(402)를 압축하거나 다양한 이미지 처리를 통해 로우 이미지보다 데이터 용량이 작은 스몰 로우 이미지(403)를 생성할 수 있으며, 스몰 로우 이미지(403)를 메모리(420)에 저장할 수 있다. The image sensor 401 (eg, the camera module 291) of the electronic device 400 may photograph an external object and may acquire the captured raw image (low image) 402. The raw image 402 may be stored temporarily or non-temporarily in the memory 420 (eg, DRAM). The processor 410 may include a lightweight image generation and compression module 411, an ISP 412, and a compression module 413. Lightweight image generation and compression module 411, ISP 412, and compression module 413 may be, for example, logical modules, and thus, lightweight image generation and compression module 411, ISP 412, and compression module. Operations performed by 413 may be performed by processor 410 (eg, processor 120 of Figure 1. In another embodiment, lightweight image generation and compression module 411, ISP 412 or compression At least one of the modules 413 may be implemented in hardware within the processor 410. The lightweight image generation and compression module 411 may receive the raw image 402 generated from the image sensor 401, The small image 403 may be generated from the raw image 402. The lightweight image generation and compression module 411 compresses the raw image 402 or performs various image processing to produce a small row having a smaller data capacity than the raw image. Can create an image 403 The right image 403 can be stored in memory 420.

다양한 실시예에 따르면 로우 이미지(402)는 제1 색상에 대응하는 적어도 하나의 제1 픽셀값들과 제2 색상에 대응하는 적어도 하나의 제2 픽셀값들을 포함하는 제1 이미지일 수 있다. 일 실시예에 따르면 제1 이미지는 베이어 패턴 형식 이미지(bayer parttern format image)(이하 '베이어 이미지'라고도 함)일 수 있다. 예를 들면, 베이어 패턴 형식 이미지는 RGB 베이어 패턴 또는 CMY(cyan magenta yellow) 베이어 패턴 등 다양한 채널의 베이어 패턴 형식 이미지일 수 있다. According to various embodiments, the row image 402 may be a first image including at least one first pixel value corresponding to the first color and at least one second pixel value corresponding to the second color. According to an embodiment, the first image may be a Bayer parttern format image (hereinafter, also referred to as a 'bayer image'). For example, the Bayer pattern format image may be a Bayer pattern format image of various channels such as an RGB Bayer pattern or a cyan magenta yellow (CMY) Bayer pattern.

일 실시예에 따르면 프로세서(410)는 제1 이미지 압축 시 제1 이미지 내의 제1 색상에 대응하는 적어도 하나의 제1 픽셀들과 연관된 제1 복원 정보를 획득할 수 있고, 제1 복원 정보에 적어도 기반하여 제1 이미지 내의 제2 색상에 대응하는 적어도 하나 이상의 제2 픽셀들에 대응하는 제1 보간 정보를 획득할 수 있다. 일 실시예에 따르면, 제1 복원 정보는 제1 이미지 내의 제1 색상에 대응하는 적어도 하나 이상의 제 1 픽셀들을 압축하고 압축된 제1 픽셀들 값을 복원하여 획득된 적어도 하나 이상의 제1 픽셀들 복원값을 포함할 수 있다. 예를 들면, 제1 복원 정보는 제1 색상 즉, 제1 채널(이하 '참조 채널'이라고도 함)에 대응하는 적어도 하나의 제1 픽셀들 각각의 픽셀 복원값을 포함할 수 있다. 일 실시예에 따르면 제1 보간 정보는 제1 이미지 내의 제2 색상 즉, 제2 채널(이하 '목표 채널'이라고도 함)에 대응하는 적어도 하나 이상의 제2 픽셀들에 대응하는 픽셀 보간값들을 포함할 수 있다. According to an embodiment, the processor 410 may obtain first reconstruction information associated with at least one first pixel corresponding to the first color in the first image when the first image is compressed, and at least to the first reconstruction information. The first interpolation information corresponding to the at least one or more second pixels corresponding to the second color in the first image may be obtained based on the first interpolation information. According to an embodiment, the first reconstruction information is at least one first pixel reconstruction obtained by compressing at least one or more first pixels corresponding to the first color in the first image and reconstructing the compressed first pixels value. May contain a value. For example, the first reconstruction information may include a pixel reconstruction value of each of at least one first pixels corresponding to a first color, that is, a first channel (hereinafter, also referred to as a reference channel). According to an embodiment, the first interpolation information may include pixel interpolation values corresponding to at least one second pixel corresponding to a second color in the first image, that is, a second channel (hereinafter also referred to as a 'target channel'). Can be.

다양한 실시예에 따르면, 프로세서(410)는 목표 채널에 대응하는 적어도 하나 이상의 제2 픽셀들과 연관된 변환 정보를 획득할 수 있다.  According to various embodiments, the processor 410 may obtain transformation information associated with at least one or more second pixels corresponding to the target channel.

일 실시예에 따르면 프로세서(410)는 제1 이미지와 관련하여 생성된 적어도 하나의 복원 정보 및 적어도 하나의 보간 정보에 기반하여 생성된 변환정보를 획득할 수 있다. 예를 들면, 프로세서(410)는 제1 이미지를 복수의 블록들로 구분하고, 복수의 블록들 중 제1 블록의 복원 정보 및 보간 정보를 획득하여 제1 블록의 복원 정보를 제1 블록의 보간 정보로 변환하기 위한 제1 변환 정보를 획득할 수 있다. 일 실시예에 따르면 프로세서(410)는 복수의 블록들 각각에 대한 복수의 변환 정보를 획득하고, 복수의 변환 정보들 중 하나의 변환 정보를 획득할 수 있다.According to an embodiment, the processor 410 may obtain the generated conversion information based on at least one piece of reconstruction information and at least one interpolation information generated in relation to the first image. For example, the processor 410 divides the first image into a plurality of blocks, obtains reconstruction information and interpolation information of the first block among the plurality of blocks, and interpolates the reconstruction information of the first block by interpolation of the first block. First conversion information for converting to information may be obtained. According to an embodiment, the processor 410 may obtain a plurality of transform information for each of the plurality of blocks, and obtain one of the plurality of transform information.

다양한 실시예에 따르면, 프로세서(410)는 제1 복원 정보, 변환 정보 및 제1 보간 정보를 이용하여 하나 이상의 제2 픽셀들에 대응하는 제2 복원 정보를 획득할 수 있다. 일 실시예에 따르면, 제2 복원 정보는 제2 색상에 대응하는 적어도 하나의 제2 필셀들 각각의 픽셀 복원값들을 포함할 수 있다.According to various embodiments, the processor 410 may acquire second reconstruction information corresponding to one or more second pixels using the first reconstruction information, the conversion information, and the first interpolation information. According to an embodiment, the second reconstruction information may include pixel reconstruction values of each of the at least one second fill cells corresponding to the second color.

다양한 실시예에 따르면 프로세서(410)는 제1 복원 정보와 제2 복원 정보를 기반으로 제1 이미지를 압축하여 압축 데이터를 생성할 수 있다. According to various embodiments, the processor 410 may generate compressed data by compressing the first image based on the first reconstruction information and the second reconstruction information.

다양한 실시예에 따르면, 프로세서(410)는 제1 이미지를 복수의 블록들로 구분하고, 복수의 블록들 각각을 각각 또는 순차적으로 압축할 수 있다. According to various embodiments, the processor 410 may divide the first image into a plurality of blocks, and compress each of the plurality of blocks individually or sequentially.

일 실시예에 따르면, 프로세서(410)는 복수의 블록들 중 제1 블록의 제1 색상(이하 '제1 채널' 또는 '참조 채널'이라고도 함)에 대응하는 적어도 하나 이상의 제1 픽셀들과 연관된 제1 복원 정보(이하 '제1 채널 복원 정보' 또는 '참조 채널 복원 정보'라고도 함)를 획득할 수 있고, 제1 채널 복원 정보에 적어도 기반하여 제1 블록의 제2 색상(이하 '제2 채널' 또는 '목표 채널'이라고도 함)에 대응하는 적어도 하나 이상의 제2 픽셀들에 대응하는 제1 보간 정보(이하 '제2 채널 보간 정보' 또는 '제1 목표 채널 보간 정보'라고도 함)를 획득할 수 있다. According to one embodiment, the processor 410 is associated with at least one first pixel corresponding to a first color (hereinafter also referred to as a 'first channel' or 'reference channel') of the first block of the plurality of blocks. The first restoration information (hereinafter also referred to as 'first channel restoration information' or 'reference channel restoration information') may be obtained, and the second color of the first block (hereinafter, referred to as 'second') is based on at least the first channel restoration information. Acquire first interpolation information (hereinafter, also referred to as 'second channel interpolation information' or 'first target channel interpolation information') corresponding to at least one or more second pixels corresponding to a 'channel' or 'target channel'. can do.

다양한 실시예들에 따르면 프로세서(410)는 제1 블록과 인접한 제2 블록의 적어도 하나의 제2 픽셀들에 대응하는 보간 정보와 복원 정보를 기반으로 제2 블록의 적어도 하나 이상의 제2 픽셀들과 연관된 변환 정보를 획득할 수 있다. 프로세서(410)는 제1 채널 복원 정보, 채널 변환 정보, 및 제2 채널 보간 정보를 이용하여 제2 채널의 적어도 하나의 제2 픽셀들에 대응하는 제2 채널 복원 정보를 획득할 수 있다. 프로세서(410)는 제1 채널 복원 정보와 제2 채널 복원 정보를 기반으로 제1 블록을 압축하여 압축된 제1 블록 정보를 생성할 수 있다. 다양한 실시예에 따르면, 프로세서(410)는 압축된 복수의 블록 정보를 기반으로 제1 이미지에 대한 압축 데이터를 생성할 수 있다.According to various embodiments, the processor 410 may include at least one second pixel of the second block based on interpolation information and reconstruction information corresponding to at least one second pixel of the second block adjacent to the first block. Associated transformation information can be obtained. The processor 410 may obtain second channel reconstruction information corresponding to at least one second pixel of the second channel using the first channel reconstruction information, the channel conversion information, and the second channel interpolation information. The processor 410 may generate compressed first block information by compressing the first block based on the first channel recovery information and the second channel recovery information. According to various embodiments, the processor 410 may generate compressed data for the first image based on the plurality of compressed block information.

압축 데이터 예를 들면 스몰 로우 이미지(403)는 메모리(420)에 일시적 또는 비일시적으로 저장될 수 있다. 다양한 실시예에 따르면 전자 장치(400)의 통신 모듈(미도시)(예: 통신 인터페이스(170))은, 압축 데이터를 외부 전자 장치(450)로 송신할 수 있다.Compressed data, for example small row image 403, may be stored temporarily or non-temporarily in memory 420. According to various embodiments, a communication module (not shown) of the electronic device 400 (for example, the communication interface 170) may transmit compressed data to the external electronic device 450.

외부 전자 장치(450)의 압축 해제 모듈(451)은 압축 데이터, 예를 들면, 스몰 로우 이미지(403)를 수신할 수 있다. 상술한 바와 같이, 스몰 로우 이미지(403)는 압축된 상태일 수 있으며, 압축 해제 모듈(451)은 압축을 해제하고, 이를 인식 모듈(452)으로 전달할 수 있다. 인식 모듈(452)은, 압축 해제된 로우 이미지를 인식할 수 있다. 예를 들어, 인식 모듈(452)은 로우 이미지에 대하여 세그먼테이션을 수행할 수 있으며, 세그먼테이션 결과로 적어도 하나의 이미지 영역(예를 들면, 블록 영역)을 구분할 수 있다. 인식 모듈(452)은, 다양한 인식 알고리즘에 기초하여 이미지 영역에 대한 인식을 수행할 수 있으며, 인식 결과를 획득할 수 있다. 인식 모듈(452)은, 이미지의 장면(scene)을 분류할 수도 있으며, 이미지 분류 정보, 인식 정보에 대한 신뢰도를 분석할 수도 있다. 로우 이미지 내의 적어도 하나의 이미지 영역과 인식 결과는 보정 영역 정보로서 전자 장치(400)로 전달될 수 있다. 본 발명의 다양한 실시예에서, 보정 영역 정보는 이미지 영역의 위치(또는, 좌표) 정보 또는 이미지 영역의 인식 결과 중 적어도 하나를 포함하는 이미지 영역과 연관된 정보, 이미지 분류 정보, 질감 정보 또는 신뢰도 정보 중 적어도 하나를 포함하도록 다양하게 구성될 수 있으며, 이에 대하여서는 더욱 상세하게 후술하도록 한다.The decompression module 451 of the external electronic device 450 may receive compressed data, for example, a small row image 403. As described above, the small row image 403 may be in a compressed state, and the decompression module 451 may decompress and transfer it to the recognition module 452. The recognition module 452 may recognize the decompressed row image. For example, the recognition module 452 may perform segmentation on the raw image, and may distinguish at least one image area (eg, a block area) as a result of the segmentation. The recognition module 452 may perform recognition on the image area based on various recognition algorithms, and may obtain a recognition result. The recognition module 452 may classify a scene of the image, and analyze the image classification information and the reliability of the recognition information. At least one image area and the recognition result in the raw image may be transmitted to the electronic device 400 as correction area information. According to various embodiments of the present disclosure, the correction region information may include at least one of position (or coordinate) information of the image region or information associated with the image region including at least one of a recognition result of the image region, image classification information, texture information, or reliability information. It may be variously configured to include at least one, which will be described later in more detail.

ISP(412)는, 로우 이미지(402) 및 보정 영역 정보를 이용하여 보정된 이미지(405)를 생성할 수 있다. 보정된 이미지(405)는, 예를 들어 YUV 포맷을 가질 수 있으나, 보정된 이미지(405)가 가지는 포맷에는 제한이 없음을 당업자는 용이하게 이해할 수 있을 것이다. 보정된 이미지(405)는, 예를 들어 VRAM에 저장될 수도 있으며, VRAM에 저장된 보정된 이미지(405)는 디스플레이(430) 상에 표시될 수도 있다. ISP(412)는 보정된 이미지(405)를 압축 모듈(413)로 전달할 수도 있다. 압축 모듈(413)은 수신한 보정된 이미지(405)를 압축할 수 있으며, 압축된 이미지(404)를 메모리(420)에 저장할 수 있다. 압축 모듈(413)은, 예를 들어 JPEG에서 정의된 방식으로 압축을 수행할 수 있으며, 압축 방식에는 제한이 없음을 당업자는 용이하게 이해할 수 있을 것이다. 다른 실시예에서는, 외부 전자 장치(450)는 ISP(미도시)와 같은 처리 회로를 더 포함할 수도 있다. The ISP 412 may generate the corrected image 405 using the raw image 402 and the correction region information. The corrected image 405 may have a YUV format, for example, but one of ordinary skill in the art will readily understand that the format of the corrected image 405 is not limited. The corrected image 405 may be stored, for example, in the VRAM, and the corrected image 405 stored in the VRAM may be displayed on the display 430. ISP 412 may forward the corrected image 405 to compression module 413. The compression module 413 may compress the received corrected image 405 and store the compressed image 404 in the memory 420. The compression module 413 may perform compression in a manner defined, for example, in JPEG, and those skilled in the art will readily understand that there is no limitation on the compression scheme. In another embodiment, the external electronic device 450 may further include a processing circuit such as an ISP (not shown).

도 4b는 다양한 실시예들에 따른 이미지 센서에 연결된 제어 회로를 포함하는 전자 장치의 블록도를 도시한다.4B is a block diagram of an electronic device including a control circuit connected to an image sensor according to various embodiments.

다양한 실시예에 따른 전자 장치(400-1)(예: 도 1의 전자 장치(101) 또는 도 4a의 전자 장치(400))는, 이미지 센서(401-1), 제어회로(401-2), 프로세서(410-1), 및 디스플레이(430-1)를 포함할 수 있다. The electronic device 400-1 (eg, the electronic device 101 of FIG. 1 or the electronic device 400 of FIG. 4A) according to various embodiments may include an image sensor 401-1 and a control circuit 401-2. , A processor 410-1, and a display 430-1.

전자 장치(400-1)의 이미지 센서(401-1)(예: 도 1의 카메라 모듈(291) 또는 도 4의 이미지 센서(401))는 외부 객체를 촬영할 수 있으며, 촬영된 원시 이미지(예: 도 2의 로우 이미지(402))를 획득할 수 있다. 이미지 센서(401-1)는 제어 회로(401-2)와 전기적으로 연결될 수 있다. 다양한 실시예에 따르면 이미지 센서(401-1) 내에 제어 회로(401-2)가 포함될 수도 있다. The image sensor 401-1 of the electronic device 400-1 (eg, the camera module 291 of FIG. 1 or the image sensor 401 of FIG. 4) may photograph an external object, and may capture a captured raw image (eg The row image 402 of FIG. 2 may be obtained. The image sensor 401-1 may be electrically connected to the control circuit 401-2. According to various embodiments, the control circuit 401-2 may be included in the image sensor 401-1.

다양한 실시예에 따르면 제어 회로(401-2)는 이미지 센서(401-1)를 이용하여 획득된 원시 이미지(raw image)를 기반으로 제1 이미지를 획득할 수 있다. 일 실시예에 따르면 제1 이미지는 베이어 패턴 형식 이미지(bayer parttern format image)(이하 '베이어 이미지'라고도 함)일 수 있다. 예를 들면, 베이어 패턴 형식 이미지는 RGB 베이어 패턴 또는 CMY(cyan magenta yellow) 베이어 패턴 등 다양한 채널의 베이어 패턴 형식 이미지일 수 있다. According to various embodiments, the control circuit 401-2 may acquire the first image based on the raw image obtained using the image sensor 401-1. According to an embodiment, the first image may be a Bayer parttern format image (hereinafter, also referred to as a 'bayer image'). For example, the Bayer pattern format image may be a Bayer pattern format image of various channels such as an RGB Bayer pattern or a cyan magenta yellow (CMY) Bayer pattern.

다양한 실시예에 따르면 제어 회로(401-2)는 제1 이미지 내의 제1 색상에 대응하는 적어도 하나 이상의 제 1 픽셀들과 연관된 제 1 복원 정보를 획득하고, 제 1 복원 정보를 이용하여 제1 이미지 내의 제2 색상에 대응하는 적어도 하나 이상의 제 2 픽셀들에 대응하는 제1 보간 정보를 획득할 수 있다. 일 실시예에 따르면, 제1 복원 정보는 제1 이미지 내의 제1 색상에 대응하는 적어도 하나 이상의 제 1 픽셀들을 압축하고 압축된 제1 픽셀들 값을 복원하여 획득된 적어도 하나 이상의 제1 픽셀들 복원값을 포함할 수 있다. 예를 들면, 제1 복원 정보는 제1 색상 즉, 제1 채널(이하 '참조 채널'이라고도 함)에 대응하는 적어도 하나의 제1 픽셀들 각각의 픽셀 복원값을 포함할 수 있다. 일 실시예에 따르면 제1 보간 정보는 제1 이미지 내의 제2 색상 즉, 제2 채널(이하 '목표 채널'이라고도 함)에 대응하는 적어도 하나 이상의 제2 픽셀들에 대응하는 픽셀 보간값들을 포함할 수 있다. According to various embodiments, the control circuit 401-2 obtains first reconstruction information associated with at least one or more first pixels corresponding to the first color in the first image, and uses the first reconstruction information to obtain a first image. The first interpolation information corresponding to the at least one or more second pixels corresponding to the second color may be obtained. According to an embodiment, the first reconstruction information is at least one first pixel reconstruction obtained by compressing at least one or more first pixels corresponding to the first color in the first image and reconstructing the compressed first pixels value. May contain a value. For example, the first reconstruction information may include a pixel reconstruction value of each of at least one first pixels corresponding to a first color, that is, a first channel (hereinafter, also referred to as a reference channel). According to an embodiment, the first interpolation information may include pixel interpolation values corresponding to at least one second pixel corresponding to a second color in the first image, that is, a second channel (hereinafter also referred to as a 'target channel'). Can be.

다양한 실시예에 따르면 제어 회로(401-2)는 제1 이미지와 관련하여 생성된 적어도 하나의 복원 정보 및 적어도 하나의 보간 정보에 기반하여 생성된 변환 정보를 획득할 수 있다. 예를 들면, 제어 회로(401-2)는 제1 이미지를 복수의 블록들로 구분하고, 복수의 블록들 중 제1 블록의 복원 정보 및 보간 정보를 획득하여 제1 블록의 복원 정보를 제1 블록의 보간 정보로 변환하기 위한 제1 변환 정보를 획득할 수 있다. 일 실시예에 따르면 제어 회로(401-2)는 복수의 블록들 각각에 대한 복수의 변환 정보를 획득하고, 복수의 변환 정보들 중 하나의 변환 정보를 획득할 수 있다.According to various embodiments, the control circuit 401-2 may obtain the generated conversion information based on the at least one reconstruction information and the at least one interpolation information generated in relation to the first image. For example, the control circuit 401-2 divides the first image into a plurality of blocks, obtains reconstruction information and interpolation information of the first block among the plurality of blocks, and then reconstructs the reconstruction information of the first block. First transformation information for converting the interpolation information of the block may be obtained. According to an embodiment, the control circuit 401-2 may obtain a plurality of transform information for each of the plurality of blocks, and obtain one of the plurality of transform information.

다양한 실시예에 따르면 제어 회로(401-2)는 제1 복원 정보, 변환 정보 및 제1 보간 정보를 이용하여 하나 이상의 제2 픽셀들에 대응하는 제2 복원 정보를 획득할 수 있다. 일 실시예에 따르면, 제2 복원 정보는 제2 색상에 대응하는 적어도 하나의 제2 필셀들 각각의 픽셀 복원값들을 포함할 수 있다.According to various embodiments, the control circuit 401-2 may acquire second reconstruction information corresponding to one or more second pixels using the first reconstruction information, the conversion information, and the first interpolation information. According to an embodiment, the second reconstruction information may include pixel reconstruction values of each of the at least one second fill cells corresponding to the second color.

다양한 실시예에 따르면 제어 회로(401-2)는 제1 복원 정보와 제2 복원 정보를 기반으로 제1 이미지를 압축하여 압축 데이터를 생성하여 프로세서(410-1)로 전달할 수 있다. According to various embodiments, the control circuit 401-2 may generate compressed data by compressing the first image based on the first reconstruction information and the second reconstruction information, and transmit the compressed data to the processor 410-1.

다양한 실시예에 따르면, 제어 회로(401-2)는 제1 이미지를 복수의 블록들로 구분하고, 복수의 블록들 각각을 각각 또는 순차적으로 압축할 수 있다. According to various embodiments, the control circuit 401-2 may divide the first image into a plurality of blocks, and compress each of the plurality of blocks individually or sequentially.

일 실시예에 따르면, 제어 회로(401-2)는 복수의 블록들 중 제1 블록의 제1 색상(이하 '제1 채널' 또는 '참조 채널'이라고도 함)에 대응하는 적어도 하나 이상의 제1 픽셀들과 연관된 제1 복원 정보(이하 '제1 채널 복원 정보' 또는 '참조 채널 복원 정보'라고도 함)를 획득할 수 있고, 제1 채널 복원 정보에 적어도 기반하여 제1 블록의 제2 색상(이하 '제2 채널' 또는 '목표 채널'이라고도 함)에 대응하는 적어도 하나 이상의 제2 픽셀들에 대응하는 제1 보간 정보(이하 '제2 채널 보간 정보' 또는 '제1 목표 채널 보간 정보'라고도 함)를 획득할 수 있다. According to an embodiment, the control circuit 401-2 may include at least one first pixel corresponding to a first color (hereinafter, also referred to as a 'first channel' or 'reference channel') of the first block of the plurality of blocks. First reconstruction information (hereinafter, also referred to as 'first channel reconstruction information' or 'reference channel reconstruction information') associated with the first and second channels of the first block based on at least the first channel reconstruction information First interpolation information (hereinafter referred to as 'second channel interpolation information' or 'first target channel interpolation information') corresponding to at least one or more second pixels corresponding to 'second channel' or 'target channel'. ) Can be obtained.

다양한 실시예들에 따르면 제어 회로(401-2)는 제1 블록과 인접한 제2 블록의 적어도 하나의 제2 픽셀들에 대응하는 보간 정보와 복원 정보를 기반으로 제2 블록의 적어도 하나 이상의 제2 픽셀들과 연관된 변환 정보를 획득할 수 있다. 제어 회로(401-2)는 제1 채널 복원 정보, 채널 변환 정보, 및 제2 채널 보간 정보를 이용하여 제2 채널의 적어도 하나의 제2 픽셀들에 대응하는 제2 채널 복원 정보를 획득할 수 있다. 제어 회로(401-2)는 제1 채널 복원 정보와 제2 채널 복원 정보를 기반으로 제1 블록을 압축하여 압축된 제1 블록 정보를 생성할 수 있다. 다양한 실시예에 따르면, 제어 회로(401-2)는 압축된 복수의 블록 정보를 기반으로 제1 이미지에 대한 제1 압축 데이터를 생성하고, 제1 압축 데이터를 프로세서(410-1)로 전달할 수 있다. 프로세서(410-1)는 압축 데이터를 통신 모듈(예: 통신 인터페이스(170))을 이용하여 외부 전자 장치(예: 외부 전자 장치(450))로 송신할 수 있다.According to various embodiments, the control circuit 401-2 may include at least one second of the second block based on interpolation information and reconstruction information corresponding to at least one second pixel of the second block adjacent to the first block. The conversion information associated with the pixels may be obtained. The control circuit 401-2 may obtain second channel reconstruction information corresponding to at least one second pixel of the second channel using the first channel reconstruction information, the channel conversion information, and the second channel interpolation information. have. The control circuit 401-2 may generate compressed first block information by compressing the first block based on the first channel recovery information and the second channel recovery information. According to various embodiments, the control circuit 401-2 may generate first compressed data for the first image based on the compressed plurality of block information, and transmit the first compressed data to the processor 410-1. have. The processor 410-1 may transmit the compressed data to an external electronic device (eg, the external electronic device 450) by using a communication module (eg, the communication interface 170).

다양한 실시예들에 따르면, 전자 장치(예: 도 1의 전자 장치(101), 또는 도 4의 전자 장치(400))는 카메라(예: 도 1의 카메라 모듈(180)), 통신 모듈(예: 도 1의 통신 모듈(190)), 메모리(예: 도 1의 메모리(130)) 및 프로세서(예: 도 1의 프로세서(120), 또는 도 4의 프로세서(410)를 포함하고, 상기 프로세서는 상기 카메라를 이용하여 획득된 원시 이미지(raw image)를 기반으로 제1 이미지를 획득하고, 상기 제1 이미지 내의 제1 색상에 대응하는 적어도 하나 이상의 제 1 픽셀들과 연관된 제 1 복원 정보를 획득하고, 상기 제 1 복원 정보를 이용하여 상기 제1 이미지 내의 제2 색상에 대응하는 적어도 하나 이상의 제 2 픽셀들에 대응하는 제1 보간 정보를 획득하고, 상기 제1 이미지와 관련하여 생성된 적어도 하나의 복원 정보 및 적어도 하나의 보간 정보에 기반하여 생성된 변환 정보를 획득하고, 상기 제1 복원 정보, 상기 변환 정보, 및 상기 제1 보간 정보를 이용하여 상기 적어도 하나 이상의 제2 픽셀들에 대응하는 상기 제2 복원 정보를 생성하고, 상기 제 1 복원 정보 및 상기 제 2 복원 정보를 이용하여 상기 제1 이미지에 대한 압축 데이터를 생성하고, 상기 통신 모듈을 이용하여, 상기 압축 데이터를 외부 장치(예: 도 1의 전자 장치(102),도 1의 서버(108), 도 3의 외부 전자 장치(300), 또는 도 4의 외부 전자 장치(450))로 전송하도록 설정될 수 있다. According to various embodiments, the electronic device (eg, the electronic device 101 of FIG. 1, or the electronic device 400 of FIG. 4) may be a camera (eg, the camera module 180 of FIG. 1), a communication module (eg, 1 includes a communication module 190 of FIG. 1, a memory (eg, memory 130 of FIG. 1), and a processor (eg, processor 120 of FIG. 1, or processor 410 of FIG. 4). Obtains a first image based on a raw image obtained using the camera, and obtains first reconstruction information associated with at least one first pixel corresponding to a first color in the first image. And acquire first interpolation information corresponding to at least one or more second pixels corresponding to a second color in the first image by using the first reconstruction information, and at least one generated in relation to the first image. Generated based on the reconstruction information and at least one interpolation information Acquires information, generates the second reconstruction information corresponding to the at least one second pixel by using the first reconstruction information, the conversion information, and the first interpolation information, generates the first reconstruction information, and The compressed data of the first image is generated using the second reconstruction information, and the compressed data is stored using an external device (for example, the electronic device 102 of FIG. 1 and the server of FIG. 1) by using the communication module. 108, the external electronic device 300 of FIG. 3, or the external electronic device 450 of FIG. 4.

다양한 실시예들에 따르면 상기 1 복원 정보는 상기 제1 이미지 내의 상기 제1 색상에 대응하는 상기 적어도 하나 이상의 제 1 픽셀들을 압축하고 압축된 제1 픽셀들 값을 복원하여 획득된 적어도 하나 이상의 제1 픽셀들 복원값을 포함할 수 있다.According to various embodiments, the first reconstruction information is obtained by compressing the at least one first pixels corresponding to the first color in the first image and reconstructing the compressed first pixels values. It may include pixels reconstructed value.

다양한 실시예들에 따르면, 상기 원시 이미지는 베이어 패턴 이미지(bayer pattern image)를 포함할 수 있다. According to various embodiments, the original image may include a Bayer pattern image.

다양한 실시예들에 따르면, 상기 프로세서는 상기 제1 이미지를 복수의 블록들로 구분하고, 상기 복수의 블록들 중 제1 블록의 복원 정보 및 보간 정보를 획득하여 상기 제1 블록의 복원 정보를 상기 제1 블록의 상기 보간 정보로 변환하기 위한 제1 변환 정보를 획득하도록 설정될 수 있다. According to various embodiments of the present disclosure, the processor divides the first image into a plurality of blocks, obtains restoration information and interpolation information of the first block among the plurality of blocks, and restores the restoration information of the first block. It may be set to obtain first transform information for converting the interpolation information of the first block.

다양한 실시예들에 따르면, 상기 프로세서는 상기 복수의 블록들 각각에 대한 복수의 변환 정보를 획득하고, 복수의 변환 정보들 중 하나의 변환 정보를 선택하도록 설정될 수 있다.According to various embodiments of the present disclosure, the processor may be configured to acquire a plurality of transform information for each of the plurality of blocks and to select one of the plurality of transform information.

다양한 실시예들에 따르면, 상기 프로세서는 상기 복수의 블록들 중 제1 블록의 상기 제1 색상과 연관된 제1 채널에 대응하는 적어도 하나 이상의 제1 픽셀들에 대응하는 제1 채널 복원 정보를 획득하고, 상기 제1 채널 복원 정보에 적어도 기반하여 상기 제1 블록의 제2 색상과 연관된 제2 채널에 대응하는 적어도 하나 이상의 제2 픽셀들에 대응하는 제2 채널 보간 정보를 획득하고, 상기 제2 채널에 대응하는 적어도 하나 이상의 제2 픽셀들에 대응하는 제2 채널 복원 정보를 획득하기 위한 제1 변환 정보를 획득하고, 상기 제1 채널 정보, 상기 제1 변환 정보 및 상기 제2 채널 보간 정보를 이용하여 제2 채널에 대응하는 적어도 하나 이상의 제2 픽셀들에 대응하는 상기 제2 채널 복원 정보를 획득하고, 상기 제1 채널 복원 정보와 상기 제2 채널 복원 정보를 기반으로 상기 제1 블록을 압축하도록 설정될 수 있다.According to various embodiments, the processor acquires first channel reconstruction information corresponding to at least one first pixel corresponding to a first channel associated with the first color of a first block of the plurality of blocks, and Obtain second channel interpolation information corresponding to at least one or more second pixels corresponding to a second channel associated with a second color of the first block based at least on the first channel reconstruction information, and obtain the second channel. Obtain first transformation information for acquiring second channel reconstruction information corresponding to at least one or more second pixels corresponding to, and use the first channel information, the first transformation information, and the second channel interpolation information Acquiring the second channel reconstruction information corresponding to at least one or more second pixels corresponding to a second channel, and based on the first channel reconstruction information and the second channel reconstruction information May be set to compress the first block.

다양한 실시예들에 따르면, 상기 복수의 블록들은 상기 제1 블록과 인접한 적어도 하나 이상의 제2 블록을 포함하고, 상기 프로세서는 상기 적어도 하나 이상의 제2 블록 각각의 제2 채널 보간 정보 및 제2 채널 복원 정보를 기반으로 상기 적어도 하나 이상의 제2 블록 각각에 대한 적어도 하나 이상의 제2 변환 정보를 생성하고, 상기 적어도 하나 이상의 제2 변환 정보를 이용하여 상기 제1 변환 정보를 획득하도록 설정될 수 있다.According to various embodiments of the present disclosure, the plurality of blocks includes at least one or more second blocks adjacent to the first block, and the processor may further include second channel interpolation information and a second channel reconstruction of each of the at least one or more second blocks. It may be configured to generate at least one or more second transform information for each of the at least one or more second blocks based on the information, and to obtain the first transform information by using the at least one or more second transform information.

다양한 실시예들에 따르면, 상기 적어도 하나 이상의 제2 변환 정보가 복수개인 경우 복수의 제2 변환 정보 중 하나를 상기 제1 변환 정보로 선택하도록 설정될 수 있다.According to various embodiments of the present disclosure, when there is a plurality of at least one second transformation information, one of a plurality of second transformation information may be selected as the first transformation information.

다양한 실시예들에 따르면, 상기 적어도 하나 이상의 제2 블록은 상기 제1 블록과 인접한 복수의 픽셀들을 포함할 수 있다.According to various embodiments, the at least one second block may include a plurality of pixels adjacent to the first block.

다양한 실시예들에 따르면 전자 장치에 있어서, 이미지 센서, 상기 이미지 센서와 전기적으로 연결된 제어 회로, 및 상기 제어 회로와 지정된 인터페이스로 연결된 프로세서를 포함하고, 상기 제어 회로는, 상기 이미지 센서를 이용하여 획득된 원시 이미지(raw image)를 기반으로 제1 이미지를 획득하고, 상기 제1 이미지 내의 제1 색상에 대응하는 적어도 하나 이상의 제 1 픽셀들과 연관된 제 1 복원 정보를 획득하고, 상기 제 1 복원 정보를 이용하여 상기 제1 이미지 내의 제2 색상에 대응하는 적어도 하나 이상의 제 2 픽셀들에 대응하는 제1 보간 정보를 획득하고, 상기 제1 이미지와 관련하여 생성된 적어도 하나의 복원 정보 및 적어도 하나의 보간 정보에 기반하여 생성된 변환 정보를 획득하고, 상기 제 1 복원 정보, 상기 변환 정보, 및 상기 제1 보간 정보를 이용하여 상기 적어도 하나 이상의 제2 픽셀들에 대응하는 상기 제2 복원 정보를 생성하고, 상기 제 1 복원 정보 및 상기 제 2 복원 정보를 이용하여, 상기 제1 이미지에 대한 압축 데이터를 생성하고, 및 상기 압축 데이터를 상기 프로세서로 전달하도록 설정될 수 있다.According to various embodiments of the present disclosure, an electronic device includes an image sensor, a control circuit electrically connected to the image sensor, and a processor connected to the control circuit through a designated interface, wherein the control circuit is obtained using the image sensor. Obtain a first image based on the raw image obtained, obtain first reconstruction information associated with at least one first pixel corresponding to a first color in the first image, and obtain the first reconstruction information Acquire first interpolation information corresponding to at least one or more second pixels corresponding to a second color in the first image, and use at least one piece of reconstruction information and at least one generated in relation to the first image. Obtains the conversion information generated based on the interpolation information, and includes the first reconstruction information, the conversion information, and the first interpolation information. Generate the second reconstruction information corresponding to the at least one or more second pixels, and generate compressed data for the first image using the first reconstruction information and the second reconstruction information, and The compressed data may be set to be delivered to the processor.

도 5는 다양한 실시예들에 따른 전자 장치 및 외부 전자 장치의 동작 방법을 설명하기 위한 흐름도이다.5 is a flowchart illustrating an operation method of an electronic device and an external electronic device according to various embodiments of the present disclosure.

다양한 실시예에 따른 동작 512 내지 524는 전자 장치(예: 도 1의 전자 장치(101), 또는 도 4의 전자 장치(400))의 프로세서(예: 도 1의 프로세서(120), 도 4a의 프로세서(410), 또는 도 4b의 제어 회로(401-2), 이하 도 4a의 프로세서(410)를 예를 들어 설명함)에서 수행되는 동작으로 이해될 수 있다.According to various embodiments of the present disclosure, operations 512 to 524 may correspond to a processor (eg, the processor 120 of FIG. 1 or the processor 120 of FIG. 1) of an electronic device (eg, the electronic device 101 of FIG. 1 or the electronic device 400 of FIG. 4). It may be understood as an operation performed by the processor 410, or the control circuit 401-2 of FIG. 4B, and the processor 410 of FIG. 4A will be described below.

다양한 실시예에 따르면, 프로세서(410)는 512 동작에서 예를 들면, 카메라 모듈(예: 도 1의 카메라 모듈(291), 또는 도 4의 이미지 센서(401))를 이용하여 촬영된 원시 이미지를 기반으로 제 1 이미지를 획득할 수 있다. 다양한 실시예에 따르면 제1 이미지는 로우 이미지(예: 도 3의 로우 이미지(311) 또는 도 4의 로우 이미지(402))일 수 있다. 제1 이미지는 제1 색상에 대응하는 적어도 하나의 제1 픽셀값들과 제2 색상에 대응하는 적어도 하나의 제2 픽셀값들을 포함하는 베이어 이미지일 수 있다. 예를 들면, 베이어 이미지는 RGB 베이어 패턴 또는 CMY(cyan magenta yellow) 베이어 패턴 등 다양한 채널의 베이어 패턴 형식 이미지일 수 있다. According to various embodiments, in operation 512, the processor 410 may display a raw image photographed using, for example, a camera module (eg, the camera module 291 of FIG. 1 or the image sensor 401 of FIG. 4). The first image may be acquired based on the result. According to various embodiments, the first image may be a row image (eg, the row image 311 of FIG. 3 or the row image 402 of FIG. 4). The first image may be a Bayer image including at least one first pixel values corresponding to the first color and at least one second pixel values corresponding to the second color. For example, the Bayer image may be a Bayer pattern format image of various channels such as an RGB Bayer pattern or a cyan magenta yellow (CMY) Bayer pattern.

다양한 실시예에 따르면, 514 동작에서, 프로세서(410)는 제1 이미지 내의 제1 색상(이하 '제1 채널' 또는 '참조 채널'이라고도 함)에 대응하는 적어도 하나의 제1 픽셀들과 연관된 제1 복원 정보를 획득할 수 있다. 일 실시예에 따르면, 제1 복원 정보는 제1 이미지 내의 제1 색상에 대응하는 적어도 하나 이상의 제 1 픽셀들을 압축하고 압축된 제1 픽셀들 값을 복원하여 획득된 적어도 하나 이상의 제1 픽셀들 복원값을 포함할 수 있다.According to various embodiments, in operation 514, the processor 410 may generate a first image associated with at least one first pixel corresponding to a first color (hereinafter also referred to as a 'first channel' or a 'reference channel') in the first image. 1 Restore information can be obtained. According to an embodiment, the first reconstruction information is at least one first pixel reconstruction obtained by compressing at least one or more first pixels corresponding to the first color in the first image and reconstructing the compressed first pixels value. May contain a value.

다양한 실시예에 따르면, 516 동작에서, 프로세서(410)는 제1 복원 정보에 적어도 기반하여 제1 이미지 내의 제2 색상(이하 '제2 채널' 또는 '목표 채널'이라고도 함)에 대응하는 적어도 하나 이상의 제2 픽셀들에 대응하는 제1 보간 정보를 획득할 수 있다. 일 실시예에 따르면 제1 보간 정보는 제1 이미지 내의 제2 색상에 대응하는 적어도 하나 이상의 제2 픽셀들에 대응하는 픽셀 보간값들을 포함할 수 있다. According to various embodiments, in operation 516, the processor 410 may include at least one corresponding to a second color (hereinafter, also referred to as a 'second channel' or 'target channel') in the first image based at least on the first reconstruction information. First interpolation information corresponding to the second pixels may be obtained. According to an embodiment, the first interpolation information may include pixel interpolation values corresponding to at least one or more second pixels corresponding to a second color in the first image.

다양한 실시예에 따르면, 518 동작에서, 프로세서(410)는 제1 이미지와 관련하여 생성된 적어도 하나의 복원 정보 및 적어도 하나의 보간 정보에 기반하여 변환 정보를 획득할 수 있다. 예를 들면, 프로세서(410)는 목표 채널에 대응된 적어도 하나 이상의 제2 픽셀들에 대응하는 제2 복원 정보를 획득하는데 이용하기 위한 변환 정보를 획득할 수 있다. 다양한 실시예에 따르면, 변환 정보는 1차 선형 변환 함수의 변환 계수를 포함할 수 있다. 예를 들면, 1차 선형 변환 함수는 수학식 1을 포함할 수 있다.According to various embodiments, in operation 518, the processor 410 may obtain the conversion information based on the at least one reconstruction information and the at least one interpolation information generated in relation to the first image. For example, the processor 410 may obtain transformation information for use in obtaining second reconstruction information corresponding to at least one or more second pixels corresponding to the target channel. According to various embodiments, the transform information may include transform coefficients of a linear linear transform function. For example, the first-order linear transformation function may include Equation 1.

[수학식 1][Equation 1]

Figure pat00001
Figure pat00001

상기 수학식 1에 따르면, X는 제1 보간 정보이고, Y'는 제2 복원 정보일 수 있으며, α, β는 변환 계수일 수 있다.According to Equation 1, X may be first interpolation information, Y 'may be second reconstruction information, and α and β may be transformation coefficients.

다양한 실시예에 따르면 520 동작에서, 프로세서(410)는 제1 복원 정보, 변환 정보, 및 제1 보간 정보를 이용하여 하나 이상의 제2 픽셀들에 대응하는 제2 복원 정보를 획득할 수 있다. According to various embodiments, in operation 520, the processor 410 may acquire second reconstruction information corresponding to one or more second pixels using the first reconstruction information, the conversion information, and the first interpolation information.

다양한 실시예에 따르면 522 동작에서, 프로세서(410)는 제1 복원 정보와 제2 복원 정보를 이용하여 제1 이미지에 대한 압축 데이터를 생성할 수 있다. According to various embodiments of the present disclosure, in operation 522, the processor 410 may generate compressed data of the first image by using the first reconstruction information and the second reconstruction information.

다양한 실시예에 따르면 524 동작에서, 프로세서(410)는 압축 데이터를 통신 모듈(예: 도 1의 통신 인터페이스(170)를 통하여, 외부 전자 장치(450)로 송신할 수 있다. According to various embodiments of the present disclosure, in operation 524, the processor 410 may transmit compressed data to the external electronic device 450 through the communication module (eg, the communication interface 170 of FIG. 1).

다양한 실시예에 따르면 프로세서(410)는 제1 이미지를 복수의 블록들로 구분하고, 복수의 블록들 각각을 각각 또는 순차적으로 압축하여 복수의 블록들 각각에 대해 압축된 데이터를 생성할 수 있다. According to various embodiments, the processor 410 may divide the first image into a plurality of blocks, and compress each of the plurality of blocks individually or sequentially to generate compressed data for each of the plurality of blocks.

도 6은 다양한 실시예들에 따른 전자 장치에서 복수의 블록들 중 제1 블록 압축 방법을 설명하기 위한 도면이다.6 is a diagram illustrating a first block compression method among a plurality of blocks in an electronic device according to various embodiments of the present disclosure.

다양한 실시예에 따른 동작 612 내지 620은 전자 장치(예: 도 1의 전자 장치(101), 또는 도 4의 전자 장치(400))의 프로세서(예: 도 1의 프로세서(120), 도 4a의 프로세서(410), 또는 도 4b의 제어 회로(401-2), 이하 도 4a의 프로세서(340)를 예를 들어 설명함)에서 수행되는 동작으로 이해될 수 있다.According to various embodiments of the present disclosure, operations 612 to 620 may include a processor (eg, the processor 120 of FIG. 1 and the processor of FIG. 4A) of an electronic device (eg, the electronic device 101 of FIG. 1 or the electronic device 400 of FIG. 4). It may be understood as an operation performed by the processor 410 or the control circuit 401-2 of FIG. 4B and the processor 340 of FIG. 4A as an example.

도 6을 참조하면, 다양한 실시예에 따르면 612 동작에서 프로세서(410)는 제1 이미지 내의 제1 블록의 제1 색상(이하 '제1 채널' 또는 '참조 채널'이라고도 함)에 대응하는 적어도 하나 이상의 제1 픽셀들과 연관된 제1 복원 정보(이하 '제1 채널 복원 정보' 또는 '참조 채널 복원 정보'라고도 함)를 획득할 수 있다. 일 실시예에 따르면 전자 장치(400)는 제1 이미지를 복수의 블록들로 구분하고, 복수의 블록들 중 내의 제1 블록의 참조 채널에 대응하는 적어도 하나 이상의 제1 픽셀들과 연관된 참조 채널 복원 정보를 획득할 수 있다.Referring to FIG. 6, according to various embodiments, in operation 612, the processor 410 may include at least one corresponding to a first color (hereinafter, also referred to as a “first channel” or “reference channel”) of a first block in a first image. First reconstruction information (hereinafter, also referred to as 'first channel reconstruction information' or 'reference channel reconstruction information') associated with the first pixels may be obtained. According to an embodiment, the electronic device 400 divides the first image into a plurality of blocks, and reconstructs a reference channel associated with at least one first pixel corresponding to the reference channel of the first block within the plurality of blocks. Information can be obtained.

다양한 실시예에 따르면 614 동작에서, 프로세서(410)는 제1 복원 정보에 적어도 기반하여 제1 블록의 제2 색상(이하 '제2 채널' 또는 '목표 채널' 이라고도 함)에 대응하는 적어도 하나 이상의 제2 픽셀들에 대응하는 제1 보간 정보(이하 '제1 채널 보간 정보' 또는 '제1 목표 채널 보간 정보'라고도 함)를 획득할 수 있다. According to various embodiments, in operation 614, the processor 410 may include at least one corresponding to a second color (hereinafter, also referred to as a 'second channel' or a 'target channel') of the first block based at least on the first reconstruction information. First interpolation information corresponding to the second pixels (hereinafter, also referred to as 'first channel interpolation information' or 'first target channel interpolation information') may be obtained.

다양한 실시예에 따르면 616 동작에서, 프로세서(410)는 제1 블록과 인접한 제2 블록과 관련하여 생성된 보간 정보(이하 '제2 목표 채널 보간 정보'라고도 함)와 복원 정보(이하 '제2 목표 채널 복원 정보'라고도 함)를 이용하여 변환 정보(이하 '제2 변환 정보' 또는'제1 목표 채널 변환 정보'라고도 함)를 획득할 수 있다. 일 실시예에 따르면 전자 장치(400)는 제1 블록과 인접한 복수의 인접 블록들 각각에 대응하여 복수의 인접 블록들 각각에 포함된 적어도 하나의 제2 픽셀들에 대응하는 제2 목표 채널 보간 정보와 제2 목표 채널 복원 정보를 기반으로 획득된 복수의 인접 블록들 각각에 대응된 복수의 제2 목표 채널 변환 정보를 이용하여 제1 목표 채널 변환 정보를 획득할 수 있다. 예를 들면, 전자 장치(400)(예: 도 1의 프로세서(120), 또는 도 4의 프로세서(410))는 복수의 제2 목표 채널 변환 정보 중 복원 정보에 따른 픽셀값과 원래 픽셀값과의 차이가 가장 적은 변환 정보를 제1 목표 채널 변환 정보로 선택할 수 있다. 예를 들면, 제1 목표 채널 변환 정보는 선형 변환 계수를 포함할 수 있다.According to various embodiments, in operation 616, the processor 410 may generate interpolation information (hereinafter referred to as 'second target channel interpolation information') and restoration information (hereinafter, referred to as 'second') that are generated in relation to a second block adjacent to the first block. The conversion information (hereinafter, also referred to as 'second conversion information' or 'first target channel conversion information') may be obtained using the target channel recovery information. According to an embodiment, the electronic device 400 corresponds to each of a plurality of adjacent blocks adjacent to the first block, and the second target channel interpolation information corresponding to at least one second pixel included in each of the plurality of adjacent blocks. And the first target channel conversion information may be obtained using the plurality of second target channel conversion information corresponding to each of the plurality of adjacent blocks obtained based on the second target channel reconstruction information. For example, the electronic device 400 (eg, the processor 120 of FIG. 1 or the processor 410 of FIG. 4) may include a pixel value and an original pixel value according to the reconstruction information among the plurality of second target channel conversion information. The conversion information having the smallest difference may be selected as the first target channel conversion information. For example, the first target channel transform information may include a linear transform coefficient.

다양한 실시예에 따르면 618 동작에서, 프로세서(410)는 제1 복원 정보, 변환 정보, 및 제1 보간 정보를 이용하여 제1 블록의 적어도 하나 이상의 제2 픽셀들에 대응하는 제2 복원 정보를 획득할 수 있다. 일 실시예에 따르면, 프로세서(410)는 제1 복원 정보, 제1 목표 채널 변환 정보 및 제2 목표 채널 보간 정보를 이용하여 제1 블록의 목표 채널에 대응하는 적어도 하나의 제2 픽셀들에 대응하는 제1 목표 채널 복원 정보를 획득할 수 있다. According to various embodiments, in operation 618, the processor 410 obtains second reconstruction information corresponding to at least one or more second pixels of the first block by using the first reconstruction information, the conversion information, and the first interpolation information. can do. According to an embodiment, the processor 410 may correspond to at least one second pixels corresponding to the target channel of the first block by using the first reconstruction information, the first target channel conversion information, and the second target channel interpolation information. The first target channel reconstruction information may be obtained.

다양한 실시예에 따르면 620 동작에서, 프로세서(410)는 제1 복원 정보와 제2 복원 정보를 이용하여 제1 블록에 대한 압축 데이터를 생성할 수 있다. 일 실시예에 따르면 프로세서(410)는 참조 채널 복원 정보와 제1 목표 채널 복원 정보를 기반으로 제1 블록을 압축하여 제1 블록에 대한 압축 데이터를 생성할 수 있다. According to various embodiments of the present disclosure, in operation 620, the processor 410 may generate compressed data for the first block by using the first recovery information and the second recovery information. According to an embodiment, the processor 410 may compress the first block based on the reference channel reconstruction information and the first target channel reconstruction information to generate compressed data for the first block.

다양한 실시예에 따르면 전자 장치(400)(예: 도 1의 프로세서(120), 또는 도 4의 프로세서(410))는 제1 블록외에 복수의 블록들에 포함된 다른 적어도 하나의 블록들도 각각 압축하고 제1 블록에 대한 압축 데이터와 각각 다른 적어도 하나의 블록에 대한 압축 데이터를 이용하여 제1 이미지에 대한 압축 데이터를 생성할 수 있다. According to various embodiments of the present disclosure, the electronic device 400 (eg, the processor 120 of FIG. 1 or the processor 410 of FIG. 4) may further include at least one other block included in the plurality of blocks besides the first block. The compressed data for the first image may be generated by compressing the compressed data for the at least one block and the compressed data for the first block.

다양한 실시예들에 따르면, 전자 장치(예: 도 1의 프로세서(120), 또는 도 4의 프로세서(410))에서 카메라(예: 도 1의 카메라(180)를 이용하여 획득한 이미지에 대한 복원 정보를 이용하여 압축하는 방법은, 상기 카메라를 이용하여 획득된 원시 이미지(raw image)를 기반으로 제1 이미지를 획득하는 동작, 상기 제1 이미지 내의 제1 색상에 대응하는 적어도 하나 이상의 제 1 픽셀들과 연관된 제 1 복원 정보를 획득하는 동작, 상기 제 1 복원 정보를 이용하여 상기 제1 이미지 내의 제2 색상에 대응하는 적어도 하나 이상의 제 2 픽셀들에 대응하는 제1 보간 정보를 획득하는 동작, 상기 제1 이미지와 관련하여 생성된 적어도 하나의 복원 정보 및 적어도 하나의 보간 정보에 기반하여 생성된 변환 정보를 획득하는 동작, 상기 제1 복원 정보, 변환 정보, 및 상기 제1 보간 정보를 이용하여 상기 적어도 하나 이상의 제2 픽셀들에 대응하는 상기 제2 복원 정보를 생성하는 동작 및 상기 제 1 복원 정보 및 상기 제 2 복원 정보를 이용하여 상기 제1 이미지에 대한 압축 데이터를 생성하는 동작을 포함할 수 있다. According to various embodiments, a restoration of an image obtained by using a camera (eg, the camera 180 of FIG. 1) in an electronic device (eg, the processor 120 of FIG. 1 or the processor 410 of FIG. 4). The method of compressing by using information may include obtaining a first image based on a raw image obtained using the camera, at least one first pixel corresponding to a first color in the first image. Acquiring first reconstruction information associated with the data; acquiring first interpolation information corresponding to at least one or more second pixels corresponding to a second color in the first image by using the first reconstruction information; Acquiring transform information generated based on at least one piece of restoration information generated in relation to the first image and at least one interpolation information, the first restoration information, transformation information, and the first interpolation; Generating the second reconstruction information corresponding to the at least one second pixels using a beam and generating compressed data for the first image using the first reconstruction information and the second reconstruction information. It may include.

다양한 실시예들에 따르면, 상기 방법은 통신 모듈(예: 도 1의 통신모듈(190))을 이용하여, 상기 압축 데이터를 외부 장치로 전송하는 동작을 더 포함할 수 있다.According to various embodiments of the present disclosure, the method may further include transmitting the compressed data to an external device using a communication module (eg, the communication module 190 of FIG. 1).

다양한 실시예들에 따르면, 상기 제1 복원 정보는 상기 제1 이미지 내의 상기 제1 색상에 대응하는 상기 적어도 하나 이상의 제 1 픽셀들을 압축하고 압축된 제1 픽셀들 값을 복원하여 획득된 적어도 하나 이상의 제1 픽셀들의 복원값을 포함할 수 있다.According to various embodiments, the first reconstruction information may include at least one obtained by compressing the at least one first pixels corresponding to the first color in the first image and reconstructing the compressed first pixels values. It may include a reconstruction value of the first pixels.

다양한 실시예들에 따르면, 상기 원시 이미지는 베이어 패턴 이미지(bayer pattern image)를 포함할 수 있다.According to various embodiments, the original image may include a Bayer pattern image.

다양한 실시예들에 따르면, 상기 변환 정보를 획득하는 동작은, 상기 제1 이미지의 복수의 블록들 중 제1 블록의 복원 정보 및 보간 정보를 획득하는 동작, 및 상기 제1 블록의 복원 정보를 상기 제1 블록의 상기 보간 정보로 변환하기 위한 제1 변환 정보를 생성하는 동작을 포함할 수 있다.다양한 실시예들에 따르면, 상기 변환 정보를 획득하는 동작은, 상기 제1 이미지의 복수의 블록들 각각에 대한 복수의 변환 정보를 생성하고, 복수의 변환 정보들 중 하나의 변환 정보를 획득하는 동작을 포함할 수 있다.According to various embodiments of the present disclosure, the obtaining of the transform information may include obtaining reconstruction information and interpolation information of a first block among a plurality of blocks of the first image, and reconstructing information of the first block. The operation may include generating first transformation information for converting the interpolation information of the first block. According to various embodiments, the operation of acquiring the transformation information may include generating a plurality of blocks of the first image. Generating a plurality of transform information for each, and obtaining one of the plurality of transform information.

다양한 실시예들에 따르면, 상기 방법은 상기 복수의 블록들 중 제1 블록을 압축하는 동작은, 상기 제1 블록의 상기 제1 색상과 연관된 제1 채널에 대응하는 적어도 하나 이상의 제1 픽셀들에 대응하는 재1 채널 복원 정보를 획득하는 동작, 상기 제1 채널 복원 정보에 적어도 기반하여 상기 제1 블록의 제2 색상과 연관된 제2 채널에 대응하는 적어도 하나 이상의 제2 픽셀들에 대응하는 제2 채널 보간 정보를 획득하는 동작, 상기 복수의 블록들 중 적어도 하나의 블록과 관련하여 생성된 적어도 하나의 복원 정보 및 적어도 하나의 보간 정보에 기반하여 제1 변환 정보를 획득하는 동작, 상기 제1 채널 복원 정보, 제1 변환 정보와 상기 제2 채널 보간 정보를 이용하여 제2 채널에 대응하는 적어도 하나 이상의 제2 픽셀들에 대응하는 상기 제2 채널 복원 정보를 획득하는 동작, 상기 제1 채널 복원 정보와 상기 제2 채널 복원 정보를 기반으로 상기 제1 블록에 대한 압축 데이터를 생성하는 동작을 포함할 수 있다. According to various embodiments, the method may further comprise: compressing a first block of the plurality of blocks to at least one first pixel corresponding to a first channel associated with the first color of the first block. Acquiring corresponding re-channel reconstruction information; a second corresponding to at least one or more second pixels corresponding to a second channel associated with a second color of the first block based at least on the first channel reconstruction information; Acquiring channel interpolation information, acquiring first transformation information based on at least one reconstruction information and at least one interpolation information generated in association with at least one block of the plurality of blocks, and the first channel The second channel reconstruction information corresponding to at least one or more second pixels corresponding to a second channel is obtained by using reconstruction information, first conversion information, and the second channel interpolation information. The beneficial operation, the first channel decoding information and the second based on a 2-channel decoding information, which may include the operation of generating the compressed data for the first block.

다양한 실시예들에 따르면, 상기 복수의 블록들은 상기 제1 블록과 인접한 적어도 하나 이상의 제2 블록을 포함하고, 상기 제1 변환 정보를 획득하는 동작은, 상기 적어도 하나 이상의 제2 블록 각각의 제2 채널 보간 정보 및 제2 채널 복원 정보를 기반으로 상기 적어도 하나 이상의 제2 블록 각각에 대한 적어도 하나 이상의 제2 변환 정보를 생성하는 동작, 및 상기 적어도 하나 이상의 제2 변환 정보를 이용하여 상기 제1 변환 정보를 획득하는 동작을 포함할 수 있다.According to various embodiments of the present disclosure, the plurality of blocks includes at least one second block adjacent to the first block, and the operation of acquiring the first transformation information may include: a second of each of the at least one second block; Generating at least one or more second transform information for each of the at least one or more second blocks based on channel interpolation information and second channel reconstruction information, and the first transform using the at least one or more second transform information. May include obtaining information.

다양한 실시예들에 따르면, 상기 적어도 하나 이상의 제2 변환 정보가 복수개인 경우 복수의 제2 변환 정보 중 하나를 상기 제1 변환 정보로 선택하도록 설정될 수 있다.According to various embodiments of the present disclosure, when there is a plurality of at least one second transformation information, one of a plurality of second transformation information may be selected as the first transformation information.

다양한 실시예들에 따르면, 상기 적어도 하나 이상의 제2 블록은 상기 제1 블록과 인접한 복수의 픽셀들을 포함할 수 있다. According to various embodiments, the at least one second block may include a plurality of pixels adjacent to the first block.

도 7a 및 7b은 다양한 실시예에 따른 전자 장치가 처리하는 로우 이미지를 설명하기 위한 도면이다. 7A and 7B are diagrams illustrating a row image processed by an electronic device according to various embodiments of the present disclosure.

도 7a를 참조하면, 다양한 실시예에 따른 전자 장치(400)(예: 도 1의 프로세서(120), 또는 도 4의 프로세서(410))는 이미지 센서(예: 도 2의 이미지 센서(230), 도 3의 이미지 센서(321), 또는 도 4의 이미지 센서(401))를 통하여 다양한 CFA(color filter array) 패턴에 의하여 처리된 베이어 이미지를 획득할 수 있다. 일 실시예에 따르면 베이어 이미지는 CFA(color filter array)에 의하여 처리될 수 있으며, 각 픽셀이 다양한 색상 중 한가지 색상을 표현할 수 있다. 다양한 실시예에 따르면 베이어 패턴 이미지는 RGB 베이어 패턴 또는 CMY(cyan magenta yellow) 베이어 패턴 등 다양한 채널의 베이어 패턴 형식 이미지일 수 있고. 패턴 사이즈도 다양할 수 있다. 예를 들면, 베이어 이미지는 베이어 필터, RGBE 필터, CYYM 필터, CYGM 필터, 또는 RGBW 베이어 필터 등의 다양한 필터에 의해 처리되어 각 픽 셀이 다양한 색상 중 한가지 색상을 표현할 수 있다.Referring to FIG. 7A, an electronic device 400 (eg, the processor 120 of FIG. 1 or the processor 410 of FIG. 4) according to various embodiments may be an image sensor (eg, the image sensor 230 of FIG. 2). The Bayer image processed by various color filter array (CFA) patterns may be obtained through the image sensor 321 of FIG. 3 or the image sensor 401 of FIG. 4. According to an embodiment, the Bayer image may be processed by a color filter array (CFA), and each pixel may represent one of various colors. According to various embodiments, the Bayer pattern image may be a Bayer pattern format image of various channels, such as an RGB Bayer pattern or a cyan magenta yellow (CMY) Bayer pattern. Pattern sizes can also vary. For example, a Bayer image may be processed by various filters, such as a Bayer filter, an RGBE filter, a CYYM filter, a CYGM filter, or an RGBW Bayer filter, so that each pixel can represent one of a variety of colors.

도 7b를 참조하면, 다양한 실시예에 따른 전자 장치(400)(예: 도 1의 프로세서(120), 또는 도 4의 프로세서(410))는 이미지 센서(예: 도 2의 이미지 센서(230), 도 3의 이미지 센서(321), 또는 도 4의 이미지 센서(401))를 통하여 (a)와 같이 하나의 픽셀 당 R/G/B 중 하나의 색으로 표현되는 베이어 이미지를 로우 이미지로서 획득할 수 있다. 예를 들면 베이어 이미지는 2개의 G 픽셀과 1개의 R픽셀, 1개의 B 픽셀을 포함하는 2*2 픽셀 형식(GRBG)일 수 이거나, RGGB, BGGR, GBRG 등과 같은 형식일 수도 있다. 또는 전자 장치(400)(예: 도 1의 프로세서(120), 또는 도 4의 프로세서(410))는 이미지 센서(예: 도 2의 이미지 센서(230), 도 3의 이미지 센서(321), 또는 도 4의 이미지 센서(401))를 통하여 (b)와 같이 하나의 픽셀 당 R/G1/G2/B 중 하나의 색으로 표현되며, 8 내지 16 비트의 비트-뎁스로 표현될 수 있는 베이어 이미지를 로우 이미지로 획득할 수도 있다. Referring to FIG. 7B, an electronic device 400 (eg, the processor 120 of FIG. 1 or the processor 410 of FIG. 4) according to various embodiments may be an image sensor (eg, the image sensor 230 of FIG. 2). Through the image sensor 321 of FIG. 3 or the image sensor 401 of FIG. 4, a Bayer image represented by one color of R / G / B per pixel as shown in (a) is obtained as a low image can do. For example, the Bayer image may be in a 2 * 2 pixel format (GRBG) including two G pixels, one R pixel, and one B pixel, or may be in a format such as RGGB, BGGR, GBRG, or the like. Alternatively, the electronic device 400 (eg, the processor 120 of FIG. 1 or the processor 410 of FIG. 4) may be an image sensor (eg, the image sensor 230 of FIG. 2, the image sensor 321 of FIG. 3, Alternatively, Bayer, which is represented by one color of R / G1 / G2 / B per pixel as illustrated in (b) through the image sensor 401 of FIG. 4, may be represented by a bit depth of 8 to 16 bits. The image may be acquired as a raw image.

도 8a 및 도 8b는 다양한 실시예에 따른 전자 장치에서 제1 이미지를 기반으로 참조 채널에 대응된 제1 픽셀들에 대한 제1 복원 정보와 목표 채널에 대응된 제2 픽셀들에 대한 제1 보간 정보를 획득하는 동작을 설명하기 위한 도면이다.8A and 8B illustrate first reconstruction information for first pixels corresponding to a reference channel and first interpolation for second pixels corresponding to a target channel based on a first image in an electronic device according to various embodiments of the present disclosure. It is a figure for explaining the operation | movement which acquires information.

도 8a를 참조하면, 전자 장치(400)(예: 도 1의 프로세서(120), 또는 도 4의 프로세서(410))는 (a)와 같이 R, G, B 3개의 색상(이하, '채널'이라고도 함)을 포함하는 베이어 이미지를 획득하고, 획득된 베이어 이미지의 제1 블록(bayer pattern block)(예를 들면, 베이어 이미지의 복수의 블록들 중 압축할 현재 블록)에서 지정된 제1 색상(이하, '참조 채널(reference channel)'이라고도 함)을 확인할 수 있다. 일 실시예에 따르면 참조 채널은 R, G, B 3개의 채널 중 하나의 채널로 지정될 수 있다. 지정된 채널은 G 채널일 수 있다. Referring to FIG. 8A, the electronic device 400 (eg, the processor 120 of FIG. 1 or the processor 410 of FIG. 4) may have three colors (hereinafter, referred to as 'channels') as shown in (a). Acquire a Bayer image comprising a ", " and specify a first color (e.g., the current block to be compressed among a plurality of blocks of the Bayer image) Hereinafter, it may be referred to as a 'reference channel'. According to an embodiment, the reference channel may be designated as one of three channels of R, G, and B. The designated channel may be a G channel.

전자 장치(400)(예: 도 1의 프로세서(120), 또는 도 4의 프로세서(410))는 (b)와 같이 지정된 참조 채널(예를 들면, G 채널)에 대응된 제1 복원 정보를 획득할 수 있다. 일 실시예에 따르면 전자 장치(400)(예: 도 1의 프로세서(120), 또는 도 4의 프로세서(410))는 G 채널의 제1 픽셀값(810)을 지정된 압축 방식으로 압축한 뒤 다시 복원하여 복원된 G 채널의 제1 픽셀값(811)을 획득하는 방식을 이용하여 G 채널에 대응된 제1 픽셀들 각각에 대한 복원된 제1 픽셀값들을 획득할 수 있다. The electronic device 400 (eg, the processor 120 of FIG. 1 or the processor 410 of FIG. 4) receives first restoration information corresponding to a reference channel (eg, G channel) designated as shown in (b). Can be obtained. According to an embodiment, the electronic device 400 (eg, the processor 120 of FIG. 1 or the processor 410 of FIG. 4) compresses the first pixel value 810 of the G channel by using a specified compression method and then again. The reconstructed first pixel values for each of the first pixels corresponding to the G channel may be obtained by using the reconstructed method of obtaining the reconstructed first pixel value 811 of the G channel.

전자 장치(400)(예: 도 1의 프로세서(120), 또는 도 4의 프로세서(410))는 G 채널에 대응된 제1 복원 정보를 이용하여 목표 채널(예를 들면, R 채널 또는 B 채널)에 대응하는 제1 보간 정보를 획득할 수 있다. 일 실시예에 따르면 전자 장치(400)(예: 도 1의 프로세서(120), 또는 도 4의 프로세서(410))는 (c)와 같이 G 채널에 대응된 제1 픽셀들 각각에 대한 복원된 제1 픽셀값들 기반으로 지정된 보간 기법을 이용하여 R 채널들 각각의 위치에서 보간된 G값들을 획득할 수 있다. 일 실시예에 따르면 지정된 보간 기법은 cross component prediction 방식의 보간 기법일 수 있다. 예를 들면, 지정된 보간 기법은 Bilinear Interpolation 또는 Edge-Directed Interpolation이 이용되거나 이 외에 다양한 보간 기법 중 하나가 이용될 수 있다. 예를 들면, 제1 R 채널 위치에서 보간된 G값(820)은 제1 복원된 G채널 픽셀값(811)+제2 복원된 G채널 픽셀값(812)/2의 값일 수 있다. 일 실시예에 따르면 전자 장치(400)(예: 도 1의 프로세서(120), 또는 도 4의 프로세서(410))는 (d)와 같이 G 채널에 대응된 제1 픽셀들 각각에 대한 복원된 제1 픽셀값들 기반으로 지정된 보간 기법을 이용하여 B 채널들 각각의 위치에서 보간된 G값들을 획득할 수 있다. 일 실시예에 따르면 지정된 보간 기법은 cross component prediction 방식의 보간 기법일 수 있다. 예를 들면, 지정된 보간 기법은 Bilinear Interpolation 또는 Edge-Directed Interpolation이 이용되거나 이 외에 다양한 보간 기법 중 하나가 이용될 수 있다. 예를 들면, 제1 B 채널 위치에서 보간된 G값(830)은 제3 복원된 G채널 픽셀값(813) + 제4 복원된 G채널 픽셀값(814)/2의 값일 수 있다. 상기 도 8a의 설명에서는 참조 채널로 G 채널이 이용되는 예를 들어 설명하였지만, R, B 채널과 같이 다른 채널이 참조 채널로 이용될 수도 있다.The electronic device 400 (eg, the processor 120 of FIG. 1 or the processor 410 of FIG. 4) may use the first reconstruction information corresponding to the G channel to target a channel (eg, an R channel or a B channel). The first interpolation information corresponding to) may be obtained. According to an embodiment, the electronic device 400 (eg, the processor 120 of FIG. 1 or the processor 410 of FIG. 4) may be reconstructed for each of the first pixels corresponding to the G channel as shown in (c). The interpolated G values may be obtained at positions of each of the R channels by using an interpolation scheme designated based on the first pixel values. According to an embodiment, the specified interpolation technique may be an interpolation technique of a cross component prediction scheme. For example, the specified interpolation technique may use Bilinear Interpolation or Edge-Directed Interpolation or one of various interpolation techniques. For example, the interpolated G value 820 at the first R channel position may be a value of the first reconstructed G channel pixel value 811 + the second reconstructed G channel pixel value 812/2. According to an embodiment, the electronic device 400 (eg, the processor 120 of FIG. 1 or the processor 410 of FIG. 4) may be reconstructed for each of the first pixels corresponding to the G channel as shown in (d). The interpolated G values may be obtained at positions of each of the B channels by using an interpolation scheme specified based on the first pixel values. According to an embodiment, the specified interpolation technique may be an interpolation technique of a cross component prediction scheme. For example, the specified interpolation technique may use Bilinear Interpolation or Edge-Directed Interpolation or one of various interpolation techniques. For example, the interpolated G value 830 at the first B channel position may be a value of the third reconstructed G channel pixel value 813 + the fourth reconstructed G channel pixel value 814/2. In the description of FIG. 8A, an example in which the G channel is used as the reference channel has been described. However, other channels such as the R and B channels may be used as the reference channel.

도 8b를 참조하면, 전자 장치(400)(예: 도 1의 프로세서(120), 또는 도 4의 프로세서(410))는 (a)와 같이 R, G1, G2, B와 같은 4개의 채널을 포함하는 베이어 이미지를 획득할 수 있다. 일 실시예에 따르면 베이어 이미지가 3채널을 포함하거나 4채널을 포함하는 것은 베이어 코덱(bayer codec)의 방식에 의해 설정될 수 있다. 전자 장치(400)(예: 도 1의 프로세서(120), 또는 도 4의 프로세서(410))는 획득된 베이어 이미지의 제1 블록(bayer pattern block)(예를 들면, 베이어 이미지의 복수의 블록들 중 압축할 현재 블록)에서 지정된 참조 채널을 확인할 수 있다. 일 실시예에 따르면 참조 채널은 R, G1, G2, B와 같은 4개의 채널 중 하나의 채널로 지정될 수 있다. 지정된 채널은 G1 채널일 수 있다. Referring to FIG. 8B, the electronic device 400 (eg, the processor 120 of FIG. 1 or the processor 410 of FIG. 4) may use four channels such as R, G1, G2, and B as shown in (a). A Bayer image may be obtained. According to an embodiment, the Bayer image including three channels or four channels may be set by a Bayer codec. The electronic device 400 (eg, the processor 120 of FIG. 1, or the processor 410 of FIG. 4) may be a first block of the obtained Bayer image (eg, a plurality of blocks of the Bayer image). Of the current block to be compressed). According to an embodiment, the reference channel may be designated as one of four channels such as R, G1, G2, and B. The designated channel may be a G1 channel.

전자 장치(400)(예: 도 1의 프로세서(120), 또는 도 4의 프로세서(410))는 (b)와 같이 지정된 참조 채널(reference channel)(예를 들면, G1 채널)에 대응된 제1 복원 정보를 획득할 수 있다. 일 실시예에 따르면 전자 장치(400)(예: 도 1의 프로세서(120), 또는 도 4의 프로세서(410))는 G1 채널의 제1 픽셀값(850)을 지정된 압축 방식으로 압축한 뒤 다시 복원하여 복원된 G1 채널의 제1 픽셀값(851)을 획득하는 방식을 이용하여 G1 채널에 대응된 제1 픽셀들 각각에 대한 복원된 제1 픽셀값들을 획득할 수 있다. The electronic device 400 (eg, the processor 120 of FIG. 1 or the processor 410 of FIG. 4) may be configured to correspond to a reference channel (eg, G1 channel) designated as shown in (b). 1 Restore information can be obtained. According to an embodiment, the electronic device 400 (eg, the processor 120 of FIG. 1 or the processor 410 of FIG. 4) compresses the first pixel value 850 of the G1 channel by using a specified compression method and then again. The reconstructed first pixel values for each of the first pixels corresponding to the G1 channel may be obtained by using the reconstructed method of obtaining the first pixel value 851 of the reconstructed G1 channel.

전자 장치(400)(예: 도 1의 프로세서(120), 또는 도 4의 프로세서(410))는 참조 채널인 G1 채널에 대응된 제1 복원 정보를 이용하여 목표 채널 예를 들면, R 채널, G2 채널 또는 B 채널에 대응하는 제1 보간 정보를 획득할 수 있다. 일 실시예에 따르면 전자 장치(400)(예: 도 1의 프로세서(120), 또는 도 4의 프로세서(410))는 (c)와 같이 G1 채널에 대응된 제1 픽셀들 각각에 대한 복원된 제1 픽셀값들 기반으로 지정된 보간 기법을 이용하여 R 채널들 각각의 위치에서 보간된 G1값들을 획득할 수 있다. 일 실시예에 따르면 지정된 보간 기법은 cross component prediction 방식의 보간 기법일 수 있다. 예를 들면, 지정된 보간 기법은 Bilinear Interpolation 또는 Edge-Directed Interpolation이 이용되거나 이 외에 다양한 보간 기법 중 하나가 이용될 수 있다. 예를 들면, 제1 R 채널 위치에서 보간된 G1값(860)은 제1 복원된 G1채널 픽셀값(851) + 제2 복원된 G1채널 픽셀값(852)/2의 값일 수 있다. The electronic device 400 (eg, the processor 120 of FIG. 1 or the processor 410 of FIG. 4) may use a first channel, for example, an R channel, by using first reconstruction information corresponding to the G1 channel, which is a reference channel. First interpolation information corresponding to the G2 channel or the B channel may be obtained. According to an embodiment, the electronic device 400 (eg, the processor 120 of FIG. 1 or the processor 410 of FIG. 4) may be reconstructed for each of the first pixels corresponding to the G1 channel as shown in (c). The interpolated G1 values may be obtained at positions of each of the R channels by using an interpolation scheme designated based on the first pixel values. According to an embodiment, the specified interpolation technique may be an interpolation technique of a cross component prediction scheme. For example, the specified interpolation technique may use Bilinear Interpolation or Edge-Directed Interpolation or one of various interpolation techniques. For example, the interpolated G1 value 860 at the first R channel position may be a value of the first reconstructed G1 channel pixel value 851 + the second reconstructed G1 channel pixel value 852/2.

일 실시예에 따르면 전자 장치(400)(예: 도 1의 프로세서(120), 또는 도 4의 프로세서(410))는 (d)와 같이 G1 채널에 대응된 제1 픽셀들 각각에 대한 복원된 제1 픽셀값들 기반으로 지정된 보간 기법을 이용하여 G2 채널들 각각의 위치에서 보간된 G1값들을 획득할 수 있다. 일 실시예에 따르면 지정된 보간 기법은 cross component prediction 방식의 보간 기법일 수 있다. 예를 들면, 지정된 보간 기법은 Bilinear Interpolation 또는 Edge-Directed Interpolation이 이용되거나 이 외에 다양한 보간 기법 중 하나가 이용될 수 있다. 예를 들면, 제1 G2 채널 위치에서 보간된 G1값(870)은 제3 복원된 G1채널 픽셀값(853)+제4 복원된 G1채널 픽셀값(854)/2의 값일 수 있다. According to an embodiment, the electronic device 400 (eg, the processor 120 of FIG. 1 or the processor 410 of FIG. 4) may be reconstructed for each of the first pixels corresponding to the G1 channel as shown in (d). The interpolated G1 values may be obtained at positions of each of the G2 channels by using an interpolation technique designated based on the first pixel values. According to an embodiment, the specified interpolation technique may be an interpolation technique of a cross component prediction scheme. For example, the specified interpolation technique may use Bilinear Interpolation or Edge-Directed Interpolation or one of various interpolation techniques. For example, the G1 value 870 interpolated at the first G2 channel position may be a value of the third reconstructed G1 channel pixel value 853 + the fourth reconstructed G1 channel pixel value 854/2.

일 실시예에 따르면 전자 장치(400)(예: 도 1의 프로세서(120), 또는 도 4의 프로세서(410))는 (e)와 같이 G1 채널에 대응된 제1 픽셀들 각각에 대한 복원된 제1 픽셀값들 기반으로 지정된 보간 기법을 이용하여 B 채널들 각각의 위치에서 보간된 G1값들을 획득할 수 있다. 일 실시예에 따르면 지정된 보간 기법은 cross component prediction 방식의 보간 기법일 수 있다. 예를 들면, 지정된 보간 기법은 Bilinear Interpolation 또는 Edge-Directed Interpolation이 이용되거나 이 외에 다양한 보간 기법 중 하나가 이용될 수 있다. 예를 들면, 제1 B 채널 위치에서 보간된 G1값(880)은 제5 복원된 G1채널 픽셀값(855)+제6 복원된 G1채널 픽셀값(856)/2의 값일 수 있다. 상기 도 8b의 설명에서는 참조 채널로 G1채널이 이용되는 예를 들어 설명하였지만, R, G2, B 채널과 같이 다른 채널이 참조 채널로 이용될 수도 있다.According to an embodiment, the electronic device 400 (eg, the processor 120 of FIG. 1 or the processor 410 of FIG. 4) may be configured to reconstruct each of the first pixels corresponding to the G1 channel as shown in (e). The interpolated G1 values may be obtained at positions of each of the B channels by using an interpolation scheme designated based on the first pixel values. According to an embodiment, the specified interpolation technique may be an interpolation technique of a cross component prediction scheme. For example, the specified interpolation technique may use Bilinear Interpolation or Edge-Directed Interpolation or one of various interpolation techniques. For example, the interpolated G1 value 880 at the first B channel position may be a value of the fifth reconstructed G1 channel pixel value 855 + the sixth reconstructed G1 channel pixel value 856 // 2. In the description of FIG. 8B, the G1 channel is used as the reference channel, but another channel may be used as the reference channel, such as the R, G2, and B channels.

도 9는 다양한 실시예에 따른 전자 장치에서 제1 보간 정보를 이용하여 적어도 하나 이상의 제2 픽셀들에 대응하는 제2 복원 정보를 획득하기 위한 변환 정보를 획득하는 동작을 설명하기 위한 도면이다.9 is a diagram illustrating an operation of obtaining transformation information for acquiring second reconstruction information corresponding to at least one or more second pixels using first interpolation information in an electronic device according to various embodiments of the present disclosure.

도 9를 참조하면, 전자 장치(400)(예: 도 1의 프로세서(120), 또는 도 4의 프로세서(410))는 베이어 이미지(910)의 제1 블록(current block)(912)(예를 들면, 베이어 이미지의 복수의 블록들 중 압축할 현재 블록)의 인접 픽셀들(914)을 이용하여 목표 채널에 대응된 적어도 하나 이상의 제2 픽셀들에 대응하는 제2 복원 정보를 획득하기 위한 변환 정보를 획득할 수 있다. 일 실시예에 따르면 전자 장치(400)(예: 도 1의 프로세서(120), 또는 도 4의 프로세서(410))는 제1 블록(912)의 목표 채널이 B 채널인 경우 B 채널에 대응된 적어도 하나의 제2 픽셀들 각각에 대한 복원된 제2 픽셀값들을 획득하기 위한 변환 계수를 인접 픽셀들(914)의 B 채널에 대응된 적어도 하나의 제2 픽셀들 값을 이용하여 획득할 수 있다. 예를 들면, 전자 장치(400)(예: 도 1의 프로세서(120), 또는 도 4의 프로세서(410))는 인접 픽셀들(914) 내의 G1 채널의 복원 정보를 이용하여 B 채널에 대응된 적어도 하나의 제2 픽셀들 각각에 대응하는 보간값들(934)을 산출하고, 인접 픽셀들(914) 내의 B 채널에 대응된 적어도 하나의 제2 픽셀들 각각에 대응하는 보간값들(934)과 인접 픽셀들(914) 내의 B 채널에 대응된 적어도 하나의 제2 픽셀들의 복원된 채널값(916)과의 관계를 이용하여 변환 계수를 유도할 수 있다. Referring to FIG. 9, the electronic device 400 (eg, the processor 120 of FIG. 1, or the processor 410 of FIG. 4) may correspond to a first block 912 (eg, of the Bayer image 910). For example, the transform for obtaining second reconstruction information corresponding to at least one or more second pixels corresponding to the target channel using the adjacent pixels 914 of the current block to be compressed among the plurality of blocks of the Bayer image Information can be obtained. According to an embodiment, the electronic device 400 (eg, the processor 120 of FIG. 1 or the processor 410 of FIG. 4) may correspond to the B channel when the target channel of the first block 912 is the B channel. A transform coefficient for obtaining reconstructed second pixel values for each of the at least one second pixels may be obtained using at least one second pixel value corresponding to the B channel of the adjacent pixels 914. . For example, the electronic device 400 (eg, the processor 120 of FIG. 1 or the processor 410 of FIG. 4) may correspond to the B channel by using reconstruction information of the G1 channel in the adjacent pixels 914. Compute interpolation values 934 corresponding to each of the at least one second pixels, and interpolation values 934 corresponding to each of the at least one second pixels corresponding to the B channel in the adjacent pixels 914. The transform coefficient may be derived using a relationship with the reconstructed channel value 916 of at least one second pixel corresponding to the B channel in the adjacent pixels 914.

예를 들면, 제1 블록(912)의 목표 채널인 B 채널에 대응된 제2 픽셀들 각각에 대한 복원된 픽셀값들을 획득하기 위한 변환 계수 α0 및 β0를 유도하기 위해 하기 수학식 2 및 수학식 3이 이용될 수 있다. For example, to derive transform coefficients α 0 and β 0 for obtaining reconstructed pixel values for each of the second pixels corresponding to the B channel, which is the target channel of the first block 912, Equation 2 and 3 may be used.

[수학식 2][Equation 2]

Figure pat00002
Figure pat00002

[수학식 3][Equation 3]

Figure pat00003
Figure pat00003

상기 수학식 2 및 수학식 3에 따르면, M은 자연수일 수 있고, xk는 인접 픽셀들(914) 내의 제2 참조 채널을 이용하여 보간된 제2 목표 채널의 픽셀의 보간값일 수 있고, yk는 인접 픽셀들(914) 내의 제2 목표 채널의 복원된 픽셀 복원값일 수 있다.According to Equations 2 and 3, M may be a natural number, xk may be an interpolation value of a pixel of a second target channel interpolated using a second reference channel in adjacent pixels 914, and yk may be It may be a reconstructed pixel reconstruction value of a second target channel in adjacent pixels 914.

다양한 실시예에 따르면 전자 장치(400)(예: 도 1의 프로세서(120), 또는 도 4의 프로세서(410))는 상기 수학식 2 또는 3 외에 수학식 2 또는 3보다 간소화된 수학식이나, 수학식 2 또는 3보다 복잡한 수학식 등 다양한 변환 계수 유도를 위한 수학식을 이용할 수 있다. According to various embodiments of the present disclosure, the electronic device 400 (eg, the processor 120 of FIG. 1 or the processor 410 of FIG. 4) may be a simplified equation than Equation 2 or 3 in addition to Equation 2 or 3. Equations for deriving various transform coefficients, such as more complex equations than Equations 2 or 3, may be used.

도 10a 및 도 10b는 다양한 실시예에 따른 전자 장치에서 변환 정보 획득 시 이용되는 제1 블록의 인접 픽셀들을 나타낸 예시도이다. 10A and 10B are exemplary diagrams illustrating adjacent pixels of a first block used when acquiring transform information in an electronic device according to various embodiments of the present disclosure.

도 10a를 참조하면, 전자 장치(400)(예: 도 1의 프로세서(120), 또는 도 4의 프로세서(410))는 제1 블록(current block)(1012)(예를 들면, 베이어 이미지의 복수의 블록들 중 압축할 현재 블록)의 상위 인접 픽셀들(above pixels)(1012-1) 또는 좌측 인접 픽셀들(left pixels)(1012-2)을 이용하여 제1 블록(1012)의 목표 채널에 대응하는 적어도 하나 이상의 제2 픽셀들의 제1 목표 채널 복원 정보(적어도 하나 이상의 제2 픽셀들 각각의 픽셀 복원값)를 획득하기 위한 제2 목표 채널 변환 계수를 획득할 수 있다.Referring to FIG. 10A, the electronic device 400 (eg, the processor 120 of FIG. 1, or the processor 410 of FIG. 4) may include a first block 1012 (eg, a Bayer image). A target channel of the first block 1012 using upper neighbor pixels 1012-1 or left pixels 1012-2 of the current block to be compressed among the plurality of blocks A second target channel transform coefficient for obtaining first target channel reconstruction information (pixel reconstruction value of each of the at least one or more second pixels) of at least one or more second pixels corresponding to may be obtained.

도 10b를 참조하면, 전자 장치(400)(예: 도 1의 프로세서(120), 또는 도 4의 프로세서(410))는 제1 블록(current block)(1012)(예를 들면, 베이어 이미지의 복수의 블록들 중 압축할 현재 블록)의 상위 좌측 인접 블록(above left block)(1012-3), 상위 인접 블록(above left block)(1012-4), 상위 우측 인접 블록(above right block)(1012-5), 또는 좌측 인접 블록(left block)(1012-6)을 이용하여 제1 블록(1012)의 목표 채널에 대응하는 적어도 하나 이상의 제2 픽셀들의 제1 목표 채널 복원 정보(적어도 하나 이상의 제2 픽셀들 각각의 픽셀 복원값)를 획득하기 위한 제2 목표 채널 변환 계수를 획득할 수 있다.Referring to FIG. 10B, the electronic device 400 (eg, the processor 120 of FIG. 1, or the processor 410 of FIG. 4) may include a first block 1012 (eg, a Bayer image). Upper left adjacent block 1012-3, upper left block 1012-4, upper right adjacent block of a plurality of blocks (the current block to be compressed); 1012-5, or first target channel reconstruction information (at least one or more of at least one or more second pixels corresponding to the target channel of the first block 1012 using a left block 1012-6); A second target channel transform coefficient for obtaining a pixel reconstruction value of each of the second pixels may be obtained.

다양한 실시예에 따르면, 전자 장치(400)(예: 도 1의 프로세서(120), 또는 도 4의 프로세서(410))는 상위 인접 픽셀들(above pixels)(1012-1), 좌측 인접 픽셀들(left pixels)(1012-2), 상위 좌측 인접 블록(above left block)(1012-3), 상위 인접 블록(above left block)(1012-4), 상위 우측 인접 블록(above right block)(1012-5), 또는 좌측 인접 블록(left block)(1012-6) 중 하나의 영역을 이용하여 제2 목표 채널 변환 계수를 획득하거나, 상위 인접 픽셀들(above pixels)(1012-1), 좌측 인접 픽셀들(left pixels)(1012-2), 상위 좌측 인접 블록(above left block)(1012-3), 상위 인접 블록(above left block)(1012-4), 상위 우측 인접 블록(above right block)(1012-5), 또는 좌측 인접 블록(left block)(1012-6) 중 복수의 영역들 이용하여 복수의 제2 목표 채널 변환 계수를 획득한 뒤 하나의 목표 채널 변환 계수를 선택할 수도 있다. According to various embodiments, the electronic device 400 (eg, the processor 120 of FIG. 1, or the processor 410 of FIG. 4) may include upper adjacent pixels 1012-1 and left adjacent pixels. left pixels 1012-2, above left block 1012-3, above left block 1012-4, above right block 1012 -5) or obtain a second target channel transform coefficient using the region of one of the left adjacent blocks 1012-6, or above adjacent pixels 1012-1, left adjacent; Left pixels 1012-2, above left block 1012-3, above left block 1012-4, above right block One target channel transform coefficient may be selected after obtaining a plurality of second target channel transform coefficients by using a plurality of regions (1012-5) or a left block 1012-6.

다양한 실시예에 따르면 전자 장치(400)(예: 도 1의 프로세서(120), 또는 도 4의 프로세서(410))는 획득된 제2 목표 채널 변환 계수를 수정하여 이용할 수 있다. 일 실시예에 따르면 전자 장치(400)는 획득된 제2 목표 채널 변환 계수에 특정 값 또는 변수를 더하거나 빼거나 곱하거나 나누는 등의 연산을 적용하여 획득된 제2 목표 채널 변환 계수를 수정할 수 있다.According to various embodiments, the electronic device 400 (eg, the processor 120 of FIG. 1 or the processor 410 of FIG. 4) may modify and use the obtained second target channel conversion coefficient. According to an embodiment, the electronic device 400 may modify the acquired second target channel conversion coefficient by applying an operation such as adding, subtracting, multiplying, or dividing a specific value or variable to the obtained second target channel conversion coefficient.

다양한 실시예에 따르면 전자 장치(400)(예: 도 1의 프로세서(120), 또는 도 4의 프로세서(410))는 획득된 제2 목표 채널 변환 계수 또는 수정된 제2 목표 채널 변환 계수들 중 제1 목표 채널 변환 계수로 이용할 변환 계수를 선택할 수 있다.According to various embodiments of the present disclosure, the electronic device 400 (for example, the processor 120 of FIG. 1 or the processor 410 of FIG. 4) may be configured to perform a selection of the second target channel transform coefficients or the modified second target channel transform coefficients. A transform coefficient to be used as the first target channel transform coefficient may be selected.

다양한 실시예에 따르면, 전자 장치(400)(예: 도 1의 프로세서(120), 또는 도 4의 프로세서(410))는 제1 목표 채널 변환 계수를 이용하여 제1 블록의 목표 채널에 대응된 적어도 하나 이상의 제2 픽셀들에 대응하는 제1 목표 채널 복원 정보(목표 채널에 대응된 적어도 하나 이상의 제2 픽셀들 각각의 복원 픽셀값)를 획득하고, 제1 블록의 목표 채널에 대응된 적어도 하나 이상의 제2 픽셀들의 원래 픽셀값과 복원 픽셀값과의 차이 또는 cost를 비교하여, 획득 또는 수정된 복수의 제2 목표 채널 변환 계수들 중 차이 또는 cost가 가장 작은 변환 계수를 제1 목표 채널 변환 계수로 선택할 수 있다. 일 실시예에 따르면 전자 장치(400)(예: 도 1의 프로세서(120), 또는 도 4의 프로세서(410))는 원래 값과 복원값과의 차이 또는 cost를 산출하기 위해 SATD(sum of absolute transformed difference), SSE sum of standard error), 또는 SAD(sum of absolute difference) 등의 방식 중 하나를 이용할 수 있다. According to various embodiments, the electronic device 400 (eg, the processor 120 of FIG. 1 or the processor 410 of FIG. 4) may correspond to a target channel of the first block using the first target channel transform coefficient. Obtain first target channel reconstruction information (reconstructed pixel value of each of the at least one or more second pixels corresponding to the target channel) corresponding to the at least one or more second pixels, and at least one corresponding to the target channel of the first block By comparing the difference or cost between the original pixel value and the reconstructed pixel value of the second pixels, the transform coefficient having the smallest difference or cost among the plurality of obtained or modified second target channel transform coefficients is obtained. Can be selected. According to an embodiment, the electronic device 400 (eg, the processor 120 of FIG. 1 or the processor 410 of FIG. 4) may use the sum of absolute to calculate a difference or cost between the original value and the restored value. transformed difference, SSE sum of standard error, or sum of absolute difference (SAD).

도 11은 다양한 실시예에 따른 전자 장치에서 제1 이미지의 목표 채널에 대응된 적어도 하나 이상의 제2 픽셀들의 원래 픽셀값과 복원 픽셀값과의 차이를 설명하기 위한 도면이다. 11 is a diagram illustrating a difference between an original pixel value and a reconstructed pixel value of at least one or more second pixels corresponding to a target channel of a first image in an electronic device according to various embodiments of the present disclosure.

도 11을 참조하면, 전자 장치(400)(예: 도 1의 프로세서(120), 또는 도 4의 프로세서(410))는 (a)와 같이 참조 채널에 대응하는 적어도 하나의 제1 픽셀들 각각의 제1 복원 픽셀값들(G1)을 획득한 뒤, (b)와 같이 제1 복원 픽셀값들(G1)을 이용하여 목표 채널(R)에 대응하는 적어도 하나의 제2 픽셀들 각각에 대응된 제1 보간 픽셀값들(G1')을 획득할 수 있으며, 목표 채널(R)에 대응하는 적어도 하나의 제2 픽셀들 각각에 대응된 제1 보간 픽셀값들(G1')에 R'= α*G1'+β와 같이 변환 계수 α,β를 적용하여 (c)와 같이 목표 채널(R)에 대응하는 적어도 하나의 제2 픽셀들 각각의 제2 복원 픽셀값들(R')(예측된 R 채널의 픽셀값)을 획득할 수 있다. 전자 장치(400)(예: 도 1의 프로세서(120), 또는 도 4의 프로세서(410))는 예측된 R 채널의 픽셀값들(R')과 (d)와 같은 이미지 센서에 의해 획득된 로우 이미지의 R 채널의 픽셀값들(R)(원본 R 채널의 픽셀값)을 비교하여 차이 또는 cost 를 계산할 수 있다. 다양한 실시예에 따르면 전자 장치(400)(예: 도 1의 프로세서(120), 또는 도 4의 프로세서(410))는 복수의 변환 계수를 각각 적용하여 예측된 R 채널의 픽셀값과 원본 R 채널의 픽셀값의 차이 또는 코스트가 적은 변환 계수를 선택하여 이용할 수 있다.Referring to FIG. 11, the electronic device 400 (eg, the processor 120 of FIG. 1 or the processor 410 of FIG. 4) may each include at least one first pixel corresponding to the reference channel as shown in (a). After acquiring the first reconstructed pixel values G1 of, corresponding to each of the at least one second pixels corresponding to the target channel R using the first reconstructed pixel values G1 as shown in (b). The first interpolation pixel values G1 ′ may be obtained, and R ′ = to the first interpolation pixel values G1 ′ corresponding to each of the at least one second pixels corresponding to the target channel R. FIG. The second reconstructed pixel values R 'of each of the at least one second pixels corresponding to the target channel R as shown in (c) by applying the transform coefficients α and β, such as α * G1 ′ + β (prediction) Pixel value of the received R channel) can be obtained. The electronic device 400 (eg, the processor 120 of FIG. 1, or the processor 410 of FIG. 4) is obtained by an image sensor such as pixel values R ′ and (d) of the predicted R channel. The difference or cost may be calculated by comparing the pixel values R of the R channel of the raw image (pixel values of the original R channel). According to various embodiments of the present disclosure, the electronic device 400 (eg, the processor 120 of FIG. 1 or the processor 410 of FIG. 4) may apply a plurality of transform coefficients, respectively, to predict pixel values of the R channel and the original R channel. It is possible to select and use a transform coefficient having a small difference in pixel value or a low cost.

다양한 실시예에 따르면 전자 장치(400)(예: 도 1의 프로세서(120), 또는 도 4의 프로세서(410))는 변환 계수는 현재 블록의 인접 픽셀들이 아닌 현재 블록에서 변환 계수가 유도될 수도 있으며, 인접 픽셀들로부터 유도된 변환 계수와 현재 블록에서 유도된 변환 계수 사이의 차이가 작은 값을 변환 계수로 선택할 수 있다. According to various embodiments, the electronic device 400 (eg, the processor 120 of FIG. 1 or the processor 410 of FIG. 4) may have a transform coefficient derived from a current block instead of adjacent pixels of the current block. In addition, a value having a small difference between the transform coefficient derived from adjacent pixels and the transform coefficient derived in the current block may be selected as the transform coefficient.

다양한 실시예에 따르면, 전자 장치(400)(예: 도 1의 프로세서(120), 또는 도 4의 프로세서(410))는 변환 계수들 사이의 차이를 구하기 위해 하기 수학식 4를 이용할 수 있다.According to various embodiments of the present disclosure, the electronic device 400 (eg, the processor 120 of FIG. 1 or the processor 410 of FIG. 4) may use Equation 4 below to obtain a difference between transform coefficients.

[수학식 4][Equation 4]

Figure pat00004
Figure pat00004

상기 수학식 4에 따르면, α0, β0는 현재 블록으로부터 유도된 변환 계수이고, α, β는 인접 픽셀들로부터 유도된 변환 계수일 수 있다. According to Equation 4, α0 and β0 may be transform coefficients derived from a current block, and α and β may be transform coefficients derived from adjacent pixels.

전자 장치(400)(예: 도 1의 프로세서(120), 또는 도 4의 프로세서(410))는 인접 픽셀들로부터 유도된 변환 계수(α, β)와 현재 블록에서 유도된 변환 계수(α0, β0) 사이의 차이가 작은 값을 변환 계수로 선택할 수 있다. The electronic device 400 (eg, the processor 120 of FIG. 1, or the processor 410 of FIG. 4) may convert the transform coefficients α and β derived from adjacent pixels and the transform coefficients α0 derived from the current block. A value with a small difference between β0) can be selected as the conversion coefficient.

도 12는 다양한 실시예에 따른 R, G, B의 3채널을 포함하는 제1 블록에서 G 채널이 참조 채널로 지정된 경우 압축된 제1 블록을 생성하는 예를 나타낸 도면이다. 12 is a diagram illustrating an example of generating a compressed first block when a G channel is designated as a reference channel in a first block including three channels of R, G, and B according to various embodiments.

도 12를 참조하면, 다양한 실시예에 따른 전자 장치(400)(예: 도 1의 프로세서(120), 또는 도 4의 프로세서(410))는 R, G, B의 3채널을 포함하는 제1 블록에서 G 채널이 참조 채널로 지정된 경우 G 채널에 대응된 픽셀값들에 대응된 복원 픽셀값들을 이용하여 R 채널 및 B 채널에 대응된 픽셀들에 대한 색 보간을 수행할 수 있다. 일 실시예에 따르면, 색 보간(color interpolation)은 참조 채널이 아닌 다른 픽셀들에 다른 픽셀들에 대응된 값을 생성하여 채워주는 기술일 수 있다. 예를 들면, 전자 장치(400)(예: 도 1의 프로세서(120), 또는 도 4의 프로세서(410))는 G 채널에 대응된 복원 픽셀값들을 이용하여 R 채널에 대응된 픽셀들 각각에 대한 R 채널 보간값들(또는 R 채널 보간 정보)(GR)을 획득할 수 있고, G 채널에 대응된 복원 픽셀값들을 이용하여 B 채널에 대응된 픽셀들 각각에 대한 B 채널 보간값들(또는 B 채널 보간 정보)(GB)을 획득할 수 있다. Referring to FIG. 12, an electronic device 400 (eg, the processor 120 of FIG. 1 or the processor 410 of FIG. 4) according to various embodiments may include a first channel including three channels of R, G, and B. Referring to FIG. When the G channel is designated as the reference channel in the block, color interpolation may be performed on pixels corresponding to the R and B channels using reconstructed pixel values corresponding to the pixel values corresponding to the G channel. According to an embodiment, color interpolation may be a technique of generating and filling a value corresponding to other pixels in other pixels other than the reference channel. For example, the electronic device 400 (eg, the processor 120 of FIG. 1 or the processor 410 of FIG. 4) may use the reconstructed pixel values corresponding to the G channel to each of the pixels corresponding to the R channel. R channel interpolation values (or R channel interpolation information) GR may be obtained, and B channel interpolation values (or R channel interpolation values) for each of the pixels corresponding to the B channel may be obtained using reconstructed pixel values corresponding to the G channel. B channel interpolation information) (GB) can be obtained.

다양한 실시예에 따른 전자 장치(400)(예: 도 1의 프로세서(120), 또는 도 4의 프로세서(410))는 R 채널 또는 B 채널에 대응된 픽셀들 각각에 대한 복원 픽셀값들을 획득(예측)하기 위한 R 채널 변환 계수(αR, βR)또는 B 채널 변환 계수(αB, βB)를 획득할 수 있다. 예를 들면, 전자 장치(400)(예: 도 1의 프로세서(120), 또는 도 4의 프로세서(410))는 제1 블록의 인접 픽셀들 내의 R 채널에 대응된 픽셀들 각각에 대응하는 보간값들과 상기 인접 픽셀들 내의 R 채널에 대응된 픽셀들의 복원 픽셀값의 관계를 이용하여 R 채널 변환 계수(αR, βR)를 획득할 수 있다. 또한 전자 장치(400)(예: 도 1의 프로세서(120), 또는 도 4의 프로세서(410))는 제1 블록의 인접 픽셀들 내의 B 채널에 대응된 픽셀들 각각에 대응하는 보간값들과 상기 인접 픽셀들 내의 B 채널에 대응된 픽셀들의 복원 픽셀값의 관계를 이용하여 B 채널 변환 계수(αB, βB)를 획득할 수 있다. According to various embodiments of the present disclosure, the electronic device 400 (eg, the processor 120 of FIG. 1 or the processor 410 of FIG. 4) obtains reconstructed pixel values for each of pixels corresponding to the R channel or the B channel. R channel transform coefficients αR and βR or B channel transform coefficients αB and βB for prediction) may be obtained. For example, the electronic device 400 (eg, the processor 120 of FIG. 1, or the processor 410 of FIG. 4) may interpolate with each of the pixels corresponding to the R channel in the adjacent pixels of the first block. R channel transform coefficients αR and βR may be obtained using a relationship between values and reconstructed pixel values of pixels corresponding to the R channel in the adjacent pixels. Also, the electronic device 400 (eg, the processor 120 of FIG. 1 or the processor 410 of FIG. 4) may include interpolation values corresponding to each of the pixels corresponding to the B channel in the adjacent pixels of the first block. The B channel transform coefficients αB and βB may be obtained using a relationship between reconstructed pixel values of pixels corresponding to the B channel in the adjacent pixels.

다양한 실시예에 따른 전자 장치(400)(예: 도 1의 프로세서(120), 또는 도 4의 프로세서(410))는 변환 계수를 이용하여 목표 채널의 픽셀값을 예측할 수 있다. 일 실시예에 따르면 전자 장치(400)(예: 도 1의 프로세서(120), 또는 도 4의 프로세서(410))는 R'= αR * GR + βR와 같이 R 채널 보간값들(또는 R 채널 보간 정보)(GR)에 R 채널 변환 계수(αR, βR)를 적용하여 R 채널에 대응된 픽셀들 각각에 대한 복원 픽셀값들(R')을 획득할 수 있고, B'= αB * GB + βB와 같이 B 채널 보간값들(또는 B 채널 보간 정보)(GB)에 B 채널 변환 계수(αB, βB)를 적용하여 B 채널에 대응된 픽셀들 각각에 대한 복원 픽셀값들(B')을 획득할 수 있다.According to various embodiments of the present disclosure, the electronic device 400 (for example, the processor 120 of FIG. 1 or the processor 410 of FIG. 4) may predict the pixel value of the target channel using the transform coefficient. According to an embodiment, the electronic device 400 (eg, the processor 120 of FIG. 1, or the processor 410 of FIG. 4) may have R channel interpolation values (or R channels, such as R ′ = αR * GR + βR). R channel transform coefficients αR and βR may be applied to the interpolation information GR to obtain reconstructed pixel values R 'for each pixel corresponding to the R channel, and B' = αB * GB + The reconstructed pixel values B 'for each of the pixels corresponding to the B channel may be obtained by applying the B channel transform coefficients αB and βB to the B channel interpolation values (or B channel interpolation information) GB as in the case of βB. Can be obtained.

다양한 실시예에 따르면 전자 장치(400)(예: 도 1의 프로세서(120), 또는 도 4의 프로세서(410))는 G 채널에 대응된 픽셀값들에 대응된 복원 픽셀값들, R 채널에 대응된 픽셀들 각각에 대한 복원 픽셀값들(R'), 및 B 채널에 대응된 픽셀들 각각에 대한 복원 픽셀값들(B')을 이용하여 압축된 제1 블록을 생성할 수 있다.According to various embodiments of the present disclosure, the electronic device 400 (eg, the processor 120 of FIG. 1 or the processor 410 of FIG. 4) may reconstruct the pixel values corresponding to the pixel values corresponding to the G channel and the R channel. The compressed first block may be generated using reconstructed pixel values R ′ for each of the corresponding pixels and reconstructed pixel values B ′ for each of the pixels corresponding to the B channel.

도 13은 다양한 실시예에 따른 R, G1, G2, B의 4채널을 포함하는 제1 블록에서 G1 채널이 참조 채널로 지정된 경우 압축된 제1 블록을 생성하는 예를 나타낸 도면이다. FIG. 13 is a diagram illustrating an example of generating a compressed first block when a G1 channel is designated as a reference channel in a first block including four channels of R, G1, G2, and B according to various embodiments.

도 13을 참조하면, 다양한 실시예에 따른 전자 장치(400)(예: 도 1의 프로세서(120), 또는 도 4의 프로세서(410))는 R, G1, G2, B의 4채널을 포함하는 제1 블록에서 G1 채널이 참조 채널로 지정된 경우 G1 채널에 대응된 복원 픽셀값들(G1)을 이용하여 R 채널, G2 채널 또는 B 채널에 대응된 픽셀들에 대한 색 보간을 수행할 수 있다. 일 실시예에 따르면, 색 보간(color interpolation)은 참조 채널이 아닌 다른 픽셀들에 다른 픽셀들에 대응된 값을 생성하여 채워주는 기술일 수 있다. 예를 들면, 전자 장치(400)(예: 도 1의 프로세서(120), 또는 도 4의 프로세서(410))는 G1 채널에 대응된 복원 픽셀값들을 이용하여 R 채널에 대응된 픽셀들 각각에 대한 R 채널 보간값들(또는 R 채널 보간 정보)(GR)을 획득할 수 있고, G1 채널에 대응된 복원 픽셀값들을 이용하여 G2 채널에 대응된 픽셀들 각각에 대한 G2 채널 보간값들(또는 G2 채널 보간 정보)(G2')을 획득할 수 있고, G1 채널에 대응된 복원 픽셀값들을 이용하여 B 채널에 대응된 픽셀들 각각에 대한 B 채널 보간값들(또는 B 채널 보간 정보)(GB)을 획득할 수 있다. Referring to FIG. 13, an electronic device 400 (eg, the processor 120 of FIG. 1 or the processor 410 of FIG. 4) according to various embodiments includes four channels of R, G1, G2, and B. When the G1 channel is designated as the reference channel in the first block, color interpolation may be performed on pixels corresponding to the R channel, the G2 channel, or the B channel using the reconstructed pixel values G1 corresponding to the G1 channel. According to an embodiment, color interpolation may be a technique of generating and filling a value corresponding to other pixels in other pixels other than the reference channel. For example, the electronic device 400 (eg, the processor 120 of FIG. 1 or the processor 410 of FIG. 4) may use the reconstructed pixel values corresponding to the G1 channel to each of the pixels corresponding to the R channel. R channel interpolation values (or R channel interpolation information) GR may be obtained, and G2 channel interpolation values (or R2 channel interpolation values) for each pixel corresponding to the G2 channel may be obtained using reconstructed pixel values corresponding to the G1 channel. G2 channel interpolation information) (G2 '), and B channel interpolation values (or B channel interpolation information) for each pixel corresponding to the B channel using the reconstructed pixel values corresponding to the G1 channel (GB ) Can be obtained.

다양한 실시예에 따른 전자 장치(400)(예: 도 1의 프로세서(120), 또는 도 4의 프로세서(410))는 R 채널, G2 채널 또는 B 채널에 대응된 픽셀들 각각에 대한 복원 픽셀값들을 획득(또는 예측)하기 위한 R 채널 변환 계수(αR, βR), G2 채널 변환 계수(αG2, βG2) 또는 B 채널 변환 계수(αB, βB)를 획득할 수 있다. 예를 들면, 전자 장치(400)(예: 도 1의 프로세서(120), 또는 도 4의 프로세서(410))는 제1 블록의 인접 픽셀들 내의 R 채널에 대응된 픽셀들 각각에 대응하는 보간값들과 상기 인접 픽셀들 내의 R 채널에 대응된 픽셀들의 원래 픽셀값의 관계를 이용하여 R 채널 변환 계수(αR, βR)를 획득할 수 있고, 제1 블록의 인접 픽셀들 내의 G2 채널에 대응된 픽셀들 각각에 대응하는 보간값들과 상기 인접 픽셀들 내의 G2 채널에 대응된 픽셀들의 원래 픽셀값의 관계를 이용하여 G2 채널 변환 계수(αG2, βG2)를 획득할 수 있고, 제1 블록의 인접 픽셀들 내의 B 채널에 대응된 픽셀들 각각에 대응하는 보간값들과 상기 인접 픽셀들 내의 B 채널에 대응된 픽셀들의 원래 픽셀값의 관계를 이용하여 B 채널 변환 계수(αB, βB)를 획득할 수 있다. According to various embodiments of the present disclosure, the electronic device 400 (eg, the processor 120 of FIG. 1 or the processor 410 of FIG. 4) may have a reconstructed pixel value for each pixel corresponding to an R channel, a G2 channel, or a B channel. R channel transform coefficients? R and? R, G2 channel transform coefficients? G2 and? G2, or B channel transform coefficients? B and? B for acquiring (or predicting) the signals may be obtained. For example, the electronic device 400 (eg, the processor 120 of FIG. 1, or the processor 410 of FIG. 4) may interpolate with each of the pixels corresponding to the R channel in the adjacent pixels of the first block. Using the relationship between the values and the original pixel values of the pixels corresponding to the R channel in the adjacent pixels, the R channel transform coefficients αR and βR can be obtained and correspond to the G2 channel in the adjacent pixels of the first block. The G2 channel transform coefficients αG2 and βG2 may be obtained using a relationship between interpolation values corresponding to each of the pixels, and original pixel values of pixels corresponding to the G2 channel in the adjacent pixels, Obtain B channel transform coefficients (αB, βB) using a relationship between interpolation values corresponding to each of pixels corresponding to B channel in adjacent pixels and original pixel values of pixels corresponding to B channel in adjacent pixels. can do.

다양한 실시예에 따른 전자 장치(400)(예: 도 1의 프로세서(120), 또는 도 4의 프로세서(410))는 변환 계수를 이용하여 목표 채널의 픽셀값을 획득(예측)할 수 있다. 일 실시예에 따르면 전자 장치(400)(예: 도 1의 프로세서(120), 또는 도 4의 프로세서(410))는 R'= αR * GR + βR와 같이 R 채널 보간값들(또는 R 채널 보간 정보)(GR)에 R 채널 변환 계수(αR, βR)를 적용하여 R 채널에 대응된 픽셀들 각각에 대한 복원 픽셀값들(R')을 획득할 수 있고, G2"= αG2 * G2' + βG2와 같이 G2 채널 보간값들(또는 G2 채널 보간 정보)(G2')에 G2 채널 변환 계수(αG2, βRG2)를 적용하여 G2 채널에 대응된 픽셀들 각각에 대한 복원 픽셀값들(G2")을 획득할 수 있고, B'= αB * GB + βB와 같이 B 채널 보간값들(또는 B 채널 보간 정보)(GB)에 B 채널 변환 계수(αB, βB)를 적용하여 B 채널에 대응된 픽셀들 각각에 대한 복원 픽셀값들(B')을 획득할 수 있다. 일 실시예에 따르면 G2 채널에 대응된 픽셀들 각각에 대한 복원 픽셀값들(G2")은 변환 계수 적용 없이 G2 채널 보간값들(또는 G2 채널 보간 정보)(G2')를 G2 채널에 대응된 픽셀들 각각에 대한 복원 픽셀값들(G2")로 바로 이용할 수도 있다. According to various embodiments of the present disclosure, the electronic device 400 (for example, the processor 120 of FIG. 1 or the processor 410 of FIG. 4) may obtain (predict) a pixel value of a target channel using a transform coefficient. According to an embodiment, the electronic device 400 (eg, the processor 120 of FIG. 1, or the processor 410 of FIG. 4) may have R channel interpolation values (or R channels, such as R ′ = αR * GR + βR). R channel transform coefficients αR and βR may be applied to the interpolation information GR to obtain reconstructed pixel values R 'for each pixel corresponding to the R channel, and G2 " = αG2 * G2' Reconstructed pixel values G2 "for each pixel corresponding to the G2 channel by applying the G2 channel transform coefficients αG2 and βRG2 to the G2 channel interpolation values (or G2 channel interpolation information) G2 ', such as βG2. ), And apply B channel transform coefficients (αB, βB) to B channel interpolation values (or B channel interpolation information) GB, such as B '= αB * GB + βB, corresponding to the B channel. Reconstructed pixel values B 'for each of the pixels can be obtained. According to an embodiment, the reconstructed pixel values G2 ″ for each of the pixels corresponding to the G2 channel correspond to the G2 channel interpolation values (or G2 channel interpolation information) G2 ′ corresponding to the G2 channel without applying a transform coefficient. It may be used directly as reconstructed pixel values G2 " for each of the pixels.

다양한 실시예에 따르면 전자 장치(400)(예: 도 1의 프로세서(120), 또는 도 4의 프로세서(410))는 G 채널에 대응된 픽셀값들에 대응된 복원 픽셀값들, R 채널에 대응된 픽셀들 각각에 대한 복원 픽셀값들(R'), G2 채널에 대응된 픽셀들 각각에 대한 복원 픽셀값들(G2") 및 B 채널에 대응된 픽셀들 각각에 대한 복원 픽셀값들(B')을 이용하여 압축된 제1 블록을 획득할 수 있다. According to various embodiments of the present disclosure, the electronic device 400 (eg, the processor 120 of FIG. 1 or the processor 410 of FIG. 4) may reconstruct the pixel values corresponding to the pixel values corresponding to the G channel and the R channel. Reconstructed pixel values R 'for each of the corresponding pixels, reconstructed pixel values G2 "for each of the pixels corresponding to the G2 channel, and reconstructed pixel values for each of the pixels corresponding to the B channel ( B ') may be used to obtain a compressed first block.

도 14는 다양한 실시예에 따른 R, G1, G2, B의 4채널을 포함하는 제1 블록에서 G1 채널이 참조 채널로 지정된 경우 R 채널에 대응된 색 보간을 수행하는 예를 설명하기 위한 도면이다. 14 is a diagram illustrating an example of performing color interpolation corresponding to an R channel when a G1 channel is designated as a reference channel in a first block including four channels of R, G1, G2, and B according to various embodiments of the present disclosure. .

도 14를 참조하면, 전자 장치(400)(예: 도 1의 프로세서(120), 또는 도 4의 프로세서(410))는 (a)와 같은 R, G1, G2, B의 4채널을 포함하는 3*3 블록(1410)에서 G1 채널을 참조 채널로 지정할 수 있다. 전자 장치(400)(예: 도 1의 프로세서(120), 또는 도 4의 프로세서(410))는 G1 채널에 대응된 픽셀들(G11, G13, G17, G19)의 각각 픽셀값들을 압축 및 복원하여 (b)와 같이 G1 채널에 대응된 복원 픽셀값들(G11', G13', G17', G19')을 획득할 수 있고, G1 채널(참조 채널)이 아닌 목표 채널(R 채널, G2 채널, 또는 B 채널)에 대응된 픽셀들(R2, B4, G25, B6, R8) 각각에 대응된 보간값들을 획득하여 보간할 수 있다. 예를 들면, 전자 장치(400)(예: 도 1의 프로세서(120), 또는 도 4의 프로세서(410))는 (G11'+ G13')/2= G12'와 같이 R2 픽셀에 대한 보간값(G12')을 획득하여 R2 픽셀을 보간(1411)할 수 있다.Referring to FIG. 14, the electronic device 400 (eg, the processor 120 of FIG. 1 or the processor 410 of FIG. 4) includes four channels of R, G1, G2, and B as shown in FIG. In the 3 * 3 block 1410, the G1 channel may be designated as the reference channel. The electronic device 400 (eg, the processor 120 of FIG. 1 or the processor 410 of FIG. 4) compresses and decompresses respective pixel values of the pixels G11, G13, G17, and G19 corresponding to the G1 channel. As shown in (b), the reconstructed pixel values G11 ', G13', G17 ', and G19' corresponding to the G1 channel can be obtained, and the target channel (R channel, G2 channel), not the G1 channel (reference channel), can be obtained. Or interpolation values corresponding to each of the pixels R2, B4, G25, B6, and R8 corresponding to the B channel may be obtained and interpolated. For example, the electronic device 400 (eg, the processor 120 of FIG. 1, or the processor 410 of FIG. 4) may have an interpolation value for an R2 pixel such as (G11 ′ + G13 ′) / 2 = G12 ′. (G12 ') may be obtained to interpolate 1411 the R2 pixel.

전자 장치(400)(예: 도 1의 프로세서(120), 또는 도 4의 프로세서(410))는 목표 채널(R 채널, G2 채널, 또는 B 채널)에 대응된 픽셀들(R2, B4, G25, B6, R8) 각각에 대응된 보간값들(G12', G14', G15', G16', G18')을 획득하여 보간한 후, (c)와 같이 R2, B4, G25, B6, R8 픽셀들에 대응된 보간값들 G12', G14', G15', G16', G18'각각에 변환 계수를 적용하여 R2, B4, G25, B6, R8 픽셀들 각각에 대응된 복원 픽셀값들(R2', B4', G25', B6', R8')을 획득(1412)할 수 있다. 예를 들면, 전자 장치(400)(예: 도 1의 프로세서(120), 또는 도 4의 프로세서(410))는 R2'= α G12'+ β와 같이 R2 픽셀에 대한 보간값(G12')에 변환 계수 α, β를 적용하여 R2 픽셀에 대응된 복원 픽셀값(R2')를 획득할 수 있다.The electronic device 400 (eg, the processor 120 of FIG. 1 or the processor 410 of FIG. 4) may include pixels R2, B4, and G25 corresponding to a target channel (R channel, G2 channel, or B channel). And interpolation values G12 ', G14', G15 ', G16', and G18 'corresponding to each of the B6 and R8 pixels, and then interpolate the pixels R2, B4, G25, B6, and R8 as shown in (c). Reconstructed pixel values R2 'corresponding to each of the pixels R2, B4, G25, B6, and R8 by applying a transform coefficient to the interpolation values G12', G14 ', G15', G16 ', and G18' corresponding to the respective pixels. , B4 ', G25', B6 ', and R8') may be acquired (1412). For example, the electronic device 400 (eg, the processor 120 of FIG. 1, or the processor 410 of FIG. 4) may have an interpolation value G12 ′ for an R2 pixel such as R2 ′ = α G12 ′ + β. The reconstructed pixel value R2 'corresponding to the R2 pixel may be obtained by applying the transform coefficients α and β to.

도 15는 다양한 실시예에 따른 제1 블록의 인접 픽셀들에서 변환 계수를 유도하는 예를 설명하기 위한 도면이다.  FIG. 15 is a diagram for describing an example of deriving a transform coefficient from adjacent pixels of a first block, according to various embodiments.

도 15를 참조하면, 다양한 실시예에 따른 인접 픽셀들(1510)은 제1 블록 이전에 압축 처리된 인접 픽셀들 또는 인접 블록(이하 '인접 블록'을 예를 들어 설명함)일 수 있다. 예를 들면, 도 15에서는 인접 블록(1510)이 R, G1, G2, B의 4채널을 포함하며, G1 채널이 참조 채널로 지정된 경우를 도시하고 있다.Referring to FIG. 15, adjacent pixels 1510 according to various embodiments of the present disclosure may be adjacent pixels that are compressed before a first block or adjacent blocks (hereinafter, an 'adjacent block' will be described as an example). For example, FIG. 15 illustrates a case where an adjacent block 1510 includes four channels of R, G1, G2, and B, and a G1 channel is designated as a reference channel.

전자 장치(400)(예: 도 1의 프로세서(120), 또는 도 4의 프로세서(410))는 제1 블록의 목표 채널이 R 채널인 경우 인접 블록(1510)의 R 채널에 대응된 픽셀들(R2, R4, R10, R112) 의 보간값들(보간 정보)(1511) 및 복원값들(복원 정보)(1512)을 이용하여 변환 계수를 획득할 수 있다. 예를 들면, 전자 장치(400)(예: 도 1의 프로세서(120), 또는 도 4의 프로세서(410))는 인접 블록(1510) 내의 G1 채널에 대응된 필셀들(예를 들면, G11, G13, G19, G111)의 복원 픽셀값들(G11', G13', G19', G111')으로 획득된 R 채널에 대응된 픽셀들(R2, R4, R10, R12) 의 보간값들(G12', G14', G110', G112')과 R 채널에 대응된 픽셀들(R2, R4, R10, R12) 의 압축 후 복원된 복원값들(R2', R4', R10', R112')을 상기 수학식 3에 대입하여 제1 블록의 목표 채널이 R 채널과 연관된 변환 계수를 하기 수학식 5 및 수학식 6과 같이 획득할 수 있다.The electronic device 400 (eg, the processor 120 of FIG. 1 or the processor 410 of FIG. 4) may include pixels corresponding to the R channel of the adjacent block 1510 when the target channel of the first block is the R channel. A transform coefficient may be obtained using interpolation values (interpolation information) 1511 and reconstruction values (restore information) 1512 of (R2, R4, R10, and R112). For example, the electronic device 400 (eg, the processor 120 of FIG. 1, or the processor 410 of FIG. 4) may include fill cells (eg, G11, corresponding to the G1 channel in the adjacent block 1510). Interpolation values G12 'of pixels R2, R4, R10, and R12 corresponding to the R channel obtained with the reconstructed pixel values G11', G13 ', G19', and G111 'of G13, G19, and G111. Reconstructed reconstructed values R2 ', R4', R10 ', and R112' after compression of the pixels R2, R4, R10, and R12 corresponding to the R channel. Substituting Equation 3, the target channel of the first block may obtain transform coefficients associated with the R channel as shown in Equations 5 and 6 below.

[수학식 5][Equation 5]

αR=[4(G12'* R2'+ G14'*R4'+ G110'*R10'+ G112'* R112')- (G12'+ G14'+ G110'+ G112')(R2'+ R4'+ R10'+ R112')]/[(G12'^2+ G14' ^2+ G110' ^2+ G112' ^2)-(G12'+ G14'+ G110'+ G112')^2]αR = [4 (G12 '* R2' + G14 '* R4' + G110 '* R10' + G112 '* R112')-(G12 '+ G14' + G110 '+ G112') (R2 '+ R4' + R10 '+ R112')] / [(G12 '^ 2 + G14' ^ 2 + G110 '^ 2 + G112' ^ 2)-(G12 '+ G14' + G110 '+ G112') ^ 2]

[수학식 6][Equation 6]

βR= 1/4(R2'+ R4'+ R10'+ R112')- αR(1/4(G12'+ G14'+ G110'+ G112'))βR = 1/4 (R2 '+ R4' + R10 '+ R112')-αR (1/4 (G12 '+ G14' + G110 '+ G112'))

본 문서에서 기술된 구성요소들 각각은 하나 또는 그 이상의 부품(component)으로 구성될 수 있으며, 해당 구성요소의 명칭은 전자 장치의 종류에 따라서 달라질 수 있다. 다양한 실시예에서, 전자 장치는 본 문서에서 기술된 구성요소 중 적어도 하나를 포함하여 구성될 수 있으며, 일부 구성요소가 생략되거나 또는 추가적인 다른 구성요소를 더 포함할 수 있다. 또한, 다양한 실시예에 따른 전자 장치의 구성요소들 중 일부가 결합되어 하나의 개체(entity)로 구성됨으로써, 결합되기 이전의 해당 구성요소들의 기능을 동일하게 수행할 수 있다.Each of the components described in this document may be composed of one or more components, and the names of the corresponding components may vary depending on the type of electronic device. In various embodiments, the electronic device may be configured to include at least one of the components described in this document, and some components may be omitted or further include additional components. In addition, some of the components of the electronic device according to various embodiments of the present disclosure may be combined to form a single entity, and thus may perform the same functions of the corresponding components before being combined.

본 문서에서 사용된 용어 "모듈"은, 예를 들면, 하드웨어, 소프트웨어 또는 펌웨어(firmware) 중 하나 또는 둘 이상의 조합을 포함하는 단위(unit)를 의미할 수 있다. "모듈"은, 예를 들면, 유닛(unit), 로직(logic), 논리 블록(logical block), 부품(component), 또는 회로(circuit) 등의 용어와 바꾸어 사용(interchangeably use)될 수 있다. "모듈"은, 일체로 구성된 부품의 최소 단위 또는 그 일부가 될 수 있다. "모듈"은 하나 또는 그 이상의 기능을 수행하는 최소 단위 또는 그 일부가 될 수도 있다. "모듈"은 기계적으로 또는 전자적으로 구현될 수 있다. 예를 들면,"모듈"은, 알려졌거나 앞으로 개발될, 어떤 동작들을 수행하는 ASIC(application-specific integrated circuit) 칩, FPGAs(field-programmable gate arrays) 또는 프로그램 가능 논리 장치(programmable-logic device) 중 적어도 하나를 포함할 수 있다. As used herein, the term “module” may refer to a unit that includes one or a combination of two or more of hardware, software, or firmware. A "module" may be interchangeably used with terms such as, for example, unit, logic, logical block, component, or circuit. The module may be a minimum unit or part of an integrally constructed part. The module may be a minimum unit or part of performing one or more functions. The "module" can be implemented mechanically or electronically. For example, a “module” is one of application-specific integrated circuit (ASIC) chips, field-programmable gate arrays (FPGAs), or programmable-logic devices that perform certain operations, known or developed in the future. It may include at least one.

다양한 실시예에 따른 장치(예: 모듈들 또는 그 기능들) 또는 방법(예: 동작들)의 적어도 일부는, 예컨대, 프로그램 모듈의 형태로 컴퓨터로 읽을 수 있는 저장매체(computer-readable storage media)에 저장된 명령어로 구현될 수 있다. 상기 명령어가 프로세서(예: 프로세서(120))에 의해 실행될 경우, 상기 하나 이상의 프로세서가 상기 명령어에 해당하는 기능을 수행할 수 있다. 컴퓨터로 읽을 수 있는 저장매체는, 예를 들면, 메모리(130)가 될 수 있다. At least a portion of an apparatus (e.g., modules or functions thereof) or method (e.g., operations) according to various embodiments may be, for example, computer-readable storage media in the form of a program module. It can be implemented as a command stored in. When the instruction is executed by a processor (eg, the processor 120), the one or more processors may perform a function corresponding to the instruction. The computer-readable storage medium may be the memory 130, for example.

다양한 실시 예에 따르면, 명령들을 저장하고 있는 저장 매체에 있어서, 상기 명령들은 적어도 하나의 회로에 의하여 실행될 때에 상기 적어도 하나의 회로로 하여금 적어도 하나의 동작을 수행하도록 설정된 것으로서, 상기 적어도 하나의 동작은, 카메라를 이용하여 획득된 원시 이미지(raw image)를 기반으로 제1 이미지를 획득하는 동작, 상기 제1 이미지 내의 제1 색상에 대응하는 적어도 하나 이상의 제 1 픽셀들과 연관된 제 1 복원 정보를 획득하는 동작, 상기 제 1 복원 정보를 이용하여 상기 제1 이미지 내의 제2 색상에 대응하는 적어도 하나 이상의 제 2 픽셀들에 대응하는 제1 보간 정보를 획득하는 동작, 상기 제1 이미지와 관련하여 생성된 적어도 하나의 복원 정보 및 적어도 하나의 보간 정보에 기반하여 생성된 변환 정보를 획득하는 동작, 상기 제1 복원 정보, 상기변환 정보, 및 상기 제1 보간 정보를 이용하여 상기 적어도 하나 이상의 제2 픽셀들에 대응하는 상기 제2 복원 정보를 획득하는 동작, 및 상기 제 1 복원 정보 및 상기 제 2 복원 정보를 이용하여 상기 제1 이미지에 대한 압축 데이터를 생성하는 동작, 통신 모듈을 이용하여 상기 압축 데이터를 전송하는 동작을 포함할 수 있다.According to various embodiments of the present disclosure, in a storage medium storing instructions, the instructions are configured to cause the at least one circuit to perform at least one operation when executed by the at least one circuit, wherein the at least one operation is Acquiring a first image based on a raw image acquired using a camera; acquiring first reconstruction information associated with at least one first pixel corresponding to a first color in the first image Acquiring first interpolation information corresponding to at least one or more second pixels corresponding to a second color in the first image by using the first reconstruction information, and generated in relation to the first image. Acquiring transform information generated based on at least one piece of restoration information and at least one interpolation information, and wherein Acquiring the second reconstruction information corresponding to the at least one or more second pixels by using first reconstruction information, the conversion information, and the first interpolation information, and the first reconstruction information and the second reconstruction information. Generating compressed data with respect to the first image by using; and transmitting the compressed data by using a communication module.

컴퓨터로 판독 가능한 기록 매체는, 하드디스크, 플로피디스크, 마그네틱 매체(magnetic media)(예: 자기테이프), 광기록 매체(optical media)(예: CD-ROM(compact disc read only memory), DVD(digital versatile disc), 자기-광 매체(magneto-optical media)(예: 플롭티컬 디스크(floptical disk)), 하드웨어 장치(예: ROM(read only memory), RAM(random access memory), 또는 플래시 메모리 등) 등을 포함할 수 있다. 또한, 프로그램 명령에는 컴파일러에 의해 만들어지는 것과 같은 기계어 코드뿐만 아니라 인터프리터 등을 사용해서 컴퓨터에 의해서 실행될 수 있는 고급 언어 코드를 포함할 수 있다. 상술한 하드웨어 장치는 다양한 실시예의 동작을 수행하기 위해 하나 이상의 소프트웨어 모듈로서 작동하도록 구성될 수 있으며, 그 역도 마찬가지다.Computer-readable recording media include hard disks, floppy disks, magnetic media (e.g. magnetic tape), optical media (e.g. compact disc read only memory), DVD ( digital versatile discs, magneto-optical media (e.g. floptical disks), hardware devices (e.g. read only memory, random access memory (RAM), or flash memory) In addition, the program instructions may include not only machine code generated by a compiler, but also high-level language code executable by a computer using an interpreter, etc. The hardware device described above may be various. It can be configured to operate as one or more software modules to perform the operations of the embodiments, and vice versa.

다양한 실시예에 따른 모듈 또는 프로그램 모듈은 전술한 구성요소들 중 적어도 하나 이상을 포함하거나, 일부가 생략되거나, 또는 추가적인 다른 구성요소를 더 포함할 수 있다. 다양한 실시예에 따른 모듈, 프로그램 모듈 또는 다른 구성요소에 의해 수행되는 동작들은 순차적, 병렬적, 반복적 또는 휴리스틱(heuristic)한 방법으로 실행될 수 있다. 또한, 일부 동작은 다른 순서로 실행되거나, 생략되거나, 또는 다른 동작이 추가될 수 있다. Modules or program modules according to various embodiments may include at least one or more of the above components, some may be omitted, or further include other components. Operations performed by modules, program modules, or other components in accordance with various embodiments may be executed in a sequential, parallel, repetitive, or heuristic manner. In addition, some operations may be executed in a different order, may be omitted, or other operations may be added.

이상에서 설명한 본 발명의 다양한 실시예의 전자 장치는 전술한 실시 예 및 도면에 의해 한정되는 것은 아니고, 본 발명의 기술적 범위 내에서 여러 가지 치환, 변형 및 변경이 가능함은 본 발명이 속하는 기술분야에서 통상의 지식을 가진 자에게 있어 명백할 것이다.The electronic device according to various embodiments of the present disclosure described above is not limited to the above-described embodiments and drawings, and various substitutions, modifications, and changes within the technical scope of the present disclosure are possible in the art. It will be evident to those who have knowledge of.

Claims (20)

전자 장치에 있어서,
카메라;
통신 모듈;
메모리; 및
프로세서를 포함하고, 상기 프로세서는,
상기 카메라를 이용하여 획득된 원시 이미지(raw image)를 기반으로 제1 이미지를 획득하고,
상기 제1 이미지 내의 제1 색상에 대응하는 적어도 하나 이상의 제 1 픽셀들과 연관된 제 1 복원 정보를 획득하고,
상기 제 1 복원 정보를 이용하여 상기 제1 이미지 내의 제2 색상에 대응하는 적어도 하나 이상의 제 2 픽셀들에 대응하는 제1 보간 정보를 획득하고,
상기 제1 이미지와 관련하여 생성된 적어도 하나의 복원 정보 및 적어도 하나의 보간 정보에 기반하여 생성된 변환 정보를 획득하고,
상기 제 1 복원 정보, 상기 변환 정보, 및 상기 제1 보간 정보를 이용하여 상기 적어도 하나 이상의 제2 픽셀들에 대응하는 상기 제2 복원 정보를 생성하고,
상기 제 1 복원 정보 및 상기 제 2 복원 정보를 이용하여, 상기 제1 이미지에 대한 압축 데이터를 생성하고, 및
상기 통신 모듈을 이용하여, 상기 압축 데이터를 외부 장치로 전송하도록 설정된 전자 장치.
In an electronic device,
camera;
Communication module;
Memory; And
A processor, wherein the processor,
Acquire a first image based on the raw image obtained by using the camera,
Obtain first reconstruction information associated with at least one first pixel corresponding to a first color in the first image,
Acquire first interpolation information corresponding to at least one or more second pixels corresponding to a second color in the first image by using the first reconstruction information,
Obtaining transform information generated based on at least one piece of reconstruction information and at least one interpolation information generated in relation to the first image,
Generating the second reconstruction information corresponding to the at least one or more second pixels using the first reconstruction information, the conversion information, and the first interpolation information,
Generating compressed data for the first image using the first decompression information and the second decompression information, and
The electronic device is configured to transmit the compressed data to an external device using the communication module.
제1항에 있어서,
상기 제1 복원 정보는 상기 제1 이미지 내의 상기 제1 색상에 대응하는 상기 적어도 하나 이상의 제 1 픽셀들을 압축하고 압축된 제1 픽셀들 값을 복원하여 획득된 적어도 하나 이상의 제1 픽셀들 복원값을 포함하는 전자 장치.
The method of claim 1,
The first reconstruction information may be configured to compress at least one or more first pixels corresponding to the first color in the first image and to restore at least one first pixels reconstruction value obtained by reconstructing a compressed first pixels value. Electronic device comprising.
제1항에 있어서,
상기 원시 이미지는 베이어 패턴 이미지(bayer pattern image)를 포함하는 전자 장치.
The method of claim 1,
The raw image includes a bayer pattern image.
제1항에 있어서,
상기 프로세서는 상기 제1 이미지를 복수의 블록들로 구분하고, 상기 복수의 블록들 중 제1 블록의 복원 정보 및 보간 정보를 획득하여 상기 제1 블록의 복원 정보를 상기 제1 블록의 상기 보간 정보로 변환하기 위한 제1 변환 정보를 획득하도록 설정된 전자 장치.
The method of claim 1,
The processor divides the first image into a plurality of blocks, obtains reconstruction information and interpolation information of a first block among the plurality of blocks, and restores the reconstruction information of the first block to the interpolation information of the first block. And electronic device configured to obtain first conversion information for converting to.
제1항에 있어서,
상기 프로세서는 상기 복수의 블록들 각각에 대한 복수의 변환 정보를 획득하고, 복수의 변환 정보들 중 하나의 변환 정보를 선택하도록 설정된 전자 장치.
The method of claim 1,
The processor is configured to obtain a plurality of transformation information for each of the plurality of blocks, and to select one of the plurality of transformation information.
제5항에 있어서,
상기 프로세서는 상기 복수의 블록들 중 상기 제1 블록의 상기 제1 색상과 연관된 제1채널에 대응하는 적어도 하나 이상의 제1 픽셀들에 대응하는 제1채널 복원 정보를 획득하고,
상기 제1 채널 복원 정보에 적어도 기반하여 상기 제1 블록의 제2 색상과 연관된 제2 채널에 대응하는 적어도 하나 이상의 제2 픽셀들에 대응하는 제2 채널 보간 정보를 획득하고,
상기 복수의 블록들 중 적어도 하나의 블록과 관련하여 생성된 적어도 하나의 복원 정보 및 적어도 하나의 보간 정보에 기반하여 제1 변환 정보를 획득하고,
상기 제1 채널 복원 정보, 제1 변환 정보, 및 상기 제2 채널 보간 정보를 이용하여 제2 채널에 대응하는 적어도 하나 이상의 제2 픽셀들에 대응하는 상기 제2채널 복원 정보를 획득하고,
상기 제1 채널 복원 정보와 상기 제2 채널 복원 정보를 이용하여 상기 제1 블록에 대한 제1 압축 데이터를 생성하도록 설정된 전자 장치.
The method of claim 5,
The processor acquires first channel reconstruction information corresponding to at least one or more first pixels corresponding to a first channel associated with the first color of the first block among the plurality of blocks,
Obtain second channel interpolation information corresponding to at least one or more second pixels corresponding to a second channel associated with a second color of the first block based at least on the first channel reconstruction information,
Obtain first transformation information based on at least one piece of reconstruction information and at least one interpolation information generated in association with at least one block of the plurality of blocks,
Acquire the second channel reconstruction information corresponding to at least one or more second pixels corresponding to a second channel by using the first channel reconstruction information, first conversion information, and the second channel interpolation information,
And generate first compressed data for the first block by using the first channel reconstruction information and the second channel reconstruction information.
제6항에 있어서,
상기 복수의 블록들은 상기 제1 블록과 인접한 적어도 하나 이상의 제2 블록을 포함하고,
상기 프로세서는 상기 적어도 하나 이상의 제2 블록 각각의 제2 채널 보간 정보 및 제2 채널 복원 정보를 기반으로 상기 적어도 하나 이상의 제2 블록 각각에 대한 적어도 하나 이상의 제2 변환 정보를 생성하고, 상기 적어도 하나 이상의 제2 변환 정보를 이용하여 상기 제1 변환 정보를 획득하도록 설정된 전자 장치.
The method of claim 6,
The plurality of blocks includes at least one second block adjacent to the first block,
The processor generates at least one or more second transformation information for each of the at least one or more second blocks based on the second channel interpolation information and the second channel reconstruction information of each of the at least one or more second blocks, and the at least one The electronic device configured to obtain the first transformation information by using the second transformation information.
제7항에 있어서,
상기 적어도 하나 이상의 제2 변환 정보가 복수개인 경우 복수의 제2 변환 정보 중 하나를 상기 제1 변환 정보로 선택하도록 설정된 전자 장치.
The method of claim 7, wherein
The electronic device is configured to select one of a plurality of second conversion information as the first conversion information when the at least one second conversion information is plural.
제7항에 있어서,
상기 적어도 하나 이상의 제2 블록은 상기 제1 블록과 인접한 복수의 픽셀들을 포함하는 전자 장치.
The method of claim 7, wherein
The at least one second block includes a plurality of pixels adjacent to the first block.
전자 장치에서 카메라를 이용하여 획득한 이미지에 대한 복원 정보를 이용하여 압축하는 방법에 있어서,
상기 카메라를 이용하여 획득된 원시 이미지(raw image)를 기반으로 제1 이미지를 획득하는 동작;
상기 제1 이미지 내의 제1 색상에 대응하는 적어도 하나 이상의 제 1 픽셀들과 연관된 제 1 복원 정보를 획득하는 동작;
상기 제 1 복원 정보를 이용하여 상기 제1 이미지 내의 제2 색상에 대응하는 적어도 하나 이상의 제 2 픽셀들에 대응하는 제1 보간 정보를 획득하는 동작;
상기 제1 이미지와 관련하여 생성된 적어도 하나의 복원 정보 및 적어도 하나의 보간 정보에 기반하여 생성된변환 정보를 획득하는 동작;
상기 제1 복원 정보, 상기 변환 정보, 및 상기 제1 보간 정보를 이용하여 상기 적어도 하나 이상의 제2 픽셀들에 대응하는 상기 제2 복원 정보를 생성하는 동작; 및
상기 제 1 복원 정보 및 상기 제 2 복원 정보를 이용하여 상기 제1 이미지에 대한 압축 데이터를 생성하는 동작을 포함하는 방법.
A method of compressing by using reconstruction information on an image obtained by using a camera in an electronic device,
Acquiring a first image based on a raw image obtained using the camera;
Obtaining first reconstruction information associated with at least one or more first pixels corresponding to a first color in the first image;
Obtaining first interpolation information corresponding to at least one or more second pixels corresponding to a second color in the first image by using the first reconstruction information;
Acquiring transform information generated based on at least one piece of reconstruction information and at least one interpolation information generated in relation to the first image;
Generating the second reconstruction information corresponding to the at least one or more second pixels using the first reconstruction information, the conversion information, and the first interpolation information; And
Generating compressed data for the first image using the first reconstruction information and the second reconstruction information.
제10항에 있어서,
통신 모듈을 이용하여, 상기 압축 데이터를 외부 장치로 전송하는 동작을 더 포함하는 방법.
The method of claim 10,
Transmitting the compressed data to an external device using a communication module.
제10항에 있어서,
상기 제1 복원 정보는 상기 제1 이미지 내의 상기 제1 색상에 대응하는 상기 적어도 하나 이상의 제 1 픽셀들을 압축하고 압축된 제1 픽셀들 값을 복원하여 획득된 적어도 하나 이상의 제1 픽셀들의 복원값을 포함하는 방법.
The method of claim 10,
The first reconstruction information may be configured to reconstruct the at least one first pixels obtained by compressing the at least one first pixels corresponding to the first color in the first image and reconstructing the compressed first pixels values. How to include.
제10항에 있어서,
상기 원시 이미지는 베이어 패턴 이미지(bayer pattern image)를 포함하는 방법.
The method of claim 10,
The raw image comprises a Bayer pattern image.
제10항에 있어서,
상기 변환 정보를 획득하는 동작은,
상기 제1 이미지의 복수의 블록들 중 제1 블록의 복원 정보 및 보간 정보를 획득하는 동작,
상기 제1 블록의 복원 정보를 상기 제1 블록의 상기 보간 정보로 변환하기 위한 제1 변환 정보를 생성하는 동작을 포함하는 방법.
The method of claim 10,
Acquiring the conversion information,
Obtaining reconstruction information and interpolation information of a first block among a plurality of blocks of the first image,
Generating first conversion information for converting restoration information of the first block into the interpolation information of the first block.
제10항에 있어서,
상기 변환 정보를 획득하는 동작은,
상기 제1 이미지의 복수의 블록들 각각에 대한 복수의 변환 정보를 생성하고, 복수의 변환 정보들 중 하나의 변환 정보를 선택하는 동작을 포함하는 방법.
The method of claim 10,
Acquiring the conversion information,
Generating a plurality of transform information for each of the plurality of blocks of the first image, and selecting one of the plurality of transform information.
제10항에 있어서,
상기 제1 이미지의 복수의 블록들 중 제1 블록의 상기 제1 색상과 연관된 제1 채널에 대응하는 적어도 하나 이상의 제1 픽셀들에 대응하는 제1 채널 복원 정보를 획득하는 동작,
상기 제1 채널 복원 정보에 적어도 기반하여 상기 제1 블록의 제2 색상과 연관된 제2 채널에 대응하는 적어도 하나 이상의 제2 픽셀들에 대응하는 제2 채널 보간 정보를 획득하는 동작,
상기 복수의 블록들 중 적어도 하나의 블록과 관련하여 생성된 적어도 하나의 복원 정보 및 적어도 하나의 보간 정보에 기반하여 제1 변환 정보를 획득하는 동작,
상기 제1 채널 복원 정보, 제1 변환 정보 및, 상기 제2 채널 보간 정보를 이용하여 제2 채널에 대응하는 적어도 하나 이상의 제2 픽셀들에 대응하는 제2 채널 복원 정보를 획득하는 동작,
상기 제1 채널 복원 정보와 상기 제2 채널 복원 정보를 이용하여 상기 제1 블록에 대한 제1 압축 데이터를 생성하는 동작을 포함하는 방법.
The method of claim 10,
Obtaining first channel reconstruction information corresponding to at least one first pixel corresponding to a first channel associated with the first color of a first block of the plurality of blocks of the first image;
Obtaining second channel interpolation information corresponding to at least one or more second pixels corresponding to a second channel associated with a second color of the first block based at least on the first channel reconstruction information;
Obtaining first transformation information based on at least one piece of reconstruction information and at least one interpolation information generated in association with at least one block of the plurality of blocks,
Acquiring second channel reconstruction information corresponding to at least one or more second pixels corresponding to a second channel by using the first channel reconstruction information, the first conversion information, and the second channel interpolation information;
Generating first compressed data for the first block using the first channel reconstruction information and the second channel reconstruction information.
제16항에 있어서,
상기 복수의 블록들은 상기 제1 블록과 인접한 적어도 하나 이상의 제2 블록을 포함하고,
상기 제1 변환 정보를 획득하는 동작은,
상기 적어도 하나 이상의 제2 블록 각각의 제2 채널 보간 정보 및 제2 채널 복원 정보를 기반으로 상기 적어도 하나 이상의 제2 블록 각각에 대한 적어도 하나 이상의 제2 변환 정보를 획득하는 동작, 및
상기 적어도 하나 이상의 제2 변환 정보를 이용하여 상기 제1 변환 정보를 획득하는 동작을 포함하는 방법.
The method of claim 16,
The plurality of blocks includes at least one second block adjacent to the first block,
Obtaining the first conversion information,
Obtaining at least one or more second transform information for each of the at least one or more second blocks based on second channel interpolation information and second channel recovery information of each of the at least one or more second blocks, and
Acquiring the first transformation information by using the at least one second transformation information.
제17항에 있어서,
상기 적어도 하나 이상의 제2 채널 변환 정보가 복수개인 경우 복수의 제2 변환 정보 중 하나를 상기 제1 채널 변환 정보로 선택하도록 설정된 방법.
The method of claim 17,
And selecting one of a plurality of second conversion information as the first channel conversion information when the at least one second channel conversion information is plural.
제17항에 있어서,
상기 적어도 하나 이상의 제2 블록은 상기 제1 블록과 인접한 복수의 픽셀들을 포함하는 방법.
The method of claim 17,
And the at least one second block comprises a plurality of pixels adjacent to the first block.
전자 장치에 있어서,
이미지 센서;
상기 이미지 센서와 전기적으로 연결된 제어 회로; 및
상기 제어 회로와 지정된 인터페이스로 연결된 프로세서를 포함하고,
상기 제어 회로는,
상기 이미지 센서를 이용하여 획득된 원시 이미지(raw image)를 기반으로 제1 이미지를 획득하고,
상기 제1 이미지 내의 제1 색상에 대응하는 적어도 하나 이상의 제 1 픽셀들과 연관된 제 1 복원 정보를 획득하고,
상기 제 1 복원 정보를 이용하여 상기 제1 이미지 내의 제2 색상에 대응하는 적어도 하나 이상의 제 2 픽셀들에 대응하는 제1 보간 정보를 획득하고,
상기 제1 이미지와 관련하여 생성된 적어도 하나의 복원 정보 및 적어도 하나의 보간 정보에 기반하여 생성된 변환 정보를 획득하고,
상기 제 1 복원 정보, 상기 변환 정보, 및 상기 제1 보간 정보를 이용하여 상기 적어도 하나 이상의 제2 픽셀들에 대응하는 상기 제2 복원 정보를 생성하고,
상기 제 1 복원 정보 및 상기 제 2 복원 정보를 이용하여, 상기 제1 이미지에 대한 압축 데이터를 생성하고, 및
상기 압축 데이터를 상기 프로세서로 전달하도록 설정된 전자 장치.
In an electronic device,
An image sensor;
A control circuit electrically connected to the image sensor; And
A processor coupled to a specified interface with the control circuit,
The control circuit,
Acquire a first image based on the raw image acquired using the image sensor,
Obtain first reconstruction information associated with at least one first pixel corresponding to a first color in the first image,
Acquire first interpolation information corresponding to at least one or more second pixels corresponding to a second color in the first image by using the first reconstruction information,
Obtaining transform information generated based on at least one piece of reconstruction information and at least one interpolation information generated in relation to the first image,
Generating the second reconstruction information corresponding to the at least one or more second pixels using the first reconstruction information, the conversion information, and the first interpolation information,
Generating compressed data for the first image using the first decompression information and the second decompression information, and
The electronic device configured to deliver the compressed data to the processor.
KR1020180030401A 2018-03-15 2018-03-15 Electronic device and method for processing compression using restored information of image acquired by using camera KR20190108833A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
KR1020180030401A KR20190108833A (en) 2018-03-15 2018-03-15 Electronic device and method for processing compression using restored information of image acquired by using camera
PCT/KR2019/002901 WO2019177368A1 (en) 2018-03-15 2019-03-13 Electronic device and method for compressing image obtained using camera, by using reconstruction information of same image

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020180030401A KR20190108833A (en) 2018-03-15 2018-03-15 Electronic device and method for processing compression using restored information of image acquired by using camera

Publications (1)

Publication Number Publication Date
KR20190108833A true KR20190108833A (en) 2019-09-25

Family

ID=67907921

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020180030401A KR20190108833A (en) 2018-03-15 2018-03-15 Electronic device and method for processing compression using restored information of image acquired by using camera

Country Status (2)

Country Link
KR (1) KR20190108833A (en)
WO (1) WO2019177368A1 (en)

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7072508B2 (en) * 2001-01-10 2006-07-04 Xerox Corporation Document optimized reconstruction of color filter array images
KR100580369B1 (en) * 2004-06-01 2006-05-15 학교법인연세대학교 Methods and apparatus for encoding/decoding color images
KR100932217B1 (en) * 2007-08-09 2009-12-16 연세대학교 산학협력단 Color interpolation method and device
KR101310076B1 (en) * 2011-11-16 2013-09-24 한양대학교 에리카산학협력단 Apparatus and method for restoration color image
KR102138329B1 (en) * 2014-02-04 2020-07-27 한화테크윈 주식회사 System for monitoring image

Also Published As

Publication number Publication date
WO2019177368A1 (en) 2019-09-19

Similar Documents

Publication Publication Date Title
KR102495753B1 (en) Method and electronic device for processing raw image acquired by using camera by using external electronic device
KR102495763B1 (en) Electronic device and method for correcting images corrected by a first image processing mode in external electronic device using a second image processing mode
KR102386385B1 (en) Electronic device and method for compressing image thereof
US11107198B2 (en) Method and apparatus for incorporating noise pattern into image on which bokeh processing has been performed
KR102397924B1 (en) Electronic device and method for correcting images based on image feature information and image correction scheme
KR20200113522A (en) Method for performing fucntion according to gesture input and electronic device performing thereof
US20230410268A1 (en) Method for providing image, and electronic device supporting same
US11308593B2 (en) Electronic device for generating composite image and method thereof
US11425300B2 (en) Electronic device and method for processing image by electronic device
US11240457B2 (en) Method for transmitting image data and data associated with control of image capture, on basis of size of image data and size of data associated with control of image capture, and electronic device supporting same
KR102499187B1 (en) Electronic device for compression processing image acquired by using camera and method for operating thefeof
KR20190105729A (en) Apparatus and method for processing an image of electronic device
KR20190108833A (en) Electronic device and method for processing compression using restored information of image acquired by using camera
CN115516494A (en) Method for generating image and electronic device thereof
KR102499286B1 (en) Electronic device for compressing image based on compression loss data associated with compression of a plurality of blocks into which image has been segmented and method for operating thefeof
US11477443B2 (en) Electronic device for performing image compression and operating method of electronic device
KR102553150B1 (en) Electronic device for processing image with external electronic device acquired and method for operating thefeof
US11323654B2 (en) Electronic device and method capable of compressing image on basis of attributes of image data
KR102471978B1 (en) Apparatus for supporting image data compression by correcting error data and method thereof
KR20240056374A (en) Electronic apparatus and operating method for obtaining multi-exposed image

Legal Events

Date Code Title Description
E902 Notification of reason for refusal
AMND Amendment
E601 Decision to refuse application
X091 Application refused [patent]
AMND Amendment
X701 Decision to grant (after re-examination)