JP2008135851A - Image processing apparatus and image forming apparatus - Google Patents
Image processing apparatus and image forming apparatus Download PDFInfo
- 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
Links
- 238000012545 processing Methods 0.000 title claims abstract description 68
- 230000015654 memory Effects 0.000 claims abstract description 23
- 238000004364 calculation method Methods 0.000 claims description 62
- 238000010586 diagram Methods 0.000 description 22
- 238000000034 method Methods 0.000 description 19
- 238000012805 post-processing Methods 0.000 description 5
- 238000007781 pre-processing Methods 0.000 description 3
- 238000003672 processing method Methods 0.000 description 3
- 238000003705 background correction Methods 0.000 description 2
- 238000006243 chemical reaction Methods 0.000 description 2
- 238000012217 deletion Methods 0.000 description 2
- 230000037430 deletion Effects 0.000 description 2
- 238000011946 reduction process Methods 0.000 description 2
- 238000005070 sampling Methods 0.000 description 2
- 238000012888 cubic function Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 150000003839 salts Chemical class 0.000 description 1
Images
Abstract
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
図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
なお、このような補間の技術として特許文献1あるいは2に記載された発明が知られている。このうち、特許文献1に記載された発明は、画像の拡大、縮小時における補間処理で意図しない強調処理が行われることのない画像処理装置を提供するため、入力画像に対して設定された任意の変倍率に応じて変倍画像を出力する画像処理装置において、入力された同一ライン上の連続する画素を順次格納する格納手段とこの格納手段に順次格納された少なくとも4画素を変数として演算し、出力する演算手段と、前記格納手段に順次格納された少なくとも4画素の状態が、ある一定の値が続いた後、別の値がまた一定期間続く階調パターンであるかどうかを判別する判別手段と、この判別手段の判別結果に応じて前記演算手段の出力を選択する選択手段と、を備えていることを特徴とする。
Note that the invention described in
また、特許文献2に記載された発明は、特許文献1記載の発明と同様に拡大、縮小倍率の値の如何に関わらず、常に高精度な変倍処理を行うことができる画像処理方法を提供するため、ある周期上の画素から連続する複数画素をサンプリング画素とし、その画素間の仮想画素を、距離をパラメータとする三次関数により求める際に、特定の条件を満たす倍率では、その仮想画素の位置を変化させ、入力画素を変倍処理する画像処理方法を特徴とする。
ところで、前記補間方法においては、拡大の場合、先端画素では、図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
このような場合、従来では、先端画素は紙上に出力されても画像端となり消去あるいはマスクされるため、図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
本発明によれば、入力された画像データの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
画像処理ユニット2は、シェーディング補正部21、ライン補正部22、スキャナγ補正部23、文字写真判定部24、色補正部25、変倍処理部26、移動処理部27、プリンタγ部補正部28及び階調処理部29を備え、図示しないCPUにより制御される。このCPUは図示しないROMに格納されたプログラムにしたがって、図示しないラムをワークエリアとして使用しながら前記プログラムに基づいて下記の処理を実行する。
The
シェーディング補正部21では、入力濃度と出力濃度との関係が補正され、ライン間補正部22では、各ライン間のずれが補正される。スキャナγ補正部23では、スキャナユニット1から入力された画像信号の特性に基づいてγ補正が行われ、文字写真判定部24では画像処理の処理方法を変えるために画像領域か文字領域かが判定される。色補正部25では、RGB表色系からYMCK表色系に変換する際の対応をとる補正が行われ、変倍処理部26では、変倍指示があったときに変倍率に応じた画像データが作成される。移動処理部27では、画像の移動や回転指示があった場合に、その指示に対応した座標変換が行われ、プリンタγ補正部28では、出力するプリンタユニット3の特性に対応したγ補正が行われる。最後に、階調処理部29で色毎の階調処理が行われ、印字信号としてプリンタユニット3に出力される。
The
図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
図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
また、デジタル画像処理システムでは、拡大処理時には例えば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
図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
この一連の動作について図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
(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
(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
(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
(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
(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
(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
このようにして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
なお、本実施形態では、ラインの先端側の画像データについて述べているが、ラインの後端側についても補間演算に画像データが不足する場合には、最後端の画像データ(画素値)を重複して使用し、補間演算を行う。 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 スキャナユニット
2 画像処理装置ユニット
3 プリンタユニット
26 変倍処理部
26j,26k ラインメモリ
26l 補間塩山処理部
31〜34 レジスタ
DESCRIPTION OF
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.
前記端部が先端部又は後端部であることを特徴とする画像処理装置。 The image processing apparatus according to claim 1.
An image processing apparatus, wherein the end is a front end or a rear end.
前記補間演算手段が補間演算を行う際に前記入力された画像データが格納されるラインメモリから転送されてきた画像データを保持するレジスタがカスケードに接続されていることを特徴とする画像処理装置。 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.
重複して処理する際に前記レジスタは出力トリガが入力されるまで画像データを供給するラインメモリが保持している端部の画像データによって更新されることを特徴とする画像処理装置。 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.
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)
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)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2004032510A (en) * | 2002-06-27 | 2004-01-29 | Canon Inc | Image processing method and apparatus |
-
2006
- 2006-11-27 JP JP2006318837A patent/JP2008135851A/en active Pending
Patent Citations (1)
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)
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 |