JP2008135851A - Image processing apparatus and image forming apparatus - Google Patents

Image processing apparatus and image forming apparatus Download PDF

Info

Publication number
JP2008135851A
JP2008135851A JP2006318837A JP2006318837A JP2008135851A JP 2008135851 A JP2008135851 A JP 2008135851A JP 2006318837 A JP2006318837 A JP 2006318837A JP 2006318837 A JP2006318837 A JP 2006318837A JP 2008135851 A JP2008135851 A JP 2008135851A
Authority
JP
Japan
Prior art keywords
pixel
input
image
image data
output
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.)
Pending
Application number
JP2006318837A
Other languages
Japanese (ja)
Inventor
Takashi Oomiyama
隆志 大見山
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.)
Ricoh Co Ltd
Original Assignee
Ricoh Co 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 Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP2006318837A priority Critical patent/JP2008135851A/en
Publication of JP2008135851A publication Critical patent/JP2008135851A/en
Pending legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To prevent an unnatural image from being output in reading the image to the end and outputting the read image. <P>SOLUTION: An image processing unit applies predetermined processing to image data inputted from a pre-stage and outputs the image to the post-stage. The unit is provided with an interpolation operation means 26l for executing interpolation operation while using the inputted image data for ends also as the image data of edge pixels in interpolation operation, for image data insufficient for interpolating the end of one line of the inputted image data. A register for storing the image data transmitted from a line memory is cascaded, and the interpolation operation means 26l executes interpolation operation on the basis of the image data stored in the register. <P>COPYRIGHT: (C)2008,JPO&INPIT

Description

本発明は、変倍処理に伴う処理を行う画像処理装置、及びこの画像処理装置を備えた画像形成装置に関する。   The present invention relates to an image processing apparatus that performs a process associated with a scaling process, and an image forming apparatus including the image processing apparatus.

画像に対して拡大縮小などの変倍を行う場合の処理では、例えば図15の概念図に示すような処理が実行される。図15(a)は主走査方向の画素密度が600dpiの入力画素を概念的に示すものである。600dpiのドットピッチは0.0423mm/dotとなる。図15(a)では、画素(ドット)はこの0.0423mm/dotの間隔で並んでいることになる。   In the process when scaling such as enlargement / reduction is performed on the image, for example, the process shown in the conceptual diagram of FIG. 15 is executed. FIG. 15A conceptually shows an input pixel having a pixel density of 600 dpi in the main scanning direction. The dot pitch of 600 dpi is 0.0423 mm / dot. In FIG. 15A, pixels (dots) are arranged at intervals of 0.0423 mm / dot.

図15(b)は300%拡大時の主走査方向の画素の状態を示す図である。300%拡大した場合、そのままであると隣接する画素が図15(a)の場合に比べて3画素離れることになる。言い換えると、画像は拡大されるが密度が1/3(200dpi相当)となってしまう。そこで、図15(c)に示すように600dpiになるように画素を補間する。この例では、300%拡大しているので、1画素あたり3画素増加させ、図15(b)に示した画素間を2画素埋めて、図15(a)の画素密度と同じになるようにしている。   FIG. 15B is a diagram illustrating a state of pixels in the main scanning direction when 300% enlargement is performed. In the case of 300% enlargement, if it remains as it is, adjacent pixels will be separated by 3 pixels compared to the case of FIG. In other words, the image is enlarged, but the density becomes 1/3 (equivalent to 200 dpi). Therefore, the pixels are interpolated to 600 dpi as shown in FIG. In this example, since the magnification is 300%, the pixel density is increased by 3 pixels per pixel, and two pixels are filled between the pixels shown in FIG. 15B so that the pixel density is the same as that in FIG. ing.

図16は図15に示すような拡大時の補間演算の概略を示す説明図である。前記補間画素の値(濃度)は元々の600dpi入力画素の値の幾つかから補間演算により算出される。この補間には、一般に標本化定理に基づき比較的高精度な拡縮処理を行えるコンボリューション補間方式を使用する。この方式はよく知られた方式で同一ライン上で保管する画素の前後2個ずつの既知の画素、図16の場合は、入力画素に基づいてその補間位置による係数を考慮して算出される。例えば、出力5画素目(図15(c)参照)は入力画素でいうと入力2画素目と3画素目の間の画素に相当するので、演算に使用する画素は、入力1画素から4画素までの4画素となり、補間画素の位置係数として2画素目から位置1/3で前記出力5画素目の画素の値は演算される。出力6画素目の場合は、入力1画素から4画素までの4画素と、2画素目から位置2/3で前記6画素目の画素の値は演算される。   FIG. 16 is an explanatory diagram showing an outline of the interpolation calculation at the time of enlargement as shown in FIG. The value (density) of the interpolation pixel is calculated by interpolation from some of the original 600 dpi input pixel values. For this interpolation, a convolution interpolation method that can perform scaling processing with relatively high accuracy is generally used based on the sampling theorem. This method is a well-known method and is calculated in consideration of a coefficient depending on an interpolation position based on two known pixels before and after the pixel stored on the same line, in the case of FIG. 16, in the case of FIG. For example, the fifth output pixel (see FIG. 15C) corresponds to the pixel between the second input pixel and the third pixel in terms of the input pixel, and therefore the pixels used for the calculation are from the first input pixel to the fourth pixel. The pixel value of the fifth output pixel is calculated from the second pixel to the position 1/3 as the interpolation pixel position coefficient. In the case of the 6th output pixel, the pixel value of the 6th pixel is calculated from 4 pixels from the 1st input pixel to the 4th pixel and the position 2/3 from the 2nd pixel.

図17は66.66%縮小時の主走査方向の画素の状態を示す図である。この場合も入力画素は600dpiである(図17(a))。単純に66.66%縮小した時は図17(b)に示すようになり、このまま出力すると600dpiではなく、900dpi相当になる。そこで、600dpiにするために画素を減少させ、補間を行う。この場合、66.66%に縮小するので、3画素が2画素に減少することになる。   FIG. 17 is a diagram illustrating a state of pixels in the main scanning direction at the time of reduction of 66.66%. Also in this case, the input pixel is 600 dpi (FIG. 17A). When it is simply reduced by 66.66%, it becomes as shown in FIG. 17B, and if it is output as it is, it will be equivalent to 900 dpi instead of 600 dpi. Therefore, in order to obtain 600 dpi, the number of pixels is reduced and interpolation is performed. In this case, since it is reduced to 66.66%, 3 pixels are reduced to 2 pixels.

図18は66.66%縮小時の画素の削除と補間を示す図である。図18(a)の入力があったときに実際に必要な画素は図18(b)に示すように入力1画素目、入力4画素目、入力7画素目というように2画素飛んで3画素毎の画素と、3画素毎の画素の中間の画素となる。そこで、図18(c)に示すように出力1画素目はそのまま入力1画素目を使用し、出力2画素目は入力1画素目から4画素目までの4個の画素と位置1/2で画素の値が演算される。   FIG. 18 is a diagram illustrating pixel deletion and interpolation when the 66.66% reduction is performed. As shown in FIG. 18 (b), the pixels actually required when the input shown in FIG. 18 (a) is input are skipped by two pixels, such as the first input pixel, the fourth input pixel, and the seventh input pixel. This is an intermediate pixel between every pixel and every three pixels. Therefore, as shown in FIG. 18C, the first output pixel is used as it is for the first output pixel, and the second output pixel is at the position 1/2 with four pixels from the first input pixel to the fourth pixel. The pixel value is calculated.

なお、このような補間の技術として特許文献1あるいは2に記載された発明が知られている。このうち、特許文献1に記載された発明は、画像の拡大、縮小時における補間処理で意図しない強調処理が行われることのない画像処理装置を提供するため、入力画像に対して設定された任意の変倍率に応じて変倍画像を出力する画像処理装置において、入力された同一ライン上の連続する画素を順次格納する格納手段とこの格納手段に順次格納された少なくとも4画素を変数として演算し、出力する演算手段と、前記格納手段に順次格納された少なくとも4画素の状態が、ある一定の値が続いた後、別の値がまた一定期間続く階調パターンであるかどうかを判別する判別手段と、この判別手段の判別結果に応じて前記演算手段の出力を選択する選択手段と、を備えていることを特徴とする。   Note that the invention described in Patent Document 1 or 2 is known as such an interpolation technique. Among these, the invention described in Patent Document 1 provides an image processing apparatus that does not perform unintentional enhancement processing in interpolation processing when an image is enlarged or reduced. In an image processing apparatus for outputting a scaled image in accordance with the scale factor, a storage means for sequentially storing input continuous pixels on the same line and at least four pixels sequentially stored in the storage means are operated as variables. Determining whether the state of at least four pixels sequentially stored in the storage means is a gradation pattern in which another value continues for a certain period after a certain value continues, And a selection means for selecting the output of the calculation means in accordance with the determination result of the determination means.

また、特許文献2に記載された発明は、特許文献1記載の発明と同様に拡大、縮小倍率の値の如何に関わらず、常に高精度な変倍処理を行うことができる画像処理方法を提供するため、ある周期上の画素から連続する複数画素をサンプリング画素とし、その画素間の仮想画素を、距離をパラメータとする三次関数により求める際に、特定の条件を満たす倍率では、その仮想画素の位置を変化させ、入力画素を変倍処理する画像処理方法を特徴とする。
特開2000−307850号公報 特開2001−119569号公報
In addition, the invention described in Patent Document 2 provides an image processing method capable of always performing highly accurate scaling regardless of the value of the enlargement / reduction ratio, similar to the invention described in Patent Document 1. Therefore, when a plurality of pixels that are continuous from a pixel on a certain period are set as sampling pixels and a virtual pixel between the pixels is obtained by a cubic function using a distance as a parameter, a magnification that satisfies a specific condition is used. The image processing method is characterized by changing the position and scaling the input pixel.
JP 2000-307850 A JP 2001-119568 A

ところで、前記補間方法においては、拡大の場合、先端画素では、図15(c)から分かるように出力1画素目と出力2画素目の間に補間画素が必要である。このとき演算には入力1画素目ないし3画素目と、入力1画素目のさらに1つ前の画素が必要になる。以下、この1つ前の画素を0画素目と称する。このときの状態を図19に示す。なお、図19は入力1画素目と入力2画素目の間にある補間画素の位置を示す。図19では、補間画素の位置Xは、
1画素目≦X<2画素目
となる。この場合、入力0画素目、入力1画素目、入力2画素目、入力3画素目の4画素の値を使用して補間演算に使用することになる。
By the way, in the interpolation method, in the case of enlargement, as shown in FIG. 15C, an interpolation pixel is required between the first output pixel and the second output pixel at the leading pixel. At this time, the calculation requires the first through third pixels of the input and the pixel immediately before the first input pixel. Hereinafter, this previous pixel is referred to as the 0th pixel. The state at this time is shown in FIG. FIG. 19 shows the position of the interpolation pixel between the first input pixel and the second input pixel. In FIG. 19, the position X of the interpolation pixel is
First pixel ≦ X <second pixel. In this case, the values of the four pixels of the input 0 pixel, the input 1 pixel, the input 2 pixel, and the input 3 pixel are used for the interpolation calculation.

このような場合、従来では、先端画素は紙上に出力されても画像端となり消去あるいはマスクされるため、図19における0画素目は黒又は白の値を使用しても問題とならなかったが、昨今の画像読み取り装置においては、画像端であっても画像データとして出力するため、先頭画素の値が他の3画素の値と離れすぎて補間演算の出力値が実際の画像の画素値と合わなくなり、不自然な画像が出力される場合があった。   In such a case, conventionally, even if the leading pixel is output on paper and becomes an image edge and is erased or masked, there is no problem even if the 0th pixel in FIG. 19 uses a black or white value. In recent image reading apparatuses, since the image data is output even at the end of the image, the value of the first pixel is too far from the values of the other three pixels, and the output value of the interpolation operation is the pixel value of the actual image. In some cases, the images did not match and an unnatural image was output.

そこで、本発明が解決すべき課題は、画像端まで読み取って画像出力する場合に、不自然な画像の出力がないようにすることにある。   Therefore, a problem to be solved by the present invention is to prevent an unnatural image from being output when the image is read to the end of the image and output.

前記課題を解決するため、第1の手段は、前段から入力された画像データに対して所定の処理を施して後段に出力する画像処理装置において、入力された画像データの1ラインの端部の補間演算に不足する画像データについて、入力された端部の画像データを補間演算時の先端画素の画像データとして重複させて使用し、補間演算を行う補間演算手段を備えていることを特徴とする。   In order to solve the above-described problem, the first means performs a predetermined process on the image data input from the preceding stage and outputs the processed image data to the subsequent stage, at the end of one line of the input image data. Interpolation calculation means for performing interpolation calculation by using the input edge image data as image data of the leading edge pixel at the time of interpolation calculation for image data that is insufficient for the interpolation calculation is provided. .

第2の手段は、第1の手段において、前記端部が先端部又は後端部であることを特徴とする。   The second means is characterized in that, in the first means, the end portion is a front end portion or a rear end portion.

第3の手段は、第1又は第2の手段において、前記補間演算手段が補間演算を行う際に前記入力された画像データが格納されるラインメモリから転送されてきた画像データを保持するレジスタがカスケードに接続されていることを特徴とする。   The third means includes a register for holding image data transferred from a line memory in which the input image data is stored when the interpolation calculation means performs interpolation calculation in the first or second means. It is connected to a cascade.

第4の手段は、第1又は第3のいずれかの手段において、重複して処理する際に前記レジスタは出力トリガが入力されるまで画像データを供給するラインメモリが保持している端部の画像データによって更新されることを特徴とする。   According to a fourth means, in either the first or third means, when processing is performed in duplicate, the register has an end portion held by a line memory that supplies image data until an output trigger is inputted. It is updated by image data.

第5の手段は、第1ないし第4のいずれかの手段に係る画像処理装置を画像形成装置が備えていることを特徴とする。   The fifth means is characterized in that the image forming apparatus includes the image processing apparatus according to any one of the first to fourth means.

なお、後述の実施形態では、画像処理装置は画像処理ユニット2に、補間演算手段は補間演算処理部26lに、ラインメモリは第1及び第2のラインメモリ26j,26kに、レジスタは第1〜第4のレジスタ31〜34に、画像形成装置は画像処理ユニット2及びプリンタユニット3にそれぞれ対応する。   In the embodiment described later, the image processing apparatus is in the image processing unit 2, the interpolation calculation means is in the interpolation calculation processing unit 26l, the line memory is in the first and second line memories 26j and 26k, and the register is in the first to the second. The image forming apparatuses correspond to the fourth registers 31 to 34, respectively, to the image processing unit 2 and the printer unit 3.

本発明によれば、入力された画像データの1ラインの端部の補間演算に不足する画像データについて、入力された端部の画像データを補間演算時の先端画素の画像データとして重複させて使用し、補間演算を行うので、画像端まで読み取って画像出力する場合に、不自然な画像の出力がないようにすることができる。   According to the present invention, with respect to image data that is insufficient for the interpolation calculation at the end of one line of the input image data, the input end image data is used as the image data of the tip pixel at the time of the interpolation calculation. Since the interpolation calculation is performed, it is possible to prevent an unnatural image from being output when the image is read to the end of the image and output.

以下、図面を参照し、本発明の実施形態について説明する。   Hereinafter, embodiments of the present invention will be described with reference to the drawings.

図1は本発明の実施形態に係る画像形成装置の概略構成を機能的に示すブロックである。同図において、画像形成装置は、スキャナユニット1、画像処理ユニット2、及びプリンタユニット3から構成されている。スキャナユニット1は原稿画像を光学的に読み取り、電気信号に変換して出力する。画像処理ユニット2はスキャナユニット1から入力された読み取り画像信号を印刷可能な印字信号に変換する処理を各工程で実行し、印字信号をプリンタユニット3に出力する。プリンタユニット3は、画像処理ユニット2から出力される印字信号に基づいて記録紙などの記録媒体に可視画像を形成する。   FIG. 1 is a block diagram functionally showing a schematic configuration of an image forming apparatus according to an embodiment of the present invention. In FIG. 1, the image forming apparatus includes a scanner unit 1, an image processing unit 2, and a printer unit 3. The scanner unit 1 optically reads a document image, converts it into an electrical signal, and outputs it. The image processing unit 2 executes a process for converting the read image signal input from the scanner unit 1 into a printable print signal in each step, and outputs the print signal to the printer unit 3. The printer unit 3 forms a visible image on a recording medium such as recording paper based on the print signal output from the image processing unit 2.

画像処理ユニット2は、シェーディング補正部21、ライン補正部22、スキャナγ補正部23、文字写真判定部24、色補正部25、変倍処理部26、移動処理部27、プリンタγ部補正部28及び階調処理部29を備え、図示しないCPUにより制御される。このCPUは図示しないROMに格納されたプログラムにしたがって、図示しないラムをワークエリアとして使用しながら前記プログラムに基づいて下記の処理を実行する。   The image processing unit 2 includes a shading correction unit 21, a line correction unit 22, a scanner γ correction unit 23, a character / photo determination unit 24, a color correction unit 25, a scaling processing unit 26, a movement processing unit 27, and a printer γ unit correction unit 28. And a gradation processing unit 29, which are controlled by a CPU (not shown). In accordance with a program stored in a ROM (not shown), the CPU executes the following processing based on the program while using a ram (not shown) as a work area.

シェーディング補正部21では、入力濃度と出力濃度との関係が補正され、ライン間補正部22では、各ライン間のずれが補正される。スキャナγ補正部23では、スキャナユニット1から入力された画像信号の特性に基づいてγ補正が行われ、文字写真判定部24では画像処理の処理方法を変えるために画像領域か文字領域かが判定される。色補正部25では、RGB表色系からYMCK表色系に変換する際の対応をとる補正が行われ、変倍処理部26では、変倍指示があったときに変倍率に応じた画像データが作成される。移動処理部27では、画像の移動や回転指示があった場合に、その指示に対応した座標変換が行われ、プリンタγ補正部28では、出力するプリンタユニット3の特性に対応したγ補正が行われる。最後に、階調処理部29で色毎の階調処理が行われ、印字信号としてプリンタユニット3に出力される。   The shading correction unit 21 corrects the relationship between the input density and the output density, and the interline correction unit 22 corrects the shift between the lines. The scanner γ correction unit 23 performs γ correction on the basis of the characteristics of the image signal input from the scanner unit 1, and the character / photo determination unit 24 determines whether the image region or the character region in order to change the image processing method. Is done. The color correction unit 25 performs a correction to cope with the conversion from the RGB color system to the YMCK color system, and the magnification processing unit 26 performs image data corresponding to the magnification when the magnification instruction is given. Is created. When there is an instruction to move or rotate the image, the movement processing unit 27 performs coordinate conversion corresponding to the instruction, and the printer γ correction unit 28 performs γ correction corresponding to the characteristics of the output printer unit 3. Is called. Finally, gradation processing for each color is performed by the gradation processing unit 29 and output to the printer unit 3 as a print signal.

図2は変倍処理部26の内部構成を示すブロック図である。変倍処理部26は、第1ないし第8のマルチプレクサ26b、26c、26d、26e、26f、26g、26h、26i(以下、MUX(1)〜(8)として示す)と、第1及び第2のラインメモリ(以下、図ではラインメモリ(1)、(2)というように()を付けて示す)26j、26kと、補間演算処理部26lと、後処理部26mとを備えている。色補正部25から色補正された信号が入力される前処理部26aは第1のMUX26bに接続され第1のMUX26bは、第2のMUX26c及び第3のMUX26dに接続され、第2のMUX26cは第4のMUX26eに、第3のMUX26dは補間演算処理部26lにそれぞれ接続されて後段に信号を送信する。さらに、第4のMUX26eは第1及び第2のラインメモリ26j,26kにそれぞれ接続され、第1及び第2のラインメモリ26j,26kはそれぞれ第5のMUX26fに接続され、後段に信号を送信する。さらに、第5のMUX26fは第6のMUX26gに接続され、第6のMUX26dは第3及び第8のMUX26iにそれぞれ接続され、後段に信号を送信する。補間演算処理部26lは第7のMUX26kに接続され、第7のMUXは第2のMUX26c及び第8のMUX26iにそれぞれ接続され、後段に信号を送信する。第8のMUX26iは後処理部26mに接続され、後処理部26mは移動処理部27に接続され、それぞれ後段に信号を出力する。   FIG. 2 is a block diagram showing an internal configuration of the scaling processing unit 26. The scaling unit 26 includes first to eighth multiplexers 26b, 26c, 26d, 26e, 26f, 26g, 26h, and 26i (hereinafter referred to as MUX (1) to (8)), first and second , 26j and 26k, an interpolation calculation processing unit 26l, and a post-processing unit 26m. The preprocessing unit 26a to which the color corrected signal is input from the color correction unit 25 is connected to the first MUX 26b, the first MUX 26b is connected to the second MUX 26c and the third MUX 26d, and the second MUX 26c is The fourth MUX 26e and the third MUX 26d are respectively connected to the interpolation calculation processing unit 26l and transmit signals to the subsequent stage. Further, the fourth MUX 26e is connected to the first and second line memories 26j and 26k, respectively, and the first and second line memories 26j and 26k are respectively connected to the fifth MUX 26f and transmit signals to the subsequent stage. . Further, the fifth MUX 26f is connected to the sixth MUX 26g, and the sixth MUX 26d is connected to the third and eighth MUXs 26i, respectively, and transmits signals to the subsequent stage. The interpolation calculation processing unit 26l is connected to the seventh MUX 26k, and the seventh MUX is connected to the second MUX 26c and the eighth MUX 26i, respectively, and transmits a signal to the subsequent stage. The eighth MUX 26i is connected to the post-processing unit 26m, and the post-processing unit 26m is connected to the movement processing unit 27, and each outputs a signal to the subsequent stage.

図3は変倍処理部26における拡大処理時の信号の接続経路示すブロック図である。拡大時には、色補正処理部25から受信した信号は、前処理部26→第1のMUX26b→第2のMUX26c→第4のMUX26d→第1あるいは第2のラインメモリ26j,26k→第5のMUX26f→第6のMUX26g→第3のMUX26d→補間演算処理部26l→第7のMUX26h→第8のMUX26i→後処理部26mという経路を経て移動処理部27に出力される。この過程で補間演算処理部26lにおいて、前記図16で説明した補間処理が実行される。その際、前記図19を参照して説明したように入力0画素目の値が問題となる。そこで、前述の図19に示した例では黒又は白の画素値を用いていたが、本実施形態では、図4に示すようにライン先頭の画素の画素値を重複して使用する。すなわち、図4に示すように入力1画素目と同じ画素値(濃度値)を入力0画素目の値として使用し、入力0画素目、入力1画素目、入力2画素目及び入力3画素目の4画素を使用して補間する。これにより不自然な画素値出力を回避している。   FIG. 3 is a block diagram showing signal connection paths during enlargement processing in the scaling unit 26. At the time of enlargement, the signal received from the color correction processing unit 25 is the preprocessing unit 26 → the first MUX 26b → the second MUX 26c → the fourth MUX 26d → the first or second line memory 26j, 26k → the fifth MUX 26f. The data is output to the movement processing unit 27 through a route of the sixth MUX 26g → the third MUX 26d → the interpolation calculation processing unit 26l → the seventh MUX 26h → the eighth MUX 26i → the post-processing unit 26m. In this process, the interpolation calculation processing unit 26l executes the interpolation processing described with reference to FIG. At that time, as described with reference to FIG. 19, the value of the input 0th pixel becomes a problem. Therefore, in the example shown in FIG. 19, the black or white pixel value is used. However, in this embodiment, the pixel value of the pixel at the head of the line is used redundantly as shown in FIG. That is, as shown in FIG. 4, the same pixel value (density value) as that of the input first pixel is used as the value of the input zeroth pixel, and the input zeroth pixel, input first pixel, input second pixel, and input third pixel Are interpolated using the four pixels. This avoids unnatural pixel value output.

また、デジタル画像処理システムでは、拡大処理時には例えば200%では1画素が2画素分、300%では1画素が3画素分と画素が増加する処理となるため、同じ画素が何度も使用され、演算されるが、この間にも入力画素は次々と入力されるため、入力画素は一度メモリに取り込まれる。そこで、本実施形態では、第1及び第2のラインメモリ26j,26kについては、図5に示すように第1及び第2の2つのFIFOメモリを使用し、1ライン分は入力画素、1ライン分は演算出力用としてライン毎にトグル動作をさせている。図5はラインメモリを使用してトグル動作を行う構成を示す説明図である。   In the digital image processing system, for example, in 200%, 1 pixel is increased by 2 pixels and in 300%, 1 pixel is increased by 3 pixels, so the same pixel is used many times. Although the calculation is performed, the input pixels are input one after another during this time, so that the input pixels are once taken into the memory. Therefore, in the present embodiment, the first and second line memories 26j and 26k use the first and second FIFO memories as shown in FIG. The minutes are toggled for each line for calculation output. FIG. 5 is an explanatory diagram showing a configuration for performing a toggle operation using a line memory.

図6は補間演算処理部26lの構成を示す図であり、対応する画素を下側に記している。この実施形態では、本演算処理部26lにおける補間演算のシステムとして第1ないし第4の4つの演算用レジスタ31,32,33,34を使用する。この4個の演算用レジスタ31,32,33,34では、第1又は第2のラインメモリ26j,26kからの入力は第4の演算用レジスタ34が受け持ち、入力された値は順次第3の演算用レジスタ33→第2の演算用レジスタ32→第1の演算用レジスタ31と図6の矢印で示すように引き継がれる。そして、この第1ないし第4の演算用レジスタ31,32,33,34に入力された4個の入力画素値から第2の演算用レジスタ32と第3の演算用レジスタ33の間にある補間画素値を演算し、出力する。   FIG. 6 is a diagram showing a configuration of the interpolation calculation processing unit 26l, and corresponding pixels are shown on the lower side. In this embodiment, the first through fourth four calculation registers 31, 32, 33, and 34 are used as the interpolation calculation system in the calculation processing unit 26l. In the four calculation registers 31, 32, 33, 34, the fourth calculation register 34 takes charge of the input from the first or second line memory 26j, 26k, and the input values are sequentially transferred to the third register. The calculation register 33 → second calculation register 32 → first calculation register 31 is taken over as shown by the arrow in FIG. Then, interpolation is performed between the second calculation register 32 and the third calculation register 33 from the four input pixel values inputted to the first to fourth calculation registers 31, 32, 33, 34. Calculate and output the pixel value.

この一連の動作について図7ないし図13を参照して説明する。
(1)入力1画素目の値の入力
図7は入力1画素目の値の入力の状態を示す図である。同図において、この動作では、まず、画素出力のトリガを受けるまでは演算用レジスタにはラインメモリ26j又は26kに記録された入力1画素目の値をクロック毎に入力し続ける。すなわち、図7に示すように第4、第3、第2及び第1の演算用レジスタ34,33,32,31には入力1画素目の値がクロック毎に入力され、各レジスタはその値を保持する。
This series of operations will be described with reference to FIGS.
(1) Input of Value of First Input Pixel FIG. 7 is a diagram showing a state of input of a value of the first input pixel. In this figure, in this operation, first, the value of the first input pixel recorded in the line memory 26j or 26k is continuously input to the arithmetic register every clock until a pixel output trigger is received. That is, as shown in FIG. 7, the value of the first input pixel is input to the fourth, third, second, and first calculation registers 34, 33, 32, and 31 for each clock. Hold.

(2)入力2画素目の値の入力
図8は入力2画素目の値の入力の状態を示す図である。(1)の状態から画素出力のトリガを受けると、第4の演算用レジスタ34にラインメモリ26j又は26kに記録された入力2画素目の値が入力される。各レジスタの値は順次後段のレジスタに引き継がれる。
(2) Input of Value of Second Input Pixel FIG. 8 is a diagram showing a state of input of the value of the second input pixel. When a pixel output trigger is received from the state (1), the value of the second input pixel recorded in the line memory 26j or 26k is input to the fourth arithmetic register 34. The value of each register is successively transferred to the subsequent register.

(3)入力3画素目の値の入力
図9は入力3画素目の値の入力の状態を示す図である。画素出力のトリガを受けてから2クロック後に1画素目出力用の値が各レジスタに入力されている。ここでは、出力1画素目が演算され、出力される。演算においては出力1画素目なので位置係数は0となり、出力値は第2の演算用レジスタ32の値と同一値が出力される。図9では、入力1画素目の位置に出力1画素目の画素が図示されている。
(3) Input of Value for Third Input Pixel FIG. 9 is a diagram showing a state of input of the value of the third input pixel. A value for the first pixel output is input to each register two clocks after receiving the trigger for pixel output. Here, the first output pixel is calculated and output. In the calculation, since the output is the first pixel, the position coefficient is 0, and the output value is the same as the value of the second calculation register 32. In FIG. 9, the pixel of the output first pixel is shown at the position of the input first pixel.

(4)出力2画素目の値の演算
図10は出力2画素目の値を演算するときのレジスタの状態を示す図である。画素出力のトリガを受けてから3クロック後((3)の状態の次のクロック)では、例えば300%の拡大変倍出力の場合には、第1ないし第4の演算用レジスタ31,32,33,34は(3)の場合の値をそのまま保持し、図16を参照して説明したように入力画素0ないし3の値(従って、入力画素1,1,2,3の4画素の値)と位置係数1/3で演算され、出力2画素目として出力される。この値は入力1画素目を重複させて演算した値となる。図10では入力1画素目から入力2画素目に1/3寄った位置に出力2画素目の画素が図示されている。
(4) Calculation of the value of the second output pixel FIG. 10 is a diagram showing the state of the register when the value of the second output pixel is calculated. Three clocks after receiving the pixel output trigger (the next clock in the state of (3)), for example, in the case of 300% enlargement magnification output, the first to fourth arithmetic registers 31, 32, 33 and 34 hold the values in the case of (3) as they are, and as described with reference to FIG. 16, the values of the input pixels 0 to 3 (accordingly, the values of the four pixels of the input pixels 1, 1, 2, 3). ) And the position coefficient 1/3 and output as the second output pixel. This value is a value calculated by overlapping the first input pixel. In FIG. 10, the pixel of the second output pixel is shown at a position that is 1/3 from the first input pixel to the second input pixel.

(5)出力3画素目の値の演算
図11は出力3画素目の値を演算するときのレジスタの状態を示す図である。この例は300%の拡大変倍出力であるため、(4)の状態の次のクロックでもレジスタは(4)の状態(いいかれば(3)の状態)の値を保持し、入力画素0ないし3の値(従って、入力画素1,1,2,3の4画素の値)と位置係数2/3で演算され、出力3画素目として出力される。この値も入力1画素目を重複させて演算した値となる。図11では入力1画素目から入力2画素目に2/3寄った位置に出力2画素目の画素が図示されている。
(5) Calculation of the value of the third output pixel FIG. 11 is a diagram showing the state of the register when the value of the third output pixel is calculated. In this example, since the enlargement / magnification output is 300%, the register holds the value of the state (4) (or the state (3) in other words) even at the next clock of the state (4), and the input pixel 0 Or a value of 3 (therefore, values of four pixels of input pixels 1, 1, 2, and 3) and a position coefficient 2/3, and output as the third output pixel. This value is also a value calculated by overlapping the first input pixel. In FIG. 11, the pixel of the second output pixel is shown at a position that is 2/3 closer to the second input pixel from the first input pixel.

(6)出力4画素目の値の演算
図12は出力4画素目の値を演算するときのレジスタの状態を示す図である。(5)の状態の次のクロックでは第1ないし第4の演算用レジスタ31,32,33,34が更新され、ラインメモリ26j又は27kから入力4画素目の値が入力され、4画素目がこの値となって入力画素1ないし4と位置係数0で演算され、出力4画素目として出力される。出力値は位置係数が0のため第2の演算用レジスタ32の値と同一になる。図12では入力2画素目の位置に出力4画素目の画素が図示されている。
(6) Calculation of the value of the fourth pixel of output FIG. 12 is a diagram showing the state of the register when the value of the fourth pixel of output is calculated. In the next clock in the state (5), the first to fourth arithmetic registers 31, 32, 33, and 34 are updated, and the value of the fourth input pixel is input from the line memory 26j or 27k. This value is calculated with the input pixels 1 to 4 and the position coefficient 0, and output as the fourth output pixel. The output value is the same as the value in the second arithmetic register 32 because the position coefficient is 0. In FIG. 12, the pixel of the output fourth pixel is shown at the position of the input second pixel.

(7)出力5画素目の値の演算
図13は出力4画素目の値を演算するときのレジスタの状態を示す図である。(6)の状態の次のクロックでは第1ないし第4の演算用レジスタはこのままの値を保持し、入力画素1ないし4と位置係数1/3で演算され、出力5画素目として出力される。図13では入力2画素目から入力3画素目に1/3寄った位置に出力5画素目の画素が図示されている。
(7) Calculation of the value of the fifth output pixel FIG. 13 is a diagram showing the state of the register when calculating the value of the fourth output pixel. In the next clock in the state (6), the first to fourth calculation registers hold the values as they are, and are calculated using the input pixels 1 to 4 and the position coefficient 1/3, and output as the fifth output pixel. . In FIG. 13, the pixel of the fifth output pixel is illustrated at a position that is 1/3 from the second input pixel to the third input pixel.

このようにして6画素目以降、順次入力された画像の画素値に対して補間演算を行い、不自然でない画像を出力する。   In this way, the interpolation operation is performed on the pixel values of the sequentially input images from the sixth pixel onward, and an unnatural image is output.

なお、縮小処理時には、例えば図18に示したように66.66%では3画素を2画素に減少させ、補間している。この縮小処理時には、同じ画素が演算に何度も使用されることはないので、最初に補間演算処理が実行され、それよりも後段でラインメモリとトグル動作させて1ラインずつ出力する。図14はこの縮小処理時の拡大処理時の信号の接続経路示すブロック図である。   In the reduction process, for example, as shown in FIG. 18, in 66.66%, 3 pixels are reduced to 2 pixels, and interpolation is performed. At the time of this reduction processing, the same pixel is not used many times for the calculation, so the interpolation calculation processing is executed first, and the line memory is toggled at the subsequent stage to output one line at a time. FIG. 14 is a block diagram showing signal connection paths during the enlargement process during the reduction process.

同図において、信号は前処理部26a→第1のMUX26b→第3のMUX26d→補間演算処理部26l→第7のMUX26h→第2のMUX26c→第4のMUX26e→第1又は第2のラインメモリ26j又は26k→第5のMUX26f→第6のMUX26g→第8のMUX26i→後処理部26mという経路を経て移動処理部27に出力される。この過程で補間演算処理部26lにおいて、前記図18で説明した補間処理が実行される。   In the figure, the signal is a preprocessing unit 26a → first MUX 26b → third MUX 26d → interpolation calculation processing unit 26l → seventh MUX 26h → second MUX 26c → fourth MUX 26e → first or second line memory. 26j or 26k → 5th MUX 26f → 6th MUX 26g → 8th MUX 26i → post-processing unit 26m and then output to the movement processing unit 27. In this process, the interpolation calculation processing unit 26l executes the interpolation processing described with reference to FIG.

なお、本実施形態では、ラインの先端側の画像データについて述べているが、ラインの後端側についても補間演算に画像データが不足する場合には、最後端の画像データ(画素値)を重複して使用し、補間演算を行う。   In the present embodiment, the image data on the front end side of the line is described. However, if the image data is insufficient for the interpolation operation on the rear end side of the line, the last end image data (pixel value) is duplicated. Used to perform interpolation calculations.

また、本実施形態では、変倍処理(拡大)について画像データ先端部で補間演算に不足する画像データを、転送されてきた先端部分の画像データ(画素値)を重複して使用しているが、同様のラインの先端部分の画像データの重複使用は、変倍処理に限らずフィルタ処理にも適用することができる。   In the present embodiment, the image data that is insufficient for the interpolation calculation at the front end of the image data for the scaling process (enlargement) is used by overlapping the transferred image data (pixel value) at the front end. Similar use of the image data at the leading end of the line can be applied not only to the scaling process but also to the filter process.

以上のように本実施形態によれば、
(1)拡大変倍時に画像データ先端部分で補間演算に不足する画像データ(画素値)について先端部分(1ラインの入力1画素目の画素)の画素値を重複して使用するので、ライン先端部の不自然な補間出力データの出力を回避することができる。これにより不自然な画像が画像先端部に表れることはない。
(2)補間演算に用いるレジスタはカスケードに接続されているので、演算時に画素値を重複して使用する際の制御が容易になる。
(3)補間演算時の画素値の重複処理において出力トリガが入力されるまではラインメモリにある画像先端部分のデータでレジスタ更新をするので、画素値を重複して使用する際の制御が容易になり、特別な回路も不要となる。
(4)拡大変倍時に画像データ後端部分で補間演算に不足する画像データ(画素値)について後端部分(1ラインの入力最終画素の画素)の画像値を重複して使用するので、画像後端部の不自然な補間出力データの出力を回避することができる。これにより不自然な画像が画像後端部に表れることはない。
などの効果を奏する。
As described above, according to this embodiment,
(1) Since the pixel value of the leading end portion (pixel of the first input pixel of one line) is used redundantly for the image data (pixel value) that is insufficient for interpolation calculation at the leading end portion of the image data at the time of enlargement / reduction scaling, The output of unnatural interpolation output data can be avoided. As a result, an unnatural image does not appear at the leading edge of the image.
(2) Since the registers used for the interpolation calculation are connected in cascade, the control when the pixel values are used redundantly during the calculation becomes easy.
(3) Since the register is updated with the data at the leading end of the image in the line memory until the output trigger is input in the overlap processing of the pixel value at the time of the interpolation calculation, it is easy to control when the pixel value is used redundantly. Thus, no special circuit is required.
(4) Since the image value of the rear end portion (pixel of the input final pixel of one line) is used redundantly for the image data (pixel value) that is insufficient for the interpolation calculation at the rear end portion of the image data at the time of zooming, The output of unnatural interpolation output data at the rear end can be avoided. As a result, an unnatural image does not appear at the rear end of the image.
There are effects such as.

本発明の実施形態に係る画像形成装置の概略構成を機能的に示すブロックである。1 is a block diagram functionally showing a schematic configuration of an image forming apparatus according to an embodiment of the present invention. 図1の変倍処理部の内部構成を示すブロック図である。It is a block diagram which shows the internal structure of the scaling process part of FIG. 図2の変倍処理部における拡大処理時の信号の接続経路示すブロック図である。FIG. 3 is a block diagram illustrating signal connection paths during enlargement processing in the scaling processing unit of FIG. 2. 先頭画素の画像データ(画素値)を重複して使用するときの状態を示す説明図である。It is explanatory drawing which shows a state when using the image data (pixel value) of a top pixel redundantly. ラインメモリを使用してトグル動作を行う構成を示す説明図である。It is explanatory drawing which shows the structure which performs toggle operation | movement using a line memory. 図2の補間演算処理部の構成と対応する画素の状態を示す説明図である。It is explanatory drawing which shows the state of the pixel corresponding to the structure of the interpolation calculation process part of FIG. 図6における入力1画素目の値の入力のときの状態を示す説明図である。It is explanatory drawing which shows the state at the time of the input of the value of the input 1st pixel in FIG. 図6における入力2画素目の値の入力のときの状態を示す説明図である。It is explanatory drawing which shows the state at the time of the input of the value of the 2nd input pixel in FIG. 図6における入力3画素目の値の入力のときの状態を示す図である。It is a figure which shows the state at the time of the input of the value of the input 3rd pixel in FIG. 図6における出力2画素目の値を演算するときのレジスタの状態を示す説明図である。It is explanatory drawing which shows the state of a register when calculating the value of the output 2nd pixel in FIG. 図6における出力3画素目の値を演算するときのレジスタの状態を示す説明図である。It is explanatory drawing which shows the state of a register when calculating the value of the output 3rd pixel in FIG. 図6における出力4画素目の値を演算するときのレジスタの状態を示す説明図である。It is explanatory drawing which shows the state of a register when calculating the value of the 4th output pixel in FIG. 図6における出力5画素目の値を演算するときのレジスタの状態を示す説明図である。It is explanatory drawing which shows the state of a register when calculating the value of the 5th output pixel in FIG. 図2の変倍処理部における縮小処理時の拡大処理時の信号の接続経路示すブロック図である。FIG. 3 is a block diagram illustrating signal connection paths during enlargement processing during reduction processing in the scaling processing unit of FIG. 2. 主走査方向の画素密度が600dpiの入力画素を概念的に示す図である。It is a figure which shows notionally the input pixel whose pixel density of the main scanning direction is 600 dpi. 従来から実施されている拡大時の補間演算の概略を示す説明図である。It is explanatory drawing which shows the outline of the interpolation calculation at the time of the expansion currently implemented conventionally. 主走査方向の画素密度が66.66%縮小時の主走査方向の画素の状態を示す図である。It is a figure which shows the state of the pixel of the main scanning direction at the time of the pixel density of the main scanning direction reducing 66.66%. 従来から実施されている66.66%縮小時の画素の削除と補間を示す図である。It is a figure which shows the deletion and interpolation of the pixel at the time of 66.66% reduction implemented conventionally. 入力1画素目と入力2画素目の間にある補間画素の位置を示す図である。It is a figure which shows the position of the interpolation pixel between the input 1st pixel and the input 2nd pixel.

符号の説明Explanation of symbols

1 スキャナユニット
2 画像処理装置ユニット
3 プリンタユニット
26 変倍処理部
26j,26k ラインメモリ
26l 補間塩山処理部
31〜34 レジスタ
DESCRIPTION OF SYMBOLS 1 Scanner unit 2 Image processing apparatus unit 3 Printer unit 26 Scaling processing part 26j, 26k Line memory 26l Interpolation salt mountain processing part 31-34 Register

Claims (5)

前段から入力された画像データに対して所定の処理を施して後段に出力する画像処理装置において、
入力された画像データの1ラインの端部の補間演算に不足する画像データについて、入力された端部の画像データを補間演算時の先端画素の画像データとして重複させて使用し、補間演算を行う補間演算手段を備えていることを特徴とする画像処理装置。
In an image processing apparatus that performs predetermined processing on image data input from the previous stage and outputs the processed data to the subsequent stage,
For image data that is insufficient for the interpolation calculation at the end of one line of the input image data, the input image data at the end is used as the image data of the leading pixel at the time of the interpolation calculation, and the interpolation calculation is performed. An image processing apparatus comprising an interpolation calculation means.
請求項1記載の画像処理装置において、
前記端部が先端部又は後端部であることを特徴とする画像処理装置。
The image processing apparatus according to claim 1.
An image processing apparatus, wherein the end is a front end or a rear end.
請求項1又は2記載の画像処理装置において、
前記補間演算手段が補間演算を行う際に前記入力された画像データが格納されるラインメモリから転送されてきた画像データを保持するレジスタがカスケードに接続されていることを特徴とする画像処理装置。
The image processing apparatus according to claim 1 or 2,
An image processing apparatus, wherein a register for holding image data transferred from a line memory in which the input image data is stored when the interpolation calculation means performs interpolation calculation is connected in cascade.
請求項1ないし3のいずれか1項に記載の画像処理装置において、
重複して処理する際に前記レジスタは出力トリガが入力されるまで画像データを供給するラインメモリが保持している端部の画像データによって更新されることを特徴とする画像処理装置。
The image processing apparatus according to any one of claims 1 to 3,
The image processing apparatus according to claim 1, wherein the register is updated with image data at an end held by a line memory that supplies image data until an output trigger is input when processing is repeated.
請求項1ないし4のいずれか1行に記載の画像処理装置を備えていることを特徴とする画像形成装置。   An image forming apparatus comprising the image processing apparatus according to claim 1.
JP2006318837A 2006-11-27 2006-11-27 Image processing apparatus and image forming apparatus Pending JP2008135851A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2006318837A JP2008135851A (en) 2006-11-27 2006-11-27 Image processing apparatus and image forming apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2006318837A JP2008135851A (en) 2006-11-27 2006-11-27 Image processing apparatus and image forming apparatus

Publications (1)

Publication Number Publication Date
JP2008135851A true JP2008135851A (en) 2008-06-12

Family

ID=39560403

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2006318837A Pending JP2008135851A (en) 2006-11-27 2006-11-27 Image processing apparatus and image forming apparatus

Country Status (1)

Country Link
JP (1) JP2008135851A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8412003B2 (en) 2009-02-12 2013-04-02 Samsung Electronics Co., Ltd. Image processing methods, apparatus and computer program products using interdependent pixel interpolation operations
JP2018046482A (en) * 2016-09-16 2018-03-22 キヤノン株式会社 Image reader and image reading method

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004032510A (en) * 2002-06-27 2004-01-29 Canon Inc Image processing method and apparatus

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004032510A (en) * 2002-06-27 2004-01-29 Canon Inc Image processing method and apparatus

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8412003B2 (en) 2009-02-12 2013-04-02 Samsung Electronics Co., Ltd. Image processing methods, apparatus and computer program products using interdependent pixel interpolation operations
JP2018046482A (en) * 2016-09-16 2018-03-22 キヤノン株式会社 Image reader and image reading method

Similar Documents

Publication Publication Date Title
US8169656B2 (en) Image processing devices and methods for resizing an original image therefor
JP2010134697A (en) Convolution operation circuit, hierarchical convolution operation circuit, and object recognition device
JP6752662B2 (en) Image processing system, image forming apparatus, and image processing method
JP2012236344A (en) Printing apparatus, data processing method for the printing apparatus and program
JP5522890B2 (en) Image processing apparatus and method
CN102436357B (en) Image processing apparatus and image processing method
JP2008135851A (en) Image processing apparatus and image forming apparatus
JP2004056266A (en) Image area separating device, image processor, image forming apparatus, program, and storage medium
US8902474B2 (en) Image processing apparatus, control method of the same, and program
JP5515552B2 (en) Pixel interpolation device, pixel interpolation method, and image reading device
JP4945462B2 (en) Image scaling processing method, image scaling processing apparatus, image processing apparatus, and image forming apparatus
JP2005269502A (en) Image processing apparatus and image processing method
JP2007272878A (en) Image processing program and image processing device
JP7447519B2 (en) Image processing device, program, and image processing method
CN111199520B (en) FPGA implementation method for color image scale expansion based on three-time convolution algorithm
JP4746945B2 (en) Resolution conversion apparatus and method
JP4693649B2 (en) Image processing apparatus and image data interpolation method
JP2010056637A (en) Image forming apparatus
JP2005250534A (en) Image processor
KR940001106B1 (en) Image processing method and apparatus therefor
JP2008131111A (en) Color image forming apparatus, and color image processing apparatus
JP4346039B2 (en) Data processing device
JP5205364B2 (en) Image forming apparatus and image forming method
JP2002290709A (en) Image processor
JP2010050846A (en) Error diffusion processing apparatus and error diffusion processing method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20090515

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20101201

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20101214

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20110214

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20110524