JP6750357B2 - Image processing apparatus, image processing method and program - Google Patents

Image processing apparatus, image processing method and program Download PDF

Info

Publication number
JP6750357B2
JP6750357B2 JP2016136976A JP2016136976A JP6750357B2 JP 6750357 B2 JP6750357 B2 JP 6750357B2 JP 2016136976 A JP2016136976 A JP 2016136976A JP 2016136976 A JP2016136976 A JP 2016136976A JP 6750357 B2 JP6750357 B2 JP 6750357B2
Authority
JP
Japan
Prior art keywords
input image
fluctuation
geometric correction
unit
correction
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.)
Active
Application number
JP2016136976A
Other languages
Japanese (ja)
Other versions
JP2018011129A (en
Inventor
宮城 徳子
徳子 宮城
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 JP2016136976A priority Critical patent/JP6750357B2/en
Publication of JP2018011129A publication Critical patent/JP2018011129A/en
Application granted granted Critical
Publication of JP6750357B2 publication Critical patent/JP6750357B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、画像処理装置、画像処理方法およびプログラムに関する。 The present invention relates to an image processing device, an image processing method and a program.

電子写真方式の画像形成装置では、レジストずれやスキューずれ、表裏に印刷可能な画像形成装置では表裏ずれが発生する。そこで、ずれ量を測定して、ずれを相殺するように、予め画像の位置補正や変形補正を行う補正技術が知られている。 In an electrophotographic image forming apparatus, registration deviation or skew deviation occurs, and in an image forming apparatus capable of printing on the front and back sides, front and back deviation occurs. Therefore, there is known a correction technique that measures the amount of deviation and performs image position correction and deformation correction in advance so as to cancel the deviation.

例えば、特許文献1には、画像情報を第1の方向に分割する画像分割手段と、乱数を生成して記憶する、または予め生成された乱数を記憶する乱数記憶手段と、第1の方向に分割された画像情報の各領域に対して画素の挿入または画素の間引きを行う補正処理の対象となる画素を決定する際の基準となる基準位置を、第1の方向と直交する第2の方向において異なる位置に決定する基準位置決定手段と、乱数記憶手段に記憶された乱数と基準位置決定手段によって決定された基準位置とに応じて、第1の方向に分割された画像情報の各領域において補正処理の対象となる画素を決定する画素決定手段と、画素決定手段によって決定された画素に対して補正処理を行って、画像情報の第1の方向の画像幅を変更する画像幅変更手段と、を具備する画像処理装置が開示されている。 For example, in Patent Document 1, an image dividing unit that divides image information in a first direction, a random number storing unit that generates and stores a random number, or stores a pre-generated random number, and a first direction A reference position, which is a reference when determining a pixel to be a correction process for inserting or thinning out a pixel in each area of the divided image information, is a second direction orthogonal to the first direction. In each area of the image information divided in the first direction in accordance with the reference position determining means for determining different positions in, and the random number stored in the random number storage means and the reference position determined by the reference position determining means. Pixel determining means for determining pixels to be corrected, and image width changing means for performing correction processing on the pixels determined by the pixel determining means to change the image width of the image information in the first direction. There is disclosed an image processing device including:

この画像処理装置では、入力画像に対して擬似階調処理を行い、擬似階調処理後の2値画像に対して、基準位置の変動を伴う画像幅変更処理を行っていた。 In this image processing device, the pseudo gradation process is performed on the input image, and the binary image after the pseudo gradation process is subjected to the image width changing process accompanied by the fluctuation of the reference position.

しかしながら、このような従来の画像処理装置によると、入力画像が網掛け等の二値パターンを含むときには、二値パターンの周期と擬似階調処理のスクリーン周期との両方に対して、ともに干渉しないように、基準位置の変動周期を決めるのが困難であり、結果として、補正した画像にモアレ(干渉縞)を発生させてしまうおそれがあった。 However, according to such a conventional image processing apparatus, when the input image includes a binary pattern such as a halftone dot, neither the cycle of the binary pattern nor the screen cycle of the pseudo gradation process interferes with each other. As described above, it is difficult to determine the variation cycle of the reference position, and as a result, moire (interference fringes) may occur in the corrected image.

本発明は、上記に鑑みてなされたものであって、入力画像が網掛け等の二値パターンを含む場合であっても、補正した画像にモアレを発生させないことを目的とするものである。 The present invention has been made in view of the above, and an object thereof is to prevent moire from occurring in a corrected image even when the input image includes a binary pattern such as halftone dot meshing.

上述した課題を解決し、目的を達成するために、本発明は、プリンタ出力時に発生する入力画像のずれ量を取得するずれ量取得手段と、前記入力画像に対して、当該入力画像の座標点あるいは前記入力画像に対して揺らぎを付加した後で、前記ずれ量に応じた幾何補正を行って、幾何補正後の座標点の画素値を補間演算によって算出する幾何補正手段と、前記幾何補正された前記入力画像に対して、前記入力画像の濃度階調を擬似階調で表す擬似階調処理を行う擬似階調処理手段と、を備える、ことを特徴とする。 In order to solve the above-mentioned problems and achieve the object, the present invention provides a deviation amount acquisition unit for acquiring a deviation amount of an input image generated at the time of printer output , and coordinate points of the input image with respect to the input image. or after adding a fluctuation with respect to the input image, a geometric correction I line in accordance with the shift amount, and geometric correction means for calculating a pixel value of the coordinate point after the geometric correction by interpolation, said geometric correction relative to said input image, and a pseudo gradation processing means for performing a pseudo gradation processing which represents the density gradation of the input image in the pseudo gradation, Bei El a, and wherein the.

本発明によれば、入力画像が網掛け等の二値パターンを含む場合であっても、モアレの発生を防止することができる。 According to the present invention, it is possible to prevent the occurrence of moire even when the input image includes a binary pattern such as a mesh.

図1は、第1の実施の形態の画像処理装置を備えた画像形成装置のハードウェア構成を示すハードウェアブロック図である。FIG. 1 is a hardware block diagram showing a hardware configuration of an image forming apparatus including the image processing apparatus according to the first embodiment. 図2は、第1の実施の形態の画像処理装置の機能構成を示す機能ブロック図である。FIG. 2 is a functional block diagram showing a functional configuration of the image processing apparatus according to the first embodiment. 図3は、画像歪みに対する幾何補正の一例を示す図であり、図3(a)は、入力画像、および入力画像を幾何補正しないでプリンタ出力した幾何補正無し時の出力画像の一例を示す図である。図3(b)は、入力画像を幾何補正した幾何補正後画像、および幾何補正後画像をプリンタ出力した出力画像の一例を示す図である。FIG. 3 is a diagram showing an example of geometric correction with respect to image distortion, and FIG. 3A is a diagram showing an example of an input image and an output image output from a printer without geometric correction without geometric correction. Is. FIG. 3B is a diagram showing an example of a geometrically corrected image obtained by geometrically correcting the input image and an output image obtained by outputting the geometrically corrected image to a printer. 図4は、幾何補正部の詳細構成を示す機能ブロック図である。FIG. 4 is a functional block diagram showing a detailed configuration of the geometric correction unit. 図5は、対応座標点算出部の機能について説明する図である。FIG. 5 is a diagram illustrating the function of the corresponding coordinate point calculation unit. 図6は、補間演算部の機能について説明する図である。FIG. 6 is a diagram illustrating the function of the interpolation calculation unit. 図7は、揺らぎ付加部の機能について説明する図である。FIG. 7 is a diagram illustrating the function of the fluctuation adding unit. 図8は、揺らぎ関数の一例を示す図である。FIG. 8 is a diagram showing an example of the fluctuation function. 図9は、揺らぎ付加の効果について説明する図であり、図9(a)は、入力画像の一例を示す図である。図9(b)は、入力画像に対して、揺らぎを付加しないで横方向の倍率補正を行った結果の一例を示す図である。図9(c)は、図9(b)の画像を擬似階調処理した結果の一例を示す図である。図9(d)は、入力画像に対して、揺らぎを付加して横方向の倍率補正を行った結果の一例を示す図である。図9(e)は、図9(d)の画像を擬似階調処理した結果の一例を示す図である。FIG. 9 is a diagram for explaining the effect of adding fluctuation, and FIG. 9A is a diagram showing an example of an input image. FIG. 9B is a diagram showing an example of a result of lateral magnification correction performed on the input image without adding fluctuation. FIG. 9C is a diagram showing an example of a result of pseudo gradation processing performed on the image of FIG. 9B. FIG. 9D is a diagram showing an example of a result obtained by adding fluctuation to the input image and performing lateral magnification correction. FIG. 9E is a diagram showing an example of a result of pseudo gradation processing performed on the image of FIG. 9D. 図10は、第1の実施の形態の画像処理装置が行う処理の流れを示すフローチャートである。FIG. 10 is a flowchart showing the flow of processing performed by the image processing apparatus according to the first embodiment. 図11は、幾何補正の流れを示すフローチャートである。FIG. 11 is a flowchart showing the flow of geometric correction. 図12は、第1の実施の形態の変形例における幾何補正部の詳細構成を示す機能ブロック図である。FIG. 12 is a functional block diagram showing the detailed configuration of the geometric correction unit in the modification of the first embodiment. 図13は、揺らぎ付加部の機能について説明する図である。FIG. 13 is a diagram illustrating the function of the fluctuation adding unit. 図14は、第2の実施の形態の画像処理装置の機能構成を示す機能ブロック図である。FIG. 14 is a functional block diagram showing a functional configuration of the image processing apparatus according to the second embodiment. 図15は、揺らぎ付加の効果について説明する図である。FIG. 15 is a diagram for explaining the effect of adding fluctuation. 図16は、第2の実施の形態の画像処理装置が行う処理の流れを示すフローチャートである。FIG. 16 is a flowchart showing the flow of processing performed by the image processing apparatus according to the second embodiment.

(第1の実施の形態の説明)
以下、この発明を実施するための第1の実施の形態を図面に基づいて説明する。まず、本発明の画像処理装置を備えた画像形成装置の一実施の形態のハードウェア構成について、図1のハードウェアブロック図を用いて説明する。
(Description of First Embodiment)
Hereinafter, a first embodiment for carrying out the present invention will be described with reference to the drawings. First, a hardware configuration of an embodiment of an image forming apparatus including an image processing apparatus of the present invention will be described with reference to the hardware block diagram of FIG.

図1に示す画像形成装置100aは、コントローラ101と、エンジン制御部110と、画像読取部111と、電子写真方式のプロッタ部112と、画像処理部113と、操作部108と、を備えている。画像形成装置100aは、例えば複写機、プリンタ、ファクシミリ装置、デジタル複合機(MFP:MultiFunction Peripheral)等として構成される。 The image forming apparatus 100a illustrated in FIG. 1 includes a controller 101, an engine control unit 110, an image reading unit 111, an electrophotographic plotter unit 112, an image processing unit 113, and an operation unit 108. .. The image forming apparatus 100a is configured as, for example, a copying machine, a printer, a facsimile apparatus, a digital multi-function peripheral (MFP), or the like.

コントローラ101は、CPU102、RAM103、ROM104、HDD(Hard Disk Drive)105、通信I/F(インタフェース)106および操作I/F107を備え、操作I/F107は操作部108と接続している。これらの構成要素は、システムバス109によって互いに接続されている。コントローラ101は、一般的なマイクロコンピュータの構成を有している。 The controller 101 includes a CPU 102, a RAM 103, a ROM 104, an HDD (Hard Disk Drive) 105, a communication I/F (interface) 106, and an operation I/F 107, and the operation I/F 107 is connected to the operation unit 108. These components are connected to each other by the system bus 109. The controller 101 has a general microcomputer configuration.

CPU102は、RAM103をワークエリアとして、ROM104またはHDD105に記憶されたプログラムを実行することにより、画像形成装置100a全体を制御する。なお、プログラムは、ROM104またはHDD105に予め組み込まれて提供される。また、プログラムは、インストール可能な形式、または実行可能な形式のファイルでCD−ROM、フレキシブルディスク(FD)、CD−R、DVD(Digital Versatile Disc)等のコンピュータで読み取り可能な記録媒体に記録して提供するように構成してもよい。さらに、プログラムをインターネット等のネットワークに接続されたコンピュータ上に格納し、ネットワーク経由でダウンロードさせることにより提供するように構成してもよい。また、プログラムをインターネット等のネットワーク経由で提供または配布するように構成してもよい。 The CPU 102 controls the entire image forming apparatus 100a by executing a program stored in the ROM 104 or the HDD 105 using the RAM 103 as a work area. The program is provided by being pre-installed in the ROM 104 or the HDD 105. The program is recorded in a computer-readable recording medium such as a CD-ROM, a flexible disk (FD), a CD-R, a DVD (Digital Versatile Disc) in the form of an installable or executable file. It may be configured to be provided. Further, the program may be stored in a computer connected to a network such as the Internet and may be provided by being downloaded via the network. Further, the program may be provided or distributed via a network such as the Internet.

ROM104およびHDD105は、不揮発性記憶媒体(記憶手段)であり、CPU102が実行する各種プログラムや各種の固定データを格納している。 The ROM 104 and the HDD 105 are nonvolatile storage media (storage means), and store various programs executed by the CPU 102 and various fixed data.

通信I/F106は、画像形成装置100aを、図1に非図示のLAN等のネットワークと接続するためのインタフェースである。 The communication I/F 106 is an interface for connecting the image forming apparatus 100a to a network such as a LAN (not shown in FIG. 1).

操作I/F107は、操作部108をシステムバス109に接続して、CPU102から制御可能とするためのインタフェースである。 The operation I/F 107 is an interface for connecting the operation unit 108 to the system bus 109 and enabling control from the CPU 102.

操作部108は、ユーザからの操作を受け付けるためのキー、ボタン、タッチセンサ等の操作手段と、ユーザに対して情報を提示するためのディスプレイ等の表示手段とを備えるユーザインタフェースである。 The operation unit 108 is a user interface including operation means such as keys, buttons, and touch sensors for receiving operations from the user, and display means such as a display for presenting information to the user.

画像読取部111は、原稿の画像を読み取ってその画像データを取得する機能を備える画像読取手段である。 The image reading unit 111 is an image reading unit having a function of reading an image on a document and acquiring the image data.

プロッタ部112は、画像読取部111が読み取った画像データ、あるいは通信I/F106を介して外部から入力された画像データに基づいて、出力紙(用紙)に画像を形成してプリンタ出力する機能を備えた電子写真方式の画像形成手段である。 The plotter unit 112 has a function of forming an image on output paper (paper) and outputting to a printer based on image data read by the image reading unit 111 or image data input from the outside via the communication I/F 106. It is an electrophotographic image forming means provided.

画像処理部113は、画像読取部111が読み取った画像データや外部から入力された画像データに対して、後述する種々の画像処理を行う画像処理手段である。画像処理部113と、CPU102と、RAM103と、ROM104と、HDD105と、エンジン制御部110と、プロッタ部112と、は本発明における画像処理装置115aを構成する。 The image processing unit 113 is an image processing unit that performs various types of image processing described later on the image data read by the image reading unit 111 or the image data input from the outside. The image processing unit 113, the CPU 102, the RAM 103, the ROM 104, the HDD 105, the engine control unit 110, and the plotter unit 112 constitute the image processing device 115a in the present invention.

エンジン制御部110は、画像読取部111、プロッタ部112および画像処理部113を、システムバス109を介してCPU102から受信したコマンドに従って制御する制御手段である。 The engine control unit 110 is a control unit that controls the image reading unit 111, the plotter unit 112, and the image processing unit 113 according to a command received from the CPU 102 via the system bus 109.

(画像処理装置の機能構成の説明)
次に、本発明の第1の実施の形態の画像処理装置115aの機能構成を、図2を用いて説明する。図2は、第1の実施の形態の画像処理装置115aの機能構成を示す機能ブロック図である。
(Description of functional configuration of image processing apparatus)
Next, the functional configuration of the image processing apparatus 115a according to the first embodiment of this invention will be described with reference to FIG. FIG. 2 is a functional block diagram showing a functional configuration of the image processing apparatus 115a according to the first embodiment.

画像処理装置115aは、描画指示取得部1、レンダリング部2、ずれ量取得部3、幾何補正パラメータ設定部4、幾何補正部5a、擬似階調処理部6およびプリンタ出力部7aを備える。 The image processing apparatus 115a includes a drawing instruction acquisition unit 1, a rendering unit 2, a deviation amount acquisition unit 3, a geometric correction parameter setting unit 4, a geometric correction unit 5a, a pseudo gradation processing unit 6, and a printer output unit 7a.

画像処理装置115aのうち、プリンタ出力部7aは、図1に示したプロッタ部112に相当する。また、画像処理装置115aのうち、プリンタ出力部7aを除く各部は、図1に示したコントローラ101と、エンジン制御部110と、画像処理部113と、によって実現される。 The printer output unit 7a of the image processing apparatus 115a corresponds to the plotter unit 112 shown in FIG. In addition, each unit of the image processing apparatus 115a except the printer output unit 7a is realized by the controller 101, the engine control unit 110, and the image processing unit 113 illustrated in FIG.

描画指示取得部1は、ページ記述言語で記述された入力画像I1(図3参照)を取得する。また、片面印刷か両面印刷かの指示や、断裁用のトンボを出力紙の隅に描画するか否かの指示等、ユーザが各種選択した結果を反映した指示も合わせて取得する。「トンボ」とは見当標とも呼ばれて、印刷物を作成する際に、印刷物を仕上がりサイズに裁断するため、または多色刷りの見当合わせのために、版下の天地の左右四隅などに印刷する目印である。 The drawing instruction acquisition unit 1 acquires the input image I1 (see FIG. 3) described in the page description language. In addition, instructions that reflect the results of various selections made by the user, such as instructions for single-sided printing or double-sided printing and instructions for drawing cutting marks for cutting in the corners of the output paper, are also acquired. The "dragonfly" is also called a register mark, and it is a mark that is printed on the left and right corners of the top and bottom of the block to cut the printed material into finished size or to register it in multicolor printing when creating the printed material. Is.

レンダリング部2は、描画指示取得部1が取得したページ記述言語を解釈して、入力画像I1を、例えば各色8bitの階調値を持つビットマップ画像に変換する。そのとき、入力画像I1に含まれている文字、ライン、グラフィック、イメージ等のオブジェクト情報も解釈して、ビットマップ画像の画素毎に付与する。 The rendering unit 2 interprets the page description language acquired by the drawing instruction acquisition unit 1 and converts the input image I1 into, for example, a bitmap image having a gradation value of 8 bits for each color. At that time, object information such as characters, lines, graphics, and images included in the input image I1 is also interpreted and given to each pixel of the bitmap image.

ずれ量取得部3は、四隅の座標点が、後述する幾何補正処理を行わずにプリンタ出力するとどう変化するか(どれくらいずれるか)を計測して取得するずれ量取得手段である。そのため、出力紙の表面と裏面の四隅にずれ量計測用のトンボを印字し、それぞれの座標点を計測する。その計測には、装置内蔵型のセンサで自動計測する方法や、記録媒体に印字したものを定規で手動計測して、その結果を入力してもらう方法がある。 The deviation amount acquisition unit 3 is a deviation amount acquisition unit that measures and acquires how the coordinate points at the four corners change (how much they deviate) when printed by a printer without performing the geometric correction processing described later. Therefore, the registration marks for measuring the deviation amount are printed on the four corners of the front surface and the back surface of the output paper, and the respective coordinate points are measured. For the measurement, there are a method of automatically measuring with a sensor built in the device, and a method of manually measuring what is printed on a recording medium with a ruler and inputting the result.

幾何補正パラメータ設定部4は、ずれ量取得部3で取得された座標データから、幾何補正パラメータを算出する幾何補正パラメータ設定手段である。幾何補正パラメータは、幾何補正部5aが入力画像I1に対してずれ量に応じた幾何補正を行うためのパラメータである。ずれ量は、出力紙の表面および裏面の各4点の座標点のずれ量である。 The geometric correction parameter setting unit 4 is a geometric correction parameter setting unit that calculates a geometric correction parameter from the coordinate data acquired by the shift amount acquisition unit 3. The geometric correction parameter is a parameter for the geometric correction unit 5a to perform geometric correction on the input image I1 according to the amount of deviation. The shift amount is the shift amount of each of the four coordinate points on the front surface and the back surface of the output paper.

幾何補正部5aは、レンダリング部2が出力した画像(例えばビットマップ画像)に対して、画像処理によりずれ量に応じた幾何補正を行なう幾何補正手段である。すなわち、幾何補正部5aは、幾何補正パラメータ設定部4が算出した幾何補正パラメータを適用して、出力時に発生する位置ずれや歪みを見越した射影変換による幾何補正を行う。詳しくは後述する。また、幾何補正部5aは、後述する揺らぎ付加を行う。 The geometric correction unit 5a is a geometric correction unit that performs geometric correction on an image (for example, a bitmap image) output by the rendering unit 2 according to the amount of deviation by image processing. That is, the geometrical correction unit 5a applies the geometrical correction parameter calculated by the geometrical correction parameter setting unit 4 to perform geometrical correction by projective transformation in anticipation of positional deviation and distortion occurring at the time of output. Details will be described later. Further, the geometric correction unit 5a performs fluctuation addition described later.

擬似階調処理部6は、幾何補正したビットマップ画像に対してスクリーン処理を行い、白画素と黒画素とに二値化を行う。擬似階調処理部6は、オブジェクト情報に応じて適用するスクリーンを切り替える。すなわち、オブジェクトが文字やラインの場合は、例えば300線程度のスクリーンを適用する。また、オブジェクトがグラフィックやイメージの場合は、例えば200線程度のスクリーンを適用する。 The pseudo gradation processing unit 6 performs screen processing on the geometrically corrected bitmap image and binarizes white pixels and black pixels. The pseudo gradation processing unit 6 switches the screen to be applied according to the object information. That is, when the object is a character or a line, for example, a screen with about 300 lines is applied. When the object is a graphic or an image, a screen with about 200 lines is applied, for example.

(画像歪みに対する幾何補正の説明)
次に、本実施の形態における、画像歪みに対する幾何補正について、図3を用いて説明する。図3(a)は、入力画像I1の一例を破線で示し、入力画像I1を幾何補正無しでプリンタ出力した場合に発生する画像の歪の一例として、幾何補正無し時の出力画像I2の一例を実線で示している。すなわち、本実施の形態によると、入力画像I1を幾何補正せずにプリント出力すると、入力画像I1は下方ほど幅広に変形して、上方ほど幅狭に変形する。
(Explanation of geometric correction for image distortion)
Next, geometric correction for image distortion in this embodiment will be described with reference to FIG. FIG. 3A shows an example of the input image I1 by a broken line. As an example of image distortion that occurs when the input image I1 is output to a printer without geometric correction, an example of the output image I2 without geometric correction is shown. It is shown by a solid line. That is, according to the present embodiment, when the input image I1 is printed out without geometric correction, the input image I1 is deformed wider toward the lower side and narrower toward the upper side.

また、図3(b)は、画像の歪みの発生を見越して、予め逆補正した幾何補正後画像I3を実線で示し、幾何補正後画像I3に対して幾何補正を行った場合の出力画像I4を破線で示している。すなわち、幾何補正後画像I3は、出力画像I4を入力画像I1と同じ形状にするために、予め歪を加えた画像である。 Further, in FIG. 3B, in anticipation of image distortion, the geometrically corrected image I3 inversely corrected in advance is shown by a solid line, and the output image I4 when the geometrically corrected image I3 is geometrically corrected is shown. Is indicated by a broken line. That is, the geometrically corrected image I3 is an image to which distortion has been added in advance so that the output image I4 has the same shape as the input image I1.

例えば、表裏ずれの場合は、入力画像I1が表面、幾何補正無し時の出力画像I2が幾何補正しない場合の裏面出力画像、予め逆補正した幾何補正後画像I3が裏面に対する幾何補正後画像、出力画像I4が逆補正した幾何補正後画像I3をプリンタ出力した画像となる。なお、ここでは、表面にはプリンタ出力しても歪が発生しないものとする。 For example, in the case of front and back misalignment, the input image I1 is the front side, the output image I2 without geometric correction is the back side output image when no geometric correction is performed, and the inversely corrected geometrically corrected image I3 is the geometrically corrected image for the back side and the output. The image I4 becomes an image obtained by outputting the inversely corrected geometrically corrected image I3 to a printer. Note that, here, it is assumed that no distortion occurs on the front surface even when output to a printer.

ずれ量取得部3は、入力画像I1の四隅の座標データと幾何補正無し時の出力画像I2の四隅の座標データをそれぞれ取得する。そして、幾何補正パラメータ設定部4は、プリンタ出力時に発生する画像の歪を見越して逆補正を行って、幾何補正後画像I3を生成するための幾何補正パラメータを算出して設定する。 The shift amount acquisition unit 3 acquires the coordinate data of the four corners of the input image I1 and the coordinate data of the four corners of the output image I2 without geometric correction. Then, the geometric correction parameter setting unit 4 performs the inverse correction in anticipation of the distortion of the image generated at the time of printer output, and calculates and sets the geometric correction parameter for generating the post-geometric correction image I3.

(幾何補正部の詳細構成の説明)
次に、幾何補正部5aの詳細構成について説明する。図4は、画像処理装置115aが備える幾何補正部5aの詳細構成を示す機能ブロック図である。
(Detailed configuration of the geometric correction unit)
Next, the detailed configuration of the geometric correction unit 5a will be described. FIG. 4 is a functional block diagram showing a detailed configuration of the geometric correction unit 5a included in the image processing apparatus 115a.

図4に示すように、幾何補正部5aは、対応座標点算出部51と、4点抽出部52aと、補間演算部53と、揺らぎ付加部54aと、を備える。 As shown in FIG. 4, the geometric correction unit 5a includes a corresponding coordinate point calculation unit 51, a four-point extraction unit 52a, an interpolation calculation unit 53, and a fluctuation addition unit 54a.

対応座標点算出部51は、対応座標点算出手段の一例である。対応座標点算出部51は、幾何補正後画像I3上の座標点(x,y)に対応する入力画像I1上の座標点(X,Y)を、後述する幾何補正パラメータh1,h2,…,h8を用いて算出する。座標点(X,Y)は、小数点以下の値を持つ実数値で算出する。 The corresponding coordinate point calculating unit 51 is an example of corresponding coordinate point calculating means. The corresponding coordinate point calculation unit 51 calculates the coordinate point (X, Y) on the input image I1 corresponding to the coordinate point (x, y) on the post-geometric correction image I3 from the geometric correction parameters h1, h2,... Calculate using h8. The coordinate point (X, Y) is calculated as a real value having a value below the decimal point.

4点抽出部52aは、座標点(X,Y)を取り囲む近傍4点をXおよびYの整数部の値に基づいて抽出する。 The four-point extraction unit 52a extracts four neighboring points surrounding the coordinate point (X, Y) based on the values of the integer parts of X and Y.

補間演算部53は、補間演算手段の一例である。補間演算部53は、座標点(X,Y)を取り囲む近傍4点の画素値に対して補間演算を行い、補間演算の結果を座標点(x,y)の画素値として算出する。 The interpolation calculator 53 is an example of an interpolation calculator. The interpolation calculation unit 53 performs the interpolation calculation on the pixel values of the four neighboring points surrounding the coordinate point (X, Y), and calculates the result of the interpolation calculation as the pixel value of the coordinate point (x, y).

揺らぎ付加部54aは、補間演算を行う前に、幾何補正部5aに入力する、例えば8ビットの画像に対して、揺らぎを付加する処理を行う。 The fluctuation adding unit 54a performs a process of adding fluctuation to, for example, an 8-bit image input to the geometric correction unit 5a before performing the interpolation calculation.

(対応座標点算出処理の説明)
次に、図5を用いて、対応座標点算出部51が行う対応座標点算出処理について説明する。対応座標点算出部51は、式1、式2に示す二次元射影変換式を用いて、幾何補正後画像I3上の座標点(x,y)に対応する入力画像I1上の座標点(X,Y)を算出する。

Figure 0006750357

Figure 0006750357
(Explanation of corresponding coordinate point calculation processing)
Next, the corresponding coordinate point calculation process performed by the corresponding coordinate point calculation unit 51 will be described with reference to FIG. The corresponding coordinate point calculation unit 51 uses the two-dimensional projective transformation formulas shown in Formula 1 and Formula 2 to correspond to the coordinate point (x, y) on the geometrically corrected image I3 on the input image I1 (X , Y) is calculated.
Figure 0006750357

Figure 0006750357

式1、式2において、係数として記載したh1,h2,…,h8が、それぞれ幾何補正パラメータを表す。これらの幾何補正パラメータh1,h2,…,h8の値は、幾何補正前の画像と幾何補正後の画像との間で、対応する点のペアを最低4組抽出して決定する。具体的には、抽出された最低4組の対応する点のペア(入力画像I1上の座標点(X,Y)と幾何補正後画像I3上の座標点(x,y))について、それぞれ(式1)および(式2)を生成する。そして、幾何補正パラメータh1,h2,…,h8に関する連立方程式を解くことによって、幾何補正パラメータh1,h2,…,h8の値を決定する。 In Equation 1 and Equation 2, h1, h2,..., H8 described as coefficients respectively represent geometric correction parameters. The values of these geometric correction parameters h1, h2,..., H8 are determined by extracting at least four pairs of corresponding points between the image before geometric correction and the image after geometric correction. Specifically, for each of the extracted at least four pairs of corresponding points (the coordinate point (X, Y) on the input image I1 and the coordinate point (x, y) on the geometrically corrected image I3), Formulas 1) and 2 are generated. Then, the values of the geometric correction parameters h1, h2,..., H8 are determined by solving the simultaneous equations regarding the geometric correction parameters h1, h2,.

その後、入力画像I1における座標点(X,Y)の画素値およびオブジェクト情報を補間演算によって求めて、幾何補正後画像I3の座標点(x,y)の画素値およびオブジェクト情報とすることによって、入力画像I1の幾何補正が行われる。 After that, the pixel value of the coordinate point (X, Y) and the object information in the input image I1 are obtained by interpolation calculation, and the pixel value and the object information of the coordinate point (x, y) of the post-geometric correction image I3 are obtained. The geometric correction of the input image I1 is performed.

(補間演算部の動作の説明)
次に、図6を用いて、補間演算部53の動作について説明する。まず、4点抽出部52a(図4)にて、座標点(X,Y)の整数部に該当する座標点(X0,Y0)と、座標点(X0,Y0)に隣接する座標点(X0+1,Y0)、(X0,Y0+1)、(X0+1、Y0+1)の計4つの座標点をそれぞれ算出する。
(Explanation of the operation of the interpolation calculation unit)
Next, the operation of the interpolation calculation unit 53 will be described with reference to FIG. First, in the 4-point extraction unit 52a (FIG. 4), the coordinate point (X0, Y0) corresponding to the integer part of the coordinate point (X, Y) and the coordinate point (X0+1) adjacent to the coordinate point (X0, Y0). , Y0), (X0, Y0+1), (X0+1, Y0+1), respectively, for a total of four coordinate points.

補間演算部53は、重み係数wx(0≦wx≦1)、wy(0≦wy≦1)を、前述した4つの座標点の画素値に適用して、式3で表される線形補間によって座標点(x,y)の画素値を算出する。なお、座標点(α,β)の画素値をI(α,β)で表すものとする。
I(x,y)
=I(X,Y)
=I(X0,Y0)*(1−wx)*(1−wy)+
I(X0+1,Y0)*wx*(1−wy)+
I(X0,Y0+1)*(1−wx)*wy+
I(X0+1,Y0+1)*wx*wy (式3)
The interpolation calculation unit 53 applies the weighting factors wx (0≦wx≦1) and wy (0≦wy≦1) to the pixel values of the four coordinate points described above, and performs linear interpolation represented by Expression 3. The pixel value of the coordinate point (x, y) is calculated. The pixel value of the coordinate point (α, β) is represented by I(α, β).
I(x,y)
=I(X,Y)
=I(X0,Y0)*(1-wx)*(1-wy)+
I(X0+1,Y0)*wx*(1-wy)+
I(X0,Y0+1)*(1-wx)*wy+
I(X0+1,Y0+1)*wx*wy (Formula 3)

(揺らぎ付加の説明)
次に、揺らぎ付加部54aの作用について説明する。揺らぎ付加部54aは、以下に示す式4,式5によって、座標点(X,Y)に対して揺らぎが付加された座標点(X’,Y’)を算出する。
X’=X+F(Y%P) (式4)
Y’=Y+F(X%P) (式5)
ここで、F()は、周期P画素、振幅Q画素の揺らぎ関数を表す。また、Y%Pは、YをPで割った余りを表し、X%Pは、XをPで割った余りを表す。なお、揺らぎ関数F()について、詳しくは後述する。
(Explanation of adding fluctuation)
Next, the operation of the fluctuation adding section 54a will be described. The fluctuation adding unit 54a calculates a coordinate point (X′, Y′) in which fluctuation is added to the coordinate point (X, Y) by the following Expressions 4 and 5.
X'=X+F(Y%P) (Formula 4)
Y'=Y+F(X%P) (Formula 5)
Here, F() represents the fluctuation function of the period P pixel and the amplitude Q pixel. Further, Y% P represents the remainder when Y is divided by P, and X% P represents the remainder when X is divided by P. The fluctuation function F() will be described in detail later.

図7は、揺らぎ付加部54aの機能について説明する図である。図7に示すように、プロッタ部112(図1)が印字を行う方向、すなわち主走査方向に対して、例えば、点R1(X,Y)を点R1’(X’,Y)に変換することによって、縦線に対して縦線揺らぎが付加される。これによって、縦線を揺らす効果がある。また、用紙を搬送する方向、すなわち副走査方向に対して、例えば、点R2(X,Y)を点R2’(X,Y’)に変換することによって、横線に対して横線揺らぎが付加される。これによって、横線を揺らす効果がある。 FIG. 7 is a diagram illustrating the function of the fluctuation adding unit 54a. As shown in FIG. 7, for example, the point R1(X,Y) is converted into a point R1′(X′,Y) in the printing direction of the plotter unit 112 (FIG. 1), that is, in the main scanning direction. As a result, vertical line fluctuation is added to the vertical line. This has the effect of swaying the vertical line. In addition, by converting the point R2(X,Y) into a point R2'(X,Y') in the paper transport direction, that is, the sub-scanning direction, horizontal line fluctuation is added to the horizontal line. It This has the effect of swaying the horizontal line.

揺らぎが付加された座標点(X’,Y’)の画素値I(X’,Y’)は、式3に示した補間演算によって求めることができる。 The pixel value I(X', Y') of the coordinate point (X', Y') to which the fluctuation is added can be obtained by the interpolation calculation shown in Expression 3.

次に、図8を用いて、揺らぎ関数F(n)の具体例について説明する。揺らぎ関数F(n)は、例えば、sinまたはcosの三角関数を用いて生成することができる。図8は、cos関数から揺らぎ関数F(n)を生成した例を示す。このとき生成される揺らぎ関数F(n)は、式6で表される。
F(n)=Qcos(2πn/P)(n=1、2、3、…) (式6)
Next, a specific example of the fluctuation function F(n) will be described with reference to FIG. The fluctuation function F(n) can be generated by using, for example, a trigonometric function of sin or cos. FIG. 8 shows an example in which the fluctuation function F(n) is generated from the cos function. The fluctuation function F(n) generated at this time is expressed by Expression 6.
F(n)=Qcos(2πn/P) (n=1, 2, 3,...) (Equation 6)

図8において、横軸がn、縦軸が揺らぎ関数F(n)を表す。揺らぎ関数F(n)の値は、その都度計算して座標点(X,Y)に加算してもよいし、予め算出した揺らぎ関数F(n)の値をテーブルとして、例えばHDD105(図1)に保存しておき、そのテーブルから読み出した値を座標点(X,Y)に加算してもよい。 In FIG. 8, the horizontal axis represents n and the vertical axis represents the fluctuation function F(n). The value of the fluctuation function F(n) may be calculated each time and added to the coordinate point (X, Y), or the value of the fluctuation function F(n) calculated in advance may be used as a table, for example, in the HDD 105 (FIG. 1). ), and the value read from the table may be added to the coordinate point (X, Y).

(揺らぎ付加の効果の説明)
次に、図9を用いて、前述した揺らぎ付加の効果について説明する。図9は、揺らぎ付加の効果を、実例に基づいて説明する図である。
(Explanation of the effect of adding fluctuation)
Next, the effect of adding the fluctuation described above will be described with reference to FIG. FIG. 9 is a diagram illustrating the effect of adding fluctuation based on an actual example.

入力画像I1に二値パターンが含まれている場合に、揺らぎ付加はモアレの発生を抑制する効果がある。以下に、二値パターンとして網点パターンを用いた場合を例にあげて説明する。 When the input image I1 includes a binary pattern, the addition of fluctuation has an effect of suppressing the occurrence of moire. The case where a halftone dot pattern is used as the binary pattern will be described below as an example.

入力画像I1の網点パターンに対して倍率補正を行うと、補間演算によって白ドットの画素値と黒ドットの画素値とが平均化されるため、黒ドットの周りに、黒ドットの画素値と白ドットの画素値が平均化されたグレー画素の領域が発生する。また、図9(a)に示す入力画像I1に対して揺らぎを付加しない場合、図9(b)に示すように、グレー画素の発生量が多い領域と、グレー画素の発生量が少ない領域と、が交互に出現する。このグレー画素の発生量が多い領域と、少ない領域と、は擬似階調処理後には、図9(c)に示すように、ドット形状の崩れが多い領域と、ドット形状の崩れが少ない領域と、に置き換わる。ドット形状崩れが多い領域と、ドット形状崩れが少ない領域と、はプロッタ部112(図1)の書き込み特性により、出力紙面上で同じ濃度に見えるように出力するのが困難である。そのため、モアレが発生する。 When the magnification correction is performed on the halftone dot pattern of the input image I1, the pixel values of the white dots and the pixel values of the black dots are averaged by the interpolation calculation. A gray pixel area in which the pixel values of white dots are averaged is generated. Further, when no fluctuation is added to the input image I1 shown in FIG. 9A, as shown in FIG. 9B, an area with a large amount of gray pixels and an area with a small amount of gray pixels are generated. , Appear alternately. As shown in FIG. 9C, an area in which the amount of gray pixels generated is large and an area in which the amount of gray pixels is small are, as shown in FIG. , Are replaced. Due to the writing characteristics of the plotter unit 112 (FIG. 1), it is difficult to output the same density on the output paper surface for the area where the dot shape collapse is large and the area where the dot shape collapse is small. Therefore, moire occurs.

揺らぎを付加することによって、グレー画素が網点パターン全体に散らばって発生するようになるため、図9(d)に示すように、領域によるグレー画素の出現頻度の偏りが減少する。したがって、図9(e)に示すように、擬似階調処理後もドット形状崩れの領域的な偏りが減って、モアレが発生しにくくなる。 By adding the fluctuation, the gray pixels are scattered and generated in the whole halftone dot pattern, so that the bias of the gray pixel appearance frequency depending on the region is reduced as shown in FIG. 9D. Therefore, as shown in FIG. 9E, even after the pseudo gradation process, the regional deviation of dot shape collapse is reduced, and moire is less likely to occur.

図9からわかるように、横方向(X方向、主走査方向)の倍率補正でモアレの発生を抑制するには、縦線揺らぎを付加するのが効果的である。一方、縦方向(Y方向、副走査方向)の倍率補正でモアレを抑制するには、横線揺らぎを付加するのが効果的である。 As can be seen from FIG. 9, in order to suppress the occurrence of moire in the lateral direction (X direction, main scanning direction) magnification correction, it is effective to add vertical line fluctuation. On the other hand, in order to suppress moire in the magnification correction in the vertical direction (Y direction, sub-scanning direction), it is effective to add horizontal line fluctuation.

入力画像I1に含まれるベタ領域(平坦部)に揺らぎを付加しても、ベタ領域の内部の濃淡分布は何ら変化しない。すなわち、揺らぎを付加しない状態と同じである。したがって、ベタ領域で揺らぎの周期と擬似階調処理のスクリーン周期が干渉することによってモアレが発生することはない。 Even if fluctuation is added to the solid area (flat portion) included in the input image I1, the grayscale distribution inside the solid area does not change at all. That is, it is the same as the state where no fluctuation is added. Therefore, moiré does not occur due to the interference of the fluctuation cycle and the screen cycle of the pseudo gradation process in the solid area.

図8に示した揺らぎの周期Pと振幅Qとは、入力画像I1に含まれる二値パターンとの干渉が目立たないように、という点に考慮して決定すればよい。ただし、出力画像上(特に、二値パターン部以外の文字部等)で視認できるようでは副作用になってしまうため、視認できないレベルの微小なものにする必要がある。 The fluctuation period P and the amplitude Q shown in FIG. 8 may be determined in consideration of the fact that the interference with the binary pattern included in the input image I1 is inconspicuous. However, it becomes a side effect if it can be visually recognized on the output image (especially, a character part other than the binary pattern part), and therefore it is necessary to make the level invisible so small.

(第1の実施の形態の処理の流れの説明)
以下、図10を用いて、画像処理装置115aが行う処理の流れについて説明する。図10は、画像処理装置115aが行う処理の流れを示すフローチャートである。
(Explanation of the process flow of the first embodiment)
The flow of processing performed by the image processing apparatus 115a will be described below with reference to FIG. FIG. 10 is a flowchart showing the flow of processing performed by the image processing apparatus 115a.

描画指示取得部1は、入力画像I1および描画指示を取得する(ステップS10)。 The drawing instruction acquisition unit 1 acquires the input image I1 and the drawing instruction (step S10).

レンダリング部2は、入力画像I1を、例えば各色8bitの階調値を持つビットマップ画像に変換する(ステップS12)。 The rendering unit 2 converts the input image I1 into, for example, a bitmap image having a gradation value of 8 bits for each color (step S12).

ずれ量取得部3は、プリンタ出力によって発生するずれ量を計測して取得する(ステップS14)。 The deviation amount acquisition unit 3 measures and acquires the deviation amount generated by the printer output (step S14).

幾何補正パラメータ設定部4は、ずれ量取得部3が取得した座標データに基づいて、幾何補正パラメータh1,h2,…,h8(式1、式2)の値を算出する(ステップS16)。 The geometric correction parameter setting unit 4 calculates the values of the geometric correction parameters h1, h2,..., H8 (Equation 1, Equation 2) based on the coordinate data acquired by the deviation amount acquisition unit 3 (step S16).

幾何補正部5aは、レンダリング部2が出力した画像(ビットマップ画像)に対して、画像処理によってずれ量に応じた幾何補正を行なう(ステップS18)。なお、幾何補正部5aが行う処理の詳細な流れは、後述する図11に示す。 The geometric correction unit 5a performs geometric correction on the image (bitmap image) output by the rendering unit 2 according to the amount of deviation by image processing (step S18). The detailed flow of the processing performed by the geometric correction unit 5a is shown in FIG. 11 described later.

擬似階調処理部6は、幾何補正したビットマップ画像に対して擬似階調処理を行い、白画素と黒画素とに二値化を行う(ステップS20)。 The pseudo gradation processing unit 6 performs pseudo gradation processing on the geometrically corrected bitmap image, and binarizes white pixels and black pixels (step S20).

プリンタ出力部7aは、用紙に画像を形成してプリンタ出力する(ステップS22)。 The printer output unit 7a forms an image on a sheet and outputs it to the printer (step S22).

(幾何補正部が行う処理の流れの説明)
次に、図11を用いて、幾何補正部5aが行う幾何補正の流れについて説明する。図11は、幾何補正部5aが行う処理の流れを示すフローチャートである。
(Explanation of the flow of processing performed by the geometric correction unit)
Next, the flow of geometric correction performed by the geometric correction unit 5a will be described with reference to FIG. FIG. 11 is a flowchart showing the flow of processing performed by the geometric correction unit 5a.

揺らぎ付加部54aは、ビットマップ画像に対して揺らぎを付加する(ステップS30)。 The fluctuation adding unit 54a adds fluctuation to the bitmap image (step S30).

対応座標点算出部51は、幾何補正後画像I3上の座標点(x,y)に対応する入力画像I1上の座標点(X,Y)を算出する(ステップS32)。 The corresponding coordinate point calculation unit 51 calculates the coordinate point (X, Y) on the input image I1 corresponding to the coordinate point (x, y) on the geometrically corrected image I3 (step S32).

4点抽出部52aは、座標点(X,Y)を取り囲む近傍4点を算出する(ステップS34)。 The four-point extraction unit 52a calculates four neighboring points surrounding the coordinate point (X, Y) (step S34).

補間演算部53は、座標点(X,Y)を取り囲む近傍4点の画素値に対して補間演算を行い、補間演算の結果を座標点(x,y)の画素値I(x,y)として算出する(ステップS36)。その後、メインルーチン(図10)に戻る。 The interpolation calculation unit 53 performs the interpolation calculation on the pixel values of the four neighboring points surrounding the coordinate point (X, Y), and the result of the interpolation calculation is the pixel value I(x, y) of the coordinate point (x, y). Is calculated as (step S36). Then, the process returns to the main routine (FIG. 10).

(第1の実施の形態の変形例の説明)
次に、本発明の画像処理装置の第1の実施の形態の変形例である画像形成装置100bについて説明する。画像形成装置100bは、第1の実施の形態で説明した画像形成装置100aとほぼ同じ構成を有しており、第1の実施の形態が備える画像処理装置115aに代わって画像処理装置115bを備える。画像処理装置115bの構成は、画像処理装置115aの構成(図2)とほぼ同じであるが、幾何補正部5aの構成のみが異なっている。
(Explanation of Modification of First Embodiment)
Next, an image forming apparatus 100b which is a modified example of the first embodiment of the image processing apparatus of the present invention will be described. The image forming apparatus 100b has substantially the same configuration as the image forming apparatus 100a described in the first embodiment, and includes an image processing apparatus 115b instead of the image processing apparatus 115a included in the first embodiment. .. The configuration of the image processing apparatus 115b is almost the same as the configuration of the image processing apparatus 115a (FIG. 2), but only the configuration of the geometric correction unit 5a is different.

図12は、第1の実施の形態の変形例である画像形成装置100bが備える画像処理装置115bが有する幾何補正部5bの詳細構成を示す機能ブロック図である。幾何補正部5bは、対応座標点算出部51と、4点抽出部52bと、補間演算部53と、揺らぎ付加部54bと、を備える。 FIG. 12 is a functional block diagram illustrating a detailed configuration of the geometric correction unit 5b included in the image processing apparatus 115b included in the image forming apparatus 100b according to the modified example of the first embodiment. The geometric correction unit 5b includes a corresponding coordinate point calculation unit 51, a four-point extraction unit 52b, an interpolation calculation unit 53, and a fluctuation addition unit 54b.

揺らぎ付加部54bは、第1の実施の形態とは異なり、ビットマップ画像ではなく、座標点データに対して揺らぎ付加を行う。揺らぎの付加は、第1の実施の形態と同様に、式4、式5を用いて行う。ここで、図13を用いて、揺らぎ付加部54bが行う揺らぎの付加方法について説明する。図13に示すように、揺らぎ付加部54bは、座標点(X,Y)に揺らぎを付加した座標点(X’,Y’)を算出する。そして、4点抽出部52bは、揺らぎを付加した座標点(X’,Y’)を囲む近傍4点P1、P2、P3、P4の座標を入力画像I1から抽出する。その後、補間演算部53は、座標点(X’,Y’)の画素値I(X’,Y’)を、4点P1、P2、P3、P4の画素値の補間演算によって求める。 Unlike the first embodiment, the fluctuation adding unit 54b adds fluctuation not to the bitmap image but to the coordinate point data. Addition of fluctuations is performed using Equations 4 and 5 as in the first embodiment. Here, a method of adding fluctuations performed by the fluctuation adding unit 54b will be described with reference to FIG. As shown in FIG. 13, the fluctuation adding unit 54b calculates a coordinate point (X', Y') in which fluctuation is added to the coordinate point (X, Y). Then, the four-point extraction unit 52b extracts the coordinates of the four neighboring points P1, P2, P3, and P4 surrounding the coordinate point (X', Y') to which the fluctuation is added, from the input image I1. After that, the interpolation calculation unit 53 obtains the pixel value I(X', Y') of the coordinate point (X', Y') by the interpolation calculation of the pixel values of the four points P1, P2, P3, P4.

幾何補正部5bは、座標点データに対して揺らぎを付加するため、入力画像I1上の座標点ではなく、補間演算によって画素値を求める座標位置が揺れることになる。しかし、相対的に見れば、補間演算によって画素値を求める座標位置に対して、入力画像I1上の座標点が揺れていると捉えることもできるため、幾何補正部5bからの出力値としては、後述する量子化誤差以外は第1の実施の形態と変わらない。 Since the geometric correction unit 5b adds fluctuation to the coordinate point data, not the coordinate points on the input image I1 but the coordinate position for obtaining the pixel value by interpolation calculation fluctuates. However, if viewed relatively, it can be considered that the coordinate point on the input image I1 is swaying with respect to the coordinate position where the pixel value is calculated by the interpolation calculation. Therefore, as the output value from the geometric correction unit 5b, Other than the quantization error described later, it is the same as in the first embodiment.

すなわち、第1の実施の形態における幾何補正部5aは、レンダリング部2が出力したビットマップ画像に揺らぎを付加するため、揺らぎ付加部54aと補間演算部53の双方において補間演算が行われる。したがって、必然的に量子化誤差が増える構成となっていた。これに対して、第1の実施の形態の変形例における幾何補正部5bは、座標点データに揺らぎを付加するため、補間演算は補間演算部53における1回のみとなり、量子化誤差が増えない構成になっている点が異なる。 That is, since the geometric correction unit 5a in the first embodiment adds fluctuation to the bitmap image output by the rendering unit 2, both the fluctuation adding unit 54a and the interpolation calculation unit 53 perform interpolation calculation. Therefore, the quantization error is inevitably increased. On the other hand, since the geometric correction unit 5b in the modification of the first embodiment adds fluctuation to the coordinate point data, the interpolation calculation is performed only once in the interpolation calculation unit 53, and the quantization error does not increase. The difference is that it is configured.

(第2の実施の形態の説明)
次に、本発明の画像処理装置の第2の実施の形態の画像形成装置100cについて説明する。第2の実施の形態の画像形成装置100cは、第1の実施の形態で説明した画像形成装置100aに対して、画像処理装置115aの代わりに画像処理装置115cを備える。図14は、第2の実施の形態の画像処理装置115cの機能構成を示す機能ブロック図である。以下、図14を用いて、画像処理装置115cの構成について説明する。
(Explanation of the Second Embodiment)
Next, an image forming apparatus 100c according to a second embodiment of the image processing apparatus of the present invention will be described. The image forming apparatus 100c according to the second embodiment includes an image processing apparatus 115c instead of the image processing apparatus 115a with respect to the image forming apparatus 100a described in the first embodiment. FIG. 14 is a functional block diagram showing a functional configuration of the image processing apparatus 115c according to the second embodiment. The configuration of the image processing device 115c will be described below with reference to FIG.

図14に示すように、画像処理装置115cは、描画指示取得部1と、レンダリング部2と、ずれ量取得部3と、幾何補正パラメータ設定部4と、幾何補正部5aと、擬似階調処理部6と、プリンタ出力部7bと、を有する。プリンタ出力部7bは、図1のプロッタ部112に相当し、書き込みタイミング制御手段である書き込みタイミング制御部8を備えている。 As shown in FIG. 14, the image processing apparatus 115c includes a drawing instruction acquisition unit 1, a rendering unit 2, a deviation amount acquisition unit 3, a geometric correction parameter setting unit 4, a geometric correction unit 5a, and a pseudo gradation process. It has a unit 6 and a printer output unit 7b. The printer output unit 7b corresponds to the plotter unit 112 in FIG. 1 and includes a write timing control unit 8 which is a write timing control unit.

画像処理装置115cはさらに、補正モード決定部9と、補正量分配部10と、書き込み制御パラメータ設定部11と、を有する。画像処理装置115cのプリンタ出力部7bを除く各部は、図1に示したコントローラ101と、エンジン制御部110と、画像処理部113と、によって実現される。 The image processing device 115c further includes a correction mode determination unit 9, a correction amount distribution unit 10, and a write control parameter setting unit 11. Each unit of the image processing apparatus 115c except the printer output unit 7b is realized by the controller 101, the engine control unit 110, and the image processing unit 113 shown in FIG.

描画指示取得部1は、ページ記述言語で記述された入力画像I1の取得に加えて、片面印刷か両面印刷かの指示や、断裁用のトンボを出力紙の隅に描画するかの指示等、ユーザが各種選択を行った結果を反映した指示も合わせて取得する。なお、「トンボ」とは、印刷物を作成する際に、印刷物を仕上がりサイズに裁断するための位置や多色刷りの見当合わせのために、版下の天地の左右四隅などに付ける目印で、見当標とも言う。 The drawing instruction acquisition unit 1, in addition to acquiring the input image I1 described in the page description language, instructs whether single-sided printing or double-sided printing, an instruction to draw a registration mark for cutting in a corner of the output paper, and the like. An instruction that reflects the result of various selections by the user is also acquired. Note that the "register mark" is a mark that is attached to the left and right corners of the top and bottom of the block for registering the position to cut the printed matter into the finished size and the registration of multicolor printing when creating the printed matter. Also say.

幾何補正パラメータ設定部4は、ずれ量取得部3で取得されて、補正量分配部10によって分配された座標データから、幾何補正パラメータを算出する幾何補正パラメータ設定手段である。 The geometric correction parameter setting unit 4 is a geometric correction parameter setting unit that calculates a geometric correction parameter from the coordinate data acquired by the deviation amount acquisition unit 3 and distributed by the correction amount distribution unit 10.

補正モード決定部9は、少なくともずれ量取得部3によって取得されたずれ量に応じて補正モードを選択して決定する補正モード決定手段である。 The correction mode determination unit 9 is a correction mode determination unit that selects and determines a correction mode according to at least the deviation amount acquired by the deviation amount acquisition unit 3.

補正モード決定部9は、ずれ量取得部3によって取得されたずれ量に応じて、入力画像のプリンタ出力時に、第1の補正モードと第2の補正モードのいずれか一方を選択して決定する。第1の補正モードは、主走査方向および副走査方向に対して幾何補正部5aによる幾何補正を行う補正モードである。一方、第2の補正モードは、主走査方向に対しては幾何補正部5aによる幾何補正を行い、副走査方向に対しては書き込みタイミング制御部8による幾何補正を行う補正モードである。 The correction mode determination unit 9 selects and determines one of the first correction mode and the second correction mode when the input image is output to the printer in accordance with the shift amount acquired by the shift amount acquisition unit 3. .. The first correction mode is a correction mode in which the geometric correction unit 5a performs geometric correction in the main scanning direction and the sub scanning direction. On the other hand, the second correction mode is a correction mode in which the geometric correction unit 5a performs geometric correction in the main scanning direction and the writing timing control unit 8 performs geometric correction in the sub scanning direction.

補正モード決定部9は、さらに、描画指示取得部1からの片面印刷か両面印刷かの指示や、断裁用のトンボを出力紙の隅に描画するか等の指示情報に基づいて、補正モードを決定してもよい。 The correction mode determination unit 9 further sets the correction mode based on the instruction from the drawing instruction acquisition unit 1 whether single-sided printing or double-sided printing and instruction information such as whether to draw a cutting mark for cutting on a corner of the output paper. You may decide.

例えば、ずれ量補正に必要な補正機能がレジスト補正・倍率補正・スキュー補正以外の幾何補正(例えば台形補正など)である場合には、機能重視で第1の補正モードを選択する。ユーザにより断裁用のトンボを用紙の隅に描画する指示があった場合にも、位置精度重視で第1の補正モードを選択する。ユーザにより両面印刷が選択された場合も、位置精度重視で第1の補正モードを選択するのが望ましい。 For example, when the correction function necessary for the deviation amount correction is a geometric correction other than the registration correction, the magnification correction, and the skew correction (for example, trapezoidal correction), the first correction mode is selected with emphasis on the function. Even when the user gives an instruction to draw a trimming mark on the corner of the paper, the first correction mode is selected with emphasis on the positional accuracy. Even when double-sided printing is selected by the user, it is desirable to select the first correction mode with an emphasis on positional accuracy.

一方、ずれ量補正に必要な補正機能がレジスト補正・倍率補正・スキュー補正のいずれか、あるいは、それらの組合せによる幾何補正であり、かつ、断裁用のトンボ描画指示なし、かつ、片面印刷の場合は、第2の補正モードを選択する。第2の補正モードであっても補正機能として対応でき、位置精度も比較的重要でないケースでは、モアレ発生の懸念がない第2の補正モードを選択するのが望ましい。 On the other hand, when the correction function required for the deviation amount correction is any one of the registration correction, the magnification correction, the skew correction, or the geometrical correction by a combination thereof, and the registration mark drawing instruction for cutting is not given, and the one-sided printing is performed. Selects the second correction mode. In the case where the correction function can be applied even in the second correction mode and the positional accuracy is relatively unimportant, it is desirable to select the second correction mode in which there is no fear of moire.

書き込み制御パラメータ設定部11は、書き込みタイミング制御部8が、入力画像に対してずれ量に応じた幾何補正を行うための書き込み制御パラメータを、ずれ量取得部3が取得したずれ量に基づいて算出する書き込み制御パラメータ設定手段である。 The write control parameter setting unit 11 calculates a write control parameter for the write timing control unit 8 to perform geometric correction on the input image according to the shift amount, based on the shift amount acquired by the shift amount acquiring unit 3. Write control parameter setting means.

補正量分配部10は、幾何補正パラメータ設定部4および書き込み制御パラメータ設定部11に対して、ずれ量取得部3が取得した表裏各4点の座標を受け渡す補正量分配手段である。 The correction amount distribution unit 10 is a correction amount distribution unit that transfers the coordinates of each of the four front and back points acquired by the displacement amount acquisition unit 3 to the geometric correction parameter setting unit 4 and the write control parameter setting unit 11.

補正モード決定部9によって、第1の補正モードが選択された場合は、主走査方向(入力画像の左右方向)と副走査方向(入力画像の上下方向)のいずれも幾何補正部5aによる幾何補正処理を行う。すなわち、補正量分配部10は、ずれ量取得部3が取得した座標データを、いずれの方向も幾何補正部5aによる補正処理を行うように、幾何補正パラメータ設定部4および書き込み制御パラメータ設定部11のそれぞれに対して受け渡す。 When the first correction mode is selected by the correction mode determination unit 9, the geometric correction unit 5a performs geometric correction in both the main scanning direction (the horizontal direction of the input image) and the sub-scanning direction (the vertical direction of the input image). Perform processing. That is, the correction amount distribution unit 10 and the geometrical correction parameter setting unit 4 and the write control parameter setting unit 11 perform the correction processing on the coordinate data acquired by the displacement amount acquisition unit 3 by the geometrical correction unit 5a in any direction. To each of the.

一方、補正モード決定部9によって第2の補正モードが選択された場合は、主走査方向に対しては書き込みタイミング制御部8による幾何補正処理を行い、副走査方向に対しては幾何補正部5aによる幾何補正処理を行う。すなわち、補正量分配部10は、ずれ量取得部3によって取得した座標データを、上記の幾何補正処理が行われるように、幾何補正パラメータ設定部4および書き込み制御パラメータ設定部11のそれぞれに対して受け渡す。 On the other hand, when the second correction mode is selected by the correction mode determination unit 9, the write timing control unit 8 performs the geometric correction processing in the main scanning direction and the geometric correction unit 5a in the sub scanning direction. Performs geometric correction processing by. That is, the correction amount distribution unit 10 applies the coordinate data acquired by the displacement amount acquisition unit 3 to each of the geometric correction parameter setting unit 4 and the write control parameter setting unit 11 so that the above-described geometric correction processing is performed. Hand over.

プリンタ出力部7bの書き込みタイミング制御部8は、補正量分配部10から分配された座標データに対して、書き込み制御パラメータ設定部11によって算出されたパラメータに応じて、主走査方向の書き込み開始位置および書き込みクロック周期を調整する。これは電気制御による幾何補正にあたる。なお、主走査方向の書き込み開始位置および書き込みクロック周期の調整によるレジスト補正や倍率補正は、既存の画像補正技術である。 The writing timing control unit 8 of the printer output unit 7b sets the writing start position and the writing start position in the main scanning direction for the coordinate data distributed from the correction amount distribution unit 10 according to the parameters calculated by the writing control parameter setting unit 11. Adjust the write clock period. This corresponds to geometric correction by electric control. The registration correction and the magnification correction by adjusting the write start position in the main scanning direction and the write clock cycle are existing image correction techniques.

補正モード決定部9で第1の補正モードが選択された場合は、第1の実施の形態と同じく、図7に示した縦線揺らぎと横線揺らぎの両方を付加する。 When the first correction mode is selected by the correction mode determination unit 9, both the vertical line fluctuation and the horizontal line fluctuation shown in FIG. 7 are added, as in the first embodiment.

一方、補正モード決定部9で第2の補正モードが選択された場合は、図15に示すように縦線揺らぎのみ付加する。モアレに関与するのは幾何補正部5aによる幾何補正であり、書き込みタイミング制御部8による幾何補正ではない。第2の補正モードで幾何補正部5aによる幾何補正を行うのは主走査方向のみであるため、主走査方向の倍率補正に対してモアレ抑制効果がある縦線揺らぎのみを、式4により与えればよい。 On the other hand, when the second correction mode is selected by the correction mode determination unit 9, only vertical line fluctuations are added as shown in FIG. It is the geometric correction by the geometric correction unit 5a that is involved in the moire, not the geometric correction by the write timing control unit 8. In the second correction mode, the geometric correction by the geometric correction unit 5a is performed only in the main scanning direction. Therefore, if only vertical line fluctuations that have a moire suppressing effect on the magnification correction in the main scanning direction are given by Equation 4, Good.

なお、第2の補正モードは、前述したのとは逆に、主走査方向には幾何補正を行い、副走査方向には書き込みタイミング制御による幾何補正を行うようにしてもよい。その場合、補正モード決定部9で第2の補正モードが選択されたときには、横線揺らぎのみを、式5により与えればよい。 In the second correction mode, contrary to the above, geometric correction may be performed in the main scanning direction and geometric correction by writing timing control may be performed in the sub scanning direction. In that case, when the second correction mode is selected by the correction mode determination unit 9, only the horizontal line fluctuation may be given by Expression 5.

(第2の実施の形態の処理の流れの説明)
以下、図16を用いて、画像処理装置115cが行う処理の流れについて、補正モード決定部9が第2の補正モードを選択したときに、主走査方向に対しては書き込みタイミング制御部8による幾何補正処理を行い、副走査方向に対しては幾何補正部5aによる幾何補正処理を行う場合を例にあげて説明する。図16は、画像処理装置115cが行う処理の流れを示すフローチャートである。
(Explanation of the process flow of the second embodiment)
Hereinafter, with reference to FIG. 16, regarding the flow of processing performed by the image processing apparatus 115c, when the correction mode determination unit 9 selects the second correction mode, the geometry of the writing timing control unit 8 with respect to the main scanning direction. A case where the correction processing is performed and the geometric correction processing is performed by the geometric correction unit 5a in the sub-scanning direction will be described as an example. FIG. 16 is a flowchart showing the flow of processing performed by the image processing apparatus 115c.

描画指示取得部1は、入力画像I1および描画指示を取得する(ステップS40)。 The drawing instruction acquisition unit 1 acquires the input image I1 and the drawing instruction (step S40).

レンダリング部2は、入力画像I1を、例えば各色8bitの階調値を持つビットマップ画像に変換する(ステップS42)。 The rendering unit 2 converts the input image I1 into, for example, a bitmap image having a gradation value of 8 bits for each color (step S42).

ずれ量取得部3は、プリンタ出力によって発生するずれ量を計測して取得する(ステップS44)。 The deviation amount acquisition unit 3 measures and acquires the deviation amount generated by the printer output (step S44).

幾何補正パラメータ設定部4は、ずれ量取得部3が取得した座標データに基づいて、幾何補正パラメータを算出する(ステップS46)。 The geometric correction parameter setting unit 4 calculates the geometric correction parameter based on the coordinate data acquired by the shift amount acquisition unit 3 (step S46).

補正モード決定部9は、補正モードを選択する(ステップS48)。 The correction mode determination unit 9 selects the correction mode (step S48).

コントローラ101(図1)は、選択した補正モードが第1の補正モードであるかを判定する(ステップS50)。第1の補正モードが選択されたとき(ステップS50;Yes)はステップS52に進み、それ以外のとき(ステップS50;No)は、ステップS56に進む。 The controller 101 (FIG. 1) determines whether the selected correction mode is the first correction mode (step S50). When the first correction mode is selected (step S50; Yes), the process proceeds to step S52, and when it is not (step S50; No), the process proceeds to step S56.

幾何補正部5aは、レンダリング部2が出力した画像(ビットマップ画像)に対して、主走査方向、副走査方向ともに、画像処理によってずれ量に応じた幾何補正を行なう(ステップS52)。なお、幾何補正部5aが行う処理の詳細な流れは、第1の実施の形態(図11)で説明した通りである。 The geometric correction unit 5a performs geometric correction on the image (bitmap image) output by the rendering unit 2 according to the amount of deviation by image processing in both the main scanning direction and the sub scanning direction (step S52). The detailed flow of the processing performed by the geometric correction unit 5a is as described in the first embodiment (FIG. 11).

擬似階調処理部6は、幾何補正したビットマップ画像に対して擬似階調処理を行い、白画素と黒画素とに二値化を行う(ステップS53)。 The pseudo gradation processing unit 6 performs pseudo gradation processing on the geometrically corrected bitmap image, and binarizes white pixels and black pixels (step S53).

プリンタ出力部7bは、用紙に画像を形成してプリンタ出力する(ステップS54)。その後、図16の処理を終了する。 The printer output unit 7b forms an image on a sheet and outputs it to the printer (step S54). Then, the process of FIG. 16 is completed.

ステップS50において、第2の補正モードが選択されたとき(ステップS50;No)は、幾何補正部5aは、レンダリング部2が出力した画像(ビットマップ画像)に対して、副走査方向のみ、画像処理によってずれ量に応じた幾何補正を行なう(ステップS56)。なお、幾何補正部5aが行う処理の流れは、第1の実施の形態(図11)で説明した通りである。 In step S50, when the second correction mode is selected (step S50; No), the geometric correction unit 5a sets the image (bitmap image) output by the rendering unit 2 only in the sub-scanning direction. The process corrects the geometry according to the amount of deviation (step S56). Note that the flow of processing performed by the geometric correction unit 5a is as described in the first embodiment (FIG. 11).

擬似階調処理部6は、幾何補正したビットマップ画像に対して擬似階調処理を行い、白画素と黒画素とに二値化を行う(ステップS57)。 The pseudo gradation processing unit 6 performs pseudo gradation processing on the geometrically corrected bitmap image, and binarizes white pixels and black pixels (step S57).

書き込みタイミング制御部8は、主走査方向に書き込みタイミング制御による幾何補正を行いながら、プリンタ出力部7bは、用紙に画像を形成してプリンタ出力を行う(ステップS58)。その後、図16の処理を終了する。 The printer output unit 7b forms an image on a sheet and outputs it to the printer, while the writing timing control unit 8 performs geometric correction by writing timing control in the main scanning direction (step S58). Then, the process of FIG. 16 is completed.

以上のように、第1の実施の形態に係る画像処理装置115a(115b)によれば、ずれ量取得部3(ずれ量取得手段)が、入力画像I1をプリンタ出力したときの座標点のずれ量を取得して、幾何補正部5aまたは幾何補正部5b(幾何補正手段)のいずれか一方が、入力画像I1に対してずれ量に応じた幾何補正を行う。そのとき、幾何補正部5aは、入力画像I1の座標点に対して揺らぎ付加部54aが揺らぎを付加した後で、幾何補正を行う。また、幾何補正部5bは、入力画像I1の座標点を幾何補正した後で、幾何補正された座標点に対して揺らぎ付加部54bによって揺らぎを付加する。そして、補間演算部53が、幾何補正された座標点の画素値を、補正演算によって算出して、擬似階調処理部6(擬似階調処理手段)が、幾何補正された入力画像I1に対して、濃度階調を擬似階調で表す擬似階調処理を行う。したがって、揺らぎの付加を伴う画像変形を行った後で、変形後の画像に対して擬似階調処理を行うため、入力画像I1が網掛け等の二値パターンを含む場合であっても、プリンタ出力におけるモアレの発生を防止することができる。 As described above, according to the image processing apparatus 115a (115b) according to the first embodiment, the deviation amount acquisition unit 3 (deviation amount acquisition means) causes the deviation of the coordinate points when the input image I1 is output to the printer. After acquiring the amount, either the geometric correction unit 5a or the geometric correction unit 5b (geometric correction unit) performs the geometric correction on the input image I1 according to the shift amount. At this time, the geometric correction unit 5a performs geometric correction after the fluctuation adding unit 54a adds fluctuation to the coordinate points of the input image I1. Further, the geometric correction unit 5b geometrically corrects the coordinate points of the input image I1, and then adds fluctuation to the geometrically corrected coordinate points by the fluctuation adding unit 54b. Then, the interpolation calculation unit 53 calculates the pixel value of the geometrically corrected coordinate point by the correction calculation, and the pseudo gradation processing unit 6 (pseudo gradation processing unit) processes the geometrically corrected input image I1. Then, the pseudo gradation process for expressing the density gradation by the pseudo gradation is performed. Therefore, since the pseudo gradation process is performed on the deformed image after the image is deformed with the addition of the fluctuation, even if the input image I1 includes a binary pattern such as a mesh, the printer It is possible to prevent the occurrence of moire in the output.

特に、第1の実施の形態に係る画像処理装置115aによれば、ずれ量取得部3(ずれ量取得手段)が、入力画像I1をプリンタ出力したときの座標点のずれ量を取得して、幾何補正部5a(幾何補正手段)が、入力画像I1に対してずれ量に応じた幾何補正を行う。そのとき、幾何補正部5aは、幾何補正後の座標点の画素値を、入力画像I1の座標点に対して揺らぎ付加部54a(揺らぎ付加手段)によって揺らぎを付加した後で、補間演算部53(補間演算手段)が、幾何補正後の座標点の画素値を補間演算することによって算出する。したがって、揺らぎを付加するという簡便な処理によって、入力画像I1が網掛け等の二値パターンを含む場合であっても、プリンタ出力におけるモアレの発生を防止することができる。 Particularly, according to the image processing apparatus 115a according to the first embodiment, the deviation amount acquisition unit 3 (deviation amount acquisition means) acquires the deviation amount of the coordinate point when the input image I1 is output to the printer, The geometric correction unit 5a (geometric correction means) performs geometric correction on the input image I1 according to the amount of deviation. At that time, the geometric correction unit 5a adds the fluctuation of the pixel value of the coordinate point after the geometric correction to the coordinate point of the input image I1 by the fluctuation adding unit 54a (fluctuation adding means), and then the interpolation calculation unit 53. The (interpolation calculation means) calculates the pixel value of the coordinate point after geometric correction by performing an interpolation calculation. Therefore, even if the input image I1 includes a binary pattern such as halftone dot meshing, a simple process of adding fluctuation can prevent the occurrence of moire in the printer output.

また、第1の実施の形態に係る画像処理装置115aによれば、揺らぎ付加部54a(揺らぎ付加手段)が、三角関数を用いて、付加する揺らぎの大きさを表す揺らぎ関数F(n)を生成する。あるいは、生成した揺らぎ関数F(n)のデータを格納したテーブルの格納値を用いて、付加する揺らぎの大きさを算出する。したがって、既存の関数で簡便に揺らぎの大きさを算出することができる。 Further, according to the image processing apparatus 115a according to the first embodiment, the fluctuation adding unit 54a (fluctuation adding means) uses the trigonometric function to generate the fluctuation function F(n) representing the magnitude of the fluctuation to be added. To generate. Alternatively, the magnitude of the fluctuation to be added is calculated by using the stored value of the table that stores the generated fluctuation function F(n) data. Therefore, the magnitude of the fluctuation can be easily calculated with the existing function.

また、特に、第1の実施の形態の変形例に係る画像処理装置115bによれば、ずれ量取得部3(ずれ量取得手段)が、入力画像I1をプリンタ出力したときの座標点のずれ量を取得して、幾何補正部5b(幾何補正手段)が、入力画像I1に対してずれ量に応じた幾何補正を行う。そのとき、幾何補正部5bは、幾何補正後の座標点に対して揺らぎ付加部54b(揺らぎ付加手段)によって揺らぎを付加した後で、揺らぎが付加された幾何補正後の座標点の画素値を、補間演算部53(補間演算手段)が、入力画像I1の対応座標点の画素値を補間演算することによって算出する。したがって、補間演算は、補間演算部53において1回行うのみで済むため、入力画像I1から生成した例えばビットマップ画像に対して揺らぎを付加する場合と比べて、演算に伴って発生する量子化誤差を小さく抑えることができる。すなわち、幾何補正をより高精度で行うことができる。 Further, in particular, according to the image processing apparatus 115b according to the modification of the first embodiment, the deviation amount acquisition unit 3 (deviation amount acquisition means) causes the deviation amount of the coordinate point when the input image I1 is output to the printer. Then, the geometric correction unit 5b (geometric correction means) performs geometric correction on the input image I1 according to the amount of deviation. At this time, the geometric correction unit 5b adds the fluctuation to the coordinate point after the geometric correction by the fluctuation adding unit 54b (fluctuation adding means), and then calculates the pixel value of the coordinate point after the geometric correction to which the fluctuation is added. The interpolation calculation unit 53 (interpolation calculation means) calculates the pixel value of the corresponding coordinate point of the input image I1 by performing interpolation calculation. Therefore, since the interpolation calculation needs to be performed only once in the interpolation calculation unit 53, the quantization error generated by the calculation is greater than the case where fluctuation is added to, for example, a bitmap image generated from the input image I1. Can be kept small. That is, the geometric correction can be performed with higher accuracy.

そして、第2の実施の形態に係る画像処理装置115cによれば、補正モード決定部9(補正モード決定手段)によって第2の補正モードが選択された場合は、揺らぎ付加部54a(揺らぎ付加手段)によって、主走査方向に対する揺らぎである縦線揺らぎを付加して、副走査方向に対する揺らぎである横線揺らぎは付加しない。したがって、主走査方向の倍率補正に対してモアレ抑制効果を有する。さらに、揺らぎの付加を必要最小限に抑えることによって、文字部における揺らぎの増加等、不要な副作用の発生を抑制することができる。 Then, according to the image processing apparatus 115c according to the second embodiment, when the second correction mode is selected by the correction mode determination unit 9 (correction mode determination unit), the fluctuation addition unit 54a (fluctuation addition unit). ), the vertical line fluctuation which is the fluctuation in the main scanning direction is added, and the horizontal line fluctuation which is the fluctuation in the sub scanning direction is not added. Therefore, it has a moire suppressing effect on the magnification correction in the main scanning direction. Furthermore, by suppressing the addition of fluctuations to the necessary minimum, it is possible to suppress the occurrence of unnecessary side effects such as an increase in fluctuations in the character portion.

また、第2の実施の形態に係る画像処理装置115cによれば、補正モード決定部9(補正モード決定手段)によって第2の補正モードが選択された場合は、揺らぎ付加部54a(揺らぎ付加手段)によって、副走査方向に対する揺らぎである横線揺らぎを付加して、主走査方向に対する揺らぎである縦線揺らぎは付加しない。したがって、副走査方向に対してモアレ抑制効果を有する。さらに、揺らぎの付加を必要最小限に抑えることによって、文字部における揺らぎの増加等、不要な副作用の発生を抑制することができる。 Further, according to the image processing apparatus 115c according to the second embodiment, when the second correction mode is selected by the correction mode determination unit 9 (correction mode determination unit), the fluctuation addition unit 54a (fluctuation addition unit). ), the horizontal line fluctuation which is the fluctuation in the sub-scanning direction is added, and the vertical line fluctuation which is the fluctuation in the main scanning direction is not added. Therefore, it has a moire suppressing effect in the sub-scanning direction. Furthermore, by suppressing the addition of fluctuations to the necessary minimum, it is possible to suppress the occurrence of unnecessary side effects such as an increase in fluctuations in the character portion.

以上、実施の形態について説明したが、その各部の具体的な構成、処理の内容等は、各実施の形態で説明したものに限るものではない。 Although the embodiment has been described above, the specific configuration of each part, the content of processing, and the like are not limited to those described in each embodiment.

例えば、画像処理装置115a、115b、115cは、CPU102をプログラムに従って動作させる代わりに、プログラムが実行するのと同じ演算機能および制御機能を有する専用のASIC(Application Specific Integrated Circuit)を実装することによって、ハードウェア的に動作させてもよい。 For example, the image processing apparatuses 115a, 115b, and 115c, instead of operating the CPU 102 according to a program, by mounting a dedicated ASIC (Application Specific Integrated Circuit) having the same arithmetic function and control function as the program executes, You may operate by hardware.

3 ずれ量取得部(ずれ量取得手段)
5a、5b 幾何補正部(幾何補正手段)
6 擬似階調処理部(擬似階調処理手段)
8 書き込みタイミング制御部(書き込みタイミング制御手段)
9 補正モード決定部(補正モード決定手段)
51 対応座標点算出部(対応座標点算出手段)
53 補間演算部(補間演算手段)
54a、54b 揺らぎ付加部(揺らぎ付加手段)
100a、100b、100c 画像形成装置
115a、115b、115c 画像処理装置
3 Deviation amount acquisition unit (deviation amount acquisition means)
5a, 5b Geometric correction unit (geometric correction means)
6 Pseudo gradation processing unit (pseudo gradation processing means)
8 Write Timing Control Unit (Write Timing Control Unit)
9 Correction mode determination unit (correction mode determination means)
51 Corresponding coordinate point calculating unit (corresponding coordinate point calculating means)
53 Interpolation calculation unit (interpolation calculation means)
54a, 54b Fluctuation adding unit (fluctuation adding means)
Image forming apparatus 100a, 100b, 100c Image processing apparatus 115a, 115b, 115c

特許第4003803号公報Japanese Patent No. 4003803

Claims (8)

プリンタ出力時に発生する入力画像のずれ量を取得するずれ量取得手段と、
前記入力画像に対して、当該入力画像の座標点あるいは前記入力画像に対して揺らぎを付加した後で、前記ずれ量に応じた幾何補正を行って、幾何補正後の座標点の画素値を補間演算によって算出する幾何補正手段と、
前記幾何補正された前記入力画像に対して、前記入力画像の濃度階調を擬似階調で表す擬似階調処理を行う擬似階調処理手段と、を備える、
とを特徴とする画像処理装置。
Deviation amount acquisition means for acquiring the deviation amount of the input image generated at the time of printer output,
With respect to the input image, after appending the fluctuation relative coordinate point or the input image of the input image, I row geometric correction according to the deviation amount, the pixel value of the coordinate point after the geometric correction Geometric correction means for calculating by interpolation calculation ,
The relative geometry corrected the input image, and a pseudo gradation processing means for performing a pseudo gradation processing which represents the density gradation of the input image in the pseudo gradation, Ru provided with,
The image processing apparatus according to claim and this.
前記幾何補正手段は、
前記入力画像に前記ずれ量に応じた幾何補正後の座標点に対応する前記入力画像の対応座標点を算出する対応座標点算出手段と、
前記入力画像の座標点に対して揺らぎを付加する揺らぎ付加手段と、
前記幾何補正後の座標点の画素値を、前記揺らぎが付加された前記入力画像の対応座標点の画素値を補間演算することによって算出する補間演算手段と、を備える
ことを特徴とする請求項1に記載の画像処理装置。
The geometric correction means,
Corresponding coordinate point calculating means for calculating corresponding coordinate points of the input image corresponding to the coordinate points after geometric correction according to the displacement amount in the input image,
Fluctuation adding means for adding fluctuation to the coordinate points of the input image,
Interpolation calculation means for calculating the pixel value of the coordinate point after the geometric correction by performing interpolation calculation of the pixel value of the corresponding coordinate point of the input image to which the fluctuation is added. 1. The image processing device according to 1.
前記幾何補正手段は、
前記入力画像に前記ずれ量に応じた幾何補正後の座標点に対応する前記入力画像の対応座標点を算出する対応座標点算出手段と、
前記幾何補正後の座標点に対して揺らぎを付加する揺らぎ付加手段と、
前記揺らぎが付加された前記幾何補正後の座標点の画素値を、前記入力画像の対応座標点の画素値を補間演算することによって算出する補間演算手段と、を備える
ことを特徴とする請求項1に記載の画像処理装置。
The geometric correction means,
Corresponding coordinate point calculating means for calculating corresponding coordinate points of the input image corresponding to the coordinate points after geometric correction according to the displacement amount in the input image,
Fluctuation adding means for adding fluctuation to the coordinate points after the geometric correction;
Interpolation calculation means for calculating the pixel value of the coordinate point after the geometric correction to which the fluctuation is added by interpolating the pixel value of the corresponding coordinate point of the input image. 1. The image processing device according to 1.
前記揺らぎ付加手段は、三角関数を用いて前記揺らぎを生成する、
あるいは、生成した前記揺らぎの大きさを表すデータを格納したテーブルの格納値を用いて前記揺らぎを生成する、
ことを特徴とする請求項2または請求項3に記載の画像処理装置。
The fluctuation adding means generates the fluctuation using a trigonometric function,
Alternatively, the fluctuation is generated by using a stored value of a table that stores data representing the magnitude of the generated fluctuation,
The image processing apparatus according to claim 2 or claim 3, characterized in that.
前記入力画像に対して、書き込みタイミングを制御することにより、前記ずれ量に応じた幾何補正を行う書き込みタイミング制御手段と、
前記ずれ量取得手段によって取得したずれ量に応じて、前記入力画像のプリンタ出力時に、前記入力画像の主走査方向および前記入力画像の副走査方向に対して前記幾何補正手段による幾何補正を行う第1の補正モードと、前記主走査方向に対しては前記幾何補正手段による幾何補正を行い、前記副走査方向に対しては前記書き込みタイミング制御手段による幾何補正を行う第2の補正モードと、のうちいずれか一方を選択する補正モード決定手段と、をさらに備え、
前記第2の補正モードが選択された場合は、前記揺らぎ付加手段によって、前記主走査方向に対する揺らぎである縦線揺らぎを付加して、前記副走査方向に対する揺らぎである横線揺らぎは付加しない、
ことを特徴とする請求項から請求項4のいずれか1項に記載の画像処理装置。
Writing timing control means for performing geometric correction according to the amount of deviation by controlling writing timing with respect to the input image;
A geometric correction is performed by the geometric correction means in the main scanning direction of the input image and the sub-scanning direction of the input image according to the shift amount acquired by the shift amount acquiring means when the input image is output to a printer; 1 correction mode and a second correction mode in which geometric correction is performed by the geometric correction means in the main scanning direction and geometric correction is performed by the write timing control means in the sub-scanning direction. Correction mode determining means for selecting one of them,
When the second correction mode is selected, the fluctuation adding means adds vertical line fluctuation that is fluctuation in the main scanning direction, and does not add horizontal line fluctuation that is fluctuation in the sub-scanning direction.
The image processing apparatus according to any one of claims 2 to 4, wherein
前記入力画像に対して、書き込みタイミングを制御することにより、前記ずれ量に応じた幾何補正を行う書き込みタイミング制御手段と、
前記ずれ量取得手段によって取得したずれ量に応じて、前記入力画像のプリンタ出力時に、前記入力画像の主走査方向および前記入力画像の副走査方向に対して前記幾何補正手段による幾何補正を行う第1の補正モードと、前記副走査方向に対しては前記幾何補正手段による幾何補正を行い、前記主走査方向に対しては前記書き込みタイミング制御手段による幾何補正を行う第2の補正モードと、のうちいずれか一方を選択する補正モード決定手段と、をさらに備え、
前記第2の補正モードが選択された場合は、前記揺らぎ付加手段によって、前記副走査方向に対する揺らぎである横線揺らぎを付加して、前記主走査方向に対する揺らぎである縦線揺らぎは付加しない、
ことを特徴とする請求項から請求項4のいずれか1項に記載の画像処理装置。
Writing timing control means for performing geometric correction according to the amount of deviation by controlling writing timing with respect to the input image;
A geometric correction is performed by the geometric correction means in the main scanning direction of the input image and the sub-scanning direction of the input image according to the shift amount acquired by the shift amount acquiring means when the input image is output to a printer; 1 correction mode and a second correction mode in which geometric correction is performed by the geometric correction means in the sub-scanning direction and geometric correction is performed by the write timing control means in the main scanning direction. Correction mode determining means for selecting one of them,
When the second correction mode is selected, the fluctuation adding means adds horizontal line fluctuation that is fluctuation in the sub-scanning direction and does not add vertical line fluctuation that is fluctuation in the main scanning direction.
The image processing apparatus according to any one of claims 2 to 4, wherein
プリンタ出力時に発生する入力画像のずれ量を取得するずれ量取得ステップと、
前記入力画像に対して、当該入力画像の座標点あるいは前記入力画像に対して揺らぎを付加した後で、前記ずれ量に応じた幾何補正を行って、幾何補正後の座標点の画素値を補間演算によって算出する幾何補正ステップと、
前記幾何補正された前記入力画像に対して、前記入力画像の濃度階調を擬似階調で表す擬似階調処理を行う擬似階調処理ステップと、を備える、
とを特徴とする画像処理方法。
A deviation amount acquisition step of acquiring the deviation amount of the input image generated at the time of printer output,
With respect to the input image, after appending the fluctuation relative coordinate point or the input image of the input image, I row geometric correction according to the deviation amount, the pixel value of the coordinate point after the geometric correction Geometric correction step calculated by interpolation calculation ,
The relative geometry corrected the input image, and a pseudo gradation processing step of performing pseudo gradation processing for representing the gray scale of the input image in the pseudo gradation, Ru provided with,
An image processing method characterized by and this.
コンピュータを、
プリンタ出力時に発生する入力画像のずれ量を取得するずれ量取得手段と、
前記入力画像に対して、当該入力画像の座標点あるいは前記入力画像に対して揺らぎを付加した後で、前記ずれ量に応じた幾何補正を行って、幾何補正後の座標点の画素値を補間演算によって算出する幾何補正手段と、
前記幾何補正された前記入力画像に対して、前記入力画像の濃度階調を擬似階調で表す擬似階調処理を行う擬似階調処理手段と、して機能させる、
とを特徴とするプログラム。
Computer,
Deviation amount acquisition means for acquiring the deviation amount of the input image generated at the time of printer output,
With respect to the input image, after appending the fluctuation relative coordinate point or the input image of the input image, I row geometric correction according to the deviation amount, the pixel value of the coordinate point after the geometric correction Geometric correction means for calculating by interpolation calculation ,
The relative geometry corrected the input image, and a pseudo gradation processing means for performing a pseudo gradation processing which represents the density gradation of the input image in the pseudo gradation, Ru is to function,
Program which is characterized a call.
JP2016136976A 2016-07-11 2016-07-11 Image processing apparatus, image processing method and program Active JP6750357B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2016136976A JP6750357B2 (en) 2016-07-11 2016-07-11 Image processing apparatus, image processing method and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2016136976A JP6750357B2 (en) 2016-07-11 2016-07-11 Image processing apparatus, image processing method and program

Publications (2)

Publication Number Publication Date
JP2018011129A JP2018011129A (en) 2018-01-18
JP6750357B2 true JP6750357B2 (en) 2020-09-02

Family

ID=60993534

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2016136976A Active JP6750357B2 (en) 2016-07-11 2016-07-11 Image processing apparatus, image processing method and program

Country Status (1)

Country Link
JP (1) JP6750357B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116503269B (en) * 2023-03-27 2023-12-19 中山大学 SAR image correction method and device

Also Published As

Publication number Publication date
JP2018011129A (en) 2018-01-18

Similar Documents

Publication Publication Date Title
JP4771569B2 (en) Distortion correction method and distortion correction apparatus
JP4890974B2 (en) Image processing apparatus and image processing method
JP4972122B2 (en) Image processing device
JP4803288B2 (en) Pixel interpolation device, pixel interpolation method, and image reading device
JP6631180B2 (en) Image processing apparatus, image forming apparatus, image processing method, and program
US20170208211A1 (en) Image processing apparatus, image processing method, and storage medium
JP2010118927A (en) Program, recording medium, image processing apparatus, image processing method, and sheet for gradation correction parameter generation
JP6273934B2 (en) Control device, image forming system, program, and calibration sheet
JP2006303784A (en) Image reading apparatus and method
JP2015181219A (en) Image processing apparatus, image forming apparatus, image processing method, and program
JP5115575B2 (en) Image processing program and image processing apparatus
JP6750357B2 (en) Image processing apparatus, image processing method and program
JP2016037042A (en) Image forming apparatus, image forming method, and program
US9681022B2 (en) Image processing apparatus, image processing method, and recording medium
JP2016206446A (en) Image processing device, image formation apparatus, image processing method and program
JP5107208B2 (en) Image processing apparatus, image processing method, program, and recording medium
KR20100086229A (en) Color compensation apparatus and method, image forming apparatus and computer readable medium
JP2004246110A (en) Plate inspection apparatus, printing system, method for inspecting printed data on plate, and program
JP6190152B2 (en) Image processing apparatus and image processing method
JP4160887B2 (en) Image processing apparatus and image processing method
JP5927984B2 (en) Image processing apparatus and image processing program
JP4334498B2 (en) Image processing apparatus, image forming apparatus, image processing method, and computer program
JP5772253B2 (en) Image processing apparatus and program
JP5434525B2 (en) Image processing apparatus, calibration method, program, and recording medium
JP2023069216A (en) Image processing device, printer, image processing method, and program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20190417

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20200317

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20200508

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20200727

R151 Written notification of patent or utility model registration

Ref document number: 6750357

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151