KR100740625B1 - Method for sharing line memory in image processing system - Google Patents
Method for sharing line memory in image processing system Download PDFInfo
- Publication number
- KR100740625B1 KR100740625B1 KR1020050133588A KR20050133588A KR100740625B1 KR 100740625 B1 KR100740625 B1 KR 100740625B1 KR 1020050133588 A KR1020050133588 A KR 1020050133588A KR 20050133588 A KR20050133588 A KR 20050133588A KR 100740625 B1 KR100740625 B1 KR 100740625B1
- Authority
- KR
- South Korea
- Prior art keywords
- data
- unit
- bad pixel
- input
- value
- Prior art date
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N9/00—Details of colour television systems
- H04N9/64—Circuits for processing colour signals
- H04N9/646—Circuits for processing colour signals for image enhancement, e.g. vertical detail restoration, cross-colour elimination, contour correction, chrominance trapping filters
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T3/00—Geometric image transformation in the plane of the image
- G06T3/40—Scaling the whole image or part thereof
- G06T3/4015—Demosaicing, e.g. colour filter array [CFA], Bayer pattern
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N7/00—Television systems
- H04N7/01—Conversion of standards, e.g. involving analogue television standards or digital television standards processed at pixel level
- H04N7/0135—Conversion of standards, e.g. involving analogue television standards or digital television standards processed at pixel level involving interpolation processes
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Image Processing (AREA)
Abstract
본 발명은 영상 처리 시스템의 라인 메모리 공유 방법에 관한 것으로서, 6×6 데이터에 대한 불량픽셀 처리와 5×5 데이터에 대한 컬러 보간 처리에 사용되는 라인 메모리를 공유하도록 하기 위한 것이다. 본 발명에 따르면, 시스템의 부피를 줄일 수 있다.BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a line memory sharing method of an image processing system, and to share line memory used for bad pixel processing for 6x6 data and color interpolation processing for 5x5 data. According to the invention, the volume of the system can be reduced.
라인 메모리, 공유, 불량픽셀, 보정, 컬러 보간 Line memory, shared, bad pixels, correction, color interpolation
Description
도 1은 종래의 영상 처리 시스템에서 불량픽셀 보정부와 컬러 보간부의 배치를 설명하기 위한 개략도,1 is a schematic diagram for explaining a layout of a bad pixel correcting unit and a color interpolation unit in a conventional image processing system;
도 2는 본 발명에 따른 영상 처리 시스템의 제1실시예 구성도,2 is a configuration diagram of a first embodiment of an image processing system according to the present invention;
도 3은 도 2의 불량픽셀 보정부의 일실시예 상세 구조도,3 is a detailed structural diagram of an embodiment of a bad pixel correction unit of FIG. 2;
도 4b는 도 4a의 베이어 패턴을 3×3 구조의 성분으로 분리한 것을 설명하기 위한 일예시도,FIG. 4B is an exemplary view illustrating the separation of the Bayer pattern of FIG. 4A into components having a 3 × 3 structure; FIG.
도 5는 도 3의 패턴 비교부의 일실시예 상세 구조도,5 is a detailed structural diagram of an embodiment of the pattern comparison unit of FIG. 3;
도 6은 본 발명에 따른 영상 처리 시스템의 제2실시예 구성도,6 is a configuration diagram of a second embodiment of an image processing system according to the present invention;
도 7은 도 6의 불량픽셀 보정부의 일실시예 상세 구조도,7 is a detailed structural diagram of an embodiment of a bad pixel correction unit of FIG. 6;
도 8은 도 7의 불량픽셀 검출부의 일실시예 상세 구조도,8 is a detailed structural diagram of an embodiment of a bad pixel detection unit of FIG. 7;
도 9는 도 7의 핫픽셀 검출부의 일실시예 상세 구조도.9 is a detailed structural diagram of an embodiment of the hot pixel detection unit of FIG. 7;
<도면의 주요 부분에 대한 부호의 설명><Explanation of symbols for the main parts of the drawings>
210 : 불량픽셀 보정부 220 : 컬러 보간부210: bad pixel correction unit 220: color interpolation unit
본 발명은 영상 처리 시스템의 라인 메모리 공유 방법에 관한 것으로서, 보다 상세하게는 불량픽셀 보정 및 컬러 보간 장치에 사용되는 라인 메모리를 공유하기 위한 영상 처리 시스템의 라인 메모리 공유 방법에 관한 것이다.The present invention relates to a line memory sharing method of an image processing system, and more particularly, to a line memory sharing method of an image processing system for sharing a line memory used in a bad pixel correction and color interpolation apparatus.
영상 처리 시스템은 불량픽셀 보정부와 컬러 보간부를 포함하여 구성되며, 이 두 장치는 순차적으로 그 처리가 이루어지는 것이 일반적이다.The image processing system includes a bad pixel correction unit and a color interpolation unit, and these two devices generally perform the processing sequentially.
도 1은 종래의 영상 처리 시스템에서 불량픽셀 보정부와 컬러 보간부의 배치를 설명하기 위한 개략도이다.1 is a schematic diagram for explaining a layout of a bad pixel corrector and a color interpolator in a conventional image processing system.
도면에 도시된 바와 같이, 종래의 영상 처리 시스템의 불량픽셀 보정부(110)와 컬러 보간부(120)를 포함하여 구성되는데, 보통 양자 모두 5×5 데이터가 입력되는 것이 일반적이다. As shown in the figure, it includes a bad
따라서, 불량픽셀 보정부(110) 및 컬러 보간부(120)는 각각 4개의 라인 메모리(130, 140)가 필요하다.Therefore, the
그러나, 이와 같은 종래의 영상 처리 시스템은, 각 디바이스마다 라인 메모리가 요구되는 관계로 시스템의 부피가 커지게 되는 문제점이 있다.However, such a conventional image processing system has a problem in that the volume of the system becomes large because a line memory is required for each device.
본 발명은 상기한 바와 같은 문제점을 해결하기 위하여 제안된 것으로, 6×6 데이터에 대한 불량픽셀 처리와 5×5 데이터에 대한 컬러 보간 처리에 사용되는 라인 메모리를 공유하도록 하기 위한, 영상 처리 시스템의 라인 메모리 공유 방법을 제공하는데 그 목적이 있다..SUMMARY OF THE INVENTION The present invention has been proposed to solve the above-described problems, and is intended to share a line memory used for bad pixel processing for 6x6 data and color interpolation processing for 5x5 data. Its purpose is to provide a line memory sharing method.
상기한 바와 같은 목적을 달성하기 위해, 본 발명의 바람직한 실시예에 따르면, 6×6 데이터를 입력으로 하여 그 데이터의 불량픽셀을 보정하여 1픽셀의 데이터를 출력하기 위한 불량픽셀 보정부와, 5×5 데이터를 입력으로 하여 컬러 보간을 수행하기 위한 컬러 보간부와, 상기 불량픽셀 보정부에 6×6 구조의 영상 데이터를 입력하기 위하여 사용되는 5개의 라인 메모리와, 상기 컬러 보간부에 5×5 구조의 영상 데이터를 입력하기 위하여 사용되는 4개의 라인 메모리를 포함하는 영상 처리 시스템의 라인 메모리 공유 방법에 있어서, 상기 불량 픽셀 보정부의 출력을 저장하여 상기 컬러 보간부로 입력하기 위한 4개의 라인 메모리의 출력을 상기 불량 픽셀 보정부의 입력으로 하여, 상기 불량픽셀 보정부의 입력을 위한 4개의 라인 메모리와 상기 컬러 보간부의 입력을 위한 4개의 라인 메모리를 공유하는 것을 특징으로 하는 라인 메모리 공유 방법이 제공된다.In order to achieve the above object, according to a preferred embodiment of the present invention, a bad pixel correction unit for outputting 1 pixel of data by correcting the bad pixels of the data as 6 × 6 data input, 5 A color interpolation unit for performing color interpolation by inputting x5 data, five line memories used for inputting image data having a 6x6 structure into the bad pixel correction unit, and 5x by the color interpolation unit. A line memory sharing method of an image processing system including four line memories used for inputting image data having five structures, the method comprising: four lines for storing an output of the bad pixel correcting unit and inputting the color interpolation unit Four lines of memory for inputting the bad pixel correcting unit and the color interpolator using the output of the memory as the input of the bad pixel correcting unit. The lines shared memory characterized in that sharing a four line memory for input is provided.
또한, 본 발명의 다른 실시예에 따르면, 6×6 데이터를 입력으로 하여 그 데이터의 불량픽셀을 보정하여 6×6 데이터 데이터를 출력하기 위한 불량픽셀 보정부와, 5×5 데이터를 입력으로 하여 컬러 보간을 수행하기 위한 컬러 보간부와, 상기 불량픽셀 보정부에 6×6 구조의 영상 데이터를 입력하기 위하여 사용되는 5개의 라인 메모리와, 상기 컬러 보간부에 5×5 구조의 영상 데이터를 입력하기 위하여 사용되는 4개의 라인 메모리를 포함하는 영상 처리 시스템의 라인 메모리 공유 방법에 있어서, 상기 불량 픽셀 보정부의 출력 중 5라인의 데이터를 상기 컬러 보간부의 입력으로 하여, 상기 컬러 보간부의 입력을 위한 4개의 라인 메모리를 줄이는 것을 특징으로 하는 라인 메모리 공유 방법이 제공된다.In addition, according to another embodiment of the present invention, a bad pixel correction unit for outputting the 6 × 6 data data by correcting the bad pixels of the data by inputting 6 × 6 data, and 5 × 5 data as input A color interpolation unit for performing color interpolation, five line memories used for inputting 6 × 6 image data into the bad pixel correction unit, and 5 × 5 image data input to the color interpolation unit. A line memory sharing method of an image processing system including four line memories used for performing the above operation, wherein the input of the color interpolation unit is performed by using 5 lines of data among the outputs of the bad pixel correction unit as the input of the color interpolation unit. A line memory sharing method is provided which reduces four line memories for the present invention.
상술한 목적, 특징들 및 장점은 첨부된 도면과 관련한 다음의 상세한 설명을 통하여 보다 분명해 질 것이다. 우선 각 도면의 구성요소들에 참조 번호를 부가함에 있어서, 동일한 구성요소들에 한해서는 비록 다른 도면상에 표시되더라도 가능한 한 동일한 번호를 가지도록 하고 있음에 유의하여야 한다. 이하, 첨부된 도면을 참조하여 본 발명에 따른 바람직한 일실시예를 상세히 설명한다.The above objects, features and advantages will become more apparent from the following detailed description taken in conjunction with the accompanying drawings. First of all, in adding reference numerals to the components of each drawing, it should be noted that the same components have the same number as much as possible even if displayed on different drawings. Hereinafter, exemplary embodiments of the present invention will be described in detail with reference to the accompanying drawings.
도 2는 본 발명에 따른 영상 처리 시스템의 제1실시예 구성도이다.2 is a configuration diagram of a first embodiment of an image processing system according to the present invention.
도면에 도시된 바와 같이, 본 발명의 영상 처리 시스템은 불량픽셀 보정부(210) 및 컬러 보간부(220)를 포함하여 구성되며, 4개의 라인 메모리(230)와 2개의 라인 메모리(240, 250)를 포함하여 구성된다. 라인의 진행 방향은 도 2에 도시된 바와 같다.As shown in the figure, the image processing system of the present invention includes a bad
본 발명의 불량픽셀 보정부(210)는 6×6 마스크에 대하여 1픽셀의 화소를 출력하는 것으로서, 먼저 이에 대하여 설명하기로 한다.The defective
도 3은 도 2의 불량픽셀 보정부의 일실시예 상세 구조도이다.3 is a detailed structural diagram of an embodiment of a bad pixel correction unit of FIG. 2.
도면에 도시된 바와 같이, 본 발명의 불량픽셀 처리 장치는, 성분 분리부(310), 패턴 비교부(320) 및 보정부(330)를 포함하여 구성된다.As illustrated in the drawing, the bad pixel processing apparatus of the present invention includes a
성분 분리부(310)는 입력되는 6×6 베이어 패턴(bayer pattern)을 도 4와 같이 3×3 구조의 4개의 성분으로 분리한다. 도 4a는 도 3에 입력되는 6×6 베이어 패턴 이미지의 일예시도이고, 도 4b는 도 4a의 베이어 패턴을 3×3 구조의 성분으로 분리한 것을 설명하기 위한 일예시도이다.The
도면에 도시된 바와 같이, 본 발명의 성분 분리부(410)는 6×6 베이어 패턴을 동일한 성분 즉, R(red), Gr(GR라인의 G; green), Gb(GB라인의 G) 및 B(blue)의 성분으로만 구성된 3×3 구조의 데이터로 분리한다.As shown in the figure, the component separator 410 of the present invention uses the same component, i.e., R (red), Gr (G in green line; green), Gb (G in line GB) and the same component. The data is separated into a 3 × 3 data structure composed only of B (blue) components.
본 발명의 설명에서는, 도 4b의 ‘B5’를 도 2a의 중심 화소로 가정하고 보정하는 것을 설명하기로 하고, 이후 일반화하기로 하자. In the description of the present invention, assuming that 'B5' of FIG. 4B is assumed to be the center pixel of FIG. 2A will be described, and then generalized.
패턴 비교부(420)는 각 성분 데이터의 패턴(중앙값(median)을 기준으로 한 화소값들의 분포임. 이하 같다)을 구한 뒤, 중심 화소가 포함된 성분의 패턴과 다른 성분들의 패턴을 비교하여, 중심 화소가 포함된 성분을 기준으로 한 측정값을 구하고, 중심 화소가 포함된 성분에서 중심 화소와 주위 화소값들을 비교하여 중심 화소를 기준으로 한 측정값을 구한다. 이하, 도면을 참조하여 상세히 설명하기로 하자.The pattern comparison unit 420 obtains a pattern of each component data (the distribution of pixel values based on a median. The same applies below), and then compares the pattern of the component including the center pixel with the pattern of other components. The measured value based on the component including the center pixel is obtained, and the measured value based on the center pixel is obtained by comparing the center pixel and the surrounding pixel values in the component including the center pixel. Hereinafter, with reference to the drawings will be described in detail.
도 5는 도 3의 패턴 비교부의 일실시예 상세 구조도이다.5 is a detailed structural diagram of an example of the pattern comparison unit of FIG. 3.
도면에 도시된 바와 같이, 본 발명의 패턴 비교부(320)는, 중앙값 검출부(321), 절대값 검출부1(322), 차이값 검출부(323), 비교값 검출부(324), 외부 플래 그 생성부(325), 절대값 검출부2(326) 및 내부 플래그 생성부(327)를 포함하여 구성된다. 도면에서는 입력(Gr, Gb, R, B) 신호를 제외하고는 신호의 흐름을 하나의 선으로 처리하였으나, 그에 다양한 데이터가 포함되는 것은 본 발명이 속하는 기술분야에서 통상의 지식을 가진 자에게 자명하다.As shown in the drawing, the
중앙값 검출부(321)는 입력되는 3×3 구조의 Gr, R, B 및 Gb 데이터의 중앙값을 각각 검출한다. 위 데이터에 상응하는 중앙값을 각각 M1, M2, M3 및 M4라 하자.The
절대값 검출부1(322)는 Gr 데이터의 경우를 설명하여 보면, 각 구성 원소(Gri, i=1~9)에서 중앙값 M1을 뺀 값의 절대값 Abs_Gri를 검출한다. R, B 및 Gb 데이터에 대해서도 마찬가지로 각 구성 원소(Ri, Bi 및 Gbi, i=1~9)에서 각각 중앙값 M2, M3 및 M4를 뺀 값의 절대값 Abs_Ri, Abs_Bi 및 Abs_Gbi를 검출한다. The absolute
차이값 검출부(323)는 중심 화소 B5를 가지는 B 데이터의 절대값 검출부1(322)의 출력인 Abs_Bi에서 나머지 데이터의 절대값 검출부1(322)의 출력인 Abs_Gri, Abs_Ri 및 Abs_Gbi를 각각 뺀 값의 절대값인 Diff1_i, Diff2_i 및 Diff3_i를 검출한다. The
비교값 검출부(324)는 외부 플래그 생성을 위하여, 위 Diff1_i, Diff2_i 및 Diff3_i를 합한 값 COMP_i를 생성한다.The
외부 플래그 생성부(325)는 위에서 검출한 비교값과 입력되는 불량픽셀 임계값(dead_threshold) 및 핫픽셀 임계값(hot_threshold)을 비교하여, 불량픽셀 및 핫픽셀의 존재 여부에 대한 플래그를 생성한다. 이때, 불량픽셀 임계값 (dead_threshold) 및 핫픽셀 임계값(hot_threshold)은 조정 가능한 값이다.The
즉, 외부 플래그 생성부(325)는 각 원소에 대한 비교값과 불량픽셀 임계값을 각각 비교하여 불량픽셀 임계값보다 큰 비교값이 있고, 이때 i가 5인 경우(즉 중심 화소에 대한 비교값이 불량픽셀 임계값보다 큰 경우)에는 불량픽셀이 있는지에 대한 플래그(dead_flag)를 1로 설정한다. 그 외의 경우에 dead_flag는 0이다.That is, the
한편, 외부 플래그 생성부(325)는 각 원소에 대한 비교값과 핫픽셀 임계값을 각각 비교하여, 핫픽셀 임계값보다 큰 비교값이 있고, 이때 i가 5인 경우(즉 중심 화소에 대한 비교값이 핫픽셀 임계값보다 큰 경우)에는 핫픽셀이 있는지에 대한 플래그(hot_flag)를 1로 설정한다. 그 외의 경우에 hot_flag 는 0이다.On the other hand, the
이후 외부 플래그 생성부(325)는 dead_flag 또는 hot_flag이 1인 경우에는 외부 플래그(external_flag)을 1로 설정한다. 그 외의 경우(즉, dead_flag 및 hot_flag이 모두 0인 경우)에는 외부 플래그를 0으로 설정하여 도 3의 보정부(330)로 출력한다.Thereafter, the
한편, 절대값 검출부2(326)는 중심 화소 B5를 포함하는 B 데이터의 각 원소(B5는 제외)에서 중심 화소값을 뺀 값의 절대값인 Abs_Ci를 검출한다. On the other hand, the
내부 플래그 생성부(327)는 인가되는 조도 분류를 위한 임계값(Y_threshold)과 3×3 데이터의 중앙값인 M1~M4를 이용하여 내부 플래그를 위한 임계값 thr을 설정하고, 이에 의해 내부 플래그를 생성한다. Y_threshold는 시스템에 따라 조정 가능하다.The
각 성분의 중앙값의 산술평균을 Y_m으로 정의했을 때, 내부 플래그 생성부 (327)는 Y_m이 Y_threshold보다 작은 경우에는 thr을 0으로 설정하고, 그렇지 않은 경우에는 thr을 50으로 한다. 다만, 이에 한정되는 것은 아니며, 시스템에 따라 그 값이 달라질 수 있을 것이다. 이렇게 설정한 thr을 절대값 검출부2(326)가 생성한 각 구성원소에 대한 절대값과 비교하여, 8개의 값 중 어느 하나라도 thr보다 작은 경우에는 내부 플래그(internal_flag)를 0으로 설정하고, 그렇지 않은 경우(즉, 모든 원소에 대한 절대값이 thr보다 큰 경우)에는 내부 플래그를 1로 설정하여 보정부(330)에 전달한다.When the arithmetic mean of the median value of each component is defined as Y_m, the internal
보정부(330)는 외부 플래그 및 내부 플래그가 모두 1인 경우에는 출력을 3×3 구조의 B 데이터의 중앙값으로 출력하고, 그렇지 않은 경우에는 B5를 그대로 보정부(330)의 출력으로 한다.The
이와 같이, 본 발명의 불량픽셀 보정부(210)는 6×6 데이터를 입력으로 하고, 그 출력은 1픽셀의 데이터가 된다. 이 출력에 해당하는 라인을 도 2의 E 라인이라고 하였을 때, 본 발명의 영상 처리 시스템의 불량픽셀 보정부(210)는 이미 A 내지 D 라인을 출력한 상태이고, 이 중 3개의 라인인 B 내지 D 라인은 4개의 라인 메모리에 저장된 상태이다. As described above, the bad
이에 따라 5×5 데이터를 입력으로 하는 컬러 보간부(220)는 A 내지 E 라인을 입력으로 하며, 본 발명의 불량픽셀 보정부(210)는 이미 불량픽셀 보정부(210)에 의해 연산된 데이터 라인인 B 내지 D 라인과 현재 연산중인 E 라인과, 아직 연산되지 않은 F 및 G라인을 입력으로 한다. 따라서 본 발명에 따르면, 불량픽셀 보정부(210)와 컬러 보간부(220)의 입력을 4개의 라인 메모리(230)가 공유하게 되며, 그 외, 불량픽셀 보정부(210)의 입력을 위하여 필요한 F 라인과, 컬러 보간을 위해 필요한 A 라인의 2개의 라인 메모리가 더 필요하게 된다.Accordingly, the
따라서, 본 발명에 따르면, 종래 8개의 라인 메모리가 필요한 시스템에서, 4개를 공유하게 함으로써, 2개의 라인 메모리를 줄일 수 있다. 또한, 종래에 따르면 불량픽셀 보정부는 6×6 데이터를 입력으로 하기 위하여 5개의 라인 메모리가 필요하고, 컬러 보간부는 5×5 데이터를 입력으로 하기 위하여 4개의 라인 메모리를 필요로 하므로, 총 9개의 라인 메모리를 필요로 하게 되지만, 본 발명에 따르면, 4개의 라인 메모리를 공유할 수 있으므로, 3개의 라인 메모리를 줄일 수 있다.Therefore, according to the present invention, in a system requiring eight line memories, two line memories can be reduced by allowing four to be shared. In addition, according to the related art, the bad pixel compensator requires 5 line memories to input 6 × 6 data, and the color interpolator requires 4 line memories to input 5 × 5 data. Although line memory is required, according to the present invention, since four line memories can be shared, three line memories can be reduced.
한편, 본 발명의 불량픽셀 보정부(210)는 6×6 데이터를 입력으로 하는 경우에 대하여 설명하였으나, 5×5 데이터를 입력으로 하는 일반적인 불량픽셀 처리장치에 의하면 총 5개의 라인 메모리가 필요하게 되므로, 3개의 라인 메모리를 줄일 수 있다.On the other hand, the bad
도 6은 본 발명에 따른 영상 처리 시스템의 제2실시예 구성도이다.6 is a configuration diagram of a second embodiment of an image processing system according to the present invention.
도면에 도시된 바와 같이, 본 발명의 영상 처리 시스템은 불량픽셀 보정부(610) 및 컬러 보간부(620)를 포함하여 구성되며, 5개의 라인 메모리(630)를 포함하여 구성된다. 라인의 진행 방향은 도 6에 도시된 바와 같다.As shown in the figure, the image processing system of the present invention includes a bad
본 발명의 불량픽셀 보정부(610)는 6×6 마스크에 대하여 6×6 데이터를 출력하는 것으로서, 먼저 이에 대하여 설명하기로 한다.The defective
도 7은 도 6의 불량픽셀 보정부의 일실시예 상세 구조도이다.7 is a detailed structural diagram of an embodiment of a bad pixel correction unit of FIG. 6.
도면에 도시된 바와 같이, 본 발명에 따른 처리 장치는, 성분 분리부(710), 불량픽셀 검출부(720) 및 핫픽셀 검출부(730)를 포함하여 구성된다.As shown in the drawing, the processing apparatus according to the present invention includes a
성분 분리부(710)는 입력되는 6×6 베이어 패턴(bayer pattern)을 도 4와 같이 3×3 구조의 4개의 성분으로 분리한다. 이하에서는, 3×3 구조의 Gr, R, B 및 Gb 성분 데이터를 편의상 각각 C1, C2, C3 및 C4로 하기로 하자.The
불량픽셀 검출부(720)는 각 성분 데이터의 패턴을 구한 뒤, 다른 성분들의 패턴을 비교하여, 각 성분을 기준으로 한 측정값을 구하고, 이 측정값을 비교하여 불량픽셀인지 여부를 판단한다. 이하, 도면을 참조로 더욱 상세히 설명하기로 하자.The bad
도 8은 도 7의 불량픽셀 검출부의 일실시예 상세 구조도이다.8 is a detailed structural diagram of an exemplary bad pixel detection unit of FIG. 7.
도면에 도시된 바와 같이, 본 발명의 불량픽셀 검출부(720)는, 중앙값 검출부(721), 절대값 검출부(722), 비교값 검출부(723), 임계값 설정부(724) 및 출력 결정부(725)를 포함하여 구성된다. 도면에서 입력 신호(C1, C2, C3, C4)를 제외하고 신호의 흐름을 하나의 선으로 처리하였으나, 그에 다양한 데이터가 포함되는 것은 본 발명이 속하는 기술분야에서 통상의 지식을 가진 자에게 자명하다.As shown in the drawing, the bad
중앙값 검출부(721)는 입력되는 3×3 구조의 C1, C2, C3 및 C4 데이터의 중앙값을 각각 검출한다. 위 데이터에 상응하는 중앙값을 각각 M1, M2, M3 및 M4라 하자.The
절대값 검출부(722)는 예를 들어, C1 데이터의 경우를 설명하여 보면, 각 구성 원소(Gri, i=1~9)에서 중앙값 M1을 뺀 값의 절대값 Abs_1i를 검출한다. C2, C3 및 C4 데이터에 대해서도 마찬가지로 각 구성 원소(Ri, Bi 및 Gbi, i=1~9)에서 각각 중앙값 M2, M3 및 M4를 뺀 값의 절대값 Abs_2i, Abs_3i 및 Abs_4i를 검출한다. For example, the absolute
비교값 검출부(723)는 위에서 구한 절대값 검출부(722)의 출력에 대하여, 한 출력에서 다른 출력을 뺀 값의 절대값을 구하여 이를 합산하여 비교값을 구한다. 즉, Abs_1i에서 나머지 Abs_2i, Abs_3i 및 Abs_4i을 뺀 값의 각 절대값을 구하고, 이를 합산하여 COMP_1i를 구한다. 이와 같은 방식으로 COMP_2i, COMP_3i 및 COMP_4i를 구한다. The
임계값 설정부(724)는 인가되는 조도 분류를 위한 임계값(Y_threshold)과 3×3 데이터의 중앙값인 M1~M4를 이용하여 내부 플래그를 위한 임계값 thr을 설정한다. Y_threshold는 시스템에 따라 조정 가능하다. 각 성분 데이터의 중앙값의 산술평균을 Y_m으로 정의했을 때, 임계값 설정부(724)는 Y_m이 Y_threshold보다 작은 경우에는 thr을 0으로 설정하고, 그렇지 않은 경우에는 thr을 50으로 한다. 다만, 이에 한정되는 것은 아니며, 시스템에 따라 그 값이 달라질 수 있을 것이다.The
출력 결정부(725)는 위 비교값 검출부(723)가 검출한 4개의 비교값과 인가되는 불량픽셀 임계값(dead_threshold)을 각각 비교하여, 불량픽셀 임계값보다 큰 비교값이 없는 경우에는 원영상을 출력한다. 즉 3×3 크기의 Cj(j=1~4) 영상을 그대로 출력하게 된다. 따라서, 출력 결정부(125)가 출력하는 데이터는 6×6 크기의 원영상이 된다. 이하에서,‘Size3×3_Cj1’은 3×3 크기의 Cj 데이터의 1번째 구성원소를 말하는 것이다. The
출력 결정부(725)는 만약, 불량픽셀 임계값보다 큰 비교값이 있는 경우에는, 영상을 다시 구성하는데, 구성원소별로 픽셀을 구성하는 방법을 취한다. If there is a comparison value larger than the bad pixel threshold, the
Size3×3_Cj1(Size3×3_Cj의 1번째 원소, j=1~4임)을 구성하기 위하여 출력 결정부(725)는 1번째 원소에서 주위원소(즉, 도 5에서 Size3×3_Cj2, Size3×3_Cj5 및 Size3×3_Cj4)를 뺀 값의 절대값을 임계값 thr과 각각 비교하여, 어느 하나라도 임계값보다 작은 것이 있는 경우에는 원 입력값인 Size3×3_Cj1을 출력하고, 그렇지 않은 경우에는 주위 원소인 Size3×3_Cj2, Size3×3_Cj4 및 Size3×3_Cj5의 중앙값을 출력한다. In order to configure Size3 × 3_Cj1 (the first element of Size3 × 3_Cj, j = 1 to 4), the
또한, Size3×3_Cj2(Size3×3_Cj의 2번째 원소, j=1~4임)을 구성하기 위하여 출력 결정부(725)는 2번째 원소에서 주위원소(즉, Size3×3_Cj1, Size3×3_Cj3, Size3×3_Cj4, Size3×3_Cj5 및 Size3×3_Cj6)를 뺀 값의 절대값을 임계값 thr과 각각 비교하여, 어느 하나라도 임계값보다 작은 것이 있는 경우에는 원 입력값인 Size3×3_Cj2을 출력하고, 그렇지 않은 경우에는 주위 원소인 Size3×3_Cj1, Size3×3_Cj3, Size3×3_Cj4, Size3×3_Cj5 및 Size3×3_Cj6의 중앙값을 출력한다. 이와 같이, Size3×3_Cj(j=1~4)의 모든 구성원소에 대하여 출력값을 결정하여, Size3×3_Cj(j=1~4) 데이터를 도 7의 핫픽셀 결정부(730)로 전달한다.In addition, in order to configure Size3 × 3_Cj2 (the second element of Size3 × 3_Cj, j = 1 to 4), the
핫픽셀 결정부(730)는 입력되는 각 성분 데이터의 패턴을 구한 뒤, 다른 성분들의 패턴을 비교하여, 각 성분을 기준으로 한 측정값을 구하고, 이 측정값을 비교하여 핫픽셀인지 여부를 판단한다. 이하, 도면을 참조로 더욱 상세히 설명하기로 하자.The
도 9는 도 7의 핫픽셀 검출부의 일실시예 상세 구조도이다.9 is a detailed structural diagram of an embodiment of the hot pixel detection unit of FIG. 7.
도면에 도시된 바와 같이, 본 발명의 핫픽셀 검출부(730)는 중앙값 검출부(731), 절대값 검출부(732), 비교값 검출부(733) 및 출력 결정부(734)를 포함하여 구성된다. 도면에서 입력 신호(Size3×3C1, Size3×3C2, Size3×3C3, Size3×3C4)를 제외하고 신호의 흐름을 하나의 선으로 처리하였으나, 그에 다양한 데이터가 포함되는 것은 본 발명이 속하는 기술분야에서 통상의 지식을 가진 자에게 자명하다.As shown in the figure, the
중앙값 검출부(731)는 입력되는 3×3 구조의 C1, C2, C3 및 C4 데이터의 중앙값을 각각 검출한다. 위 데이터에 상응하는 중앙값을 각각 M5, M6, M7 및 M8라 하자.The
절대값 검출부(732)는 예를 들어, Size3×3C1 데이터의 경우를 설명하여 보면, 각 구성 원소(Size3×3C1i, i=1~9)에서 중앙값 M5을 뺀 값의 절대값 Abs_5i를 검출한다. Size3×3C2, Size3×3C3 및 Size3×3C4 데이터에 대해서도 마찬가지로 각 구성 원소(Size3×3C2i, Size3×3C3i 및 Size3×3C4i, i=1~9)에서 각각 중앙값 M6, M7 및 M8를 뺀 값의 절대값 Abs_6i, Abs_7i 및 Abs_8i를 검출한다. For example, the
비교값 검출부(733)는 위에서 구한 절대값 검출부(732)의 출력에 대하여, 한 출력에서 다른 출력을 뺀 값의 절대값을 구하여 이를 합산하여 비교값을 구한다. 즉, Abs_5i에서 나머지 Abs_6i, Abs_7i 및 Abs_8i를 뺀 값의 각 절대값을 구하고, 이를 합산하여 COMP_5i를 구한다. 이와 같은 방식으로 COMP_6i, COMP_7i 및 COMP_8i를 구한다.The
출력 결정부(734)는 위 비교값 검출부(733)가 검출한 4개의 비교값과 인가되는 핫픽셀 임계값(hot_threshold)을 각각 비교하여, 핫픽셀 임계값보다 큰 비교값 이 없는 경우에는 원영상을 출력한다. 즉 3×3 크기의 Cj(j=1~4) 영상을 그대로 출력하게 된다. 따라서, 출력 결정부(734)가 출력하는 데이터는 6×6 크기의 원영상이 된다. The
출력 결정부(734)는 만약, 핫픽셀 임계값보다 큰 비교값이 있는 경우에는, 영상을 다시 구성하는데, 구성원소별로 픽셀을 구성하는 방법을 취한다. If there is a comparison value larger than the hot pixel threshold, the
Size3×3_Cj1(Size3×3_Cj의 1번째 원소, j=1~4임)을 구성하기 위하여 출력 결정부(734)는 1번째 원소에서 주위원소(즉, 도 5에서 Size3×3_Cj2, Size3×3_Cj5 및 Size3×3_Cj4)를 뺀 값의 절대값을 불량픽셀 검출부(720)의 임계값 결정부(724)가 결정하여 전달한 임계값 thr과 각각 비교하여, 어느 하나라도 임계값보다 작은 것이 있는 경우에는 원 입력값인 Size3×3_Cj1을 출력하고, 그렇지 않은 경우에는 주위 원소인 Size3×3_Cj2, Size3×3_Cj4 및 Size3×3_Cj5의 중앙값을 출력한다. In order to construct Size3 × 3_Cj1 (the first element of Size3 × 3_Cj, j = 1 to 4), the
또한, Size3×3_Cj2(Size3×3_Cj의 2번째 원소, j=1~4임)을 구성하기 위하여 출력 결정부(734)는 2번째 원소에서 주위 원소(즉, 도 5에서 Size3×3_Cj1, Size3×3_Cj3, Size3×3_Cj4, Size3×3_Cj5 및 Size3×3_Cj6)를 뺀 값의 절대값을 임계값 thr과 각각 비교하여, 어느 하나라도 임계값보다 작은 것이 있는 경우에는 원 입력값인 Size3×3_Cj2을 출력하고, 그렇지 않은 경우에는 주위 원소인 Size3×3_Cj1, Size3×3_Cj3, Size3×3_Cj4, Size3×3_Cj5 및 Size3×3_Cj6의 중앙값을 출력한다. 이와 같이, Size3×3_Cj(j=1~4)의 모든 구성원소에 대하여 출력값을 결정하여, Size3×3_Cj(j=1~4) 데이터를 출력할 수 있다. 이에 따라 6×6 데이터가 출력된다.Further, in order to configure Size3 × 3_Cj2 (the second element of Size3 × 3_Cj, j = 1 to 4), the
따라서, 도 6의 컬러 보간부(620)는 불량픽셀 보정부의 6라인의 출력 중 5개를 입력으로 하여 컬러 보간을 수행할 수 있을 것이다.Accordingly, the color interpolator 620 of FIG. 6 may perform color interpolation by inputting five of the outputs of six lines of the bad pixel corrector.
본 발명의 제2실시예에 따르면, 불량픽셀 처리를 위하여 5개의 라인 메모리만을 필요로 하므로, 종래의 개별적으로 사용되는 8개의 라인 메모리를 3개 줄일 수 있을 것이다.According to the second embodiment of the present invention, since only five line memories are required for the bad pixel processing, three conventional eight individually used line memories can be reduced.
또한, 종래에 따르면 불량픽셀 보정부는 6×6 데이터를 입력으로 하기 위하여 5개의 라인 메모리가 필요하고, 컬러 보간부는 5×5 데이터를 입력으로 하기 위하여 4개의 라인 메모리를 필요로 하므로, 총 9개의 라인 메모리를 필요로 하게 되지만, 본 발명에 따르면, 5개의 라인 메모리를 공유할 수 있으므로, 4개의 라인 메모리를 줄일 수 있다.In addition, according to the related art, the bad pixel compensator requires 5 line memories to input 6 × 6 data, and the color interpolator requires 4 line memories to input 5 × 5 data. Although line memory is required, according to the present invention, since five line memories can be shared, four line memories can be reduced.
이상에서 설명한 본 발명은 전술한 실시예 및 첨부된 도면에 의해 한정되는 것이 아니고, 본 발명의 기술적 사상을 벗어나지 않는 범위 내에서 여러 가지 치환, 변형 및 변경이 가능하다는 것이 본 발명이 속하는 기술분야에서 통상의 지식을 가진 자에게 있어 명백할 것이다.The present invention described above is not limited to the above-described embodiments and the accompanying drawings, and various substitutions, modifications, and changes can be made in the art without departing from the technical spirit of the present invention. It will be clear to those of ordinary knowledge.
상기한 바와 같은 본 발명은, 불량픽셀 처리와 컬러 보간 처리에 사용되는 라인 메모리를 공유하도록 함으로써, 시스템의 부피를 줄일 수 있도록 하는 효과가 있다. The present invention as described above has the effect of reducing the volume of the system by sharing the line memory used for bad pixel processing and color interpolation processing.
Claims (2)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1020050133588A KR100740625B1 (en) | 2005-12-29 | 2005-12-29 | Method for sharing line memory in image processing system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1020050133588A KR100740625B1 (en) | 2005-12-29 | 2005-12-29 | Method for sharing line memory in image processing system |
Publications (2)
Publication Number | Publication Date |
---|---|
KR20070070746A KR20070070746A (en) | 2007-07-04 |
KR100740625B1 true KR100740625B1 (en) | 2007-07-18 |
Family
ID=38505991
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
KR1020050133588A KR100740625B1 (en) | 2005-12-29 | 2005-12-29 | Method for sharing line memory in image processing system |
Country Status (1)
Country | Link |
---|---|
KR (1) | KR100740625B1 (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR101586844B1 (en) | 2010-01-06 | 2016-02-02 | 삼성전자주식회사 | Image processing apparatus and method |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2000242549A (en) | 1999-02-22 | 2000-09-08 | Hitachi Ltd | Line memory constructing method and line memory |
KR20030078386A (en) * | 2002-03-29 | 2003-10-08 | 삼성전자주식회사 | A apparatus for processing image |
KR20040065806A (en) * | 2003-01-16 | 2004-07-23 | 엘지전자 주식회사 | Cubic convolution interpolation apparatus and method |
KR20050020287A (en) * | 2003-08-21 | 2005-03-04 | 삼성전자주식회사 | Frame Rate Conversion apparatus capable of sharing line memory for performing motion estimation and motion compensation and method thereof |
-
2005
- 2005-12-29 KR KR1020050133588A patent/KR100740625B1/en active IP Right Grant
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2000242549A (en) | 1999-02-22 | 2000-09-08 | Hitachi Ltd | Line memory constructing method and line memory |
KR20030078386A (en) * | 2002-03-29 | 2003-10-08 | 삼성전자주식회사 | A apparatus for processing image |
KR20040065806A (en) * | 2003-01-16 | 2004-07-23 | 엘지전자 주식회사 | Cubic convolution interpolation apparatus and method |
KR20050020287A (en) * | 2003-08-21 | 2005-03-04 | 삼성전자주식회사 | Frame Rate Conversion apparatus capable of sharing line memory for performing motion estimation and motion compensation and method thereof |
Also Published As
Publication number | Publication date |
---|---|
KR20070070746A (en) | 2007-07-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR100683415B1 (en) | Method for processing dead pixel | |
WO2007075065A1 (en) | Device of processing dead pixel | |
US9947258B2 (en) | Image processing method and image processing apparatus | |
US20140125847A1 (en) | Image processing apparatus and control method therefor | |
US11770624B2 (en) | Efficient and flexible color processor | |
JP4317619B2 (en) | Image processing device | |
US20180077392A1 (en) | Image processing apparatus, image processing method, and image processing program product | |
CN104717474A (en) | Image processing method and module | |
CN106500969B (en) | Display screen homogeneity testing method and display screen uniformity test system | |
US8823841B2 (en) | Method and apparatus for correcting for vignetting in an imaging system | |
TWI544785B (en) | Image downsampling apparatus and method | |
KR100740625B1 (en) | Method for sharing line memory in image processing system | |
US20070217706A1 (en) | Image processing apparatus, method of same, and program for same | |
NM et al. | Implementation of canny edge detection algorithm on fpga and displaying image through vga interface | |
JPS6149581A (en) | Video signal processor | |
JP2009194721A (en) | Image signal processing device, image signal processing method, and imaging device | |
JP2018174470A (en) | Noise reduction device and program | |
US20180082138A1 (en) | Semiconductor device | |
US20130038773A1 (en) | Image processing apparatus and control method for the same | |
Zhang et al. | The modified gradient edge detection method for the color filter array image of the CMOS image sensor | |
US20100302400A1 (en) | Specific Color Detection Applicator | |
CN105450937B (en) | Image processing method and image processor | |
US20060171598A1 (en) | Method and device for reducing the artifacts of a digital image | |
KR100696167B1 (en) | Method for processing dead pixel | |
TWI398170B (en) | Comb filter on the edge of the detection system |
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: 20130626 Year of fee payment: 7 |
|
FPAY | Annual fee payment |
Payment date: 20140701 Year of fee payment: 8 |
|
FPAY | Annual fee payment |
Payment date: 20150629 Year of fee payment: 9 |
|
FPAY | Annual fee payment |
Payment date: 20160630 Year of fee payment: 10 |
|
FPAY | Annual fee payment |
Payment date: 20180627 Year of fee payment: 12 |