JP2006031296A - Image processing apparatus - Google Patents

Image processing apparatus Download PDF

Info

Publication number
JP2006031296A
JP2006031296A JP2004207891A JP2004207891A JP2006031296A JP 2006031296 A JP2006031296 A JP 2006031296A JP 2004207891 A JP2004207891 A JP 2004207891A JP 2004207891 A JP2004207891 A JP 2004207891A JP 2006031296 A JP2006031296 A JP 2006031296A
Authority
JP
Japan
Prior art keywords
pixel
correction
data
pixels
accompanying information
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.)
Granted
Application number
JP2004207891A
Other languages
Japanese (ja)
Other versions
JP4539202B2 (en
Inventor
Kei Ito
慶 伊東
Mitsuharu Oki
光晴 大木
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.)
Sony Corp
Original Assignee
Sony 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 Sony Corp filed Critical Sony Corp
Priority to JP2004207891A priority Critical patent/JP4539202B2/en
Publication of JP2006031296A publication Critical patent/JP2006031296A/en
Application granted granted Critical
Publication of JP4539202B2 publication Critical patent/JP4539202B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Image Processing (AREA)
  • Transforming Light Signals Into Electric Signals (AREA)
  • Color Television Image Signal Generators (AREA)
  • Editing Of Facsimile Originals (AREA)
  • Studio Devices (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide an apparatus that utilizes hardware processing to implement a pixel-value correction process such as hole-filling interpolation or a blurring process. <P>SOLUTION: The image processing apparatus comprises a circuit that receives the input of the pixel values of pixels constituting image data and accompanying information corresponding to the pixels and that selects a plurality of data consisting of the pixel values corresponding to the different pixels and the corresponding accompanying information as data to be inputted to a correction process execution circuit; and the correction process execution circuit that calculates corrected pixel values for the pixels to be corrected on the basis of the data and executes a process for updating the accompanying information corresponding to the corrected pixels. This configuration enables a pixel-value correction process such as hole-filling interpolation or a blurring process to be executed through simple processing on hardware by outputting data in the order of raster scans without performing complex memory control. <P>COPYRIGHT: (C)2006,JPO&NCIPI

Description

本発明は、画像処理装置に関する。さらに詳細には、例えばレンズの収差による偽色などによって誤った画素値が設定された画素や、画素値の不定な画素などに対して、補間処理等の画素値補正を実行して高品質な画像データを生成する画像処理装置に関する。   The present invention relates to an image processing apparatus. More specifically, for example, pixel value correction such as interpolation processing is performed on a pixel in which an incorrect pixel value is set due to, for example, a false color due to lens aberration, or a pixel value is indefinite. The present invention relates to an image processing apparatus that generates image data.

例えば、カメラで撮影した画像は多数の画素によって構成され、各画素に対応する画素値が各々設定されてディスプレイに表示、あるいはプリントアウトされる。このような画像データにおいて、一部分の画素値が不定、あるいは、補正したほうが良い場合がある。   For example, an image photographed by a camera is composed of a large number of pixels, and pixel values corresponding to the respective pixels are set and displayed on a display or printed out. In such image data, some pixel values may be indefinite or corrected.

例えば、カメラのレンズ素材に対する光の屈折率がその波長により異なることに起因し、撮像面において偽色を生じ、特定位置の画素の値が不自然な値に設定されることがある。これは色収差に基づく現象である。色収差には、光軸上の焦点位置が波長によって異なるため色のにじみが起こる軸上色収差や、波長により像倍率が異なるため色ずれが起こる倍率色収差などがある。この色収差に基づく誤った画素値の設定現象として、例えば、輝度レベルにおける飽和状態としての白とび画素の近傍に発生する紫色の偽色があり、パープルフリンジとして知られている。   For example, because the refractive index of light with respect to the lens material of the camera varies depending on the wavelength, a false color is generated on the imaging surface, and the value of the pixel at a specific position may be set to an unnatural value. This is a phenomenon based on chromatic aberration. Chromatic aberration includes axial chromatic aberration in which color blur occurs because the focal position on the optical axis differs depending on wavelength, and lateral chromatic aberration in which color shift occurs because image magnification varies depending on wavelength. As an erroneous pixel value setting phenomenon based on this chromatic aberration, for example, there is a purple false color that occurs in the vicinity of an overexposed pixel as a saturated state at a luminance level, which is known as purple fringe.

このようなパープルフリンジ以外にも、画像の撮影条件や撮影時のデータ処理における様々なトラブルによって、画像データを構成する多数の画素の中には、画素値が特定できない画素や、明らかに誤った画素値が設定されてしまう画素が発生することがある。   In addition to these purple fringes, due to various troubles in image capturing conditions and data processing at the time of capturing, among the many pixels that make up image data, pixels with unspecified pixel values, or clearly incorrect There may occur a pixel in which a pixel value is set.

このような画素値不定画素、あるいは要補正画素については、画素値を補正することが必要となる。これらの画素の画素値を決定するための処理として多く行なわれるのは、これらの画素の近傍に存在する不定でない画素値を持つ画素、あるいは、補正しなくても元々正しい画素値を持つ画素の画素値に基づく補間処理である。すなわち、補正の必要な着目画素の周辺の正しい画素の画素値に基づいてこれらの画素の画素値を決定する。なお、このような画素値補正処理は、穴埋め(Hole filling)処理と呼ばれている。   For such a pixel value indefinite pixel or a pixel requiring correction, it is necessary to correct the pixel value. Many of the processes performed to determine the pixel values of these pixels are those of pixels having non-constant pixel values that exist in the vicinity of these pixels, or pixels that originally have correct pixel values without correction. Interpolation processing based on pixel values. That is, the pixel values of these pixels are determined based on the pixel values of correct pixels around the target pixel that needs to be corrected. Note that such a pixel value correction process is called a hole filling process.

なお、画素値不定画素、あるいは要補正画素等は1画素が単独で存在することはまれであり、一定数の画素値不定画素あるいは要補正画素がかたまりで存在する場合が多い。このような画素群に対して穴埋め(Hole filling)処理を実行する場合、
a)処理済みの画素と未処理画素
b)穴埋めの際に適用可能な画素と、適用不可の画素
などを区別して処理を実行することが必要となる。
In addition, it is rare that one pixel exists alone as a pixel value indefinite pixel or a pixel requiring correction, and there are many cases where a certain number of pixel value indefinite pixels or pixels that need correction exist in a group. When performing hole filling processing on such a pixel group,
a) Processed pixels and unprocessed pixels b) It is necessary to perform processing by distinguishing between applicable pixels and inapplicable pixels.

これまで、このような画素の穴埋め補正処理は、ソフトウェアによる処理として行なわれるのが一般的であり、各画素に対応するパラメータ(付随情報)を設定して、1つの処理ステップ毎に各画素対応のパラメータを変更して処理を進める構成がとられていた。しかし、穴埋め処理には、各画素対応のパラメータが多数必要であり、またそのパラメータの切り替えを効率的に確実に行なうことが必要となり、さらに、各画素の画素値決定のための多数の処理が必要となることなどの問題点があり、ハードウェアを適用した穴埋め処理構成は実現されていない。   Until now, such pixel filling correction processing has generally been performed as software processing, and a parameter (accompanying information) corresponding to each pixel is set to correspond to each pixel for each processing step. The configuration of changing the parameters of and proceeding with the process was taken. However, the hole filling process requires a large number of parameters corresponding to each pixel, and it is necessary to efficiently and reliably switch the parameters, and further, a large number of processes for determining the pixel value of each pixel are required. There is a problem that it is necessary, and a hole filling processing configuration using hardware has not been realized.

ハードウェアを適用した画像処理装置構成として、たとえば特許文献1に記載の構成がある。この文献に開示された構成は、画像データに対して複数の処理を順番に行う際に、適応的に切り替えられる処理内容を領域番号情報としている。そして、各画素の処理に要する遅延時間分だけ、領域番号情報も遅延させて、処理の流れに一貫性を持たせ、制御を簡単化している。しかしながら、この開示構成における領域番号情報は書き換えることが出来ない構成であり、上述の穴埋め処理のように、画素対応のパラメータを適宜変更する必要がある処理の場合には、スムーズな制御が実行できない。
特開平5−153386号公報
As an image processing apparatus configuration to which hardware is applied, for example, there is a configuration described in Patent Document 1. The configuration disclosed in this document uses, as area number information, processing contents that can be adaptively switched when a plurality of processes are sequentially performed on image data. Then, the region number information is also delayed by the delay time required for the processing of each pixel, the processing flow is made consistent, and the control is simplified. However, the area number information in this disclosed configuration cannot be rewritten, and smooth control cannot be performed in the case of processing that requires changing the pixel-corresponding parameters as appropriate, such as the above-described hole filling processing. .
JP-A-5-153386

本発明は、上述の問題点に鑑みてなされたものであり、誤った画素値が設定された画素や、画素値の不定な画素などに対して、補間処理等の画素値補正をハードウェア回路を適用し、かつ小型の回路構成による処理を可能とした画像処理装置を提供することを目的とする。   The present invention has been made in view of the above-described problems, and a hardware circuit performs pixel value correction such as interpolation processing on a pixel in which an incorrect pixel value is set, a pixel whose pixel value is indefinite, or the like. And an image processing apparatus capable of processing with a small circuit configuration.

本発明の第1の側面は、
画像処理装置であり、
画像データを構成する各画素の画素値と該画素に対応する付随情報とを入力し、異なる画素に対応する画素値と対応付随情報からなる複数のデータを、補正処理実行回路への入力データとして選択するデータ選択回路と、
前記データ選択回路から入力する画素値と付随情報からなる複数のデータに基づいて、補正対象の画素の補正画素値を算出するとともに、該補正画素に対応する付随情報の更新処理を実行する補正処理実行回路と、
を有することを特徴とする画像処理装置にある。
The first aspect of the present invention is:
An image processing device,
The pixel value of each pixel constituting the image data and the accompanying information corresponding to the pixel are input, and a plurality of data consisting of the pixel value corresponding to the different pixel and the corresponding accompanying information are input to the correction processing execution circuit. A data selection circuit to select;
A correction process for calculating a correction pixel value of a pixel to be corrected based on a plurality of data including a pixel value input from the data selection circuit and accompanying information, and executing an updating process of the accompanying information corresponding to the correction pixel An execution circuit;
An image processing apparatus characterized by comprising:

さらに、本発明の画像処理装置の一実施態様において、前記データ選択回路は、ラスタスキャン順に、画素値と対応付随情報からなるデータを入力し、n×mの隣接画素領域に含まれる画素値と対応付随情報とを補正処理実行回路に対する入力データとして選択する処理を実行する構成、ただし、n,mは1以上の整数、であることを特徴とする。   Furthermore, in one embodiment of the image processing apparatus of the present invention, the data selection circuit inputs data consisting of pixel values and associated associated information in the order of raster scanning, and includes pixel values included in n × m adjacent pixel regions. A configuration for executing processing for selecting the associated information as input data to the correction processing execution circuit, where n and m are integers of 1 or more.

さらに、本発明の画像処理装置の一実施態様において、前記データ選択回路は、画像データの横方向に隣接するn個の画素の画素値と対応付随情報とを選択するライン対応データ選択部をm段有し、ただし、n,mは1以上の整数、異なる段のライン対応データ選択部の間に、(画像幅(width)データ長−n画素対応データ長)に相当するデータ遅延を実行する遅延回路を有し、n×mの隣接画素領域に含まれる画素値と対応付随情報とを補正処理実行回路に対する入力データとして選択する処理を実行する構成であることを特徴とする。   Furthermore, in an embodiment of the image processing apparatus of the present invention, the data selection circuit includes a line-corresponding data selection unit for selecting a pixel value of n pixels adjacent in the horizontal direction of the image data and corresponding associated information. There are stages, where n and m are integers of 1 or more, and a data delay corresponding to (image width (width) data length−n pixel corresponding data length) is executed between the line-corresponding data selection units of different stages. It has a delay circuit, and is configured to execute a process of selecting a pixel value included in an n × m adjacent pixel area and corresponding associated information as input data to the correction process execution circuit.

さらに、本発明の画像処理装置の一実施態様において、前記画像処理装置は、さらに、画像データを構成する各画素の画素値と該画素に対応する付随情報とを対応付けて格納するメモリを有し、前記データ選択回路は、前記メモリからラスタスキャン順に、画素値と対応付随情報からなるデータを入力する構成であることを特徴とする。   Furthermore, in an embodiment of the image processing apparatus of the present invention, the image processing apparatus further includes a memory that stores the pixel value of each pixel constituting the image data in association with the associated information corresponding to the pixel. The data selection circuit is configured to input data composed of pixel values and corresponding incidental information in the raster scan order from the memory.

さらに、本発明の画像処理装置の一実施態様において、前記補正処理実行回路は、穴埋め補間処理による画素値補正処理を実行する構成であり、前記データ選択回路から入力する画素値と付随情報からなる複数のデータに基づいて、補正対象の画素の補正画素値を穴埋め補間処理によって算出するとともに、該補正画素に対応する付随情報の更新処理を実行する構成であることを特徴とする。   Furthermore, in an embodiment of the image processing apparatus of the present invention, the correction processing execution circuit is configured to execute a pixel value correction process by a hole-filling interpolation process, and includes a pixel value input from the data selection circuit and accompanying information. Based on a plurality of data, the correction pixel value of the correction target pixel is calculated by the filling interpolation process, and the associated information update process corresponding to the correction pixel is executed.

さらに、本発明の画像処理装置の一実施態様において、前記付随情報は、補正対象画素であるか、穴埋め補間に適用可能な画素値を持つ画素であるか、を判別可能な情報であり、前記補正処理実行回路は、前記付随情報が補正対象画素であることを示す場合に、前記付随情報が穴埋め補間に適用可能な画素値を持つ画素であることを示す画素の画素値のみを選択して、前記補正対象画素の補正画素値を算出する構成であることを特徴とする。   Furthermore, in one embodiment of the image processing apparatus of the present invention, the accompanying information is information that can determine whether the pixel is a correction target pixel or a pixel having a pixel value applicable to hole-filling interpolation, The correction processing execution circuit selects only a pixel value of a pixel indicating that the accompanying information is a pixel having a pixel value applicable to filling interpolation when the accompanying information indicates a correction target pixel. The correction pixel value of the correction target pixel is calculated.

さらに、本発明の画像処理装置の一実施態様において、前記補正処理実行回路は、ぼかし処理による画素値補正処理を実行する構成であり、前記入力データ選択回路から入力する画素値と付随情報からなる複数のデータに基づいて、補正対象の画素の補正画素値をぼかし処理によって算出する構成であることを特徴とする。   Furthermore, in an embodiment of the image processing apparatus of the present invention, the correction processing execution circuit is configured to execute pixel value correction processing by blurring processing, and includes a pixel value input from the input data selection circuit and accompanying information. The correction pixel value of the correction target pixel is calculated by blurring processing based on a plurality of data.

さらに、本発明の画像処理装置の一実施態様において、前記付随情報は、補正対象画素または補正済み画素と、その他の画素とを判別可能な情報であり、前記補正処理実行回路は、前記付随情報が補正対象画素または補正済み画素であることを示す場合に、該画素を選択し、選択画素の周囲画素の画素値に基づいて、該選択画素の新たな補正画素値を算出する構成であることを特徴とする。   Furthermore, in one embodiment of the image processing apparatus of the present invention, the accompanying information is information capable of distinguishing a correction target pixel or a corrected pixel from other pixels, and the correction processing execution circuit includes the accompanying information. Indicates that the pixel is a correction target pixel or a corrected pixel, the pixel is selected, and a new corrected pixel value of the selected pixel is calculated based on the pixel values of the surrounding pixels of the selected pixel. It is characterized by.

さらに、本発明の画像処理装置の一実施態様において、前記補正処理実行回路は、前記付随情報が補正対象画素または補正済み画素であることを示す場合に、該画素を選択し、選択画素の周囲画素の画素値の平均値を算出し、該算出値を選択画素の新たな補正画素値とする処理を実行する構成であることを特徴とする。   Furthermore, in an embodiment of the image processing apparatus of the present invention, the correction processing execution circuit selects the pixel when the accompanying information indicates that the correction target pixel or the corrected pixel is selected, and surrounds the selected pixel. An average value of the pixel values of the pixels is calculated, and the process of setting the calculated value as a new corrected pixel value of the selected pixel is executed.

さらに、本発明の画像処理装置の一実施態様において、前記補正処理実行回路は、前記データ選択回路から入力する画素値と付随情報からなる複数のデータに基づいて、補正対象の画素の補正画素値を算出するとともに、該補正画素に対応する付随情報の更新処理を実行し、処理済みデータをラスタスキャン順に出力する構成であることを特徴とする。   Furthermore, in one embodiment of the image processing apparatus of the present invention, the correction processing execution circuit is configured to correct a correction pixel value of a pixel to be corrected based on a plurality of data including a pixel value input from the data selection circuit and accompanying information. Is calculated, the associated information corresponding to the correction pixel is updated, and the processed data is output in raster scan order.

さらに、本発明の画像処理装置の一実施態様において、前記付随情報は、白とび画素と、補正対象画素と、補正済み画素と、前記画素のいずれにも該当しないその他の画素との判別を可能とした情報であり、前記補正処理実行回路は、前記付随情報を識別し、識別結果に応じた処理を実行する構成であることを特徴とする。   Furthermore, in one embodiment of the image processing apparatus of the present invention, the accompanying information can distinguish between overexposed pixels, correction target pixels, corrected pixels, and other pixels not corresponding to any of the pixels. The correction processing execution circuit is configured to identify the accompanying information and execute processing according to the identification result.

さらに、本発明の画像処理装置の一実施態様において、前記画像処理装置において、前記データ選択回路と、前記補正処理実行回路は、複数回の繰り返し処理が実行可能な構成を有することを特徴とする。   Furthermore, in an embodiment of the image processing apparatus of the present invention, in the image processing apparatus, the data selection circuit and the correction processing execution circuit have a configuration capable of executing a plurality of repeated processes. .

本発明のさらに他の目的、特徴や利点は、後述する本発明の実施例や添付する図面に基づく、より詳細な説明によって明らかになるであろう。なお、本明細書においてシステムとは、複数の装置の論理的集合構成であり、各構成の装置が同一筐体内にあるものには限らない。   Other objects, features, and advantages of the present invention will become apparent from a more detailed description based on embodiments of the present invention described later and the accompanying drawings. In this specification, the system is a logical set configuration of a plurality of devices, and is not limited to one in which the devices of each configuration are in the same casing.

本発明の構成によれば、画像データにおける画素値補正処理、例えば、誤った画素値が設定された画素や、画素値の不定な画素などに対して、補間処理等の画素値補正をハードウェア回路を適用し、かつ小型の回路構成による処理を可能とした画像処理装置が実現される。   According to the configuration of the present invention, a pixel value correction process in image data, for example, a pixel value correction such as an interpolation process for a pixel in which an incorrect pixel value is set or a pixel with an indefinite pixel value is performed by hardware. An image processing apparatus is realized that applies a circuit and enables processing with a small circuit configuration.

本発明の構成では、画像データを構成する各画素の画素値と該画素に対応する付随情報とを入力し、異なる画素に対応する画素値と対応付随情報からなる複数のデータを、補正処理実行回路への入力データとして選択するデータ選択回路と、データ選択回路から入力する画素値と付随情報からなる複数のデータに基づいて、補正対象の画素の補正画素値を算出するとともに、該補正画素に対応する付随情報の更新処理を実行する補正処理実行回路とによって、補正に必要な画素データをデータ選択回路で順次、選択して、補正処理実行回路に供給とし、補正を実行する構成としたので、ラスタスキャン順にデータを順次、出力することで、複雑なメモリ制御を行うことなく、シンプルなハードウェア上の処理によって、穴埋め補間処理や、ぼかし処理などの画素値補正処理が実行可能となる。   In the configuration of the present invention, the pixel value of each pixel constituting the image data and the accompanying information corresponding to the pixel are input, and a plurality of pieces of data including the pixel value corresponding to the different pixel and the corresponding accompanying information are executed. Based on a data selection circuit to be selected as input data to the circuit, a plurality of data consisting of pixel values and accompanying information input from the data selection circuit, a correction pixel value of the pixel to be corrected is calculated, and Since the correction processing execution circuit that executes the update processing of the corresponding incident information is performed, the pixel data necessary for correction is sequentially selected by the data selection circuit, supplied to the correction processing execution circuit, and the correction is executed. By sequentially outputting data in raster scan order, simple hardware processing without complicated memory control, hole filling interpolation processing, Pixel value correction processing such processes can be executed.

本発明の構成によれば、ハードウェアによって構成した回路を適用して、穴埋め補間およびぼかし処理が実行される。しかも、処理手順は、メモリからラスタスキャン順に入力する画素値と付随情報を順次処理することによって実行可能であり、複雑なメモリの入出力制御を行なうことが不要であり、また、付随情報についても画素値に伴って処理の進行に従って各回路間において転送されるのみであるので、付随情報専用のメモリや制御も不要であり、シンプルな制御によって、穴埋め補間およびぼかし処理が実行可能となる。   According to the configuration of the present invention, hole filling interpolation and blurring processing are executed by applying a circuit configured by hardware. In addition, the processing procedure can be executed by sequentially processing pixel values input from the memory in the raster scan order and the accompanying information, and it is not necessary to perform complicated memory input / output control. Since only pixel values are transferred between the circuits according to the progress of processing, no memory or control dedicated to the accompanying information is required, and hole filling interpolation and blurring processing can be executed by simple control.

以下、図面を参照しながら、本発明の画像処理装置の詳細について説明する。   The details of the image processing apparatus of the present invention will be described below with reference to the drawings.

背景技術の欄においても説明したように、例えば、色収差によるパープルフリンジや、その他、画像の撮影条件や撮影時のデータ処理における様々なトラブルによって、画像データを構成する多数の画素の中には、画素値が特定できない画素や、明らかに誤った画素値が設定される場合があり、このような画素(着目画素)に対応する適切な画素値の決定のための処理として、周囲の画素値に基づいて着目画素の画素値を決定する処理が行なわれる。この処理が穴埋め(Hole filling)処理、あるいは穴埋め補間処理と呼ばれる。   As described in the Background Art section, for example, purple fringes due to chromatic aberration, and other various pixels constituting the image data due to various troubles in image capturing conditions and data processing during image capturing, A pixel whose pixel value cannot be specified or a pixel value that is clearly wrong may be set. As a process for determining an appropriate pixel value corresponding to such a pixel (a pixel of interest), the surrounding pixel values Based on this, processing for determining the pixel value of the pixel of interest is performed. This process is called a hole filling process or a hole filling interpolation process.

穴埋め補間処理の一例として、色収差によるパープルフリンジに対する穴埋め補間処理を適用した画像データの補正処理例を説明する。図1に色収差によるパープルフリンジの発生した画像データの例を示す。   As an example of the hole-filling interpolation process, an image data correction process example to which the hole-filling interpolation process for purple fringe due to chromatic aberration is applied will be described. FIG. 1 shows an example of image data in which purple fringes are generated due to chromatic aberration.

図1(A)に示されるように、画素は、「白とび画素11」、「偽色(パープルフリンジ)画素12」、「白とびでもパープルフリンジでもないその他の画素13」のいずれかに分類される。この中で、画素値の再設定が必要な画素は、「偽色(パープルフリンジ)画素12」であり、この画素の画素値を「白とびでもパープルフリンジでもないその他の画素13」に基づいて決定する。この穴埋め補間処理は、図1(B)の矢印15の方向に実行され、順次補間済み画素14として、各画素の画素値が設定される。   As shown in FIG. 1A, the pixel is classified into one of “whiteout pixel 11”, “false color (purple fringe) pixel 12”, and “other pixel 13 that is neither whiteout nor purple fringe”. Is done. Among these, the pixel whose pixel value needs to be reset is a “false color (purple fringe) pixel 12”, and the pixel value of this pixel is based on “other pixels 13 that are neither whiteout nor purple fringe”. decide. This hole-filling interpolation process is executed in the direction of the arrow 15 in FIG. 1B, and the pixel value of each pixel is set as the sequentially interpolated pixel 14.

この穴埋め補間処理を適用した画像データ補正処理の処理手順について説明する。以下、パープルフリンジに対する穴埋め補間処理を適用した画像データの補正処理は、例えば以下の5つのステップによって実行される。
ステップ1:白とびマスク算出
ステップ2:偽色発生部検索領域設定(Dilate)処理(白とびの周りに膨らませた部分の画素設定)
ステップ3:紫画素検出
ステップ4:色補間処理
ステップ5:色ぼかし処理
A processing procedure of image data correction processing to which this hole-filling interpolation processing is applied will be described. Hereinafter, the correction process of the image data to which the hole-filling interpolation process for the purple fringe is applied is executed by the following five steps, for example.
Step 1: Whiteout mask calculation Step 2: False color generation part search area setting (Dilate) processing (pixel setting of a portion inflated around whiteout)
Step 3: Purple pixel detection Step 4: Color interpolation processing Step 5: Color blur processing

この5つのステップについて、簡単に説明する。まず、色収差の目立つ紫色をおびた画素は、画像の中で「白とび」を起こしている周囲の部分であることより、ステップ1で、「白とび」の画素を検出する。「白とび」の画素検出は、画素値の値が所定の値より高い画素(高輝度画素)を選択する処理として実行される。   These five steps will be briefly described. First, since the violet-colored pixel with conspicuous chromatic aberration is a peripheral portion causing “whiteout” in the image, the “whiteout” pixel is detected in Step 1. The “white jump” pixel detection is executed as a process of selecting a pixel (high luminance pixel) whose pixel value is higher than a predetermined value.

次に、ステップ2で、「白とび」の周囲において偽色、すなわちパープルフリンジが存在する可能性のある画像中の領域を偽色発生部検索領域として設定する。
ステップ3では、ステップ2で設定した偽色発生部検索領域に含まれる各画素の画素値を取得し、紫色をおびた画素を選択し、これを偽色(パーブルフリンジ)画素、すなわち補間処理対象画素として選択する。
Next, in step 2, an area in the image where there is a possibility that false fringes, that is, purple fringes, exist around “whiteout” is set as a false color generation part search area.
In step 3, the pixel value of each pixel included in the false color generation part search area set in step 2 is acquired, a purple-colored pixel is selected, and this is a false color (purple fringe) pixel, that is, an interpolation process target Select as a pixel.

次に、ステップ4において、補間処理対象画素を、周囲の画素より補間する。この際、補正すべきであるにも係わらず補正できなかった画素については、例外的に、彩度を落とす処理を実行する。
そして、最後のステップ5において、ステップ4での通常の補正処理を行った画素(周囲より補間した画素)と、例外処理の画素(彩度を落とした画素)との差を目立たなくするために、ぼかす処理を実行する。ぼかし処理は、複数の隣接画素についてなだらかな画素値変化を示すように画素値を再設定する処理などによって実行される。
Next, in step 4, the interpolation target pixel is interpolated from surrounding pixels. At this time, exceptionally, for pixels that should have been corrected but could not be corrected, a process of reducing the saturation is executed.
Then, in the final step 5, in order to make the difference between the pixel that has undergone the normal correction process in step 4 (a pixel interpolated from the surroundings) and the exception process pixel (a pixel with reduced saturation) inconspicuous Execute the blur process. The blurring process is executed by a process of resetting pixel values so as to show a gentle change in pixel values for a plurality of adjacent pixels.

なお、上述した処理中、ステップ4の処理、すなわち、補間処理対象画素を周囲の画素より補間する処理は、補正の必要な画素の画素値を周囲の確定した画素の画素値を適用して決定する処理であり、この処理が穴埋め補間処理と呼ばれる。   Note that, in the above-described processing, the processing in step 4, that is, the processing for interpolating the interpolation target pixel from the surrounding pixels is determined by applying the pixel value of the surrounding fixed pixel to the pixel value of the pixel that needs to be corrected. This process is called a hole-filling interpolation process.

本発明では、上述のステップ4の穴埋め補間処理と、ステップ5のぼかし処理をハードウェア構成としての回路を適用して実行する。処理対象の画像データについての構成画素が、「白とびを起こしている画素」であるか、あるいは、「紫色をおびた画素であり、補正すべき画素」であるか、あるいは、「それ以外の画素」であるかを検出した後、「紫色をおびた画素であり、補正すべき画素」についての画素値を、穴埋め補間処理によって順次決定する。   In the present invention, the above-described hole-filling interpolation process in step 4 and the blurring process in step 5 are executed by applying a circuit having a hardware configuration. The constituent pixels of the image data to be processed are “exposed pixels”, “purple pixels, pixels to be corrected”, or “other pixels” After detecting whether the pixel is “a pixel”, the pixel value for “a pixel having a purple color and a pixel to be corrected” is sequentially determined by the filling interpolation process.

ステップ4とステップ5の処理について、詳しく述べる。まず、ステップ4に入る前に、各画素について、「白とびを起こしている画素」であるか、あるいは、「紫色をおびた画素であり、補正すべき画素」であるか、あるいは、「それ以外の画素」であるかを判別する。この判別処理は、各構成画素の画素値を取得することによって行なわれる。   The processing in step 4 and step 5 will be described in detail. First, before entering step 4, for each pixel, it is “a pixel that is overexposed” or “a pixel that is purple and is a pixel to be corrected” or “ It is determined whether the pixel is a pixel other than. This discrimination process is performed by acquiring the pixel value of each constituent pixel.

「白とびを起こしている画素」を「I」、
「紫色をおびた画素であり、補正すべき画素(まだ補正処理の過程において補正をしていない画素)」を「H」、
「紫色をおびた画素であり、補正すべき画素(補正処理の過程において既に補正をした画素)」を「M」、
「それ以外の画素」を「V」
と表すことにする。
Set “I” to “exposed pixels”
“H”, “purple pixel and pixel to be corrected (pixel that has not been corrected in the correction process)”
“M” is a “purple pixel and a pixel to be corrected (a pixel that has already been corrected in the correction process)”
Set “Other pixels” to “V”.
It will be expressed as

つまり、ステップ4に入る前に、各画素は、それぞれ対応する情報(以降、その画素の付随情報と言う。)として、「I」(白とび画素)あるいは「H」(補正対象画素)あるいは「V」(その他画素)のいずれかを持っている。また、後述するように処理の過程で、「H」(補正対象画素)に対応する画素の付随情報は、「M」(補正済画素)に変更されていく。   That is, before entering Step 4, each pixel has “I” (overexposed pixel), “H” (correction target pixel), “ V ”(other pixels). Further, as will be described later, in the course of processing, the accompanying information of the pixel corresponding to “H” (correction target pixel) is changed to “M” (corrected pixel).

なお、「I」はineffectiveの頭文字、「H」はHoleの頭文字、「M」はModifiedの頭文字、「V」はValidの頭文字である。   Note that “I” is an acronym for effective, “H” is an acronym for Hole, “M” is an acronym for Modified, and “V” is an acronym for Valid.

さて、ステップ4では、所定の回数(例えば10回)、以下に説明する処理Aを行った後、処理Bを行う。
処理A:すべての「H」(補正対象画素)の画素(着目画素と呼ぶ。)について、その周囲の画素(前後、左右、斜めの合計8画素)の内、「M」(補正済画素)あるいは「V」(その他画素)の画素がある場合には、その「M」(補正済画素)あるいは「V」(その他画素)の画素の平均値で、着目画素の値を変更する。そして、その着目画素の付随情報は「H」(補正対象画素)から「M」(補正済画素)に変更する。
処理B:すべての「H」(補正対象画素)の画素の値を0にする。
Now, in step 4, after performing process A described below for a predetermined number of times (for example, 10 times), process B is performed.
Process A: For all “H” (correction target pixel) pixels (referred to as a target pixel), “M” (corrected pixel) out of the surrounding pixels (a total of 8 pixels in the front, back, left, and right directions). Alternatively, if there is a “V” (other pixel) pixel, the value of the pixel of interest is changed by the average value of the “M” (corrected pixel) or “V” (other pixel) pixel. The accompanying information of the target pixel is changed from “H” (correction target pixel) to “M” (corrected pixel).
Process B: The values of all “H” (correction target pixels) are set to zero.

なお、処理Bが必要な理由を補足しておく。処理Aを所定の回数(10回)だけ行っても、まだ、「H」(補正対象画素)の状態である画素が存在する可能性もある。つまり、「紫色をおびた画素であり、補正すべき画素」であるにも係わらず、「まだ補正処理の過程(所定回数の処理A)において補正をしていない画素」が存在する可能性もある。このような画素については、周囲の画素からの補間を諦め、彩度を落とす(即ち、着目画素の値を0とする。)ようにしている。それが処理Bである。   The reason why process B is necessary will be supplemented. Even if the process A is performed a predetermined number of times (10 times), there may still be a pixel in the state of “H” (correction target pixel). In other words, there is a possibility that “a pixel that has been corrected in the process of correction processing (predetermined number of times of processing A)” even though it is a “purple pixel and a pixel to be corrected”. is there. For such pixels, the interpolation from surrounding pixels is given up and the saturation is reduced (that is, the value of the pixel of interest is set to 0). That is process B.

さて、前述のステップ3において「H」(補正対象画素)であった画素間での境界(即ち、ステップ4において、処理Aで変更された画素と、処理Bで変更された画素の境界)が目立つので、この境界の目立ちをステップ5において、ぼかす処理を実行する。ぼかし処理は、以下の処理Cを所定の回数(例えば5回)実行する。
処理C:すべての「H」(補正対象画素)あるいは「M」(補正済画素)の画素の値を、その周囲の画素(着目画素、および、前後、左右、斜めの合計9画素)の平均値で、変更する。
Now, the boundary between the pixels that were “H” (correction target pixel) in Step 3 described above (that is, the boundary between the pixel changed in Process A and the pixel changed in Process B in Step 4). Since it is conspicuous, a process of blurring this conspicuous boundary is executed in step 5. In the blurring process, the following process C is executed a predetermined number of times (for example, 5 times).
Process C: Average of all “H” (correction target pixel) or “M” (corrected pixel) pixel values around the surrounding pixels (the pixel of interest and a total of nine pixels in the front, rear, left, and right directions) Change by value.

以上で、ステップ4の穴埋め補間処理と、ステップ5のぼかし処理が完了し、補正された画像が出力される。これらの処理によって、色収差に基づくパープルフリンジなどの偽色、その他の画素値の不定画素の画素値が補正され、高品質な画像データが生成されて出力可能となる。   Thus, the hole-filling interpolation process in step 4 and the blurring process in step 5 are completed, and a corrected image is output. Through these processes, the false color such as purple fringe based on chromatic aberration and other pixel values of indefinite pixels are corrected, and high-quality image data can be generated and output.

このステップ4の穴埋め補間処理と、ステップ5のぼかし処理を実行する本発明に係る画像処理装置のハードウェア構成について、以下説明する。まず、本発明のポイントを述べておく。本発明の画像処理装置では、各画素は、ラスタスキャン順に処理していく。これにより、メモリからの読み出し/書き込みに関して、規則正しく順番に行うことが出来る。さらに、各画素に対応する付随情報、すなわち、
「I」(白とび画素)
「H」(補正対象画素)
「V」(その他画素)
「M」(補正済画素)
の各付随情報も、対応する画素と同じタイミングで、ラスタスキャン順に処理が可能であり、これらの付随情報を保持するための別メモリを確保することなく、これらの付随情報のメモリに対する入出力制御も不要となる。
The hardware configuration of the image processing apparatus according to the present invention that executes the hole-filling interpolation process in step 4 and the blurring process in step 5 will be described below. First, the points of the present invention will be described. In the image processing apparatus of the present invention, each pixel is processed in the raster scan order. As a result, reading / writing from the memory can be performed in order. Furthermore, accompanying information corresponding to each pixel, ie,
"I" (whiteout pixel)
“H” (correction target pixel)
"V" (other pixels)
"M" (corrected pixel)
The associated information can be processed in the raster scan order at the same timing as the corresponding pixels. Input / output control of these accompanying information to the memory can be performed without securing a separate memory for holding the accompanying information. Is also unnecessary.

本発明の画像処理装置の構成について、図2を用いて説明する。図2は、上述のステップ4の穴埋め補間処理と、ステップ5のぼかし処理をハードウェア構成としての回路を適用して実行する画像処理装置を示すブロック図である。   The configuration of the image processing apparatus of the present invention will be described with reference to FIG. FIG. 2 is a block diagram illustrating an image processing apparatus that executes the above-described hole-filling interpolation process in step 4 and the blurring process in step 5 by applying a circuit having a hardware configuration.

図2に示す画像処理装置20は、入出力ポート21、メモリ22、画素判別処理部23、穴埋め補間処理部24、ぼかし処理部25、バス26、制御部27を有する。   The image processing apparatus 20 illustrated in FIG. 2 includes an input / output port 21, a memory 22, a pixel discrimination processing unit 23, a hole filling interpolation processing unit 24, a blur processing unit 25, a bus 26, and a control unit 27.

入出力ポート21から、例えば、色収差を帯びた画像、すなわち補正すべき画素を含む画像データが入力され、後述する一連の処理が行われた後、色収差を補正した画像、すなわち、穴埋め補間処理とぼかし処理を実行した後の画像データが入出力ポート21から出力される。   For example, an image having chromatic aberration, that is, image data including a pixel to be corrected is input from the input / output port 21, and after a series of processes described later is performed, an image in which chromatic aberration is corrected, that is, a filling interpolation process The image data after executing the blurring process is output from the input / output port 21.

メモリ22は、画像データを格納するメモリである。画素判別処理部は、前述のステップ1からステップ3までの処理、すなわち、
ステップ1:白とびマスク算出
ステップ2:偽色発生部検索領域設定(Dilate)処理(白とびの周りに膨らませた部分の画素設定)
ステップ3:紫画素検出
を実行し、各画素の補正対象の画素としての紫画素を選別する処理を実行する回路である。
The memory 22 is a memory that stores image data. The pixel discrimination processing unit performs the above-described processing from Step 1 to Step 3, that is,
Step 1: Whiteout mask calculation Step 2: False color generation part search area setting (Dilate) processing (pixel setting of a portion inflated around whiteout)
This is a circuit that executes step 3: purple pixel detection and executes a process of selecting a purple pixel as a correction target pixel of each pixel.

穴埋め補間処理部24は、前述のステップ4の穴埋め補間処理を実行する回路である。ぼかし処理部25は、ステップ5のぼかし処理を行う回路である。   The hole-filling interpolation processing unit 24 is a circuit that performs the hole-filling interpolation process in step 4 described above. The blur processing unit 25 is a circuit that performs the blur processing in step 5.

バス26は、入出力ポート21、メモリ22、画素判別処理部23、穴埋め補間処理部24、ぼかし処理部25の各構成部間のデータ転送用バスである。これらの構成部の動作制御およびデータ転送制御は、制御部27において実行される。なお、穴埋め補間処理部24からの出力は、直接ぼかし処理部25に入力される。   The bus 26 is a data transfer bus between the components of the input / output port 21, the memory 22, the pixel discrimination processing unit 23, the hole-filling interpolation processing unit 24, and the blurring processing unit 25. Operation control and data transfer control of these components are executed by the control unit 27. Note that the output from the hole-filling interpolation processing unit 24 is directly input to the blurring processing unit 25.

穴埋め補間処理部24と、ぼかし処理部25の構成および処理の詳細は、図5〜図10を用いて、後ほど説明する。まず、図2に示す画像処理装置20を用いた全体処理の流れについて説明する。   Details of the configuration and processing of the hole-filling interpolation processing unit 24 and the blur processing unit 25 will be described later with reference to FIGS. First, the flow of overall processing using the image processing apparatus 20 shown in FIG. 2 will be described.

まず、入出力ポート21から補正対象画増、例えば、「色収差を帯びた画像データ」が入力され、バス26を介してメモリ22に格納される。メモリ22に格納された画像データは、次に、メモリ22からバス26を介して画素判別処理部23に入力される。   First, an image to be corrected, for example, “image data with chromatic aberration” is input from the input / output port 21 and stored in the memory 22 via the bus 26. The image data stored in the memory 22 is then input from the memory 22 to the pixel discrimination processing unit 23 via the bus 26.

画素判別処理部23では、前述のステップ1からステップ3までの処理、すなわち、
ステップ1:白とびマスク算出
ステップ2:偽色発生部検索領域設定(Dilate)処理(白とびの周りに膨らませた部分の画素設定)
ステップ3:紫画素検出
が実行される。
In the pixel discrimination processing unit 23, the above-described processing from Step 1 to Step 3, that is,
Step 1: Whiteout mask calculation Step 2: False color generation part search area setting (Dilate) processing (pixel setting of a portion inflated around whiteout)
Step 3: Purple pixel detection is executed.

この処理の結果、各画素の付随情報(「H」(補正対象画素)「V」(その他画素)「I」(白とび画素)のいずれか)の付随情報が、メモリ22に各画素の画素値データと併せて格納される。   As a result of this processing, the accompanying information of the accompanying information of each pixel (“H” (correction target pixel) “V” (other pixel) “I” (whiteout pixel)) is stored in the memory 22 for each pixel. Stored with value data.

例えば画像データを構成する各画素の画素値が8ビットとすると、メモリ22のメモリは1ワード10ビットとして設定され、画素値(8ビット)と付随情報(2ビット)として、同じ番地に画素値と付随情報が対応付けられて格納される。   For example, if the pixel value of each pixel constituting the image data is 8 bits, the memory of the memory 22 is set as 10 bits per word, and the pixel value is set to the same address as the pixel value (8 bits) and the accompanying information (2 bits). And associated information are stored in association with each other.

メモリ22におけるデータ格納構成について、図3を用いて、詳しく説明する。図3には、メモリ22のXX番地に格納されているある画素に対応するデータを示している。このメモリ22は、10ビット幅なので、その中の下位側の8ビット分のところ(図3では、R7〜R0)に、その画素の画素値(0〜255の8ビットデータ)が格納される。さらに、画素判別処理部23の回路により確定されたこの画素に対応する付随情報(全部で4つの状態(H,V,I,M)を取るので2ビット分)は、同じ番地(XX番地)の上位側の2ビット分のところ(図3では、R9、R8)に格納される。   A data storage configuration in the memory 22 will be described in detail with reference to FIG. FIG. 3 shows data corresponding to a certain pixel stored at address XX of the memory 22. Since the memory 22 is 10 bits wide, the pixel value (8-bit data from 0 to 255) of the pixel is stored in the lower 8 bits (R7 to R0 in FIG. 3). . Further, the incidental information corresponding to this pixel determined by the circuit of the pixel discrimination processing unit 23 (two bits because all four states (H, V, I, M) are taken) is the same address (address XX). Are stored in the upper 2 bits (R9, R8 in FIG. 3).

このように、メモリ22には、画像データの構成画素の画素値と、その付随情報、すなわち、
「H」(補正対象画素)
「V」(その他画素)
「I」(白とび画素)
のいずれかの情報が対応付けられて格納されることになる。処理前であるので、
「M」(補正済み画素)
の付随情報が設定された画素データはない。
Thus, the memory 22 stores the pixel values of the constituent pixels of the image data and the accompanying information, that is,
“H” (correction target pixel)
"V" (other pixels)
"I" (whiteout pixel)
Is stored in association with each other. Since it is before processing,
"M" (corrected pixel)
There is no pixel data in which the accompanying information is set.

さて、このように画素値と付随情報とを対応付けて格納したメモリ22から、格納データが、バス26を介して、穴埋め補間処理部24に出力され穴埋め補間処理が実行され、さらにぼかし処理部25においてぼかし処理が実行されて、処理結果データがバス26を介して、メモリ22に一旦格納された後、バス26を介して入出力ポート21を介して出力される。   The stored data is output from the memory 22 storing the pixel values and the associated information in association with each other to the hole-filling interpolation processing unit 24 via the bus 26, and the hole-filling interpolation processing is executed. In 25, the blurring process is executed, and the processing result data is temporarily stored in the memory 22 via the bus 26 and then output via the input / output port 21 via the bus 26.

まず、メモリ22からは、ラスタスキャン順に各画素に対応するデータ、すなわち画素値と付随情報が読み出される。この「画素値」と「付随情報」は、バス26を介して、ラスタスキャン順に穴埋め補間処理部24に入力される。穴埋め補間処理部24での処理の詳細は後述する。穴埋め補間処理部24では、前述の所定回数(例えば10回)の処理Aの後、処理Bが実行される。すなわち、
処理A:すべての「H」(補正対象画素)の画素(着目画素と呼ぶ。)について、その周囲の画素(前後、左右、斜めの合計8画素)の内、「M」(補正済画素)あるいは「V」(その他画素)の画素がある場合には、その「M」(補正済画素)あるいは「V」(その他画素)の画素の平均値で、着目画素の値を変更する。そして、その着目画素の付随情報は「H」(補正対象画素)から「M」(補正済画素)に変更する。
処理B:すべての「H」(補正対象画素)の画素の値を0にする。
First, data corresponding to each pixel, that is, a pixel value and accompanying information are read from the memory 22 in the raster scan order. The “pixel value” and “accompanying information” are input to the hole-filling interpolation processing unit 24 via the bus 26 in the raster scan order. Details of the processing in the hole-filling interpolation processing unit 24 will be described later. In the hole-filling interpolation processing unit 24, the process B is executed after the above-described predetermined number (for example, 10 times) of the process A. That is,
Process A: For all “H” (correction target pixel) pixels (referred to as a target pixel), “M” (corrected pixel) out of the surrounding pixels (a total of 8 pixels in the front, back, left, and right directions). Alternatively, if there is a “V” (other pixel) pixel, the value of the pixel of interest is changed by the average value of the “M” (corrected pixel) or “V” (other pixel) pixel. The accompanying information of the target pixel is changed from “H” (correction target pixel) to “M” (corrected pixel).
Process B: The values of all “H” (correction target pixels) are set to zero.

穴埋め補間処理部24でのこれらの処理の後、ラスタスキャン順に、「画素値」と「付随情報」が、ぼかし処理部25に出力される。   After these processes in the hole-filling interpolation processing unit 24, “pixel value” and “accompanying information” are output to the blurring processing unit 25 in the raster scan order.

そして、穴埋め補間処理部24から出力された「画素値」と「付随情報」は、ぼかし処理部25にラスタスキャン順に入力され、ぼかし処理部25では、ぼかし処理が実行される。ぼかし処理部25の構成および処理の詳細は後述するが、ここでは、前述の処理Cが所定回数(例えば5回)実行される。すなわち、
処理C:すべての「H」(補正対象画素)あるいは「M」(補正済画素)の画素の値を、その周囲の画素(着目画素、および、前後、左右、斜めの合計9画素)の平均値で、変更する。
このぼかし処理が実行され、ラスタスキャン順に、「画素値」と「付随情報」が出力される。なお、実際には、「付随情報」は、このぼかし処理の後は、使用しないので、捨てても良いが、一貫性を持たせるために、ここでは、「付随情報」も出力する例として説明する。
Then, the “pixel value” and “accompanying information” output from the hole-filling interpolation processing unit 24 are input to the blurring processing unit 25 in the order of raster scanning, and the blurring processing unit 25 executes blurring processing. Although details of the configuration and processing of the blur processing unit 25 will be described later, here, the above-described processing C is executed a predetermined number of times (for example, five times). That is,
Process C: Average of all “H” (correction target pixel) or “M” (corrected pixel) pixel values around the surrounding pixels (the pixel of interest and a total of nine pixels in the front, rear, left, and right directions) Change by value.
This blurring process is executed, and “pixel value” and “accompanying information” are output in the raster scan order. Actually, the “accompanying information” is not used after this blurring process and may be discarded. However, in order to maintain consistency, here, the “accompanying information” is described as an example of outputting. To do.

そして、ぼかし処理部25から出力された「画素値」と「付随情報」は、バス26を介して、メモリ22にラスタスキャン順に書き込まれる。最後に、メモリ22に格納されている画像、即ち、穴埋め補間処理部14における所定回数(例えば10回)の処理Aと処理Bと、ぼかし処理部における所定回数(例えば5回)の処理Cの行われた画像データを、バス26を介して入出力ポート21より出力し、補正された画像データが出力される。   The “pixel value” and “accompanying information” output from the blur processing unit 25 are written in the memory 22 in the raster scan order via the bus 26. Finally, the images stored in the memory 22, that is, the process A and the process B for a predetermined number of times (for example, 10 times) in the hole-filling interpolation processing unit 14, and the process C for a predetermined number of times (for example, 5 times) in the blurring processing unit. The performed image data is output from the input / output port 21 via the bus 26, and the corrected image data is output.

上述したように、メモリ22から読み出し、穴埋め補間処理部24に供給する画像データ順はラスタスキャン順であり、ぼかし処理部25から出力されメモリ22に書き込む順番もラスタスキャン順である。   As described above, the order of image data read from the memory 22 and supplied to the hole-filling interpolation processing unit 24 is the raster scan order, and the order of output from the blur processing unit 25 and writing to the memory 22 is also the raster scan order.

即ち、このメモリ22の読み出し/書き込みの制御は、非常に単純な処理となる。制御は、例えば図4に示すメモリ読み出し制御、メモリ書き込み制御構成が適用される。具体的には、
(a)メモリ22からのデータ読み出し処理:
for(j=0;j,height;++j){
for(i=0;i<width;++i){
メモリ22から位置(i,j)の画素を読み出し、
バス26を介して穴埋め補間処理部24へ供給する。


(b)メモリ22に対するデータ書き込み処理:
for(j=0;j,height;++j){
for(i=0;i<width;++i){
ぼかし処理部25から出力されるデータをバス26を介し
て、メモリ22へ位置(i,j)の画素として格納する。

That is, the read / write control of the memory 22 is a very simple process. For the control, for example, a memory read control and memory write control configuration shown in FIG. 4 is applied. In particular,
(A) Data read processing from the memory 22:
for (j = 0; j, height; ++ j) {
for (i = 0; i <width; ++ i) {
Read out the pixel at position (i, j) from the memory 22,
This is supplied to the hole-filling interpolation processing unit 24 via the bus 26.
}
}
(B) Data writing process to the memory 22:
for (j = 0; j, height; ++ j) {
for (i = 0; i <width; ++ i) {
Data output from the blur processing unit 25 is sent via the bus 26.
Then, it is stored in the memory 22 as a pixel at the position (i, j).
}
}

[width]は画像の横幅(あるいは、処理を行う部分の画像の幅)であり、[height]はその高さである。
上記のメモリ制御は、すなわち、メモリからのデータ読み取り時は、
j=0の最上段のスキャンラインから順にi=0から順次、横方向に画素対応データ(画素値および付随情報)を取得し、最上位のスキャンラインが終端に達したら、次の下のスキャンラインに移動し、さらに横方向に順次画素対応データを取り出して最下段のスキャンラインに至る処理であり、メモリに対するデータ書き込み処理も、上述の読み取り処理と同様の順番で、スキャンラインに沿って実行されることを示している。このように、メモリからのデータよみとり、メモリに対するデータ書き込みは、スキャンラインに沿って実行され、単純な制御で実行することが可能となる。
[Width] is the horizontal width of the image (or the width of the image of the part to be processed), and [height] is its height.
The above memory control, that is, when reading data from the memory,
The pixel correspondence data (pixel value and accompanying information) is acquired in the horizontal direction sequentially from the first scan line of j = 0 in order, and when the highest scan line reaches the end, the next lower scan The process moves to the line, sequentially extracts the pixel-corresponding data in the horizontal direction and reaches the lowest scan line, and the data write process to the memory is also executed along the scan line in the same order as the above read process It is shown that. As described above, data reading from the memory and data writing to the memory are executed along the scan line, and can be executed with simple control.

次に、図5〜図8を参照して、穴埋め補間処理部24の構成および処理の詳細について説明し、その後、図9、図10を参照して、ぼかし処理部25の構成および処理の詳細について説明する。   Next, the configuration and processing details of the hole-filling interpolation processing unit 24 will be described with reference to FIGS. 5 to 8, and then the configuration and processing details of the blurring processing unit 25 will be described with reference to FIGS. 9 and 10. Will be described.

まず、図5〜図8を参照して、穴埋め補間処理部24の構成および処理の詳細について説明する。図5は、図2に示す穴埋め補間処理部24の具体的構成について説明する図である。図5に示すように、穴埋め補間処理部24は、フィルタ処理回路50−1、50−2〜50−10と、例外処理部51を有する。   First, the configuration and processing of the hole-filling interpolation processing unit 24 will be described with reference to FIGS. FIG. 5 is a diagram for explaining a specific configuration of the hole-filling interpolation processing unit 24 shown in FIG. As shown in FIG. 5, the hole-filling interpolation processing unit 24 includes filter processing circuits 50-1 and 50-2 to 50-10 and an exception processing unit 51.

フィルタ処理回路50−1、50−2〜50−10は、それぞれ同じ構成を有し、同一の処理を行う回路であり、前述の処理Aを繰り返し10回実行する。すなわち、
処理A:すべての「H」(補正対象画素)の画素(着目画素)について、その周囲の画素(前後、左右、斜めの合計8画素)の内、「M」(補正済画素)あるいは「V」(その他画素)の画素がある場合には、その「M」(補正済画素)あるいは「V」(その他画素)の画素の平均値で、着目画素の値を変更する。そして、その着目画素の付随情報は「H」(補正対象画素)から「M」(補正済画素)に変更する。
フィルタ50−1、50−2〜50−10は、この処理Aを10回、繰り返し実行する。なお、この例では、繰り返し回数を10に設定した例を説明するが、繰り返し回数は10回に限られない。
The filter processing circuits 50-1 and 50-2 to 50-10 have the same configuration and perform the same processing, and repeatedly execute the above-described processing A 10 times. That is,
Process A: For all “H” (correction target pixel) pixels (target pixels), “M” (corrected pixels) or “V” of the surrounding pixels (a total of 8 pixels in the front, back, left, and right directions). If there is a pixel “” (other pixels), the value of the pixel of interest is changed by the average value of the pixels “M” (corrected pixels) or “V” (other pixels). The accompanying information of the target pixel is changed from “H” (correction target pixel) to “M” (corrected pixel).
The filters 50-1 and 50-2 to 50-10 repeatedly execute this process A ten times. In this example, an example in which the number of repetitions is set to 10 will be described, but the number of repetitions is not limited to 10.

例外処理部51は、前述の処理B、すなわち、
処理B:すべての「H」(補正対象画素)の画素の値を0にする。
処理を実行する。すなわち10回の処理Aで残存している「H」(補正対象画素)の画素の値を0にする処理を実行する。
The exception processing unit 51 performs the above-described process B, that is,
Process B: The values of all “H” (correction target pixels) are set to zero.
Execute the process. That is, the process of setting the value of the pixel “H” (correction target pixel) remaining in process A 10 times to 0 is executed.

図5以下を参照して、穴埋め補間処理部24の処理について説明する。メモリ22からバス26を介して穴埋め補間処理部24にラスタスキャン順に入力される「画素値」と「付随情報」は、まずフィルタ処理回路50−1に入力される。そして、フィルタ処理回路50−1の出力は、フィルタ処理回路50−2へと入力される。フィルタ処理回路50−2の出力は、フィルタ処理回路50−3へと入力される。以降、同様であり、フィルタ処理回路50−9の出力はフィルタ処理回路50−10に入力される。そして、フィルタ処理回路50−10の出力は、例外処理部51に入力される。51の出力(「画素」と「付随情報」)は、穴埋め補間処理部24の出力として、ぼかし処理部25に入力される。   With reference to FIG. 5 and subsequent figures, the processing of the hole-filling interpolation processing unit 24 will be described. “Pixel value” and “accompanying information” input from the memory 22 to the hole-filling interpolation processing unit 24 via the bus 26 in the raster scan order are first input to the filter processing circuit 50-1. The output of the filter processing circuit 50-1 is input to the filter processing circuit 50-2. The output of the filter processing circuit 50-2 is input to the filter processing circuit 50-3. Thereafter, the same applies, and the output of the filter processing circuit 50-9 is input to the filter processing circuit 50-10. The output of the filter processing circuit 50-10 is input to the exception processing unit 51. The output 51 (“pixel” and “accompanying information”) is input to the blurring processing unit 25 as the output of the hole-filling interpolation processing unit 24.

処理Aを実行するフィルタ処理回路50−h(h=1〜10)の具体的回路構成について、図6を参照して説明する。フィルタ処理回路50−h(h=1〜10)は、データ選択回路600と補正処理実行回路としてのフィルタ計算回路623によって構成される。   A specific circuit configuration of the filter processing circuit 50-h (h = 1 to 10) that executes the process A will be described with reference to FIG. The filter processing circuit 50-h (h = 1 to 10) includes a data selection circuit 600 and a filter calculation circuit 623 as a correction processing execution circuit.

メモリ22からバス26を介してラスタスキャン順に入力される「画素値」データは、データ選択回路600を構成するデータ選択部としての単位遅延回路(FF)601に入力される。そして、単位遅延回路(FF)601の出力は、単位遅延回路602、単位遅延回路603、ディレイ回路(ディレイ量は、width−3)604、単位遅延回路605、単位遅延回路606、単位遅延回路607、ディレイ回路(ディレイ量は、width−3)608、単位遅延回路609、単位遅延回路610、単位遅延回路611へと順次送られていく。   “Pixel value” data input from the memory 22 via the bus 26 in the raster scan order is input to a unit delay circuit (FF) 601 serving as a data selection unit included in the data selection circuit 600. The output of the unit delay circuit (FF) 601 is a unit delay circuit 602, a unit delay circuit 603, a delay circuit (the delay amount is width-3) 604, a unit delay circuit 605, a unit delay circuit 606, and a unit delay circuit 607. The delay circuit (the delay amount is width-3) 608, the unit delay circuit 609, the unit delay circuit 610, and the unit delay circuit 611 are sequentially sent.

ディレイ回路604、とディレイ回路608の遅延データ量は、スキャンライン幅(width)−3画素分である。なお、この例では、データ選択回路において3×3の9画素を選択し、これらの9画素に対応する画素値と付随情報とを選択データを補正処理実行回路としてのフィルタ計算回路623に入力する構成であるが、データ選択回路600は、n×mの任意の画素データ(画素値と付随情報)を選択する構成とすることが可能であり、その構成によってディレイ回路604、とディレイ回路608の遅延データ量は異なってくる。   The amount of delay data in the delay circuit 604 and the delay circuit 608 is a scan line width (width) -3 pixels. In this example, 3 × 3 9 pixels are selected in the data selection circuit, and pixel values corresponding to these 9 pixels and accompanying information are input to the filter calculation circuit 623 serving as the correction processing execution circuit. The data selection circuit 600 can be configured to select arbitrary n × m pixel data (pixel value and accompanying information), and the delay circuit 604 and the delay circuit 608 are configured according to the configuration. The amount of delayed data varies.

一般化して説明すると、データ選択回路600は、画像データの横方向に隣接するn個の画素の画素値と対応付随情報とを選択するライン対応データ選択部をm段有する構成(ただし、n,mは1以上の整数)であり、異なる段のライン対応データ選択部の間に、(画像幅(width)データ長−n画素対応データ長)に相当するデータ遅延を実行する遅延回路が構成される。この構成によって、n×mの隣接画素領域に含まれる画素値と対応付随情報とを補正処理実行回路としてのフィルタ計算回路623に入力する構成である。   Explaining in general terms, the data selection circuit 600 is configured to have m stages of line-corresponding data selection units for selecting pixel values of n pixels adjacent in the horizontal direction of image data and corresponding incidental information (where n, m is an integer of 1 or more), and a delay circuit that executes a data delay corresponding to (image width (width) data length−n pixel corresponding data length) is configured between the line-corresponding data selection units at different stages. The With this configuration, pixel values included in n × m adjacent pixel regions and corresponding associated information are input to a filter calculation circuit 623 serving as a correction processing execution circuit.

同様に、ラスタスキャン順に入力される「付随情報」データは、データ選択回路600を構成するデータ選択部としての単位遅延回路612に入力される。そして、単位遅延回路(FF)612の出力は、単位遅延回路613、単位遅延回路614、ディレイ回路(ディレイ量は、width−3)615、単位遅延回路616、単位遅延回路617、単位遅延回路618、ディレイ回路(ディレイ量は、width−3)619、単位遅延回路620、単位遅延回路621、単位遅延回路622へと順次送られていく。   Similarly, the “accompanying information” data input in the raster scan order is input to a unit delay circuit 612 as a data selection unit constituting the data selection circuit 600. The output of the unit delay circuit (FF) 612 includes a unit delay circuit 613, a unit delay circuit 614, a delay circuit (delay amount is width-3) 615, a unit delay circuit 616, a unit delay circuit 617, and a unit delay circuit 618. , The delay circuit (the delay amount is width-3) 619, the unit delay circuit 620, the unit delay circuit 621, and the unit delay circuit 622 are sequentially transmitted.

なお、「画素値」データのビット長は、8ビットなので、単位遅延回路(FF)601〜611は8ビット幅である。また、「付随情報」のビット長は、2ビットなので、単位遅延回路(FF)612〜622は2ビット幅である。これらの8ビット画素値データと、2ビット付随情報とが、3×3画素分、選択され、補正処理実行回路としてのフィルタ計算回路623に入力される。   Since the bit length of the “pixel value” data is 8 bits, the unit delay circuits (FF) 601 to 611 are 8 bits wide. Further, since the bit length of the “accompanying information” is 2 bits, the unit delay circuits (FF) 612 to 622 are 2 bits wide. These 8-bit pixel value data and 2-bit associated information are selected for 3 × 3 pixels and input to the filter calculation circuit 623 serving as a correction processing execution circuit.

このように、データ選択回路600の構成要素である単位遅延回路(FF)601、602、603、605、606、607、609、610、611および612、613、614、616、617、618、620、621、622の出力は、補正処理実行回路としてのフィルタ計算回路623に入力され、図7に示す処理が行われ、その結果である「画素(8ビット)」と「付随情報(2ビット)」が、図6に示す回路から出力され、後段のフィルタ処理回路50−k、あるいは、例外処理部51に入力される。   As described above, the unit delay circuits (FF) 601, 602, 603, 605, 606, 607, 609, 610, 611 and 612, 613, 614, 616, 617, 618, 620, which are constituent elements of the data selection circuit 600, are provided. , 621 and 622 are input to a filter calculation circuit 623 serving as a correction processing execution circuit, and the processing shown in FIG. 7 is performed. As a result, “pixel (8 bits)” and “accompanying information (2 bits)” are obtained. Is output from the circuit shown in FIG. 6 and input to the subsequent filter processing circuit 50-k or the exception processing unit 51.

図7を参照して補正処理実行回路としてのフィルタ計算回路623で行う処理について説明する。図7においては、図6に示す単位遅延回路(FF)601の出力値をD00、単位遅延回路(FF)602の出力値をD10、単位遅延回路(FF)603の出力値をD20、単位遅延回路(FF)605の出力値をD01、単位遅延回路(FF)606の出力値をD11、単位遅延回路(FF)607の出力値をD21、単位遅延回路(FF)609の出力値をD02、単位遅延回路(FF)610の出力値をD12、単位遅延回路(FF)611の出力値をD22とし、さらに、単位遅延回路(FF)612の出力値をF00、単位遅延回路(FF)613の出力値をF10、単位遅延回路(FF)614の出力値をF20、616の出力値をF01、単位遅延回路(FF)617の出力値をF11、単位遅延回路(FF)618の出力値をF21、単位遅延回路(FF)620の出力値をF02、単位遅延回路(FF)621の出力値をF12、単位遅延回路(FF)622の出力値をF22としている。   Processing performed by the filter calculation circuit 623 serving as a correction processing execution circuit will be described with reference to FIG. In FIG. 7, the output value of the unit delay circuit (FF) 601 shown in FIG. 6 is D00, the output value of the unit delay circuit (FF) 602 is D10, the output value of the unit delay circuit (FF) 603 is D20, and the unit delay. The output value of the circuit (FF) 605 is D01, the output value of the unit delay circuit (FF) 606 is D11, the output value of the unit delay circuit (FF) 607 is D21, the output value of the unit delay circuit (FF) 609 is D02, The output value of the unit delay circuit (FF) 610 is D12, the output value of the unit delay circuit (FF) 611 is D22, the output value of the unit delay circuit (FF) 612 is F00, and the output value of the unit delay circuit (FF) 613 is The output value is F10, the output value of the unit delay circuit (FF) 614 is F20, the output value of 616 is F01, the output value of the unit delay circuit (FF) 617 is F11, and the output of the unit delay circuit (FF) 618 The F21, the output value of the unit delay circuit (FF) 620 F02, the output value of the unit delay circuit (FF) 621 F12, the output value of the unit delay circuit (FF) 622 is set to F22.

Dxxは画素のデータであり、D11を着目している画素とすると、その画素の周囲3×3の部分の画素の画素値データが、Dxxとしてフィルタ計算回路623に入力されていることになる。Fxxは付随情報であり、「H」(補正対象画素)「M」(補正済画素)「V」(その他画素)「I」(白とび画素)のいずれかであり、着目画素の周囲3×3の部分の付随情報が、Fxxとしてフィルタ計算回路623に入力されていることになる。   Dxx is pixel data. If D11 is a pixel of interest, pixel value data of a pixel in a 3 × 3 portion around the pixel is input to the filter calculation circuit 623 as Dxx. Fxx is accompanying information and is any one of “H” (correction target pixel), “M” (corrected pixel), “V” (other pixels), and “I” (overexposed pixels), and 3 × The incidental information of part 3 is input to the filter calculation circuit 623 as Fxx.

図8を参照して、フィルタ計算回路623に入力されるデータについて説明する。フィルタ計算回路623に入力されるデータは、図8に示すように、3×3画素に対応する画素値(Dxx)とその画素に対応する付随情報(Fxx)である。これらは、データ選択回路600によって選択される。フィルタ計算回路623ではこれらの3×3画素に対応する画素値(Dxx)とその画素に対応する付随情報(Fxx)に基づいて、これらの画素値に基づいて、中央の注目画素の画素値(D11)と付随情報(F11)を更新する。   With reference to FIG. 8, data input to the filter calculation circuit 623 will be described. As shown in FIG. 8, the data input to the filter calculation circuit 623 is a pixel value (Dxx) corresponding to 3 × 3 pixels and accompanying information (Fxx) corresponding to the pixels. These are selected by the data selection circuit 600. Based on the pixel value (Dxx) corresponding to these 3 × 3 pixels and the accompanying information (Fxx) corresponding to the pixel, the filter calculation circuit 623 calculates the pixel value ( D11) and accompanying information (F11) are updated.

図7の処理について説明する。図7に示す演算処理は、以下の通りである。   The process of FIG. 7 will be described. The calculation process shown in FIG. 7 is as follows.

if(F11==H){
sum=0;
num=0;
if(F00==VorM){sum+=D00;++num;}
if(F01==VorM){sum+=D01;++num;}
if(F02==VorM){sum+=D02;++num;}
if(F10==VorM){sum+=D11;++num;}
if(F12==VorM){sum+=D12;++num;}
if(F20==VorM){sum+=D20;++num;}
if(F20==VorM){sum+=D21;++num;}
if(F22==VorM){sum+=D22;++num;}
if(num!=0){
Do=sum/num;Fo=M;
}else{
Do=D11;Fo=F11;
}
}else{
Do=D11;Fo=F11;
}
if (F11 == H) {
sum = 0;
num = 0;
if (F00 == VorM) {sum + = D00; ++ num;}
if (F01 == VorM) {sum + = D01; ++ num;}
if (F02 == VorM) {sum + = D02; ++ num;}
if (F10 == VorM) {sum + = D11; ++ num;}
if (F12 == VorM) {sum + = D12; ++ num;}
if (F20 == VorM) {sum + = D20; ++ num;}
if (F20 == VorM) {sum + = D21; ++ num;}
if (F22 == VorM) {sum + = D22; ++ num;}
if (num! = 0) {
Do = sum / num; Fo = M;
} else {
Do = D11; Fo = F11;
}
} else {
Do = D11; Fo = F11;
}

上記の演算処理について説明する。まず、着目している画素に対応する付随情報F11が「H」(補正対象画素)であるか調べ、「H」(補正対象画素)であれば、以下の処理によって、出力画素値(Do)と出力付随情報(Fo)を決定する。即ち、変数:sumとnumに0をセットし、付随情報:Fpqの値が「M」(補正済画素)あるいは「V」(その他画素)のいずれかである場合にのみ、対応する画素値:Dpqをsumに加算し、numを1だけインクリメントする(p=0〜2、q=0〜2、p=1かつq=1は除く)。   The arithmetic processing will be described. First, it is checked whether the accompanying information F11 corresponding to the pixel of interest is “H” (correction target pixel). If it is “H” (correction target pixel), the output pixel value (Do) is obtained by the following processing. And output accompanying information (Fo) are determined. That is, only when the variable: sum and num are set to 0 and the value of the accompanying information: Fpq is either “M” (corrected pixel) or “V” (other pixels), the corresponding pixel value: Dpq is added to sum and num is incremented by 1 (p = 0-2, q = 0-2, p = 1 and q = 1 are excluded).

そして、フィルタ計算回路623の出力である「画素」の値としてDo=sum/numを出力し、フィルタ計算回路623の出力である「付随情報」の値としてFo=「M」(補正済画素)を出力する。   Then, Do = sum / num is output as the value of “pixel” as the output of the filter calculation circuit 623, and Fo = “M” (corrected pixel) as the value of “accompanying information” as the output of the filter calculation circuit 623. Is output.

この処理は、3×3画素の中心画素が「H」(補正対象画素)であるとき、周囲の8画素から、「M」(補正済画素)あるいは「V」(その他画素)の付随情報が設定された画素のみを選択して、これらの画素の画素値の平均(sum/num)を3×3画素の中心画素の補正画素値として設定し、その付随情報を「M」(補正済画素)とする処理である。   In this process, when the center pixel of 3 × 3 pixels is “H” (correction target pixel), the accompanying information of “M” (corrected pixel) or “V” (other pixels) is obtained from the surrounding eight pixels. Only the set pixels are selected, the average (sum / num) of the pixel values of these pixels is set as the correction pixel value of the center pixel of 3 × 3 pixels, and the accompanying information is “M” (corrected pixel ).

ただし、numが0、すなわち、3×3画素の中心画素が「H」(補正対象画素)であるが、周囲の8画素に「M」(補正済画素)あるいは「V」(その他画素)の付随情報が設定された画素が無い場合は、フィルタ計算回路623の出力である「画素」の値としてDo=D11を出力し、フィルタ計算回路623の出力である「付随情報」の値としてFo=F11(即ち「H」(補正対象画素))を出力する。すなわち、画素値の補正を行なうことなく、入力画素値[D11]をそのままの値とし、付随情報もF11=「H」(補正対象画素)のまま出力する。   However, num is 0, that is, the center pixel of 3 × 3 pixels is “H” (correction target pixel), but “M” (corrected pixel) or “V” (other pixels) is included in the surrounding eight pixels. When there is no pixel for which the accompanying information is set, Do = D11 is output as the value of “pixel” as the output of the filter calculation circuit 623, and Fo = as the value of “accompanying information” as the output of the filter calculation circuit 623. F11 (that is, “H” (correction target pixel)) is output. That is, without correcting the pixel value, the input pixel value [D11] is left as it is, and the accompanying information is also output as F11 = “H” (correction target pixel).

また、F11が「H」(補正対象画素)でない場合には、フィルタ計算回路623の出力である「画素」の値として、入力画素値のまま、すなわち、Do=D11を出力し、フィルタ計算回路623の出力である「付随情報」の値も変更することなく、Fo=F11を出力する。   Further, when F11 is not “H” (correction target pixel), the value of “pixel” as the output of the filter calculation circuit 623 is output as the input pixel value, that is, Do = D11 is output, and the filter calculation circuit Fo = F11 is output without changing the value of “accompanying information” which is the output of 623.

この図7に示すフィルタ計算回路623の処理は、加算処理回路、アンド、オア回路などの演算回路によって構成されるハードウェア回路で実現され、図6に示す複数の単位遅延回路(FF)からの画素値と付随情報を入力して、図7に示す演算処理が実行される。   The processing of the filter calculation circuit 623 shown in FIG. 7 is realized by a hardware circuit composed of arithmetic circuits such as an addition processing circuit, an AND circuit, and a plurality of unit delay circuits (FF) shown in FIG. The pixel value and accompanying information are input, and the arithmetic processing shown in FIG. 7 is executed.

この処理は、着目画素に対する処理A、すなわち、
処理A:すべての「H」(補正対象画素)の画素(着目画素)について、その周囲の画素(前後、左右、斜めの合計8画素)の内、「M」(補正済画素)あるいは「V」(その他画素)の画素がある場合には、その「M」(補正済画素)あるいは「V」(その他画素)の画素の平均値で、着目画素の値を変更する。そして、その着目画素の付随情報は「H」(補正対象画素)から「M」(補正済画素)に変更する。
の処理を行なうことに相当する。
この処理Aが、図5に示すフィルタ処理回路50−1〜10の10個の回路により10回繰り返して行われることになる。結果として、付随情報として「H」(補正対象画素)が設定された画素は順次、穴埋め補間により、新たな画素値が設定されて、付随情報も「M」(補正済画素)に変更されることになる。
This processing is processing A for the target pixel, that is,
Process A: For all “H” (correction target pixel) pixels (target pixels), “M” (corrected pixels) or “V” of the surrounding pixels (a total of 8 pixels in the front, back, left, and right directions). If there is a pixel “” (other pixels), the value of the pixel of interest is changed by the average value of the pixels “M” (corrected pixels) or “V” (other pixels). The accompanying information of the target pixel is changed from “H” (correction target pixel) to “M” (corrected pixel).
It corresponds to performing the process.
This process A is repeated 10 times by 10 circuits of the filter processing circuits 50-1 to 50 shown in FIG. As a result, for the pixels for which “H” (correction target pixel) is set as the accompanying information, a new pixel value is sequentially set by hole-filling interpolation, and the accompanying information is also changed to “M” (corrected pixel). It will be.

次に、図5に示す例外処理部51での処理について、図9を参照して説明する。例外処理部51での処理は、下記の処理である。
if(Fin==H){
Dout=const;
Fout=Fin;
}else{
Dout=Din;
Fout=Fin;
}
Next, processing in the exception processing unit 51 shown in FIG. 5 will be described with reference to FIG. The processing in the exception processing unit 51 is the following processing.
if (Fin == H) {
Dout = const;
Fout = Fin;
} else {
Dout = Din;
Fout = Fin;
}

例外処理部51では、前述の処理B、すなわち、
処理B:すべての「H」(補正対象画素)の画素の値を0にする。
処理を実行する。すなわち10回の処理Aで残存している「H」(補正対象画素)の画素の値を0にする処理を実行する。
In the exception processing unit 51, the above-described process B, that is,
Process B: The values of all “H” (correction target pixels) are set to zero.
Execute the process. That is, the process of setting the value of the pixel “H” (correction target pixel) remaining in process A 10 times to 0 is executed.

入力された画素の値(Din)と、その画素に対応する入力された付随情報(Fin)から、Finが「H」(補正対象画素)のときは、例外処理部51は、出力「画素値」としてDo=「一定の値(たとえば0)」を出力する。また、その画素に対応する「付随情報」の値として、入力付随情報をそのまま変更することなく、Fo=Fin、すなわち、「H」(補正対象画素)のまま出力する。   When Fin is “H” (correction target pixel) from the input pixel value (Din) and the input accompanying information (Fin) corresponding to the pixel, the exception processing unit 51 outputs “pixel value”. Do = “constant value (for example, 0)” is output. Further, the value of “accompanying information” corresponding to the pixel is output as Fo = Fin, that is, “H” (correction target pixel) without changing the input accompanying information as it is.

また、入力された付随情報(Fin)が「H」(補正対象画素)でないときは、例外処理部51は、出力「画素値」として、入力画素値を変更することなく、そのまま、Do=Dinを出力し、「付随情報」の値も入力付随情報をそのまま変更することなく、Fo=Finを出力する。これは、明らかに、着目している画素(Din)に対して処理B、すなわち、
処理B:すべての「H」(補正対象画素)の画素の値を0にする。
処理を実行する。すなわち10回の処理Aで残存している「H」(補正対象画素)の画素の値を0にする処理
を実行したことに相当する。
When the input incidental information (Fin) is not “H” (correction target pixel), the exception processing unit 51 outputs Do “Din” as it is without changing the input pixel value as the output “pixel value”. And “Fo = Fin” is output without changing the input incidental information as it is. Obviously, this is the process B for the pixel of interest (Din), ie,
Process B: The values of all “H” (correction target pixels) are set to zero.
Execute the process. That is, this is equivalent to executing the process of setting the value of the remaining “H” (correction target pixel) pixel to 0 after 10 processes A.

この図9に示す例外処理部51の処理は、加算処理回路、アンド、オア回路などの演算回路によって構成されるハードウェア回路で実現され、図5に示す最終段のフィルタ処理回路50−10からの画素値と付随情報を入力して、図9に示す処理が実行される。   The processing of the exception processing unit 51 shown in FIG. 9 is realized by a hardware circuit constituted by arithmetic circuits such as an addition processing circuit, an AND circuit, and the final stage filter processing circuit 50-10 shown in FIG. 9 is input and the process shown in FIG. 9 is executed.

このように、図2に示す穴埋め補間処理部24は、所定回数(ここでは10回)の処理Aと1回の処理Bによる穴埋め補間処理を実行する。なお、これらの処理は、メモリ22から入力されるラスタスキャン順に従って実行され、穴埋め補間処理部24からの処理結果も、ラスタスキャン順にぼかし処理部25に入力される。   As described above, the hole-filling interpolation processing unit 24 shown in FIG. 2 executes the hole-filling interpolation process by the predetermined number (here, 10 times) of the process A and the process B once. These processes are executed according to the raster scan order input from the memory 22, and the processing result from the hole filling interpolation processing unit 24 is also input to the blurring processing unit 25 in the raster scan order.

次に、図10、図11を参照してぼかし処理部25の構成および処理について説明する。ぼかし処理部25は、前述したように、穴埋め補間処理によって補間された画素値を持つ画像データの画素値のぼかし処理を実行する。すなわち、以下の処理Cを所定の回数(例えば5回)実行する。
処理C:すべての「H」(補正対象画素)あるいは「M」(補正済画素)の画素の値を、その周囲の画素(着目画素、および、前後、左右、斜めの合計9画素)の平均値で、変更する。
Next, the configuration and processing of the blur processing unit 25 will be described with reference to FIGS. 10 and 11. As described above, the blurring processing unit 25 performs the blurring process on the pixel values of the image data having the pixel values interpolated by the hole-filling interpolation process. That is, the following process C is executed a predetermined number of times (for example, 5 times).
Process C: Average of all “H” (correction target pixel) or “M” (corrected pixel) pixel values around the surrounding pixels (the pixel of interest and a total of nine pixels in the front, rear, left, and right directions) Change by value.

図10は、図2に示すぼかし処理部25の構成を示すブロック図である。図10において、フィルタ処理回路90−1、90−2〜90−5は、それぞれ同じ処理を行う回路である。なお、フィルタ処理回路90−3と90−4は、図示を省略している。   FIG. 10 is a block diagram showing a configuration of the blur processing unit 25 shown in FIG. In FIG. 10, filter processing circuits 90-1 and 90-2 to 90-5 are circuits that perform the same processing. The filter processing circuits 90-3 and 90-4 are not shown.

穴埋め補間処理部24からぼかし処理部25には、ラスタスキャン順に「画素値」と「付随情報」が入力され、まず、フィルタ処理回路90−1に入力される。そして、フィルタ処理回路90−1の出力は、フィルタ処理回路90−2へと入力される。フィルタ処理回路90−2の出力は、フィルタ処理回路90−3へと入力される。以降、同様であり、フィルタ処理回路90−4の出力はフィルタ処理回路90−5に入力される。そして、フィルタ処理回路90−5の出力(「画素値」と「付随情報」)は、ぼかし処理部25の出力として、バス26を介してメモリ22に格納される。   The “pixel value” and the “accompanying information” are input from the hole-filling interpolation processing unit 24 to the blurring processing unit 25 in the raster scan order, and are first input to the filter processing circuit 90-1. The output of the filter processing circuit 90-1 is input to the filter processing circuit 90-2. The output of the filter processing circuit 90-2 is input to the filter processing circuit 90-3. Thereafter, the same applies, and the output of the filter processing circuit 90-4 is input to the filter processing circuit 90-5. The output (“pixel value” and “accompanying information”) of the filter processing circuit 90-5 is stored in the memory 22 through the bus 26 as the output of the blurring processing unit 25.

フィルタ処理回路90−h(h=1〜5)の構成を図11に示す。図11に示すように、フィルタ処理回路90−h(h=1〜5)は、先に、穴埋め補間処理部24の構成回路として図6を参照して説明した回路と同様の構成を持つ。すなわち、図8を参照して説明したように、3×3画素の画素値(Dxx)と付随情報(Fxx)をフィルタ計算回路923に入力するためのデータ選択回路900と、補正処理実行回路としてのフィルタ計算回路923によって構成される。   The configuration of the filter processing circuit 90-h (h = 1 to 5) is shown in FIG. As shown in FIG. 11, the filter processing circuit 90-h (h = 1 to 5) has the same configuration as the circuit described above with reference to FIG. 6 as the constituent circuit of the hole-filling interpolation processing unit 24. That is, as described with reference to FIG. 8, the data selection circuit 900 for inputting the pixel value (Dxx) of 3 × 3 pixels and the accompanying information (Fxx) to the filter calculation circuit 923, and the correction processing execution circuit The filter calculation circuit 923 of FIG.

データ選択回路900は、単位遅延回路(FF)901〜903,905〜907,909〜911、912〜914,916〜918,920〜922とディレイ回路904,908,915,919とを有する。ぼかし処理部においては、これらの3×3画素データに対するデータ処理、すなわち、図11に示す補正処理実行回路としてのフィルタ計算回路923の処理が、穴埋め補間処理部24における補正処理(図7)とは異なる処理として実行される。   The data selection circuit 900 includes unit delay circuits (FF) 901 to 903, 905 to 907, 909 to 911, 912 to 914, 916 to 918, 920 to 922, and delay circuits 904, 908, 915 and 919. In the blurring processing unit, the data processing for these 3 × 3 pixel data, that is, the processing of the filter calculation circuit 923 as the correction processing execution circuit shown in FIG. 11 is the correction processing (FIG. 7) in the hole-filling interpolation processing unit 24. Are executed as different processes.

図12を参照して、ぼかし処理部25のフィルタ計算回路923(図11参照)の実行する処理について説明する。ぼかし処理部25のフィルタ計算回路923は、以下に示す処理を実行する。
if(F11==HorM){
Do=(D00+D01+D02
+D10+D11+D12
+D20+D21+D22)/9;
Fo=F11;
}else{
Do=D11;
Fo=F11;
}
With reference to FIG. 12, the process performed by the filter calculation circuit 923 (see FIG. 11) of the blur processing unit 25 will be described. The filter calculation circuit 923 of the blur processing unit 25 executes the following processing.
if (F11 == HorM) {
Do = (D00 + D01 + D02
+ D10 + D11 + D12
+ D20 + D21 + D22) / 9;
Fo = F11;
} else {
Do = D11;
Fo = F11;
}

まず、着目している画素、すなわち3×3画素の中心画素の付随情報F11が「H」(補正対象画素)あるいは「M」(補正済画素)であるか調べ、「H」(補正対象画素)あるいは「M」(補正済画素)であれば、以下の処理によって、出力画素値(Do)と出力付随情報(Fo)を決定する。即ち、入力する3×3=9つの画素の画素値:Dpq(p=0〜2、q=0〜2)の平均値を算出し、この平均値を、着目画素、すなわち3×3画素の中心画素の出力画素値(Do)とする。また、「付随情報」の値として、入力付随情報を変更することなく、Fo=F11を出力する。   First, it is checked whether the accompanying information F11 of the pixel of interest, that is, the center pixel of 3 × 3 pixels is “H” (correction target pixel) or “M” (corrected pixel), and “H” (correction target pixel). ) Or “M” (corrected pixel), the output pixel value (Do) and the output associated information (Fo) are determined by the following processing. That is, an average value of pixel values: Dpq (p = 0 to 2, q = 0 to 2) of 3 × 3 = 9 pixels to be input is calculated, and this average value is calculated for the pixel of interest, that is, 3 × 3 pixels. The output pixel value (Do) of the center pixel is assumed. Further, Fo = F11 is output as the value of “accompanying information” without changing the input accompanying information.

また着目画素の付随情報:F11が「H」(補正対象画素)でなく、かつ「M」(補正済画素)でない場合には、ぼかし処理部25のフィルタ計算回路923は、着目画素の出力「画素値」としてDo=D11、すなわち、入力画素値を変更することなく出力画素値として出力し、「付随情報」の値も変更することなく、Fo=F11を出力する。これは、着目画素に対する処理C、すなわち、
処理C:すべての「H」(補正対象画素)あるいは「M」(補正済画素)の画素の値を、その周囲の画素(着目画素、および、前後、左右、斜めの合計9画素)の平均値で、変更する処理、
を行ったことになる。
If the accompanying information of the pixel of interest: F11 is not “H” (correction target pixel) and is not “M” (corrected pixel), the filter calculation circuit 923 of the blurring processing unit 25 outputs the output “ Do = D11 as the “pixel value”, that is, the output pixel value is output without changing the input pixel value, and Fo = F11 is output without changing the value of the “accompanying information”. This is processing C for the target pixel, that is,
Process C: Average of all “H” (correction target pixel) or “M” (corrected pixel) pixel values around the surrounding pixels (the pixel of interest and a total of nine pixels in the front, rear, left, and right directions) Processing to change by value,
It has been done.

この図12に示すぼかし処理部25のフィルタ計算回路923の処理は、加算処理回路、アンド、オア回路などの演算回路によって構成されるハードウェア回路で実現され、図2に示す穴埋め補間処理部24の例外処理部51(図5参照)からの画素値と付随情報を入力して、図12に示す処理が実行される。   The processing of the filter calculation circuit 923 of the blur processing unit 25 shown in FIG. 12 is realized by a hardware circuit including arithmetic circuits such as an addition processing circuit, an AND circuit, and the hole-filling interpolation processing unit 24 shown in FIG. The pixel value and accompanying information from the exception processing unit 51 (see FIG. 5) are input, and the process shown in FIG. 12 is executed.

図11に示すフィルタ処理回路90−1〜90−5の5個の回路により、処理Cが5回行われることになる。   The process C is performed five times by the five circuits of the filter processing circuits 90-1 to 90-5 shown in FIG.

このように、図2に示す穴埋め補間処理部24では、図5〜図9を参照して説明した処理によって、
複数回の処理A:すべての「H」(補正対象画素)の画素(着目画素)について、その周囲の画素(前後、左右、斜めの合計8画素)の内、「M」(補正済画素)あるいは「V」(その他画素)の画素がある場合には、その「M」(補正済画素)あるいは「V」(その他画素)の画素の平均値で、着目画素の値を変更する。そして、その着目画素の付随情報は「H」(補正対象画素)から「M」(補正済画素)に変更する。
処理B:すべての「H」(補正対象画素)の画素の値を0にする。
が実行され、
また、図2に示すぼかし処理部25では、図10〜図12を参照して説明した処理によって、
複数回の処理C:すべての「H」(補正対象画素)あるいは「M」(補正済画素)の画素の値を、その周囲の画素(着目画素、および、前後、左右、斜めの合計9画素)の平均値で、変更する処理、
が実行される。
As described above, the hole-filling interpolation processing unit 24 illustrated in FIG. 2 performs the processing described with reference to FIGS.
Multiple times of processing A: For all “H” (correction target pixel) pixels (target pixel), “M” (corrected pixel) of the surrounding pixels (a total of 8 pixels in the front, back, left, and right directions). Alternatively, if there is a “V” (other pixel) pixel, the value of the pixel of interest is changed by the average value of the “M” (corrected pixel) or “V” (other pixel) pixel. The accompanying information of the target pixel is changed from “H” (correction target pixel) to “M” (corrected pixel).
Process B: The values of all “H” (correction target pixels) are set to zero.
Is executed,
In the blurring processing unit 25 shown in FIG. 2, the processing described with reference to FIGS.
Multiple times of processing C: The values of all “H” (correction target pixel) or “M” (corrected pixel) pixels are set to the surrounding pixels (the pixel of interest and a total of nine pixels including the front, back, left, and right. ) The average value of the process to change,
Is executed.

このように、本発明の構成では、ハードウェアによって構成した回路を適用して、穴埋め補間およびぼかし処理が実行される。しかも、処理手順は、メモリからラスタスキャン順に入力する画素値と付随情報を順次処理することによって実行可能であり、複雑なメモリの入出力制御を行なうことが不要であり、また、付随情報についても画素値に伴って処理の進行に従って各回路間において転送されるのみであるので、付随情報専用のメモリや制御も不要であり、シンプルな制御によって、穴埋め補間およびぼかし処理が実行可能となる。   Thus, in the configuration of the present invention, the hole-filling interpolation and the blurring processing are executed by applying a circuit configured by hardware. In addition, the processing procedure can be executed by sequentially processing pixel values input from the memory in the raster scan order and the accompanying information, and it is not necessary to perform complicated memory input / output control. Since only pixel values are transferred between the circuits according to the progress of processing, no memory or control dedicated to the accompanying information is required, and hole filling interpolation and blurring processing can be executed by simple control.

以上、特定の実施例を参照しながら、本発明について詳解してきた。しかしながら、本発明の要旨を逸脱しない範囲で当業者が該実施例の修正や代用を成し得ることは自明である。すなわち、例示という形態で本発明を開示してきたのであり、限定的に解釈されるべきではない。本発明の要旨を判断するためには、特許請求の範囲の欄を参酌すべきである。   The present invention has been described in detail above with reference to specific embodiments. However, it is obvious that those skilled in the art can make modifications and substitutions of the embodiments without departing from the gist of the present invention. In other words, the present invention has been disclosed in the form of exemplification, and should not be interpreted in a limited manner. In order to determine the gist of the present invention, the claims should be taken into consideration.

以上、説明したように、本発明の構成によれば、画像データにおける画素値補正処理、例えば、誤った画素値が設定された画素や、画素値の不定な画素などに対して、補間処理等の画素値補正をハードウェア回路を適用し、かつ小型の回路構成による処理を可能とした画像処理装置が実現される。   As described above, according to the configuration of the present invention, pixel value correction processing in image data, for example, interpolation processing for a pixel with an incorrect pixel value set, a pixel with an indefinite pixel value, etc. Thus, an image processing apparatus is realized that applies a hardware circuit to the pixel value correction and enables processing with a small circuit configuration.

本発明の構成では、画像データを構成する各画素の画素値と該画素に対応する付随情報とを入力し、異なる画素に対応する画素値と対応付随情報からなる複数のデータを、補正処理実行回路への入力データとして選択するデータ選択回路と、データ選択回路から入力する画素値と付随情報からなる複数のデータに基づいて、補正対象の画素の補正画素値を算出するとともに、該補正画素に対応する付随情報の更新処理を実行する補正処理実行回路とによって、補正に必要な画素データをデータ選択回路で順次、選択して、補正処理実行回路に供給とし、補正を実行する構成としたので、ラスタスキャン順にデータを順次、出力することで、複雑なメモリ制御を行うことなく、シンプルなハードウェア上の処理によって、穴埋め補間処理や、ぼかし処理などの画素値補正処理が実行可能となる。   In the configuration of the present invention, the pixel value of each pixel constituting the image data and the accompanying information corresponding to the pixel are input, and a plurality of pieces of data including the pixel value corresponding to the different pixel and the corresponding accompanying information are executed. Based on a data selection circuit to be selected as input data to the circuit, a plurality of data consisting of pixel values and accompanying information input from the data selection circuit, a correction pixel value of the pixel to be corrected is calculated, and Since the correction processing execution circuit that executes the update processing of the corresponding incident information is performed, the pixel data necessary for correction is sequentially selected by the data selection circuit, supplied to the correction processing execution circuit, and the correction is executed. By sequentially outputting data in raster scan order, simple hardware processing without complicated memory control, hole filling interpolation processing, Pixel value correction processing such processes can be executed.

本発明の構成によれば、ハードウェアによって構成した回路を適用して、穴埋め補間およびぼかし処理が実行される。しかも、処理手順は、メモリからラスタスキャン順に入力する画素値と付随情報を順次処理することによって実行可能であり、複雑なメモリの入出力制御を行なうことが不要であり、また、付随情報についても画素値に伴って処理の進行に従って各回路間において転送されるのみであるので、付随情報専用のメモリや制御も不要であり、シンプルな制御によって、穴埋め補間およびぼかし処理が実行可能となる。   According to the configuration of the present invention, hole filling interpolation and blurring processing are executed by applying a circuit configured by hardware. In addition, the processing procedure can be executed by sequentially processing pixel values input from the memory in the raster scan order and the accompanying information, and it is not necessary to perform complicated memory input / output control. Since only pixel values are transferred between the circuits according to the progress of processing, no memory or control dedicated to the accompanying information is required, and hole filling interpolation and blurring processing can be executed by simple control.

穴埋め補間処理を説明する図である。It is a figure explaining a hole-filling interpolation process. 穴埋め補間処理を適用した画像処理を実行する本発明の画像処理装置の構成を示す図である。It is a figure which shows the structure of the image processing apparatus of this invention which performs the image process which applied the hole-filling interpolation process. 本発明の画像処理装置におけるメモリのデータ格納構成について説明する図である。It is a figure explaining the data storage structure of the memory in the image processing apparatus of this invention. 本発明の画像処理装置におけるメモリのデータ入出力制御構成について説明する図である。It is a figure explaining the data input / output control structure of the memory in the image processing apparatus of this invention. 本発明の画像処理装置における穴埋め補間処理部の構成を示すブロック図である。It is a block diagram which shows the structure of the hole-filling interpolation process part in the image processing apparatus of this invention. 本発明の画像処理装置における穴埋め補間処理部のフィルタ処理部の回路構成を示す図である。It is a figure which shows the circuit structure of the filter process part of the hole-filling interpolation process part in the image processing apparatus of this invention. 本発明の画像処理装置における穴埋め補間処理部のフィルタ計算回路の処理について説明する図である。It is a figure explaining the process of the filter calculation circuit of the hole-filling interpolation process part in the image processing apparatus of this invention. 本発明の画像処理装置における穴埋め補間処理部のフィルタ計算回路に対する入力データの構成について説明する図である。It is a figure explaining the structure of the input data with respect to the filter calculation circuit of the hole-filling interpolation process part in the image processing apparatus of this invention. 本発明の画像処理装置における穴埋め補間処理部の例外処理部の処理について説明する図である。It is a figure explaining the process of the exception process part of the hole-filling interpolation process part in the image processing apparatus of this invention. 本発明の画像処理装置におけるぼかし処理部の構成を示すブロック図である。It is a block diagram which shows the structure of the blurring process part in the image processing apparatus of this invention. 本発明の画像処理装置にぼかし処理部のフィルタ処理部の回路構成を示す図である。It is a figure which shows the circuit structure of the filter process part of the blurring process part in the image processing apparatus of this invention. 本発明の画像処理装置におけるぼかし処理部のフィルタ計算回路の処理について説明する図である。It is a figure explaining the process of the filter calculation circuit of the blurring process part in the image processing apparatus of this invention.

符号の説明Explanation of symbols

11 白とび画素
12 偽色(パープルフリンジ)画素
13 その他の画素
14 補間済画素
20 画像処理装置
21 入出力ポート
22 メモリ
23 画素判別処理部
24 穴埋め補間処理部
25 ぼかし処理部
26 バス
27 制御部
50−1〜10 フィルタ処理回路
51 例外処理部
600 データ選択回路
601〜603 単位遅延回路(FF)
604 ディレイ回路
605〜607 単位遅延回路(FF)
608 ディレイ回路
609〜614 単位遅延回路(FF)
615 ディレイ回路
616〜618 単位遅延回路(FF)
619 ディレイ回路
620〜622 単位遅延回路(FF)
623 フィルタ計算回路
90−1〜5 フィルタ処理回路
900 データ選択回路
901〜903 単位遅延回路(FF)
904 ディレイ回路
905〜907 単位遅延回路(FF)
908 ディレイ回路
909〜914 単位遅延回路(FF)
915 ディレイ回路
916〜918 単位遅延回路(FF)
919 ディレイ回路
920〜922 単位遅延回路(FF)
923 フィルタ計算回路
DESCRIPTION OF SYMBOLS 11 White skip pixel 12 False color (purple fringe) pixel 13 Other pixels 14 Interpolated pixel 20 Image processing device 21 Input / output port 22 Memory 23 Pixel discrimination processing unit 24 Filling interpolation processing unit 25 Blur processing unit 26 Bus 27 Control unit 50 -1 to 10 Filter processing circuit 51 Exception processing unit 600 Data selection circuit 601 to 603 Unit delay circuit (FF)
604 delay circuit 605-607 unit delay circuit (FF)
608 Delay circuit 609 to 614 Unit delay circuit (FF)
615 Delay circuit 616 to 618 Unit delay circuit (FF)
619 Delay circuit 620-622 Unit delay circuit (FF)
623 Filter calculation circuit 90-1-5 Filter processing circuit 900 Data selection circuit 901-903 Unit delay circuit (FF)
904 delay circuit 905 to 907 unit delay circuit (FF)
908 Delay circuit 909 to 914 Unit delay circuit (FF)
915 delay circuit 916 to 918 unit delay circuit (FF)
919 delay circuit 920 to 922 unit delay circuit (FF)
923 filter calculation circuit

Claims (12)

画像処理装置であり、
画像データを構成する各画素の画素値と該画素に対応する付随情報とを入力し、異なる画素に対応する画素値と対応付随情報からなる複数のデータを、補正処理実行回路への入力データとして選択するデータ選択回路と、
前記データ選択回路から入力する画素値と付随情報からなる複数のデータに基づいて、補正対象の画素の補正画素値を算出するとともに、該補正画素に対応する付随情報の更新処理を実行する補正処理実行回路と、
を有することを特徴とする画像処理装置。
An image processing device,
The pixel value of each pixel constituting the image data and the accompanying information corresponding to the pixel are input, and a plurality of data consisting of the pixel value corresponding to the different pixel and the corresponding accompanying information are input to the correction processing execution circuit. A data selection circuit to select;
A correction process for calculating a correction pixel value of a pixel to be corrected based on a plurality of data including a pixel value input from the data selection circuit and accompanying information, and executing an updating process of the accompanying information corresponding to the correction pixel An execution circuit;
An image processing apparatus comprising:
前記データ選択回路は、
ラスタスキャン順に、画素値と対応付随情報からなるデータを入力し、
n×mの隣接画素領域に含まれる画素値と対応付随情報とを補正処理実行回路に対する入力データとして選択する処理を実行する構成、ただし、n,mは1以上の整数、
であることを特徴とする請求項1に記載の画像処理装置。
The data selection circuit includes:
In the raster scan order, input data consisting of pixel values and associated information,
A configuration for executing a process of selecting a pixel value and corresponding associated information included in an n × m adjacent pixel area as input data to the correction process execution circuit, where n and m are integers of 1 or more,
The image processing apparatus according to claim 1, wherein:
前記データ選択回路は、
画像データの横方向に隣接するn個の画素の画素値と対応付随情報とを選択するライン対応データ選択部をm段有し、ただし、n,mは1以上の整数、
異なる段のライン対応データ選択部の間に、(画像幅(width)データ長−n画素対応データ長)に相当するデータ遅延を実行する遅延回路を有し、
n×mの隣接画素領域に含まれる画素値と対応付随情報とを補正処理実行回路に対する入力データとして選択する処理を実行する構成であることを特徴とする請求項2に記載の画像処理装置。
The data selection circuit includes:
There are m stages of line-corresponding data selection units for selecting pixel values of n pixels adjacent in the horizontal direction of the image data and corresponding incidental information, where n and m are integers of 1 or more,
A delay circuit that executes a data delay corresponding to (image width (width) data length−n pixel corresponding data length) between the line-corresponding data selection units at different stages;
The image processing apparatus according to claim 2, wherein the image processing apparatus is configured to execute a process of selecting a pixel value included in an n × m adjacent pixel area and corresponding associated information as input data to a correction process execution circuit.
前記画像処理装置は、さらに、
画像データを構成する各画素の画素値と該画素に対応する付随情報とを対応付けて格納するメモリを有し、
前記データ選択回路は、
前記メモリからラスタスキャン順に、画素値と対応付随情報からなるデータを入力する構成であることを特徴とする請求項1に記載の画像処理装置。
The image processing apparatus further includes:
A memory for storing the pixel value of each pixel constituting the image data in association with the associated information corresponding to the pixel;
The data selection circuit includes:
The image processing apparatus according to claim 1, wherein the image processing apparatus is configured to input data including pixel values and corresponding incidental information in the raster scan order from the memory.
前記補正処理実行回路は、
穴埋め補間処理による画素値補正処理を実行する構成であり、
前記データ選択回路から入力する画素値と付随情報からなる複数のデータに基づいて、補正対象の画素の補正画素値を穴埋め補間処理によって算出するとともに、該補正画素に対応する付随情報の更新処理を実行する構成であることを特徴とする請求項1に記載の画像処理装置。
The correction processing execution circuit includes:
It is a configuration that performs pixel value correction processing by hole filling interpolation processing,
Based on a plurality of data consisting of pixel values and accompanying information input from the data selection circuit, the correction pixel value of the pixel to be corrected is calculated by filling interpolation processing, and the accompanying information updating process corresponding to the correction pixel is updated. The image processing apparatus according to claim 1, wherein the image processing apparatus is configured to execute.
前記付随情報は、
補正対象画素であるか、
穴埋め補間に適用可能な画素値を持つ画素であるか、
を判別可能な情報であり、
前記補正処理実行回路は、
前記付随情報が補正対象画素であることを示す場合に、
前記付随情報が穴埋め補間に適用可能な画素値を持つ画素であることを示す画素の画素値のみを選択して、前記補正対象画素の補正画素値を算出する構成であることを特徴とする請求項5に記載の画像処理装置。
The accompanying information is
Whether it is a pixel to be corrected,
Whether the pixel has a pixel value applicable to the filling interpolation,
Is information that can be determined,
The correction processing execution circuit includes:
When the accompanying information indicates a correction target pixel,
The correction pixel value of the correction target pixel is calculated by selecting only the pixel value of the pixel indicating that the accompanying information is a pixel having a pixel value applicable to the filling interpolation. Item 6. The image processing apparatus according to Item 5.
前記補正処理実行回路は、
ぼかし処理による画素値補正処理を実行する構成であり、
前記入力データ選択回路から入力する画素値と付随情報からなる複数のデータに基づいて、補正対象の画素の補正画素値をぼかし処理によって算出する構成であることを特徴とする請求項1に記載の画像処理装置。
The correction processing execution circuit includes:
It is a configuration that performs pixel value correction processing by blur processing,
2. The configuration according to claim 1, wherein a correction pixel value of a correction target pixel is calculated by a blurring process based on a plurality of data including a pixel value input from the input data selection circuit and accompanying information. Image processing device.
前記付随情報は、
補正対象画素または補正済み画素と、その他の画素とを判別可能な情報であり、
前記補正処理実行回路は、
前記付随情報が補正対象画素または補正済み画素であることを示す場合に、該画素を選択し、選択画素の周囲画素の画素値に基づいて、該選択画素の新たな補正画素値を算出する構成であることを特徴とする請求項7に記載の画像処理装置。
The accompanying information is
It is information that can distinguish the correction target pixel or corrected pixel from other pixels,
The correction processing execution circuit includes:
A configuration in which, when the accompanying information indicates a correction target pixel or a corrected pixel, the pixel is selected, and a new correction pixel value of the selected pixel is calculated based on the pixel values of surrounding pixels of the selected pixel The image processing apparatus according to claim 7, wherein:
前記補正処理実行回路は、
前記付随情報が補正対象画素または補正済み画素であることを示す場合に、該画素を選択し、選択画素の周囲画素の画素値の平均値を算出し、該算出値を選択画素の新たな補正画素値とする処理を実行する構成であることを特徴とする請求項8に記載の画像処理装置。
The correction processing execution circuit includes:
When the accompanying information indicates a correction target pixel or a corrected pixel, the pixel is selected, an average value of pixel values of surrounding pixels of the selected pixel is calculated, and the calculated value is newly corrected for the selected pixel. The image processing apparatus according to claim 8, wherein the image processing apparatus is configured to execute a process of setting a pixel value.
前記補正処理実行回路は、
前記データ選択回路から入力する画素値と付随情報からなる複数のデータに基づいて、補正対象の画素の補正画素値を算出するとともに、該補正画素に対応する付随情報の更新処理を実行し、処理済みデータをラスタスキャン順に出力する構成であることを特徴とする請求項1に記載の画像処理装置。
The correction processing execution circuit includes:
Based on a plurality of data composed of pixel values and accompanying information input from the data selection circuit, the correction pixel value of the pixel to be corrected is calculated, and the accompanying information corresponding to the correction pixel is updated, The image processing apparatus according to claim 1, wherein the processed data is output in raster scan order.
前記付随情報は、
白とび画素と、補正対象画素と、補正済み画素と、前記画素のいずれにも該当しないその他の画素との判別を可能とした情報であり、
前記補正処理実行回路は、
前記付随情報を識別し、識別結果に応じた処理を実行する構成であることを特徴とする請求項1に記載の画像処理装置。
The accompanying information is
It is information that enables discrimination between overexposed pixels, correction target pixels, corrected pixels, and other pixels that do not fall under any of the above pixels,
The correction processing execution circuit includes:
The image processing apparatus according to claim 1, wherein the image processing apparatus is configured to identify the accompanying information and execute processing according to the identification result.
前記画像処理装置において、
前記データ選択回路と、前記補正処理実行回路は、複数回の繰り返し処理が実行可能な構成を有することを特徴とする請求項1に記載の画像処理装置。
In the image processing apparatus,
The image processing apparatus according to claim 1, wherein the data selection circuit and the correction process execution circuit have a configuration capable of executing a plurality of repetitive processes.
JP2004207891A 2004-07-14 2004-07-14 Image processing device Expired - Fee Related JP4539202B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2004207891A JP4539202B2 (en) 2004-07-14 2004-07-14 Image processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2004207891A JP4539202B2 (en) 2004-07-14 2004-07-14 Image processing device

Publications (2)

Publication Number Publication Date
JP2006031296A true JP2006031296A (en) 2006-02-02
JP4539202B2 JP4539202B2 (en) 2010-09-08

Family

ID=35897579

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2004207891A Expired - Fee Related JP4539202B2 (en) 2004-07-14 2004-07-14 Image processing device

Country Status (1)

Country Link
JP (1) JP4539202B2 (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11331609A (en) * 1998-03-23 1999-11-30 Xerox Corp Method for detecting pixel where alias in raster-converted image data is removed
JP2000156784A (en) * 1998-11-18 2000-06-06 Fuji Xerox Co Ltd Image processor, and image processing method and storage medium thereof

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11331609A (en) * 1998-03-23 1999-11-30 Xerox Corp Method for detecting pixel where alias in raster-converted image data is removed
JP2000156784A (en) * 1998-11-18 2000-06-06 Fuji Xerox Co Ltd Image processor, and image processing method and storage medium thereof

Also Published As

Publication number Publication date
JP4539202B2 (en) 2010-09-08

Similar Documents

Publication Publication Date Title
CN107833238B (en) Maximum connected domain marking method, target tracking method and augmented reality/virtual reality device
US8233745B2 (en) Image processing apparatus and image processing method
US7986858B2 (en) Image processing apparatus and image processing method
EP2403235B1 (en) Image correction device and image correction method
US20180253641A1 (en) Arithmetic processing apparatus and control method therefor
US9264635B2 (en) Image processing apparatus, image processing method, and imaging apparatus
JP2007201530A (en) Pixel defect correction apparatus
JP4399462B2 (en) Image processing apparatus, method, and program
JP4649171B2 (en) Magnification Chromatic Aberration Correction Device, Magnification Chromatic Aberration Correction Method, and Magnification Chromatic Aberration Correction Program
JP4829802B2 (en) Image quality improving apparatus and image quality improving method
US9361674B2 (en) Image processing apparatus, image processing method, and storage medium
US10223031B2 (en) Memory control apparatus and memory control method
US8243095B2 (en) Rendering apparatus and method
GB2545649B (en) Artefact detection
JP4539202B2 (en) Image processing device
JP2009237650A (en) Image processor and imaging device
US9208546B2 (en) Image processing apparatus, method and imaging apparatus
JP4621944B2 (en) Image filter device, method and computer program
JP5906848B2 (en) Image correction apparatus, image correction method, and computer program for image correction
US10970817B2 (en) Image magnifying apparatus
JP4827137B2 (en) Resolution conversion processing method, image processing apparatus, image display apparatus, and program
KR100575444B1 (en) Apparatus for compensating defect pixel existing in image sensor and method thereof
JP6440465B2 (en) Image processing apparatus, image processing method, and program
CN111626935B (en) Pixel map scaling method, game content generation method and device
JP2010152456A (en) Image processor and image processing method and program using image processing method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20070530

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20100310

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20100316

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20100509

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: 20100601

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20100614

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130702

Year of fee payment: 3

LAPS Cancellation because of no payment of annual fees