KR100617659B1 - Digital camera device and out-focus processing method - Google Patents
Digital camera device and out-focus processing method Download PDFInfo
- Publication number
- KR100617659B1 KR100617659B1 KR1020040101887A KR20040101887A KR100617659B1 KR 100617659 B1 KR100617659 B1 KR 100617659B1 KR 1020040101887 A KR1020040101887 A KR 1020040101887A KR 20040101887 A KR20040101887 A KR 20040101887A KR 100617659 B1 KR100617659 B1 KR 100617659B1
- Authority
- KR
- South Korea
- Prior art keywords
- image
- distance information
- subject
- distance
- background
- Prior art date
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N5/00—Details of television systems
- H04N5/222—Studio circuitry; Studio devices; Studio equipment
- H04N5/262—Studio circuits, e.g. for mixing, switching-over, change of character of image, other special effects ; Cameras specially adapted for the electronic generation of special effects
- H04N5/2621—Cameras specially adapted for the electronic generation of special effects during image pickup, e.g. digital cameras, camcorders, video cameras having integrated special effects capability
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01C—MEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
- G01C3/00—Measuring distances in line of sight; Optical rangefinders
- G01C3/02—Details
- G01C3/06—Use of electric means to obtain final indication
- G01C3/08—Use of electric radiation detectors
- G01C3/085—Use of electric radiation detectors with electronic parallax measurement
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/10—Image acquisition modality
- G06T2207/10004—Still image; Photographic image
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/10—Image acquisition modality
- G06T2207/10028—Range image; Depth image; 3D point clouds
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/10—Image acquisition modality
- G06T2207/10141—Special mode during image acquisition
- G06T2207/10148—Varying focus
Landscapes
- Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Electromagnetism (AREA)
- General Physics & Mathematics (AREA)
- Radar, Positioning & Navigation (AREA)
- Remote Sensing (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Studio Devices (AREA)
Abstract
본 발명은 디지털 카메라 기기상에서 착란원을 조정함으로써 배경 흐림 효과를 구현한 것으로서, 본 발명에 의한 디지털 카메라 기기는 하나의 이미지 써클을 형성하는 주피사체 및 배경피사체와의 거리를 측정하여 소정의 화소에 대하여 거리정보를 가지는 영상을 구성하는 영상거리측정모듈; 사용자로부터 촬영파라미터를 설정받는 심도설정모듈; 상기 거리정보에 의하여 상기 주피사체 및 상기 배경피사체 사이의 거리정보를 계산하는 거리계산모듈; 상기 거리정보, 상기 피사체간 거리정보 및 상기 촬영파라미터에 의하여 착란원의 크기를 계산하는 심도계산모듈; 및 상기 착란원의 크기에 따라 상기 배경피사체를 아웃포커싱처리하는 이미지편집모듈을 포함하는 것을 특징으로 한다.The present invention implements a background blur effect by adjusting a confusion circle on a digital camera device. The digital camera device according to the present invention measures a distance between a main subject and a background subject forming one image circle, and measures a distance to a predetermined pixel. An image distance measurement module constituting an image having distance information with respect to the image; A depth setting module configured to receive photographing parameters from a user; A distance calculation module for calculating distance information between the main subject and the background subject based on the distance information; A depth calculation module for calculating a size of a confusion circle based on the distance information, the distance information between subjects, and the photographing parameter; And an image editing module for outfocusing the background subject according to the size of the confusion circle.
본 발명에 의하면, 제한적 구성을 가지는 디지털 카메라 기기상에서 고비용을 들여 하드웨어적 구성을 개선할 필요없이 소프트웨어적으로 처리함으로써 배경 흐림 효과를 가지는 영상을 촬영할 수 있는 효과가 있고, 삼차원 거리 정보가 포함된 영상을 통하여 각각의 거리 차이를 계산하고 이에 사용자가 원하는 심도를 반영하여 착란원의 사이즈를 다양한 영상처리를 통하여 조정함으로써 주피사체 및 배경피사체간의 아웃포커싱 효과를 효율적으로 제공할 수 있는 효과가 있다.According to the present invention, an image having a background blur effect can be photographed by processing in software on a digital camera device having a limited configuration without having to improve hardware configuration at a high cost, and an image including three-dimensional distance information. Through calculating the distance difference and reflecting the depth desired by the user to adjust the size of the confusion circle through a variety of image processing has the effect that can effectively provide the out-focusing effect between the main subject and the background subject.
Description
도 1은 본 발명에 의한 디지털 카메라 기기의 내부 구성을 개략적으로 도시한 블록도.1 is a block diagram schematically showing an internal configuration of a digital camera device according to the present invention.
도 2는 본 발명에 의한 디지털 카메라 기기가 거리정보, 피사체간 거리정보 및 촬영파라미터에 의하여 계산한 착란원의 크기들을 도시한 그래프.Figure 2 is a graph showing the size of the confusion circle calculated by the digital camera device according to the present invention distance information, distance information between subjects and shooting parameters.
도 3은 본 발명에 의한 디지털 카메라 기기가 아웃포커싱을 표현하기 위하여 수행하는 공간 마스킹 및 영상처리함수를 예시한 도면.3 is a diagram illustrating a spatial masking and image processing function performed by a digital camera device according to the present invention to express out-focusing.
도 4는 본 발명의 실시예에 따른 아웃포커싱 처리 방법을 도시한 흐름도.4 is a flowchart illustrating an outfocusing processing method according to an embodiment of the present invention.
〈도면의 주요 부분에 대한 부호의 설명〉<Explanation of symbols for main parts of drawing>
100: 디지털 카메라 기기 112: 렌즈100: digital camera device 112: lens
114: CCD 116: DSP114: CCD 116: DSP
120: 영상거리측정모듈 122; 거리센서120: image
130: 심도설정모듈 140: 거리계산모듈130: depth setting module 140: distance calculation module
150: 심도계산모듈 160: 저장수단150: depth calculation module 160: storage means
170: 이미지편집모듈170: image editing module
본 발명은 디지털 카메라 기기 및 아웃포커싱 처리 방법에 관한 것이다.The present invention relates to a digital camera device and an outfocusing processing method.
현재, 대중화되고 있는 디지털 카메라, 카메라폰, 스마트폰 등의 촬영 장비는 다양한 디지털 소자를 구비하여 디지털화된 데이터를 처리함으로써 아날로그 촬영 장비와는 차별화되는 기능들을 제공하고 있다.At present, popularized photographing equipment such as a digital camera, a camera phone, a smartphone, and the like are provided with various digital elements to provide functions that are differentiated from analog photographing equipment by processing digitized data.
가령, 대용량 메모리를 구비함으로써 기존의 필름과는 비교가 어려울 정도의 많은 영상을 저장할 수 있게 되었고, CCD(Charge Coupled Device; 전하결합소자)는 필름을 대체하여 고화소의 영상을 구성함으로써 PC(Personal Computer)와 영상 데이터를 공유하고 영상 처리에 있어서 편의를 제공하고 있다.For example, by having a large-capacity memory, it is possible to store a large amount of images that are difficult to compare with conventional films, and CCD (Charge Coupled Device) is a PC (Personal Computer) by replacing the film to form a high-pixel image ) And share image data and provide convenience in image processing.
또한, 셔터스피드 및 조리개 수치의 자동 제어 기능, 자동 초점(Auto focus) 기능, 영상 향상 기능, 광량의 자동 조절 기능 등 아날로그 촬영장비보다 많은 기능을 제공하고 있다.In addition, it provides more functions than analog photographing equipment such as automatic control of shutter speed and aperture value, auto focus function, image enhancement function, and automatic adjustment of light quantity.
그러나, 아날로그 촬영장비는 자연적인 광학 재료가 구비되고 수동으로 작동되므로 전문가에 의하여 섬세한 작업이 이루어질 경우 디지털 카메라 기기보다 선호되는 경향이 있다.However, analog imaging equipment is equipped with natural optical materials and is operated manually, and thus tends to be preferred to digital camera equipment when delicate work is performed by a professional.
이러한 단점을 보완하기 위하여 최근에 출시되는 디지털 카메라 기기에는 디지털 장치의 장점과 아울러 종래의 아날로그 카메라의 고유한 기능도 구현되고 있는 추세이다. 즉, 디지털 장치의 한계를 뛰어넘어 점차 아날로그 장치만이 가지는 장점을 취합하고 다양하고 전문화된 기능을 제공하고 있는 것이다.In order to compensate for these drawbacks, recently released digital camera devices tend to implement not only the advantages of digital devices but also unique functions of conventional analog cameras. In other words, beyond the limits of digital devices, the advantages of analog devices are gradually gathered and various and specialized functions are provided.
또한, 디지털 카메라 기기의 보급화로 인하여 사진 촬영의 취미를 가진 인구가 점차 늘어나고 있으며, 따라서 전문가적인 촬영 기술을 습득한 사용자들도 많아지게 되었다. In addition, due to the widespread use of digital camera devices, the population with a hobby of photography is gradually increasing, and thus, many users have acquired professional shooting techniques.
그러나, 이러한 디지털 카메라 기기는 아직 전문화된 사용자의 요구에 부족한 면을 상당 부분 가지고 있다.However, these digital camera devices still have a large part lacking in the needs of specialized users.
예를 들면, 인물 사진을 촬영하는 경우 대부분 아웃포커싱(Out of focus; 배경 흐림) 효과를 이용하게 되는데, 종래의 보급형 디지털 카메라, 카메라폰과 같은 디지털 카메라 기기를 사용하면 제한된 사이즈의 렌즈 및 CCD로 인하여 그 효과의 표현이 거의 불가능하다고 볼 수 있다.For example, when taking portraits, most people use the Out of Focus (Background Blur) effect. When using digital camera devices such as conventional low-end digital cameras and camera phones, limited-size lenses and CCDs are used. Because of this, the expression of the effect is almost impossible.
일반적으로, 아웃포커싱 효과는 착란원(피사체 영상의 한 점이 렌즈를 통하여 상을 맺었을 때 점이라고 볼 수 있는 크기부터 소정 지름을 가지는 원형점으로 맺히는데, 그 지름이 커지게 되면 사람의 눈에는 흐릿하게 인지된다. 이때의 지름을 가지는 원형점을 착란원이라 한다)의 크기에 따라 달라지게 되는데, 착란원의 크기는 심도(초점심도 및 피사계 심도)와 밀접한 관계가 있다. 그러므로, 상기 심도는 착란원과 관계가 있는 디지털 카메라 기기의 CCD 크기, 조리개 수치, 렌즈의 초점거리, 피사체와 카메라와의 거리 및 피사체와 배경과의 거리 등의 요인에 따라 달라진다.In general, the out-focusing effect is concentric circles (when a point of a subject image forms an image through a lens, it forms a circular point having a predetermined diameter from a size that can be regarded as a point. The circular point with the diameter is called the confusion circle, and the size of the confusion circle is closely related to the depth (focal depth and depth of field). Therefore, the depth depends on factors such as the CCD size, aperture value, lens focal length, distance between the object and the camera, and distance between the object and the background of the digital camera device related to the confusion circle.
디지털 카메라 기기에 있어서 심도의 제어가 아날로그 촬영장치에 비하여 어려운 까닭은, 착란원의 크기를 결정하는 요인 중 가장 큰 역할을 하는 렌즈의 초점거리 및 조리개 수치가 제한적이고 CCD의 크기가 작기 때문에 구조상 항상 깊은 심 도의 이미지가 형성되기 때문이다.Depth control is more difficult in digital camera devices than analog cameras because the focal length and aperture of the lens, which play the biggest role in determining the size of the confusion circle, are limited and the size of the CCD is small. This is because a deep depth of image is formed.
이러한 현상은 초점이 맞은 피사체와 초점을 벗어난 배경 모두 또렷하게 보이게 하므로 오히려 단점으로 작용하게 된다. 따라서 종래의 디지털 카메라 기기는 아웃포커싱 효과를 이용하여 촬영하는 것이 거의 불가능하게 된다.This phenomenon becomes a disadvantage because both the subject in focus and the background out of focus are clearly visible. Therefore, the conventional digital camera device becomes almost impossible to photograph using the out of focus effect.
이에, 렌즈의 초점거리, 조리개 수치 및 CCD 사이즈 등의 제한적 구성을 가지는 디지털 카메라 기기에 있어서, 영상을 구성하는 주피사체 및 배경피사체에 차이를 두어 각 피사체에 형성되는 착란원의 사이즈를 사람의 눈에 인지가능하게 차별화시킴으로써 얕은 피사계 심도의 이미지(즉, 아웃포커싱 효과가 처리된 이미지)를 얻을 수 있는 개선안이 요구되고 있다.Accordingly, in a digital camera apparatus having limited configurations such as a focal length of a lens, an aperture value, and a CCD size, the size of a confusion circle formed on each subject with a difference between the main subject and the background subject constituting the image is determined by the human eye. There is a need for an improvement capable of obtaining a shallow depth of field image (i.e., an image processed with an out focusing effect) by recognizable differentiation.
본 발명은 영상을 주피사체 및 배경피사체로 구분하여 각각의 거리정보 및 주피사체 및 배경피사체간의 거리정보를 계산하고, 초점거리, 조리개 수치 등의 촬영파라미터와 거리정보에 의하여 착란원의 크기를 결정하고 이미지에 아웃포커싱 효과를 주도록 하는 디지털 카메라 기기를 제공하는 것을 목적으로 한다.The present invention divides an image into a main subject and a background subject, calculates distance information and distance information between the main subject and the background subject, and determines the size of the confusion circle based on photographing parameters and distance information such as focal length and aperture value. It is an object of the present invention to provide a digital camera device that makes an image out of focus.
또한, 본 발명은 촬영시, 주피사체 및 배경피사체 각각의 거리정보를 측정하여 거리정보를 포함하는 영상을 구성하고, 촬영파라미터의 입력, 주피사체 및 배경피사체간의 거리 정보를 계산하는 동작을 일련적으로 구현함으로써 심도의 조절이 가능하게 되는 아웃포커싱 처리 방법을 제공하는 것을 다른 목적으로 한다.In addition, the present invention is a series of operations to measure the distance information of each of the main subject and the background subject to configure the image including the distance information, and to calculate the input information of the shooting parameters, the distance between the main subject and the background subject It is another object of the present invention to provide an outfocusing processing method that enables the depth of control by implementing.
상기의 목적을 달성하기 위하여, 본 발명에 의한 디지털 카메라 기기는 하나 의 이미지 써클을 형성하는 주피사체 및 배경피사체와의 거리를 측정하여 소정의 화소에 대하여 거리정보를 가지는 영상을 구성하는 영상거리측정모듈; 사용자로부터 촬영파라미터를 설정받는 심도설정모듈; 상기 거리정보에 의하여 상기 주피사체 및 상기 배경피사체 사이의 거리정보를 계산하는 거리계산모듈; 상기 거리정보, 상기 피사체간 거리정보 및 상기 촬영파라미터에 의하여 착란원의 크기를 계산하는 심도계산모듈; 및 상기 착란원의 크기에 따라 상기 배경피사체를 아웃포커싱처리하는 이미지편집모듈을 포함하는 것을 특징으로 한다.In order to achieve the above object, the digital camera device according to the present invention measures the distance between the main subject and the background subject forming one image circle to measure an image distance constituting an image having distance information for a predetermined pixel. module; A depth setting module configured to receive photographing parameters from a user; A distance calculation module for calculating distance information between the main subject and the background subject based on the distance information; A depth calculation module for calculating a size of a confusion circle based on the distance information, the distance information between subjects, and the photographing parameter; And an image editing module for outfocusing the background subject according to the size of the confusion circle.
상기의 다른 목적을 달성하기 위하여, 본 발명에 의한 아웃포커싱 처리 방법은 영상을 구성하는 주피사체 및 배경피사체와의 거리를 측정하여 화소들에 대한 거리정보를 산출하고, 상기 영상을 촬영하여 촬영된 영상에 상기 거리정보를 첨부한 후 저장시키는 단계; 사용자로부터 촬영파라미터를 설정받은 후, 상기 거리정보에 의하여 상기 주피사체 및 상기 배경피사체 사이의 거리정보를 계산하는 단계; 상기 거리정보, 상기 피사체간 거리정보 및 상기 설정된 촬영파라미터에 의하여 착란원의 크기를 계산하는 단계; 및 상기 착란원의 크기에 따라 상기 배경피사체를 아웃포커싱처리하는 단계를 포함하는 것을 특징으로 한다.In order to achieve the above object, the outfocusing processing method according to the present invention measures distances between a main subject and a background subject constituting an image, calculates distance information on pixels, and photographs the image. Attaching the distance information to an image and storing the distance information; Calculating distance information between the main subject and the background subject based on the distance information after receiving a photographing parameter from a user; Calculating a size of a confusion circle based on the distance information, the distance information between subjects, and the set photographing parameter; And outfocusing the background subject according to the size of the confusion circle.
이하에서 첨부된 도면을 참조하여 본 발명에 의한 디지털 카메라 기기 및 아웃포커싱 처리 방법에 대하여 상세히 설명한다.Hereinafter, a digital camera device and an outfocusing processing method according to the present invention will be described in detail with reference to the accompanying drawings.
도 1은 본 발명에 의한 디지털 카메라 기기(100)의 내부 구성을 개략적으로 도시한 블록도이다.1 is a block diagram schematically showing an internal configuration of a
도 1에 의하면, 본 발명에 의한 디지털 카메라 기기(100)는 촬영모듈(110), 영상거리측정모듈(120), 심도설정모듈(130), 거리계산모듈(140), 심도계산모듈(150), 이미지편집모듈(170) 및 저장수단(160)을 포함하여 구성된다.Referring to FIG. 1, the
우선, 상기 촬영모듈(110)은 렌즈(112), CCD(114) 및 DSP(Digital Signal Processor)(116)를 구비하는데, 상기 촬영모듈(110)은 조리개 수치, 셔터 스피드 등의 촬영설정정보를 자동으로 설정하거나 사용자로부터 설정받아 상기 렌즈(112)의 초점거리를 조정하고, 렌즈(112)에 맺힌 상은 상기 CCD(114)에서 디지털 신호로 변환되어 일련의 데이터로 전송된다.First, the
상기 DSP(116)는 상기 변환된 데이터를 특정 색공간의 영상 데이터로 재구성하고, 셔터가 눌러짐으로써 상기 영상 데이터는 JPEG(Joint Photographic Experts Group)와 같은 포맷으로 변환되어 상기 저장수단(160)에 저장된다. 상기 저장수단(160)으로는 메모리칩이 사용될 수 있다.The DSP 116 reconstructs the converted data into image data of a specific color space, and when the shutter is pressed, the image data is converted into a format such as a Joint Photographic Experts Group (JPEG) to the storage means 160. Stored. A memory chip may be used as the storage means 160.
또한, 상기 영상거리측정모듈(120)은 거리센서(Range sensor)(122)를 구비하여 상기 CCD(114)상에 하나의 이미지 써클(영상)을 형성하는 주피사체 및 배경피사체와의 거리를 측정한다. 여기서, 상기 주피사체란 초점이 형성되어 선명하게 찍고자 하는 대상을 의미하고, 상기 배경피사체란 상기 주피사체 이외의 배경이 되는 나머지 이미지 써클 영역을 의미한다.In addition, the image
보통, 상기 이미지 써클은 초점이 형성된 주피사체를 중심으로 하여 바깥쪽으로 위치하는 이미지가 점차 흐려지게 되는데, 이는 착란원이라는 개념으로 설명될 수 있다.In general, the image circle is gradually blurred outward with respect to the main subject in focus, which can be described as a confusion circle.
상기 착란원이란 피사체상의 한 점이 상기 CCD(혹은 필름)에 대응되는 경우 점으로 맺히거나 일정 지름을 가지는 원형점상으로 맺히게 되는 경우를 지칭하는데, 착란원의 크기에 따라 심도에 차이가 발생한다.The confusion circle refers to a case where a point on the subject corresponds to the CCD (or film) or is formed as a dot or a circular point having a predetermined diameter, and a difference in depth occurs depending on the size of the confusion circle.
부언하면, 상기 이미지 써클의 초점이 형성된 부분의 착란원은 거의 점에 가깝게 되고, 상기 이미지 써클의 외곽 부분에 해당하는 원영상의 화소들은 지름의 점차 커지는 착란원을 형성한다. 이러한 착란원들 사이의 차이가 크면 심도가 얕은 이미지가 촬영되고, 그 차이가 작으면 이미지가 심도 깊게 촬영된다.In other words, the confusion circle of the focused portion of the image circle is almost close to the point, and the pixels of the original image corresponding to the outer portion of the image circle form a convoluted circle of increasing diameter. If the difference between these confusion sources is large, a shallow depth of field image is taken, if the difference is small, the image is taken deep.
일반적인 디지털 카메라 기기를 통하여 촬영된 경우, 영상의 착란원 간의 차이가 작게 형성되므로 심도가 깊게 표현된다. 즉, 전 영상의 화소가 허용 착란원의 범위에 들게 되므로 초점을 맞춘 피사체와 배경 피사체 사이의 선명도가 차별화되기 어렵게 된다.When taken through a general digital camera device, since the difference between the confusion circle of the image is formed small, the depth is expressed deeply. That is, since the pixels of the entire image fall within the range of the allowable confusion circle, it is difficult to differentiate the sharpness between the focused subject and the background subject.
상기 거리센서(122)는 레이저 혹은 적외선을 방출하여 피사체로부터 반사되어 오는 시간을 이용하여 거리를 계산하거나 혹은, 상기 반사되어오는 매개 신호의 반사각을 측정하여 삼각 측량법을 이용하여 거리를 계산하고, 이를 거리로 환산하여 거리정보를 생성하는 장치를 말하는데, 상기 심도계산모듈(150)이 각 착란원의 크기를 차별화하여 결정하기 위해서는 본 발명에 의한 디지털 카메라 기기(100)로부터 주피사체와의 거리 및 주피사체와 각 배경피사체와의 거리 등의 거리정보가 필요로 된다.The
이러한 이유로, 상기 영상거리측정모듈(120)은 삼차원(3-D; Dimension) 센싱 기법을 도입하여 상기 주피사체 및 배경피사체를 형성하는 다수개의 지점에 대하여 자신과의 거리 정보를 측정한다.For this reason, the image
상기 영상거리측정모듈(120)은 상기 거리 정보를 상기 촬영된 영상 데이터에 삽입함으로써 삼차원 처리가 가능한 거리 영상(Range Image) 데이터를 구성하고, 상기 거리 영상 데이터를 상기 저장수단(160)에 저장한다.The image
여기서, 상기 촬영모듈(110) 및 영상거리측정모듈(120)은 개별적인 동작을 수행하는 구성부로서, 가령 상기 촬영모듈(110)은 촬영된 영상을 상기 영상거리측정모듈(120)로 전달하고, 상기 영상거리측정모듈(120)은 상기 거리 영상을 구성하여 이를 상기 저장수단(160)에 저장할 수도 있을 것이다.Here, the
이어서, 상기 심도설정모듈(130)은 사용자로부터 촬영파라미터를 설정받는데, 상기 촬영파라미터로는 심도에 가장 큰 영향을 미치는 초점 거리 및 조리개 수치를 들 수 있다. Subsequently, the
또한, 상기 심도설정모듈(130)은 사용자로부터 아웃포커싱의 정도를 나타내는 수치(가령, "-1, 0, +1, +2, +3, +4")만을 입력받고, 입력된 아웃포커싱의 정도에 부합되도록 상기 초점 거리 및 조리개 수치를 조합하여 자동으로 설정할 수도 있다. In addition, the
이렇게 영상이 촬영된 상태에서 상기 심도설정모듈(130)이 사용자로부터 상기 초점 거리 및 조리개 수치를 설정받는 경우는 사용자가 원하는 아웃포커싱 효과의 정도를 반영하기 위한 것이다.When the
상기 거리계산모듈(140)은 상기 영상거리측정모듈(120)로부터 상기 주피사체 및 배경피사체 상의 각 지점간의 거리정보를 이용하여 상기 주피사체와 다른 배경피사체들간의 거리 차이(이하에서, "피사체간 거리정보"라 한다)를 계산한다.The
상기 피사체간 거리정보가 계산되면, 상기 심도계산모듈(150)은 상기 사용자로부터 설정받은 조리개 수치, 초점 거리 및 상기 피사체간 거리정보를 반영하여 상기 배경피사체에 해당하는 착란원들의 크기를 결정한다.When the distance information between the subjects is calculated, the
즉, 상기 착란원의 크기를 결정함에 있어서, 상기 심도계산모듈(150)은 원영상의 피사체들간의 거리에 의한 비선택적 요인과 사용자가 아웃포커싱 정도를 원하는 선택적 요인의 두가지 요인을 함께 반영하여 상기 착란원의 크기를 결정할 수 있다.That is, in determining the size of the confusion circle, the
이때, 상기 심도계산모듈(150)은 다음의 수식으로 표현되는 알고리즘을 통하여 상기 착란원들의 크기를 결정할 수 있다.At this time, the
여기서, A: 조리개 수치, Where A is the aperture value,
f: 초점거리, f: focal length,
x:주피사체 및 배경피사체 간 거리, x: distance between main subject and background subject,
a: 상기 영상거리측정모듈로부터 주피사체 간 거리.a: Distance between main subjects from the image ranging module.
도 2는 본 발명에 의한 디지털 카메라 기기가 상기 조리개 수치, 초점거리 및 촬영파라미터에 의하여 계산한 착란원의 크기들을 도시한 그래프이다.Figure 2 is a graph showing the size of the confusion circle calculated by the digital camera device according to the present invention by the aperture value, the focal length and the shooting parameters.
도 2에 의한 그래프를 살펴보면, X축은 주피사체와 배경피사체와의 거리를 나타내고, Y축은 착란원의 크기를 나타내고 있다. 즉, 상기 그래프는 상기 수식에 의하여 계산된 착란원의 크기를 표현한 것으로서, X축의 0점은 초점이 맞은 주피사 체에 해당하고 X축의 수치(상기 주피사체와 배경피사체간 거리)가 증가함에 따라 착란원이 커지는 것을 관찰할 수 있다.Referring to the graph of FIG. 2, the X axis represents the distance between the main subject and the background subject, and the Y axis represents the size of the confusion circle. That is, the graph represents the size of the confusion circle calculated by the above formula, wherein the 0 point of the X axis corresponds to the main subject in focus and the value of the X axis (the distance between the main subject and the background subject) increases. The confusion source can be observed to increase.
상기 그래프에서 상기 초점거리와 조리개수치가 4개의 조합을 이룬 경우에 각각 계산된 착락원의 크기가 예시되어 있는데, 상기 4개의 조합은 "(초점거리 / 조리개수치) = (50 / 1.4), (50 / 2.8), (105 / 2.8), (105 / 2.0)" 이다.In the graph, the sizes of the circumferences calculated when the focal length and the aperture value form four combinations are illustrated, and the four combinations correspond to "(focal length / aperture value) = (50 / 1.4), ( 50 / 2.8), (105 / 2.8), (105 / 2.0) ".
이어서, 도 1을 참조하여 설명하면, 영상(전체 이미지 써클) 중에 아웃포커싱 효과를 원하는 부분(전체 이미지 써클 중에서 배경피사체에 해당하는 영역)의 착란원 크기들이 결정되면 상기 이미지편집모듈(170)은 상기 결정된 착란원들의 크기에 따라 상기 배경피사체를 아웃포커싱처리한다.Subsequently, referring to FIG. 1, when confusion circle sizes of a portion (a region corresponding to a background subject in the entire image circle) for which an out focusing effect is desired in the image (the whole image circle) are determined, the
상기 이미지편집모듈(170)은 상기 아웃포커싱을 처리함에 있어서, 상기 영상의 화소 픽셀을 집성하거나 공간필터처리를 수행할 수 있다.In processing the out focusing, the
예를 들면, 상기 영상의 화소 픽셀을 집성하는 경우에는 인접 픽셀들의 수치를 합하고 평균값을 취하는 공간 마스킹을 상기 배경피사체 영역 전반에 수행함으로써 화소 픽셀의 집성을 처리할 수 있다.For example, when the pixel pixels of the image are aggregated, the pixel pixel aggregation may be processed by performing spatial masking that sums the numerical values of adjacent pixels and takes an average value over the background subject area.
도 3은 본 발명에 의한 디지털 카메라 기기(100)가 아웃포커싱을 표현하기 위하여 수행하는 공간 마스킹 및 영상처리함수를 예시한 도면이다.3 is a diagram illustrating a spatial masking and image processing function performed by the
도 3에 의하면, 상기 공간 마스킹(A)은 배경피사체 영역에 위치되어 있고, 상기 공간 마스킹에 의하여 처리되는 착란원 값(R(x,y))은 상기 영상처리함수(B)에 의하여 중간값(평균값) 처리됨을 알 수 있다.According to FIG. 3, the spatial masking A is located in the background subject area, and the confusion source value R (x, y) processed by the spatial masking is an intermediate value by the image processing function B. It can be seen that the (average value) is processed.
상기 영상처리함수(B)에서 Zi변수는 해당 화소의 영상 수치를 의미하고, Wi변수는 마스킹 계수를 의미한다.In the image processing function B, the Z i variable refers to an image value of a corresponding pixel, and the W i variable refers to a masking coefficient.
또한, 상기 영상의 공간필터처리를 수행하는 경우에는, 상기 배경피사체 영역상의 고주파 성분을 추출하고, 고주파 성분의 에지를 계산하여 그 기울기를 조정함으로써 번짐 효과를 표현할 수 있다.In the case of performing the spatial filter processing of the image, the blurring effect may be expressed by extracting a high frequency component on the background subject area, calculating an edge of the high frequency component, and adjusting the inclination thereof.
따라서, 상기 이미지 써클의 배경피사체에 해당하는 영역은 아웃포커싱으로 표현되어 사람의 시각에는 흐리게 보이게 된다.Therefore, the area corresponding to the background subject of the image circle is expressed by out focusing so that it appears blurry to human eyes.
이하에서, 본 발명의 실시예에 따른 디지털 카메라 기기(100)상의 아웃포커싱 처리 방법에 대하여 첨부된 도면을 참조하여 상세히 설명하기로 한다.Hereinafter, a method for processing focusing on the
도 4는 본 발명의 실시예에 따른 디지털 카메라 기기(100)상의 아웃포커싱 처리 방법을 도시한 흐름도이다.4 is a flowchart illustrating an outfocusing processing method on the
도 4에 의하면, 우선, 상기 영상거리측정모듈(120)은 영상을 구성하는 주피사체 및 배경피사체 상의 각 지점들과의 거리를 측정하여 화소들에 대한 거리정보를 산출한다(S100). 또한, 상기 촬영모듈(110)은 촬영정보에 의하여 상기 영상을 촬영하고(S110), 상기 영상거리측정모듈(120)은 촬영된 영상에 상기 거리정보를 첨부한 후 저장시킨다(S120).Referring to FIG. 4, first, the image
그러나, 이러한 과정은 상기 촬영모듈(110)이 상기 영상을 촬영하여 이를 저장하거나 상기 영상거리측정모듈(120)로 전달하면, 상기 영상거리측정모듈(120)은 촬영된 영상을 전달받거나 상기 저장수단(160)으로부터 액세스하여 거리정보를 산 출한 뒤 상기 촬영된 영상에 첨부하여 재저장시킬 수도 있을 것이다.However, in this process, when the photographing
이어서, 상기 거리계산모듈(140)은 거리 영상에 삽입된 거리정보에 의하여 상기 주피사체 및 상기 각 배경피사체들 사이의 거리정보를 계산하고(S130), 상기 심도설정모듈(130)은 사용자로부터 조리개 수치 및 초점 거리와 같은 촬영파라미터를 설정한다(S140).Subsequently, the
그러나, 전술한 과정과 같이 상기 피사체간 거리정보를 계산한 뒤 상기 촬영파라미터를 설정받는 과정은 본 발명의 바람직한 실시예에 의한 것으로서, 상기 심도설정모듈(130) 및 상기 거리계산모듈(140)은 독립적인 기능을 수행하는 것이므로, 상기 촬영파라미터를 설정받는 단계 및 상기 피사체간 거리정보를 계산하는 단계는 순위에 상관없이 수행될 수 있다.However, as described above, the process of setting the photographing parameter after calculating the distance information between the subjects is according to the preferred embodiment of the present invention. The
상기 비선택적 요인(상기 피사체간 거리정보)과 선택적 요인(상기 촬영파라미터)이 결정되면, 상기 심도계산모듈(150)은 상기 요인들에 의하여 상기 배경피사체의 화소들에 대한 착란원의 크기를 계산한다(S150).When the non-selective factor (distance information between the subjects) and the optional factor (the photographing parameter) are determined, the
최종적으로, 상기 이미지편집모듈(170)은 상기 계산된 착란원의 크기에 따라 상기 배경피사체를 아웃포커싱처리한다(S160).Finally, the
이상에서 본 발명에 대하여 그 바람직한 실시예를 중심으로 설명하였으나 이는 단지 예시일 뿐 본 발명을 한정하는 것이 아니며, 본 발명이 속하는 분야의 통상의 지식을 가진 자라면 본 발명의 본질적인 특성을 벗어나지 않는 범위에서 이상에 예시되지 않은 여러 가지의 변형과 응용이 가능함을 알 수 있을 것이다. 예를 들어, 본 발명의 실시예에 구체적으로 나타난 각 구성 요소는 변형하여 실시할 수 있는 것이다. 그리고 이러한 변형과 응용에 관계된 차이점들은 첨부된 청구 범위에서 규정하는 본 발명의 범위에 포함되는 것으로 해석되어야 할 것이다.The present invention has been described above with reference to the preferred embodiments, which are merely examples and are not intended to limit the present invention, and those skilled in the art to which the present invention pertains do not depart from the essential characteristics of the present invention. It will be appreciated that various modifications and applications are not possible that are not illustrated above. For example, each component specifically shown in the embodiment of the present invention can be modified. And differences relating to such modifications and applications will have to be construed as being included in the scope of the invention defined in the appended claims.
이상에서 살펴본 바와 같이, 본 발명에 의한 디지털 카메라 기기에 의하면, 초점거리 및 조리개 수치 등의 제한적 구성을 가지는 디지털 카메라 기기상에서 고비용을 들여 하드웨어적 구성을 개선할 필요없이 소프트웨어적으로 처리함으로써 배경 흐림 효과를 가지는 영상을 촬영할 수 있는 효과가 있다.As described above, according to the digital camera device according to the present invention, the background blur effect by processing in software without the need for high-cost hardware configuration on the digital camera device having a limited configuration such as the focal length and the aperture value, etc. There is an effect that can shoot an image having.
또한, 본 발명에 의하면, 삼차원 거리 정보가 포함된 영상을 통하여 각각의 거리 차이를 계산하고 사용자가 원하는 심도 및 원영상의 거리 정보가 반영된 심도를 최종적으로 결정하여 착란원의 사이즈를 여러 가지 영상처리를 통하여 조정함으로써 주피사체 및 배경피사체간의 아웃포커싱 효과를 효율적으로 제공할 수 있는 효과가 있다.In addition, according to the present invention, by calculating the distance difference through the image including the three-dimensional distance information, and finally to determine the depth desired reflecting the user's desired depth and the distance information of the original image to determine the size of the confusion circle various image processing By adjusting through it, there is an effect that can effectively provide the focusing effect between the main subject and the background subject.
Claims (9)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1020040101887A KR100617659B1 (en) | 2004-12-06 | 2004-12-06 | Digital camera device and out-focus processing method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1020040101887A KR100617659B1 (en) | 2004-12-06 | 2004-12-06 | Digital camera device and out-focus processing method |
Publications (2)
Publication Number | Publication Date |
---|---|
KR20060062890A KR20060062890A (en) | 2006-06-12 |
KR100617659B1 true KR100617659B1 (en) | 2006-08-28 |
Family
ID=37158967
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
KR1020040101887A KR100617659B1 (en) | 2004-12-06 | 2004-12-06 | Digital camera device and out-focus processing method |
Country Status (1)
Country | Link |
---|---|
KR (1) | KR100617659B1 (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR101112056B1 (en) | 2010-10-18 | 2012-02-24 | 엘지이노텍 주식회사 | Method for processing image of camera module |
US11113552B2 (en) | 2016-11-30 | 2021-09-07 | Samsung Electronics Co., Ltd. | Electronic device and method for displaying image for iris recognition in electronic device |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR101510098B1 (en) * | 2007-12-21 | 2015-04-08 | 삼성전자주식회사 | Apparatus and method for blurring an image background in digital image processing device |
KR101348596B1 (en) * | 2008-01-22 | 2014-01-08 | 삼성전자주식회사 | Apparatus and method for immersive generation |
KR100958352B1 (en) * | 2008-07-14 | 2010-05-17 | 구자회 | Monitoring method |
KR101901184B1 (en) | 2012-09-20 | 2018-09-21 | 삼성전자주식회사 | Apparatus and method for processing color image using depth image |
KR102633221B1 (en) * | 2019-01-11 | 2024-02-01 | 엘지전자 주식회사 | Camera device, and electronic apparatus including the same |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH06231273A (en) * | 1993-02-02 | 1994-08-19 | Matsushita Electric Ind Co Ltd | Picture blurring processor |
JPH07200817A (en) * | 1993-12-28 | 1995-08-04 | Daikin Ind Ltd | Image drawing method and device therefor |
JPH09181913A (en) * | 1995-12-26 | 1997-07-11 | Olympus Optical Co Ltd | Camera system |
JPH09181966A (en) * | 1995-12-22 | 1997-07-11 | Olympus Optical Co Ltd | Image processing method and device |
JP2003037767A (en) | 2001-07-24 | 2003-02-07 | Minolta Co Ltd | Digital camera |
-
2004
- 2004-12-06 KR KR1020040101887A patent/KR100617659B1/en not_active IP Right Cessation
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH06231273A (en) * | 1993-02-02 | 1994-08-19 | Matsushita Electric Ind Co Ltd | Picture blurring processor |
JPH07200817A (en) * | 1993-12-28 | 1995-08-04 | Daikin Ind Ltd | Image drawing method and device therefor |
JPH09181966A (en) * | 1995-12-22 | 1997-07-11 | Olympus Optical Co Ltd | Image processing method and device |
JPH09181913A (en) * | 1995-12-26 | 1997-07-11 | Olympus Optical Co Ltd | Camera system |
JP2003037767A (en) | 2001-07-24 | 2003-02-07 | Minolta Co Ltd | Digital camera |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR101112056B1 (en) | 2010-10-18 | 2012-02-24 | 엘지이노텍 주식회사 | Method for processing image of camera module |
US11113552B2 (en) | 2016-11-30 | 2021-09-07 | Samsung Electronics Co., Ltd. | Electronic device and method for displaying image for iris recognition in electronic device |
Also Published As
Publication number | Publication date |
---|---|
KR20060062890A (en) | 2006-06-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11671702B2 (en) | Real time assessment of picture quality | |
US9998650B2 (en) | Image processing apparatus and image pickup apparatus for adding blur in an image according to depth map | |
JP5273408B2 (en) | 4D polynomial model for depth estimation based on two-photo matching | |
US8947523B2 (en) | Image processing apparatus and associated methodology for blurring digital images | |
CN108076278B (en) | Automatic focusing method and device and electronic equipment | |
KR101847392B1 (en) | Image processing apparatus and method for controlling the same | |
KR102229811B1 (en) | Filming method and terminal for terminal | |
JP2004180298A (en) | Camera system provided with eye monitoring function | |
JP2004181233A (en) | Method of deciding major area of image and program thereof | |
US20120307009A1 (en) | Method and apparatus for generating image with shallow depth of field | |
JP2003046844A (en) | Highlighting method, camera, and focus highlighting system | |
JP6472183B2 (en) | Image processing apparatus, control method thereof, and program | |
JP2020515982A (en) | Image processing method, apparatus, computer-readable storage medium, and electronic device | |
JP2012514886A (en) | Video data acquisition method and apparatus | |
CN106412423A (en) | Focusing method and device | |
US7116359B2 (en) | Image capture device and method of controlling blur in captured images | |
US20090290041A1 (en) | Image processing device and method, and computer readable recording medium containing program | |
JP4349380B2 (en) | IMAGING DEVICE, METHOD FOR OBTAINING IMAGE | |
KR100617659B1 (en) | Digital camera device and out-focus processing method | |
JP4693709B2 (en) | Image processing apparatus and image processing method | |
JP6645711B2 (en) | Image processing apparatus, image processing method, and program | |
TWI468772B (en) | Device and method for taking photographs | |
JP2010050874A (en) | Image processing apparatus, image processing method and digital still camera | |
JP2014131188A (en) | Imaging apparatus, control method of the same, and control program | |
TWI605418B (en) | Image editing method and apparatus |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A201 | Request for examination | ||
E701 | Decision to grant or registration of patent right | ||
GRNT | Written decision to grant | ||
FPAY | Annual fee payment |
Payment date: 20090619 Year of fee payment: 4 |
|
LAPS | Lapse due to unpaid annual fee |