JP2007013639A - Image processor and processing method - Google Patents

Image processor and processing method Download PDF

Info

Publication number
JP2007013639A
JP2007013639A JP2005192340A JP2005192340A JP2007013639A JP 2007013639 A JP2007013639 A JP 2007013639A JP 2005192340 A JP2005192340 A JP 2005192340A JP 2005192340 A JP2005192340 A JP 2005192340A JP 2007013639 A JP2007013639 A JP 2007013639A
Authority
JP
Japan
Prior art keywords
line
pixel
value
error
unit
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
JP2005192340A
Other languages
Japanese (ja)
Other versions
JP4501796B2 (en
Inventor
Noriko Sugimoto
典子 杉本
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.)
Brother Industries Ltd
Original Assignee
Brother Industries Ltd
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 Brother Industries Ltd filed Critical Brother Industries Ltd
Priority to JP2005192340A priority Critical patent/JP4501796B2/en
Priority to US11/476,575 priority patent/US7564590B2/en
Publication of JP2007013639A publication Critical patent/JP2007013639A/en
Application granted granted Critical
Publication of JP4501796B2 publication Critical patent/JP4501796B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To obtain a highly practical image processor by converting the image data of a primitive image into image data where the line of a pixel is interpolated and performing image processings. <P>SOLUTION: In a device and a method performing image processing by error diffusion method, more particularly, image data conversion processing, the conversion processing performs unit processing for one pixel [m, n] of a primitive image, compensates one pixel [2m, n-2] between the object line (2m-1 line) of the primitive image, in correspondence with that one pixel and performs unit processing for that one pixel, repeats these processing in the line direction, and repeats processing for one line sequentially for respective lines of the primitive image. Two conversion image values Z[2m-1, n] and Z[2m, n-2] are acquired for one primitive pixel data X'[m, n] by convenient processing. The primitive pixel data can be converted easily and quickly into image data interpolated by a line. <P>COPYRIGHT: (C)2007,JPO&INPIT

Description

本発明は、誤差拡散法に従う画像処理によって画像データを変換するための画像処理装置、および、画像処理方法に関する。   The present invention relates to an image processing apparatus and an image processing method for converting image data by image processing according to an error diffusion method.

誤差拡散法は、例えば、スキャナ等によって読み取られたある画像の画像データを、その画像をプリンタ等によって再現するための画像データに変換する際に用いられる手法であり、階調として表された画素値からなる原始画像データから、多値化(2値化を含む概念である)された画素値からなる変換画像データへの変換に対して適用され、良好なハーフトーン画像が再現可能な手法として、既に、広く用いられている。この誤差拡散法に従う画像処理は、例えば、下記特許文献に記載されている。
特開平6−284291号公報
The error diffusion method is a technique used when converting image data of an image read by a scanner or the like into image data for reproducing the image by a printer or the like. Pixels expressed as gradations As a technique that can be applied to the conversion from original image data consisting of values to converted image data consisting of pixel values that have been multi-valued (a concept that includes binarization), and that can reproduce a good halftone image Has already been widely used. Image processing according to this error diffusion method is described, for example, in the following patent document.
JP-A-6-284291

画像読取装置,画像形成装置等の作動の高速化,高精度化に伴い、画像データの変換処理は、常に、より高速に実行でき,より負担の小さいものであることが求められ、また、電子機器の低コスト化に伴い、その変換処理を実行する装置も、より低コストであることが望まれる。そのことは、上記誤差拡散法に従った画像処理,その画像処理を実行する装置についてもあてはまり、それらの画像処理,画像処理装置について種々の改良を施すことは、それらの処理,装置の実用性を向上させることに繋がるのである。そのような実情に鑑み、本発明は、実用性の高い画像処理装置,画像処理方法を提供することを課題とする。   As the operation of image reading devices, image forming devices, etc. increases in speed and accuracy, image data conversion processing is always required to be executed at a higher speed and less burdensome. Along with the cost reduction of equipment, it is desired that the apparatus that performs the conversion process is also lower in cost. This also applies to image processing in accordance with the error diffusion method described above and devices that execute the image processing, and various improvements to the image processing and image processing device can be applied to the practicality of the processing and device. It leads to improvement. In view of such circumstances, it is an object of the present invention to provide an image processing apparatus and an image processing method that are highly practical.

上記課題を解決するために、本発明の画像処理装置,画像処理方法は、誤差拡散法による画像処理、詳しくは、画像データの変換処理を実行する装置,方法であって、その変換処理が、原始画像の1画素についての単位処理が実行され、その1画素に対応して原始画像の画素のライン間に1の画素が補われるとともにその1の画素についての単位処理が実行され、それらの処理が、ライン方向に繰り返えされ、かつ、1ラインについての処理が、原始画像の各ラインについて順次繰り返し行なわれるような処理とされたことを特徴とする。   In order to solve the above problems, an image processing apparatus and an image processing method of the present invention are an image processing by an error diffusion method, more specifically, an apparatus and a method for executing a conversion process of image data, and the conversion process includes: Unit processing is performed for one pixel of the original image, and one pixel is supplemented between the pixel lines of the original image corresponding to the one pixel, and unit processing is performed for the one pixel. Is repeated in the line direction, and the process for one line is performed so as to be sequentially repeated for each line of the original image.

上記画像処理によれば、簡便に、原始画像の画像データを、画素のラインが補間された画像データに変換することができることから、その画像処理を実行する本発明の画像処理装置,画像処理方法は、実用性の高いものとなる。なお、本発明の画像処理装置,画像処理方法の具体的な構成および作用効果については、以下の〔発明の態様〕の項において詳しく説明する。   According to the above image processing, the image data of the original image can be easily converted into the image data in which the pixel lines are interpolated. Therefore, the image processing apparatus and the image processing method of the present invention for executing the image processing are performed. Is highly practical. The specific configuration and operational effects of the image processing apparatus and image processing method of the present invention will be described in detail in the following [Aspect of the Invention] section.

発明の態様Aspects of the Invention

以下に、本願において特許請求が可能と認識されている発明(以下、「請求可能発明」という場合がある)の態様をいくつか例示し、それらについて説明する。各態様は請求項と同様に、項に区分し、各項に番号を付し、必要に応じて他の項の番号を引用する形式で記載する。これは、あくまでも請求可能発明の理解を容易にするためであり、それらの発明を構成する構成要素の組み合わせを、以下の各項に記載されたものに限定する趣旨ではない。つまり、請求可能発明は、各項に付随する記載,実施例の記載等を参酌して解釈されるべきであり、その解釈に従う限りにおいて、各項の態様にさらに他の構成要素を付加した態様も、また、各項の態様から何某かの構成要素を削除した態様も、請求可能発明の一態様となり得るのである。   In the following, some aspects of the invention that can be claimed in the present application (hereinafter sometimes referred to as “claimable invention”) will be exemplified and described. As with the claims, each aspect is divided into sections, each section is numbered, and is described in a form that cites the numbers of other sections as necessary. This is merely for the purpose of facilitating the understanding of the claimable inventions, and is not intended to limit the combinations of the constituent elements constituting those inventions to those described in the following sections. In other words, the claimable invention should be construed in consideration of the description accompanying each section, the description of the embodiments, etc., and as long as the interpretation is followed, another aspect is added to the form of each section. In addition, an aspect in which some constituent elements are deleted from the aspect of each item can be an aspect of the claimable invention.

なお、下記(1)項および(2)項は、請求可能発明の態様ではなく、請求可能発明の前提となる構成要素を掲げた態様であり、それらの項のいずれかを引用する(11)項ないし(16)項の態様、および、(21)項ないし(40)項の態様が、並びに、(51)項の態様が、請求可能発明の種々の態様である。ちなみに、以下の各項において、(1)項を引用する(21)項が請求項1に相当し、(22)項が請求項2に、(23)項が請求項3に、(24)項が請求項4に、(26)項が請求項5に、(27)項ないし(29)項を合わせたものが請求項6に、(30)項が請求項7に、(32)項が請求項8に、(33)項が請求項9に、(34)項が請求項10に、(35)項ないし(36)項を合わせたものが請求項11に、(38)項と(39)項とを合わせたものが請求項12に、(38)項と(40)項とを合わせたものが請求項13に、それぞれ、相当する。また、(51)項が請求項14に相当する。   The following items (1) and (2) are not aspects of the claimable invention, but are aspects in which the constituent elements that are the premise of the claimable invention are listed, and any of these terms is cited (11) The aspects of the items (16) to (16), the aspects (21) to (40), and the aspect (51) are various aspects of the claimable invention. By the way, in each of the following terms, the term (21) that cites the term (1) corresponds to claim 1, the term (22) corresponds to claim 2, the term (23) corresponds to claim 3, and (24) The claim is the claim 4, the (26) is the claim 5, the (27) to (29) is combined with the claim 6, the (30) is the claim 7, the (32) is In claim 8, (33) in claim 9, (34) in claim 10, (35) to (36) in combination with claim 11, (38) and A combination of the (39) term corresponds to claim 12 and a combination of the (38) term and (40) term corresponds to claim 13. The (51) term corresponds to the fourteenth claim.

(1)あるマトリクスとして規定された複数の画素からなる原始画像の画像データを、誤差拡散法に従う処理によって、変換画像の画像データに変換するために用いられる画像処理装置であって、
前記原始画像の画像データを構成するところのその画像の複数の画素の各々の画素値を、原始画素値と、前記変換画像の画像データを構成するところのその画像の複数の画素の各々の画素値を、変換画素値と、誤差拡散法に従う1つの画素についての処理を単位処理と、それぞれ、定義した場合において、
前記マトリクスにおける画素のラインの1つである対象ライン上に存在する1つの画素である対象画素についての単位処理を実行し、その対象画素の原始画素値に基づいて、その対象画素の変換画素値および変換誤差値を取得する単位処理実行部を備え、
前記対象画素がライン方向の前方に向かって順次遷移させられつつ、前記単位処理実行部による単位処理が前記対象ラインについて繰り返されるところの1ライン処理が実行され、かつ、その対象ラインが、順次遷移させられつつ、その1ライン処理が繰り返されることによって、前記原始画像の画像データを前記変換画像の画像データに変換する画像処理装置。
(1) An image processing apparatus used for converting image data of a source image composed of a plurality of pixels defined as a certain matrix into image data of a converted image by processing according to an error diffusion method,
The pixel value of each of the plurality of pixels of the image constituting the image data of the original image, the pixel value of each of the plurality of pixels of the image constituting the image data of the original image and the converted image When the value is defined as a converted pixel value and a process for one pixel according to the error diffusion method as a unit process,
Unit processing is performed on a target pixel that is one pixel existing on a target line that is one of the pixel lines in the matrix, and the converted pixel value of the target pixel is based on the source pixel value of the target pixel. And a unit processing execution unit for obtaining a conversion error value,
While the target pixel is sequentially shifted toward the front in the line direction, one-line processing in which unit processing by the unit processing execution unit is repeated for the target line is executed, and the target line is sequentially shifted. An image processing apparatus that converts the image data of the original image into the image data of the converted image by repeating the one-line process while being performed.

本項に記載の態様は、先に説明したように、請求可能発明の前提となる態様である。本項にいう「誤差拡散法に従う処理」は、その具体的な手法が特に限定されるものではないが、原始画像を構成する1の画像である「対象画素」(「注目画素」と呼ぶこともできる)ごとに、一連の処理である上記「単位処理」が実行されて行われればよく、その単位処理として、例えば、対象画素の近傍(周辺)に存在する既に単位処理が行われた画素の多値化による誤差を平均した平均誤差に基づいて、その対象画素の画素値を補正し、その補正した画素値を、多値化のために設定された閾値と比較することで、対象画素の多値化された上記「変換画素値」を決定し、さらに、その変換画素値と上記補正した画素値とから、その対象画素の上記「変換誤差値」を算出するといった処理を採用することができる。そして、上記単位処理が、上記のように繰り返されて、変換元の画像データである上記「原始画像の画像データ」(以下、「原始画像データ」という場合がある)が、変換処理後の画像データである上記「変換画像の画像データ」(以下、「変換画像データ」という場合がある)に変換されるような処理とすればよい。   The aspect described in this section is a precondition of the claimable invention as described above. Although the specific method of “processing according to the error diffusion method” in this section is not particularly limited, it is called “target pixel” (referred to as “target pixel”) which is one image constituting the original image. It is only necessary that the above “unit processing”, which is a series of processes, is executed every time, and as the unit processing, for example, a pixel that has already been subjected to unit processing existing in the vicinity (periphery) of the target pixel. The pixel value of the target pixel is corrected based on the average error obtained by averaging the errors caused by the multi-value conversion, and the corrected pixel value is compared with a threshold value set for multi-value conversion. A process of determining the “converted pixel value” converted into a multi-value and calculating the “converted error value” of the target pixel from the converted pixel value and the corrected pixel value Can do. Then, the unit processing is repeated as described above, and the above-mentioned “original image image data” (hereinafter, also referred to as “original image data”), which is the original image data, is converted into an image after conversion processing. The process may be such that the data is converted to the above-described “converted image image data” (hereinafter also referred to as “converted image data”).

本項の態様おいて、上記「原始画素値」は、例えば、スキャナ,デジタルカメラ等によって読み取られた画素ごとの光学的特性値に基づいて定まる値であって、濃度等のその画素の特性を階調として表す値であればよく、例えば、0〜255といった具合に離散的な値であってもよく、連続的な値であってもよい。また、それらの画素値を平滑化,エッジ強調化等のフィルタ処理を実行した後の画素値であってもよい。一方、上記「変換画素値」は、原始画素値が上記単位処理によって変換された値であり、例えば、2値に多値化された値であってもよく、3値以上に多値化された値であってもよい。なお、上記「ライン方向」とは、上記原始画像,変換画像が互いに交差する2方向にマトリクス状に画素が配列されたと考えた場合におけるその2方向のうちの一方、つまり、マトリクスを、行,列で規定した場合において、行と列との一方を構成する画素の並ぶ方向である。本項の態様では、平たく言えば、ライン方向に走査し、1つの画素のラインについてのそのライン方向の走査を完了させつつ、ライン方向に交差する方向に走査されて、画像処理が行われる。したがって、上記ライン方向を、主走査方向と呼ぶことも可能であり、ライン方向に交差する方向(以下、「コラム方向」という場合がある)を副走査方向と呼ぶことも可能である。ちなみに、ライン方向,コラム方向における「前方」は、それぞれ、単位処理,上記1ライン処理が進行する向きを意味し、「後方」は、それらの処理が進行する向きとは反対の向きを意味するものとする。   In the aspect of this section, the “primary pixel value” is a value determined on the basis of an optical characteristic value for each pixel read by a scanner, a digital camera, or the like. Any value can be used as long as it is expressed as a gradation, for example, a discrete value such as 0 to 255 or a continuous value. Moreover, the pixel value after performing filter processing, such as smoothing and edge emphasis, on those pixel values may be used. On the other hand, the “converted pixel value” is a value obtained by converting the original pixel value by the unit processing, and may be, for example, a value that is multi-valued into two values or multi-valued into three or more values. It may be a value. The “line direction” refers to one of the two directions when the pixels are arranged in a matrix in two directions in which the original image and the converted image intersect each other, that is, a matrix, When defined by columns, this is the direction in which the pixels constituting one of the rows and columns are arranged. In the aspect of this section, in a word, scanning is performed in the line direction, and scanning of the line of one pixel in the direction of the line is completed, and scanning is performed in a direction crossing the line direction, and image processing is performed. Therefore, the line direction can also be referred to as a main scanning direction, and a direction intersecting the line direction (hereinafter also referred to as “column direction”) can also be referred to as a sub-scanning direction. Incidentally, “front” in the line direction and the column direction means the direction in which the unit processing and the one-line processing proceed, respectively, and “backward” means the direction opposite to the direction in which those processing proceeds. Shall.

本項の態様の画像処理は、作成された後の原始画像データを変換画像データに変換する場合に実行されるものであってもよい。つまり、例えば、ファイル化された原始画像データを、バッチ処理的に、変換画像データに変換するために実行するものであってもよい。また、作成されつつある原始画像データを、順次、変換画像データに変換する場合に実行されるものであってもよい。つまり、例えば、スキャナ等で読み取りつつ原始画像データが作成される過程において、その原始画像データのうちの一部の画素ラインについての画像データが作成されるごとに、逐次その画像データを変換するといった処理(以下、「逐次的処理」という場合がある)、すなわち、ラインスキャナ等での読み取りと並行して実行されるようなものであってもよい。なお、その逐次的処理の場合、例えば、スキャナの受光素子が並ぶ方向に対応する方向を主走査方向とし、スキャナヘッドの移動方向に対応する方向を、上記副走査方向とすることが可能である。   The image processing according to the aspect of this section may be executed when the original image data after creation is converted into converted image data. That is, for example, it may be executed to convert the original image data filed into converted image data in a batch process. Further, it may be executed when the original image data being created is sequentially converted into converted image data. That is, for example, in the process in which the original image data is created while being read by a scanner or the like, the image data is sequentially converted each time image data for some pixel lines of the original image data is created. It may be executed in parallel with processing (hereinafter also referred to as “sequential processing”), that is, reading with a line scanner or the like. In the case of the sequential processing, for example, the direction corresponding to the direction in which the light receiving elements of the scanner are arranged can be set as the main scanning direction, and the direction corresponding to the moving direction of the scanner head can be set as the sub scanning direction. .

本項の態様の画像処理装置は、ハード的にいえば、専用の電子回路,電気回路として構成されるものであってもよく、また、コンピュータを主体として構成されるものであってもよい。コンピュータを主体とするものである場合、専用の画像処理プログラムがそのコンピュータによって実行されることで上記画像処理が実現するような構成のものとすることが可能である。   In terms of hardware, the image processing apparatus according to the aspect of this section may be configured as a dedicated electronic circuit or electric circuit, or may be configured mainly by a computer. When the computer is the main component, the image processing can be realized by executing a dedicated image processing program by the computer.

(2)それぞれが前記マトリクスにおいて前記対象画素の近傍に設定されてその対象画素の変換画素値を取得するために自身の変換誤差値が利用される複数の画素を、複数の誤差利用画素と定義した場合において、
前記単位処理実行部が、
前回の1ライン処理での前記対象ライン上において互いに連続するものとして設定された複数の画素であって前記複数の誤差利用画素の少なくとも一部である複数の前ライン上誤差利用画素の各々の変換誤差値に基づいて、前記複数の誤差利用画素の平均誤差値を算出する平均誤差算出部を有し、
その平均誤差算出部によって算出された前記平均誤差値に基づいて前記対象画素の原始画素値を補正し、その補正によって得られた画素値に基づいて、その対象画素の変換画素値を取得するように構成された(1)項に記載の画像処理装置。
(2) A plurality of pixels, each of which is set in the vicinity of the target pixel in the matrix and whose conversion error value is used to obtain the conversion pixel value of the target pixel, is defined as a plurality of error use pixels. If
The unit processing execution unit
Conversion of each of a plurality of pixels on the previous line that are a plurality of pixels set to be continuous with each other on the target line in the previous one-line process and are at least part of the plurality of pixels using the error An average error calculation unit that calculates an average error value of the plurality of error use pixels based on an error value;
The original pixel value of the target pixel is corrected based on the average error value calculated by the average error calculation unit, and the converted pixel value of the target pixel is acquired based on the pixel value obtained by the correction. The image processing apparatus according to item (1), which is configured in (1).

誤差拡散法に従う画像処理では、対象画素の変換画素値を決定する場合に、その対象画素の近傍の画素、つまり、周辺の画素であって、既に単位処理が実行された画素の変換誤差値を平均化した平均誤差値が利用される。本項の態様の画像処理装置は、その平均誤差値を算出する機能部を備えた態様である。上記「誤差利用画素」は、上記「前ライン上誤差利用画素」、つまり、前回の1ライン処理が実行された画素のライン(以下、「前ライン」という場合がある)上の複数の画素のみによって構成されるものに限定されない。例えば、後に説明するように、現在1ライン処理が実行されている画素のライン(以下、「当該ライン」という場合がある)上の1以上の画素をも含んで構成されるものであってもよい。また、前ラインより前に1ライン処理が実行された1以上の画素のライン上の1以上の画素をも含んで構成されるものであってもよい。なお、本項の態様における「平均誤差値」は、誤差利用画素の各々の画素値に対して重み付けを施した平均値を意味する。この重み付けは、上記誤差利用画素の構成に応じて、適切なものを採用することができる。ちなみに、各画素値についての重み付けを均一なものとすることによって、単純平均化された平均誤差値とすることも可能である。   In the image processing according to the error diffusion method, when determining the conversion pixel value of the target pixel, the conversion error value of a pixel in the vicinity of the target pixel, that is, a peripheral pixel that has already been subjected to unit processing is calculated. An averaged average error value is used. The image processing apparatus according to the aspect of this section is an aspect including a functional unit that calculates the average error value. The above-mentioned “error use pixel” is the above “previous line error use pixel”, that is, only a plurality of pixels on a line of pixels on which the previous one-line processing has been executed (hereinafter, also referred to as “previous line”). It is not limited to what is comprised by. For example, as will be described later, it may be configured to include one or more pixels on a line of pixels currently being subjected to one-line processing (hereinafter also referred to as “the line”). Good. Further, it may be configured to include one or more pixels on a line of one or more pixels that have been subjected to one line processing before the previous line. The “average error value” in the aspect of this section means an average value obtained by weighting each pixel value of the error utilization pixels. An appropriate weight can be adopted according to the configuration of the error utilization pixel. Incidentally, it is also possible to obtain a simple averaged average error value by making the weighting for each pixel value uniform.

(11)前記複数の前ライン上誤差利用画素のうちのライン方向において最前に位置するものを前ライン上最前誤差利用画素と定義した場合において、
前記平均誤差算出部が、
ライン方向に仮想的に配置され、前記複数の前ライン上誤差利用画素の各々に対応して設定された重み付け係数の各々と前記前ライン上最前誤差利用画素の変換誤差値との乗算処理を実行するところの前記複数の前ライン上誤差利用画素の数に相当する数の複数の前ライン用乗算部と、
それら複数の前ライン用乗算部の各々に対応して設けられ、それぞれが、自身の直近の後方側に配置されたものが存在する場合にはそのものの記憶値と前記複数の前ライン用乗算部のうちの自身に対応するものによる乗算処理の結果値とを加算して記憶し、自身の後方側に配置されたものが存在しない場合には前記複数の前ライン用乗算部のうちの自身に対応するものによる乗算処理の結果値を記憶するところの前記複数の前ライン上誤差利用画素の数に相当する数の複数の前ライン用加算記憶部とを有し、
それら複数の前ライン用加算記憶部の各々による処理が前方に配置されたものによる処理から順次実行されるように構成されるとともに、それら複数の前ライン用加算記憶部のうちの最前のものの記憶値に基づいて、前記平均誤差値を算出するように構成された(2)項に記載の画像処理装置。
(11) In the case where the foremost error use pixel on the previous line is defined as the foremost error use pixel on the previous line among the plurality of previous line error use pixels,
The average error calculator is
Virtually arranged in the line direction, and executes a multiplication process of each of the weighting coefficients set corresponding to each of the plurality of previous line error use pixels and the conversion error value of the foremost error use pixel on the previous line. A plurality of front line multipliers corresponding to the number of pixels on the previous line error-use,
When there are those arranged on the rear side nearest to each of the plurality of front line multipliers, the stored value of each and the plurality of front line multipliers are provided. And adding and storing the result value of the multiplication process by the one corresponding to itself, and when there is no one arranged on the rear side of itself, it is stored in the plurality of front line multiplication units. A plurality of previous-line addition storage units corresponding to the number of the previous-line error-use pixels in which the result values of multiplication processing by corresponding ones are stored;
The processing by each of the plurality of previous line addition storage units is configured to be executed sequentially from the processing by the one arranged in front, and the storage of the foremost one of the plurality of previous line addition storage units is stored. The image processing device according to item (2), configured to calculate the average error value based on a value.

本項に記載の態様は、平均誤差値の算出処理の改善を目的とする態様である。従来の画像処理装置では、対象画素についての単位処理ごとに、上記前ライン上誤差利用画素の各々の変換誤差値と、それらの画素の各々について設定された重み付け係数とを掛け合わせ、その掛け合わせた各々の値を合計することによって、平均誤差値の少なくとも一部を算出している。したがって、当該画像処理装置が、電子回路,電気回路を主体として構成されるようなものの場合、単位処理ごとに、変換誤差値と重み付け係数とを掛け合わせたものを、一旦記憶して、その記憶したものを、順次、加算する必要があるため、それら乗算の結果を記憶するの複数のレジスタに加え、加算用としてのレジスタをも必要とされ、その分回路構成が煩雑となり、また、平均誤差値の算出処理のためのクロック数が、少なくとも前ライン上誤差利用画素の数に相当するクロック数必要となるため、処理時間が長くかかることになる。それに対し、本項に記載の態様では、前ライン誤差利用画素のうちの1つのものの変換誤差値と、前ライン誤差利用画素の数設定された重み付け係数の各々とを掛け合わせたものを、単位処理の進行に伴って累積的に加算するようなレジスタ構成することができるため、レジスタの数を少なくして回路構成を単純化することが可能となり、また、平均画素値の算出処理に要するクロック数を、極端に言えば、1クロックとすることも可能となる。   The mode described in this section is a mode aimed at improving the calculation process of the average error value. In the conventional image processing apparatus, for each unit process for the target pixel, the conversion error value of each of the pixels on the previous line error is multiplied by the weighting coefficient set for each of the pixels, and the multiplication is performed. At least a part of the average error value is calculated by adding the respective values. Therefore, in the case where the image processing apparatus is composed mainly of an electronic circuit and an electric circuit, the unit obtained by multiplying the conversion error value and the weighting coefficient for each unit process is temporarily stored and stored. In addition to a plurality of registers for storing the results of the multiplication, a register for addition is also required, which complicates the circuit configuration and average error. Since the number of clocks for the value calculation process needs to be at least the number of clocks corresponding to the number of pixels on the previous line error, the processing time is long. On the other hand, in the aspect described in this section, a unit obtained by multiplying the conversion error value of one of the previous line error using pixels by each of the weighting coefficients set for the number of the previous line error using pixels is a unit. Since it is possible to configure a register that cumulatively adds as the processing proceeds, it is possible to simplify the circuit configuration by reducing the number of registers, and the clock required for calculating the average pixel value In extreme terms, the number can be one clock.

なお、本項にいう「ライン方向に仮想的に配置され」とは、上記前ライン用乗算部が実際にその方向に配置されていることを意味するのではなく、それら前ライン用乗算部が、前ライン上誤差利用画素の並びに対応していることを意味し、上記乗算部と上記前ライン上誤差利用画素の各々について設定された重み付け係数との対応関係,どの乗算部による乗算処理の結果値をどの前ライン用加算記憶部の記憶値と加算してどの前ライン用加算記憶部に記憶するかといった対応関係を規定するために、便法的に導入した概念である。ちなみに、本項の対応では、前ライン用乗算部の各々による乗算処理の結果値は、単位処理の進行に伴い、前ライン用加算記憶部によって、仮想的に配置された方向における後方側から前方側に向かって、換言すれば、対象画素が遷移する方向と同じ方向に向かって、加算されることになる。   Note that “virtually arranged in the line direction” in this section does not mean that the preceding line multiplying units are actually arranged in that direction, but the preceding line multiplying units are not arranged. Means that the pixels on the previous line error use correspond to each other, the correspondence between the multiplication unit and the weighting coefficient set for each of the previous line error use pixels, and the result of the multiplication process by which multiplication unit This is a concept introduced in terms of convenience in order to define a correspondence relationship in which the value is added to the stored value of the previous line addition storage unit and stored in which previous line addition storage unit. By the way, in the correspondence of this section, the result value of the multiplication processing by each of the front line multiplication units is forwarded from the rear side in the virtually arranged direction by the front line addition storage unit as the unit processing proceeds. In other words, it is added in the same direction as the direction of transition of the target pixel.

(12)前記平均誤差算出部が、
さらに、前記対象ライン上において前記対象画素とライン方向の後方側において連続するものとして設定された1以上の画素であって前記複数の誤差利用画素の一部である1以上の当該ライン上誤差利用画素の各々の変換誤差値に基づいて、前記平均誤差値を算出するものとされた(11)項に記載の画像処理装置。
(12) The average error calculation unit
Further, the one or more pixels set to be continuous with the target pixel on the rear side in the line direction on the target line, and one or more on-line error use that is a part of the plurality of error use pixels The image processing apparatus according to item (11), wherein the average error value is calculated based on the conversion error value of each pixel.

(13)前記平均誤差算出部が、
ライン方向に仮想的に配置され、前記1以上の当該ライン上誤差利用画素の各々に対応して設定された重み付け係数の各々と前記対象画素の直近の後方側に位置する画素の変換誤差値との乗算処理を実行するところの前記1以上の当該ライン上誤差利用画素の数に相当する数の1以上の当該ライン用乗算部と、
それら1以上の当該ライン用乗算部の各々に対応して設けられ、それぞれが、自身の直近の後方側に配置されたものが存在する場合にはそのものの記憶値と前記1以上の当該ライン用乗算部のうちの自身に対応するものによる乗算処理の結果値とを加算して記憶し、自身の後方側に配置されたものが存在しない場合には前記1以上の当該ライン乗算部のうちの自身に対応するものによる乗算処理の結果値を記憶するところの前記1以上の当該ライン上誤差利用画素の数に相当する数の1以上の当該ライン用加算記憶部とを有し、
それら1以上の当該ライン用加算記憶部の各々による処理が前方に配置されたものによる処理から順次実行されるように構成されるとともに、さらにそれら1以上の当該ライン用加算記憶部のうちの最前のものの記憶値に基づいて、前記平均誤差値を算出するように構成された(12)項に記載の画像処理装置。
(13) The average error calculation unit
Each of the weighting coefficients that are virtually arranged in the line direction and are set corresponding to each of the one or more on-line error use pixels, and the conversion error value of the pixel located immediately behind the target pixel, A number of one or more corresponding line multiplying units corresponding to the number of the one or more on-line error utilizing pixels for executing the multiplication processing of
If there is one that is arranged corresponding to each of the one or more multiplication units for the line, and each of them is arranged in the immediate rear side, the stored value and the one or more for the line The result value of the multiplication process by the one corresponding to itself among the multiplication units is added and stored, and when there is no one arranged behind the multiplication unit, one of the one or more corresponding line multiplication units A number of one or more addition storage units for the line corresponding to the number of the on-line error utilization pixels of one or more of which stores the result value of the multiplication process by the one corresponding to itself,
The processing by each of the one or more line addition storage units is configured to be executed sequentially from the processing by the one arranged in front, and the forefront of the one or more line addition storage units. The image processing device according to item (12), which is configured to calculate the average error value based on a stored value.

上記2つの項に記載の態様は、現在1ライン処理が実行されている画素のラインである当該ライン上においても誤差利用画素が設定されている態様である。そして、それら2つの項における後者は、当該ライン上誤差利用画素に対しても、上述した前ライン上誤差利用画素における算出処理と同様の処理を実行する態様とされており、上述の算出処理が実行される場合と同様のメリットを、当該ライン上誤差利用画素についての処理に対して有することとなる。   The modes described in the above two sections are modes in which error-utilizing pixels are set on the line that is the pixel line for which one-line processing is currently being performed. The latter in these two terms is a mode in which the same processing as the above-described calculation processing for the on-line error use pixel is performed on the on-line error use pixel, and the above calculation processing is performed. The same merit as in the case of being executed is obtained for the processing for the on-line error utilization pixel.

(14)前記平均誤差算出部が、前記複数の前ライン用加算記憶部のうちの最前のものの記憶値と、前記1以上の当該ライン用加算記憶部のうちの最前のものの記憶値との和を、前記平均誤差値として算出するように構成された(13)項に記載の画像処理装置。   (14) The average error calculation unit sums the stored value of the foremost one of the plurality of previous line addition storage units and the stored value of the foremost one of the one or more line addition storage units. The image processing apparatus according to item (13), wherein the image processing apparatus is configured to calculate the average error value as the average error value.

本項に記載の態様は、誤差利用画素が、前ライン上誤差利用画素,当該ライン上誤差利用画素のみから構成された場合に有効な態様である。   The mode described in this section is an effective mode in the case where the error use pixel is composed of only the previous line error use pixel and the on-line error use pixel.

(15)当該画像処理装置が、前記単位処理実行部による単位処理の実行ごとに、前記前ライン上最前誤差利用画素となる1つの画素の変換誤差値が入力されるものとされた(11)項ないし(14)項のいずれかに記載の画像処理装置。   (15) Each time the unit processing is executed by the unit processing execution unit, the image processing apparatus receives a conversion error value of one pixel that becomes the foremost error use pixel on the previous line (11) Item 14. The image processing device according to any one of Items 14 to 14.

先に説明した従来の画像処理装置では、対象画素についての単位処理ごとに、上記前ライン上誤差利用画素の各々の変換誤差値と重み付け係数とが掛け合わされる。したがって、例えば、既に単位処理が完了した前ラインにおける画素の変換誤差値が、当該画像処理装置の外部から入力されるような場合には、複数の画素についての変換誤差値を入力する必要があるため、その入力処理が煩雑であり、また、そのことが、画像処理の速度の向上を阻害する要因となっている。それに対し、前ライン上誤差利用画素のうち最前の画素の変換画素値のみが重み付け係数と掛け合わされる上述の態様では、単位処理ごとに、その最前の画素の変換画素値のみを入力すればよいことになる。本項に記載の態様は、そのことに鑑みた態様であり、本項の態様によれば、変換誤差値の入力処理を単純化することが可能であり、そのことによって当該画像処理の高速化が可能となる。   In the conventional image processing apparatus described above, the conversion error value of each of the previous on-line error utilization pixels is multiplied by the weighting coefficient for each unit process for the target pixel. Therefore, for example, when the conversion error value of the pixel in the previous line where the unit processing has already been completed is input from the outside of the image processing apparatus, it is necessary to input the conversion error value for a plurality of pixels. Therefore, the input processing is complicated, and this is a factor that hinders improvement in the speed of image processing. On the other hand, in the above-described mode in which only the converted pixel value of the foremost pixel on the previous line is multiplied by the weighting coefficient, only the converted pixel value of the foremost pixel needs to be input for each unit process. It will be. The aspect described in this section is an aspect in view of that, and according to the aspect of this section, it is possible to simplify the input process of the conversion error value, thereby speeding up the image processing. Is possible.

(16)当該画像処理装置が、前記単位処理実行部による単位処理の実行ごとに、前記対象画素の変換誤差値が出力されるものとされた(15)項に記載の画像処理装置。   (16) The image processing device according to (15), wherein the conversion error value of the target pixel is output each time the unit processing is executed by the unit processing execution unit.

単位処理が完了した画素の変換誤差値は、次の1ライン処理における前ライン上誤差利用画素となる。本項に記載の態様は、そのことに鑑みて、単位処理ごとに対象画像の変換誤差値を出力する態様である。変換画素値が当該画像処理装置の外部に設けられた記憶手段に記憶されるような場合、本項の態様では、単位処理ごとに、1の画素の変換誤差値が入力されるとともに、1つの画素の変換誤差値が出力されることになり、変換誤差値の入出力処理が簡素化されたものとなる。   The conversion error value of the pixel for which the unit processing has been completed becomes the error utilization pixel on the previous line in the next one-line processing. In view of this, the aspect described in this section is an aspect in which the conversion error value of the target image is output for each unit process. When the converted pixel value is stored in a storage unit provided outside the image processing apparatus, in the aspect of this section, a conversion error value of one pixel is input for each unit process, and one The conversion error value of the pixel is output, and the input / output processing of the conversion error value is simplified.

(21)当該画像処理装置が、
前記原始画像の画像データを、前記マトリクスであるその原始画像のマトリクスのラインの間に画素を補いつつ、そのマトリクスが画素のラインによって補間された別のマトリクスとして規定された複数の画素からなる前記変換画像の画像データに変換するために用いられるものであり、
前記原始画像の画素のマトリクスにおける画素のラインであって前記変換画像の画素のマトリクスにおいても存置される画素のラインの各々を、原始ラインと、その原始ラインに対応して前記原始画像の画素のマトリクスを補間するための画素のラインを、補間ラインと、それぞれ、定義した場合において、
原始ラインの1つを前記対象ラインとし、その対象ライン上に存在する1つの画素である第1対象画素を前記対象画素として、その第1対象画素についての単位処理を実行し、その第1対象画素の原始画素値に基づいて、その第1対象画素の変換画素値および変換誤差値を取得するところの前記単位処理実行部としての第1単位処理実行部と、
その第1単位処理実行部によって今回以前に実行された1の単位処理において前記第1対象画素とされた今回以前第1対象画素の原始画素値を、前記対象ラインに対応する補間ライン上において前記第1対象画素と対応付けられた第2対象画素の画素値として、その画素値に基づき、前記第1単位処理実行部によって取得された前記第1対象画素の変換誤差値を利用しつつ、前記第2対象画素についての単位処理を実行し、その第2対象画素の変換画素値を取得する第2単位処理実行部とを備え、
前記第1対象画素および前記第2対象画素がライン方向の前方に向かって順次遷移させられつつ、前記第1単位処理実行部による単位処理と前記第2単位処理実行部による単位処理とがそれぞれ前記対象ラインと前記補間ラインとについて繰り返されるところの1ライン処理が実行されるように構成された(1)項に記載の画像処理装置。
(21) The image processing apparatus is
The image data of the original image is composed of a plurality of pixels defined as another matrix interpolated by pixel lines while supplementing pixels between the matrix lines of the original image, which is the matrix. It is used to convert to converted image data,
Each line of pixels in the matrix of pixels of the source image that is also present in the matrix of pixels of the converted image is represented by a source line and a pixel of the source image corresponding to the source line. In the case where the pixel line for interpolating the matrix is defined as the interpolation line,
One source line is set as the target line, a first target pixel that is one pixel existing on the target line is set as the target pixel, and unit processing is performed on the first target pixel, and the first target pixel is executed. A first unit processing execution unit as the unit processing execution unit for obtaining a converted pixel value and a conversion error value of the first target pixel based on a primitive pixel value of the pixel;
The original pixel value of the first target pixel before this time, which is set as the first target pixel in one unit processing executed before this time by the first unit processing execution unit, on the interpolation line corresponding to the target line, While using the conversion error value of the first target pixel acquired by the first unit processing execution unit based on the pixel value as the pixel value of the second target pixel associated with the first target pixel, A second unit processing execution unit that executes unit processing for the second target pixel and acquires a converted pixel value of the second target pixel;
The unit processing by the first unit processing execution unit and the unit processing by the second unit processing execution unit are respectively performed while the first target pixel and the second target pixel are sequentially shifted toward the front in the line direction. The image processing apparatus according to (1), wherein the one-line process is repeated for the target line and the interpolation line.

従来、前述の副走査方向において画素のラインが補間された変換画像を作成する場合、まず、原始画像のライン間に画素のラインを補間した別の原始画像(以下、「補間原始画像」という場合がある)を作成し、その補間原始画像に対して誤差拡散法に従う画像処理を実行することで、その変換画像が作成される。このような従来の処理では、例えば、バッチ的な処理を行う場合、補間原始画像を記憶しておくために大きな容量のメモリを必要とすることになる。また、ラインスキャナ等による画像データの読み取りと並行して行う等の前述の逐次的処理を行う場合でも、例えば、原始画像に対して平滑化等の上述したフィルタ処理がなされるような場合には、1の画素のフィルタ処理ごとに複数の画素ラインについての画素値にアクセスしなければならない等の事情から、フィルタ処理を行いつつ補間原始画像を作成する処理を行うことの負担が大きく、その処理に時間がかかることで、当該画像処理を高速に行うことが困難である。本項に記載の態様は、そのような実情に鑑み、副走査方向にライン補間された変換画像を簡便に作成可能とすることを、1つの目的とするものである。   Conventionally, when creating a converted image in which pixel lines are interpolated in the sub-scanning direction described above, first, another original image obtained by interpolating pixel lines between the lines of the original image (hereinafter referred to as “interpolated source image”) Is created, and the converted image is created by executing image processing according to the error diffusion method for the interpolated original image. In such conventional processing, for example, when batch processing is performed, a large-capacity memory is required to store the interpolation original image. Further, even when the above-described sequential processing such as reading in parallel with reading of image data by a line scanner or the like is performed, for example, when the above-described filter processing such as smoothing is performed on the original image. Due to the fact that the pixel values for a plurality of pixel lines must be accessed every time one pixel is filtered, the burden of performing the process of creating the interpolation source image while performing the filtering process is large. Therefore, it is difficult to perform the image processing at a high speed. In view of such a situation, the aspect described in this section has an object to make it possible to easily create a converted image that is line-interpolated in the sub-scanning direction.

本項の態様の画像処理装置は、平たく言えば、上述の単位処理を実行する単位処理実行部を2つ有するものとし、2つの単位処理実行部の一方である第1単位処理実行部が、原始画像における対象ライン上の1つの画素についての単位処理を実行し、2つの単位処理実行部の他方である第2単位処理実行部が、第1単位処理実行部による処理における原始画素値を補間ライン上の1つの画素の原始画素値とみなして、その1つの画素についての単位処理を実行するように構成されている。したがって、2つの単位処理実行部の一連の単位処理によって、対象ライン上の1つの画素,補間ライン上の1つの画素についての変換画像値が得られることとなり、本項の態様の画像処理装置によれば、簡便に、ライン補間を行いつつ誤差拡散法に従う画像処理を行うことが可能となる。   In short, the image processing apparatus according to the aspect of this section includes two unit processing execution units that execute the unit processing described above, and the first unit processing execution unit that is one of the two unit processing execution units includes: A unit process for one pixel on the target line in the source image is executed, and the second unit process execution unit, which is the other of the two unit process execution units, interpolates the source pixel value in the process by the first unit process execution unit A unit process is executed for one pixel, assuming that it is the original pixel value of one pixel on the line. Therefore, a converted image value for one pixel on the target line and one pixel on the interpolation line is obtained by a series of unit processes of the two unit processing execution units. Accordingly, it is possible to easily perform image processing according to the error diffusion method while performing line interpolation.

本項の態様における「今回以前第1対象画素」は、第1単位処理実行部において今回の単位処理の対象とされたものであってもよく、また、前回以前の単位処理の対象とされたものであってもよい。前者の場合は、第1単位処理実行部と第2単位処理実行部との一連の処理によって、同じコラムの2つの画素、つまり、ライン方向における画素の並びにおける同じ順位にある2つの画素の原始画素値が、変換画素値に変換されることになる。それに対して、後者の場合には、補間ライン上の対象画素は、対象ライン上の対象画素に対して、ライン方向の後方側に位置する画素となる。つまり、補間ライン上の画素の原始画素値は、対象ライン上の画素の画素値に対して遅れて変換されるのである。   The “first target pixel before this time” in the aspect of this section may be the target of the current unit processing in the first unit processing execution unit, and is the target of the unit processing before the previous time. It may be a thing. In the former case, by a series of processes of the first unit process execution unit and the second unit process execution unit, two pixels in the same column, that is, two pixels in the same order in the line of pixels in the line direction are primitive. The pixel value is converted into a converted pixel value. On the other hand, in the latter case, the target pixel on the interpolation line is a pixel located on the rear side in the line direction with respect to the target pixel on the target line. That is, the primitive pixel value of the pixel on the interpolation line is converted with a delay from the pixel value of the pixel on the target line.

なお、本項は、1つの補間ラインによる画素のラインの補間を行う表現とされているが、2以上の補間ラインによる補間を行う態様を排除するものではない。つまり、例えば、主走査方向であるライン方向の画素数(コラム数に相当する)が600ピクセルであり、副走査方向であるコラム方向の画素数(ライン数に相当する)が300ピクセルであるところの(以下、「600×300」という場合がある)原始画像データを、600×600の変換画像データに変換する場合だけでなく、600×600,600×900・・・といった変換画像データに変換する場合にも適用することが可能である。具体的には、例えば、上記対象ライン上において、今回以前に第1対象画素とされた原始画素を、すなわち、上記補間ライン上において、今回以前に第2対象画素とされた画素を第3対象画素として、その画素値に基づいて、その画素の変換画素値を取得する第3単位処理実行部を、さらに備えるような態様とすることが可能である。その態様によれば、上記補間ラインとは別のさらなる補間ラインを補いつつ、誤差拡散法に従う画像処理が実行可能である。   In addition, although this term is an expression for performing interpolation of pixel lines by one interpolation line, it does not exclude an aspect of performing interpolation by two or more interpolation lines. That is, for example, the number of pixels in the line direction (corresponding to the number of columns) in the main scanning direction is 600 pixels, and the number of pixels in the column direction (corresponding to the number of lines) in the sub-scanning direction is 300 pixels. The original image data (hereinafter sometimes referred to as “600 × 300”) is converted not only to 600 × 600 converted image data but also to converted image data such as 600 × 600, 600 × 900. It is also possible to apply to this. Specifically, for example, on the target line, a primitive pixel that was set as the first target pixel before this time, that is, a pixel that was set as the second target pixel before this time on the interpolation line is set as the third target. As a pixel, it is possible to adopt a mode in which a third unit processing execution unit that acquires the converted pixel value of the pixel based on the pixel value is further provided. According to this aspect, it is possible to perform image processing according to the error diffusion method while supplementing a further interpolation line different from the interpolation line.

(22)当該画像処理装置が、前記第1単位処理実行部による単位処理の実行ごとに、前記第1対象画素となる1つの画素の原始画素値が入力され、その単位処理の実行および前記第2単位処理実行部による単位処理の実行ごとに、前記第1対象画素および前記第2対象画素の各々の変換画素値が出力されるものとされた(21)項に記載の画像処理装置。   (22) Each time the unit processing is executed by the first unit processing execution unit, the image processing apparatus receives a source pixel value of one pixel serving as the first target pixel, and executes the unit processing and the first The image processing device according to item (21), wherein each time the unit processing is performed by the two unit processing execution unit, the converted pixel value of each of the first target pixel and the second target pixel is output.

本項に記載の態様によれば、当該画像処理装置に対する画素値の入出力処理が単純化される。つまり、先に説明したように、逐次的処理を実行する場合においても、予め画素を補うことなく、当該画像処理装置に1の画素ごとの原始画素値を入力すればよく、画素値の入力処理が特に簡便なものとなる。また、例えば、上記フィルタ処理が実行されるような場合であっても、そのフィルタ処理の段階で画素を補うことを要しないことから、そのフィルタ処理の負担を軽減でき、画像処理全体の速度の向上を図ることが可能となる。   According to the aspect described in this section, pixel value input / output processing for the image processing apparatus is simplified. In other words, as described above, even when sequential processing is executed, it is only necessary to input a primitive pixel value for each pixel into the image processing apparatus without supplementing pixels in advance, and pixel value input processing Is particularly convenient. Further, for example, even when the above filter processing is executed, it is not necessary to supplement the pixel at the stage of the filter processing, so that the burden of the filter processing can be reduced and the speed of the entire image processing can be reduced. It is possible to improve.

(23)前記今回以前第1対象画素が、前記第1単位処理実行部によって前回以前に実行された1の単位処理において前記第1対象画素とされたものであり、
当該画像処理装置が、前記今回以前第1対象画素の原始画素値を、その画素値を前記第2対象画素の画素値とした前記第2単位処理実行部による単位処理が実行されるまでの間記憶する原始画素値一時記憶部を備えた(21)項または(22)項に記載の画像処理装置。
(23) The first target pixel before the current time is the first target pixel in one unit process executed before the previous time by the first unit processing execution unit;
Until the unit processing is executed by the second unit processing execution unit using the original pixel value of the first target pixel before this time as the pixel value of the second target pixel. The image processing device according to (21) or (22), further comprising a primitive pixel value temporary storage unit for storing.

本項に記載の態様は、補間ライン上における単位処理の対象となる画素が、対象ライン上における単位処理の対象となる画素より、ライン方向において後方側に位置するような場合に有効な態様となる。そのような場合においても、本項の態様の画像処理装置によれば、上記原始画素一時記憶部は相当に小さなメモリ,あるいは,小さなレジスタとすればよく、当該画像処理装置の構成の単純化が図れることになる。なお、本項の態様は、単位処理ごとに1つの原始画素値のみが入力されるような態様において、特に有効である。   The mode described in this section is an effective mode in the case where the pixel that is the target of unit processing on the interpolation line is located behind the pixel that is the target of unit processing on the target line in the line direction. Become. Even in such a case, according to the image processing device of the aspect of this section, the primitive pixel temporary storage unit may be a considerably small memory or a small register, and the configuration of the image processing device can be simplified. It will be planned. Note that the aspect of this section is particularly effective in an aspect in which only one primitive pixel value is input for each unit process.

(24)それぞれが前記変換画像の画素のマトリクスにおいて前記第2対象画素の近傍に設定されてその第2対象画素の変換画素値を取得するために自身の変換誤差値が利用される複数の画素を、複数の第2誤差利用画素と定義した場合において、
前記第2単位処理実行部が、
前記対象ライン上において設定された複数の画素であって前記複数の第2誤差利用画素の少なくとも一部である複数の第2前ライン上誤差利用画素の各々の変換誤差値に基づいて、前記複数の第2誤差利用画素の平均誤差値である第2平均誤差値を算出する第2平均誤差算出部を有し、
その第2平均誤差算出部によって算出された前記第2平均誤差値に基づいて前記第2対象画素の画素値を補正し、その補正によって得られた画素値に基づいて、その第2対象画素の変換画素値を取得するように構成され、
前記第2平均誤差算出部が、前記第1対象画素の変換誤差値を、前記複数の第2前ライン上誤差利用画素のうちの1つの画素の変換誤差値として利用して、前記第2平均誤差値を算出するように構成された(21)項ないし(23)項のいずれかに記載の画像処理装置。
(24) A plurality of pixels, each of which is set in the vicinity of the second target pixel in the pixel matrix of the converted image and uses its own conversion error value to obtain the converted pixel value of the second target pixel Is defined as a plurality of second error utilization pixels,
The second unit processing execution unit is
The plurality of pixels set on the target line and the plurality of pixels based on the conversion error values of each of the plurality of second previous line error using pixels that are at least part of the plurality of second error using pixels. A second average error calculation unit that calculates a second average error value that is an average error value of the second error-utilizing pixels.
The pixel value of the second target pixel is corrected based on the second average error value calculated by the second average error calculation unit, and the pixel value of the second target pixel is corrected based on the pixel value obtained by the correction. Configured to obtain a transformed pixel value;
The second average error calculation unit uses the conversion error value of the first target pixel as the conversion error value of one of the plurality of second previous-line on-line error use pixels, and performs the second average error calculation. The image processing device according to any one of items (21) to (23), configured to calculate an error value.

本項に記載の態様は、上記第2対象画素についての単位処理について、平均誤差値の算出処理に関する限定を加えた態様である。詳しく言えば、その対象画素に対する誤差利用画素のうちの前ライン上誤差利用画素を上記対象ライン上の画素とし、かつ、今回の第1対象画素についての単位処理によって得られた変換誤差値を、直接的に、詳しく言えば、その変換誤差値を画像処理装置外部から入力されることなく利用する態様である。本項の態様によれば、例えば、第1対象画素の変換誤差値を、連続的に行われる第2対象画素についての単位処理において利用するような態様とすることも可能であり、当該画像処理装置の処理の流れ、詳しくは、第1単位処理実行部から第2単位処理実行部への画素値の受け渡しを単純化することが可能である。   The mode described in this section is a mode in which the unit processing for the second target pixel is limited with respect to the average error value calculation processing. Specifically, the error use pixel on the previous line among the error use pixels for the target pixel is the pixel on the target line, and the conversion error value obtained by the unit processing for the first target pixel this time is More specifically, in more detail, the conversion error value is used without being input from the outside of the image processing apparatus. According to the aspect of this section, for example, the conversion error value of the first target pixel can be used in the unit process for the second target pixel that is continuously performed. It is possible to simplify the process flow of the apparatus, specifically, the transfer of pixel values from the first unit processing execution unit to the second unit processing execution unit.

(25)前記第2単位処理実行部が、前記第2対象画素についての単位処理によって、さらに、その第2対象画素の変換誤差値を取得するものとされ、
前記第2平均誤差算出部が、さらに、前記補間ライン上において前記第2対象画素とライン方向の後方側において連続するものとして設定された1以上の画素であって前記複数の第2誤差利用画素の一部である1以上の第2当該ライン上誤差利用画素の各々の変換誤差値に基づいて、前記第2平均誤差値を算出するものとされた(24)項に記載の画像処理装置。
(25) The second unit processing execution unit further acquires a conversion error value of the second target pixel by the unit processing for the second target pixel.
The second average error calculation unit further includes one or more pixels set to be continuous with the second target pixel on the back side in the line direction on the interpolation line, and the plurality of second error use pixels. The image processing device according to item (24), wherein the second average error value is calculated based on the conversion error value of each of the one or more second on-line error utilization pixels that are a part of the image error.

本項に記載の態様は、第2対象画素対する誤差利用画素が、当該ラインとしての上記補間ライン上の画素をも含む態様である。   The mode described in this section is a mode in which the error utilization pixel for the second target pixel also includes a pixel on the interpolation line as the line.

(26)前記複数の第2前ライン上誤差利用画素が、互いに連続する複数の画素として設定され、
前記第2単位処理実行部が、前記第1対象画素の変換誤差値を前記複数の第2前ライン上誤差利用画素のうちのライン方向において最前に位置する第2前ライン上最前誤差利用画素の変換誤差値として利用可能な画素を、前記第2対象画素として、その画素についての単位処理を実行するようにされた(24)項または(25)項に記載の画像処理装置。
(26) The plurality of second previous-line error use pixels are set as a plurality of pixels that are continuous with each other,
A second unit processing execution unit configured to convert a conversion error value of the first target pixel to a foremost error use pixel on the second previous line that is positioned in the forefront in a line direction among the plurality of second use errors on the previous line; The image processing apparatus according to (24) or (25), wherein a unit process is performed on a pixel that can be used as a conversion error value as the second target pixel.

本項に記載の態様は、第1対象画素と第2対象画素とのライン方向の位置関係が限定された態様であり、詳しく言えば、例えば、今回の単位処理における第1対象画素の変換誤差値が、今回以後の単位処理における第2対象画素についての前ライン誤差利用画素のうちの最も前方のものの変換誤差値として利用されるように、2つの対象画素の位置関係が限定された態様である。後に説明する態様であるが、前述の平均誤差値の算出処理を第2対象画素についての単位処理に適用する場合に、特に有効となる。   The mode described in this section is a mode in which the positional relationship between the first target pixel and the second target pixel in the line direction is limited. More specifically, for example, the conversion error of the first target pixel in the current unit processing In a mode in which the positional relationship between the two target pixels is limited so that the value is used as the conversion error value of the forefront error pixel for the second target pixel in the unit processing after this time. is there. As will be described later, this is particularly effective when the above average error value calculation processing is applied to the unit processing for the second target pixel.

(27)前記第2平均誤差算出部が、
ライン方向に仮想的に配置され、前記複数の第2前ライン上誤差利用画素の各々に対応して設定された重み付け係数の各々と前記第2前ライン上最前誤差利用画素の変換誤差値との乗算処理を実行するところの前記複数の第2前ライン上誤差利用画素の数に相当する数の複数の第2前ライン用乗算部と、
それら複数の第2前ライン用乗算部の各々に対応して設けられ、それぞれが、自身の直近の後方側に配置されたものが存在する場合にはそのものの記憶値と前記複数の第2前ライン用乗算部のうちの自身に対応するものによる乗算処理の結果値とを加算して記憶し、自身の後方側に配置されたものが存在しない場合には前記複数の第2前ライン用乗算部のうちの自身に対応するものによる乗算処理の結果値を記憶するところの前記複数の第2前ライン上誤差利用画素の数に相当する数の複数の第2前ライン用加算記憶部とを有し、
それら複数の第2前ライン用加算記憶部の各々による処理が前方に配置されたものによる処理から順次実行されるように構成されるとともに、それら複数の第2前ライン用加算記憶部のうちの最前のものの記憶値に基づいて、記第2平均誤差値を算出するように構成された(26)項に記載の画像処理装置。
(27) The second average error calculation unit includes:
Each of the weighting coefficients that are virtually arranged in the line direction and are set corresponding to each of the plurality of second previous line error using pixels and the conversion error value of the second previous line first error using pixel A plurality of second front line multiplying units corresponding to the number of the plurality of second front line error-utilizing pixels for performing the multiplication process;
When there is a plurality of second front line multiplying units provided corresponding to each of the plurality of second front line multiplying units, each of which is arranged on the rear side closest to the second front line multiplying unit, the stored value and the plurality of second front lines are stored. The result value of the multiplication process by the one corresponding to itself among the line multipliers is added and stored, and when there is no line arranged behind the line multiplication unit, the plurality of second front line multiplications A plurality of second front-line addition storage units corresponding to the number of the second previous-line on-line error use pixels that store the result value of the multiplication process by the one corresponding to itself. Have
The processing by each of the plurality of second previous line addition storage units is configured to be executed sequentially from the processing by the one arranged in front, and among the plurality of second previous line addition storage units, The image processing device according to item (26), which is configured to calculate the second average error value based on a stored value of the previous one.

(28)前記第2単位処理実行部が、前記第2対象画素についての単位処理によって、さらに、その第2対象画素の変換誤差値を取得するものとされ、
前記第2平均誤差算出部が、
さらに、前記補間ライン上において前記第2対象画素とライン方向の後方側において連続するものとして設定された1以上の画素であって前記複数の第2誤差利用画素の一部である1以上の第2当該ライン上誤差利用画素の各々の変換誤差値に基づいて、前記第2平均誤差値を算出するものとされ、
ライン方向に仮想的に配置され、前記1以上の第2当該ライン上誤差利用画素の各々に対応して設定された重み付け係数の各々と前記第2対象画素の直近の後方側に位置する画素の変換誤差値との乗算処理を実行するところの前記1以上の第2当該ライン上誤差利用画素の数に相当する数の1以上の第2当該ライン用乗算部と、
それら1以上の第2当該ライン用乗算部の各々に対応して設けられ、それぞれが、自身の直近の後方側に配置されたものが存在する場合にはそのものの記憶値と前記1以上の第2当該ライン用乗算部のうちの自身に対応するものによる乗算処理の結果値とを加算して記憶し、自身の後方側に配置されたものが存在しない場合には前記1以上の第2当該ライン用乗算部のうちの自身に対応するものによる乗算処理の結果値を記憶するところの前記1以上の第2当該ライン上誤差利用画素の数に相当する数の1以上の第2当該ライン用加算記憶部とを有し、
それら1以上の第2当該ライン用加算記憶部の各々による処理が前方に配置されたものによる処理から順次実行されるように構成されるとともに、さらにそれら1以上の第2当該ライン用加算記憶部のうちの最前のものの記憶値に基づいて、前記第2平均誤差値を算出するように構成された(27)項に記載の画像処理装置。
(28) The second unit processing execution unit further obtains a conversion error value of the second target pixel by the unit processing for the second target pixel,
The second average error calculation unit is
Further, the one or more first pixels that are set to be continuous with the second target pixel on the rear side in the line direction on the interpolation line and are a part of the plurality of second error utilization pixels. 2 The second average error value is calculated based on each conversion error value of the on-line error utilization pixel,
Each of the weighting coefficients that are virtually arranged in the line direction and are set corresponding to each of the one or more second on-line error use pixels and pixels that are positioned immediately behind the second target pixel A number of one or more second line multiplication units corresponding to the number of the one or more second line error utilization pixels that perform the multiplication process with the conversion error value;
If there is one that is arranged corresponding to each of the one or more second line multiplying units, and each of them is arranged in the immediate rear side of itself, the stored value of itself and the one or more first 2 The result value of the multiplication processing by the one corresponding to itself among the multiplication units for the line is added and stored, and when there is no one arranged on the rear side of the line, the one or more second relevant values One or more second corresponding lines for the number of lines corresponding to the number of the one or more second on-line error utilization pixels for storing the result value of the multiplication process by the one corresponding to itself among the line multiplying units. An addition storage unit;
The processing by each of the one or more second relevant line addition storage units is configured to be executed sequentially from the processing by the one arranged in front, and further, the one or more second relevant line addition storage units. The image processing device according to item (27), configured to calculate the second average error value based on a stored value of the previous one of the two.

(29)前記第2平均誤差算出部が、前記複数の第2前ライン用加算記憶部のうちの最前のものの記憶値と、前記1以上の第2当該ライン用加算記憶部のうちの最前のものの記憶値との和を、前記第2平均誤差値として算出するように構成された(28)項に記載の画像処理装置。   (29) The second average error calculation unit may store a storage value of the foremost one of the plurality of second previous line addition storage units and a forefront of the one or more second line addition storage units. The image processing apparatus according to item (28), configured to calculate a sum of stored values as a second average error value.

上記3つの項に記載の態様は、前述の特徴的な平均誤差値の算出処理を第2対象画素についての単位処理に適用する各種の態様である。上記3つの項に記載の平均誤差値の算出処理に関する構成は、先に説明した処理に関する構成と同様であるため、ここでの説明は省略する。なお、先に説明した当該処理によるメリットは、上記3つの項の態様においても、享受されることとなる。   The modes described in the above three terms are various modes in which the characteristic average error value calculation process described above is applied to the unit process for the second target pixel. The configuration related to the average error value calculation processing described in the above three terms is the same as the configuration related to the processing described above, and thus the description thereof is omitted here. In addition, the merit by the said process demonstrated previously will be enjoyed also in the aspect of said three term.

(30)それぞれが前記変換画像の画素のマトリクスにおいて前記第1対象画素の近傍に設定されてその第1対象画素の変換画素値を取得するために自身の変換誤差値が利用される複数の画素を、複数の第1誤差利用画素と定義した場合において、
前記第1単位処理実行部が、
前回の1ライン処理での前記補間ライン上において設定された複数の画素であって前記複数の第1誤差利用画素の少なくとも一部である複数の第1前ライン上誤差利用画素の各々の変換誤差値に基づいて、それら前記複数の第1誤差利用画素の平均誤差値である第1平均誤差値を算出する第1平均誤差算出部を有し、
その第1平均誤差算出部によって算出された前記第1平均誤差値に基づいて前記第1対象画素の原始画素値を補正し、その補正によって得られた画素値に基づいて、その第1対象画素の変換画素値を取得するように構成された(21)項ないし(29)項のいずれかに記載の画像処理装置。
(30) A plurality of pixels, each of which is set in the vicinity of the first target pixel in the matrix of pixels of the converted image and whose conversion error value is used to obtain the converted pixel value of the first target pixel Is defined as a plurality of first error use pixels,
The first unit processing execution unit
A plurality of pixels set on the interpolation line in the previous one-line process, and each of conversion errors of a plurality of first previous-line error using pixels that are at least part of the plurality of first error-using pixels. A first average error calculation unit that calculates a first average error value that is an average error value of the plurality of first error use pixels based on the values;
The original pixel value of the first target pixel is corrected based on the first average error value calculated by the first average error calculation unit, and the first target pixel is calculated based on the pixel value obtained by the correction. The image processing device according to any one of (21) to (29), which is configured to acquire the converted pixel value.

(31)前記第1平均誤差算出部が、
さらに、前記対象ライン上において前記第1対象画素とライン方向の後方側において連続するように設定された1以上の画素であって前記複数の第1誤差利用画素の一部である1以上の第1当該ライン上誤差利用画素の各々の変換誤差値に基づいて、前記第1平均誤差値を算出するものとされた(30)項に記載の画像処理装置。
(31) The first average error calculation unit,
Furthermore, the one or more first pixels which are set to be continuous with the first target pixel on the rear side in the line direction on the target line and are a part of the plurality of first error utilization pixels. (1) The image processing apparatus according to (30), wherein the first average error value is calculated based on each conversion error value of the on-line error utilization pixel.

(32)前記第1平均誤差算出部が、
前回の1ライン処理での1の単位処理において前記第2対象画素とされた1つの画素であって前記第1対象画素と対応付けられた対応前回ライン処理画素の変換誤差値を、前記複数の第1前ライン上誤差利用画素のうちの1つの画素の変換誤差値として利用して、前記第1平均誤差値を算出するものとされた(30)項または(31)項に記載の画像処理装置。
(32) The first average error calculation unit,
The conversion error value of the corresponding previous line processing pixel that is one pixel that is the second target pixel and that is associated with the first target pixel in one unit process in the previous one line process, The image processing according to (30) or (31), wherein the first average error value is calculated using the conversion error value of one of the pixels on the first front-line error utilization pixel. apparatus.

上記3つの項に記載の態様は、先に説明したとことろの第2対象画素についての平均誤差の算出処理と同様の処理を、上記第1対象画素についての単位処理についても適用した態様である。それら3つの項に記載されている平均誤差の算出処理の説明は、先の説明と重複する部分が多いため、ここでの説明は省略する。   The mode described in the above three items is a mode in which the same process as the average error calculation process for the second target pixel described above is applied to the unit process for the first target pixel. is there. Since the explanation of the average error calculation processing described in these three sections has many parts overlapping with the previous explanation, explanation here is omitted.

(33)前記第2単位処理実行部が、前記第2対象画素についての単位処理によって、さらに、その第2対象画素の変換誤差値を取得するものとされ、
当該画像処理装置が、前記第2単位処理実行部による単位処理の実行ごとに、前記第2対象画素の変換誤差値が出力され、前記第1単位処理実行部による単位処理の実行ごとに、前記対応前回ライン処理画素となる1つの画素の変換誤差値が入力されるものとされた(32)項に記載の画像処理装置。
(33) The second unit processing execution unit further acquires a conversion error value of the second target pixel by the unit processing for the second target pixel.
The image processing apparatus outputs a conversion error value of the second target pixel every time the unit process is executed by the second unit process execution unit, and every time the unit process is executed by the first unit process execution unit, The image processing apparatus according to item (32), wherein a conversion error value of one pixel which is a corresponding previous line processing pixel is input.

本項に記載の態様は、変換誤差値の当該画像処理装置に対する入出力に対する限定を加えた態様である。本項の態様では、第1単位処理実行部から第2単位処理実行部への変換誤差値が当該装置内部において受け渡されるように構成することができるため、その場合には、それら2つの単位処理実行部による一連の単位処理において、それぞれ、1つの変換誤差値のみが当該画像処理装置に対して入出力されるに過ぎず、その入出力処理が簡素化,単純化されたものとなる。   The mode described in this section is a mode in which a limitation on input / output of the conversion error value with respect to the image processing apparatus is added. In the aspect of this section, since the conversion error value from the first unit processing execution unit to the second unit processing execution unit can be transferred inside the apparatus, in that case, the two units In a series of unit processing by the processing execution unit, only one conversion error value is input / output to / from the image processing apparatus, and the input / output processing is simplified and simplified.

(34)前記複数の第1前ライン上誤差利用画素が、互いに連続する複数の画素として設定され、
前記第1単位処理実行部が、前記対応前回ライン処理画素の変換誤差値を前記複数の第1前ライン上誤差利用画素のうちのライン方向において最前に位置する第1前ライン上最前誤差利用画素の変換誤差値として利用して、前記第1対象画素についての単位処理を実行するものとされた(32)項または(33)項に記載の画像処理装置。
(34) The plurality of pixels on the first previous line error use are set as a plurality of pixels that are continuous with each other,
The first unit processing execution unit uses the first previous line foremost error use pixel located in the forefront in the line direction among the plurality of first previous line error use pixels for the conversion error value of the corresponding previous line processing pixel. The image processing apparatus according to (32) or (33), wherein unit processing for the first target pixel is executed using the conversion error value of the first target pixel.

本項に記載の態様は、第1対象画素とそれについての単位処理において利用される誤差利用画素とのライン方向における位置関係に関する限定を加えた態様である。   The mode described in this section is a mode in which a limitation on the positional relationship in the line direction between the first target pixel and the error-use pixel used in the unit processing is added.

(35)前記第1平均誤差算出部が、
ライン方向に仮想的に配置され、前記複数の第1前ライン上誤差利用画素の各々に対応して設定された重み付け係数の各々と前記第1前ライン上最前誤差利用画素の変換誤差値との乗算処理を実行するところの前記複数の第1前ライン上誤差利用画素の数に相当する数の複数の第1前ライン用乗算部と、
それら複数の第1前ライン用乗算部の各々に対応して設けられ、それぞれが、自身の直近の後方側に配置されたものが存在する場合にはそのものの記憶値と前記複数の第1前ライン用乗算部のうちの自身に対応するものによる乗算処理の結果値とを加算して記憶し、自身の後方側に配置されたものが存在しない場合には前記複数の第1前ライン用乗算部のうちの自身に対応するものによる乗算処理の結果値を記憶するところの前記複数の第1前ライン上誤差利用画素の数に相当する数の複数の第1前ライン用加算記憶部とを有し、
それら複数の第1前ライン用加算記憶部の各々による処理が前方に配置されたものによる処理から順次実行されるように構成されるとともに、それら複数の第1前ライン用加算記憶部のうちの最前のものの記憶値に基づいて、前記第1平均誤差値を算出するように構成された(34)項に記載の画像処理装置。
(35) The first average error calculation unit
Each of the weighting coefficients that are virtually arranged in the line direction and are set corresponding to each of the plurality of pixels on the first previous line error use and the conversion error value of the pixel on the first previous error use on the first line A plurality of first front-line multiplication units corresponding to the number of the plurality of first front-line error-use pixels on which the multiplication process is performed;
When there is a plurality of first front line multiplication units arranged on the rear side closest to the first front line multiplication unit, the stored value and the plurality of first front lines are provided. The result value of the multiplication process by the one corresponding to itself among the line multipliers is added and stored, and when there is no one arranged on the rear side thereof, the plurality of first front line multiplications A plurality of first front-line addition storage units corresponding to the number of pixels on the first front-line error-use pixel that store the result values of the multiplication processing by the one corresponding to itself. Have
The processing by each of the plurality of first front line addition storage units is configured to be sequentially executed from the processing by the one arranged in front, and among the plurality of first front line addition storage units, The image processing device according to item (34), configured to calculate the first average error value based on a stored value of the previous one.

(36)前記第1平均誤差算出部が、
さらに、前記対象ライン上において前記第1対象画素とライン方向の後方側において連続するように設定された1以上の画素であって前記複数の第1誤差利用画素の一部である1以上の第1当該ライン上誤差利用画素の各々の変換誤差値に基づいて、前記第1平均誤差値を算出するものとされ、
ライン方向に仮想的に配置され、前記1以上の第1当該ライン上誤差利用画素の各々に対応して設定された重み付け係数の各々と前記第1対象画素の直近の後方側に位置する画素の変換誤差値との乗算処理を実行するところの前記1以上の第1当該ライン上誤差利用画素の数に相当する数の1以上の第1当該ライン用乗算部と、
それら1以上の第1当該ライン用乗算部の各々に対応して設けられ、それぞれが、自身の直近の後方側に配置されたものが存在する場合にはそのものの記憶値と前記1以上の第1当該ライン用乗算部のうちの自身に対応するものによる乗算処理の結果値とを加算して記憶し、自身の後方側に配置されたものが存在しない場合には前記1以上の第1当該ライン用乗算部のうちの自身に対応するものによる乗算処理の結果値を記憶するところの前記1以上の第1当該ライン上誤差利用画素の数に相当する数の1以上の第1当該ライン用加算記憶部とを有し、
それら1以上の第1当該ライン用加算記憶部の各々による処理が前方に配置されたものによる処理から順次実行されるように構成されるとともに、さらにそれら1以上の第1当該ライン用加算記憶部のうちの最前のものの記憶値に基づいて、前記第1平均誤差値を算出するように構成された(35)項に記載の画像処理装置。
(36) The first average error calculation unit
Furthermore, the one or more first pixels which are set to be continuous with the first target pixel on the rear side in the line direction on the target line and are a part of the plurality of first error utilization pixels. 1 The first average error value is calculated based on the conversion error value of each of the on-line error utilization pixels.
Each of the weighting coefficients that are virtually arranged in the line direction and are set corresponding to each of the one or more first on-line error use pixels and pixels positioned on the rear side closest to the first target pixel. A number of one or more first line multiplication units corresponding to the number of the one or more first line error utilization pixels that perform the multiplication process with the conversion error value;
When one or more first corresponding line multiplying units are provided corresponding to each of the first and second line multiplying units, and each of them is arranged on the rear side closest to itself, the stored value and the first or more first line multipliers are provided. 1 adds the result value of the multiplication process by the one corresponding to itself among the multiplication units for the line and stores it, and if there is no one arranged behind the line, the one or more first corresponding line The number of one or more first corresponding lines corresponding to the number of the one or more first on-line error utilization pixels that store the result value of the multiplication process by the one corresponding to itself among the line multiplying units. An addition storage unit;
The processing by each of the one or more first addition storage units for the line is configured to be sequentially executed from the processing by the one arranged in front, and further, the one or more first addition storage units for the line The image processing device according to item (35), which is configured to calculate the first average error value based on a stored value of the previous one.

(37)前記第1平均誤差算出部が、前記複数の第1前ライン用加算記憶部のうちの最前のものの記憶値と、前記1以上の第1当該ライン用加算記憶部のうちの最前のものの記憶値との和を、前記第1平均誤差値として算出するように構成された(36)項に記載の画像処理装置。   (37) The first average error calculation unit may store the storage value of the foremost one of the plurality of first previous line addition storage units and the foremost of the one or more first line addition storage units. The image processing apparatus according to item (36), configured to calculate a sum of stored values as a first average error value.

上記3つの項に記載の態様は、前述の特徴的な平均誤差値の算出処理を、第2対象画素についての単位処理と同様、第1対象画素についての単位処理にも適用する各種の態様である。上記3つの項に記載の平均誤差値の算出処理に関する構成は、先に説明した処理に関する構成と同様であるため、ここでの説明は省略する。なお、先に説明した当該処理によるメリットは、第1対象画素についての単位処理に適用された場合のメリットに加え、上記3つの項の態様において重畳的に享受されることとなる。   The modes described in the above three items are various modes in which the characteristic average error value calculation process described above is applied to the unit process for the first target pixel as well as the unit process for the second target pixel. is there. The configuration related to the average error value calculation processing described in the above three terms is the same as the configuration related to the processing described above, and thus the description thereof is omitted here. In addition, the merit by the said process demonstrated previously will be enjoyed by superposition in the aspect of said three term in addition to the merit when it applies to the unit process about a 1st object pixel.

(38)それぞれが前記変換画像の画素のマトリクスにおいて前記第1対象画素の近傍に設定されてその第1対象画素の変換画素値を取得するために自身の変換誤差値が利用される複数の画素を、複数の第1誤差利用画素と定義し、それぞれが前記変換画像の画素のマトリクスにおいて前記第2対象画素の近傍に設定されてその第2対象画素の変換画素値を取得するために自身の変換誤差値が利用される複数の画素を、複数の第2誤差利用画素と定義した場合において、
前記第1単位処理実行部が、前記複数の第1誤差利用画素の平均誤差値である第1平均誤差値を算出する第1平均誤差算出部を有し、
前記第2単位処理実行部が、前記複数の第2誤差利用画素の平均誤差値である第2平均誤差値を算出する第2平均誤差算出部を有する(21)項ないし(37)項のいずれかに記載の画像処理装置。
(38) A plurality of pixels, each of which is set in the vicinity of the first target pixel in the matrix of pixels of the converted image and whose conversion error value is used to obtain the converted pixel value of the first target pixel Is defined as a plurality of first error-utilizing pixels, each of which is set in the vicinity of the second target pixel in the matrix of pixels of the converted image and acquires its converted pixel value of the second target pixel. In the case where a plurality of pixels for which conversion error values are used are defined as a plurality of second error use pixels,
The first unit processing execution unit includes a first average error calculation unit that calculates a first average error value that is an average error value of the plurality of first error use pixels,
Any of the items (21) to (37), wherein the second unit processing execution unit includes a second average error calculation unit that calculates a second average error value that is an average error value of the plurality of second error use pixels. An image processing apparatus according to claim 1.

本項に記載の態様は、先に掲げた第1平均誤差算出部,第2平均誤差算出部を、それぞれ、第1単位処理実行部と第2単位処理実行部とにおいて備えた態様である。   The mode described in this section is a mode in which the first average error calculation unit and the second average error calculation unit listed above are provided in the first unit process execution unit and the second unit process execution unit, respectively.

(39)当該画像処理装置が、
前記第1平均誤差算出部によって算出された前記第1平均誤差値に基づいて前記第1対象画素の原始画素値を補正し、その補正によって得られた画素値に基づいて、その第1対象画素の変換画素値を決定し、かつ、第2平均誤差算出部によって算出された前記第2平均誤差値に基づいて前記第2対象画素の画素値を補正し、その補正によって得られた画素値に基づいて、その第2対象画素の変換画素値を決定する単一の変換画素値決定部を備えた(38)項に記載の画像処理装置。
(39) The image processing apparatus
The original pixel value of the first target pixel is corrected based on the first average error value calculated by the first average error calculation unit, and the first target pixel is determined based on the pixel value obtained by the correction. And the pixel value of the second target pixel is corrected based on the second average error value calculated by the second average error calculation unit, and the pixel value obtained by the correction is determined. The image processing apparatus according to (38), further comprising a single converted pixel value determining unit that determines a converted pixel value of the second target pixel based on the first converted pixel value.

(40)当該画像処理装置が、
前記第1平均誤差算出部によって算出された前記第1平均誤差値に基づく前記第1対象画素の原始画素値の補正によって得られた画素値と、その画素値に基づいて取得されたその第1対象画素の変換画素値とに基づいて、その第1対象画素の変換誤差値を算出し、かつ、前記第2平均誤差算出部によって算出された前記第2平均誤差値に基づく前記第2対象画素の画素値の補正によって得られた画素値と、その画素値に基づいて取得されたその第2対象画素の変換画素値とに基づいて、その第2対象画素の変換誤差値を算出する単一の変換誤差値算出部を備えた(37)項または(38)項に記載の画像処理装置。
(40) The image processing apparatus is
The pixel value obtained by correcting the original pixel value of the first target pixel based on the first average error value calculated by the first average error calculation unit, and the first obtained based on the pixel value Based on the converted pixel value of the target pixel, a conversion error value of the first target pixel is calculated, and the second target pixel based on the second average error value calculated by the second average error calculation unit Single conversion error value of the second target pixel is calculated based on the pixel value obtained by correcting the pixel value and the converted pixel value of the second target pixel acquired based on the pixel value. The image processing apparatus according to (37) or (38), comprising the conversion error value calculation unit.

上記2つの項に記載の態様は、第1平均誤差算出部,第2平均誤差算出部を、それぞれ、第1単位処理実行部と第2単位処理実行部とにおいて備えた場合において、それら2つの単位処理実行部が有すべき変換画素値決定部,変換画素値算出部を共用化させた態様である。上記2つの項の態様は、当該画像処理装置が、電子回路,電気回路を主体として構成される場合において特に有効である。つまり、2つの単位処理部を備えた画像処理装置であっても、上記変換画素値決定部,変換画素値算出部に相当する回路部分を1つとすることができるため、回路構成を簡素化することができるのである。なお、変換画素値決定部,変換画素値算出部の処理については、従来から採用されている種々の処理を採用することができ、その処理は既に公知なものであるため、それらの処理についての説明は省略する。   In the aspect described in the above two items, when the first average error calculation unit and the second average error calculation unit are provided in the first unit process execution unit and the second unit process execution unit, respectively, This is a mode in which the conversion pixel value determination unit and the conversion pixel value calculation unit that the unit processing execution unit should have are shared. The modes of the above two terms are particularly effective when the image processing apparatus is mainly composed of an electronic circuit and an electric circuit. That is, even in an image processing apparatus including two unit processing units, the circuit portion corresponding to the conversion pixel value determination unit and the conversion pixel value calculation unit can be made one, thereby simplifying the circuit configuration. It can be done. In addition, about the process of a conversion pixel value determination part and a conversion pixel value calculation part, the various process employ | adopted conventionally can be employ | adopted, Since the process is already well-known, about those processes Description is omitted.

(51)あるマトリクスとして規定された複数の画素からなる原始画像の画像データを、そのマトリクスのラインの間に画素を補いつつ、誤差拡散法に従う処理によって、そのマトリクスが画素のラインによって補間された別のマトリクスとして規定された複数の画素からなる変換画像の画像データに変換する画像処理方法であって、
前記原始画像の画像データを構成するところのその画像の複数の画素の各々の画素値を、原始画素値と、前記変換画像の画像データを構成するところのその画像の複数の画素の各々の画素値を、変換画素値と、前記原始画像の画素のマトリクスにおける画素のラインであって前記変換画像の画素のマトリクスにおいても存置される画素のラインの各々を、原始ラインと、その原始ラインに対応して前記原始画像の画素のマトリクスを補間するための画素のラインを、補間ラインと、誤差拡散法に従う1つの画素についての処理を単位処理と、それぞれ、定義した場合において、
原始ラインの1つである対象ライン上に存在する1つの画素である第1対象画素についての単位処理を実行することで、その第1対象画素の原始画素値に基づいて、その第1対象画素の変換画素値および変換誤差値を取得し、
その第1単位処理実行部によって今回以前に実行された1の単位処理において前記第1対象画素とされた今回以前第1対象画素の原始画素値を、前記対象ラインに対応する補間ライン上において前記第1対象画素と対応付けられた第2対象画素の画素値として、その画素値に基づき、前記第1単位処理実行部によって取得された前記第1対象画素の変換誤差値を利用しつつ、前記第2対象画素についての単位処理を実行することで、その第2対象画素の変換画素値を取得し、
前記第1対象画素および前記第2対象画素をライン方向の前方に向かって順次遷移させつつ、前記第1対象画素についての単位処理と前記第2対象画素についての単位処理とをそれぞれ前記対象ラインと前記補間ラインとについて繰り返し、かつ、その繰り返しを、対象ラインを順次遷移させつつ繰り返すことによって、前記原始画像の画像データを前記変換画像の画像データに変換する画像処理方法。
(51) Image data of a source image composed of a plurality of pixels defined as a certain matrix is interpolated by pixel lines by processing according to the error diffusion method while supplementing pixels between the matrix lines. An image processing method for converting into image data of a converted image composed of a plurality of pixels defined as another matrix,
The pixel value of each of the plurality of pixels of the image constituting the image data of the original image, the pixel value of each of the plurality of pixels of the image constituting the image data of the original image and the converted image A value corresponding to a converted pixel value and a line of pixels in a matrix of pixels of the source image, which is also located in the matrix of pixels of the converted image, corresponding to the source line and the source line Then, when defining a line of pixels for interpolating a matrix of pixels of the original image, an interpolation line, and a process for one pixel according to the error diffusion method, a unit process, respectively,
By executing unit processing on the first target pixel that is one pixel existing on the target line that is one of the source lines, the first target pixel is based on the source pixel value of the first target pixel. Get the conversion pixel value and conversion error value of
The original pixel value of the first target pixel before this time, which is set as the first target pixel in one unit processing executed before this time by the first unit processing execution unit, on the interpolation line corresponding to the target line, While using the conversion error value of the first target pixel acquired by the first unit processing execution unit based on the pixel value as the pixel value of the second target pixel associated with the first target pixel, By executing the unit process for the second target pixel, the conversion pixel value of the second target pixel is acquired,
The unit processing for the first target pixel and the unit processing for the second target pixel are respectively performed as the target line while sequentially transitioning the first target pixel and the second target pixel forward in the line direction. An image processing method for converting image data of the original image into image data of the converted image by repeating the interpolation line and repeating the repetition while sequentially changing the target line.

本項に記載の態様は、カテゴリを画像処理方法とした場合の請求可能発明の態様である。本項の態様の説明は、画像処理装置のカテゴリに属する上記態様と重複するため、ここでの説明は省略する。なお、明細書が冗長となることに配慮して具体的な構成の例示は省略するが、請求可能発明の画像処理方法は、画像処理装置に関する上記各態様における技術的特徴を本項の態様に適用した各種構成の態様のものとすることができる。   The aspect described in this section is an aspect of the claimable invention when the category is an image processing method. Since the description of the aspect of this section overlaps with the above aspect belonging to the category of the image processing apparatus, description thereof is omitted here. In addition, although illustration of a specific configuration is omitted in consideration of the redundant specification, the image processing method of the claimable invention has the technical features of the above aspects relating to the image processing apparatus as the aspect of this section. It can be set as the aspect of the various structures applied.

以下、請求可能発明の一実施例およびそれの変形例を、電子回路によって構成された画像処理装置を例にとって、図を参照しつつ詳しく説明する。なお、請求可能発明は、下記実施例の他、前記〔発明の態様〕の項に記載された態様を始めとして、当業者の知識に基づいて種々の変更、改良を施した種々の態様で実施することができる。   Hereinafter, an embodiment of the claimable invention and a modification thereof will be described in detail with reference to the drawings, taking an image processing apparatus constituted by an electronic circuit as an example. In addition to the following examples, the claimable invention is implemented in various modes including various modifications and improvements based on the knowledge of those skilled in the art, including the mode described in the above [Mode of Invention]. can do.

≪画像処理の概要≫
本実施例の画像処理装置によって変換の対象となる原始画像は、図1(a)に示すように、コラム方向の画素数(ライン数)がM,ライン方向の画素数(コラム数)がNのマトリクスとして規定されている。ライン,コラム,画素は、一般化して、mライン,nコラムと呼ぶこととし、画素は、mライン,nコラムに対応して[m,n]と表し、画素値、つまり、原始画素値は、X、あるいは、画素の位置に対応付けてX[m,n]として表すこととする。原始画素値Xは、0〜255の1刻みの離散的な階調値とされている。原始画像の画像データは、原始画素値X[m,n]の集合として構成される。
≪Overview of image processing≫
As shown in FIG. 1A, the original image to be converted by the image processing apparatus according to the present embodiment has the number of pixels in the column direction (number of lines) as M and the number of pixels in the line direction (number of columns) as N. Is defined as a matrix. Lines, columns, and pixels are generally referred to as m lines and n columns, and pixels are represented as [m, n] corresponding to m lines and n columns, and pixel values, that is, primitive pixel values are , X, or X [m, n] in association with the pixel position. The original pixel value X is a discrete gradation value in increments of 0 to 255. The image data of the source image is configured as a set of source pixel values X [m, n].

一方、変換された後の変換画像は、図1(c)に示すように、コラム方向の画素数が2M,ライン方向の画素数がNのマトリクスとして規定されている。つまり、変換画像のマトリクスは、ライン数が、原始画像の2倍であり、変換画像は、原始画素に存在するラインである原始ラインの間を1の補間ラインによって補間されたものとされる。変換画像のラインを、一般化して、2m−1ライン,2mラインと呼ぶこととすれば、2m−1ラインは、上記原始ラインであり、2mラインは、2m−1に対応して補われた補間ラインである。なお、図では、原始ラインに■の印を、補間ラインに□の印を付している。コラムは、原始画像と同様に、nコラム呼び、画素は、原始ライン上のものを[2m−1,n]、補間ライン上のものを[2m,n]として表すこととし、画素値、つまり、変換画素値は、Zあるいは、画素に対応付けて、原始ライン上の画素のものをZ[2m−1,n]、補間ライン上の画素のものをZ[2m,n]と呼ぶこととする。変換画素値Zは、0,1の2値化値である。変換画像の画像データは、変換画素値Z[2m−1,n],Z[2m,n]の集合として構成される。   On the other hand, as shown in FIG. 1C, the converted image after conversion is defined as a matrix having 2M pixels in the column direction and N pixels in the line direction. That is, the converted image matrix has twice the number of lines as the original image, and the converted image is obtained by interpolating between the original lines, which are lines existing in the original pixels, by one interpolation line. If the lines of the converted image are generalized to be called 2m-1 line and 2m line, 2m-1 line is the original line, and 2m line is supplemented corresponding to 2m-1. Interpolation line. In the figure, the mark ■ is attached to the original line, and the mark □ is attached to the interpolation line. The column is referred to as n columns as in the original image, and the pixel is expressed as [2m-1, n] on the original line and [2m, n] on the interpolation line, and the pixel value, The converted pixel value is referred to as Z or a pixel on the primitive line in association with the pixel, Z [2m-1, n], and a pixel on the interpolation line as Z [2m, n]. To do. The converted pixel value Z is a binarized value of 0 and 1. The image data of the converted image is configured as a set of converted pixel values Z [2m-1, n], Z [2m, n].

誤差拡散法に従う処理(以下、「誤差拡散処理」という場合がある)による上記原始画像データから上記変換画像データへの変換は、従来、原始画像データを、一旦、図1(b)に示すような補間原始画像の画像データを作成し、その画像データに対して誤差拡散処理を実行するようにして行われている。補間原始画像データは、単に、原始ラインの間に補間ラインを補った画像の画像データである。詳しく言えば、2mライン上の原始画素値Xの各々が2m−1ライン上の同じコラムの画素値となるように作成したものである。したがって、[2m−1,n]と[2m,n]とが同じ値となる原始画素値の集合として構成される。   The conversion from the original image data to the converted image data by a process according to an error diffusion method (hereinafter sometimes referred to as “error diffusion process”) has conventionally been performed by temporarily converting the original image data as shown in FIG. The image data of the original interpolation original image is created, and error diffusion processing is executed on the image data. The interpolation original image data is simply image data of an image in which interpolation lines are supplemented between the original lines. More specifically, each of the primitive pixel values X on the 2m line is created so as to be the pixel value of the same column on the 2m-1 line. Therefore, [2m−1, n] and [2m, n] are configured as a set of primitive pixel values having the same value.

本実施例の画像処理装置による画像処理(以下、「本実施例の画像処理」という場合がある)では、上記補間原始画像データを作成せず、上記原始画像データから、直に、上記変換画像データに変換される。つまり、画素のラインによる画像の補間と、誤差拡散法に従う原始画素値の変換画像値への変換処理とが、渾然一体として実行されるのである。以下に、本実施例の画像処理を、図2に示すテーブルを参照しつつ、説明する。   In the image processing by the image processing apparatus according to the present embodiment (hereinafter sometimes referred to as “image processing according to the present embodiment”), the converted original image data is not generated, and the converted image is directly generated from the original image data. Converted to data. That is, the interpolation of the image by the line of pixels and the conversion process of the original pixel value to the converted image value according to the error diffusion method are executed as a unit. Hereinafter, the image processing of this embodiment will be described with reference to the table shown in FIG.

図2における画素の並びは、変換画像のマトリクスを示している。中段に示されている2m−1ラインは、原始画像のmラインに相当する原始ラインであり、下段に示されている2mラインは、2m−1ラインに対応して、原始画像のmラインとm+1ラインとの間に補われるラインである。上段のラインは、原始画像のm−1ラインに対応して補間されて既に変換画素値Zが取得されたラインである。なお、図における○は、その画素において既に変換画素値Zが取得されていることを示している。   The arrangement of pixels in FIG. 2 shows a matrix of converted images. The 2m-1 line shown in the middle row is a primitive line corresponding to the m line of the original image, and the 2m line shown in the lower row corresponds to the 2m-1 line and the m line of the original image. It is a line supplemented between the m + 1 line. The upper line is a line that has been interpolated corresponding to the m−1 line of the original image and has already obtained the converted pixel value Z. In addition, (circle) in a figure has shown that the conversion pixel value Z is already acquired in the pixel.

本実施例の画像処理では、原始ラインの1つのラインを対象ラインとして、その対象ライン上の1つの画素についての単位処理(第1単位処理)、詳しく言えば、その画素の原始画素値を変換画素値に変換することを主体とする処理と、その対象ライン対応する補間ライン上の1つの画素についての単位処理(第2単位処理)とが、1セットで実行される。つまり、対象ライン上において画素値の変換の対象となる画素である第1対象画素に対する第1単位処理と、補間ライン上において画素値の変換の対象となる第2対象画素に対する第2単位処理とが実行されることによって、原始画像の1つの画素の原始画素値Xに対して、変換画像の2つの画素の変換画素値Zが取得され、それらが出力されるのである。なお、第1対象画素および第2対象画素は、図において、★印を付して表している。そして、第1対象画素,第2対象画素がそれぞれライン方向(画素のラインに沿った方向、図の左右方向)に順次遷移させられつつ(図に示す白抜き矢印)、当該対象ライン,当該補間ラインについてのすべての単位処理である1ライン処理が実行され、その1ライン処理が、対象ラインが遷移させられつつ(図に示す網かけ矢印)、すべての原始ラインに対して、順次実行されることによって、原始画像データが変換画像データに変換されるのである。   In the image processing of the present embodiment, a unit line (first unit processing) is performed on one pixel on the target line with one line of the source line as a target line, more specifically, the source pixel value of the pixel is converted. One set of processing that mainly includes conversion into pixel values and unit processing (second unit processing) for one pixel on the interpolation line corresponding to the target line are executed. That is, a first unit process for a first target pixel that is a pixel that is a pixel value conversion target on the target line, and a second unit process for a second target pixel that is a pixel value conversion target on the interpolation line; Is executed, the converted pixel value Z of the two pixels of the converted image is acquired for the original pixel value X of one pixel of the original image, and these are output. Note that the first target pixel and the second target pixel are indicated by asterisks in the figure. The first target pixel and the second target pixel are sequentially shifted in the line direction (the direction along the pixel line, the horizontal direction in the figure) (the white arrow in the figure), while the target line and the interpolation are performed. One line process, which is all unit processes for the line, is executed, and the one line process is sequentially executed for all the original lines while the target line is changed (shaded arrow shown in the figure). Thus, the original image data is converted into converted image data.

以下に、図における2m−1ラインを対象ラインと、2mラインを補間ラインとし、画素[2m−1,n]を第1対象画素と、画素[2m,n−2]を第2対象画素とした場合の第1単位処理,第2単位処理について説明する。   In the following, the 2m-1 line in the figure is the target line, the 2m line is the interpolation line, the pixel [2m-1, n] is the first target pixel, and the pixel [2m, n-2] is the second target pixel. The first unit process and the second unit process in this case will be described.

画素[2m−1,n]を第1対象画素とした第1単位処理では、本画像処理装置に入力された原始画素における画素値X[m,n](実際は、フィルタ処理後の原始画素値X’[m,n]であり、それは、原始画素値Xと同様、0〜255の階調値とされている)が、第1対象画素の画素値(第1対象画素値)Y1とされ、その第1対象画素値Y1に対する変換画像値(第1変換画素値)Z1が取得される。その取得に際しては、第1対象画素の近傍において既に変換画素値Zへの変換が行われた画素、つまり、第1対象画素に対応する誤差利用画素の変換誤差値ΔYの平均値である平均誤差値(第1平均誤差値)ΔYAVE・1が利用される。詳しく言えば、第1対象画素値Y1と第1平均誤差値ΔYAVE・1とを加算することで、第1対象画素値Y1が補正された補正後対象画素値(第1補正後対象画素値)Y1’が求められ、その第1補正後対象画素値Y1’と2値化閾値Sとが比較され、補正後対象画素値Y1’が2値化閾値Sより大きい場合には第1変換画素値Z1が1に、補正後対象画素値Y1’が2値化閾値S以下である場合には第1変換画素値Z1が0に、それぞれ決定される。このようにして決定された第1変換画素値Z1は、変換画像における変換画素値Z[2m−1,n]として出力される。 In the first unit processing in which the pixel [2m−1, n] is the first target pixel, the pixel value X [m, n] (actually, the original pixel value after the filtering process) in the original pixel input to the image processing apparatus. X ′ [m, n], which is a gradation value of 0 to 255 as in the case of the original pixel value X) is the pixel value (first target pixel value) Y 1 of the first target pixel. It is, converted image value for the first pixel value Y 1 Part (first conversion pixel value) Z 1 is obtained. At the time of acquisition, an average error that is an average value of conversion error values ΔY of pixels that have already been converted to the converted pixel value Z in the vicinity of the first target pixel, that is, error-use pixels corresponding to the first target pixel. The value (first average error value) ΔY AVE · 1 is used. Specifically, by adding the first target pixel value Y 1 and the first average error value ΔY AVE · 1 , the corrected target pixel value (the first corrected target value) in which the first target pixel value Y 1 is corrected. pixel value) Y 1 'is obtained, the first post-correction pixel value Y 1' and the binarization threshold value S is compared, when the corrected target pixel value Y 1 'is greater than the binarization threshold value S The first conversion pixel value Z 1 is determined to be 1, and when the corrected target pixel value Y 1 ′ is equal to or less than the binarization threshold S, the first conversion pixel value Z 1 is determined to be 0. The first converted pixel value Z 1 determined in this way is output as the converted pixel value Z [2m−1, n] in the converted image.

第1平均誤差値ΔYAVE・1の算出のために、第1対象画素に対して、図に実線で囲った範囲において、誤差利用画素(第1誤差利用画素)が設定される。詳しく言えば、対象ラインである2m−1ラインを当該ライン(第1当該ライン)とし、前回の1ライン処理における補間ラインである2(m−1)ラインを前ライン(第1前ライン)とした場合において、第1前ライン上に、第1対象画素のコラムと同じnコラムを中心に連続的に位置する5つの画素[2(m−1),n−2]〜[2(m−1),n+2]が、前ライン上誤差利用画素(第1前ライン上誤差利用画素)として、また、第1当該ライン上に、第1対象画素のライン方向における後方側に位置してそれと連続する2つの画素[2m−1,n−2],[2m−1,n−1]が、当該ライン上誤差利用画素(第1当該ライン上誤差利用画素)として、それぞれ設定されることになる。ちなみに、誤差利用画素の各々に対しては、図3に示すように、対象画素との相対位置に応じた重み付け係数Kが設定されている。詳しく言えば、例えば、前ライン誤差利用画素に対しては、ライン方向の後方のものから前方のものにかけて、それぞれ、Ka=1/16,Kb=1/16,Kc=4/16,Kd=1/16,Ke=1/16という値の係数が、当該ライン誤差利用画素に対しては、ライン方向の後方のものから前方のものにかけて、Kf=4/16,Kg=4/16という値の係数が設定されており(Ka=1/16,Kb=2/16,Kc=4/16,Kd=2/16,Ke=1/16,Kf=2/16,Kg=4/16という値等を採用することも可能である)、そして、それらの重み付け係数Kと第1誤差利用画素の各々の変換誤差値ΔYとが掛け合わされてそれら掛け合わされたものが合計された値として、第1平均誤差値ΔYAVE・1が算出される。このようにして算出された第1平均誤差値ΔYAVE・1が、先に説明した第1変換画素値Z1の決定において利用されるのである。なお、本実施例の画像処理では、後に詳しく説明するが、第1平均誤差値ΔYAVE・1の算出にあたって、第1前ライン誤差利用画素のうち、ライン方向における最も前方の画素である前ライン上最前誤差利用画素(第1前ライン上最前誤差利用画素:図では「第1最前画素」と表されている)は、前回の1ライン処理での1の単位処理において第2対象画素とされた1つの画素であり、第1対象画素と対応付けられた画素(対応前回ライン処理画素)とされており、その画素の変換誤差値ΔY、つまり、本第1単位処理では画素[2(m−1),n+2]の変換誤差値ΔY[2(m−1),n+2]のみが、外部から本画像処理装置に入力され(以下、この変換誤差値を「入力変換誤差値ΔY0」という場合がある)、他の誤差利用画素の変換誤差値ΔYは、今回の単位処理では、外部から入力されない。 In order to calculate the first average error value ΔY AVE · 1 , an error use pixel (first error use pixel) is set for the first target pixel in a range surrounded by a solid line in the drawing. More specifically, the 2m-1 line that is the target line is the relevant line (first relevant line), and the 2 (m-1) line that is the interpolation line in the previous one-line process is the previous line (first previous line). In this case, five pixels [2 (m−1), n−2] to [2 (m−) that are continuously located on the first previous line around the same n columns as the column of the first target pixel. 1), n + 2] are located on the rear side in the line direction of the first target pixel on the first relevant line as the previous line error utilization pixel (the first previous line error utilization pixel) and are continuous therewith. The two pixels [2m−1, n−2] and [2m−1, n−1] to be set are respectively set as the on-line error use pixel (first on-line error use pixel). . Incidentally, as shown in FIG. 3, a weighting coefficient K corresponding to the relative position with respect to the target pixel is set for each error utilization pixel. Specifically, for example, for the previous line error utilization pixels, Ka = 1/16, Kb = 1/16, Kc = 4/16, Kd = from the rear to the front in the line direction, respectively. A coefficient having a value of 1/16, Ke = 1/16 is Kf = 4/16, Kg = 4/16 for the line error utilization pixels from the rear to the front in the line direction. Coefficients are set (Ka = 1/16, Kb = 2/16, Kc = 4/16, Kd = 2/16, Ke = 1/16, Kf = 2/16, Kg = 4/16 It is also possible to adopt a value or the like), and the weighted coefficient K and the conversion error value ΔY of each of the first error-utilizing pixels are multiplied to obtain a sum of the multiplied values. 1 average error value [Delta] Y AVE · 1 is calculated The first average error value ΔY AVE · 1 calculated in this way is used in the determination of the first conversion pixel value Z 1 described above. In the image processing of the present embodiment, as will be described in detail later, in calculating the first average error value ΔY AVE · 1 , the front line that is the foremost pixel in the line direction among the first previous line error use pixels. The uppermost error use pixel (the first error use pixel on the first front line: expressed as “first foremost pixel” in the drawing) is set as the second target pixel in one unit process in the previous one line process. The pixel is a pixel associated with the first target pixel (corresponding previous line processing pixel), and the pixel conversion error value ΔY, that is, the pixel [2 (m -1), n + 2], only the conversion error value ΔY [2 (m−1), n + 2] is externally input to the image processing apparatus (hereinafter, this conversion error value is referred to as “input conversion error value ΔY 0 ”). Conversion error of other error utilizing pixels The difference value ΔY is not input from the outside in the current unit processing.

また、第1単位処理では、上記第1補正後対象画素値Y1’と第1変換画素値Z1とに基づいて、第1対象画素についての変換誤差値(第1変換誤差値)ΔY1も取得される。詳しく言えば、変換画素値Z1が1である場合には、第1補正後対象画素値Y1’から上限画素値YMAX(例えば、255、あるいはそれ以下の何らかの値)を減じた値が、変換画素値Z1が0である場合には、第1補正後対象画素値Y1’から下限画素値YMIN(例えば、0)を減じた値が、それぞれ、第1変換誤差値ΔY1とされる。 Further, in the first unit process, the first post-correction pixel value Y 1 'and on the basis of the first conversion pixel value Z 1, the conversion error value for the first pixel (first conversion error value) [Delta] Y 1 Also get. Specifically, when the converted pixel value Z 1 is 1, a value obtained by subtracting an upper limit pixel value Y MAX (for example, some value of 255 or less) from the first corrected target pixel value Y 1 ′. When the converted pixel value Z 1 is 0, the value obtained by subtracting the lower limit pixel value Y MIN (for example, 0) from the first corrected target pixel value Y 1 ′ is the first conversion error value ΔY 1 , respectively. It is said.

補間ライン上の画素[2m,n−2]を第2対象画素とした第2単位処理では、後に説明する理由から、前々回の単位処理において入力された原始画素値X’[m,n]、つまり、前々回の第1単位処理での第1対象画素の原始画素値が、第2対象画素の画素値(第2対象画素値)Y2とされ、その第2対象画素値Y2に対する変換画像値(第2変換画素値)Z2が取得される。その取得に際しては、第1対象画素の場合と同様、第2対象画素に対応する誤差利用画素の平均誤差値(第2平均誤差値)ΔYAVE・2が利用され、第2対象画素値Y2と第2平均誤差値ΔYAVE・2とが加算されることで第2対象画素値Y2が補正された補正後対象画素値(第2補正後対象画素値)Y2’が求められ、その第2補正後対象画素値Y2’と2値化閾値Sとが比較されて、第2変換画素値Z1が決定される。このようにして決定された第2変換画素値Z2は、変換画像における変換画素値Z[2m,n−2]として出力される。 In the second unit processing in which the pixel [2m, n−2] on the interpolation line is the second target pixel, for the reason described later, the source pixel value X ′ [m, n] input in the previous unit processing is That is, the original pixel value of the first target pixel in the first unit processing of the last time is set as the pixel value (second target pixel value) Y 2 of the second target pixel, and the converted image for the second target pixel value Y 2 A value (second converted pixel value) Z 2 is acquired. In the acquisition, as in the case of the first target pixel, the average error value (second average error value) ΔY AVE · 2 of the error use pixel corresponding to the second target pixel is used to obtain the second target pixel value Y 2. And the second average error value ΔY AVE · 2 are added to obtain a corrected target pixel value (second corrected target pixel value) Y 2 ′ in which the second target pixel value Y 2 is corrected. The second corrected target pixel value Y 2 ′ and the binarization threshold value S are compared to determine the second converted pixel value Z 1 . The second converted pixel value Z 2 determined in this way is output as the converted pixel value Z [2m, n−2] in the converted image.

第2平均誤差値ΔYAVE・1の算出のための誤差利用画素(第2誤差利用画素)は、図に破線で囲った範囲において、第2対象画素に対して、第1誤差利用画素の第1対象画素に対する位置関係と等しい位置関係となるように設定される。具体的には、補間ラインである2mラインを当該ライン(第2当該ライン)とし、対象ラインである2m−1ラインを前ライン(第2前ライン)とした場合において、第2前ライン上に、画素[2m−1,n−4]〜[2m−1,n]が、前ライン上誤差利用画素(第2前ライン上誤差利用画素)として、また、第2当該ライン上に、第2対象画素のライン方向における後方側に位置してそれと連続する2つの画素[2m,n−4],[2m,n−3]が、当該ライン上誤差利用画素(第2当該ライン上誤差利用画素)として、それぞれ設定されることになる。また、それらの誤差利用画素の各々に対する重み付け係数Kは、第1単位処理における場合と同様、図3に示すように設定されており、第1単位処理の場合と同様の処理によって、第2平均誤差値ΔYAVE・2が算出される。 An error use pixel (second error use pixel) for calculating the second average error value ΔY AVE · 1 is the first error use pixel of the second target pixel in a range surrounded by a broken line in the figure. The positional relationship is set to be equal to the positional relationship with respect to one target pixel. Specifically, when the 2m line that is an interpolation line is the relevant line (second relevant line) and the 2m-1 line that is the target line is the previous line (second previous line), , Pixels [2m−1, n−4] to [2m−1, n] are second pixels on the previous line as error utilization pixels (second previous line error utilization pixels) and on the second line. Two pixels [2m, n-4] and [2m, n-3] that are located on the rear side in the line direction of the target pixel and are continuous therewith are the on-line error use pixel (second on-line error use pixel). ) Will be set respectively. Further, the weighting coefficient K for each of the error utilization pixels is set as shown in FIG. 3 as in the first unit process, and the second average is obtained by the same process as in the first unit process. An error value ΔY AVE · 2 is calculated.

本第2単位処理では、第2前ライン誤差利用画素のうち、ライン方向における最も前方の画素である前ライン上最前誤差利用画素(第2前ライン上最前誤差利用画素:図では、「第2最前画素」と表されている)は、画素[2m−1,n]であり、それは、すなわち、今回の第1単位処理における第1対象画素とされている。したがって、この第2前ライン上最前誤差利用画素の変換誤差値ΔYには、第1単位処理によって取得された第1変換誤差値ΔY1が、そのまま、詳しく言えば、当該画像処理装置から出力されることなく利用される。本実施例の画像処理では、このような利用が可能なように、第1対象画素と第2対象画素とのライン方向における相対位置関係が設定され、第2単位処理は、第1単位処理に対して、コラム数において2つ遅れた画素の単位処理を行うようにされているのである。したがって、第1対象画素値とされた上記原始画素値X’[m,n]は、当該画像処理装置内において、その画素値が次に第2対象画素値とされるまで、一時的にではあるが記憶される。また、第2単位処理においても、第1単位処理の場合と同様の処理によって、第2対象画素についての変換誤差値(第2変換誤差値)ΔY2が取得される。この取得された第2変換誤差値ΔY2は、画像処理装置から出力され、当該装置外に設けられたメモリに記憶され、当該1ライン処理の次の1ライン処理において、先に説明した対応前回ライン処理画素の画素値として利用される。 In the second unit processing, among the second previous line error use pixels, the foremost error use pixel on the previous line which is the foremost pixel in the line direction (the second error use pixel on the second previous line: The pixel [2m−1, n] is the first target pixel in the current first unit process. Therefore, the first conversion error value ΔY 1 obtained by the first unit processing is output from the image processing apparatus as it is, in detail, as the conversion error value ΔY of the foremost error utilization pixel on the second previous line. It is used without being. In the image processing of the present embodiment, the relative positional relationship in the line direction between the first target pixel and the second target pixel is set so that such use is possible, and the second unit processing is changed to the first unit processing. On the other hand, unit processing of pixels delayed by two in the number of columns is performed. Therefore, the primitive pixel value X ′ [m, n] set as the first target pixel value is temporarily not changed until the pixel value is set as the second target pixel value in the image processing apparatus. There is memorized. Also in the second unit process, the conversion error value (second conversion error value) ΔY 2 for the second target pixel is acquired by the same process as in the first unit process. The acquired second conversion error value ΔY 2 is output from the image processing apparatus, stored in a memory provided outside the apparatus, and in the one-line process next to the one-line process, the corresponding previous time described above. Used as the pixel value of the line processing pixel.

以上、画像処理の概要について説明したが、上記説明において使用された種々の値等については、第1単位処理,第2単位処理に対応して、「第1」,「第2」という区別をつけ、また、符号に添え字1,2を付している。以下の説明においては、「第1」,「第2」を表記しない総称を使用する場合もあることとし、また、その場合には、符号の添え字を付さない場合もあることとする。   Although the outline of the image processing has been described above, the various values used in the above description are distinguished from each other as “first” and “second” corresponding to the first unit processing and the second unit processing. In addition, subscripts 1 and 2 are added to the reference numerals. In the following description, a generic name that does not represent “first” and “second” may be used, and in that case, a subscript may not be added.

≪画像処理装置の構成≫
本実施例の画像処理装置10は、ラインスキャナとインクジェットプリンタとが複合した複合機内に組み込まれており、図4にブロック図で示すような構成とされている。原始画像データは、ラインスキャナで読み取られつつある原始画像データが、当該画像処理装置外に設けられたフィルタ12によって平滑化等のフィルタ処理が施されつつ、1つの原始画素値(詳しくは、フィルタ処理後原始画素値)X’[m,n]ごとに、順次、画像処理装置10に入力される。この原始画素値X’[m,n]は、対象画素値Yとして扱われる。
<< Configuration of image processing apparatus >>
The image processing apparatus 10 according to the present embodiment is incorporated in a complex machine in which a line scanner and an inkjet printer are combined, and has a configuration as shown in a block diagram in FIG. The primitive image data is obtained by applying a primitive pixel value (specifically, a filter pixel, which is smoothed) to the primitive image data being read by the line scanner by a filter 12 provided outside the image processing apparatus. For each post-processing primitive pixel value) X ′ [m, n], the pixel values are sequentially input to the image processing apparatus 10. This primitive pixel value X ′ [m, n] is treated as the target pixel value Y.

画像処理装置10は、補正部14と比較部16とを含んで構成されて対象画素値Yに対する変換画素値Zを決定する変換画素値決定部18を有している。補正部14は、加算器を主体に構成されており、この補正部14によって、対象画素値Yと平均誤差値ΔYAVE対象画素値とが加算されることで、対象画素値Yが平均誤差値ΔYAVEによって補正された補正後対象画素置Y’を得るようにされている。比較部16は、比較器を主体に構成されており、補正後対象画素置Y’と2値化閾値Sとを比較することによって対象画素についての2値化された変換画素値Zを得るようにされている。また、画像処理装置10は、補正後対象画素値Y’と変換画素値Zとに基づいて、対象画素の変換誤差値ΔYを算出する変換誤差値算出部20を有している。そして、さらに、上述した2回の単位処理のそれぞれにおいて、誤差利用画素の平均誤差値ΔYAVEを算出する2つの平均誤差算出部を有している。詳しく言えば、それらの1つは、第1単位処理において、外部からの入力変換誤差値ΔY0に基づいて第1平均誤差値ΔYAVE・1を算出する第1平均誤差算出部22であり、もう1つは、第2単位処理において第2平均誤差値ΔYAVE・2を算出する第2平均誤差算出部24である。 The image processing apparatus 10 includes a correction pixel value determination unit 18 that includes a correction unit 14 and a comparison unit 16 and determines a conversion pixel value Z for the target pixel value Y. The correction unit 14 is configured mainly by an adder. The correction unit 14 adds the target pixel value Y and the average error value ΔY AVE target pixel value, so that the target pixel value Y becomes the average error value. A corrected target pixel position Y ′ corrected by ΔY AVE is obtained. The comparison unit 16 is mainly composed of a comparator, and obtains a binarized converted pixel value Z for the target pixel by comparing the corrected target pixel position Y ′ with the binarization threshold S. Has been. Further, the image processing apparatus 10 includes a conversion error value calculation unit 20 that calculates the conversion error value ΔY of the target pixel based on the corrected target pixel value Y ′ and the conversion pixel value Z. Further, in each of the two unit processes described above, there are two average error calculation units for calculating the average error value ΔY AVE of the error use pixel. In detail, one of them, the first unit processing a first average error calculator 22 for calculating a first average error value [Delta] Y AVE · 1 based on the input conversion error value [Delta] Y 0 from the outside, The other is a second average error calculation unit 24 that calculates the second average error value ΔY AVE · 2 in the second unit process.

上記2つの平均誤差算出部をさらに詳しく説明すれば、第1平均誤差算出部22は、図5にブロック図で示すように、それぞれが乗算器を主体とした7つの乗算部26a〜26gと、それぞれがレジスタ28a〜28gと加算器30b〜30e,30gとを主体とした7つの加算記憶部32a〜32g(加算記憶部32a,32fにはレジスタは設けられていない)と、最終加算器36とを含んで構成されている。   The two average error calculation units will be described in more detail. The first average error calculation unit 22 includes seven multiplication units 26a to 26g each including a multiplier, as shown in a block diagram in FIG. Seven adder storage units 32a to 32g each consisting mainly of registers 28a to 28g and adders 30b to 30e and 30g (addition storage units 32a and 32f are not provided with a register), a final adder 36, It is comprised including.

乗算部26a〜26eと加算記憶部32a〜32eとは、それぞれが1対1に対応しており、また、それらは、第1平均誤差値ΔYAVE・1の算出処理における5つの第1前ライン誤差利用画素の各々に、詳しく言えば、それらの添え字a〜eの順に、ライン方向の前方に向かって第1前ライン誤差利用画素の各々に対応している。このことにより、乗算部26a〜26eと加算記憶部32a〜32eとは、ライン方向に仮想的に配置されたものとなっている。つまり、図における上方が、ライン方向の後方に,下方が、ライン方向における前方に対応するものとなっている。 The multiplication units 26a to 26e and the addition storage units 32a to 32e have a one-to-one correspondence, and they are the five first front lines in the calculation process of the first average error value ΔY AVE · 1. More specifically, each of the error utilization pixels corresponds to each of the first previous line error utilization pixels in the order of their subscripts a to e toward the front in the line direction. Thus, the multiplication units 26a to 26e and the addition storage units 32a to 32e are virtually arranged in the line direction. That is, the upper side in the figure corresponds to the rear in the line direction, and the lower side corresponds to the front in the line direction.

上記のような構成から、乗算部26a〜26e、加算記憶部32a〜32eは、それぞれ、前ライン用乗算部(第1前ライン用乗算部),前ライン用加算記憶部(第1前ライン用加算記憶部)として機能する。詳しく言えば、乗算部26a〜26eは、それぞれ、当該画像処理装置10に入力された第1前ライン上最前誤差利用画素の変換誤差値である入力変換誤差値ΔY0と、重み付け係数Ka〜Keの各々との乗算処理を行うようにされている。また、加算記憶部32b〜32eは、自身に対応する乗算部26b〜26eの乗算処理の結果値と、自身の直近の後方側(図における上方側)の加算記憶部32a〜32dのレジスタ28a〜28dに記憶されている記憶値とを自身の加算器30b〜30eによって加算し、その加算値を、自身のレジスタ28b〜28eに記憶するようにされており、加算記憶部32aは、自身に対応する乗算部26aの乗算処理の結果値を、自身のレジスタ28b〜28eに記憶するようにされている。 From the above configuration, the multipliers 26a to 26e and the addition storage units 32a to 32e are respectively a previous line multiplication unit (first front line multiplication unit) and a previous line addition storage unit (first front line use). Functions as an addition storage unit). Specifically, the multiplying units 26a to 26e respectively input the conversion error value ΔY 0 that is the conversion error value of the foremost error use pixel on the first previous line and is input to the image processing apparatus 10 and the weighting coefficients Ka to Ke. Multiplication processing with each of the above is performed. In addition, the addition storage units 32b to 32e and the result values of the multiplication processes of the multiplication units 26b to 26e corresponding to the addition storage units 32b to 32e and the registers 28a to 32d of the addition storage units 32a to 32d on the latest rear side (upper side in the figure) of itself. The stored value stored in 28d is added by its own adders 30b to 30e, and the added value is stored in its own register 28b to 28e. The addition storage unit 32a corresponds to itself. The result value of the multiplication process of the multiplying unit 26a is stored in its own registers 28b to 28e.

同様に、乗算部26f,26gと加算記憶部32f,32eとは、それぞれが1対1に対応しており、また、それらは、第1平均誤差値ΔYAVE・1の算出処理における2つの第1当該ライン誤差利用画素の各々に、詳しく言えば、それらの添え字f,gの順に、ライン方向の前方に向かってそれら第1当該ライン誤差利用画素の各々に対応している。このことにより、乗算部26f,26gと加算記憶部32f,32gとは、乗算部26a〜26e,加算記憶部32a〜32eと同様に、ライン方向に仮想的に配置されたものとなっている。つまり、図における上方が、ライン方向の後方に,下方が、ライン方向における前方に対応するものとなっている。 Similarly, the multiplication units 26f and 26g and the addition storage units 32f and 32e correspond to each other on a one-to-one basis, and they correspond to the two first processes in the calculation process of the first average error value ΔY AVE · 1 . More specifically, each of the one line error using pixels corresponds to each of the first line error using pixels in the order of the subscripts f and g in the forward direction in the line direction. As a result, the multiplication units 26f and 26g and the addition storage units 32f and 32g are virtually arranged in the line direction, like the multiplication units 26a to 26e and the addition storage units 32a to 32e. That is, the upper side in the figure corresponds to the rear in the line direction, and the lower side corresponds to the front in the line direction.

上記のような構成から、乗算部26f,26g、加算記憶部32f,32gは、それぞれ、当該ライン用乗算部(第1当該ライン用乗算部),当該ライン用加算記憶部(第1当該ライン用加算記憶部)として機能する。詳しく言えば、乗算部26f,26gは、それぞれ、変換誤差値算出部20によって算出された今回の第1対象画素の変換誤差値である第1変換誤差値ΔY1を、第1当該ライン上の次回の第1単位処理における第1対象画素の直ぐ後方側の画素の変換誤差値ΔYとして、それと重み付け係数Kf,Kgの各々との乗算処理を行うようにされている。また、加算記憶部32gは、自身に対応する乗算部26gの乗算処理の結果値と、自身の直近の後方側(図における上方側)の加算記憶部32gのレジスタ28fに記憶されている記憶値とを自身の加算器30gによって加算し、その加算値を、自身のレジスタ28gに記憶するようにされており、加算記憶部32fは、自身に対応する乗算部26fの乗算処理の結果値を、自身のレジスタ28fに記憶するようにされている。 With the above-described configuration, the multiplication units 26f and 26g and the addition storage units 32f and 32g respectively include the line multiplication unit (first corresponding line multiplication unit) and the line addition storage unit (first corresponding line use). Functions as an addition storage unit). In detail, the multiplication unit 26f, 26 g, respectively, the first conversion error value [Delta] Y 1 is a conversion error value of the first target pixel of the current calculated by the conversion error value computing section 20, the first the line of The conversion error value ΔY of the pixel immediately behind the first target pixel in the next first unit process is multiplied by each of the weighting coefficients Kf and Kg. Further, the addition storage unit 32g has a result value of the multiplication process of the multiplication unit 26g corresponding to itself, and a storage value stored in the register 28f of the addition storage unit 32g on the latest rear side (upper side in the figure) of itself. Is added by its own adder 30g, and the addition value is stored in its own register 28g, and the addition storage unit 32f obtains the result value of the multiplication process of the multiplication unit 26f corresponding to itself. It is stored in its own register 28f.

そして、第1平均誤差算出部22は、加算記憶部32eのレジスタ28eの値と、加算記憶部32gのレジスタ28gの値とが、最終加算器36によって加算されるように構成されており、また、加算記憶部32a〜32e,加算記憶部32f,32gは、それぞれ、前方に配置されたものによる処理から順次実行されるようにされている。つまり、図における下方に位置するものから上方に位置するものに向かって順次処理が行われるようにされているのである。さらに詳しく説明すれば、この第1平均誤差算出部22の処理は、まず、乗算部26e,加算記憶部32eによる処理と、それに続く最終加算器36による加算処理が実行されて、今回の第1対象画素に対する第1誤差利用画素の第1平均誤差値ΔYAVE・1が算出され、その後に、乗算部26a〜26d、加算記憶部32a〜32dによる処理および乗算部26f,26g、加算記憶部32f,32gによる処理が、前方側に位置するものから順に行われる。したがって、第1平均誤差値ΔYAVE・1が算出された後の処理は、次の回の第1単位処理における第1平均誤差値ΔYAVE・1の算出のための準備処理として実行されることになる。 The first average error calculation unit 22 is configured such that the value of the register 28e of the addition storage unit 32e and the value of the register 28g of the addition storage unit 32g are added by the final adder 36. The addition storage units 32a to 32e and the addition storage units 32f and 32g are sequentially executed from the processing by the one arranged forward. In other words, the processing is sequentially performed from the lower position to the upper position in the figure. More specifically, the processing of the first average error calculation unit 22 is performed by first executing processing by the multiplication unit 26e and the addition storage unit 32e, and subsequent addition processing by the final adder 36. A first average error value ΔY AVE · 1 of the first error utilization pixel with respect to the target pixel is calculated, and then processing by the multiplication units 26a to 26d and the addition storage units 32a to 32d and multiplication units 26f and 26g, and an addition storage unit 32f , 32g are performed in order from the one located on the front side. Therefore, processing after the first average error value [Delta] Y AVE · 1 is calculated, it is executed as a preparation process for the first average error value [Delta] Y AVE · 1 calculated in the first unit processing the next round become.

第2平均誤差算出部24は、図6にブロック図で示すように、それぞれが乗算器を主体とした7つの乗算部38a〜38gと、それぞれがレジスタ40a〜40gと加算器42b〜42e,42gとを主体とした7つの加算記憶部44a〜44g(加算記憶部44a,44fにはレジスタは設けられていない)と、最終加算器48とを含んで構成されている。   As shown in the block diagram of FIG. 6, the second average error calculation unit 24 includes seven multiplication units 38a to 38g each of which mainly includes a multiplier, and registers 40a to 40g and adders 42b to 42e and 42g, respectively. And 7 addition storage units 44a to 44g (addition storage units 44a and 44f are not provided with a register) and a final adder 48.

上記構成は、第1平均誤差算出部22と同様であるため、説明を簡単に行なえば、乗算部38a〜38e,加算記憶部44a〜44eは、それぞれ、第2平均誤差値ΔYAVE・2の算出処理における5つの第2前ライン誤差利用画素の各々に対応し、前ライン用乗算部(第2前ライン用乗算部),前ライン用加算記憶部(第2前ライン用加算記憶部)として機能する。また、乗算部38f,38g,加算記憶部44f,44gは、それぞれ、2つの第2当該ライン誤差利用画素の各々に対応し、当該ライン用乗算部(第2当該ライン用乗算部),当該ライン用加算記憶部(第2当該ライン用加算記憶部)として機能する。なお、第2平均誤差値算出部24では、乗算部38a〜38eは、それぞれ、変換誤差値算出部20によって算出された今回の第1単位処理における第1対象画素の変換誤差値である第1変換誤差値ΔY1を、第2前ライン上最前誤差利用画素の変換誤差値として、それと重み付け係数Ka〜Keの各々との乗算処理を行うようにされている。また、乗算部38f,38gは、それぞれ、変換誤差値算出部20によって算出された今回の第2対象画素の変換誤差値である第2変換誤差値ΔY2を、第2当該ライン上の次回の第2単位処理における第2対象画素の直ぐ後方側の画素の変換誤差値ΔYとして、それと重み付け係数Kf,Kgの各々との乗算処理を行うようにされている。そして、第1変換誤差算出部24と同様の順に処理がなされて、今回の第2対象画素に対する第2誤差利用画素の第2平均誤差値ΔYAVE・2が算出され、次の回の第2単位処理における第2平均誤差値ΔYAVE・2の算出のための準備処理が行われる。 Since the above configuration is the same as that of the first average error calculation unit 22, simply explaining, the multiplication units 38 a to 38 e and the addition storage units 44 a to 44 e each have a second average error value ΔY AVE · 2 . Corresponding to each of the five second previous line error utilization pixels in the calculation process, as a previous line multiplication unit (second previous line multiplication unit) and a previous line addition storage unit (second previous line addition storage unit) Function. Further, the multiplication units 38f and 38g and the addition storage units 44f and 44g correspond to each of the two second line error utilization pixels, respectively, the line multiplication unit (second line multiplication unit), and the line It functions as an addition storage unit (second addition storage unit for the line). Note that, in the second average error value calculation unit 24, the multiplication units 38a to 38e are first conversion error values of the first target pixel calculated in the current first unit process calculated by the conversion error value calculation unit 20, respectively. The conversion error value ΔY 1 is used as the conversion error value of the foremost error utilization pixel on the second previous line, and multiplication processing is performed on each of the weighting coefficients Ka to Ke. Further, multiplying unit 38f, 38 g, respectively, the second conversion error value [Delta] Y 2 is a conversion error value of the second target pixel of the current calculated by the conversion error value computing section 20, the second the lines of the next As the conversion error value ΔY of the pixel immediately behind the second target pixel in the second unit process, a multiplication process is performed on the conversion error value ΔY and each of the weighting coefficients Kf and Kg. Then, processing is performed in the same order as the first conversion error calculation unit 24, and the second average error value ΔY AVE · 2 of the second error utilization pixel for the current second target pixel is calculated, and the second time of the next round. Preparation processing for calculating the second average error value ΔY AVE · 2 in the unit processing is performed.

ここで、当該画像処理装置10の外部に設けられている変換誤差値記憶メモリ50は、図2に示すように、概ね1ライン上の画素数に相当する記憶領域を備えたラインメモリとされており(実際は、第1対象画素と第2対象画素とのライン方向の位置関係に依拠して、ライン方向における前方,後方のそれぞれに2画素分ずつ余分に記憶領域が設けられている)、図に示すように、それぞれの領域に、コラムに対応した変換誤差値・・・,ΔY(n−1),ΔY(n),ΔY(n+1),・・・が記憶されている。第2単位処理の実行ごとに、第2変換誤差値ΔY2が、第2対象画素のコラムに対応する記憶領域に記憶され、また、第1単位処理ごとに、第1対象画素に対応付けられた対応前回ライン処理画素、すなわち、第1前ライン上最前誤差利用画素のコラムに対応する記憶領域から読み出される。この変換誤差値記憶メモリ50は、画像処理装置10内に設けられるものであってもよく、そのように構成すれば、当該画像処理装置10と外部との画素値の入出力処理をより簡素化することが可能である。 Here, the conversion error value storage memory 50 provided outside the image processing apparatus 10 is a line memory having a storage area substantially corresponding to the number of pixels on one line, as shown in FIG. (Actually, depending on the positional relationship between the first target pixel and the second target pixel in the line direction, an extra storage area is provided for each of two pixels in the front and rear in the line direction). .., ΔY (n−1), ΔY (n), ΔY (n + 1),... Corresponding to the columns are stored in the respective areas. Each time the second unit process is executed, the second conversion error value ΔY 2 is stored in the storage area corresponding to the column of the second target pixel, and is associated with the first target pixel for each first unit process. The corresponding previous line process pixel, that is, the storage area corresponding to the column of the foremost error utilization pixel on the first previous line is read out. This conversion error value storage memory 50 may be provided in the image processing apparatus 10, and if configured in this manner, the pixel value input / output processing between the image processing apparatus 10 and the outside is further simplified. Is possible.

また、画像処理装置10は、原始画素値一時記憶部52を備えている。この一時記憶部52は、図2に示すように、3つの記憶領域FIFO(0)〜FIFO(−2)を有する先入れ先出しレジスタを主体に構成されており、その記憶領域の記憶値は、記憶領域FIFO(0)〜FIFO(−2)を順次移動させられるようになっている。このような構成により、今回の単位処理において原始画素値一時記憶部52に入力された原始画素値X’[m,n]は、次々回の単位処理において、第2対象画素値Y2として利用される。 In addition, the image processing apparatus 10 includes a primitive pixel value temporary storage unit 52. As shown in FIG. 2, the temporary storage unit 52 is mainly configured by a first-in first-out register having three storage areas FIFO (0) to FIFO (-2). The storage value of the storage area is stored in the storage area. FIFO (0) to FIFO (-2) can be moved sequentially. With such a configuration, the primitive pixel value X ′ [m, n] input to the primitive pixel value temporary storage unit 52 in the current unit process is used as the second target pixel value Y 2 in the subsequent unit process. The

以上のような構成から、画像処理装置10は、変換画素値決定部18,変換誤差値決定部20,第1平均誤差算出部22を含んで構成される第1単位処理実行部54を備え、変換画素値決定部18,変換誤差値決定部20,第2平均誤差算出部24を含んで構成される第2単位処理実行部56を備えるものとなっている。つまり、上記変換画素値決定部18,変換誤差値決定部20は、第1単位処理実行部54,第2単位処理実行部56が共用する機能部とされ、第1単位処理における一部の処理と第2単位処理における一部の処理とを、交互に行うようにされているのである。   With the configuration as described above, the image processing apparatus 10 includes the first unit processing execution unit 54 that includes the conversion pixel value determination unit 18, the conversion error value determination unit 20, and the first average error calculation unit 22. A second unit processing execution unit 56 including a conversion pixel value determination unit 18, a conversion error value determination unit 20, and a second average error calculation unit 24 is provided. That is, the conversion pixel value determination unit 18 and the conversion error value determination unit 20 are function units shared by the first unit processing execution unit 54 and the second unit processing execution unit 56, and a part of the processing in the first unit processing. And some processes in the second unit process are alternately performed.

≪画像処理のフロー≫
図7に、画像処理装置10による上述の画像処理のフローチャートを示す。以下に、そのフローチャートを基に、本画像処理の流れを、時間の進行に沿って説明する。なお、画像処理装置10は電子回路を主体として構成されたものであることから、2以上の処理が並行して実行され、実際には、本画像処理装置10画像処理のプロセスは、厳密な意味において、このフローチャートに従うものとはならない。ここで説明する処理の流れは、あくまでも、本画像処理の理解を容易にするための目安である。
≪Image processing flow≫
FIG. 7 shows a flowchart of the above-described image processing by the image processing apparatus 10. Below, based on the flowchart, the flow of this image processing is demonstrated along with progress of time. Since the image processing apparatus 10 is configured mainly with an electronic circuit, two or more processes are executed in parallel. Actually, the image processing process of the image processing apparatus 10 has a strict meaning. However, it does not follow this flowchart. The processing flow described here is merely a guideline for facilitating understanding of the image processing.

本画像処理では、まず、ステップ1(以下、「S1」と略す。他のステップも同様である。)において、ラインカウンタとして機能するmの値が1にリセットされる。続く、S2において、コラムカウンタとして機能するnの値が1にリセットされるとともに、原始画素値一時記憶部52の記憶領域FIFO(0)〜FIFO(−2)の各々の値、第1平均誤差算出部22が有するレジスタ28a〜28gのレジスタ値RA1〜RG1、第2平均誤差算出部24が有するレジスタ40a〜40gのレジスタ値RA2〜RG2が、それぞれ0にリセットされる。なお、変換誤差値記憶メモリ50は、本画像処理が開始される時点で、記憶領域がすべて0にリセットされている。 In this image processing, first, in step 1 (hereinafter abbreviated as “S1”, the same applies to other steps), the value of m that functions as a line counter is reset to 1. Subsequently, in S2, the value of n functioning as a column counter is reset to 1, and each value of the storage areas FIFO (0) to FIFO (−2) of the original pixel value temporary storage unit 52, the first average error The register values R A1 to R G1 of the registers 28a to 28g included in the calculation unit 22 and the register values R A2 to R G2 of the registers 40a to 40g included in the second average error calculation unit 24 are reset to 0, respectively. In the conversion error value storage memory 50, all storage areas are reset to 0 when the main image processing is started.

次に、S3において、原始画像のフィルタ処理後の原始画素値X’[m,n]が、画像処理装置10に入力される。続いて、その原始画素値X’[m,n]が、S4において、第1対象画素値Y1として認定され、S5において、原始画素値一時記憶部52の記憶領域FIFO(0)に記憶される。次に、S6において、変換誤差値記憶メモリ50のn+2コラムに対応する記憶領域の記憶値ΔY(n+2)が、入力変換誤差値ΔY0として、入力される。 Next, in S <b> 3, the original pixel value X ′ [m, n] after the filtering process of the original image is input to the image processing apparatus 10. Subsequently, the source pixel value X ′ [m, n] is recognized as the first target pixel value Y 1 in S4, and is stored in the storage area FIFO (0) of the source pixel value temporary storage unit 52 in S5. The Next, in S6, the storage value [Delta] Y of the storage area corresponding to the n + 2 columns of the conversion error value storage memory 50 (n + 2) is, as the input conversion error value [Delta] Y 0, is input.

次に、S7において、図8にフローチャートを示す第1単位処理が実行される。第1単位処理では、まず、S31において、乗算部26eによって、入力変換誤差値ΔY0と重み付け係数Keとが掛け合わされ、その掛け合わされたものとレジスタ28dの記憶値とが、加算記憶部32eの加算器30eによって加算され、その加算されたものが、レジスタ28eのレジスタ値RE1とされる。続くS32において、レジスタ28eのレジスタ値RE1と、レジスタ28gのレジスタ値RG1とが、最終加算器36によって加算されて、第1平均誤差値ΔYAVE・1が算出される。次いで、S33〜S35おいて、前方側から(図におけるより下方に位置するものから)順に、乗算部26d〜26bによって、入力変換誤差値ΔY0と重み付け係数Kd〜Kbの各々とが掛け合わされ、その掛け合わされたものとレジスタ28c〜28aの記憶値の各々が、加算記憶部32d〜32bの加算器30d〜30bによって加算され、その加算されたものの各々が、レジスタ28d〜28bのレジスタ値RD1〜RB1とされる。そして、S36において、乗算部26aによって、入力変換誤差値ΔY0と重み付け係数Kaとが掛け合わされ、その掛け合わされたものが、レジスタ28aのレジスタ値RA1とされる。それらS31〜S36の処理は、第1変換誤差算出部22によって行われる(フローチャートにおいて、破線で囲んだステップが第1変換誤差算出部22によって行われるステップである)。 Next, in S7, the first unit process shown in the flowchart of FIG. 8 is executed. In the first unit processing, first, in S31, the multiplication unit 26e, multiplied by the input conversion error value [Delta] Y 0 and the weighting coefficient Ke is, the stored value of the multiplied what was the register 28d is, in addition storage unit 32e The value is added by the adder 30e, and the added value becomes the register value R E1 of the register 28e. In subsequent S32, the register value R E1 of the register 28e and the register value R G1 of the register 28g are added by the final adder 36 to calculate the first average error value ΔY AVE · 1 . Next, in S33 to S35, the input conversion error value ΔY 0 and each of the weighting coefficients Kd to Kb are multiplied by the multiplication units 26d to 26b in order from the front side (from the lower side in the figure), The multiplied value and each of the stored values of the registers 28c to 28a are added by the adders 30d to 30b of the adding storage units 32d to 32b, and each of the added values is the register value R D1 of the registers 28d to 28b. ˜R B1 . Then, in S36, the multiplication unit 26a, multiplied by the input conversion error value [Delta] Y 0 and the weighting coefficient Ka is, those that multiplied is the register value R A1 of the register 28a. The processes of S31 to S36 are performed by the first conversion error calculation unit 22 (in the flowchart, steps surrounded by a broken line are steps performed by the first conversion error calculation unit 22).

次に、S37において、第1対象画素値Y1と第1平均誤差値ΔYAVE・1とが加算されることによって、第1対象画素値Y1を補正した第1補正後対象画素値Y1’が取得される。この処理は、補正部14によって行われる。次いで、S38において、第1補正後対象画素値Y1’が2値化閾値Sより大きいか否かが判断される。2値化閾値Sより大きい場合には、S39において、第1変換画素値Z1が1に決定され、2値化閾値S以下の場合には、S40において、第1変換画素値Z1が0に決定される。S38〜S40の処理は、比較部16によって行われ、S37〜S40の処理は、変換画素値決定部18によって行われることになる。そして、第1変換画素値Z1が1に決定された場合は、S41において、第1補正後対象画素値Y1’から前述の上限画素値YMAXが減じられ、第1変換画素値Z1が0に決定された場合は、S42において、第1補正後対象画素値Y1’から前述の下限画素値YMINが減じられて、第1変換誤差値ΔY1が算出される。それらS41,S42の処理は、変換誤差値算出部20によって実行される。 Next, in S37, the first corrected target pixel value Y 1 obtained by correcting the first target pixel value Y 1 by adding the first target pixel value Y 1 and the first average error value ΔY AVE · 1. 'Is acquired. This process is performed by the correction unit 14. Next, in S38, it is determined whether or not the first corrected target pixel value Y 1 ′ is larger than the binarization threshold S. If it is larger than the binarization threshold S, the first conversion pixel value Z 1 is determined to be 1 in S39, and if it is less than or equal to the binarization threshold S, the first conversion pixel value Z 1 is 0 in S40. To be determined. The processing of S38 to S40 is performed by the comparison unit 16, and the processing of S37 to S40 is performed by the conversion pixel value determination unit 18. If the first conversion pixel value Z 1 is determined to be 1, the above-described upper limit pixel value Y MAX is subtracted from the first corrected target pixel value Y 1 ′ in S41, and the first conversion pixel value Z 1 is determined. Is determined to be 0, in S42, the first lower limit pixel value Y MIN is subtracted from the first corrected target pixel value Y 1 ′ to calculate the first conversion error value ΔY 1 . The processes of S41 and S42 are executed by the conversion error value calculation unit 20.

次に、S43において、乗算部26gによって、算出された第1変換誤差値ΔY1と重み付け係数Kgとが掛け合わされ、その掛け合わされたものとレジスタ28fの記憶値とが、加算記憶部44gの加算器42gによって加算され、その加算されたものが、レジスタ28gのレジスタ値RG1とされる。そして、S44において、乗算部26fによって、第1変換誤差値ΔY1と重み付け係数Kfとが掛け合わされ、その掛け合わされたものがレジスタ28fのレジスタ値RF1とされる。それらS43,S44の処理は、第1変換誤差算出部22によって行われ、それらの処理が終了して、第1単位処理が終了する。 Next, in S43, the multiplying unit 26 g, is first converted error value [Delta] Y 1 calculated weighting coefficient Kg is multiplied, and the stored value of the multiplied what was the register 28f is, addition of adding storage unit 44g The value is added by the device 42g, and the added value is used as the register value R G1 of the register 28g. Then, in S44, the multiplication unit 26f, are first converted error value [Delta] Y 1 and the weighting coefficient Kf is multiplied, those that multiplied is the register value R F1 register 28f. The processes of S43 and S44 are performed by the first conversion error calculation unit 22, the processes are completed, and the first unit process is completed.

S7の第1単位処理の後、S8において、決定された第1変換画素値Z1が、変換画像における原始ライン上の画素[2m−1,n]の変換画素値Z[2m−1,n]として出力される。次に、S9において、原始画素値一時記憶部52の更新処理がなされる。具体的には、記憶領域FIFO(−2)の値が、FIFO(−1)の値とされ、続いて、FIFO(−1)の値がFIFO(0)の値とされる。そして、S10において、記憶領域FIFO(−2)の値が、第2対象画素値Y2とされる。このS10の処理の後、S11において、図9にフローチャートを示す第2単位処理が実行される。 After the first unit process S7, in S8, the first converted pixel value Z 1 is determined, pixels on source lines in the converted image [2m-1, n] of the converted pixel value Z [2m-1, n ] Is output. Next, in S9, the original pixel value temporary storage unit 52 is updated. Specifically, the value of the storage area FIFO (−2) is set to the value of FIFO (−1), and then the value of FIFO (−1) is set to the value of FIFO (0). Then, in S10, the value of the storage area FIFO (-2) is the second target pixel value Y 2. After the process of S10, in S11, the second unit process shown in the flowchart of FIG. 9 is executed.

第2単位処理におけるS51〜S64の各々は、第1単位処理におけるS31〜S44の各々と略同様であるため、それらの説明は簡単なものに留める。相違点は、第1単位処理において第1平均誤差算出部22において行われた処理(破線で囲んだ処理)が、第2平均誤差算出部24によって行われること、また、その処理において、入力変換誤差値ΔY0に代えて、第1単位処理において算出された第1変換誤差値ΔY1が、乗算部38a〜38gによって、それぞれ重み付け係数Ka〜Kgと掛け合わされること等である。この第2単位処理における第2平均誤差算出部24の処理によって第2平均誤差値ΔYAVE・2が算出され、第2単位処理においては、その第2平均誤差値ΔYAVE・2に基づいて、第2変換画素値Z2が決定され、第2変換誤差値ΔY2が算出されることになる。 Since each of S51 to S64 in the second unit process is substantially the same as each of S31 to S44 in the first unit process, only a simple description thereof will be given. The difference is that the process performed in the first average error calculation unit 22 in the first unit process (the process surrounded by a broken line) is performed by the second average error calculation unit 24, and the input conversion is performed in the process. Instead of the error value ΔY 0 , the first conversion error value ΔY 1 calculated in the first unit process is multiplied by the weighting coefficients Ka to Kg by the multipliers 38 a to 38 g, respectively. The second average error value ΔY AVE · 2 is calculated by the process of the second average error calculation unit 24 in the second unit process, and in the second unit process, based on the second average error value ΔY AVE · 2 , The second conversion pixel value Z 2 is determined, and the second conversion error value ΔY 2 is calculated.

第2単位処理の後、S12において、決定された第2変換画素値Z2が、変換画像における補間ライン上の画素[2m,n−2]の変換画素値Z[2m,n−2]として出力され、S13において、算出された第2変換誤差値ΔY2が、変換誤差値記憶メモリ50の第2対象画素のコラムに対応する記憶領域に、その記憶領域において記憶されるべき記憶値Y(n−2)として出力される。 After the second unit processing, in S12, the second converted pixel value Z 2 is determined, the pixel [2m, n-2] on the interpolation line in the converted image converted pixel value Z [2m, n-2] as In S13, the calculated second conversion error value ΔY 2 is stored in the storage area corresponding to the column of the second target pixel in the conversion error value storage memory 50 in the storage area Y ( n-2).

次に、S14において、nの値がカウントアップされ、続くS15において、nの値が、原始画像のコラム総数Nに2を加えた値より大きいか否かが判断される。その値以下の場合には、S3以降の処理が繰り返される。その値より大きい場合は、1ライン処理が完了したものとして、S16において、mの値がカウントアップされ、次の対象ラインについての1ライン処理に移行する。そして、S17において、mの値が原始画像のコラム総数Nをより大きいか否かが判断され、N以下である場合には、S2以降の処理が繰り返され、Nより大きい場合は、すべての1ライン処理が完了したものとして、画像処理が終了する。   Next, in S14, the value of n is counted up, and in subsequent S15, it is determined whether or not the value of n is larger than the value obtained by adding 2 to the total number N of columns of the original image. If the value is equal to or less than the value, the processes after S3 are repeated. If it is greater than that value, it is assumed that the one-line process has been completed, and the value of m is counted up in S16, and the process proceeds to the one-line process for the next target line. Then, in S17, it is determined whether or not the value of m is larger than the total column number N of the original image. If it is less than or equal to N, the process from S2 is repeated. As a result of completion of the line processing, the image processing ends.

なお、以上の処理においては、nが0以下の場合の第2単位処理、nがNより大きい場合における第1単位処理も存在する。それらの処理は、原始画像のマトリクスをはみ出す第2対象画素,第1対象画素についての処理となるため、ダミー的に行われる。   In the above processing, there is a second unit processing when n is 0 or less, and a first unit processing when n is larger than N. Since these processes are processes for the second target pixel and the first target pixel that protrude from the matrix of the original image, they are performed in a dummy manner.

また、上記画像処理は、電子回路によって構成される画像処理について説明したが、当該画像処理を、コンピュータを主体とする画像処理装置で行う場合には、上記フローチャートに従うプログラムを作成し、そのプログラムをコンピュータが実行させればよい。その場合は、画像処理装置10において実体を有して存在した各機能部は、その機能部が行っていた処理を実行する仮想的、あるいは、概念的な機能部となる。   In addition, the image processing described above is image processing configured by an electronic circuit. However, when the image processing is performed by an image processing apparatus mainly including a computer, a program according to the flowchart is created, and the program is It can be executed by a computer. In this case, each functional unit that has an entity in the image processing apparatus 10 becomes a virtual or conceptual functional unit that executes the processing performed by the functional unit.

≪変形例≫
以下に、第1平均誤差算出部22,第2平均誤差算出部24における処理の順序を入れ替えた変形例について説明する。なお、変形例の画像処理装置についても、画像処理装置10と呼ぶこととし、それが備える各機能部についても、同じ符号を用いることとする。
≪Modification≫
Hereinafter, a modified example in which the processing order in the first average error calculation unit 22 and the second average error calculation unit 24 is changed will be described. Note that the image processing apparatus according to the modified example is also referred to as the image processing apparatus 10, and the same reference numerals are used for the functional units included in the image processing apparatus.

変形例の画像処理装置10における第1平均誤差算出部22,第2平均誤差算出部24では、図12,図13にフローチャートを示すような順に、平均誤差値の算出処理が行われる。具体的には、図8におけるS31とS32とを、また、図9におけるS51とS52とを入れ替えただけである。図5,図6を参照しつつ説明すれば、まず、最終加算器36,48による加算処理が実行された後、乗算部38,40、加算記憶部32,44による処理が、ライン方向における前方側のもの(図における下方に位置するもの)から順次行われる。このような順序で処理が実行される場合、算出される第1平均誤差値ΔYAVE・1,第2平均誤差値ΔYAVE・2は、今回の単位処理における第1対象画素,第2対象画素に対する第1誤差利用画素,第2誤差利用画素のものであるが、第1平均誤差算出部22に入力される入力変換誤差値ΔY0,第2平均誤差算出部24に入力される第1変換誤差値ΔY1は、次回の単位処理における第1対象画素,第2対象画素に対応する第1前ライン上最前誤差利用画素,第2前ライン上最前誤差利用画素の変換誤差値ΔYとなる。つまり、乗算部38,40、加算記憶部32,44の各々による処理は、いずれも、次回の単位処理において第1平均誤差値ΔYAVE・1,第2平均誤差値ΔYAVE・2を算出するための準備処理となる。 In the first average error calculation unit 22 and the second average error calculation unit 24 in the image processing apparatus 10 according to the modification, the average error value calculation processing is performed in the order shown in the flowcharts of FIGS. Specifically, only S31 and S32 in FIG. 8 are replaced with S51 and S52 in FIG. 5 and 6, first, after the addition processing by the final adders 36 and 48 is executed, the processing by the multiplication units 38 and 40 and the addition storage units 32 and 44 is performed forward in the line direction. It is performed sequentially from the one on the side (the one located below in the figure). When the processes are executed in this order, the calculated first average error value ΔY AVE · 1 and second average error value ΔY AVE · 2 are the first target pixel and the second target pixel in the current unit processing. Of the first error utilization pixel and the second error utilization pixel with respect to the input conversion error value ΔY 0 input to the first average error calculation unit 22 and the first conversion input to the second average error calculation unit 24. The error value ΔY 1 becomes the conversion error value ΔY of the foremost error using pixel on the first previous line and the foremost error using pixel on the second previous line corresponding to the first target pixel and the second target pixel in the next unit processing. That is, the processing by each of the multiplication units 38 and 40 and the addition storage units 32 and 44 calculates the first average error value ΔY AVE · 1 and the second average error value ΔY AVE · 2 in the next unit processing. Preparation process.

上記のことから、本画像処理においては、第1対象画素を[2m−1,n]とする場合、図10に示すように、変換誤差値記憶メモリ50から入力される入力変換誤差値ΔY0は、次回の第1単位処理における第1対象画素についての第1前ライン上最前誤差利用画素(図では、「次回第1最前画素」と表されている)に対応する記憶領域に記憶されている記憶値ΔY(n+3)となる。また、今回の第1単位処理において算出される変換誤差値ΔY1が、次回の第2単位処理における第2対象画素についての第2前ライン上最前誤差利用画素(図では、「次回第2最前画素」と表されている)となるように、第2対象画画素が、第1対象画素に対して、ライン方向において3つ後方の画素とされる。 From the above, in this image processing, when the first target pixel is [2m−1, n], as shown in FIG. 10, the input conversion error value ΔY 0 input from the conversion error value storage memory 50 is shown. Are stored in a storage area corresponding to the foremost error use pixel on the first previous line (represented as “next first foremost pixel” in the drawing) for the first target pixel in the next first unit process. Stored value ΔY (n + 3). In addition, the conversion error value ΔY 1 calculated in the first unit process of this time is the first error use pixel on the second previous line for the second target pixel in the next second unit process (in the figure, “next second forefront next time”). The second target image pixel is three pixels behind in the line direction with respect to the first target pixel.

上記第1対象画素と第2対象画素との位置関係により、第2単位処理によって算出された第2変換誤差値ΔY2は、変換誤差値記憶メモリ50の第2対象画素のコラムに相当するコラムの記憶領域に記憶されるべき記憶値ΔY(n−3)とされ、また、原始画像値一時記憶部52の記憶領域は、FIFO(0)〜FIFO(3)と、1つ拡張されている。そして、本変形例の画像処理では、1つの原始画素値X’[m,n]についての単位処理によって、2つの変換画素値Z[2m−1,n],Z[2m,n−3]が得られることになる。なお、本画像処理のメインフローは、先に説明した画像処理との相違によって、図11に示すものとなる。このフローは、先のフローと略同様であるため、ここでの説明は省略する。また、画像処理装置10の全体構成も図4に示すものと同様であるため、その説明も省略する。 Due to the positional relationship between the first target pixel and the second target pixel, the second conversion error value ΔY 2 calculated by the second unit process corresponds to a column of the second target pixel in the conversion error value storage memory 50. The storage value ΔY (n−3) to be stored in the storage area of the original image value, and the storage area of the original image value temporary storage unit 52 is expanded by one from FIFO (0) to FIFO (3). . In the image processing of this modification, two converted pixel values Z [2m−1, n] and Z [2m, n−3] are obtained by unit processing for one primitive pixel value X ′ [m, n]. Will be obtained. The main flow of this image processing is as shown in FIG. 11 due to the difference from the image processing described above. Since this flow is substantially the same as the previous flow, description thereof is omitted here. The overall configuration of the image processing apparatus 10 is the same as that shown in FIG.

実施例の画像処理装置の対象となる原始画像の画像データおよび画像処理装置による画像処理が実行されて得られる変換画像の画像データを示す概念的なテーブルである。3 is a conceptual table showing image data of a source image that is a target of an image processing apparatus according to an embodiment and image data of a converted image obtained by executing image processing by the image processing apparatus. 実施例の画像処理装置によって実行される画像処理を説明するために用いる概念的なテーブルである。3 is a conceptual table used for explaining image processing executed by the image processing apparatus according to the embodiment. 実施例の画像処理装置による画像処理において設定されている重み付け係数を示す概念的なテーブルである。It is a conceptual table which shows the weighting coefficient set in the image processing by the image processing apparatus of an Example. 実施例の画像処理装置の構成を示すブロック図である。It is a block diagram which shows the structure of the image processing apparatus of an Example. 実施例の画像処理装置が有する第1平均誤差値算出部を示すブロック図である。It is a block diagram which shows the 1st average error value calculation part which the image processing apparatus of an Example has. 実施例の画像処理装置が有する第2平均誤差値算出部を示すブロック図である。It is a block diagram which shows the 2nd average error value calculation part which the image processing apparatus of an Example has. 実施例の画像処理装置によって実行される画像処理の流れを示すフローチャートである。6 is a flowchart illustrating a flow of image processing executed by the image processing apparatus according to the embodiment. 実施例の画像処理装置によって実行される第1単位処理の流れを示すフローチャートである。It is a flowchart which shows the flow of the 1st unit process performed by the image processing apparatus of an Example. 実施例の画像処理装置によって実行される第2単位処理の流れを示すフローチャートである。It is a flowchart which shows the flow of the 2nd unit process performed by the image processing apparatus of an Example. 変形例の画相処理装置によって実行される画像処理を説明するために用いる概念的なテーブルである。It is a conceptual table used in order to explain the image processing performed by the phase processing apparatus of the modification. 変形例の画像処理装置によって実行される画像処理の流れを示すフローチャートである。It is a flowchart which shows the flow of the image processing performed by the image processing apparatus of a modification. 変形例の画像処理装置によって実行される第1単位処理の流れを示すフローチャートである。It is a flowchart which shows the flow of the 1st unit process performed by the image processing apparatus of a modification. 変形例の画像処理装置によって実行される第2単位処理の流れを示すフローチャートである。It is a flowchart which shows the flow of the 2nd unit process performed by the image processing apparatus of a modification.

符号の説明Explanation of symbols

10:画像処理装置 12:フィルタ 14:補正部 16:比較部 18:変換画素値決定部 20:変換誤差値算出部 22:第1平均誤差算出部 24:第2平均誤差算出部 26a〜26g:乗算部 28a〜28g:レジスタ 30b〜30e,30g:加算器 32a〜32g:加算記憶部 36:最終加算器 38a〜38g:乗算部 40a〜40g:レジスタ 42b〜42e,42g:加算器 44a〜44g:加算記憶部 48:最終加算器 50:変換誤差値記憶メモリ 52:原始画素値一時記憶部 54:第1単位処理実行部 56:第2単位処理実行部
10: Image processing device 12: Filter 14: Correction unit 16: Comparison unit 18: Conversion pixel value determination unit 20: Conversion error value calculation unit 22: First average error calculation unit 24: Second average error calculation units 26a to 26g: Multipliers 28a to 28g: Registers 30b to 30e, 30g: Adders 32a to 32g: Addition storage units 36: Final adders 38a to 38g: Multipliers 40a to 40g: Registers 42b to 42e, 42g: Adders 44a to 44g: Addition storage unit 48: final adder 50: conversion error value storage memory 52: primitive pixel value temporary storage unit 54: first unit processing execution unit 56: second unit processing execution unit

Claims (14)

あるマトリクスとして規定された複数の画素からなる原始画像の画像データを、そのマトリクスのラインの間に画素を補いつつ、誤差拡散法に従う処理によって、そのマトリクスが画素のラインによって補間された別のマトリクスとして規定された複数の画素からなる変換画像の画像データに変換するために用いられる画像処理装置であって、
前記原始画像の画像データを構成するところのその画像の複数の画素の各々の画素値を、原始画素値と、前記変換画像の画像データを構成するところのその画像の複数の画素の各々の画素値を、変換画素値と、前記原始画像の画素のマトリクスにおける画素のラインであって前記変換画像の画素のマトリクスにおいても存置される画素のラインの各々を、原始ラインと、その原始ラインに対応して前記原始画像の画素のマトリクスを補間するための画素のラインを、補間ラインと、誤差拡散法に従う1つの画素についての処理を単位処理と、それぞれ、定義した場合において、
原始ラインの1つである対象ライン上に存在して今回の単位処理の対象となる第1対象画素についての単位処理を実行し、その第1対象画素の原始画素値に基づいて、その第1対象画素の変換画素値および変換誤差値を取得する第1単位処理実行部と、
その第1単位処理実行部によって今回以前に実行された1の単位処理において前記第1対象画素とされた今回以前第1対象画素の原始画素値を、前記対象ラインに対応する補間ライン上において前記第1対象画素と対応付けられた第2対象画素の画素値として、その画素値に基づき、前記第1単位処理実行部によって取得された前記第1対象画素の変換誤差値を利用しつつ、前記第2対象画素についての単位処理を実行し、その第2対象画素の変換画素値を取得する第2単位処理実行部とを備え、
前記第1対象画素および前記第2対象画素がライン方向の前方に向かって順次遷移させられつつ、前記第1単位処理実行部による単位処理と前記第2単位処理実行部による単位処理とがそれぞれ前記対象ラインと前記補間ラインとについて繰り返されるところの1ライン処理が実行され、かつ、その対象ラインが、順次遷移させられつつ、その1ライン処理が繰り返されることによって、前記原始画像の画像データを前記変換画像の画像データに変換する画像処理装置。
Another matrix in which the matrix is interpolated by the pixel lines by processing according to the error diffusion method while supplementing the pixels between the matrix lines of the image data of the primitive image defined as a certain matrix An image processing apparatus used for converting into image data of a converted image composed of a plurality of pixels defined as
The pixel value of each of the plurality of pixels of the image constituting the image data of the original image, the pixel value of each of the plurality of pixels of the image constituting the image data of the original image and the converted image A value corresponding to a converted pixel value and a line of pixels in a matrix of pixels of the source image, which is also located in the matrix of pixels of the converted image, corresponding to the source line and the source line Then, when defining a line of pixels for interpolating a matrix of pixels of the original image, an interpolation line, and a process for one pixel according to the error diffusion method, a unit process, respectively,
Unit processing is performed on the first target pixel that is present on the target line that is one of the source lines and is the target of the current unit processing, and the first processing is performed based on the source pixel value of the first target pixel. A first unit processing execution unit that acquires a conversion pixel value and a conversion error value of a target pixel;
The original pixel value of the first target pixel before this time, which is set as the first target pixel in one unit processing executed before this time by the first unit processing execution unit, on the interpolation line corresponding to the target line, While using the conversion error value of the first target pixel acquired by the first unit processing execution unit based on the pixel value as the pixel value of the second target pixel associated with the first target pixel, A second unit processing execution unit that executes unit processing for the second target pixel and acquires a converted pixel value of the second target pixel;
The unit processing by the first unit processing execution unit and the unit processing by the second unit processing execution unit are respectively performed while the first target pixel and the second target pixel are sequentially shifted toward the front in the line direction. The one-line process that is repeated for the target line and the interpolation line is executed, and the target line is sequentially shifted while the one-line process is repeated. An image processing apparatus that converts image data of a converted image.
当該画像処理装置が、前記第1単位処理実行部による単位処理の実行ごとに、前記第1対象画素となる1つの画素の原始画素値が入力され、その単位処理の実行および前記第2単位処理実行部による単位処理の実行ごとに、前記第1対象画素および前記第2対象画素の各々の変換画素値が出力されるものとされた請求項1に記載の画像処理装置。   Each time the image processing apparatus performs unit processing by the first unit processing execution unit, a primitive pixel value of one pixel that is the first target pixel is input, and the execution of the unit processing and the second unit processing are performed. The image processing apparatus according to claim 1, wherein each time the unit process is executed by the execution unit, the converted pixel value of each of the first target pixel and the second target pixel is output. 前記今回以前第1対象画素が、前記第1単位処理実行部によって前回以前に実行された1の単位処理において前記第1対象画素とされたものであり、
当該画像処理装置が、前記今回以前第1対象画素の原始画素値を、その画素値を前記第2対象画素の画素値とした前記第2単位処理実行部による単位処理が実行されるまでの間記憶する原始画素値一時記憶部を備えた請求項1または請求項2に記載の画像処理装置。
The first target pixel before this time is the first target pixel in one unit process executed before the previous time by the first unit processing execution unit,
Until the unit processing is executed by the second unit processing execution unit using the original pixel value of the first target pixel before this time as the pixel value of the second target pixel. The image processing apparatus according to claim 1, further comprising a primitive pixel value temporary storage unit for storing.
それぞれが前記変換画像の画素のマトリクスにおいて前記第2対象画素の近傍に設定されてその第2対象画素の変換画素値を取得するために自身の変換誤差値が利用される複数の画素を、複数の第2誤差利用画素と定義した場合において、
前記第2単位処理実行部が、
前記対象ライン上において設定された複数の画素であって前記複数の第2誤差利用画素の少なくとも一部である複数の第2前ライン上誤差利用画素の各々の変換誤差値に基づいて、前記複数の第2誤差利用画素の平均誤差値である第2平均誤差値を算出する第2平均誤差算出部を有し、
その第2平均誤差算出部によって算出された前記第2平均誤差値に基づいて前記第2対象画素の画素値を補正し、その補正によって得られた画素値に基づいて、その第2対象画素の変換画素値を取得するように構成され、
前記第2平均誤差算出部が、前記第1対象画素の変換誤差値を、前記複数の第2前ライン上誤差利用画素のうちの1つの画素の変換誤差値として利用して、前記第2平均誤差値を算出するように構成された請求項1ないし請求項3のいずれかに記載の画像処理装置。
A plurality of pixels, each of which is set in the vicinity of the second target pixel in the pixel matrix of the converted image and whose conversion error value is used to obtain the converted pixel value of the second target pixel, When defined as the second error-utilizing pixel,
The second unit processing execution unit is
The plurality of pixels set on the target line and the plurality of pixels based on the conversion error values of each of the plurality of second previous line error using pixels that are at least part of the plurality of second error using pixels. A second average error calculation unit that calculates a second average error value that is an average error value of the second error-utilizing pixels.
The pixel value of the second target pixel is corrected based on the second average error value calculated by the second average error calculation unit, and the pixel value of the second target pixel is corrected based on the pixel value obtained by the correction. Configured to obtain a transformed pixel value;
The second average error calculation unit uses the conversion error value of the first target pixel as the conversion error value of one of the plurality of second previous-line on-line error use pixels, and performs the second average error calculation. The image processing apparatus according to claim 1, wherein the image processing apparatus is configured to calculate an error value.
前記複数の第2前ライン上誤差利用画素が、互いに連続する複数の画素として設定され、
前記第2単位処理実行部が、前記第1対象画素の変換誤差値を前記複数の第2前ライン上誤差利用画素のうちのライン方向において最前に位置する第2前ライン上最前誤差利用画素の変換誤差値として利用可能な画素を、前記第2対象画素として、その画素についての単位処理を実行するようにされた請求項4に記載の画像処理装置。
The plurality of pixels on the second front line error are set as a plurality of pixels that are continuous with each other;
A second unit processing execution unit configured to convert a conversion error value of the first target pixel to a foremost error use pixel on the second previous line that is positioned in the forefront in a line direction among the plurality of second use errors on the previous line; The image processing apparatus according to claim 4, wherein a unit process is performed on a pixel that can be used as a conversion error value as the second target pixel.
前記第2単位処理実行部が、前記第2対象画素についての単位処理によって、さらに、その第2対象画素の変換誤差値を取得するものとされ、
前記第2平均誤差算出部が、
さらに、前記補間ライン上において前記第2対象画素とライン方向の後方側において連続するものとして設定された1以上の画素であって前記複数の第2誤差利用画素の一部である1以上の第2当該ライン上誤差利用画素の各々の変換誤差値に基づいて、前記第2平均誤差値を算出するものとされるとともに、
ライン方向に仮想的に配置され、前記複数の第2前ライン上誤差利用画素の各々に対応して設定された重み付け係数の各々と前記第2前ライン上最前誤差利用画素の変換誤差値との乗算処理を実行するところの前記複数の第2前ライン上誤差利用画素の数に相当する数の複数の第2前ライン用乗算部と、
それら複数の第2前ライン用乗算部の各々に対応して設けられ、それぞれが、自身の直近の後方側に配置されたものが存在する場合にはそのものの記憶値と前記複数の第2前ライン用乗算部のうちの自身に対応するものによる乗算処理の結果値とを加算して記憶し、自身の後方側に配置されたものが存在しない場合には前記複数の第2前ライン用乗算部のうちの自身に対応するものによる乗算処理の結果値を記憶するところの前記複数の第2前ライン上誤差利用画素の数に相当する数の複数の第2前ライン用加算記憶部と、
ライン方向に仮想的に配置され、前記1以上の第2当該ライン上誤差利用画素の各々に対応して設定された重み付け係数の各々と前記第2対象画素の直近の後方側に位置する画素の変換誤差値との乗算処理を実行するところの前記1以上の第2当該ライン上誤差利用画素の数に相当する数の1以上の第2当該ライン用乗算部と、
それら1以上の第2当該ライン用乗算部の各々に対応して設けられ、それぞれが、自身の直近の後方側に配置されたものが存在する場合にはそのものの記憶値と前記1以上の第2当該ライン用乗算部のうちの自身に対応するものによる乗算処理の結果値とを加算して記憶し、自身の後方側に配置されたものが存在しない場合には前記1以上の第2当該ライン用乗算部のうちの自身に対応するものによる乗算処理の結果値を記憶するところの前記1以上の第2当該ライン上誤差利用画素の数に相当する数の1以上の第2当該ライン用加算記憶部とを有し、
を有し、
前記複数の第2前ライン用加算記憶部の各々による処理が前方に配置されたものによる処理から順次実行され、かつ、前記1以上の第2当該ライン用加算記憶部の各々による処理が前方に配置されたものによる処理から順次実行されるように構成されるとともに、前記複数の第2前ライン用加算記憶部のうちの最前のものの記憶値と、前記1以上の第2当該ライン用加算記憶部のうちの最前のものの記憶値との和を、前記第2平均誤差値として算出するように構成された請求項5に記載の画像処理装置。
The second unit processing execution unit further acquires a conversion error value of the second target pixel by the unit processing for the second target pixel,
The second average error calculation unit is
Further, the one or more first pixels that are set to be continuous with the second target pixel on the rear side in the line direction on the interpolation line and are a part of the plurality of second error utilization pixels. 2 The second average error value is calculated based on the conversion error value of each of the on-line error utilization pixels, and
Each of the weighting coefficients that are virtually arranged in the line direction and are set corresponding to each of the plurality of second previous line error using pixels and the conversion error value of the second previous line first error using pixel A plurality of second front line multiplying units corresponding to the number of the plurality of second front line error-utilizing pixels for performing the multiplication process;
When there is a plurality of second front line multiplying units provided corresponding to each of the plurality of second front line multiplying units, each of which is arranged on the rear side closest to the second front line multiplying unit, the stored value and the plurality of second front lines are stored. The result value of the multiplication process by the one corresponding to itself among the line multipliers is added and stored, and when there is no line arranged behind the line multiplication unit, the plurality of second front line multiplications A plurality of second front-line addition storage units corresponding to the number of the second previous-line on-line error use pixels that store a result value of multiplication processing by a unit corresponding to itself;
Each of the weighting coefficients that are virtually arranged in the line direction and are set corresponding to each of the one or more second on-line error use pixels and pixels that are positioned immediately behind the second target pixel A number of one or more second line multiplication units corresponding to the number of the one or more second line error utilization pixels that perform the multiplication process with the conversion error value;
If there is one that is arranged corresponding to each of the one or more second line multiplying units, and each of them is arranged in the immediate rear side of itself, the stored value of itself and the one or more first 2 The result value of the multiplication processing by the one corresponding to itself among the multiplication units for the line is added and stored, and when there is no one arranged on the rear side of the line, the one or more second relevant values The number of one or more second corresponding lines corresponding to the number of the one or more second on-line error utilization pixels that store the result value of the multiplication processing by the line multiplier corresponding to itself. An addition storage unit;
Have
The processing by each of the plurality of second previous line addition storage units is sequentially executed from the processing by the one arranged in front, and the processing by each of the one or more second previous line addition storage units is forwarded It is configured to be sequentially executed from the processing by the arranged one, and the stored value of the foremost one of the plurality of second previous line addition storage units, and the one or more second relevant line addition storages 6. The image processing apparatus according to claim 5, wherein the sum of the first one of the units and the stored value is calculated as the second average error value. 7.
それぞれが前記変換画像の画素のマトリクスにおいて前記第1対象画素の近傍に設定されてその第1対象画素の変換画素値を取得するために自身の変換誤差値が利用される複数の画素を、複数の第1誤差利用画素と定義した場合において、
前記第1単位処理実行部が、
前回の1ライン処理での前記補間ライン上において設定された複数の画素であって前記複数の第1誤差利用画素の少なくとも一部である複数の第1前ライン上誤差利用画素の各々の変換誤差値に基づいて、それら前記複数の第1誤差利用画素の平均誤差値である第1平均誤差値を算出する第1平均誤差算出部を有し、
その第1平均誤差算出部によって算出された前記第1平均誤差値に基づいて前記第1対象画素の原始画素値を補正し、その補正によって得られた画素値に基づいて、その第1対象画素の変換画素値を取得するように構成された請求項1ないし請求項6のいずれかに記載の画像処理装置。
A plurality of pixels, each of which is set in the vicinity of the first target pixel in the matrix of pixels of the converted image and whose conversion error value is used to obtain the converted pixel value of the first target pixel, In the case where the first error utilization pixel is defined,
The first unit processing execution unit
A plurality of pixels set on the interpolation line in the previous one-line process, and each of conversion errors of a plurality of first previous-line error using pixels that are at least part of the plurality of first error-using pixels. A first average error calculation unit that calculates a first average error value that is an average error value of the plurality of first error use pixels based on the values;
The original pixel value of the first target pixel is corrected based on the first average error value calculated by the first average error calculation unit, and the first target pixel is calculated based on the pixel value obtained by the correction. The image processing apparatus according to claim 1, wherein the image processing apparatus is configured to acquire the converted pixel value.
前記第1平均誤差算出部が、
前回の1ライン処理での1の単位処理において前記第2対象画素とされた1つの画素であって前記第1対象画素と対応付けられた対応前回ライン処理画素の変換誤差値を、前記複数の第1前ライン上誤差利用画素のうちの1つの画素の変換誤差値として利用して、前記第1平均誤差値を算出するものとされた請求項7に記載の画像処理装置。
The first average error calculator is
The conversion error value of the corresponding previous line processing pixel that is one pixel that is the second target pixel and that is associated with the first target pixel in one unit process in the previous one line process, The image processing apparatus according to claim 7, wherein the first average error value is calculated using the conversion error value of one of the pixels on the first front-line error utilization.
前記第2単位処理実行部が、前記第2対象画素についての単位処理によって、さらに、その第2対象画素の変換誤差値を取得するものとされ、
当該画像処理装置が、前記第2単位処理実行部による単位処理の実行ごとに、前記第2対象画素の変換誤差値が出力され、前記第1単位処理実行部による単位処理の実行ごとに、前記対応前回ライン処理画素となる1つの画素の変換誤差値が入力されるものとされた請求項8に記載の画像処理装置。
The second unit processing execution unit further acquires a conversion error value of the second target pixel by the unit processing for the second target pixel,
The image processing apparatus outputs a conversion error value of the second target pixel every time the unit process is executed by the second unit process execution unit, and every time the unit process is executed by the first unit process execution unit, The image processing apparatus according to claim 8, wherein a conversion error value of one pixel that is a corresponding previous line processing pixel is input.
前記複数の第1前ライン上誤差利用画素が、互いに連続する複数の画素として設定され、
前記第1単位処理実行部が、前記対応前回ライン処理画素の変換誤差値を前記複数の第1前ライン上誤差利用画素のうちのライン方向において最前に位置する第1前ライン上最前誤差利用画素の変換誤差値として利用して、前記第1対象画素についての単位処理を実行するものとされた請求項8または請求項9に記載の画像処理装置。
The plurality of first previous-line error utilization pixels are set as a plurality of consecutive pixels,
The first unit processing execution unit uses the first previous line foremost error use pixel located in the forefront in the line direction among the plurality of first previous line error use pixels for the conversion error value of the corresponding previous line processing pixel. The image processing apparatus according to claim 8 or 9, wherein unit processing for the first target pixel is executed using the conversion error value of the first target pixel.
前記第1平均誤差算出部が、
さらに、前記対象ライン上において前記第1対象画素とライン方向の後方側において連続するように設定された1以上の画素であって前記複数の第1誤差利用画素の一部である1以上の第1当該ライン上誤差利用画素の各々の変換誤差値に基づいて、前記第1平均誤差値を算出するものとされるとともに、
ライン方向に仮想的に配置され、前記複数の第1前ライン上誤差利用画素の各々に対応して設定された重み付け係数の各々と前記第1前ライン上最前誤差利用画素の変換誤差値との乗算処理を実行するところの前記複数の第1前ライン上誤差利用画素の数に相当する数の複数の第1前ライン用乗算部と、
それら複数の第1前ライン用乗算部の各々に対応して設けられ、それぞれが、自身の直近の後方側に配置されたものが存在する場合にはそのものの記憶値と前記複数の第1前ライン用乗算部のうちの自身に対応するものによる乗算処理の結果値とを加算して記憶し、自身の後方側に配置されたものが存在しない場合には前記複数の第1前ライン用乗算部のうちの自身に対応するものによる乗算処理の結果値を記憶するところの前記複数の第1前ライン上誤差利用画素の数に相当する数の複数の第1前ライン用加算記憶部と、
ライン方向に仮想的に配置され、前記1以上の第1当該ライン上誤差利用画素の各々に対応して設定された重み付け係数の各々と前記第1対象画素の直近の後方側に位置する画素の変換誤差値との乗算処理を実行するところの前記1以上の第1当該ライン上誤差利用画素の数に相当する数の1以上の第1当該ライン用乗算部と、
それら1以上の第1当該ライン用乗算部の各々に対応して設けられ、それぞれが、自身の直近の後方側に配置されたものが存在する場合にはそのものの記憶値と前記1以上の第1当該ライン用乗算部のうちの自身に対応するものによる乗算処理の結果値とを加算して記憶し、自身の後方側に配置されたものが存在しない場合には前記1以上の第1当該ライン用乗算部のうちの自身に対応するものによる乗算処理の結果値を記憶するところの前記1以上の第1当該ライン上誤差利用画素の数に相当する数の1以上の第1当該ライン用加算記憶部とを有し、
前記複数の第1前ライン用加算記憶部の各々による処理が前方に配置されたものによる処理から順次実行され、かつ、前記1以上の第1当該ライン用加算記憶部の各々による処理が前方に配置されたものによる処理から順次実行されるように構成されるとともに、前記複数の第1前ライン用加算記憶部のうちの最前のものの記憶値と、前記1以上の第1当該ライン用加算記憶部のうちの最前のものの記憶値との和を、前記第1平均誤差値として算出するように構成された請求項10に記載の画像処理装置。
The first average error calculator is
Furthermore, the one or more first pixels that are set to be continuous with the first target pixel on the rear side in the line direction on the target line and are a part of the plurality of first error utilization pixels. The first average error value is calculated based on the conversion error value of each of the on-line error utilization pixels,
Each of the weighting coefficients that are virtually arranged in the line direction and are set corresponding to each of the plurality of pixels on the first previous line error use and the conversion error value of the pixel on the first previous error use on the first line A plurality of first front-line multiplication units corresponding to the number of the plurality of first front-line error-use pixels on which the multiplication process is performed;
When there is a plurality of first front line multiplication units arranged on the rear side closest to the first front line multiplication unit, the stored value and the plurality of first front lines are provided. The result value of the multiplication process by the one corresponding to itself among the line multipliers is added and stored, and when there is no one arranged on the rear side thereof, the plurality of first front line multiplications A plurality of first front-line addition storage units corresponding to the number of the first previous-line on-line error utilization pixels that store a result value of multiplication processing by a unit corresponding to itself;
Each of the weighting coefficients that are virtually arranged in the line direction and are set corresponding to each of the one or more first on-line error use pixels and pixels positioned on the rear side closest to the first target pixel. A number of one or more first line multiplication units corresponding to the number of the one or more first line error utilization pixels that perform the multiplication process with the conversion error value;
When one or more first corresponding line multiplying units are provided corresponding to each of the first and second line multiplying units, and each of them is arranged on the rear side closest to itself, the stored value and the first or more first line multipliers are provided. 1 adds the result value of the multiplication process by the one corresponding to itself among the multiplication units for the line and stores it, and if there is no one arranged behind the line, the one or more first corresponding line The number of one or more first corresponding lines corresponding to the number of the one or more first on-line error utilization pixels that store the result value of the multiplication process by the one corresponding to itself among the line multiplying units. An addition storage unit;
The processing by each of the plurality of first previous line addition storage units is sequentially executed from the processing by the one arranged in front, and the processing by each of the one or more first previous line addition storage units is forwarded It is configured to be executed sequentially from the processing by the arranged one, and the stored value of the foremost one of the plurality of first previous line addition storage units and the one or more first relevant line addition storages The image processing apparatus according to claim 10, configured to calculate a sum with a stored value of a foremost part of the units as the first average error value.
それぞれが前記変換画像の画素のマトリクスにおいて前記第1対象画素の近傍に設定されてその前記第1対象画素の変換画素値を取得するために自身の変換誤差値が利用される複数の画素を、複数の第1誤差利用画素と定義し、それぞれが前記変換画像の画素のマトリクスにおいて前記第2対象画素の近傍に設定されてその前記第2対象画素の変換画素値を取得するために自身の変換誤差値が利用される複数の画素を、複数の第2誤差利用画素と定義した場合において、
前記第1単位処理実行部が、前記複数の第1誤差利用画素の平均誤差値である第1平均誤差値を算出する第1平均誤差算出部を有し、
前記第2単位処理実行部が、前記複数の第2誤差利用画素の平均誤差値である第2平均誤差値を算出する第2平均誤差算出部を有し、
当該画像処理装置が、
前記第1平均誤差算出部によって算出された前記第1平均誤差値に基づいて前記第1対象画素の原始画素値を補正し、その補正によって得られた画素値に基づいて、その第1対象画素の変換画素値を決定し、かつ、第2平均誤差算出部によって算出された前記第2平均誤差値に基づいて前記第2対象画素の画素値を補正し、その補正によって得られた画素値に基づいて、その第2対象画素の変換画素値を決定する単一の変換画素値決定部を備えた請求項1ないし請求項11のいずれかに記載の画像処理装置。
A plurality of pixels, each of which is set in the vicinity of the first target pixel in the pixel matrix of the converted image and whose conversion error value is used to obtain the converted pixel value of the first target pixel, A plurality of first error-utilizing pixels, each of which is set in the vicinity of the second target pixel in the matrix of pixels of the converted image and is converted to obtain the converted pixel value of the second target pixel In the case where a plurality of pixels in which error values are used are defined as a plurality of second error use pixels,
The first unit processing execution unit includes a first average error calculation unit that calculates a first average error value that is an average error value of the plurality of first error use pixels,
The second unit processing execution unit includes a second average error calculation unit that calculates a second average error value that is an average error value of the plurality of second error utilization pixels;
The image processing apparatus is
The original pixel value of the first target pixel is corrected based on the first average error value calculated by the first average error calculation unit, and the first target pixel is determined based on the pixel value obtained by the correction. And the pixel value of the second target pixel is corrected based on the second average error value calculated by the second average error calculation unit, and the pixel value obtained by the correction is determined. The image processing apparatus according to claim 1, further comprising a single conversion pixel value determination unit that determines a conversion pixel value of the second target pixel based on the conversion pixel value.
それぞれが前記変換画像の画素のマトリクスにおいて前記第1対象画素の近傍に設定されてその前記第1対象画素の変換画素値を取得するために自身の変換誤差値が利用される複数の画素を、複数の第1誤差利用画素と定義し、それぞれが前記変換画像の画素のマトリクスにおいて前記第2対象画素の近傍に設定されてその前記第2対象画素の変換画素値を取得するために自身の変換誤差値が利用される複数の画素を、複数の第2誤差利用画素と定義した場合において、
前記第1単位処理実行部が、前記複数の第1誤差利用画素の平均誤差値である第1平均誤差値を算出する第1平均誤差算出部を有し、
前記第2単位処理実行部が、前記複数の第2誤差利用画素の平均誤差値である第2平均誤差値を算出する第2平均誤差算出部を有し、
当該画像処理装置が、
前記第1平均誤差算出部によって算出された前記第1平均誤差値に基づく前記第1対象画素の原始画素値の補正によって得られた画素値と、その画素値に基づいて取得されたその第1対象画素の変換画素値とに基づいて、その第1対象画素の変換誤差値を算出し、かつ、前記第2平均誤差算出部によって算出された前記第2平均誤差値に基づく前記第2対象画素の画素値の補正によって得られた画素値と、その画素値に基づいて取得されたその第2対象画素の変換画素値とに基づいて、その第2対象画素の変換誤差値を算出する単一の変換誤差値算出部を備えた請求項1ないし請求項12のいずれかに記載の画像処理装置。
A plurality of pixels, each of which is set in the vicinity of the first target pixel in the pixel matrix of the converted image and whose conversion error value is used to obtain the converted pixel value of the first target pixel, A plurality of first error-utilizing pixels, each of which is set in the vicinity of the second target pixel in the matrix of pixels of the converted image and is converted to obtain the converted pixel value of the second target pixel In the case where a plurality of pixels in which error values are used are defined as a plurality of second error use pixels,
The first unit processing execution unit includes a first average error calculation unit that calculates a first average error value that is an average error value of the plurality of first error use pixels,
The second unit processing execution unit includes a second average error calculation unit that calculates a second average error value that is an average error value of the plurality of second error utilization pixels;
The image processing apparatus is
The pixel value obtained by correcting the original pixel value of the first target pixel based on the first average error value calculated by the first average error calculation unit, and the first obtained based on the pixel value Based on the converted pixel value of the target pixel, a conversion error value of the first target pixel is calculated, and the second target pixel based on the second average error value calculated by the second average error calculation unit Single conversion error value of the second target pixel is calculated based on the pixel value obtained by correcting the pixel value and the converted pixel value of the second target pixel acquired based on the pixel value. The image processing apparatus according to claim 1, further comprising a conversion error value calculation unit.
あるマトリクスとして規定された複数の画素からなる原始画像の画像データを、そのマトリクスのラインの間に画素を補いつつ、誤差拡散法に従う処理によって、そのマトリクスが画素のラインによって補間された別のマトリクスとして規定された複数の画素からなる変換画像の画像データに変換する画像処理方法であって、
前記原始画像の画像データを構成するところのその画像の複数の画素の各々の画素値を、原始画素値と、前記変換画像の画像データを構成するところのその画像の複数の画素の各々の画素値を、変換画素値と、前記原始画像の画素のマトリクスにおける画素のラインであって前記変換画像の画素のマトリクスにおいても存置される画素のラインの各々を、原始ラインと、その原始ラインに対応して前記原始画像の画素のマトリクスを補間するための画素のラインを、補間ラインと、誤差拡散法に従う1つの画素についての処理を単位処理と、それぞれ、定義した場合において、
原始ラインの1つである対象ライン上に存在する1つの画素である第1対象画素についての単位処理を実行することで、その第1対象画素の原始画素値に基づいて、その第1対象画素の変換画素値および変換誤差値を取得し、
その第1単位処理実行部によって今回以前に実行された1の単位処理において前記第1対象画素とされた今回以前第1対象画素の原始画素値を、前記対象ラインに対応する補間ライン上において前記第1対象画素と対応付けられた第2対象画素の画素値として、その画素値に基づき、前記第1単位処理実行部によって取得された前記第1対象画素の変換誤差値を利用しつつ、前記第2対象画素についての単位処理を実行することで、その第2対象画素の変換画素値を取得し、
前記第1対象画素および前記第2対象画素をライン方向の前方に向かって順次遷移させつつ、前記第1対象画素についての単位処理と前記第2対象画素についての単位処理とをそれぞれ前記対象ラインと前記補間ラインとについて繰り返し、かつ、その繰り返しを、対象ラインを順次遷移させつつ繰り返すことによって、前記原始画像の画像データを前記変換画像の画像データに変換する画像処理方法。
Another matrix in which the matrix is interpolated by the pixel lines by processing according to the error diffusion method while supplementing the pixels between the matrix lines of the image data of the primitive image defined as a certain matrix An image processing method for converting into converted image data consisting of a plurality of pixels defined as:
The pixel value of each of the plurality of pixels of the image constituting the image data of the original image, the pixel value of each of the plurality of pixels of the image constituting the image data of the original image and the converted image A value corresponding to a converted pixel value and a line of pixels in a matrix of pixels of the source image, which is also located in the matrix of pixels of the converted image, corresponding to the source line and the source line Then, when defining a line of pixels for interpolating a matrix of pixels of the original image, an interpolation line, and a process for one pixel according to the error diffusion method, a unit process, respectively,
By executing unit processing on the first target pixel that is one pixel existing on the target line that is one of the source lines, the first target pixel is based on the source pixel value of the first target pixel. Get the conversion pixel value and conversion error value of
The original pixel value of the first target pixel before this time, which is set as the first target pixel in one unit processing executed before this time by the first unit processing execution unit, on the interpolation line corresponding to the target line, While using the conversion error value of the first target pixel acquired by the first unit processing execution unit based on the pixel value as the pixel value of the second target pixel associated with the first target pixel, By executing the unit process for the second target pixel, the conversion pixel value of the second target pixel is acquired,
The unit processing for the first target pixel and the unit processing for the second target pixel are respectively performed as the target line while sequentially transitioning the first target pixel and the second target pixel forward in the line direction. An image processing method for converting image data of the original image into image data of the converted image by repeating the interpolation line and repeating the repetition while sequentially changing the target line.
JP2005192340A 2005-06-30 2005-06-30 Image processing device Expired - Fee Related JP4501796B2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP2005192340A JP4501796B2 (en) 2005-06-30 2005-06-30 Image processing device
US11/476,575 US7564590B2 (en) 2005-06-30 2006-06-29 Image processing apparatus and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005192340A JP4501796B2 (en) 2005-06-30 2005-06-30 Image processing device

Publications (2)

Publication Number Publication Date
JP2007013639A true JP2007013639A (en) 2007-01-18
JP4501796B2 JP4501796B2 (en) 2010-07-14

Family

ID=37751518

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005192340A Expired - Fee Related JP4501796B2 (en) 2005-06-30 2005-06-30 Image processing device

Country Status (1)

Country Link
JP (1) JP4501796B2 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5271070A (en) * 1992-11-06 1993-12-14 Xerox Corporation Multi-dimensional error diffusion technique
JPH06266324A (en) * 1993-03-10 1994-09-22 Canon Inc Method and device for image processing
JPH1093819A (en) * 1996-09-12 1998-04-10 Canon Inc Picture processor
JPH10224627A (en) * 1997-01-28 1998-08-21 Hewlett Packard Co <Hp> Error propagation system
JP2000125122A (en) * 1998-10-14 2000-04-28 Seiko Epson Corp Image processing unit, processing method and recoding medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5271070A (en) * 1992-11-06 1993-12-14 Xerox Corporation Multi-dimensional error diffusion technique
JPH06266324A (en) * 1993-03-10 1994-09-22 Canon Inc Method and device for image processing
JPH1093819A (en) * 1996-09-12 1998-04-10 Canon Inc Picture processor
JPH10224627A (en) * 1997-01-28 1998-08-21 Hewlett Packard Co <Hp> Error propagation system
JP2000125122A (en) * 1998-10-14 2000-04-28 Seiko Epson Corp Image processing unit, processing method and recoding medium

Also Published As

Publication number Publication date
JP4501796B2 (en) 2010-07-14

Similar Documents

Publication Publication Date Title
JP5914045B2 (en) Image processing apparatus, image processing method, and program
JP5376920B2 (en) Convolution operation circuit, hierarchical convolution operation circuit, and object recognition device
US6300935B1 (en) Image interpolation circuit architecture and method for fast bi-cubic interpolation of image information
JPH05502534A (en) Digital image denoising system and method
JP2001086522A (en) Image processor
JP2670875B2 (en) Device for displaying parametric function using adaptive forward difference and integer arithmetic and method for realizing using integer arithmetic
US7564590B2 (en) Image processing apparatus and method
JP2007013640A (en) Image processor
JP4501796B2 (en) Image processing device
JP2000132136A (en) Picture element number converting device
Gour et al. Hardware accelerator for real-time image resizing
JP2005038046A (en) Shading correcting device, method, and program, interpolation arithmetic unit used for shading correcting device, interpolation arithmetic method, interpolation arithmetic program, and its application device
JPH03144782A (en) Three-dimensional processor
JP2003316331A (en) Display device
JP2000187726A (en) Data interpolation method and its device and storage medium
JP2017215941A (en) Image processor and control method thereof
JP3395301B2 (en) Coordinate conversion device and coordinate conversion method
JP5939893B2 (en) Image processing apparatus and image processing method
JP6262621B2 (en) Image enlargement / reduction processing apparatus and image enlargement / reduction processing method
JPH11224332A (en) Additive interpolation system and method for affine transformation
JPH10320524A (en) Look-up table device and image generator
JP3068007B2 (en) Rendering device and mapping device, and rendering method and mapping method
JP2770513B2 (en) Shading method and shading device
CA2246536C (en) Image processor, data processor, and their methods
JP4203480B2 (en) Image processor

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20080402

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20090928

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20091027

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20091222

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

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

R150 Certificate of patent or registration of utility model

Ref document number: 4501796

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20130430

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20130430

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20140430

Year of fee payment: 4

LAPS Cancellation because of no payment of annual fees