JP6415086B2 - Image processing apparatus, image processing method, and program - Google Patents

Image processing apparatus, image processing method, and program Download PDF

Info

Publication number
JP6415086B2
JP6415086B2 JP2014085038A JP2014085038A JP6415086B2 JP 6415086 B2 JP6415086 B2 JP 6415086B2 JP 2014085038 A JP2014085038 A JP 2014085038A JP 2014085038 A JP2014085038 A JP 2014085038A JP 6415086 B2 JP6415086 B2 JP 6415086B2
Authority
JP
Japan
Prior art keywords
register
color arrangement
arrangement information
pixel
image processing
Prior art date
Legal status (The legal status 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 status listed.)
Active
Application number
JP2014085038A
Other languages
Japanese (ja)
Other versions
JP2015204609A (en
Inventor
雄一 平井
雄一 平井
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP2014085038A priority Critical patent/JP6415086B2/en
Publication of JP2015204609A publication Critical patent/JP2015204609A/en
Application granted granted Critical
Publication of JP6415086B2 publication Critical patent/JP6415086B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、画像処理装置、画像処理方法、及びプログラムに関する。   The present invention relates to an image processing apparatus, an image processing method, and a program.

画像処理前のRAW画像が画素毎に異なる配色を有するものの処理例として、デジタルカメラの画像処理がある。例えば、デジタルカメラの画像処理では、光学情報を撮像素子(イメージセンサ)によって光電変換することで電気信号を得て、それをA/D変換(アナログ/デジタル変換)したデジタルデータとして画像処理することで、撮影画像として記録する。   As an example of processing in which a raw image before image processing has a different color scheme for each pixel, there is image processing of a digital camera. For example, in image processing of a digital camera, an electrical signal is obtained by photoelectrically converting optical information by an image sensor (image sensor), and image processing is performed as digital data obtained by A / D conversion (analog / digital conversion). Then, it is recorded as a captured image.

デジタルカメラによるデジタルデータの画像処理では、入力される画素データの属性は、撮像素子の仕様に依る。例えば、画素毎の色配列の一例であるベイヤー配列は、撮像素子の受光部に格子状に配列されたR/Gr/Gb/B画素のカラーフィルタの配列に光学情報を通して各色情報を得るものである。以下、R画素とは赤色の情報を持つ画素、B画素とは青色の情報を持つ画素、G画素とは緑色の情報を持つ画素を示す。なお、ベイヤー配列の一画面中のR画素を持つ水平ライン上に存在するG画素をGr画素として示し、B画素を持つ水平ライン上に存在するG画素をGb画素として示す。   In image processing of digital data by a digital camera, the attribute of input pixel data depends on the specifications of the image sensor. For example, a Bayer array, which is an example of a color array for each pixel, obtains each color information through optical information into an array of color filters of R / Gr / Gb / B pixels arrayed in a grid pattern on the light receiving portion of the image sensor. is there. Hereinafter, the R pixel is a pixel having red information, the B pixel is a pixel having blue information, and the G pixel is a pixel having green information. Note that G pixels existing on a horizontal line having R pixels in one screen of the Bayer array are indicated as Gr pixels, and G pixels existing on a horizontal line having B pixels are indicated as Gb pixels.

最近、画素毎にベイヤー配列とは異なる色配列情報を設定した撮像素子が実用化されている。例えば、特許文献1には、図9(A)に示すようなRGB等の特定波長の光のみを透過させるフィルタの他に、ホワイト(W:White)画素として可視光域の光を広く透過するフィルタを配列に組み入れた画素配列を有する撮像素子が記載されている。   Recently, an image sensor in which color arrangement information different from the Bayer arrangement is set for each pixel has been put into practical use. For example, in Patent Document 1, in addition to a filter that transmits only light of a specific wavelength such as RGB as shown in FIG. 9A, light in the visible light range is widely transmitted as a white (W) pixel. An image sensor having a pixel array incorporating filters in the array is described.

ベイヤー配列は、2×2画素を単位とした周期的な配列であり、縞模様等の処理に際してモアレや偽色を発生することがある。その対策として、撮像素子の前に光学ローパスフィルタを挿入することでモアレや偽色を抑圧する方法が採られるが、画像としての解像度が劣化する。ベイヤー配列の問題を解決するために、図9(B)に示すような画素配列を有する撮像素子が非特許文献1に掲載されている。図9(B)に示すような6×6の色配列では、ベイヤー配列に対して非周期性を高めた配列構成となりモアレを軽減することが可能となる。また、縦方向に必ずR画素、G画素、B画素が存在するために、偽色の発生を抑え、光学ローパスフィルタを不要にする効果がある。   The Bayer array is a periodic array in units of 2 × 2 pixels, and moire or false colors may be generated during processing of a striped pattern or the like. As a countermeasure, a method of suppressing moire and false colors by inserting an optical low-pass filter in front of the image sensor is taken, but the resolution as an image is deteriorated. In order to solve the Bayer array problem, Non-Patent Document 1 discloses an image sensor having a pixel array as shown in FIG. In the 6 × 6 color array as shown in FIG. 9B, the array structure has a non-periodicity with respect to the Bayer array, and moire can be reduced. Further, since there are always R pixels, G pixels, and B pixels in the vertical direction, there is an effect of suppressing generation of false colors and making an optical low-pass filter unnecessary.

特開2011−55038号公報JP 2011-55038 A

"APS-Cサイズ 1630万画素 "X-Trans CMOS"、[online]、富士フイルム株式会社、[平成24年5月16日検索]、インターネット<URL:http://fujifilm.jp/personal/digitalcamera/x/fujifilm_x_pro1/features/index.html>"APS-C size 16.3 million pixels" X-Trans CMOS ", [online], FUJIFILM Corporation, [Search May 16, 2012], Internet <URL: http: //fujifilm.jp/personal/digitalcamera /x/fujifilm_x_pro1/features/index.html>

画素毎の色配列情報が、2次元配列の繰り返しパターンとなるような画像に対する画像処理では、画像データの同時化(デモザイク化、インターポレーション処理等と同義)前の処理における注目画素及び参照画素の色情報の把握が必要である。すなわち、対象となる画素が何色の画素であるかを把握する必要がある。ベイヤー配列の撮像素子により得られた画像データに対しては、2×2の色配列の繰り返しパターンであるので、注目画素の位置情報(又は色情報)が把握できれば、周辺の参照画素領域の色配列関係は容易に確定することができる。   In the image processing for an image in which the color arrangement information for each pixel is a two-dimensional arrangement repetitive pattern, the target pixel and the reference pixel in the processing before the image data synchronization (synonymous with demosaicing, interpolation processing, etc.) It is necessary to grasp the color information. That is, it is necessary to grasp the color of the target pixel. Since the image data obtained by the Bayer array image sensor has a 2 × 2 color array repetition pattern, if the position information (or color information) of the target pixel can be grasped, the color of the surrounding reference pixel region Sequence relationships can be easily determined.

しかしながら、図9(B)に示したような6×6の色情報配列では、画像処理の走査の進捗毎に注目画素及び参照画素の色情報配列の組み合わせは多数あり、確定することが困難である。画像データの同時化前に画素欠陥補正を実施する場合には、注目画素(欠陥画素)の補正値を生成するための参照画素領域が広ければ、それだけ処理実現の難易度は増し、回路規模の増大(高コスト化)や、設計期間の長期化、処理スループットの低下につながる。   However, in the 6 × 6 color information array as shown in FIG. 9B, there are many combinations of the color information array of the target pixel and the reference pixel for each progress of scanning of the image processing, and it is difficult to determine. is there. When pixel defect correction is performed before image data is synchronized, if the reference pixel area for generating the correction value of the target pixel (defective pixel) is large, the difficulty of processing increases and the circuit scale increases. This leads to an increase (high cost), a long design period, and a decrease in processing throughput.

本発明の目的は、色配列情報が繰り返しパターンとなる画像に対する画像処理において、画像処理の走査の進捗に応じた参照範囲の色配列を得ることが可能な画像処理装置を提供することである。   An object of the present invention is to provide an image processing apparatus capable of obtaining a color arrangement in a reference range according to the progress of scanning of image processing in image processing for an image having color arrangement information as a repeated pattern.

本発明に係る画像処理装置は、光学情報を光電変換して電気信号を得る撮像素子の画素配列で繰り返される色配列情報の最小パターンを保持する第1のレジスタと、行方向及び列方向の2次元配列構造を有し、前記第1のレジスタが保持する最小パターンの前記色配列情報を基に、注目画素と当該注目画素に対する画像処理で参照する参照画素とが含まれる参照範囲の色配列情報を保持する第2のレジスタと、前記注目画素に応じて前記第2のレジスタが保持する色配列情報を更新させる制御手段と、前記第2のレジスタが保持する前記色配列情報を基に画素を選択し、前記注目画素に対する画像処理を施す処理手段とを有し、前記制御手段は、前記画像処理の水平方向の走査進捗毎に前記第2のレジスタが保持する前記色配列情報を行方向にシフトさせ、前記画像処理の垂直方向の走査進捗毎に、前記第2のレジスタが保持する前記色配列情報を列方向にシフトさせるよう制御し、前記色配列情報のシフト制御ではバレルシフタを用いて前記色配列情報を巡回させることを特徴とする。 An image processing apparatus according to the present invention includes a first register that holds a minimum pattern of color arrangement information that is repeated in a pixel arrangement of an image sensor that photoelectrically converts optical information to obtain an electrical signal, and 2 in a row direction and a column direction. Color array information of a reference range having a dimensional array structure and including a target pixel and a reference pixel to be referred to in image processing for the target pixel, based on the color array information of the minimum pattern held by the first register A second register for holding the pixel, a control unit for updating the color arrangement information held by the second register in accordance with the target pixel, and a pixel based on the color arrangement information held by the second register selected, have a processing means for performing image processing on the pixel of interest, the control means, the row direction the color sequence information the second register is stored for each horizontal scanning progress of the image processing Control is performed so that the color arrangement information held in the second register is shifted in the column direction for each vertical scanning progress of the image processing, and the shift control of the color arrangement information is performed using a barrel shifter. The color arrangement information is circulated .

本発明によれば、色配列情報が繰り返しパターンとなる画像に対する画像処理において、画像処理の走査の進捗に応じた参照範囲の色配列情報を容易に得ることができる。   According to the present invention, in the image processing for an image in which the color arrangement information becomes a repetitive pattern, it is possible to easily obtain the color arrangement information in the reference range corresponding to the progress of the image processing scan.

本発明の実施形態による画像処理装置を有する撮像装置の構成例を示す図である。It is a figure which shows the structural example of the imaging device which has an image processing apparatus by embodiment of this invention. 本実施形態による傷補正処理部の構成例を示す図である。It is a figure which shows the structural example of the damage correction process part by this embodiment. データ転送I/Fのタイミングチャートである。It is a timing chart of data transfer I / F. データ転送I/Fの回路実装例を示す図である。It is a figure which shows the circuit mounting example of data transfer I / F. パターンレジスタにおけるデータ格納イメージを説明するための図である。It is a figure for demonstrating the data storage image in a pattern register. 運用レジスタにおけるデータ格納イメージを説明するための図である。It is a figure for demonstrating the data storage image in an operation register. 本実施形態における運用レジスタの格納データの状態遷移を示す図である。It is a figure which shows the state transition of the data stored in the operation register in this embodiment. 運用レジスタの制御に係る信号の駆動例を示すタイミングチャートである。It is a timing chart which shows the example of a drive of the signal concerning control of an operation register. 撮像素子における色配列情報の例を示す図である。It is a figure showing an example of color arrangement information in an image sensor.

以下、本発明の実施形態を図面に基づいて説明する。
図1は、本発明の一実施形態による画像処理装置を有する撮像装置(デジタルカメラ)の構成例を示すブロック図である。なお、図1においては、撮像装置(デジタルカメラ)が有する構成のうち静止画処理に係る機能部を示している。
Hereinafter, embodiments of the present invention will be described with reference to the drawings.
FIG. 1 is a block diagram illustrating a configuration example of an imaging apparatus (digital camera) having an image processing apparatus according to an embodiment of the present invention. In FIG. 1, a functional unit related to still image processing is shown in the configuration of the imaging apparatus (digital camera).

CPU(中央演算処理装置)100は、図示しないROM(Read Only Memory)等に格納されたプログラムを読み出して実行することにより、撮像装置全体の制御を司る。CPU100は、例えば同期信号生成部101に対して、処理フレームの周期に関する設定をするとともに、実行の開始を指示する。同期信号生成部101は、FIFO(First In First Out)106に対するデジタルデータの取り込みタイミングの供給や、タイミングパルス発生部102に対するタイミングの供給を行う。これらタイミングは、フレームデータの水平切り替え(水平同期信号)、及び垂直切り替え(垂直同期信号)を含む。   A CPU (Central Processing Unit) 100 controls the entire imaging apparatus by reading and executing a program stored in a ROM (Read Only Memory) or the like (not shown). For example, the CPU 100 makes settings regarding the cycle of the processing frame and instructs the synchronization signal generation unit 101 to start execution. The synchronization signal generator 101 supplies digital data capture timing to a FIFO (First In First Out) 106 and supplies timing to the timing pulse generator 102. These timings include horizontal switching (horizontal synchronization signal) and vertical switching (vertical synchronization signal) of frame data.

撮像処理部103は、2次元配列の繰り返しパターンとなる色配列でカラーフィルタが配置され、光学情報を電気信号に光電変換する撮像素子を有する。撮像処理部103は、電荷の蓄積と電荷(又は電位)の転送を行うが、そのタイミングはタイミングパルス発生部102から受信する。   The imaging processing unit 103 includes an imaging element in which color filters are arranged in a color array that is a two-dimensional array repeating pattern and photoelectrically converts optical information into an electrical signal. The imaging processing unit 103 performs charge accumulation and charge (or potential) transfer, and the timing is received from the timing pulse generation unit 102.

アナログ処理部104は、光電変換して得た電荷を電位に変換した後の処理(相関二重サンプリングやゲイン調整等)を行う。A/D変換(アナログ/デジタル変換)部105は、クランプしたアナログ信号を基準電位にあわせてデジタル化する。タイミングパルス発生部102は、これらアナログ処理部104やA/D変換部105に対するタイミングの供給も行う。最近は、カラムA/D方式のセンサーが実用化されており、そのような撮像手段では撮像素子の出力をA/D変換処理するところ(図1に示した103〜105)までがオン・チップで行われる等、センサデバイスの高集積化が進んでいる。   The analog processing unit 104 performs processing (correlated double sampling, gain adjustment, etc.) after converting the electric charge obtained by photoelectric conversion into a potential. The A / D conversion (analog / digital conversion) unit 105 digitizes the clamped analog signal according to the reference potential. The timing pulse generation unit 102 also supplies timing to the analog processing unit 104 and the A / D conversion unit 105. Recently, a column A / D type sensor has been put into practical use, and in such an image pickup means, the output of the image pickup element is subjected to A / D conversion processing (103 to 105 shown in FIG. 1) on-chip. The integration of sensor devices is progressing.

FIFO106は、データ転送タイミングの緩衝用バッファである。タイミングの調整は、フレーム処理中のブランキング期間を当てにする。シェーディング補正部107は、撮像信号転送路中のアンプの特性の影響を抑制したり、撮像部の諸特性(色シェーディング等)の影響を低減したりするための、フレームデータ内のシェーディング補正を実行する。   The FIFO 106 is a buffer for buffering data transfer timing. Timing adjustment relies on a blanking period during frame processing. The shading correction unit 107 executes shading correction in the frame data in order to suppress the influence of the characteristics of the amplifier in the image pickup signal transfer path or reduce the influence of various characteristics (color shading, etc.) of the image pickup section. To do.

傷補正処理部108は、本実施形態における画像処理装置の一例であり、画素欠陥(欠陥画素、傷画素)の補正処理を実行する。画素欠陥には、白点や黒点となってしまう固定パターンの傷の他、感度に依存する傷やゆらぎをもつ傷等があるが、本実施形態において傷補正処理部108が対象とする画素欠陥(傷)は任意である。   The flaw correction processing unit 108 is an example of the image processing apparatus according to the present embodiment, and executes correction processing for pixel defects (defective pixels, flawed pixels). In addition to fixed pattern scratches that become white spots and black spots, pixel defects include scratches with sensitivity-dependent scratches and fluctuations. Pixel defects targeted by the scratch correction processing unit 108 in this embodiment (Scratches) are optional.

ホワイトバランス(WB)処理部109は、色画像受信時における各色画素間でのゲインの調整(ホワイトバランス調整)を行う。画素補間部110は、各色データの同時化処理(デモザイク、インターポレーション等)を行う。例えば、画素補間部110は、同時化処理を行いR/G/Bそれぞれのプレーンを生成する。   A white balance (WB) processing unit 109 performs gain adjustment (white balance adjustment) between each color pixel when a color image is received. The pixel interpolation unit 110 performs a synchronization process (demosaic, interpolation, etc.) of each color data. For example, the pixel interpolation unit 110 performs synchronization processing and generates R / G / B planes.

色差信号処理部111は、R/G/Bそれぞれの信号から色差信号(Cr,Cbの信号)を生成する。ここで、色差信号Cr(Cb)は、R−Y(B−Y,Yは輝度を示す)で定義されるが、人間の被視感度曲線(大まかには、Y=0.6G+0.3R+0.1B)からGを簡易輝度として、R−G(B−G)で運用しても良い。色γ処理部112は、得られた色信号に対してγ処理を施す。Chroma・knee処理部113は、色γ処理部112によるγ処理後の彩度ゲインを調整する。   The color difference signal processing unit 111 generates color difference signals (Cr and Cb signals) from the R / G / B signals. Here, the color difference signal Cr (Cb) is defined by R−Y (B−Y, Y indicates luminance), but the human visibility curve (roughly Y = 0.6G + 0.3R + 0. 1B) to G may be used as RG (BG) as simple luminance. The color γ processing unit 112 performs γ processing on the obtained color signal. The chroma / knee processing unit 113 adjusts the saturation gain after the γ processing by the color γ processing unit 112.

輝度信号処理部114は、輝度信号を生成する。輝度γ処理部115は、得られた輝度信号に対してγ処理を施す。ここまでで生成された輝度信号及び色差信号(色信号)のそれぞれは、一時記憶部116に記憶される。一時記憶部116として、例えば高速に大量のデータを取り扱えるSDRAMを用いても良い。記憶部コントローラ117は、一時記憶部116に対する書き込み制御や読み出し制御を行う。   The luminance signal processing unit 114 generates a luminance signal. The luminance γ processing unit 115 performs γ processing on the obtained luminance signal. Each of the luminance signal and the color difference signal (color signal) generated so far is stored in the temporary storage unit 116. As the temporary storage unit 116, for example, an SDRAM capable of handling a large amount of data at high speed may be used. The storage controller 117 performs write control and read control on the temporary storage unit 116.

図2は、本実施形態による画像処理装置としての傷補正処理部の構成例を示す図である。図2においては、傷補正処理部200に加え、注目画素のデータの他に、参照画素を得るための参照ラインデータを傷補正処理部200に提供するためのラインバッファ(221〜226)をあわせて示している。この傷補正処理部200による画素欠陥(傷画素)の補正は、例えば、撮像装置における画像データの補正処理の一環として行われる。   FIG. 2 is a diagram illustrating a configuration example of a flaw correction processing unit as the image processing apparatus according to the present embodiment. In FIG. 2, in addition to the flaw correction processing unit 200, a line buffer (221 to 226) for providing reference line data for obtaining reference pixels to the flaw correction processing unit 200 in addition to the data of the target pixel. It shows. The pixel defect (scratched pixel) correction by the scratch correction processing unit 200 is performed, for example, as part of image data correction processing in the imaging apparatus.

傷補正処理部200は、補正処理部201、フレーム制御部202、パターンレジスタ203、運用レジスタ204、スライスコントローラ205、バレルシフタ206、207、及び参照画像レジスタ209を有する。また、傷補正処理部200は、ANDゲート(論理積演算回路)210、211、212、及びORゲート(論理和演算回路)213を有する。   The flaw correction processing unit 200 includes a correction processing unit 201, a frame control unit 202, a pattern register 203, an operation register 204, a slice controller 205, barrel shifters 206 and 207, and a reference image register 209. The flaw correction processing unit 200 includes AND gates (logical product operation circuits) 210, 211, and 212, and an OR gate (logical sum operation circuit) 213.

信号SIG100は入力データであり、信号SIG107は入力データSIG100が有効であることを示すバリッド(valid)信号であり、信号SIG108は、前段に対する入力データSIG100の即時停止を要求するストップ(Stop)信号である。信号SIG120は出力データであり、信号SIG121は出力データSIG120が有効であることを示すバリッド(valid)信号であり、信号SIG122は、後段処理からの出力データSIG120の即時停止を要求するストップ(Stop)信号である。   The signal SIG100 is input data, the signal SIG107 is a valid signal indicating that the input data SIG100 is valid, and the signal SIG108 is a stop signal that requests an immediate stop of the input data SIG100 with respect to the previous stage. is there. The signal SIG120 is output data, the signal SIG121 is a valid signal indicating that the output data SIG120 is valid, and the signal SIG122 is a stop requesting an immediate stop of the output data SIG120 from the subsequent processing. Signal.

ここで、傷補正処理部200のデータ転送インタフェース(I/F)について、図3及び図4を参照して説明する。図3は、傷補正処理部200のデータ転送I/Fを定義したものである。図3は、データ転送I/Fのタイミングチャートである。図3において、信号SIG301は、同期回路のクロック<CLK>(図2においては不図示)である。信号SIG302は、データ有効を示すバリッド信号<Valid>であり、傷補正処理部200におけるデータ入力側では信号SIG107、データ出力側では信号SIG121が対応する。信号SIG303は、転送データ<Data>であり、傷補正処理部200におけるデータ入力側では信号SIG100、データ出力側ではSIG120が対応する。信号SIG304は、データ転送の即時停止を要求するストップ信号<Stop>であり、傷補正処理部200におけるデータ入力側では信号SIG108、データ出力側ではSIG122が対応する。   Here, the data transfer interface (I / F) of the flaw correction processing unit 200 will be described with reference to FIGS. FIG. 3 defines the data transfer I / F of the flaw correction processing unit 200. FIG. 3 is a timing chart of the data transfer I / F. In FIG. 3, a signal SIG301 is a clock <CLK> (not shown in FIG. 2) of the synchronous circuit. The signal SIG302 is a valid signal <Valid> indicating data validity. The signal SIG107 corresponds to the data input side and the signal SIG121 corresponds to the data output side in the flaw correction processing unit 200. The signal SIG303 is transfer data <Data>, and the signal SIG100 corresponds to the data input side in the flaw correction processing unit 200, and the SIG120 corresponds to the data output side. The signal SIG304 is a stop signal <Stop> that requests an immediate stop of data transfer, and corresponds to the signal SIG108 on the data input side and the SIG122 on the data output side in the flaw correction processing unit 200.

本実施形態では、バリッド信号SIG302は、データが有効状態であるとき値“1”であり、データが無効状態であるとき値“0”であるとする。また、ストップ信号SIG304は、転送データSIG303の即時停止が要求されている(有効状態である)とき値“1”であり、即時停止が要求されていていない(無効状態である)とき値“0”であるとする。   In the present embodiment, it is assumed that the valid signal SIG302 is a value “1” when the data is in a valid state and a value “0” when the data is in an invalid state. The stop signal SIG304 is a value “1” when an immediate stop of the transfer data SIG303 is requested (in a valid state), and a value “0” when an immediate stop is not requested (in an invalid state). ”.

図4は、図3のI/Fをデータ転送I/Fに組み込んだ例を示す回路図である。図4には、前段モジュール401と後段モジュール402との間のデータ、バリッド信号、及びストップ信号のそれぞれの接続実装例を示している。前段モジュール401の内部ロジックは403であり、後段モジュール402の内部ロジックは404である。   FIG. 4 is a circuit diagram showing an example in which the I / F of FIG. 3 is incorporated in the data transfer I / F. FIG. 4 shows an example of connection and mounting of data, valid signals, and stop signals between the front module 401 and the rear module 402. The internal logic of the pre-stage module 401 is 403, and the internal logic of the post-stage module 402 is 404.

ANDゲート405は、内部ロジック403の出力データが有効であることを示すバリッド信号を出力する際、後段モジュール402から即時停止の要求がある(ストップ信号SIG304が値“1”である)場合にバリッド信号SIG302を値“0”にする。バリッド信号SIG302が他のモジュールにも並行して伝達される場合には、現在のデータが停止(無効)状態であることを示すことができる。ANDゲート406は、後段モジュール402からの即時停止の要求を前段に効率的に伝えるためのものである。前段モジュール401が有効なデータを転送していない場合には、後段からの停止要求に対しては反応する必要がないので、そのときは後段モジュール402からの即時停止の要求が伝達されないようにする。   When outputting a valid signal indicating that the output data of the internal logic 403 is valid, the AND gate 405 is valid when there is a request for immediate stop from the subsequent module 402 (the stop signal SIG304 is “1”). The signal SIG302 is set to the value “0”. When the valid signal SIG302 is transmitted to other modules in parallel, it can indicate that the current data is in a stopped (invalid) state. The AND gate 406 is for efficiently transmitting the immediate stop request from the rear module 402 to the previous stage. When the preceding module 401 does not transfer valid data, there is no need to react to a stop request from the succeeding stage, so that the immediate stop request from the succeeding module 402 is not transmitted at that time. .

ここで、前段モジュール401の出力データのI/Fに複数の後段モジュールが接続される場合には、データ及びバリッド信号はそのまま分配すれば良い。また、ストップ信号はANDゲート406の手前で、すべてのストップ信号のOR(論理和)を取ってANDゲート406に入力すればよい。図2に示した構成において、ANDゲート210は、図4に示したANDゲート405と同様の機能を実現し、ANDゲート211は、図4に示したANDゲート406と同様の機能を実現する。   Here, when a plurality of subsequent modules are connected to the I / F of the output data of the upstream module 401, the data and the valid signal may be distributed as they are. Further, the stop signal may be input to the AND gate 406 by taking OR (logical sum) of all the stop signals before the AND gate 406. In the configuration shown in FIG. 2, the AND gate 210 realizes the same function as the AND gate 405 shown in FIG. 4, and the AND gate 211 realizes the same function as the AND gate 406 shown in FIG.

図2に戻り、傷補正処理部200について説明する。本実施形態では、一例として傷補正処理部200は、例えば注目画素(欠陥画素)と同色の幾つかの周辺参照画素をメディアンフィルタ処理(中央値を選択する処理)して得られた結果値で、注目画素の画素値を置換するようにして補正処理を行う。   Returning to FIG. 2, the flaw correction processing unit 200 will be described. In the present embodiment, for example, the flaw correction processing unit 200 uses a result value obtained by performing median filter processing (processing for selecting a median value), for example, several peripheral reference pixels having the same color as the target pixel (defective pixel). Then, correction processing is performed so as to replace the pixel value of the target pixel.

参照画素レジスタ209には、補正対象となる注目画素(欠陥画素)を中心とした、M×N画素の範囲内のそれぞれの画素値が保持される。そのため、フレーム処理において中央となる、対象画素が存在するラインに対して上下の数ラインのデータも同期関係を保持して用意する必要がある。参照画素レジスタ209は、例えば各ラインのデータが保持されるフリップフロップ回路でシフトレジスタ構成を採ることで実現できる。   The reference pixel register 209 holds each pixel value within the range of M × N pixels centering on the target pixel (defective pixel) to be corrected. Therefore, it is necessary to prepare data of several lines above and below the line where the target pixel exists, which is the center in the frame processing, while maintaining a synchronous relationship. The reference pixel register 209 can be realized, for example, by adopting a shift register configuration with a flip-flop circuit that holds data of each line.

本実施形態では、M×Nの参照範囲を7×7として説明する。したがって、図2に示すように、参照画素レジスタ209への各ラインのデータ入力は、信号SIG100〜SIG106のそれぞれ(7ライン分)である。補正対象となる注目画素(欠陥画素)のあるラインは、信号SIG103のラインである。前段から入力される信号SIG100、及び1水平ライン分のデータを保持する水平ラインバッファ201〜206から入力される信号SIG101〜SIG106のそれぞれは、1画素分のデータのビット幅を有する。   In the present embodiment, an M × N reference range is described as 7 × 7. Therefore, as shown in FIG. 2, the data input of each line to the reference pixel register 209 is each of the signals SIG100 to SIG106 (for 7 lines). A line having a target pixel (defective pixel) to be corrected is a line of the signal SIG103. Each of the signal SIG100 input from the previous stage and the signals SIG101 to SIG106 input from the horizontal line buffers 201 to 206 holding data for one horizontal line have a bit width of data for one pixel.

本実施形態における参照画素レジスタ209は、傷補正処理を行う補正処理部201に対して7×7画素分のデータを1処理サイクル(同期回路であれば1クロック相当)で送出する。図2に示した信号SIG110〜SIG116のそれぞれは、各ラインのデータを示す。したがって、例えば参照画素レジスタ209の出力データ信号のひとつである信号SIG110のデータ幅は7画素分のデータのビット幅を有する。信号SIG111〜SIG116についても同様である。   The reference pixel register 209 according to the present embodiment sends data for 7 × 7 pixels in one processing cycle (corresponding to one clock in the case of a synchronous circuit) to the correction processing unit 201 that performs flaw correction processing. Each of the signals SIG110 to SIG116 shown in FIG. 2 indicates data of each line. Therefore, for example, the data width of the signal SIG110, which is one of the output data signals of the reference pixel register 209, has a bit width of data for seven pixels. The same applies to the signals SIG111 to SIG116.

信号SIG100〜SIG106により供給される参照画素データは、バリッド信号SIG107が値“1”の状態時に参照画素レジスタ209に取り込まれる。参照画素レジスタ209における取り込み指示ステータスは、ANDゲート212の出力、すなわち前段からのバリッド信号SIG107と前段へのストップ信号SIG108との関係から成る。   The reference pixel data supplied by the signals SIG100 to SIG106 is taken into the reference pixel register 209 when the valid signal SIG107 is in the value “1”. The fetch instruction status in the reference pixel register 209 is composed of the output of the AND gate 212, that is, the relationship between the valid signal SIG107 from the previous stage and the stop signal SIG108 to the previous stage.

フレーム制御部202は、有効データ数をカウントすることでフレームの処理状態を監視し、参照画素に対する運用レジスタ204の状態を更新する。また、フレーム制御部202は、傷補正処理部200全体のレイテンシも考慮した後段へのバリッド信号も生成する。生成されたバリッド信号SIG135は、ANDゲート210を介して後段へのバリッド信号SIG121として送出される。なお、ANDゲート210を介した後段へのバリッド信号SIG121の送出は、後段からの即時停止の要求、すなわちストップ信号SIG122の状態を鑑みて行われる。   The frame control unit 202 monitors the processing state of the frame by counting the number of valid data, and updates the state of the operation register 204 for the reference pixel. The frame control unit 202 also generates a valid signal for the subsequent stage in consideration of the entire latency of the flaw correction processing unit 200. The generated valid signal SIG135 is sent as a valid signal SIG121 to the subsequent stage via the AND gate 210. The sending of the valid signal SIG121 to the subsequent stage via the AND gate 210 is performed in view of the immediate stop request from the subsequent stage, that is, the state of the stop signal SIG122.

運用レジスタ204は、行方向及び列方向の2次元配列構造を有し、フレーム毎に画像処理の開始時にパターンレジスタ203に保持されている内容をロードする。ここで、第1のレジスタとしてのパターンレジスタ203と、第2のレジスタとしての運用レジスタ204との格納データ数は等価ではない。例えば、本実施形態のように運用レジスタ204は、パターンレジスタ203より多くの配列要素を有しており、運用レジスタ204側の範囲が広い場合には、パターンレジスタ203の内容を一巡させ巡回させるような関係で運用レジスタ204内に展開する。パターンレジスタ203には、2次元配列の繰り返しパターンである撮像素子における色配列情報の最小パターン(基本単位となって繰り返される色配列情報のパターン)が保持されている。   The operation register 204 has a two-dimensional array structure in the row direction and the column direction, and loads the contents held in the pattern register 203 at the start of image processing for each frame. Here, the number of stored data in the pattern register 203 as the first register and the operation register 204 as the second register is not equivalent. For example, as in the present embodiment, the operation register 204 has more array elements than the pattern register 203, and when the range on the operation register 204 side is wide, the contents of the pattern register 203 are made to circulate. It is expanded in the operation register 204 for such a relationship. The pattern register 203 holds a minimum pattern of color arrangement information (a pattern of color arrangement information that is repeated as a basic unit) in the imaging device, which is a two-dimensional arrangement repeating pattern.

スライスコントローラ205は、運用レジスタ204内のデータ更新を行単位や列単位で一括りにして制御する。運用レジスタ204は、スライスコントローラ205のデータロード指示に従い、ROW方向及びCOLUMN方向の少なくとも一方に、行単位や列単位でデータの格納位置を更新する。スライスコントローラ205の入出力信号の振舞いの詳細は、図8を用いて後述する。列(COLUMN)方向のバレルシフタ206、行(ROW)方向のバレルシフタ207は、運用レジスタ204でのデータのシフト制御の結果、シフト方向にはみ出たデータをシフト起点側の不足データに補充する。   The slice controller 205 controls updating of data in the operation register 204 in batches in units of rows or columns. The operation register 204 updates the data storage position in units of rows or columns in at least one of the ROW direction and the COLUMN direction in accordance with the data load instruction of the slice controller 205. Details of the behavior of the input / output signals of the slice controller 205 will be described later with reference to FIG. The column shifter 206 in the column (COLUMN) direction and the barrel shifter 207 in the row (ROW) direction replenish data that protrudes in the shift direction as a result of data shift control in the operation register 204 to the insufficient data on the shift start side.

図5(A)〜図5(C)は、パターンレジスタ203におけるデータ格納イメージを説明するための図である。本実施形態では、6×6の色配列の構成を有する場合を一例として示す。図5(A)には、パターンレジスタ203のレジスタ配列を示している。パターンレジスタ203の格納データを2次元の配列に図示し、左上を基点として枠内にその位置関係を数字で表記している。水平方向及び垂直方向とも、基点を0として、数字右側を水平方向の推移、左側を垂直方向の推移として表記している。つまり、表記“00”が上左端、表記“05”が上右端、表記“50”が下左端、表記“55”が下右端となる。図5(B)には、撮像素子の色配列パターンをパターンレジスタ203の対応する格納位置に表記した画素の色配列を示している。この図示した色配列の繰り返しが、撮像素子面一面の色配列を構成する。   FIGS. 5A to 5C are diagrams for explaining data storage images in the pattern register 203. FIG. In the present embodiment, a case of a 6 × 6 color arrangement configuration is shown as an example. FIG. 5A shows a register arrangement of the pattern register 203. The data stored in the pattern register 203 is illustrated in a two-dimensional array, and the positional relationship is represented by numbers in a frame with the upper left as a base point. In both the horizontal direction and the vertical direction, the base point is 0, the right side of the number is represented as a transition in the horizontal direction, and the left side is represented as a transition in the vertical direction. That is, the notation “00” is the upper left end, the notation “05” is the upper right end, the notation “50” is the lower left end, and the notation “55” is the lower right end. FIG. 5B shows a color arrangement of pixels in which the color arrangement pattern of the image sensor is indicated at the corresponding storage position of the pattern register 203. The repetition of the illustrated color arrangement forms a color arrangement on the entire surface of the image sensor.

図5(C)は、パターンレジスタ203への色番号格納結果を示す図である。ハード化したパターンレジスタに色情報である{R,G,B}情報を数値として格納するよう、ここでは色番号として、{0(=G),1(=R),2(=B)}を定義している。図2に示したパターンレジスタ103には、同様の数値が格納される。図5(C)に示した例では、パターンレジスタ203の上左端配列“00”にはG画素対応として値“0”が、その右隣の画素配列“01”にはR画素対応として値“1”が、レジスタ値として格納される。他の配列も同様に各色配列パターンに対応した色番号が格納される。   FIG. 5C is a diagram showing the color number storage result in the pattern register 203. In order to store {R, G, B} information, which is color information, as numerical values in a hardened pattern register, here, as color numbers, {0 (= G), 1 (= R), 2 (= B)} Is defined. Similar numerical values are stored in the pattern register 103 shown in FIG. In the example shown in FIG. 5C, the value “0” corresponding to the G pixel corresponds to the upper left end array “00” of the pattern register 203, and the value “0” corresponds to the R pixel in the pixel array “01” on the right side of the pattern register 203. 1 ″ is stored as a register value. Similarly, the color numbers corresponding to the respective color arrangement patterns are stored in the other arrangements.

図6(A)〜図6(D)は、運用レジスタ204におけるデータ格納イメージを説明するための図である。本実施形態では、7×7の参照画素範囲に対応する運用レジスタ204を一例として示す。図6(A)には、運用レジスタ204のレジスタ配列を示している。運用レジスタ204の格納データを2次元の配列に図示し、左上を基点として枠内にその位置関係を数字で表記している。水平方向及び垂直方向とも、基点を0として、数字右側を水平方向の推移、左側を垂直方向の推移として表記している。つまり、表記“00”が上左端、表記“06”が上右端、表記“60”が下左端、表記“66”が下右端となる。   6A to 6D are diagrams for explaining a data storage image in the operation register 204. FIG. In the present embodiment, an operation register 204 corresponding to a 7 × 7 reference pixel range is shown as an example. FIG. 6A shows the register arrangement of the operation register 204. The data stored in the operation register 204 is illustrated in a two-dimensional array, and the positional relationship is represented by numbers in a frame with the upper left as a base point. In both the horizontal direction and the vertical direction, the base point is 0, the right side of the number is represented as a transition in the horizontal direction, and the left side is represented as a transition in the vertical direction. That is, the notation “00” is the upper left end, the notation “06” is the upper right end, the notation “60” is the lower left end, and the notation “66” is the lower right end.

図6(B)には、運用レジスタ204へのパターンレジスタ203の内容の反映イメージを示している。運用レジスタ204へのパターンレジスタ203の内容の反映は、運用レジスタ204内のすべて要素(配列)を埋めるよう行う。この処理は、フレーム走査の開始時に一度行えば良い。フレーム処理途中における運用レジスタ204の状態の更新は、パターンレジスタ203の参照を必要とせず、バレルシフタ206、207の出力値でデータを更新することで行うことができる。   FIG. 6B shows a reflection image of the contents of the pattern register 203 to the operation register 204. Reflecting the contents of the pattern register 203 to the operation register 204 is performed so that all elements (arrays) in the operation register 204 are filled. This process may be performed once at the start of frame scanning. The status of the operation register 204 during the frame processing can be updated by updating the data with the output values of the barrel shifters 206 and 207 without requiring the pattern register 203 to be referenced.

フレーム走査の開始指示は、フレーム制御部202から信号SIG131、及び信号SIG136を介して運用レジスタ204へと伝達する。この処理を運用レジスタ204の初期化と定義すると、運用レジスタ204の初期化は、1フレーム処理の終了時点において実施しても良い。ただし、フレーム処理先頭では図1に示したCPU100からの初期化指示信号(図2に示した信号SIG109)を受信するなどしてイベントを生成する必要がある。   An instruction to start frame scanning is transmitted from the frame control unit 202 to the operation register 204 via the signal SIG 131 and the signal SIG 136. If this process is defined as initialization of the operation register 204, the initialization of the operation register 204 may be performed at the end of one frame process. However, at the beginning of the frame processing, it is necessary to generate an event by receiving an initialization instruction signal (signal SIG109 shown in FIG. 2) from the CPU 100 shown in FIG.

本実施形態では、パターンレジスタ203を6×6の2次元配列として、運用レジスタ204を7×7の2次元配列としている。したがって、パターンレジスタ203の内容を運用レジスタ204に反映する時には、パターンレジスタ203からの不足分は、パターンレジスタ203の内容を巡回させて運用レジスタ204に格納する。例えば、図6(A)に示したhpos=6の列にはhpos=0の列と同様の内容が展開される。また、撮像素子の上左端からの配列が、パターンレジスタ203のどの位置かによって、運用レジスタ204に展開されるパターンレジスタ値の内容は決まる。図6(B)に示す例は、図6(A)の表記“01”の位置の情報を上左端として7×7配列に展開した内容である。   In the present embodiment, the pattern register 203 is a 6 × 6 two-dimensional array, and the operation register 204 is a 7 × 7 two-dimensional array. Therefore, when the contents of the pattern register 203 are reflected in the operation register 204, the shortage from the pattern register 203 is stored in the operation register 204 by circulating the contents of the pattern register 203. For example, the same content as the column of hpos = 0 is expanded in the column of hpos = 6 shown in FIG. Further, the content of the pattern register value developed in the operation register 204 is determined by the position of the pattern register 203 from the upper left end of the image sensor. The example shown in FIG. 6 (B) is the contents expanded into a 7 × 7 array with the information of the position “01” in FIG. 6 (A) as the upper left end.

図6(C)には、図6(B)に示したパターンレジスタ203の反映結果である画素の色配列の内容の反映イメージを示している。そして、図6(D)には、図6(C)に示した色配列の内容反映結果に色番号定義{0(=G),1(=R),2(=B)}を適用し数値を格納した状態の運用レジスタ204への色番号格納例を示している。   FIG. 6C shows a reflection image of the contents of the pixel color array, which is a reflection result of the pattern register 203 shown in FIG. In FIG. 6D, the color number definition {0 (= G), 1 (= R), 2 (= B)} is applied to the result of reflecting the contents of the color array shown in FIG. An example of color number storage in the operation register 204 in a state where numerical values are stored is shown.

図6(D)において900〜906は、列単位にまとまったレジスタを扱う場合のイメージである。例えば、図6(D)における900は、column_0列単位として図6(A)におけるレジスタ配列{“00”,“10”,“20”,“30”,“40”,“50”,“60”}のそれぞれの格納データを指す。同様に、図6(D)において910〜916は、行単位にまとまったレジスタを扱う場合のイメージである。例えば、図6(D)における910はrow_0行単位として図6(A)におけるレジスタ配列{“00”,“01”,“02”,“03”,“04”,“05”,“06”}のそれぞれの格納データを指す。   In FIG. 6D, 900 to 906 are images in the case of handling registers grouped in columns. For example, 900 in FIG. 6D is a register array {“00”, “10”, “20”, “30”, “40”, “50”, “60” in FIG. "} Indicates each stored data. Similarly, in FIG. 6D, reference numerals 910 to 916 denote images in the case of handling registers grouped in units of rows. For example, 910 in FIG. 6D is a row_0 row unit, and the register array {“00”, “01”, “02”, “03”, “04”, “05”, “06” in FIG. } Indicates each stored data.

本実施形態では、図6(D)に示した運用レジスタ204の更新内容を、図2に示した信号SIG134を介して補正処理部201へと伝達する。補正処理部201は、運用レジスタ204の内容を基に、現在の注目画素及び参照画素の色配列情報を取得し、注目画素と同色画素のデータを参照して補正処理を行って補正結果を得る。現在の注目画素が欠陥画素であるか否かの情報は、例えばフレーム制御部202に欠陥画素の位置情報を入力しても良い(I/Fは不図示。この場合、CPU500から送信することが可能)。また、例えば画素データの特定の値(最大値や最小値等)に画素欠陥を示す意味を与えても良い(その場合、データ値のデコードが必要。不図示)。   In the present embodiment, the update contents of the operation register 204 shown in FIG. 6D are transmitted to the correction processing unit 201 via the signal SIG 134 shown in FIG. The correction processing unit 201 obtains the current color arrangement information of the target pixel and the reference pixel based on the contents of the operation register 204, performs correction processing with reference to data of the same color pixel as the target pixel, and obtains a correction result. . As information on whether or not the current pixel of interest is a defective pixel, for example, positional information of the defective pixel may be input to the frame control unit 202 (I / F is not shown. In this case, the information may be transmitted from the CPU 500. Possible). Further, for example, a specific value (maximum value, minimum value, etc.) of pixel data may be given a meaning indicating a pixel defect (in this case, the data value needs to be decoded; not shown).

本実施形態では、スライスコントローラ205からの指示に従って、フレームにおける画像処理の進捗過程で、運用レジスタ204におけるデータの格納状態は、図7(A)〜図7(D)に示す単位でシフト(更新)していく。図7(A)〜図7(D)は、本実施形態における7×7配列の運用レジスタ204の格納データの状態遷移を示す図である。図7(A)及び図7(C)が水平走査方向への状態遷移を示し、図7(B)及び図7(D)が垂直走査方向への状態遷移を示している。   In this embodiment, in accordance with an instruction from the slice controller 205, the data storage state in the operation register 204 is shifted (updated) in the units shown in FIGS. 7A to 7D during the progress of image processing in the frame. ) FIG. 7A to FIG. 7D are diagrams illustrating state transitions of data stored in the operation register 204 having a 7 × 7 arrangement according to this embodiment. 7A and 7C show state transitions in the horizontal scanning direction, and FIGS. 7B and 7D show state transitions in the vertical scanning direction.

フレーム制御部202は、水平1画素の走査毎(水平方向の走査進捗毎)に水平1画素処理完了のステータス信号SIG132を、スライスコントローラ105に出力する。スライスコントローラ105は、運用レジスタ204に対してバレルシフタ206の出力結果を保持するようロード信号SIG139を出力する。これにより、図6(D)に示したcolumn_0群900の内容は直前のcolumn_1群901の内容で更新され、column_1群901の内容は直前のcolumn_2群902の内容で更新される。また、column_2群902〜column_5群905の内容も同様に、直前のcolumn_3群903〜column_6群906の内容で更新され、そしてcolumn_6群906の内容は直前のcolumn_1群901の内容で更新される。図7(C)は、この様子を図示している。   The frame control unit 202 outputs a status signal SIG132 indicating completion of horizontal one pixel processing to the slice controller 105 every time one horizontal pixel is scanned (every horizontal scanning progress). The slice controller 105 outputs a load signal SIG139 so as to hold the output result of the barrel shifter 206 to the operation register 204. Thereby, the contents of the column_0 group 900 shown in FIG. 6D are updated with the contents of the immediately preceding column_1 group 901, and the contents of the column_1 group 901 are updated with the contents of the immediately preceding column_2 group 902. Similarly, the contents of the column_2 group 902 to the column_5 group 905 are updated with the contents of the immediately preceding column_3 group 903 to the column_6 group 906, and the contents of the column_6 group 906 are updated with the contents of the immediately preceding column_1 group 901. FIG. 7C illustrates this state.

フレーム走査中に水平1ライン分の走査を完了したとき(垂直方向の走査進捗毎に)、フレーム制御部202は水平走査完了のステータス信号SIG133を、スライスコントローラ105に出力する。スライスコントローラ105は、運用レジスタ204に対してバレルシフタ206、207の出力結果をそれぞれ複数回保持することで、次ライン先頭の処理状態に初期化するようロード信号SIG139、SIG140のそれぞれを複数サイクルに亘り出力する。これにより、例えば図6(D)に示したrow_0群910の内容は直前のrow_1群911の内容で更新され、row_1群911の内容は直前のrow_2群912の内容で更新される。また、row_2群912〜row_5群915の内容も同様に、直前のrow_3群913〜row_6群916の内容で更新され、そしてrow_6群916の内容は直前のrow_1群911の内容で更新される。図7(D)は、この様子を図示している。   When scanning for one horizontal line is completed during frame scanning (every vertical scanning progress), the frame control unit 202 outputs a horizontal scanning completion status signal SIG 133 to the slice controller 105. The slice controller 105 holds the output results of the barrel shifters 206 and 207 in the operation register 204 a plurality of times, so that each of the load signals SIG139 and SIG140 over a plurality of cycles is initialized to the processing state at the head of the next line. Output. Accordingly, for example, the contents of the row_0 group 910 illustrated in FIG. 6D are updated with the contents of the immediately preceding row_1 group 911, and the contents of the row_1 group 911 are updated with the contents of the immediately preceding row_2 group 912. Similarly, the contents of the row_2 group 912 to the row_5 group 915 are updated with the contents of the immediately preceding row_3 group 913 to the row_6 group 916, and the contents of the row_6 group 916 are updated with the contents of the immediately preceding row_1 group 911. FIG. 7D illustrates this state.

図8は、運用レジスタ204の制御に係る信号の駆動例を示すタイミングチャートである。図8において、信号SIG131〜SIG140のそれぞれは2値のデジタル情報を伝達し、値“0”はidle状態であり、値“1”で要求イベントやロードステータスを伝達するよう図示している。   FIG. 8 is a timing chart showing an example of driving signals related to the control of the operation register 204. In FIG. 8, each of the signals SIG131 to SIG140 conveys binary digital information, the value “0” is in the idle state, and the value “1” conveys the request event and the load status.

信号SIG109は、CPU100からのフレーム処理開始要求である。この要求を基に、フレーム制御部202の初期化、及び運用レジスタ204の初期化を開始する。フレーム制御部202は、運用レジスタ204の初期化のため、信号SIG131のイベントをスライスコントローラ205に送出する。図8に示した期間Aは、運用レジスタ204の初期化フェイズである。この期間Aの動作について説明する。   A signal SIG 109 is a frame processing start request from the CPU 100. Based on this request, initialization of the frame control unit 202 and initialization of the operation register 204 are started. The frame control unit 202 sends an event of the signal SIG 131 to the slice controller 205 in order to initialize the operation register 204. A period A shown in FIG. 8 is an initialization phase of the operation register 204. The operation during this period A will be described.

スライスコントローラ205は、信号SIG131のイベント(図示の例ではハイパルス)を受信すると、運用レジスタ204に対して信号SIG136のイベントを送出する。信号SIG136のイベント(図示の例ではハイパルス)は、運用レジスタ204にパターンレジスタ203の内容をコピー(ロード)するための要求イベントである。運用レジスタ204は、信号SIG136のイベントを受信すると、運用レジスタ204内の配列要素“00”を上左端とした6×6の配列(“55”が下右端)の範囲を、パターンレジスタ203の値で更新する。   When the slice controller 205 receives the event of the signal SIG 131 (high pulse in the illustrated example), the slice controller 205 sends the event of the signal SIG 136 to the operation register 204. The event (high pulse in the illustrated example) of the signal SIG 136 is a request event for copying (loading) the contents of the pattern register 203 to the operation register 204. When the operation register 204 receives the event of the signal SIG 136, the range of the 6 × 6 array (“55” is the lower right end) with the array element “00” in the operation register 204 as the upper left end is set to the value of the pattern register 203. Update with.

スライスコントローラ205は、信号SIG136のイベントを送出した後、信号SIG137のイベントを発生する。運用レジスタ104は、信号SIG137のイベントを受けてcolumn_6に該当する配列部のみバレルシフタ206の出力値に更新する。このときのバレルシフタ206の列方向遷移は、図7(A)に示すものとなる。スライスコントローラ205は、信号SIG137のイベントを送出した後、信号SIG138のイベントを発生する。運用レジスタ104は、信号SIG138のイベントを受けてrow_6に該当する配列部のみバレルシフタ207出力値に更新する。このときのバレルシフタ207の行方向遷移は、図7(B)に示すものとなる。   The slice controller 205 generates the event of the signal SIG137 after sending the event of the signal SIG136. The operation register 104 receives the event of the signal SIG137 and updates only the array portion corresponding to column_6 to the output value of the barrel shifter 206. The column direction transition of the barrel shifter 206 at this time is as shown in FIG. After sending the event of the signal SIG137, the slice controller 205 generates the event of the signal SIG138. The operation register 104 receives the event of the signal SIG138, and updates only the array portion corresponding to row_6 to the output value of the barrel shifter 207. The transition in the row direction of the barrel shifter 207 at this time is as shown in FIG.

このとき、運用レジスタ204の全配列は、パターンレジスタ203を7×7の配列に拡張した状態で格納されている。その後、実際のフレームデータ先頭の配列位置に運用レジスタ204のパターンを巡回させることで、初期化は完了する。信号SIG139は、運用レジスタ204の列方向シフト要求ステータスである。この信号SIG139による列シフトは、図7(C)に示したような遷移をとる(column_6はそのときのcolumn_1の状態で更新される)。また、信号SIG140は、運用レジスタ204の行方向シフト要求ステータスである。この信号SIG140による行シフトは、図7(D)に示したような遷移をとる(row_6はそのときのrow_1の状態で更新される)。   At this time, the entire array of operation registers 204 is stored in a state where the pattern register 203 is expanded to a 7 × 7 array. Thereafter, the initialization is completed by circulating the pattern of the operation register 204 at the actual arrangement position of the head of the frame data. The signal SIG139 is a column direction shift request status of the operation register 204. The column shift by the signal SIG139 takes a transition as shown in FIG. 7C (column_6 is updated with the state of column_1 at that time). The signal SIG 140 is a row direction shift request status of the operation register 204. The row shift by the signal SIG140 takes a transition as shown in FIG. 7D (row_6 is updated with the state of row_1 at that time).

図8に示した期間B及び期間Dは、フレーム処理中の1ラインの処理の実行期間を指す。本実施形態における傷補正処理部200が、前段に対する即時停止の要求が無い状態で前段からのデータSIG100及び値“1”のバリッド信号validを受信した時、フレーム制御部202は、スライスコントローラ205に信号SIG132を送出する。信号SIG132が値“1”の状態で、水平方向に(画素単位に)データ処理が進んでいることを示す。このとき、スライスコントローラ205は、運用レジスタ204に対してロード信号SIG139を送出(値“1”でロード)する。   A period B and a period D illustrated in FIG. 8 indicate execution periods of one line processing during frame processing. When the flaw correction processing unit 200 according to the present embodiment receives the data SIG 100 and the valid signal “valid” of the value “1” from the previous stage in a state where there is no immediate stop request for the previous stage, the frame control unit 202 sends the data to the slice controller 205. Signal SIG132 is sent out. In the state where the signal SIG132 is “1”, this indicates that data processing is proceeding in the horizontal direction (in units of pixels). At this time, the slice controller 205 sends a load signal SIG139 to the operation register 204 (loads with the value “1”).

運用レジスタ204、図示しないクロックを基にした同期回路であり、ロード信号SIG139を受信したクロックサイクル毎に、バレルシフタ206の出力をロードする。バレルシフタ206は、前述したように列単位(図6(D)に示した900,901,902,903,904,905,906)でレジスタ内の配列データをシフトするものである。   The operation register 204 is a synchronization circuit based on a clock (not shown), and loads the output of the barrel shifter 206 every clock cycle when the load signal SIG139 is received. The barrel shifter 206 shifts the array data in the register in units of columns (900, 901, 902, 903, 904, 905, 906 shown in FIG. 6D) as described above.

図8に示した期間C及び期間Eは、フレーム処理中の1ライン処理完了時の運用レジスタ204の更新処理の実行期間を指す。フレーム処理中、1ライン分の水平走査が完了すると、フレーム制御部202は、信号SIG133によりライン完了イベントを送出する。スライスコントローラ205は、信号SIG133のイベントを受信すると、列単位のデータ配列をライン先頭の処理位置に戻すよう、信号SIG139のロードイベントを複数回発生する。この複数回のイベントは、{水平画素数 mod 運用レジスタ配列数}の結果値(水平画素数を運用レジスタ配列数で除したときの余り)であり、固定値として扱える。本実施形態では、運用レジスタ204の配列は7×7としているので、もし水平画素数が3000であれば(3000 mod 7=4)となり、列方向へ3回のシフトをする(7−4=3)ことで、ライン先頭時の列状態となる。   The period C and the period E shown in FIG. 8 indicate the execution period of the update process of the operation register 204 when the one-line process is completed during the frame process. When the horizontal scanning for one line is completed during the frame processing, the frame control unit 202 sends a line completion event by a signal SIG133. When the slice controller 205 receives the event of the signal SIG133, the slice controller 205 generates a load event of the signal SIG139 a plurality of times so as to return the data arrangement in units of columns to the processing position at the head of the line. This multiple-time event is a result value of {the number of horizontal pixels mod the number of operation register arrays} (the remainder when the number of horizontal pixels is divided by the number of operation register arrays), and can be handled as a fixed value. In this embodiment, since the arrangement of the operation registers 204 is 7 × 7, if the number of horizontal pixels is 3000 (3000 mod 7 = 4), the shift is performed three times in the column direction (7-4 = 3) Thus, the column state at the beginning of the line is obtained.

スライスコントローラ205は、続いて信号SIG140のイベントを発生する。ライン処理の完了時には、図7(D)に示したように運用レジスタ204の行方向のシフトを行う。撮像素子を垂直方向に読み飛ばさなければ、該行シフトのイベントは1回(同期回路として1サイクル)分で良い。   The slice controller 205 subsequently generates an event of the signal SIG140. When the line processing is completed, the operation register 204 is shifted in the row direction as shown in FIG. If the image sensor is not skipped in the vertical direction, the row shift event may be one time (one cycle as a synchronization circuit).

フレーム処理の完了時に、フレーム制御部202によって信号SIG131のイベントを発生することで、期間Aの処理を実施できる。そうすれば、CPU100からの初期化指示がなくても、次フレーム処理のための待機状態を作り出せる。また、図2に示した信号SIG125は前段への即時停止の要求するストップ信号である。図8に示した期間A、期間C、期間Eのそれぞれの期間中において、図3に示した信号SIG304の値“1”の状態のようにして、前段の処理に対して後段への有効データの転送を中止するよう要求を出す。この即時停止の要求(信号SIG125)は、後段からのストップ信号(ANDゲート211の出力)とOR(論理和演算)されて前段へと伝達される。また、内部でANDゲート212を介してフレーム制御部202へと伝達されるので、コンビネーションロジックとしてループしないよう、ANDゲート212の出力はフレーム制御部202内においてフリップフロップ等でクロック同期されている。   When the frame processing is completed, the event of the signal SIG 131 is generated by the frame control unit 202, so that the processing of the period A can be performed. Then, even if there is no initialization instruction from the CPU 100, a standby state for the next frame process can be created. Further, the signal SIG125 shown in FIG. 2 is a stop signal for requesting an immediate stop to the previous stage. In each of period A, period C, and period E shown in FIG. 8, as in the state of the value “1” of the signal SIG304 shown in FIG. A request to cancel the transfer of. This immediate stop request (signal SIG125) is ORed (ORed) with the stop signal (output of the AND gate 211) from the subsequent stage and transmitted to the previous stage. Since the signal is transmitted to the frame control unit 202 via the AND gate 212, the output of the AND gate 212 is clock-synchronized by a flip-flop or the like in the frame control unit 202 so as not to loop as a combination logic.

図8に示した例では、後段からの即時停止の要求はないもの(信号SIG122が常に値“0”の状態)として、説明を簡略化している。例えば、図8に示した期間Bや期間Dにおいて即時停止の要求がある場合には、前段からのバリッド信号SIG107の状態がANDゲート212によりマスクされるので、信号SIG132,SIG139の状態が取り下げられる。   In the example illustrated in FIG. 8, the description is simplified on the assumption that there is no immediate stop request from the subsequent stage (the signal SIG 122 is always in the value “0” state). For example, when there is a request for an immediate stop in the period B and the period D shown in FIG. 8, the state of the valid signal SIG107 from the previous stage is masked by the AND gate 212, so that the states of the signals SIG132 and SIG139 are withdrawn. .

このように、参照画素が必要な画像処理において、撮像素子の色配列情報を保持するパターンレジスタ203と、パターンレジスタ203を基に参照範囲の色配列関係を注目画素の位置の変更に応じて追従していく運用レジスタ204とをシステム構成に組み込む。これにより、ベイヤー配列とは異なる2次元配列での繰り返しパターンを有する色配列であっても、処理の進捗に応じた参照画素の色配列を容易に得ることができ、任意の繰り返しパターンの画素配列(色配列)を持つ撮像データの処理遂行が可能となる。なお、前述した説明では、パターンレジスタ203を6×6の2次元配列として、運用レジスタ204を7×7の2次元配列としているが、これは一例であり、本発明は、これに限定されるものではない。   In this way, in image processing that requires a reference pixel, the pattern register 203 that holds the color arrangement information of the image sensor and the color arrangement relationship of the reference range based on the pattern register 203 according to the change in the position of the pixel of interest The operation register 204 to be incorporated is incorporated into the system configuration. This makes it possible to easily obtain a color array of reference pixels according to the progress of processing even in a color array having a repetitive pattern in a two-dimensional array different from the Bayer array. Processing of imaging data having (color arrangement) can be performed. In the above description, the pattern register 203 is a 6 × 6 two-dimensional array and the operation register 204 is a 7 × 7 two-dimensional array. However, this is an example, and the present invention is limited to this. It is not a thing.

(本発明の他の実施形態)
また、本発明は、以下の処理を実行することによっても実現される。即ち、前述した実施形態の機能を実現するソフトウェア(プログラム)を、ネットワーク又は各種記憶媒体を介してシステム或いは装置に供給し、そのシステム或いは装置のコンピュータ(またはCPUやMPU等)がプログラムを読み出して実行する処理である。
(Other embodiments of the present invention)
The present invention can also be realized by executing the following processing. That is, software (program) that realizes the functions of the above-described embodiments is supplied to a system or apparatus via a network or various storage media, and a computer (or CPU, MPU, or the like) of the system or apparatus reads the program. It is a process to be executed.

なお、前記実施形態は、何れも本発明を実施するにあたっての具体化のほんの一例を示したものに過ぎず、これらによって本発明の技術的範囲が限定的に解釈されてはならないものである。すなわち、本発明はその技術思想、又はその主要な特徴から逸脱することなく、様々な形で実施することができる。   The above-described embodiments are merely examples of implementation in carrying out the present invention, and the technical scope of the present invention should not be construed as being limited thereto. That is, the present invention can be implemented in various forms without departing from the technical idea or the main features thereof.

100:CPU 103:撮像処理部 108、200:傷補正処理部 201:補正処理部 202:フレーム制御部 203:パターンレジスタ 204:運用レジスタ 205:スライスコントローラ 206、207:バレルシフタ 209:参照画素レジスタ 100: CPU 103: Imaging processing unit 108, 200: Scratch correction processing unit 201: Correction processing unit 202: Frame control unit 203: Pattern register 204: Operation register 205: Slice controller 206, 207: Barrel shifter 209: Reference pixel register

Claims (10)

光学情報を光電変換して電気信号を得る撮像素子の画素配列で繰り返される色配列情報の最小パターンを保持する第1のレジスタと、
行方向及び列方向の2次元配列構造を有し、前記第1のレジスタが保持する最小パターンの前記色配列情報を基に、注目画素と当該注目画素に対する画像処理で参照する参照画素とが含まれる参照範囲の色配列情報を保持する第2のレジスタと、
前記注目画素に応じて前記第2のレジスタが保持する色配列情報を更新させる制御手段と、
前記第2のレジスタが保持する前記色配列情報を基に画素を選択し、前記注目画素に対する画像処理を施す処理手段とを有し、
前記制御手段は、前記画像処理の水平方向の走査進捗毎に前記第2のレジスタが保持する前記色配列情報を行方向にシフトさせ、前記画像処理の垂直方向の走査進捗毎に、前記第2のレジスタが保持する前記色配列情報を列方向にシフトさせるよう制御し、前記色配列情報のシフト制御ではバレルシフタを用いて前記色配列情報を巡回させることを特徴とする画像処理装置。
A first register that holds a minimum pattern of color arrangement information that is repeated in a pixel arrangement of an image sensor that photoelectrically converts optical information to obtain an electrical signal;
The pixel of interest has a two-dimensional arrangement structure in the row direction and the column direction, and includes a pixel of interest and a reference pixel to be referred to in image processing for the pixel of interest based on the color arrangement information of the minimum pattern held by the first register A second register holding color arrangement information of the reference range
Control means for updating color arrangement information held by the second register in accordance with the pixel of interest;
The second register is selected pixels based on the color arrangement information held, have a processing means for performing image processing on the pixel of interest,
The control means shifts the color arrangement information held in the second register in the row direction for each horizontal scanning progress of the image processing, and performs the second processing for each vertical scanning progress of the image processing. An image processing apparatus that controls to shift the color arrangement information held in a register in a column direction, and in the color arrangement information shift control, the color arrangement information is circulated using a barrel shifter .
前記制御手段は、画像処理の走査により前記注目画素の位置が変更する毎に、前記第2のレジスタに保持する前記色配列情報の格納位置をシフトさせるように制御することを特徴とする請求項1記載の画像処理装置。   The control means performs control so as to shift the storage position of the color arrangement information held in the second register every time the position of the target pixel is changed by scanning of image processing. The image processing apparatus according to 1. M×N画素で繰り返される色配列を有する画像の前記M×N画素の色配列情報を保持する第1のレジスタと、
前記第1のレジスタが保持する前記M×N画素の色配列情報を基に、注目画素と当該注目画素に対する画像処理で参照する参照画素とが含まれる参照範囲の色配列情報を保持する第2のレジスタと、
前記注目画素に応じて前記第2のレジスタが保持する色配列情報を更新させる制御手段と、
前記第2のレジスタが保持する前記色配列情報を基に画素を選択し、前記注目画素に対する画像処理を施す処理手段とを有し、
前記第1のレジスタ及び前記第2のレジスタは、2次元配列に前記色配列情報を保持するレジスタであり、
前記第2のレジスタは、前記第1のレジスタより多くの配列要素を有し、
前記第1のレジスタが保持する前記M×N画素の色配列情報を巡回させ、前記第2のレジスタに前記参照範囲の色配列情報を保持させることを特徴とする画像処理装置。
A first register holding color arrangement information of the M × N pixels of an image having a color arrangement repeated with M × N pixels;
Based on the color arrangement information of the M × N pixels held by the first register, the second holding color arrangement information of a reference range including the target pixel and a reference pixel to be referred to in image processing for the target pixel. And the register
Control means for updating color arrangement information held by the second register in accordance with the pixel of interest;
The second register is selected pixels based on the color arrangement information held, have a processing means for performing image processing on the pixel of interest,
The first register and the second register are registers that hold the color array information in a two-dimensional array;
The second register has more array elements than the first register;
An image processing apparatus comprising: circulating the color arrangement information of the M × N pixels held in the first register; and holding the color arrangement information of the reference range in the second register .
前記第2のレジスタは、行方向及び列方向の2次元配列構造を有し、
前記制御手段は、前記画像処理の水平方向の走査進捗毎に前記第2のレジスタが保持する前記色配列情報を行方向にシフトさせ、前記画像処理の垂直方向の走査進捗毎に、前記第2のレジスタが保持する前記色配列情報を列方向にシフトさせるよう制御することを特徴とする請求項記載の画像処理装置。
The second register has a two-dimensional array structure in a row direction and a column direction,
The control means shifts the color arrangement information held in the second register in the row direction for each horizontal scanning progress of the image processing, and performs the second processing for each vertical scanning progress of the image processing. The image processing apparatus according to claim 3, wherein the color arrangement information held by the register is controlled to shift in a column direction.
前記制御手段は、前記第2のレジスタが保持する前記色配列情報シフト制御ではバレルシフタを用いて前記色配列情報を巡回させることを特徴とする請求項記載の画像処理装置。 5. The image processing apparatus according to claim 4 , wherein the control means uses a barrel shifter to rotate the color arrangement information in shift control of the color arrangement information held by the second register. 前記画像処理は画素欠陥の補正であり、
前記注目画素は欠陥画素であり、
前記参照画素は少なくとも前記欠陥画素の補正に用いられる画素を含む範囲の画素配列であることを特徴とする請求項1〜の何れか1項に記載の画像処理装置。
The image processing is correction of pixel defects;
The pixel of interest is a defective pixel;
The image processing apparatus according to any one of claim 1 to 5, wherein said reference pixels, which is a pixel array range including the pixels to be used in the correction of at least the defective pixel.
光学情報を光電変換して電気信号を得る撮像素子の画素配列で繰り返される色配列情報の最小パターンを保持する第1のレジスタと、行方向及び列方向の2次元配列構造を有し、前記第1のレジスタが保持する最小パターンの前記色配列情報を基に、注目画素と当該注目画素に対する画像処理で参照する参照画素とが含まれる参照範囲の色配列情報を保持する第2のレジスタとを有する画像処理装置の画像処理方法であって、
前記第1のレジスタが保持する最小パターンの前記色配列情報を基に、前記第2のレジスタに前記参照範囲の色配列情報を保持させ、前記第2のレジスタに色配列情報を保持させた後、前記注目画素に応じて前記第2のレジスタが保持する色配列情報を更新させる制御工程と
前記第2のレジスタが保持する前記色配列情報を基に画素を選択し、前記注目画素に対する画像処理を施す処理工程とを有し、
前記制御工程では、前記画像処理の水平方向の走査進捗毎に前記第2のレジスタが保持する前記色配列情報を行方向にシフトさせ、前記画像処理の垂直方向の走査進捗毎に、前記第2のレジスタが保持する前記色配列情報を列方向にシフトさせるよう制御し、前記色配列情報のシフト制御ではバレルシフタを用いて前記色配列情報を巡回させることを特徴とする画像処理方法。
A first register that holds a minimum pattern of color arrangement information that is repeated in a pixel arrangement of an image sensor that photoelectrically converts optical information to obtain an electrical signal; and a two-dimensional arrangement structure in a row direction and a column direction, Based on the color arrangement information of the minimum pattern held by one register, a second register holding color arrangement information of a reference range including the target pixel and a reference pixel to be referred to in image processing for the target pixel; An image processing method for an image processing apparatus comprising:
After the second register holds the color arrangement information of the reference range and the second register holds the color arrangement information based on the color arrangement information of the minimum pattern held by the first register A process of updating the color arrangement information held by the second register in accordance with the pixel of interest, and selecting a pixel based on the color arrangement information held by the second register, and performing image processing on the pixel of interest have a and the applying process,
In the control step, the color arrangement information held by the second register is shifted in the row direction for each horizontal scanning progress of the image processing, and the second scanning is performed for each vertical scanning progress of the image processing. An image processing method comprising: controlling the color arrangement information held in the register in a column direction to shift the color arrangement information using a barrel shifter in the shift control of the color arrangement information .
光学情報を光電変換して電気信号を得る撮像素子の画素配列で繰り返される色配列情報の最小パターンを保持する第1のレジスタと、行方向及び列方向の2次元配列構造を有し、前記第1のレジスタが保持する最小パターンの前記色配列情報を基に、注目画素と当該注目画素に対する画像処理で参照する参照画素とが含まれる参照範囲の色配列情報を保持する第2のレジスタとを有する画像処理装置の画像処理方法をコンピュータに実行させるプログラムであって、
前記第1のレジスタが保持する最小パターンの前記色配列情報を基に、前記第2のレジスタに前記参照範囲の色配列情報を保持させる第1のステップと、
前記第2のレジスタに色配列情報を保持させた後、前記注目画素に応じて前記第2のレジスタが保持する色配列情報を更新させる第2のステップと
前記第2のレジスタが保持する前記色配列情報を基に画素を選択し、前記注目画素に対する画像処理を施す第3のステップとをコンピュータに実行させ、
前記第2のステップでは、前記画像処理の水平方向の走査進捗毎に前記第2のレジスタが保持する前記色配列情報を行方向にシフトさせ、前記画像処理の垂直方向の走査進捗毎に、前記第2のレジスタが保持する前記色配列情報を列方向にシフトさせるよう制御し、前記色配列情報のシフト制御ではバレルシフタを用いて前記色配列情報を巡回させる処理をコンピュータに実行させるためのプログラム。
A first register that holds a minimum pattern of color arrangement information that is repeated in a pixel arrangement of an image sensor that photoelectrically converts optical information to obtain an electrical signal; and a two-dimensional arrangement structure in a row direction and a column direction, Based on the color arrangement information of the minimum pattern held by one register, a second register holding color arrangement information of a reference range including the target pixel and a reference pixel to be referred to in image processing for the target pixel; A program for causing a computer to execute an image processing method of an image processing apparatus,
A first step of causing the second register to hold the color arrangement information of the reference range based on the color arrangement information of the minimum pattern held by the first register;
A second step of updating the color arrangement information held by the second register in accordance with the target pixel after the color arrangement information is held in the second register; and the color held by the second register Selecting a pixel based on the array information, and causing the computer to execute a third step of performing image processing on the pixel of interest ;
In the second step, the color arrangement information held in the second register is shifted in the row direction for each horizontal scanning progress of the image processing, and for each vertical scanning progress of the image processing, the color processing is performed. A program for controlling the color arrangement information held in the second register to shift in a column direction, and causing the computer to execute processing for circulating the color arrangement information using a barrel shifter in the shift control of the color arrangement information .
それぞれ2次元配列に色配列情報を保持するレジスタであって、M×N画素で繰り返される色配列を有する画像の前記M×N画素の色配列情報を保持する第1のレジスタと、前記第1のレジスタより多くの配列要素を有し、前記第1のレジスタが保持する前記M×N画素の色配列情報を基に、注目画素と当該注目画素に対する画像処理で参照する参照画素とが含まれる参照範囲の色配列情報を保持する第2のレジスタとを有する画像処理装置の画像処理方法であって、A first register for holding color arrangement information in a two-dimensional array, the first register for holding color arrangement information of the M × N pixels of an image having a color arrangement repeated by M × N pixels, and the first register And the reference pixel to be referred to in the image processing for the target pixel is included based on the color array information of the M × N pixels held in the first register. An image processing method of an image processing apparatus having a second register that holds color arrangement information of a reference range,
前記第1のレジスタが保持する前記M×N画素の色配列情報を基に、前記第2のレジスタに前記参照範囲の色配列情報を保持させ、前記第2のレジスタに色配列情報を保持させた後、前記注目画素に応じて前記第2のレジスタが保持する色配列情報を更新させる制御工程と、Based on the color arrangement information of the M × N pixels held by the first register, the second register holds the color arrangement information of the reference range, and the second register holds the color arrangement information. A control step of updating the color arrangement information held by the second register in accordance with the target pixel;
前記第2のレジスタが保持する前記色配列情報を基に画素を選択し、前記注目画素に対する画像処理を施す処理工程とを有し、A processing step of selecting a pixel based on the color arrangement information held by the second register and performing image processing on the target pixel;
前記制御工程では、前記第1のレジスタが保持する前記M×N画素の色配列情報を巡回させ、前記第2のレジスタに前記参照範囲の色配列情報を保持させることを特徴とする画像処理方法。In the control step, the color arrangement information of the M × N pixels held by the first register is circulated, and the color arrangement information of the reference range is held by the second register. .
それぞれ2次元配列に色配列情報を保持するレジスタであって、M×N画素で繰り返される色配列を有する画像の前記M×N画素の色配列情報を保持する第1のレジスタと、前記第1のレジスタより多くの配列要素を有し、前記第1のレジスタが保持する前記M×N画素の色配列情報を基に、注目画素と当該注目画素に対する画像処理で参照する参照画素とが含まれる参照範囲の色配列情報を保持する第2のレジスタとを有する画像処理装置の画像処理方法をコンピュータに実行させるプログラムであって、A first register for holding color arrangement information in a two-dimensional array, the first register for holding color arrangement information of the M × N pixels of an image having a color arrangement repeated by M × N pixels, and the first register And the reference pixel to be referred to in the image processing for the target pixel is included based on the color array information of the M × N pixels held in the first register. A program that causes a computer to execute an image processing method of an image processing apparatus having a second register that holds color arrangement information of a reference range,
前記第1のレジスタが保持する前記M×N画素の色配列情報を基に、前記第2のレジスタに前記参照範囲の色配列情報を保持させる第1のステップと、A first step of causing the second register to hold the color arrangement information of the reference range based on the color arrangement information of the M × N pixels held by the first register;
前記第2のレジスタに色配列情報を保持させた後、前記注目画素に応じて前記第2のレジスタが保持する色配列情報を更新させる第2のステップと、A second step of updating the color arrangement information held by the second register in accordance with the target pixel after holding the color arrangement information in the second register;
前記第2のレジスタが保持する前記色配列情報を基に画素を選択し、前記注目画素に対する画像処理を施す第3のステップとをコンピュータに実行させ、Selecting a pixel based on the color arrangement information held by the second register, and causing the computer to execute a third step of performing image processing on the pixel of interest;
前記第1のステップでは、前記第1のレジスタが保持する前記M×N画素の色配列情報を巡回させ、前記第2のレジスタに前記参照範囲の色配列情報を保持させる処理をコンピュータに実行させるためのプログラム。In the first step, the computer executes a process of circulating the color arrangement information of the M × N pixels held in the first register and causing the second register to hold the color arrangement information of the reference range. Program for.
JP2014085038A 2014-04-16 2014-04-16 Image processing apparatus, image processing method, and program Active JP6415086B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2014085038A JP6415086B2 (en) 2014-04-16 2014-04-16 Image processing apparatus, image processing method, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2014085038A JP6415086B2 (en) 2014-04-16 2014-04-16 Image processing apparatus, image processing method, and program

Publications (2)

Publication Number Publication Date
JP2015204609A JP2015204609A (en) 2015-11-16
JP6415086B2 true JP6415086B2 (en) 2018-10-31

Family

ID=54597805

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2014085038A Active JP6415086B2 (en) 2014-04-16 2014-04-16 Image processing apparatus, image processing method, and program

Country Status (1)

Country Link
JP (1) JP6415086B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
ES2868675T3 (en) 2017-08-14 2021-10-21 Optos Plc Tracking the position of the retina

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0844855A (en) * 1994-07-27 1996-02-16 Dainippon Screen Mfg Co Ltd Image filing device and image data transfer method
JPH11262025A (en) * 1998-03-16 1999-09-24 Toshiba Corp Image input device and image correction method therefor
JP2002374423A (en) * 2001-06-15 2002-12-26 Imagelink Inc Image processor, image processing program and image processing method
CN103828345B (en) * 2011-09-29 2017-03-22 富士胶片株式会社 Apparatus, method and image pickup apparatus for image processing

Also Published As

Publication number Publication date
JP2015204609A (en) 2015-11-16

Similar Documents

Publication Publication Date Title
JP5371463B2 (en) IMAGING DEVICE, IMAGING SYSTEM, AND IMAGING DEVICE CONTROL METHOD
JP5901186B2 (en) Solid-state imaging device and driving method thereof
TWI399088B (en) Data processor, solid-state imaging device, imaging device, and electronic apparatus
JP6019692B2 (en) Image pickup device, image pickup device control method, and image pickup apparatus
US9065988B2 (en) Image pickup apparatus including image pickup element having image pickup pixel and focus detection pixel and signal processing method
JP4573769B2 (en) Image processing circuit and image processing method
JP2009105756A (en) Imaging apparatus, imaging system, and method of driving imaging apparatus
US20080136950A1 (en) Solid-state imaging apparatus
US8817139B2 (en) Image pickup device and signal transmitting device
KR20180067052A (en) Method of obtaining wide dynamic range image, image pickup device performing the same and electronic system including the same
JP2012049912A (en) Photoelectric conversion device and imaging system
JP6415086B2 (en) Image processing apparatus, image processing method, and program
JP5718029B2 (en) Imaging device
US20220038631A1 (en) Imaging element, imaging apparatus, operation method of imaging element, and program
TW201138448A (en) Imaging apparatus
JP5481230B2 (en) Imaging device and solid-state imaging device
JP2005192250A (en) Solid-state image pickup device
JP2010109565A (en) Solid-state imaging apparatus
JP6045247B2 (en) Image processing apparatus, control method thereof, and control program
US11729506B2 (en) Imaging element with processor configured to receive vibration information, imaging apparatus, operation method of imaging element, and program
JP6381219B2 (en) Image processing apparatus, image processing method, and program
JP7094454B2 (en) Image pickup device, image pickup element, operation method of image pickup device, operation method of image pickup device, and program
JP2008288649A (en) Image pickup apparatus and method of correcting captured image data
JP6395398B2 (en) Image processing apparatus and image processing method
JP2015156556A (en) Solid-state image sensor

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20170403

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20180319

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20180501

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20180627

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20180904

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20181002

R151 Written notification of patent or utility model registration

Ref document number: 6415086

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151