KR20060010905A - Apparatus for adaptive auto focus control and auto focus controlling method - Google Patents

Apparatus for adaptive auto focus control and auto focus controlling method Download PDF

Info

Publication number
KR20060010905A
KR20060010905A KR1020040059496A KR20040059496A KR20060010905A KR 20060010905 A KR20060010905 A KR 20060010905A KR 1020040059496 A KR1020040059496 A KR 1020040059496A KR 20040059496 A KR20040059496 A KR 20040059496A KR 20060010905 A KR20060010905 A KR 20060010905A
Authority
KR
South Korea
Prior art keywords
value
focus
focus value
filter
variable amplifier
Prior art date
Application number
KR1020040059496A
Other languages
Korean (ko)
Other versions
KR100577523B1 (en
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 KR1020040059496A priority Critical patent/KR100577523B1/en
Publication of KR20060010905A publication Critical patent/KR20060010905A/en
Application granted granted Critical
Publication of KR100577523B1 publication Critical patent/KR100577523B1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/20Image enhancement or restoration by the use of local operators
    • G06T5/73
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/20Special algorithmic details
    • G06T2207/20004Adaptive image processing
    • G06T2207/20012Locally adaptive

Abstract

본 발명은 주어진 환경에 상관없이 적응적으로 초점을 찾을 수 있는 적응형 자동 초점 조절 장치 및 적응형 자동 초점 조절 방법을 제공하기 위한 것으로, 이를 위해 본 발명은, 주어진 이미지 환경에 따라 적응적으로 초점 값을 획득하는 윈도우의 크기를 단계 별로 조절하고, 상기 윈도우로 부터 분할된 영역의 크기를 조절하며 상기 각 영역 별로 적용될 가중치와 경계 검출 필터를 선택하는 분할/선택부; 선택된 경계 검출 필터 마스크의 가중치를 이용하여 각 영역에서의 초점 값을 계산하는 초점 값 계산부; 및 저조도 잡음에 대한 영향을 줄이기 위해 조도에 따라 상기 초점 값을 선택적으로 억제하는 초점 값 억제부를 포함하는 자동 초점 조절 장치를 제공한다.The present invention is to provide an adaptive autofocusing apparatus and an adaptive autofocusing method capable of adaptively finding focus regardless of a given environment. To this end, the present invention is to adaptively focus according to a given image environment. A partitioning / selecting unit for adjusting a size of a window obtaining a value step by step, adjusting a size of a region divided from the window, and selecting a weight and a boundary detection filter to be applied to each region; A focus value calculator configured to calculate a focus value in each region by using a weight of the selected boundary detection filter mask; And a focus value suppressor for selectively suppressing the focus value according to the illuminance in order to reduce the influence on the low illuminance noise.

또한, 본 발명은, 주어진 이미지의 환경에 따라 초점 값 획득을 위한 윈도우의 크기를 결정하는 단계; 상기 윈도우로 부터 영역을 분할하는 단계; 주어진 이미지의 환경에 따라 경계 검출 필터를 선택하는 단계; 선택된 경계 검출 필터에서의 마스크의 가중치를 이용하여 각 영역에서의 초점 값을 계산하는 단계; 및 저조도 잡음에 대한 영향을 줄이기 위해 조도에 따라 상기 초점 값을 억제하는 단계를 포함하는 자동 초점 조절 방법을 제공한다.In addition, the present invention includes the steps of determining the size of the window for obtaining the focus value according to the environment of a given image; Dividing an area from the window; Selecting a boundary detection filter according to the environment of a given image; Calculating a focus value in each region using weights of masks in the selected boundary detection filter; And suppressing the focus value according to the illuminance to reduce the influence on the low illuminance noise.

이미지센서, 자동 초점 조절(Auto Focus control), 초점 값 억제(Focus value suppression), 가중치, 소벨 필터, 라플라시안 필터, 고역 통과 필터.Image sensor, Auto Focus control, Focus value suppression, Weight, Sobel filter, Laplacian filter, High pass filter.

Description

적응적인 자동 초점 조절 장치 및 그 방법{APPARATUS FOR ADAPTIVE AUTO FOCUS CONTROL AND AUTO FOCUS CONTROLLING METHOD} Adaptive auto focusing device and its method {APPARATUS FOR ADAPTIVE AUTO FOCUS CONTROL AND AUTO FOCUS CONTROLLING METHOD}             

도 1은 자동 초점 조절 장치를 개략적으로 도시한 블럭도. 1 is a block diagram schematically showing an auto focusing device;

도 2는 도 1에 의한 초점 값 곡선을 도시한 그래프.FIG. 2 is a graph showing a focus value curve according to FIG. 1.

도 3은 본 발명의 일실시예에 따라 자동 초점 조절 장치를 갖는 이미지센서 시스템을 도시한 블럭도.3 is a block diagram illustrating an image sensor system having an auto focusing device according to an embodiment of the present invention.

도 4는 적응형 자동 초점 조절 장치를 도시한 블럭도.4 is a block diagram illustrating an adaptive auto focusing device.

도 5는 영상에서 초점 값을 획득하는 윈도우의 크기 및 분할 영역의 가중치의 예를 도시한 도면.5 is a diagram illustrating an example of a size of a window for obtaining a focus value in an image and weights of a divided region.

도 6은 경계 검출 필터 마스크 패턴의 예를 도시한 도면.6 illustrates an example of a boundary detection filter mask pattern.

도 7은 화면의 밝기에 따라 변하는 초점 값을 가변 증폭기의 이득 값을 이용하여 선형적으로 억제하는 방식을 도식화한 그래프.FIG. 7 is a graph illustrating a method of linearly suppressing a focus value changing according to brightness of a screen using a gain value of a variable amplifier. FIG.

* 도면의 주요부분에 대한 부호의 설명 *Explanation of symbols on the main parts of the drawings

400 : 분할/선택부 410 : 초점 값 계산부400: division / selection unit 410: focus value calculation unit

420 : 초점 값 억제부420: focus value suppression unit

본 발명은 자동 초점 조절 장치 및 그 방법에 관한 것으로 특히, 이미지센서 시스템에서의 적응형 자동 초점 조절 장치 및 그 방법에 관한 것이다.The present invention relates to an auto focusing apparatus and a method thereof, and more particularly, to an adaptive autofocusing apparatus and a method thereof in an image sensor system.

최근의 이미지센서 시스템에서 자동 초점 조절(Auto Focus Control) 기능이 이미지센서의 필수적인 기능으로 자리잡았으며, 다양한 환경 하에서 얼마나 선명하게 초점을 맞추어 보여주는 가가 이미지센서의 기능을 결정하는 기준이 되고 있다. In recent image sensor systems, auto focus control has become an essential function of the image sensor, and how sharply the focus is displayed under various environments is a criterion for determining the function of the image sensor.

자동 초점 조절 시스템은, 초점 값을 검출하는 부분과 초점 값을 평가하여 초점 렌즈를 제어하는 부분으로 나누어진다. 정확한 초점을 위해서는 정확한 초점 값을 검출하는 과정이 매우 중요하다.The auto focusing system is divided into a part for detecting a focus value and a part for controlling the focus lens by evaluating the focus value. Detecting the correct focus value is very important for accurate focus.

자동 초절 조절 기술은 화소에서 얻은 영상의 특성을 분석하여 영상의 고주파 성분인 경계(Edge) 정보에서 초점 값(Focus value)이 가장 높은 곳으로 렌즈 위치를 조정하여 가장 선명한 화면을 얻는데 그 목적이 있다.The purpose of automatic self-adjustment technology is to obtain the clearest picture by analyzing the characteristics of the image obtained from the pixel and adjusting the lens position to the highest focal value in the edge information which is the high frequency component of the image. .

도 1은 자동 초점 조절 장치를 개략적으로 도시한 블럭도이며, 도 2는 도 1에 의한 초점 값 곡선을 도시한 그래프이다.FIG. 1 is a block diagram schematically illustrating an auto focusing apparatus, and FIG. 2 is a graph illustrating a focus value curve according to FIG. 1.

도 1을 참조하면, 자동 초점 조절 장치는 영상 신호를 입력받는 렌즈(100)와, 렌즈(100)를 통해 입력된 영상 신호의 특성을 분석하여 초점 값을 산출하는 초점 값 검출부(101)와, 초점 값 검출부(101)를 통해 제공되는 초점 값을 이용하여 영상의 공간 주파수를 평가하여 초점 렌즈를 구동시키는 모터 제어신호를 발생시키 는 초점 값 평가부(102)와, 모터 제어신호에 응답하여 렌즈(100)를 구동시키기 위한 렌즈 구동부(103)를 구비하여 구성된다.Referring to FIG. 1, the auto focus apparatus includes a lens 100 receiving an image signal, a focus value detector 101 that analyzes characteristics of an image signal input through the lens 100, and calculates a focus value; A focus value evaluator 102 for generating a motor control signal for driving a focus lens by evaluating a spatial frequency of an image using a focus value provided by the focus value detector 101 and a lens in response to the motor control signal; It is configured to include a lens driver 103 for driving the (100).

도 2에 도시된 초점 값 곡선의 예에서 볼 수 있듯이, 초점 값이 커지는 방향으로 계속 이동하다가 그 값이 감소하면 이전 위치로 이동한 후에 정지한다. 따라서, 자동 초점 조절 알고리즘(Algorithm)이 좋은 성능을 갖기 위해서는 다양한 환경에서도 초점이 맞는 위치에서 초점 곡선이 예리함을 가지고 있어야 하며, 잡음으로 인해 생길 수 있는 최대 값으로 렌즈가 불안정한 동작을 하지 않도록 해야 한다.As can be seen in the example of the focus value curve shown in Fig. 2, the focus value continues to move in the direction of increasing, and when the value decreases, the motor stops after moving to the previous position. Therefore, in order for the autofocus algorithm to have good performance, the focus curve should be sharp at the point of focus in various environments, and the lens should not be unstable to the maximum value that can be caused by noise. .

종래의 자동 초점 조절 시스템에서는 상의 초점을 자동적으로 정확하게 측정하기 위해서 이산 퓨리에 변환(Discrete fourier Transform; 이하 DFT라 함)을 이용하여 공간 주파수의 분포에 관한 정보를 얻어 파워 스펙트럼(Spectrum)에서 고주파 에너지를 최대화하였다. 이 알고리즘은 정확한 주파수 분포를 알 수 있어 정확도 측면에서 뛰어나지만, 공간 주파수 분포를 알아내기 위해 프레임 버퍼(Frame butter)가 피요하고, 복잡한 연산을 거쳐야하는 단점을 가지고 있다.In a conventional auto focusing system, discrete Fourier transform (DFT) is used to accurately measure the focus of an image to obtain information about the distribution of spatial frequencies so that high frequency energy can be obtained from the power spectrum. Maximized. This algorithm is excellent in accuracy because it can know the exact frequency distribution, but it has the disadvantage of requiring frame buffer and complicated operation to find the spatial frequency distribution.

자동 초점 조절 시 초점 값(Focus value)을 얻을 때, 초점 값을 찾는 영역(Area)이 좁다면, 초점이 맞는 위치에서 초점 곡선이 초점 값을 찾는 범위가 넓은 것에 비해 예리하기 때문에 초점 값을 찾기는 쉽지만, 화상이 시간에 따라 변화하기 때문에 너무 작은 면적으로 초점을 찾기에는 위험 부담이 있다.When the focus value is obtained when auto focus is obtained, if the area for finding the focus value is narrow, the focus curve at the point at which the focus is focused is sharp compared to the wide range for finding the focus value. Is easy, but because the image changes over time, there is a risk of focusing in too small an area.

또한, 경계 검출 필터가 하나로 고정되어 있기 때문에 다양한 이미지에 적합한 필터 사용에 한계가 있다. In addition, since the boundary detection filter is fixed to one, there is a limit to using a filter suitable for various images.

또한, 만약 어두운 환경이라면 초점 값을 찾을 때 저조도 잡음에 의해 초점에 대한 왜곡이 발생할 수 있다.Also, if the environment is dark, distortion of focus may occur due to low light noise when looking for a focus value.

상기와 같은 종래 기술의 문제점을 해결하기 위해 제안된 본 발명은, 주어진 환경에 상관없이 적응적으로 초점을 찾을 수 있는 적응형 자동 초점 조절 장치 및 적응형 자동 초점 조절 방법을 제공하는데 그 목적이 있다.
The present invention proposed to solve the problems of the prior art as described above, an object of the present invention is to provide an adaptive auto focusing device and an adaptive autofocusing method that can find the focus adaptively regardless of a given environment. .

상기 목적을 달성하기 위하여 본 발명은, 주어진 이미지 환경에 따라 적응적으로 초점 값을 획득하는 윈도우의 크기를 단계 별로 조절하고, 상기 윈도우로 부터 분할된 영역의 크기를 조절하며 상기 각 영역 별로 적용될 가중치와 경계 검출 필터를 선택하는 분할/선택부; 선택된 경계 검출 필터 마스크의 가중치를 이용하여 각 영역에서의 초점 값을 계산하는 초점 값 계산부; 및 저조도 잡음에 대한 영향을 줄이기 위해 조도에 따라 상기 초점 값을 선택적으로 억제하는 초점 값 억제부를 포함하는 자동 초점 조절 장치를 제공한다.In order to achieve the above object, the present invention adjusts the size of a window for adaptively obtaining a focus value according to a given image environment step by step, adjusts the size of an area divided from the window, and weights to be applied to each area. A division / selection section for selecting a boundary detection filter; A focus value calculator configured to calculate a focus value in each region by using a weight of the selected boundary detection filter mask; And a focus value suppressor for selectively suppressing the focus value according to the illuminance in order to reduce the influence on the low illuminance noise.

또한, 상기 목적을 달성하기 위하여 본 발명은, 주어진 이미지의 환경에 따라 초점 값 획득을 위한 윈도우의 크기를 결정하는 단계; 상기 윈도우로 부터 영역을 분할하는 단계; 주어진 이미지의 환경에 따라 경계 검출 필터를 선택하는 단계; 선택된 경계 검출 필터에서의 마스크의 가중치를 이용하여 각 영역에서의 초점 값 을 계산하는 단계; 및 저조도 잡음에 대한 영향을 줄이기 위해 조도에 따라 상기 초점 값을 억제하는 단계를 포함하는 자동 초점 조절 방법을 제공한다.In addition, to achieve the above object, the present invention comprises the steps of determining the size of the window for obtaining the focus value according to the environment of a given image; Dividing an area from the window; Selecting a boundary detection filter according to the environment of a given image; Calculating a focus value in each region using weights of masks in the selected boundary detection filter; And suppressing the focus value according to the illuminance to reduce the influence on the low illuminance noise.

본 발명은 영상에서 초점 값을 획득하는 영역의 크기를 단계 별로 조절가능하며, 초점 값을 획득하는 영역을 분할하여 가중치를 두고 초점 값 계산이 가능하여 보다 쉽고 정확하게 초점 값을 찾을 수 있다. According to the present invention, the size of an area for acquiring a focus value in an image can be adjusted step by step, and the focus value can be calculated by dividing an area for acquiring a focus value with weights, thereby finding the focus value more easily and accurately.

또한, 자동 초점 조절 장치에서 초점 값을 계산하기 위해 경계 검출 필터(Edge detection filter)를 사용한다. 이 방식은 라인 메모리가 필요하지만, DFT를 사용하는 방식에 비해 비교적 간단한 로직으로 구현 가능하다는 장점이 있다. 이 때, 경계 검출 필터는 이미지 환경에 따라 적응적으로 필터 종류를 바꾸어 적용할 수 있다. Also, an edge detection filter is used to calculate a focus value in the auto focusing device. This method requires line memory, but has the advantage that it can be implemented with relatively simple logic over the method using DFT. In this case, the boundary detection filter may be applied by changing the filter type adaptively according to the image environment.

또한, 저조도 잡음에 의한 초점 왜곡에 대비하여 가변 증폭기의 이득 값이 기준 값(Threshold value) 이상이면, 어두운 환경이라고 판단하여 선형적으로 초점 값을 억제한다.In addition, when the gain value of the variable amplifier is greater than or equal to the threshold value in preparation for the focus distortion caused by the low light noise, it is determined that it is a dark environment and linearly suppresses the focus value.

이하, 본 발명이 속하는 기술분야에서 통상의 지식을 가진 자가 본 발명의 기술적 사상을 용이하게 실시할 수 있을 정도로 상세히 설명하기 위하여, 본 발명의 가장 바람직한 실시예를 첨부한 도면을 참조하여 설명한다.DETAILED DESCRIPTION Hereinafter, exemplary embodiments of the present invention will be described in detail with reference to the accompanying drawings so that those skilled in the art may easily implement the technical idea of the present invention.

본 발명은 이미지센서를 장착한 시스템에서 거리에 따른 초점을 자동으로 조절하기 위한 방법으로, 2차원 칼라 패턴을 갖는 이미지센서의 특징을 이용한 적응 형 자동 초점 조절 방식을 이용한다.The present invention is a method for automatically adjusting the focus according to the distance in a system equipped with an image sensor, using an adaptive auto focus adjustment method using the characteristics of the image sensor having a two-dimensional color pattern.

도 3은 본 발명의 일실시예에 따라 자동 초점 조절 장치를 갖는 이미지센서 시스템을 도시한 블럭도이며. 도 4는 적응형 자동 초점 조절 장치를 도시한 블럭도이다.3 is a block diagram illustrating an image sensor system having an auto focus device according to an embodiment of the present invention. 4 is a block diagram illustrating an adaptive auto focusing device.

도 3을 참조하면, 이미지센서 시스템은 화소 및 신호처리부(301)와 화소 및 신호처리부(301)를 제어하는 제어부(302)로 이루어지는 이미지센서(300)와, 제어부(320)의 자동 초점 조절부(320)로 부터 제공되는 모터 제어신호에 응답하여 렌즈를 구동하기 위한 구동 및 모터부(310)를 구비하여 구성된다.Referring to FIG. 3, the image sensor system includes an image sensor 300 including a pixel and signal processor 301, a controller 302 for controlling the pixel and signal processor 301, and an auto focus controller of the controller 320. And a drive and a motor unit 310 for driving the lens in response to the motor control signal provided from 320.

도 4를 참조하면, 본 발명의 적응형 자동 초점 조절 장치는, 주어진 이미지 환경에 따라 적응적으로 초점 값을 획득하는 윈도우(Window)의 크기를 단계 별로 조절하고, 윈도우로부터 분할된 영역의 크기를 조절하며 각 영역 별로 적용될 가중치와 경계 검출 필터를 선택하는 분할/선택부(400)와, 선택된 경계 검출 필터 마스크의 가중치를 이용하여 각 영역에서의 초점 값을 계산하는 초점 값 계산부(410)와, 저조도 잡음에 대한 영향을 줄이기 위해 조도에 따라 초점 값을 선택적으로 억제하는 초점 값 억제부(420)를 구비하여 구성된다.Referring to FIG. 4, the adaptive auto focus apparatus of the present invention adjusts the size of a window step by step to adaptively obtain a focus value according to a given image environment, and adjusts the size of an area divided from the window. A division / selection unit 400 that adjusts and selects a weight to be applied to each region and a boundary detection filter, a focus value calculator 410 that calculates a focus value in each region by using weights of the selected boundary detection filter mask, and In addition, a focus value suppression unit 420 selectively suppresses a focus value according to the illumination in order to reduce the influence on the low illumination noise.

도 5는 영상에서 초점 값을 획득하는 윈도우의 크기 및 분할 영역의 가중치의 예를 도시한 도면이다.5 is a diagram illustrating an example of a size of a window for obtaining a focus value and weights of a divided region in an image.

먼저, 이미지 환경에 따라 적응적으로 초점 값을 획득하는 윈도우의 크기, 각 영역 별로 가중치와 경계 검출 필터를 선택하는 역할을 하는 분할/선택부(400)의 동작을 살펴 본다.First, the operation of the splitter / selector 400 that selects a weight and a boundary detection filter for each area and adaptively obtains a focus value according to an image environment will be described.

자동 초점시 초점 값을 얻을 때 초점 값을 찾는 영역이 좁다면, 초점 값을 찾는 범위가 넓은 것에 비해 초점 값을 찾는 것은 쉽다. 하지만, 화상이 시간에 따라 변화하기 때문에 너무 작은 면적으로 초점을 찾기에는 위험 부담이 있다. 따라서, 초점 값을 획득하는 윈도우의 크기를 상황에 맞게 변화할 수 있다면 초점 값을 찾는데 큰 이점이 있다.If the area for finding the focus value is narrow when obtaining the focus value during autofocus, finding the focus value is easy compared to the wide range for finding the focus value. However, because the image changes over time, there is a risk of focusing in too small an area. Therefore, if the size of the window for obtaining the focus value can be changed according to the situation, there is a great advantage in finding the focus value.

즉, 도 5의 예에서와 같이 윈도우의 크기를 단계별로 조정하며 초점 값을 찾게 된다. 또한, 윈도우의 영역을 분할해 가중치를 둠으로써 보다 정확한 초점 값을 찾을 수 있다. 이 때 가중치는 주어진 환경에 맞게 조절 가능하다. 또한, 초점 획득 구간에서 경계 검출 필터의 종류를 달리 함으로써, 보다 적응적으로 초점 값을 찾을 수 있다.That is, as in the example of FIG. 5, the size of the window is adjusted step by step to find the focus value. In addition, it is possible to find a more accurate focus value by dividing and weighting an area of the window. At this time, the weight can be adjusted according to the given environment. In addition, by changing the type of the boundary detection filter in the focus acquisition section, it is possible to find the focus value more adaptively.

도 6은 경계 검출 필터 마스크 패턴의 예를 도시한 도면으로서, 경계 검출 필터의 대표적인 예로 고역 통과 필터(High pass filter)와 소벨 필터(Sobel filter), 라플라시안 필터(Laplacian filter)를 각각 나타내고 있다.6 is a diagram illustrating an example of a boundary detection filter mask pattern, and a representative example of the boundary detection filter is a high pass filter, a Sobel filter, and a Laplacian filter, respectively.

각 필터는 이미지의 경계 분포나 잡음 정도에 따라 교환 가능하다. 예를 들어, 잡음이 많은 환경에서는 잡음에 강한 소벨 필터를 사용하며, 잡음이 별로 없는 평상 시에는 라플라시안 필터를 사용한다.Each filter is interchangeable depending on the boundary distribution or noise level of the image. For example, a noise-free Sobel filter is used in a noisy environment, and a Laplacian filter is used in everyday situations where there is little noise.

여기서, 개별 필터의 경계 값은 3*3의 윈도우 화소들 각각에 3*3 경계 검출 필터 마스크의 가중치를 곱한 후, 곱해진 값들의 합으로 볼 수 있다. 이를 수식으로 표현하면 하기의 수학식1과 같다.Here, the boundary value of the individual filter may be viewed as the sum of the multiplied values after multiplying each of the 3 * 3 window pixels by the weight of the 3 * 3 boundary detection filter mask. If this is expressed as an equation, Equation 1 below.

E = Σ|Ix,y × ax,y|E = Σ | I x, y × a x, y |

여기서, E는 경계 값을 나타내고, Ix,y는 원 영상의 값을 나타내며, ax,y는 필터 마스크의 값을 나타내는 바, 경계 값 E는 원 영상의 값 Ix,y와 필터 마스크의 값 ax,y의 시간 영역에 대한 적분(Convolution)을 실시한 것의 절대 값의 합으로 표현한다.Where E denotes a boundary value, I x, y denotes a value of the original image, and a x, y denotes a value of the filter mask, and a boundary value E denotes the value of the original image I x, y and the filter mask. It is expressed by the sum of the absolute values of the convolution of the values a x, y over the time domain.

이 때, 초점 값 획득 영역은 각 구역으로 분할되어 있고 각각의 가중치가 다르므로 이를 고려하여 경계 값들의 합 ES를 계산하면 하기의 수학식2와 같다.At this time, since the focus value acquisition region is divided into each zone and each weight is different, the sum ES of the boundary values is calculated in consideration of this, and is represented by Equation 2 below.

Figure 112004033849117-PAT00001
Figure 112004033849117-PAT00001

이와 동시에 결정된 초점 값 획득 영역의 화소 수를 카운트하여 카운트의 합 CS를 구하게 되며, 초점 값 F는 하기의 수학식3과 같이 구할 수 있다.At the same time, the sum CS of the counts is obtained by counting the number of pixels of the determined focus value obtaining region, and the focus value F can be obtained as shown in Equation 3 below.

Figure 112004033849117-PAT00002
Figure 112004033849117-PAT00002

즉, 초점 값 F는 경계 값들의 합 ES에서 카운트의 합 CS로 나눈, 경계 값들의 평균값으로 볼 수 있다.That is, the focal value F may be viewed as an average value of the boundary values divided by the sum of the boundary values ES and the sum CS of the counts.

이 때, 만약 어두운 환경이라면 저조도 잡음으로 인하여 초점 값이 전체적으로 단조 증가하지 않고, 국지적인 최대 값이 발생할 수 있다. 자동초점 조절을 하는데 있어서, 잡음으로 인한 최대 값의 발생은 영상의 초점이 정확히 맞지 않는 위치에서도 불안정한 동작을 일으킬 수 있다.In this case, if the environment is dark, the focus value may not increase monotonically due to the low light noise, and a local maximum may occur. In autofocusing, the generation of the maximum value due to noise can cause unstable operation even in a location where the image is not in focus.

도 7은 화면의 밝기에 따라 변하는 초점 값을 가변 증폭기의 이득 값을 이용하여 선형적으로 억제하는 방식을 도식화한 그래프이다.FIG. 7 is a graph illustrating a method of linearly suppressing a focus value that varies according to brightness of a screen by using a gain value of a variable amplifier.

따라서, 이를 방지하기 위해 도 7에 도시된 바와 같이 화면의 밝기에 따라 변하는 가변 증폭기의 이득 값의 크기에 따라 초점 값의 억제를 달리함으로써 해결할 수 있다. 즉, 가변 증폭기의 이득 값에 따라 그 기준 값(Threshold)의 최대 값과 최소 값으로 나눈 후 초점 값을 억제하게 된다. Therefore, in order to prevent this, as shown in FIG. 7, the suppression of the focus value may be solved by varying the focus value according to the gain value of the variable amplifier which varies according to the brightness of the screen. That is, after dividing the maximum value and the minimum value of the threshold value according to the gain value of the variable amplifier, the focus value is suppressed.

이 때, 경계 값이 가변 증폭기의 범위를 벗어나는 것을 방지하기 위해 기준 값의 최소 값과 최대 값의 차이는 항상 일정하게 둔다.At this time, the difference between the minimum value and the maximum value of the reference value is always kept constant so as to prevent the boundary value from moving out of the range of the variable amplifier.

이를 자세히 살펴보면, 가변 증폭기의 값이 기준 값의 최소 이하와 같은 일정 밝기 이상일 때는 앞단에서 구한 초점 값을 그대로 사용한다. 기준 최소 값과 기준 최대 값 사이 밝기에서는 가변 증폭기의 값이 커짐에 따라 선형적으로 초점 값을 억제(Suppression)하여 사용한다. 기준 최대 값 이상의 아주 어두운 환경에서의 초점 값은 원래 초점 값의 1/2 이하로 떨어지지 않게 제약을 둔다.In detail, when the value of the variable amplifier is above a certain brightness such as below the minimum value of the reference value, the focus value obtained from the previous stage is used as it is. In the brightness between the reference minimum value and the reference maximum value, the focus value is linearly suppressed as the variable amplifier value increases. Focus values in very dark environments above the reference maximum are constrained not to fall below half the original focus value.

이는 하기의 수학식4로 표현된다.This is represented by the following equation (4).

SubLevel = Edge_Mean * (GainMin-Gain), GainMin < Gain < GainMaxSubLevel = Edge_Mean * (GainMin-Gain), GainMin <Gain <GainMax

SubLevel = Edge_Mean , Gain ≤ GainMinSubLevel = Edge_Mean, Gain ≤ GainMin

SubLevel = Edge_Mean * SubMin , Gain ≥ GainMaxSubLevel = Edge_Mean * SubMin, Gain ≥ GainMax

이처럼 구해진 초점 값은 도 1에 도시된 바와 같은 초점 값 평가부를 거쳐 렌즈가 초점에 맞게 렌즈를 구동하게 된다.The focal value thus obtained is driven by the lens to be in focus through the focus value evaluator as shown in FIG. 1.

전술한 바와 같이 이루어지는 본 발명은, 영상에서 초점 값을 획득하는 영역의 크기, 분할된 영역의 가중치, 초점 값을 획득하는 필터의 다양한 적용을 그 특징으로 하기 때문에 주어진 환경에 적응적으로 자동 초점 획득이 가능하며, 화면의 밝기에 따라 구간을 나누어 초점 값의 억제 정도를 조절하여 어두운 곳에서 야기될 수 있는 초점 왜곡을 감소시킬 수 있으며, 기존의 방법보다 계산 과정이 간단하여 처리 시간을 크게 줄일 수 있으며, 이로 인해 하드웨어의 크기가 작도록 구현할 수 있음을 실시 예를 통해 알아보았다.As described above, the present invention is characterized in that the size of the area for obtaining the focus value in the image, the weight of the segmented area, and the various applications of the filter for obtaining the focus value are adapted, so that the automatic focus acquisition is adaptive to a given environment. By dividing the section according to the brightness of the screen, it is possible to adjust the degree of suppression of the focus value to reduce the focus distortion that may be caused in the dark place, and the calculation process is simpler than the conventional method, which greatly reduces the processing time. As a result, it has been found through the embodiment that the hardware can be implemented to have a small size.

본 발명의 기술 사상은 상기 바람직한 실시예에 따라 구체적으로 기술되었으나, 상기한 실시예는 그 설명을 위한 것이며 그 제한을 위한 것이 아님을 주의하여야 한다. 또한, 본 발명의 기술 분야의 통상의 전문가라면 본 발명의 기술 사상의 범위 내에서 다양한 실시예가 가능함을 이해할 수 있을 것이다. Although the technical idea of the present invention has been described in detail according to the above preferred embodiment, it should be noted that the above-described embodiment is for the purpose of description and not of limitation. In addition, those skilled in the art will understand that various embodiments are possible within the scope of the technical idea of the present invention.

상술한 본 발명은, 주어진 환경에 적응적으로 자동 초점 조절을 할 수 있고, 조도에 따라 야기될 수 있는 초점 왜곡을 감소시킬 수 있어, 자동 초점 조절 장치를 이용하는 시스템의 성능을 향상시키는 효과가 있다.The present invention described above can adaptively adjust autofocus to a given environment and reduce focus distortion that can be caused by illuminance, thereby improving the performance of a system using an autofocus control device. .

또한, 종래에 비해 하드웨어의 크기를 줄일 수 있어 생산성 및 집적도를 높이는 효과가 있다.In addition, the size of the hardware can be reduced compared to the prior art has the effect of increasing the productivity and integration.

Claims (12)

주어진 이미지 환경에 따라 적응적으로 초점 값을 획득하는 윈도우의 크기를 단계 별로 조절하고, 상기 윈도우로 부터 분할된 영역의 크기를 조절하며 상기 각 영역 별로 적용될 가중치와 경계 검출 필터를 선택하는 분할/선택수단;Partitioning / selection to adjust the size of a window adaptively obtaining a focus value according to a given image environment step by step, adjust the size of the divided region from the window, and select a weight and a boundary detection filter to be applied to each region. Way; 선택된 경계 검출 필터 마스크의 가중치를 이용하여 각 영역에서의 초점 값을 계산하는 초점 값 계산수단; 및Focus value calculating means for calculating a focus value in each region by using weights of the selected boundary detection filter mask; And 저조도 잡음에 대한 영향을 줄이기 위해 조도에 따라 상기 초점 값을 선택적으로 억제하는 초점 값 억제수단Focus value suppressing means for selectively suppressing the focus value according to the illuminance in order to reduce the influence on low light noise 을 포함하는 자동 초점 조절 장치.Auto focusing device comprising a. 제 1 항에 있어서,The method of claim 1, 상기 초점 값 계산수단은,The focus value calculating means, 상기 각 영역 별로 소정의 크기의 경계 검출 필터 마스크의 가중치를 곱한 후, 곱해진 값들의 합을 이용하여 화소의 경계 값을 검출하고, 모든 영역에서 얻어진 화소의 경계 값을 합산하여 ES를 산출하며, 상기 ES를 초점 값 획득 영역의 모든 화소의 수를 카운트한 CS로 나눈 것을 초점 값으로 하는 것을 특징으로 하는 자동 초점 조절 장치.After multiplying the weights of the edge detection filter masks having a predetermined size for each region, the boundary values of the pixels are detected using the sum of the multiplied values, the boundary values of the pixels obtained in all regions are added, and ES is calculated. And dividing the number of all pixels of the focus value acquisition area by the counted CS as a focus value. 제 1 항에 있어서,The method of claim 1, 상기 초점 값 억제수단은, The focus value suppressing means, 가변 증폭기의 기준 값에 따라 최소 값과 최대 값의 구간을 나눈 후 상기 초점 값을 억제하는 것을 특징으로 하는 자동 초점 조절 장치.And dividing the interval between the minimum value and the maximum value according to the reference value of the variable amplifier, thereby suppressing the focus value. 제 3 항에 있어서,The method of claim 3, wherein 상기 기준 값의 최대 값과 최소 값의 차이는 항상 일정한 것을 특징으로 하는 자동 초점 조절 장치.And the difference between the maximum value and the minimum value of the reference value is always constant. 제 4 항에 있어서,The method of claim 4, wherein 상기 가변 증폭기의 값이 기준 값의 최소 값보다 작은 일정 밝기 이상에서는 상기 초점 값을 그대로 사용하고, 상기 가변 증폭기의 값이 최대 값과 최소 값의 사이일 경우에는 상기 가변 증폭기의 값이 커짐에 따라 상기 초점 값을 선형적으로 억제하며, 상기 가변 증폭기의 값이 상기 최대 값 보다 큰 경우에는 상기 초점 값의 1/2 이하가 되지 않도록 하는 것을 특징으로 하는 자동 초점 조절 장치.When the value of the variable amplifier is equal to or greater than a predetermined brightness of less than the minimum value of the reference value, the focus value is used as it is, and when the value of the variable amplifier is between the maximum value and the minimum value, the value of the variable amplifier increases. And linearly suppressing the focus value, so that the value of the variable amplifier is not less than 1/2 of the focus value when the value of the variable amplifier is larger than the maximum value. 제 1 항 또는 제 2 항에 있어서,The method according to claim 1 or 2, 상기 경계 검출 필터는 고역 통과 필터, 소벨 필터 또는 라플라시안 필터 중 어느 하나를 포함하는 것을 특징으로 하는 자동 초점 조절 장치.The boundary detection filter includes any one of a high pass filter, a Sobel filter, or a Laplacian filter. 주어진 이미지의 환경에 따라 초점 값 획득을 위한 윈도우의 크기를 결정하는 단계;Determining a size of a window for obtaining a focus value according to the environment of a given image; 상기 윈도우로 부터 영역을 분할하는 단계;Dividing an area from the window; 주어진 이미지의 환경에 따라 경계 검출 필터를 선택하는 단계;Selecting a boundary detection filter according to the environment of a given image; 선택된 경계 검출 필터에서의 마스크의 가중치를 이용하여 각 영역에서의 초점 값을 계산하는 단계; 및Calculating a focus value in each region using weights of masks in the selected boundary detection filter; And 저조도 잡음에 대한 영향을 줄이기 위해 조도에 따라 상기 초점 값을 억제하는 단계Suppressing the focus value according to the illuminance to reduce the effect on low light noise 를 포함하는 자동 초점 조절 방법.Auto focusing method comprising a. 제 7 항에 있어서,The method of claim 7, wherein 상기 초점 값을 계산하는 단계는,Calculating the focus value, 상기 각 영역 별로 소정의 크기의 경계 검출 필터 마스크의 가중치를 곱하는 단계와, 곱해진 값들의 합을 이용하여 화소의 경계 값을 검출하는 단계와, 모든 영 역에서 얻어진 화소의 경계 값을 합산하여 ES를 산출하는 단계와, 상기 ES를 초점 값 획득 영역의 모든 화소의 수를 카운트한 CS로 나누어 초점 값을 산출하는 단계를 포함하는 것을 특징으로 하는 자동 초점 조절 방법.Multiplying the weights of the boundary detection filter masks having a predetermined size for each region, detecting the boundary values of pixels using the sum of the multiplied values, and adding the boundary values of the pixels obtained in all regions to add ES. And calculating the focus value by dividing the ES by the number CS of all pixels of the focus value acquisition area. 제 7 항에 있어서,The method of claim 7, wherein 상기 초점 값을 억제하는 단계는, Suppressing the focus value, 가변 증폭기의 기준 값에 따라 최소 값과 최대 값의 구간을 나눈 후 상기 초점 값을 억제하는 것을 특징으로 하는 자동 초점 조절 방법.And dividing the interval between the minimum value and the maximum value according to the reference value of the variable amplifier. 제 9 항에 있어서,The method of claim 9, 상기 기준 값의 최대 값과 최소 값의 차이는 항상 일정한 것을 특징으로 하는 자동 초점 조절 방법.And the difference between the maximum value and the minimum value of the reference value is always constant. 제 10 항에 있어서,The method of claim 10, 상기 초점 값을 억제하는 단계에서,In the step of suppressing the focus value, 상기 가변 증폭기의 값이 기준 값의 최소 값보다 작은 일정 밝기 이상에서는 상기 초점 값을 그대로 사용하고, 상기 가변 증폭기의 값이 최대 값과 최소 값의 사이일 경우에는 상기 가변 증폭기의 값이 커짐에 따라 상기 초점 값을 선형적으로 억제하며, 상기 가변 증폭기의 값이 상기 최대 값 보다 큰 경우에는 상기 초점 값의 1/2 이하가 되지 않도록 하는 것을 특징으로 하는 자동 초점 조절 방법.When the value of the variable amplifier is equal to or greater than a predetermined brightness of less than the minimum value of the reference value, the focus value is used as it is, and when the value of the variable amplifier is between the maximum value and the minimum value, the value of the variable amplifier increases. And suppressing the focus value linearly and not to be 1/2 or less of the focus value when the value of the variable amplifier is larger than the maximum value. 제 7 항 또는 제 8 항에 있어서,The method according to claim 7 or 8, 상기 경계 검출 필터는 고역 통과 필터, 소벨 필터 또는 라플라시안 필터 중 어느 하나를 포함하는 것을 특징으로 하는 자동 초점 조절 방법.The boundary detection filter comprises any one of a high pass filter, a Sobel filter, or a Laplacian filter.
KR1020040059496A 2004-07-29 2004-07-29 Apparatus for adaptive auto focus control and auto focus controlling method KR100577523B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020040059496A KR100577523B1 (en) 2004-07-29 2004-07-29 Apparatus for adaptive auto focus control and auto focus controlling method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020040059496A KR100577523B1 (en) 2004-07-29 2004-07-29 Apparatus for adaptive auto focus control and auto focus controlling method

Publications (2)

Publication Number Publication Date
KR20060010905A true KR20060010905A (en) 2006-02-03
KR100577523B1 KR100577523B1 (en) 2006-05-10

Family

ID=37121028

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020040059496A KR100577523B1 (en) 2004-07-29 2004-07-29 Apparatus for adaptive auto focus control and auto focus controlling method

Country Status (1)

Country Link
KR (1) KR100577523B1 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1688828A1 (en) 2005-02-04 2006-08-09 Samsung Electronics Co., Ltd. Key input device combined with key display unit and digital appliance having the same
KR100700263B1 (en) * 2005-08-03 2007-03-26 매그나칩 반도체 유한회사 Cmos image sensor having capability of auto focus control and apparatus of camera having the same
CN103873740A (en) * 2012-12-07 2014-06-18 富士通株式会社 Image processing apparatus and information processing method
KR20160007011A (en) * 2014-07-10 2016-01-20 한화테크윈 주식회사 Auto focussing system and method

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101967336B1 (en) 2012-12-06 2019-08-13 엘지이노텍 주식회사 AF control method for Camera Module
KR102130759B1 (en) 2014-06-30 2020-07-06 한화테크윈 주식회사 Auto-Focusing System
CN106303044B (en) * 2016-08-18 2019-08-16 努比亚技术有限公司 A kind of mobile terminal and obtain the method to coke number

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR930007228A (en) * 1991-09-30 1993-04-22 강진구 How to adjust auto focus
KR100429858B1 (en) * 1997-05-21 2004-06-16 삼성전자주식회사 Apparatus and method for adjusting focus using adaptive filter
KR20000004844U (en) * 1998-08-17 2000-03-15 구자홍 Focusing device of PC camera
JP4255186B2 (en) * 1999-10-20 2009-04-15 イーストマン コダック カンパニー Focusing device
KR100363134B1 (en) * 2000-06-09 2002-11-30 김지한 Relay system for launching and managing chain store using internet

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1688828A1 (en) 2005-02-04 2006-08-09 Samsung Electronics Co., Ltd. Key input device combined with key display unit and digital appliance having the same
KR100700263B1 (en) * 2005-08-03 2007-03-26 매그나칩 반도체 유한회사 Cmos image sensor having capability of auto focus control and apparatus of camera having the same
CN103873740A (en) * 2012-12-07 2014-06-18 富士通株式会社 Image processing apparatus and information processing method
US9418406B2 (en) 2012-12-07 2016-08-16 Fujitsu Limited Anisotropy in resolution spatial filter image processing apparatus, and information processing method
CN103873740B (en) * 2012-12-07 2017-06-09 富士通株式会社 Image processing apparatus and information processing method
KR20160007011A (en) * 2014-07-10 2016-01-20 한화테크윈 주식회사 Auto focussing system and method

Also Published As

Publication number Publication date
KR100577523B1 (en) 2006-05-10

Similar Documents

Publication Publication Date Title
US7899264B2 (en) Method of determining a measure of edge strength and focus
US8023000B2 (en) Image pickup apparatus, image processing apparatus, image pickup method, and image processing method
EP1944732A2 (en) Apparatus and method for blur detection, and apparatus and method for blur correction
US20130100334A1 (en) Method and System for an Adaptive Auto-Focus Algorithm
US10306152B1 (en) Auto-exposure controller, auto-exposure control method and system based on structured light
US7969501B2 (en) Method and apparatus for auto-focusing in image sensor
JP2007199633A (en) Focusing detector
US9554058B2 (en) Method, apparatus, and system for generating high dynamic range image
US10116857B2 (en) Focus adjustment apparatus, control method of focus adjustment apparatus, and imaging apparatus
KR100429858B1 (en) Apparatus and method for adjusting focus using adaptive filter
EP3226547B1 (en) Controlling signal-to-noise ratio in high dynamic range automatic exposure control imaging
US11350881B2 (en) Method for suppressing image noise in a video image stream, and associated medical image recording system and computer program product
KR100577523B1 (en) Apparatus for adaptive auto focus control and auto focus controlling method
CN112689082B (en) Imaging device with event camera
KR102025361B1 (en) Auto focussing system and method
US7577351B2 (en) Image data processing method and apparatus
EP3462725A1 (en) Image processing method, image processing apparatus, imaging apparatus, and program
JPH10170817A (en) Method and device for calculating focal position, and electron microscope using the same
US20180352153A1 (en) Image processing apparatus that generates evaluation value for evaluating luminance of image data, image capturing apparatus, method for processing image, and program
JP3134446B2 (en) Focus detection device
JP5219771B2 (en) Video processing apparatus and video processing apparatus control method
CN114022484B (en) Image definition value calculation method and terminal for point light source scene
JP7166903B2 (en) IMAGE PROCESSING DEVICE, CONTROL METHOD THEREOF, AND PROGRAM
JP2014216692A (en) Photographing device with high resolution processing
EP2621161A2 (en) Method and system for an adaptive auto-focus algorithm

Legal Events

Date Code Title Description
A201 Request for examination
N231 Notification of change of applicant
E701 Decision to grant or registration of patent right
GRNT Written decision to grant
FPAY Annual fee payment

Payment date: 20110330

Year of fee payment: 6

LAPS Lapse due to unpaid annual fee