JP2009044670A - Preprocessing circuit - Google Patents

Preprocessing circuit Download PDF

Info

Publication number
JP2009044670A
JP2009044670A JP2007210089A JP2007210089A JP2009044670A JP 2009044670 A JP2009044670 A JP 2009044670A JP 2007210089 A JP2007210089 A JP 2007210089A JP 2007210089 A JP2007210089 A JP 2007210089A JP 2009044670 A JP2009044670 A JP 2009044670A
Authority
JP
Japan
Prior art keywords
data
input
output
selection unit
register
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.)
Withdrawn
Application number
JP2007210089A
Other languages
Japanese (ja)
Inventor
Tomonori Yonemoto
友紀 米本
Koki Hasebe
弘毅 長谷部
Hideaki Furukawa
英明 古川
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.)
Olympus Corp
Original Assignee
Olympus Corp
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 Olympus Corp filed Critical Olympus Corp
Priority to JP2007210089A priority Critical patent/JP2009044670A/en
Publication of JP2009044670A publication Critical patent/JP2009044670A/en
Withdrawn legal-status Critical Current

Links

Images

Landscapes

  • Image Processing (AREA)
  • Facsimile Image Signal Circuits (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide a preprocessing circuit capable of performing extrapolation processing of an image signal and reducing a circuit scale. <P>SOLUTION: In accordance with the number of lines (120d) indicated by a count value input from a number of line counter, a selection part 122a selects any data of input data 120a (image signal) related to a new pixel, data 120b output from a line memory 121a and data 120c output from a line memory 121c and outputs the selected data to the line memory 121a. The selection part 122a outputs the data 120b, 120c to the line memory 121a within a predetermined period of time, thereby extrapolating data in the lower end region of a source image. <P>COPYRIGHT: (C)2009,JPO&INPIT

Description

本発明は、2次元フィルタに入力される画像信号に前処理を行う前処理回路に関する。   The present invention relates to a preprocessing circuit that performs preprocessing on an image signal input to a two-dimensional filter.

エッジの抽出、強調、および平滑化に代表される2次元フィルタ処理において、フィルタ処理後の有効画素数が変化しないように画像データの端部のデータを外挿する処理がある(例えば特許文献1参照)。これにより、処理前後で有効画素数が変化しない2次元フィルタ処理が可能となっている。
特開2006−94160号公報
In a two-dimensional filter process represented by edge extraction, enhancement, and smoothing, there is a process of extrapolating data at the end of image data so that the number of effective pixels after the filter process does not change (for example, Patent Document 1). reference). Thereby, a two-dimensional filter process in which the number of effective pixels does not change before and after the process is possible.
JP 2006-94160 A

しかしながら、特許文献1に記載された技術では、外挿処理前に1フレーム分のデータを格納する画像メモリが必要であるため、回路規模が大きくなる。   However, since the technique described in Patent Document 1 requires an image memory for storing data for one frame before extrapolation processing, the circuit scale increases.

本発明は、上述した課題に鑑みてなされたものであって、画像信号の外挿処理を行うと共に回路規模を縮小することができる前処理回路を提供することを目的とする。   The present invention has been made in view of the above-described problems, and an object thereof is to provide a preprocessing circuit capable of performing extrapolation processing of an image signal and reducing the circuit scale.

本発明は、上記の課題を解決するためになされたもので、L×M(L,Mは整数)の画素に係る画像信号を処理する2次元フィルタ(図1の2次元フィルタ処理部13、図8の2次元フィルタ処理部83、図15の2次元フィルタ処理部155に対応)に前記画像信号を入力する前処理回路であって、前記画像信号を遅延させる遅延素子(図2のラインメモリ121a等、図9のレジスタ821a等に対応)をN段(N≧L−1またはM−1)有し、最終段からK段目(Kは0から(N/2の整数部)−1のいずれかの整数)の前記遅延素子(図2のラインメモリ121d,121e、図9のレジスタ821d,821eに対応)が、前段の前記遅延素子からの第1の入力(図2のデータ120i,120j、図9のデータ820i,820jに対応)と前記第1の入力とは異なる第2の入力(図2のデータ120h,120f、図9のデータ820h,820fに対応)とのいずれかを選択してK段目の前記遅延素子に入力する選択部(図2の選択部122b,122c、図9の選択部822b,822cに対応)を介して前段の前記遅延素子と直列に連結されるように、N段の前記遅延素子が直列に連結され、各遅延素子の出力が前記2次元フィルタの入力に接続されると共に、(N/2の整数部)番目までの画素または画素群に係る前記画像信号が前記2次元フィルタに並列に入力可能となった期間(図3(a)のライン数が2の期間、図10(a)の画素数が2の期間に対応)において、前記選択部からK段目の前記遅延素子への入力が前記第2の入力となるように前記選択部を制御する制御部(図1の制御部10、図8の制御部80に対応)を有することを特徴とする前処理回路である。   The present invention has been made to solve the above-described problem, and is a two-dimensional filter (two-dimensional filter processing unit 13 in FIG. 8 is a pre-processing circuit that inputs the image signal to the two-dimensional filter processing unit 83 in FIG. 8 and the two-dimensional filter processing unit 155 in FIG. 15, and a delay element that delays the image signal (line memory in FIG. 2) 121a, etc. (corresponding to the register 821a, etc. in FIG. 9) has N stages (N ≧ L−1 or M−1), and the K stage from the last stage (K is from 0 to (N / 2 integer part) −1) Of the delay elements (corresponding to the line memories 121d and 121e in FIG. 2 and the registers 821d and 821e in FIG. 9) are the first inputs from the delay elements in the previous stage (data 120i, FIG. 2). 120j, data 820i and 820 of FIG. And the second input different from the first input (corresponding to the data 120h and 120f in FIG. 2 and the data 820h and 820f in FIG. 9) and selecting the delay element in the K-th stage N stages of delay elements are connected in series with the previous stage of delay elements via selection sections (corresponding to selection sections 122b and 122c in FIG. 2 and selection sections 822b and 822c in FIG. 9). Connected in series, the output of each delay element is connected to the input of the two-dimensional filter, and the image signals related to the pixels or pixel groups up to (the integer part of N / 2) are parallel to the two-dimensional filter. In the period during which the signal can be input (corresponding to the period in which the number of lines in FIG. 3A is 2 and the number of pixels in FIG. The selection so that the second input becomes the second input 1 is a pre-processing circuit having a control unit (corresponding to the control unit 10 in FIG. 1 and the control unit 80 in FIG. 8) for controlling the units.

また、本発明は、L×M(L,Mは整数)の画素に係る画像信号を処理する2次元フィルタに前記画像信号を入力する前処理回路であって、前記画像信号を遅延させる遅延素子をN段(N≧L−1またはM−1)有し、N段の前記遅延素子が直列に連結され、各遅延素子の出力が前記2次元フィルタの入力に接続されると共に、新たな画素または画素群に係る前記画像信号を入力する第1の入力と前記第1の入力とは異なる第2の入力とのいずれかを選択する選択部(図2の選択部122a、図8の選択部822aに対応)と、終端の画素または画素群に係る前記画像信号が入力される期間(図3(a)のライン数が25の期間、図10(a)の画素数が25の期間に対応)の次の期間において、前記選択部が前記第2の入力を選択するように前記選択部を制御する制御部とを有することを特徴とする前処理回路である。   The present invention is also a pre-processing circuit that inputs the image signal to a two-dimensional filter that processes an image signal related to an L × M pixel (L and M are integers), and a delay element that delays the image signal N stages (N ≧ L−1 or M−1), the delay elements of N stages are connected in series, the output of each delay element is connected to the input of the two-dimensional filter, and a new pixel Alternatively, a selection unit (selection unit 122a in FIG. 2 or selection unit in FIG. 8) that selects either a first input for inputting the image signal relating to a pixel group or a second input different from the first input. 822a) and a period in which the image signal relating to the terminal pixel or pixel group is input (a period in which the number of lines in FIG. 3A is 25, a period in which the number of pixels in FIG. 10A is 25) ) So that the selection unit selects the second input. A pre-processing circuit, characterized in that a control unit for controlling the selection unit.

また、本発明の前処理回路において、前記選択部は、前記第2の入力として、前記2次元フィルタへの初段から(N/2の整数部)段までのいずれかの入力が接続されていることを特徴とする。   In the preprocessing circuit of the present invention, the selection unit is connected to any input from the first stage to the (N / 2 integer part) stage to the two-dimensional filter as the second input. It is characterized by that.

また、本発明の前処理回路において、前記選択部は、前記第2の入力として、前記2次元フィルタへの初段から(N/2の整数部)段までのいずれかの入力が接続されていることを特徴とする。   In the preprocessing circuit of the present invention, the selection unit is connected to any input from the first stage to the (N / 2 integer part) stage to the two-dimensional filter as the second input. It is characterized by that.

また、本発明の前処理回路において、前記遅延素子はラインメモリであることを特徴とする。   In the preprocessing circuit of the present invention, the delay element is a line memory.

また、本発明の前処理回路において、前記遅延素子は1画素に係るレジスタであることを特徴とする。   In the preprocessing circuit of the present invention, the delay element is a register for one pixel.

上記において、括弧で括った部分の記述は、後述する本発明の実施形態と本発明の構成要素とを便宜的に対応付けるためのものであり、この記述によって本発明の内容が限定されるわけではない。   In the above description, the description in parentheses is for the purpose of associating the embodiment of the present invention described later with the components of the present invention for convenience, and the contents of the present invention are not limited by this description. Absent.

本発明によれば、N段の遅延素子を直列に連結し、所定の期間において選択部が第2の入力を選択して所定の遅延素子に入力させるようにしているため、N段の遅延素子で画像信号の外挿処理が可能となり、回路規模を縮小することができる。   According to the present invention, N stages of delay elements are connected in series, and the selection unit selects the second input and inputs it to the predetermined delay element in a predetermined period. Thus, extrapolation processing of the image signal becomes possible, and the circuit scale can be reduced.

以下、図面を参照し、本発明の実施形態を説明する。以下の各実施形態において、2次元フィルタのタップ数は5であるものとする。タップ数をNとすると、外挿処理に必要なライン数は(N−1)/2で定義されるため、以下の各実施形態の外挿処理に必要なライン数は2ラインとなる。   Hereinafter, embodiments of the present invention will be described with reference to the drawings. In the following embodiments, it is assumed that the number of taps of the two-dimensional filter is five. If the number of taps is N, the number of lines necessary for the extrapolation process is defined by (N−1) / 2, and therefore the number of lines necessary for the extrapolation process in each of the following embodiments is two.

(第1の実施形態)
まず、本発明の第1の実施形態を説明する。図1は、本実施形態による2次元フィルタ処理部13の前処理回路の構成を示している。この前処理回路は、制御部10、ライン数カウンタ11、および垂直方向外挿部12を備えている。
(First embodiment)
First, a first embodiment of the present invention will be described. FIG. 1 shows a configuration of a preprocessing circuit of the two-dimensional filter processing unit 13 according to the present embodiment. The preprocessing circuit includes a control unit 10, a line number counter 11, and a vertical extrapolation unit 12.

制御部10は、回路の動作を制御するための制御信号を出力する。ライン数カウンタ11は、制御部10から入力される制御信号に基づいてインクリメントされるカウント値(画素数)を記憶する。インクリメントされたカウント値は垂直方向外挿部12へ出力される。垂直方向外挿部12には入力データ(画像信号)およびライン数カウンタ11からのカウント値が入力される。垂直方向外挿部12は、ライン数カウンタ11からのカウント値に応じて、図4に示すように、画像信号に基づいた原画像41のデータに対して垂直方向の上端の領域41aおよび下端の領域41bのデータを外挿する。図5は本実施形態の外挿処理を模式的に示している。原画像51の上端および下端のデータが上下方向に対称となるように外挿される。外挿処理が行われた画像信号は後段の2次元フィルタ処理部13へ出力される。2次元フィルタ処理部13は、入力された画像信号に対して2次元フィルタ処理を施す。   The control unit 10 outputs a control signal for controlling the operation of the circuit. The line number counter 11 stores a count value (number of pixels) that is incremented based on a control signal input from the control unit 10. The incremented count value is output to the vertical extrapolation unit 12. Input data (image signal) and the count value from the line number counter 11 are input to the vertical extrapolation unit 12. As shown in FIG. 4, the vertical extrapolation unit 12 responds to the count value from the line number counter 11 with respect to the data of the original image 41 based on the image signal in the vertical upper region 41 a and the lower end. The data in the area 41b is extrapolated. FIG. 5 schematically shows the extrapolation processing of this embodiment. The data of the upper end and the lower end of the original image 51 is extrapolated so as to be symmetrical in the vertical direction. The image signal subjected to the extrapolation processing is output to the two-dimensional filter processing unit 13 at the subsequent stage. The two-dimensional filter processing unit 13 performs two-dimensional filter processing on the input image signal.

図2は垂直方向外挿部12の回路構成を示している。まず、図2(a)に示す回路の構成および動作を説明する。垂直方向外挿部12は、画像信号を遅延させる遅延素子である5段のラインメモリ121a,121b,121c,121d,121e、および入力信号の選択機能を有する選択部122a,122b,122cを備えている。ラインメモリの段数である5は、2次元フィルタ処理部13が処理単位とする画像の垂直方向の画素数に相当する。   FIG. 2 shows a circuit configuration of the vertical extrapolation unit 12. First, the configuration and operation of the circuit shown in FIG. The vertical extrapolation unit 12 includes five stages of line memories 121a, 121b, 121c, 121d, and 121e that are delay elements for delaying image signals, and selection units 122a, 122b, and 122c having a function of selecting an input signal. Yes. The number of stages of the line memory 5 corresponds to the number of pixels in the vertical direction of the image that is processed by the two-dimensional filter processing unit 13.

各ラインメモリには1ライン分のデータが格納される。また、各ラインメモリは直列に連結されている。ただし、ラインメモリ121dは、選択部122bを介して前段のラインメモリ121cと直列に連結され、ラインメモリ121eは、選択部122cを介して前段のラインメモリ121dと直列に連結されている。また、各ラインメモリの出力が2次元フィルタ処理部13の入力に接続されており、各ラインメモリに格納されたデータ(画像信号)が同時に連続して2次元フィルタ処理部13に入力されるようになっている。   Each line memory stores data for one line. Each line memory is connected in series. However, the line memory 121d is connected in series with the previous line memory 121c via the selection unit 122b, and the line memory 121e is connected in series with the previous line memory 121d via the selection unit 122c. Further, the output of each line memory is connected to the input of the two-dimensional filter processing unit 13 so that the data (image signal) stored in each line memory is simultaneously input to the two-dimensional filter processing unit 13 at the same time. It has become.

初段のラインメモリ121aの入力は選択部122aの出力に接続されている。選択部122aは、ライン数カウンタ11から入力されるカウント値が示すライン数120dに応じて、新たな画素に係る入力データ120a(画像信号)と、ラインメモリ121aから出力されたデータ120bと、ラインメモリ121cから出力されたデータ120cとのいずれかを選択してラインメモリ121aへ出力する。後述するように、選択部122aが所定の期間でデータ120b,120cをラインメモリ121aへ出力することによって、図4に示した原画像41の下端の領域41bのデータが外挿される。   The input of the first stage line memory 121a is connected to the output of the selection unit 122a. The selection unit 122a, according to the line number 120d indicated by the count value input from the line number counter 11, input data 120a (image signal) related to a new pixel, data 120b output from the line memory 121a, One of the data 120c output from the memory 121c is selected and output to the line memory 121a. As will be described later, when the selection unit 122a outputs the data 120b and 120c to the line memory 121a in a predetermined period, the data in the region 41b at the lower end of the original image 41 shown in FIG. 4 is extrapolated.

ラインメモリ121aには、原画像の画像データ(入力データ120a)あるいは垂直方向の外挿データ(データ120b,120c)が選択部122aによって選択されてライン単位(1ライン分の画素からなる画素群単位)で入力される。ラインメモリ121aに入力されたデータは1ライン分の遅延の後に出力される。出力されたデータは2次元フィルタ処理部13へ出力されると共に、後段のラインメモリ121bへデータ120eとして、選択部122cへデータ120fとして、選択部122aへデータ120bとして出力される。   In the line memory 121a, the image data (input data 120a) of the original image or the extrapolation data (data 120b, 120c) in the vertical direction is selected by the selection unit 122a, and the line unit (pixel group unit composed of pixels for one line) is selected. ). The data input to the line memory 121a is output after a delay of one line. The output data is output to the two-dimensional filter processing unit 13, and is also output as data 120e to the subsequent line memory 121b, as data 120f to the selection unit 122c, and as data 120b to the selection unit 122a.

ラインメモリ121bには、ラインメモリ121aから出力されたデータ120eが入力される。ラインメモリ121bに入力されたデータは1ライン分の遅延の後に出力される。出力されたデータは2次元フィルタ処理部13へ出力されると共に、後段のラインメモリ121cへデータ120gとして、選択部122bへデータ120hとして出力される。   Data 120e output from the line memory 121a is input to the line memory 121b. The data input to the line memory 121b is output after a delay of one line. The output data is output to the two-dimensional filter processing unit 13, and is output as data 120g to the line memory 121c at the subsequent stage and as data 120h to the selection unit 122b.

ラインメモリ121cには、ラインメモリ121bから出力されたデータ120gが入力される。ラインメモリ121cに入力されたデータは1ライン分の遅延の後に出力される。出力されたデータは2次元フィルタ処理部13へ出力されると共に、選択部122bへデータ120iとして、選択部122aへデータ120cとして出力される。   The data 120g output from the line memory 121b is input to the line memory 121c. The data input to the line memory 121c is output after a delay of one line. The output data is output to the two-dimensional filter processing unit 13, and is output to the selection unit 122b as data 120i and to the selection unit 122a as data 120c.

ラインメモリ121cの出力およびラインメモリ121dの入力の間には選択部122bが接続されている。選択部122bは、ライン数120dに応じて、ラインメモリ121bから出力されたデータ120hと、ラインメモリ121cから出力されたデータ120iとのいずれかを選択してラインメモリ121dへ出力する。後述するように、選択部122bが所定の期間でデータ120hをラインメモリ121dへ出力することによって、図4に示した原画像41の上端の領域41aのデータが外挿される。   A selection unit 122b is connected between the output of the line memory 121c and the input of the line memory 121d. The selection unit 122b selects either the data 120h output from the line memory 121b or the data 120i output from the line memory 121c according to the number of lines 120d, and outputs the selected data to the line memory 121d. As will be described later, when the selection unit 122b outputs the data 120h to the line memory 121d in a predetermined period, the data in the upper end area 41a of the original image 41 shown in FIG. 4 is extrapolated.

ラインメモリ121dには、選択部122bから出力されたデータ120hまたはデータ120iが入力される。ラインメモリ121dに入力されたデータは1ライン分の遅延の後に出力される。出力されたデータは2次元フィルタ処理部13へ出力されると共に、選択部122cへデータ120jとして出力される。   Data 120h or data 120i output from the selection unit 122b is input to the line memory 121d. The data input to the line memory 121d is output after a delay of one line. The output data is output to the two-dimensional filter processing unit 13 and is also output to the selection unit 122c as data 120j.

ラインメモリ121dの出力およびラインメモリ121eの入力の間には選択部122cが接続されている。選択部122cは、ライン数120dに応じて、ラインメモリ121aから出力されたデータ120fと、ラインメモリ121dから出力されたデータ120jとのいずれかを選択してラインメモリ121eへ出力する。後述するように、選択部122cが所定の期間でデータ120fをラインメモリ121eへ出力することによって、図4に示した原画像41の上端の領域41aのデータが外挿される。選択部122b,122cは、同じライン数に基づいた期間で入力の切り換えを行う。   A selector 122c is connected between the output of the line memory 121d and the input of the line memory 121e. The selection unit 122c selects either the data 120f output from the line memory 121a or the data 120j output from the line memory 121d according to the number of lines 120d, and outputs the selected data to the line memory 121e. As will be described later, when the selection unit 122c outputs the data 120f to the line memory 121e in a predetermined period, the data in the upper end area 41a of the original image 41 shown in FIG. 4 is extrapolated. The selection units 122b and 122c perform input switching in a period based on the same number of lines.

次に、垂直方向外挿部12の動作を説明する。図3は垂直方向外挿部12の動作を示している。図3(a)と(b)のうち図3(a)は、図2(a)に示した回路の動作を示している。ライン数に応じた期間で入力データ120aがライン単位で選択部122aに入力される。以下、A,B,C,・・・,X,Y,Zというデータが入力データ120aとして順に選択部122aに入力されるものとする。   Next, the operation of the vertical extrapolation unit 12 will be described. FIG. 3 shows the operation of the vertical extrapolation unit 12. Of FIGS. 3A and 3B, FIG. 3A shows the operation of the circuit shown in FIG. Input data 120a is input to the selection unit 122a line by line in a period corresponding to the number of lines. Hereinafter, it is assumed that data A, B, C,..., X, Y, Z are sequentially input to the selection unit 122a as input data 120a.

ライン数が25の期間までは、入力データ120aを選択するように、選択部122aによる入力の選択は固定される。ライン数が0の期間でデータAが選択部122aに入力されると、選択部122aはそのデータAをラインメモリ121aへ出力する。ラインメモリ121aはライン数が1の期間でデータAを出力する(Dout1=A)。このデータAはラインメモリ121bおよび選択部122aに入力される。ラインメモリ121bはライン数が2の期間でデータAを出力する(Dout2=A)。このデータAはラインメモリ121cに入力される。ラインメモリ121cはライン数が3の期間でデータAを出力する(Dout3=A)。このデータAは選択部122a,122bに入力される。   Until the number of lines is 25, the selection of input by the selection unit 122a is fixed so that the input data 120a is selected. When the data A is input to the selection unit 122a during the period when the number of lines is 0, the selection unit 122a outputs the data A to the line memory 121a. The line memory 121a outputs data A in a period where the number of lines is 1 (Dout1 = A). This data A is input to the line memory 121b and the selection unit 122a. The line memory 121b outputs data A in a period in which the number of lines is 2 (Dout2 = A). This data A is input to the line memory 121c. The line memory 121c outputs data A in a period where the number of lines is 3 (Dout3 = A). This data A is input to the selectors 122a and 122b.

ライン数が2の期間で選択部122bには、ラインメモリ121bから出力されたデータAが入力される。選択部122bはこのデータAをラインメモリ121dへ出力する。ラインメモリ121dはライン数が3の期間でデータAを出力する(Dout4=A)。また、ライン数が2の期間で選択部122cには、ラインメモリ121aから出力されたデータBが入力される。選択部122cはこのデータBをラインメモリ121eへ出力する。ラインメモリ121eはライン数が3の期間でデータBを出力する(Dout5=B)。   The data A output from the line memory 121b is input to the selection unit 122b during the period in which the number of lines is two. The selection unit 122b outputs this data A to the line memory 121d. The line memory 121d outputs data A during the period when the number of lines is 3 (Dout4 = A). In addition, the data B output from the line memory 121a is input to the selection unit 122c during the period in which the number of lines is two. The selection unit 122c outputs this data B to the line memory 121e. The line memory 121e outputs data B in a period where the number of lines is 3 (Dout5 = B).

ライン数が3の期間で選択部122bには、ラインメモリ121bから出力されたデータBと、ラインメモリ121cから出力されたデータAとが入力される。選択部122bはデータAを選択してラインメモリ121dへ出力する。ラインメモリ121dはライン数が4の期間でデータAを出力する(Dout4=A)。また、ライン数が3の期間で選択部122cには、ラインメモリ121aから出力されたデータCと、ラインメモリ121dから出力されたデータAとが入力される。選択部122cはデータAを選択してラインメモリ121eへ出力する。ラインメモリ121eはライン数が4の期間でデータAを出力する(Dout5=A)。   Data B output from the line memory 121b and data A output from the line memory 121c are input to the selection unit 122b in the period where the number of lines is three. The selection unit 122b selects the data A and outputs it to the line memory 121d. The line memory 121d outputs data A in a period where the number of lines is 4 (Dout4 = A). In addition, the data C output from the line memory 121a and the data A output from the line memory 121d are input to the selection unit 122c during the period of 3 lines. The selection unit 122c selects the data A and outputs it to the line memory 121e. The line memory 121e outputs data A in a period in which the number of lines is 4 (Dout5 = A).

上記の動作により、ラインメモリ121dには、ラインメモリ121cから出力されたデータAが入力される期間よりも前の期間で、ラインメモリ121bから出力された外挿分のデータAが先行して入力される。また、ラインメモリ121eには、ラインメモリ121dから出力されたデータAが入力される期間よりも前の期間で、ラインメモリ121aから出力された外挿分のデータBと、ラインメモリ121dから出力された外挿分のデータAとが先行して入力される。したがって、図4に示した原画像41の上端の領域41aのデータを外挿することができる。   By the above operation, the extrapolated data A output from the line memory 121b is input to the line memory 121d in advance before the period in which the data A output from the line memory 121c is input. Is done. The line memory 121e outputs extrapolated data B output from the line memory 121a and the line memory 121d in a period before the period in which the data A output from the line memory 121d is input. The extrapolated data A is input in advance. Therefore, the data of the upper end area 41a of the original image 41 shown in FIG. 4 can be extrapolated.

ライン数が4の期間で選択部122b,122cは同時に入力を切り換える。すなわち、選択部122bはラインメモリ121cからのデータ120iを選択するように、選択部122cはラインメモリ121dからのデータ120jを選択するように、それぞれ入力を切り換える。これ以後、選択部122b,122cによる入力の選択は固定される。   In the period where the number of lines is 4, the selectors 122b and 122c simultaneously switch inputs. That is, the selection unit 122b switches the input so that the data 120i from the line memory 121c is selected, and the selection unit 122c switches the input so that the data 120j from the line memory 121d is selected. Thereafter, the selection of input by the selection units 122b and 122c is fixed.

また、ライン数が26,27の期間で選択部122aは入力を切り換える。ライン数が26の期間で選択部122aには、ラインメモリ121aから出力されたデータZと、ラインメモリ121cから出力されたデータXとが入力される。選択部122aはデータZを選択してラインメモリ121aへ出力する。ラインメモリ121aはライン数が27の期間でデータZを出力する(Dout1=Z)。   In addition, the selection unit 122a switches the input during the period in which the number of lines is 26 and 27. The data Z output from the line memory 121a and the data X output from the line memory 121c are input to the selection unit 122a during the period of 26 lines. The selection unit 122a selects the data Z and outputs it to the line memory 121a. The line memory 121a outputs data Z in a period in which the number of lines is 27 (Dout1 = Z).

ライン数が27の期間で選択部122aには、ラインメモリ121aから出力されたデータZと、ラインメモリ121cから出力されたデータYとが入力される。選択部122aはデータYを選択してラインメモリ121aへ出力する。ラインメモリ121aはライン数が28の期間でデータYを出力する(Dout1=Y)。   The data 122 output from the line memory 121a and the data Y output from the line memory 121c are input to the selection unit 122a during the period of 27 lines. The selection unit 122a selects the data Y and outputs it to the line memory 121a. The line memory 121a outputs data Y in a period where the number of lines is 28 (Dout1 = Y).

上記の動作により、ラインメモリ121aには、終端の画素を含むラインに係るデータZが入力された期間よりも後の期間で、ラインメモリ121aから出力された外挿分のデータZと、ラインメモリ121cから出力された外挿分のデータYとが入力される。したがって、図4に示した原画像41の下端の領域41bのデータを外挿することができる。なお、図2(b)のように結線すると、初段のラインメモリ121aは不要とすることができる。すなわち、選択部122aに入力されるラインメモリからの入力をラインメモリ121b,121dとする。このときの垂直方向外挿部12の動作を図3(b)に示す。図3(b)から明らかなように、図3(a)に比べて、選択部122bと122cにおける入力の切替のタイミングを1ライン分早くする必要がある。   By the above operation, the extrapolated data Z output from the line memory 121a and the line memory in the line memory 121a in a period later than the period in which the data Z relating to the line including the terminal pixel is input. The extrapolated data Y output from 121c is input. Therefore, it is possible to extrapolate the data in the region 41b at the lower end of the original image 41 shown in FIG. 2B, the first-stage line memory 121a can be dispensed with. In other words, the line memory 121b and 121d are input from the line memory input to the selection unit 122a. The operation of the vertical extrapolation unit 12 at this time is shown in FIG. As is clear from FIG. 3B, the input switching timing in the selection units 122b and 122c needs to be advanced by one line compared to FIG.

次に、本実施形態の変形例を説明する。図6は垂直方向外挿部12の他の回路構成例を示している。図6(a)に示す回路では、選択部122a,122cの入力が図2に示した回路とは異なっている。選択部122aは、新たな画素に係る入力データ120a(画像信号)と、ラインメモリ121aから出力されたデータ120bとのいずれかを選択してラインメモリ121aへ出力する。また、選択部122cは、ラインメモリ121bから出力されたデータ120hと、ラインメモリ121dから出力されたデータ120jとのいずれかを選択してラインメモリ121eへ出力する。   Next, a modification of this embodiment will be described. FIG. 6 shows another circuit configuration example of the vertical extrapolation unit 12. In the circuit shown in FIG. 6A, the inputs of the selectors 122a and 122c are different from the circuit shown in FIG. The selection unit 122a selects either the input data 120a (image signal) related to the new pixel or the data 120b output from the line memory 121a and outputs the selected data to the line memory 121a. The selection unit 122c selects either the data 120h output from the line memory 121b or the data 120j output from the line memory 121d, and outputs the selected data to the line memory 121e.

図7は垂直方向外挿部12の動作を示している。図7(a)と(b)のうち図7(a)は、図6(a)に示した回路の動作を示している。ライン数が2の期間で選択部122b,122cには、ラインメモリ121bから出力されたデータAが入力される。選択部122b,122cはこのデータAをそれぞれラインメモリ121d,121eへ出力する。ラインメモリ121d,121eはライン数が3の期間でデータAを出力する(Dout4,Dout5=A)。また、ライン数が3の期間で選択部122cには、ラインメモリ121bから出力されたデータBと、ラインメモリ121dから出力されたデータAとが入力される。選択部122cはデータAを選択してラインメモリ121eへ出力する。ラインメモリ121eはライン数が4の期間でデータAを出力する(Dout5=A)。   FIG. 7 shows the operation of the vertical extrapolation unit 12. Of FIGS. 7A and 7B, FIG. 7A shows the operation of the circuit shown in FIG. The data A output from the line memory 121b is input to the selection units 122b and 122c in the period where the number of lines is two. The selectors 122b and 122c output this data A to the line memories 121d and 121e, respectively. The line memories 121d and 121e output data A in a period in which the number of lines is 3 (Dout4, Dout5 = A). In addition, the data B output from the line memory 121b and the data A output from the line memory 121d are input to the selection unit 122c during the period of 3 lines. The selection unit 122c selects the data A and outputs it to the line memory 121e. The line memory 121e outputs data A in a period in which the number of lines is 4 (Dout5 = A).

ライン数が26の期間で選択部122aには、ラインメモリ121aから出力されたデータZが入力される。選択部122aはデータZを選択してラインメモリ121aへ出力する。ラインメモリ121aはライン数が27の期間でデータZを出力する(Dout1=Z)。同様にライン数が27の期間で選択部122aはデータZを選択してラインメモリ121aへ出力する。ラインメモリ121aはライン数が28の期間でデータZを出力する(Dout1=Z)。   Data Z output from the line memory 121a is input to the selection unit 122a during a period of 26 lines. The selection unit 122a selects the data Z and outputs it to the line memory 121a. The line memory 121a outputs data Z in a period in which the number of lines is 27 (Dout1 = Z). Similarly, the selection unit 122a selects the data Z and outputs it to the line memory 121a during the period in which the number of lines is 27. The line memory 121a outputs data Z in a period in which the number of lines is 28 (Dout1 = Z).

上記以外の動作は前述した動作と同様である。上記の動作により、図4に示した原画像41の上端の画素のデータが繰り返し外挿されると共に、原画像41の下端のデータが繰り返し外挿される。なお、図6(b)のように結線すると、初段のラインメモリ121aは不要とすることができる。すなわち、選択部122aに入力されるラインメモリからの入力をラインメモリ121bとする。このときの垂直方向外挿部12の動作を図7(b)に示す。図7(b)から明らかなように、図7(a)に比べて、選択部122bと122cにおける入力の切替のタイミングを1ライン分早くする必要がある。   Operations other than those described above are the same as those described above. With the above operation, the data of the upper end pixel of the original image 41 shown in FIG. 4 is repeatedly extrapolated, and the lower end data of the original image 41 is repeatedly extrapolated. In addition, if it connects as shown in FIG.6 (b), the first stage line memory 121a can be made unnecessary. That is, the input from the line memory input to the selection unit 122a is the line memory 121b. The operation of the vertical extrapolation unit 12 at this time is shown in FIG. As is clear from FIG. 7B, the input switching timing in the selection units 122b and 122c needs to be advanced by one line compared to FIG. 7A.

上述したように、本実施形態によれば、所定の期間において、選択部122a,122b,122cからラインメモリ121a,121d,121eへの入力を所定の入力へ切り換えることによって、画像信号の外挿処理を行うことができる。   As described above, according to the present embodiment, extrapolation processing of an image signal is performed by switching the input from the selection units 122a, 122b, and 122c to the line memories 121a, 121d, and 121e to a predetermined input in a predetermined period. It can be performed.

本実施形態では、2次元フィルタのタップ数が5である場合の垂直方向外挿部12の構成および動作を説明したが、タップ数をより一般的な整数Lとした場合、最終段(タップについて見るとL番目のタップ)からK段目(Kは0から(L/2の整数部)−1のいずれかの整数)のタップに接続された遅延素子(本実施形態のように複数個の遅延素子でもよい)の入力側に本実施形態と同様の選択部を設けることによって、図4に示した原画像41の上端の領域41aのデータを外挿することができる。さらに、初段のタップの入力側に本実施形態と同様の選択部を設けることによって、図4に示した原画像41の下端の領域41bのデータを外挿することができる。   In the present embodiment, the configuration and operation of the vertical extrapolation unit 12 when the number of taps of the two-dimensional filter is five have been described. However, when the number of taps is a more general integer L, the final stage (about taps) When viewed, a delay element (as in the present embodiment) connected to a tap from the L-th tap to the K-th stage (K is an integer from 0 to (an integer part of L / 2) -1). By providing a selection unit similar to the present embodiment on the input side of the delay element), the data in the upper end region 41a of the original image 41 shown in FIG. 4 can be extrapolated. Furthermore, by providing a selection unit similar to that of the present embodiment on the input side of the first-stage tap, it is possible to extrapolate the data in the region 41b at the lower end of the original image 41 shown in FIG.

また、少なくとも(L−1)段の遅延素子で画像信号の外挿処理を行うことにより、画像メモリに1フレーム分のデータを格納する必要がなくなるので、回路規模を縮小することができる。また、画像メモリに1フレーム分のデータを格納するとフレーム遅延が生じるが、本実施形態によればフレーム遅延が発生しないので、リアルタイム性を必要とする場合に好適である。   In addition, by extrapolating the image signal with at least (L-1) stages of delay elements, it is not necessary to store one frame of data in the image memory, so that the circuit scale can be reduced. In addition, when one frame of data is stored in the image memory, a frame delay occurs. However, according to the present embodiment, no frame delay occurs, which is suitable when real-time characteristics are required.

(第2の実施形態)
次に、本発明の第2の実施形態を説明する。図8は、本実施形態による2次元フィルタ処理部83の前処理回路の構成を示している。この前処理回路は、制御部80、画素数カウンタ81、および水平方向外挿部82を備えている。
(Second Embodiment)
Next, a second embodiment of the present invention will be described. FIG. 8 shows a configuration of a preprocessing circuit of the two-dimensional filter processing unit 83 according to the present embodiment. The preprocessing circuit includes a control unit 80, a pixel number counter 81, and a horizontal extrapolation unit 82.

制御部80は、回路の動作を制御するための制御信号を出力する。画素数カウンタ81は、制御部80から入力される制御信号に基づいてインクリメントされるカウント値(画素数)を記憶する。インクリメントされたカウント値は水平方向外挿部82へ出力される。水平方向外挿部82には入力データ(画像信号)および画素数カウンタ81からのカウント値が入力される。水平方向外挿部82は、画素数カウンタ81からのカウント値に応じて、図11に示すように、画像信号に基づいた原画像111のデータに対して水平方向の左端の領域111aおよび右端の領域111bのデータを外挿する。図12は本実施形態の外挿処理を模式的に示している。原画像121の左端および右端のデータが左右方向に対称となるように外挿される。外挿処理が行われた画像信号は後段の2次元フィルタ処理部83へ出力される。2次元フィルタ処理部83は、入力された画像信号に対して2次元フィルタ処理を施す。   The control unit 80 outputs a control signal for controlling the operation of the circuit. The pixel number counter 81 stores a count value (number of pixels) that is incremented based on a control signal input from the control unit 80. The incremented count value is output to the horizontal extrapolation unit 82. The horizontal extrapolation unit 82 receives input data (image signal) and a count value from the pixel number counter 81. As shown in FIG. 11, the horizontal extrapolation unit 82 corresponds to the data of the original image 111 based on the image signal according to the count value from the pixel number counter 81, and the leftmost region 111 a and the rightmost region in the horizontal direction. Extrapolate the data in region 111b. FIG. 12 schematically shows the extrapolation processing of the present embodiment. The data at the left end and the right end of the original image 121 are extrapolated so as to be symmetrical in the left-right direction. The image signal subjected to the extrapolation processing is output to the two-dimensional filter processing unit 83 at the subsequent stage. The two-dimensional filter processing unit 83 performs two-dimensional filter processing on the input image signal.

図9は水平方向外挿部82の回路構成を示している。まず、図9(a)に示す回路の構成および動作を説明する。水平方向外挿部82は、画像信号を遅延させる遅延素子である5段のレジスタ821a,821b,821c,821d,821e、および入力信号の選択機能を有する選択部822a,822b,822cを備えている。レジスタの段数である5は、2次元フィルタ処理部83が処理単位とする画像の水平方向の画素数に相当する。   FIG. 9 shows a circuit configuration of the horizontal extrapolation section 82. First, the configuration and operation of the circuit shown in FIG. The horizontal extrapolation unit 82 includes five stages of registers 821a, 821b, 821c, 821d, and 821e that are delay elements for delaying image signals, and selection units 822a, 822b, and 822c having a function of selecting an input signal. . The number of register stages of 5 corresponds to the number of pixels in the horizontal direction of the image that is processed by the two-dimensional filter processing unit 83.

各レジスタには1画素分のデータが格納される。また、各レジスタは直列に連結されている。ただし、レジスタ821dは、選択部822bを介して前段のレジスタ821cと直列に連結され、レジスタ821eは、選択部822cを介して前段のレジスタ821dと直列に連結されている。また、各レジスタの出力が2次元フィルタ処理部83の入力に接続されており、各レジスタに格納されたデータ(画像信号)が一括して2次元フィルタ処理部83に入力されるようになっている。   Each register stores data for one pixel. Each register is connected in series. However, the register 821d is connected in series with the preceding register 821c via the selection unit 822b, and the register 821e is connected in series with the preceding register 821d via the selection unit 822c. In addition, the output of each register is connected to the input of the two-dimensional filter processing unit 83, and the data (image signal) stored in each register is input to the two-dimensional filter processing unit 83 in a lump. Yes.

初段のレジスタ821aの入力は選択部822aの出力に接続されている。選択部822aは、画素数カウンタ81から入力されるカウント値が示す画素数820dに応じて、新たな画素に係る入力データ820a(画像信号)と、レジスタ821aから出力されたデータ820bと、レジスタ821cから出力されたデータ820cとのいずれかを選択してレジスタ821aへ出力する。後述するように、選択部822aが所定の期間でデータ820b,820cをレジスタ821aへ出力することによって、図11に示した原画像111の右端の領域111bのデータが外挿される。   The input of the first-stage register 821a is connected to the output of the selection unit 822a. The selection unit 822a selects input data 820a (image signal) related to a new pixel, data 820b output from the register 821a, and register 821c according to the number of pixels 820d indicated by the count value input from the pixel number counter 81. Is selected from the data 820c output from, and is output to the register 821a. As will be described later, when the selection unit 822a outputs data 820b and 820c to the register 821a in a predetermined period, the data in the right end region 111b of the original image 111 shown in FIG. 11 is extrapolated.

レジスタ821aには、原画像の画像データ(入力データ820a)あるいは水平方向の外挿データ(データ820b,820c)が選択部822aによって選択されて画素単位で入力される。レジスタ821aに入力されたデータは1画素(1サイクル)分の遅延の後に出力される。出力されたデータは2次元フィルタ処理部83へ出力されると共に、後段のレジスタ821bへデータ820eとして、選択部822cへデータ820fとして、選択部822aへデータ820bとして出力される。   Image data of the original image (input data 820a) or extrapolation data in the horizontal direction (data 820b, 820c) is selected by the selection unit 822a and input to the register 821a in units of pixels. The data input to the register 821a is output after a delay of one pixel (one cycle). The output data is output to the two-dimensional filter processing unit 83, and is output as data 820e to the subsequent register 821b, as data 820f to the selection unit 822c, and as data 820b to the selection unit 822a.

レジスタ821bには、レジスタ821aから出力されたデータ820eが入力される。レジスタ821bに入力されたデータは1画素(1サイクル)分の遅延の後に出力される。出力されたデータは2次元フィルタ処理部83へ出力されると共に、後段のレジスタ821cへデータ820gとして、選択部822bへデータ820hとして出力される。   Data 820e output from the register 821a is input to the register 821b. The data input to the register 821b is output after a delay of one pixel (one cycle). The output data is output to the two-dimensional filter processing unit 83, and is output to the subsequent register 821c as data 820g and to the selection unit 822b as data 820h.

レジスタ821cには、レジスタ821bから出力されたデータ820gが入力される。レジスタ821cに入力されたデータは1画素(1ライン)分の遅延の後に出力される。出力されたデータは2次元フィルタ処理部83へ出力されると共に、選択部822bへデータ820iとして、選択部822aへデータ820cとして出力される。   The data 820g output from the register 821b is input to the register 821c. The data input to the register 821c is output after a delay of one pixel (one line). The output data is output to the two-dimensional filter processing unit 83, and is output to the selection unit 822b as data 820i and to the selection unit 822a as data 820c.

レジスタ821cの出力およびレジスタ821dの入力の間には選択部822bが接続されている。選択部822bは、画素数820dに応じて、レジスタ821bから出力されたデータ820hと、レジスタ821cから出力されたデータ820iとのいずれかを選択してレジスタ821dへ出力する。後述するように、選択部822bが所定の期間でデータ820hをレジスタ821dへ出力することによって、図11に示した原画像111の左端の領域111aのデータが外挿される。   A selection unit 822b is connected between the output of the register 821c and the input of the register 821d. The selection unit 822b selects either the data 820h output from the register 821b or the data 820i output from the register 821c according to the number of pixels 820d, and outputs the selected data to the register 821d. As will be described later, the selection unit 822b outputs the data 820h to the register 821d in a predetermined period, thereby extrapolating the data in the left end region 111a of the original image 111 shown in FIG.

レジスタ821dには、選択部822bから出力されたデータ820hまたはデータ820iが入力される。レジスタ821dに入力されたデータは1画素(1サイクル)分の遅延の後に出力される。出力されたデータは2次元フィルタ処理部83へ出力されると共に、選択部822cへデータ820jとして出力される。   Data 820h or data 820i output from the selection unit 822b is input to the register 821d. The data input to the register 821d is output after a delay of one pixel (one cycle). The output data is output to the two-dimensional filter processing unit 83 and also output as data 820j to the selection unit 822c.

レジスタ821dの出力およびレジスタ821eの入力の間には選択部822cが接続されている。選択部822cは、画素数820dに応じて、レジスタ821aから出力されたデータ820fと、レジスタ821dから出力されたデータ820jとのいずれかを選択してレジスタ821eへ出力する。後述するように、選択部822cが所定の期間でデータ820fをレジスタ821eへ出力することによって、図11に示した原画像111の左端の領域111aのデータが外挿される。選択部822b,822cは、同じライン数に基づいた期間で入力の切り換えを行う。   A selection unit 822c is connected between the output of the register 821d and the input of the register 821e. The selection unit 822c selects either the data 820f output from the register 821a or the data 820j output from the register 821d according to the number of pixels 820d, and outputs the selected data to the register 821e. As will be described later, the selection unit 822c outputs the data 820f to the register 821e in a predetermined period, thereby extrapolating the data in the left end region 111a of the original image 111 shown in FIG. The selection units 822b and 822c perform input switching in a period based on the same number of lines.

次に、水平方向外挿部82の動作を説明する。図10は水平方向外挿部82の動作を示している。図10(a)と(b)のうち図10(a)は、図9(a)に示した回路の動作を示している。画素数に応じた期間で入力データ820aが画素単位で選択部822aに入力される。以下、a,b,c,・・・,x,y,zというデータが入力データ820aとして順に選択部822aに入力されるものとする。   Next, the operation of the horizontal extrapolation unit 82 will be described. FIG. 10 shows the operation of the horizontal extrapolation unit 82. Of FIGS. 10A and 10B, FIG. 10A shows the operation of the circuit shown in FIG. Input data 820a is input to the selection unit 822a in units of pixels in a period according to the number of pixels. Hereinafter, it is assumed that data a, b, c,..., X, y, z are sequentially input to the selection unit 822a as input data 820a.

画素数が25の期間までは、入力データ820aを選択するように、選択部822aによる入力の選択は固定される。画素数が0の期間でデータaが選択部822aに入力されると、選択部822aはそのデータaをレジスタ821aへ出力する。レジスタ821aは画素数が1の期間でデータaを出力する(DOUT1=a)。このデータaはレジスタ821bおよび選択部822aに入力される。レジスタ821bは画素数が2の期間でデータaを出力する(DOUT2=a)。このデータaはレジスタ821cに入力される。レジスタ821cは画素数が3の期間でデータaを出力する(DOUT3=a)。このデータaは選択部822a,822bに入力される。   Until the period when the number of pixels is 25, the selection of input by the selection unit 822a is fixed so that the input data 820a is selected. When the data a is input to the selection unit 822a in the period where the number of pixels is 0, the selection unit 822a outputs the data a to the register 821a. The register 821a outputs data a in a period in which the number of pixels is 1 (DOUT1 = a). The data a is input to the register 821b and the selection unit 822a. The register 821b outputs data a in a period in which the number of pixels is 2 (DOUT2 = a). This data a is input to the register 821c. The register 821c outputs data a during a period in which the number of pixels is 3 (DOUT3 = a). This data a is input to the selection units 822a and 822b.

画素数が2の期間で選択部822bには、レジスタ821bから出力されたデータaが入力される。選択部822bはこのデータaをレジスタ821dへ出力する。レジスタ821dは画素数が3の期間でデータaを出力する(DOUT4=a)。また、画素数が2の期間で選択部822cには、レジスタ821aから出力されたデータbが入力される。選択部822cはこのデータbをレジスタ821eへ出力する。レジスタ821eは画素数が3の期間でデータbを出力する(DOUT5=b)。   Data a output from the register 821b is input to the selection unit 822b during the period in which the number of pixels is two. The selection unit 822b outputs the data a to the register 821d. The register 821d outputs data a in a period where the number of pixels is 3 (DOUT4 = a). In addition, the data b output from the register 821a is input to the selection unit 822c during the period in which the number of pixels is two. The selection unit 822c outputs this data b to the register 821e. The register 821e outputs data b in a period in which the number of pixels is 3 (DOUT5 = b).

画素数が3の期間で選択部822bには、レジスタ821bから出力されたデータbと、レジスタ821cから出力されたデータaとが入力される。選択部822bはデータaを選択してレジスタ821dへ出力する。レジスタ821dは画素数が4の期間でデータaを出力する(DOUT4=a)。また、画素数が3の期間で選択部822cには、レジスタ821aから出力されたデータcと、レジスタ821dから出力されたデータaとが入力される。選択部822cはデータaを選択してレジスタ821eへ出力する。レジスタ821eは画素数が4の期間でデータaを出力する(DOUT5=a)。   The data b output from the register 821b and the data a output from the register 821c are input to the selection unit 822b in the period where the number of pixels is 3. The selection unit 822b selects the data a and outputs it to the register 821d. The register 821d outputs data a during a period in which the number of pixels is four (DOUT4 = a). In addition, the data c output from the register 821a and the data a output from the register 821d are input to the selection unit 822c in the period where the number of pixels is three. The selection unit 822c selects the data a and outputs it to the register 821e. The register 821e outputs data a during a period in which the number of pixels is four (DOUT5 = a).

上記の動作により、レジスタ821dには、レジスタ821cから出力されたデータaが入力される期間よりも前の期間で、レジスタ821bから出力された外挿分のデータaが先行して入力される。また、レジスタ821eには、レジスタ821dから出力されたデータaが入力される期間よりも前の期間で、レジスタ821aから出力された外挿分のデータbが先行して入力される。したがって、図11に示した原画像111の左端の領域111aのデータを外挿することができる。   Through the above operation, extrapolated data a output from the register 821b is input to the register 821d in advance of a period before the data a output from the register 821c is input. In addition, the extrapolated data b output from the register 821a is input to the register 821e in advance before the period in which the data a output from the register 821d is input. Therefore, the data of the left end region 111a of the original image 111 shown in FIG. 11 can be extrapolated.

画素数が4の期間で選択部822b,822cは同時に入力を切り換える。すなわち、選択部822bはレジスタ821cからのデータ820iを選択するように、選択部822cはレジスタ821dからのデータ820jを選択するように、それぞれ入力を切り換える。これ以後、選択部822b,822cによる入力の選択は固定される。   In the period in which the number of pixels is 4, the selection units 822b and 822c simultaneously switch inputs. That is, the selection unit 822b switches the input so that the data 820i from the register 821c is selected, and the selection unit 822c switches the input so that the data 820j from the register 821d is selected. Thereafter, the selection of input by the selection units 822b and 822c is fixed.

また、画素数が26,27の期間で選択部822aは入力を切り換える。画素数が26の期間で選択部822aには、レジスタ821aから出力されたデータzと、レジスタ821cから出力されたデータxとが入力される。選択部822aはデータzを選択してレジスタ821aへ出力する。レジスタ821aは画素数が27の期間でデータzを出力する(DOUT1=z)。   In addition, the selection unit 822a switches inputs during a period in which the number of pixels is 26 or 27. The data z output from the register 821a and the data x output from the register 821c are input to the selection unit 822a in a period of 26 pixels. The selection unit 822a selects the data z and outputs it to the register 821a. The register 821a outputs data z in a period in which the number of pixels is 27 (DOUT1 = z).

画素数が27の期間で選択部822aには、レジスタ821aから出力されたデータzと、レジスタ821cから出力されたデータyとが入力される。選択部822aはデータyを選択してレジスタ821aへ出力する。レジスタ821aは画素数が28の期間でデータyを出力する(DOUT1=y)。   The data z output from the register 821a and the data y output from the register 821c are input to the selection unit 822a during the period of 27 pixels. The selection unit 822a selects the data y and outputs it to the register 821a. The register 821a outputs data y in a period of 28 pixels (DOUT1 = y).

上記の動作により、レジスタ821aには、終端の画素に係るデータzが入力された期間よりも後の期間で、レジスタ821aから出力された外挿分のデータzと、レジスタ821cから出力された外挿分のデータyとが入力される。したがって、図11に示した原画像111の右端の領域111bのデータを外挿することができる。なお、図9(b)のように結線すると、初段のレジスタ821aは不要とすることができる。すなわち、選択部822aに入力されるレジスタからの入力をレジスタ821b,821dとする。このときの水平方向外挿部82の動作を図10(b)に示す。図10(b)から明らかなように、図10(a)に比べて、選択部822bと822cにおける入力の切替のタイミングを1クロック分早くする必要がある。   By the above operation, extrapolated data z output from the register 821a and external data output from the register 821c are output to the register 821a in a period after the period in which the data z related to the terminal pixel is input. The interpolated data y is input. Therefore, the data of the right end region 111b of the original image 111 shown in FIG. 11 can be extrapolated. Note that if the connection is made as shown in FIG. 9B, the first-stage register 821a can be omitted. In other words, the registers 821b and 821d are input from the register input to the selection unit 822a. The operation of the horizontal extrapolation section 82 at this time is shown in FIG. As is clear from FIG. 10B, the input switching timing in the selection units 822b and 822c needs to be advanced by one clock compared to FIG. 10A.

次に、本実施形態の変形例を説明する。図13は水平方向外挿部82の他の回路構成例を示している。図13(a)に示す回路では、選択部822a,822cの入力が図9に示した回路とは異なっている。選択部822aは、新たな画素に係る入力データ820a(画像信号)と、レジスタ821aから出力されたデータ820bとのいずれかを選択してレジスタ821aへ出力する。また、選択部822cは、レジスタ821bから出力されたデータ820hと、レジスタ821dから出力されたデータ820jとのいずれかを選択してレジスタ821eへ出力する。   Next, a modification of this embodiment will be described. FIG. 13 shows another circuit configuration example of the horizontal extrapolation unit 82. In the circuit shown in FIG. 13A, the inputs of the selectors 822a and 822c are different from the circuit shown in FIG. The selection unit 822a selects either the input data 820a (image signal) relating to the new pixel or the data 820b output from the register 821a and outputs the selected data to the register 821a. The selection unit 822c selects either the data 820h output from the register 821b or the data 820j output from the register 821d and outputs the selected data to the register 821e.

図14は垂直方向外挿部12の動作を示している。図14(a)と(b)のうち図14(a)は、図13(a)に示した回路の動作を示している。画素数が2の期間で選択部822cには、レジスタ821bから出力されたデータaが入力される。選択部822cはこのデータaをレジスタ821eへ出力する。レジスタ821eは画素数が3の期間でデータaを出力する(DOUT5=a)。また、画素数が3の期間で選択部822cには、レジスタ821bから出力されたデータbと、レジスタ821dから出力されたデータaとが入力される。選択部822cはデータaを選択してレジスタ821eへ出力する。レジスタ821eは画素数が4の期間でデータaを出力する(DOUT5=a)。   FIG. 14 shows the operation of the vertical extrapolation unit 12. Of FIG. 14A and FIG. 14B, FIG. 14A shows the operation of the circuit shown in FIG. The data a output from the register 821b is input to the selection unit 822c during the period in which the number of pixels is two. The selection unit 822c outputs the data a to the register 821e. The register 821e outputs data a in a period in which the number of pixels is 3 (DOUT5 = a). In addition, the data b output from the register 821b and the data a output from the register 821d are input to the selection unit 822c in the period where the number of pixels is 3. The selection unit 822c selects the data a and outputs it to the register 821e. The register 821e outputs data a during a period in which the number of pixels is four (DOUT5 = a).

画素数が26の期間で選択部822aには、レジスタ821aから出力されたデータzが入力される。選択部822aはデータzを選択してレジスタ821aへ出力する。レジスタ821aは画素数が27の期間でデータzを出力する(DOUT1=z)。同様に画素数が27の期間で選択部822aはデータzを選択してレジスタ821aへ出力する。レジスタ821aは画素数が28の期間でデータzを出力する(DOUT1=z)。   The data z output from the register 821a is input to the selection unit 822a during the period of 26 pixels. The selection unit 822a selects the data z and outputs it to the register 821a. The register 821a outputs data z in a period in which the number of pixels is 27 (DOUT1 = z). Similarly, the selection unit 822a selects the data z and outputs it to the register 821a during the period of 27 pixels. The register 821a outputs data z in a period in which the number of pixels is 28 (DOUT1 = z).

上記以外の動作は前述した動作と同様である。上記の動作により、図11に示した原画像111の左端の画素のデータが繰り返し外挿されると共に、原画像111の右端のデータが繰り返し外挿される。なお、図13(b)のように結線すると、初段のレジスタ821aは不要とすることができる。すなわち、選択部822aに入力されるレジスタからの入力をレジスタ821bとする。このときの水平方向外挿部82の動作を図14(b)に示す。図14(b)から明らかなように、図14(a)に比べて、選択部822bと822cにおける入力の切替のタイミングを1クロック分早くする必要がある。   Operations other than those described above are the same as those described above. Through the above operation, the data of the leftmost pixel of the original image 111 shown in FIG. 11 is repeatedly extrapolated, and the rightmost data of the original image 111 is repeatedly extrapolated. Note that if the connection is made as shown in FIG. 13B, the first-stage register 821a can be dispensed with. That is, an input from the register input to the selection unit 822a is a register 821b. The operation of the horizontal extrapolation section 82 at this time is shown in FIG. As is clear from FIG. 14B, the input switching timing in the selection units 822b and 822c needs to be advanced by one clock compared to FIG. 14A.

上述したように、本実施形態によれば、第1の実施形態と同様に、画像信号の外挿処理を行うことができると共に、回路規模を縮小することができる。   As described above, according to the present embodiment, the image signal can be extrapolated and the circuit scale can be reduced, as in the first embodiment.

(第3の実施形態)
次に、本発明の第3の実施形態を説明する。図15は、本実施形態による2次元フィルタ処理部155の前処理回路の構成を示している。この前処理回路は、制御部150、ライン数カウンタ151、画素数カウンタ152、垂直方向外挿部153、および水平方向外挿部154を備えている。
(Third embodiment)
Next, a third embodiment of the present invention will be described. FIG. 15 shows the configuration of the preprocessing circuit of the two-dimensional filter processing unit 155 according to the present embodiment. The pre-processing circuit includes a control unit 150, a line number counter 151, a pixel number counter 152, a vertical direction extrapolation unit 153, and a horizontal direction extrapolation unit 154.

ライン数カウンタ151および垂直方向外挿部153は、第1の実施形態で説明したライン数カウンタ11および垂直方向外挿部12とそれぞれ同様である。また、画素数カウンタ152および水平方向外挿部154は、第2の実施形態で説明した画素数カウンタ81および水平方向外挿部82とそれぞれ同様である。したがって、本実施形態によれば、画像の垂直方向と水平方向の両方に外挿処理を行うことができる。本実施形態では、垂直方向の外挿処理の後に水平方向の外挿処理が行われるようになっているが、外挿処理の順番は逆でもよい。   The line number counter 151 and the vertical direction extrapolation unit 153 are the same as the line number counter 11 and the vertical direction extrapolation unit 12 described in the first embodiment, respectively. The pixel number counter 152 and the horizontal direction extrapolation unit 154 are the same as the pixel number counter 81 and the horizontal direction extrapolation unit 82 described in the second embodiment, respectively. Therefore, according to the present embodiment, extrapolation processing can be performed in both the vertical direction and the horizontal direction of an image. In the present embodiment, the extrapolation process in the horizontal direction is performed after the extrapolation process in the vertical direction, but the order of the extrapolation process may be reversed.

以上、図面を参照して本発明の実施形態について詳述してきたが、具体的な構成は上記の実施形態に限られるものではなく、本発明の要旨を逸脱しない範囲の設計変更等も含まれる。   As described above, the embodiments of the present invention have been described in detail with reference to the drawings. However, the specific configuration is not limited to the above-described embodiments, and includes design changes and the like without departing from the gist of the present invention. .

本発明の第1の実施形態による前処理回路の構成を示すブロック図である。It is a block diagram which shows the structure of the pre-processing circuit by the 1st Embodiment of this invention. 本発明の第1の実施形態による前処理回路が備える垂直方向外挿部の構成を示す回路図である。It is a circuit diagram which shows the structure of the vertical direction extrapolation part with which the pre-processing circuit by the 1st Embodiment of this invention is provided. 本発明の第1の実施形態による前処理回路が備える垂直方向外挿部の動作を示すタイミングチャートである。It is a timing chart which shows operation | movement of the vertical direction extrapolation part with which the pre-processing circuit by the 1st Embodiment of this invention is provided. 本発明の第1の実施形態における画像信号の外挿処理を説明するための参考図である。It is a reference figure for demonstrating the extrapolation process of the image signal in the 1st Embodiment of this invention. 本発明の第1の実施形態における画像信号の外挿処理を説明するための参考図である。It is a reference figure for demonstrating the extrapolation process of the image signal in the 1st Embodiment of this invention. 本発明の第1の実施形態による前処理回路が備える垂直方向外挿部の変形例の構成を示す回路図である。It is a circuit diagram which shows the structure of the modification of the vertical direction extrapolation part with which the pre-processing circuit by the 1st Embodiment of this invention is provided. 本発明の第1の実施形態による前処理回路が備える垂直方向外挿部の動作を示すタイミングチャートである。It is a timing chart which shows operation | movement of the vertical direction extrapolation part with which the pre-processing circuit by the 1st Embodiment of this invention is provided. 本発明の第2の実施形態による前処理回路の構成を示すブロック図である。It is a block diagram which shows the structure of the pre-processing circuit by the 2nd Embodiment of this invention. 本発明の第2の実施形態による前処理回路が備える水平方向外挿部の構成を示す回路図である。It is a circuit diagram which shows the structure of the horizontal direction extrapolation part with which the pre-processing circuit by the 2nd Embodiment of this invention is provided. 本発明の第2の実施形態による前処理回路が備える水平方向外挿部の動作を示すタイミングチャートである。It is a timing chart which shows operation | movement of the horizontal direction extrapolation part with which the pre-processing circuit by the 2nd Embodiment of this invention is provided. 本発明の第2の実施形態における画像信号の外挿処理を説明するための参考図である。It is a reference figure for demonstrating the extrapolation process of the image signal in the 2nd Embodiment of this invention. 本発明の第2の実施形態における画像信号の外挿処理を説明するための参考図である。It is a reference figure for demonstrating the extrapolation process of the image signal in the 2nd Embodiment of this invention. 本発明の第2の実施形態による前処理回路が備える水平方向外挿部の変形例の構成を示す回路図である。It is a circuit diagram which shows the structure of the modification of the horizontal direction extrapolation part with which the pre-processing circuit by the 2nd Embodiment of this invention is provided. 本発明の第2の実施形態による前処理回路が備える水平方向外挿部の動作を示すタイミングチャートである。It is a timing chart which shows operation | movement of the horizontal direction extrapolation part with which the pre-processing circuit by the 2nd Embodiment of this invention is provided. 本発明の第3の実施形態による前処理回路の構成を示すブロック図である。It is a block diagram which shows the structure of the pre-processing circuit by the 3rd Embodiment of this invention.

符号の説明Explanation of symbols

10,80,150・・・制御部、11,151・・・ライン数カウンタ、12,153・・・垂直方向外挿部、13,83,155・・・2次元フィルタ処理部、81,152・・・画素数カウンタ、82,154・・・水平方向外挿部、121a,121b,121c,121d,121e・・・ラインメモリ、122a,122b,122c,822a,822b,822c・・・選択部、821a,821b,821c,821d,821e・・・レジスタ   10, 80, 150 ... control unit, 11, 151 ... line number counter, 12, 153 ... vertical extrapolation unit, 13, 83, 155 ... two-dimensional filter processing unit, 81, 152 ... Pixel counter, 82, 154 ... Horizontal extrapolation section, 121a, 121b, 121c, 121d, 121e ... Line memory, 122a, 122b, 122c, 822a, 822b, 822c ... Selection section , 821a, 821b, 821c, 821d, 821e... Register

Claims (6)

L×M(L,Mは整数)の画素に係る画像信号を処理する2次元フィルタに前記画像信号を入力する前処理回路であって、
前記画像信号を遅延させる遅延素子をN段(N≧L−1またはM−1)有し、最終段からK段目(Kは0から(N/2の整数部)−1のいずれかの整数)の前記遅延素子が、前段の前記遅延素子からの第1の入力と前記第1の入力とは異なる第2の入力とのいずれかを選択してK段目の前記遅延素子に入力する選択部を介して前段の前記遅延素子と直列に連結されるように、N段の前記遅延素子が直列に連結され、各遅延素子の出力が前記2次元フィルタの入力に接続されると共に、(N/2の整数部)番目までの画素または画素群に係る前記画像信号が前記2次元フィルタに並列に入力可能となった期間において、前記選択部からK段目の前記遅延素子への入力が前記第2の入力となるように前記選択部を制御する制御部を有する
ことを特徴とする前処理回路。
A pre-processing circuit that inputs the image signal to a two-dimensional filter that processes an image signal related to pixels of L × M (L and M are integers),
The delay element for delaying the image signal has N stages (N ≧ L−1 or M−1), and the K stage from the last stage (K is 0 to an integer part of N / 2) −1. (Integer) delay element selects either the first input from the preceding delay element or the second input different from the first input and inputs the selected input to the Kth delay element. The delay elements in N stages are connected in series so as to be connected in series with the delay elements in the previous stage via the selection unit, and the output of each delay element is connected to the input of the two-dimensional filter. In the period when the image signal related to the pixel or pixel group up to the integer part of N / 2 can be input in parallel to the two-dimensional filter, the input from the selection unit to the delay element at the K-th stage is A control unit that controls the selection unit to be the second input; A pre-processing circuit.
L×M(L,Mは整数)の画素に係る画像信号を処理する2次元フィルタに前記画像信号を入力する前処理回路であって、
前記画像信号を遅延させる遅延素子をN段(N≧L−1またはM−1)有し、N段の前記遅延素子が直列に連結され、各遅延素子の出力が前記2次元フィルタの入力に接続されると共に、
新たな画素または画素群に係る前記画像信号を入力する第1の入力と前記第1の入力とは異なる第2の入力とのいずれかを選択する選択部と、
終端の画素または画素群に係る前記画像信号が入力される期間の次の期間において、前記選択部が前記第2の入力を選択するように前記選択部を制御する制御部と、
を有することを特徴とする前処理回路。
A pre-processing circuit that inputs the image signal to a two-dimensional filter that processes an image signal related to pixels of L × M (L and M are integers),
The delay element for delaying the image signal has N stages (N ≧ L−1 or M−1), the N delay elements are connected in series, and the output of each delay element is input to the two-dimensional filter. Connected,
A selection unit for selecting one of a first input for inputting the image signal relating to a new pixel or a pixel group and a second input different from the first input;
A control unit that controls the selection unit so that the selection unit selects the second input in a period subsequent to a period in which the image signal related to a terminal pixel or a pixel group is input;
A pre-processing circuit comprising:
前記選択部は、前記第2の入力として、前記2次元フィルタへの初段から(N/2の整数部)段までのいずれかの入力が接続されていることを特徴とする請求項1に記載の前処理回路。   2. The selection unit according to claim 1, wherein any one of an input from an initial stage to an (N / 2 integer part) stage to the two-dimensional filter is connected as the second input. Pre-processing circuit. N段の前記遅延素子のいずれかの出力が前記第2の入力に接続されていることを特徴とする請求項2に記載の前処理回路。   The preprocessing circuit according to claim 2, wherein an output of any one of the N stages of delay elements is connected to the second input. 前記遅延素子はラインメモリであることを特徴とする請求項1〜請求項4のいずれかに記載の前処理回路。   5. The preprocessing circuit according to claim 1, wherein the delay element is a line memory. 前記遅延素子は1画素に係るレジスタであることを特徴とする請求項1〜請求項4のいずれかに記載の前処理回路。   5. The preprocessing circuit according to claim 1, wherein the delay element is a register for one pixel.
JP2007210089A 2007-08-10 2007-08-10 Preprocessing circuit Withdrawn JP2009044670A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007210089A JP2009044670A (en) 2007-08-10 2007-08-10 Preprocessing circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007210089A JP2009044670A (en) 2007-08-10 2007-08-10 Preprocessing circuit

Publications (1)

Publication Number Publication Date
JP2009044670A true JP2009044670A (en) 2009-02-26

Family

ID=40444871

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007210089A Withdrawn JP2009044670A (en) 2007-08-10 2007-08-10 Preprocessing circuit

Country Status (1)

Country Link
JP (1) JP2009044670A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102385743A (en) * 2010-08-30 2012-03-21 富士通半导体股份有限公司 Image processing device, image processing method and scheduling device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102385743A (en) * 2010-08-30 2012-03-21 富士通半导体股份有限公司 Image processing device, image processing method and scheduling device

Similar Documents

Publication Publication Date Title
JP6365258B2 (en) Arithmetic processing unit
CN105427817A (en) Device and method for image enlargement and display panel driver using the same
US20070237416A1 (en) Resolution enhancing method and apparatus of video
JP4317624B2 (en) Image processing device
CN111147849B (en) Post-processing apparatus and post-processing method
JP2009044670A (en) Preprocessing circuit
CN106296614B (en) Image processing apparatus and image processing method
JP2857292B2 (en) Apparatus for realizing two-dimensional digital filter
JPH04294166A (en) Image processor
JPH05236299A (en) Digital video signal processor and its method
JP5462198B2 (en) Conversion device and conversion method
JP2005293361A (en) Image processing device
JPH06169429A (en) Picture data conversion circuit
CN112468789B (en) RAW image conversion circuit and RAW image conversion method
JPH1127563A (en) Image filter circuit
TWI695250B (en) Lookup table configuration method capable of reducing the number of multiplexers and information processing device using the same
JP4746945B2 (en) Resolution conversion apparatus and method
JP2007006133A (en) Image processing device and method therefor
JP2003076986A (en) Data aligning circuit
US20030135528A1 (en) Finite impulse response filter
JPS621074A (en) Parallel picture processor
JP2003348445A (en) Vertical reduction circuit for video image
JP2697679B2 (en) Dither image display device
JPH08123683A (en) Parallel processor device
JP2005277639A (en) Motion compensator

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20101102