JP2009212823A - Image processing apparatus, and program - Google Patents

Image processing apparatus, and program Download PDF

Info

Publication number
JP2009212823A
JP2009212823A JP2008053759A JP2008053759A JP2009212823A JP 2009212823 A JP2009212823 A JP 2009212823A JP 2008053759 A JP2008053759 A JP 2008053759A JP 2008053759 A JP2008053759 A JP 2008053759A JP 2009212823 A JP2009212823 A JP 2009212823A
Authority
JP
Japan
Prior art keywords
image
reduction
unit
area
original image
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2008053759A
Other languages
Japanese (ja)
Other versions
JP4968115B2 (en
Inventor
Natsumi Miyazawa
なつみ 宮澤
Isayuki Kono
功幸 河野
Hiroyuki Kono
裕之 河野
Atsushi Ito
篤 伊藤
Kunikazu Ueno
邦和 上野
Hiroaki Maezawa
浩明 前澤
Koichi Fujii
晃一 藤井
Takayuki Seki
隆行 関
Masakazu Fukunaga
正和 福永
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.)
Fujifilm Business Innovation Corp
Original Assignee
Fuji Xerox 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 Fuji Xerox Co Ltd filed Critical Fuji Xerox Co Ltd
Priority to JP2008053759A priority Critical patent/JP4968115B2/en
Publication of JP2009212823A publication Critical patent/JP2009212823A/en
Application granted granted Critical
Publication of JP4968115B2 publication Critical patent/JP4968115B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Image Processing (AREA)
  • Editing Of Facsimile Originals (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To efficiently reduce an image without generating lack of information. <P>SOLUTION: A reduction part 160 of this image processing apparatus 10 reduces an original image acquired via an image input part 12 by a factor of f. A magnification part 162 increases a reduction result image obtained by the reduction part 160 by a factor of f. An NG area discrimination part 1640 of a reduced NG mask creation part 164 discriminates an NG area where the lack of information is generated by reduction processing by comparing the original image with a magnification result image obtained by the magnification part 162. A reduced NG mask correction part 1642 corrects the NG area, and creates a corrected reduced NG mask including the NG area after correction. A deformation reduction part 166 deforms and reduces the original image using different reduction ratios for the NG area in the corrected reduced NG mask and areas except the NG area. <P>COPYRIGHT: (C)2009,JPO&INPIT

Description

本発明は、画像処理装置及びプログラムに関する。   The present invention relates to an image processing apparatus and a program.

二値画像の縮小変換処理では、変換の前後において情報の欠落が発生する場合がある。例えば、縮小変換前の原画像中の細線が縮小変換後の画像において消失する場合がある。また例えば、原画像中の背景色の細線が変換後の画像において消失することで、原画像中の異なる複数の線又は領域が変換後の画像において1つの線又は領域として表される場合がある。このような情報欠落が縮小変換処理において発生すると、画像の品質は劣化する。   In the binary image reduction conversion process, information may be lost before and after the conversion. For example, a thin line in the original image before the reduction conversion may disappear in the image after the reduction conversion. Further, for example, a thin line of the background color in the original image disappears in the converted image, so that a plurality of different lines or regions in the original image may be represented as one line or region in the converted image. . When such information loss occurs in the reduction conversion process, the image quality deteriorates.

画像の縮小変換処理における情報欠落の発生を防止する従来技術として、例えば、特許文献1には、二値イメージデータにおける黒画素の分布の特徴を評価し、この評価結果に基づいて、黒画素の分布が少ない領域を優先的に排除することによって二値イメージデータを縮小変換する装置が開示されている。   As a conventional technique for preventing the occurrence of information loss in image reduction conversion processing, for example, Patent Document 1 evaluates the characteristics of black pixel distribution in binary image data, and based on this evaluation result, An apparatus for reducing and converting binary image data by preferentially eliminating regions with low distribution is disclosed.

特許文献2には、複数の画素を含む画像を単位画像エリアに分割し、この単位画像エリアをそれぞれ縮小後の画像の1画素とする画像縮小処理を実行する画像データ縮小装置が開示されている。この画像データ縮小装置では、直線状に配列された画素列が単位画像エリアに存在することを検出した場合は、その画素列の色情報を強調して、当該単位画像エリアに対応する縮小後の画像の画素の色を決定する。   Patent Document 2 discloses an image data reduction apparatus that divides an image including a plurality of pixels into unit image areas and executes image reduction processing in which each unit image area is one pixel of a reduced image. . In this image data reduction device, when it is detected that a pixel array arranged in a straight line exists in the unit image area, the color information of the pixel array is emphasized, and the reduced image corresponding to the unit image area is displayed. Determine the pixel color of the image.

また例えば、特許文献3に開示される縮小変換装置では、変換画像中の画素(変換画素)のそれぞれを原画像へ写像し、各変換画素を中心に一定の範囲内に配置される原画像の画素について画素値の反転を検出することで、原画像のその範囲内において1画素の幅を有する細線の有無を検出する。そして、細線を検出した場合は、検出した細線の色を表す画素値を変換画素の値とすることで細線を保存し、細線を検出しなかった場合は、変換画素に最も近い原画像の画素の値を当該変換画素の値とする。   Further, for example, in the reduction conversion device disclosed in Patent Document 3, each of the pixels (conversion pixels) in the conversion image is mapped to the original image, and the original image arranged within a certain range around each conversion pixel. By detecting the inversion of the pixel value for the pixel, the presence or absence of a thin line having a width of one pixel within the range of the original image is detected. If a thin line is detected, the pixel value representing the color of the detected thin line is used as the value of the converted pixel, and the thin line is stored. If no thin line is detected, the pixel of the original image closest to the converted pixel Is the value of the conversion pixel.

特開平08−214150号公報JP 08-214150 A 特開2001−100729号公報Japanese Patent Laid-Open No. 2001-100729 特開平05−041795号公報JP 05-041795 A

本発明は、画像の縮小処理による情報欠落を防止するとともに、効率的に画像を縮小できる技術を提供することを1つの目的とする。   An object of the present invention is to provide a technique capable of efficiently reducing an image while preventing information loss due to image reduction processing.

請求項1に係る発明は、所定の縮小率で原画像を縮小する縮小部と、前記縮小部による縮小結果の画像に基づいて取得される情報と、前記原画像に基づいて取得される情報と、を比較することで、前記縮小結果画像において画質の劣化が生じる領域に対応する前記原画像中の領域である画質劣化領域を判定する画質劣化領域判定部と、前記画質劣化領域と、前記画質劣化領域の他の前記原画像中の領域と、について互いに異なる縮小率を用いて、前記原画像を縮小する変形縮小部と、を備えることを特徴とする画像処理装置である。   The invention according to claim 1 is a reduction unit that reduces an original image at a predetermined reduction rate, information acquired based on an image obtained as a result of reduction by the reduction unit, and information acquired based on the original image , Comparing the image quality degradation area determination unit for determining an image quality degradation area that is an area in the original image corresponding to an area where image quality degradation occurs in the reduction result image, the image quality degradation area, and the image quality An image processing apparatus comprising: a deformation / reduction unit that reduces the original image by using different reduction ratios for the other areas in the original image other than the deteriorated area.

請求項2に係る発明は、請求項1に係る発明において、前記縮小部が用いた前記所定の縮小率の逆数を拡大率として用いて前記縮小結果画像を拡大する拡大部をさらに備え、前記画質劣化領域判定部は、前記拡大部による拡大結果の画像に含まれる各画素の値と、前記拡大結果画像中の当該画素の位置に対応する前記原画像中の位置に配置される画素の値と、を比較することで、前記画質劣化領域を判定する。   According to a second aspect of the present invention, in the first aspect of the present invention, the image processing apparatus further includes an enlargement unit that enlarges the reduction result image using an inverse of the predetermined reduction rate used by the reduction unit as an enlargement rate. The degradation area determination unit includes a value of each pixel included in the image of the enlargement result by the enlargement unit, and a value of a pixel arranged at a position in the original image corresponding to the position of the pixel in the enlargement result image. , And the image quality degradation region is determined.

請求項3に係る発明は、請求項1又は2に係る発明において、前記変形縮小部は、前記画質劣化領域については縮小せず、前記画質劣化領域の他の前記原画像中の領域については前記縮小部が用いた前記所定の縮小率で縮小する。   The invention according to claim 3 is the invention according to claim 1 or 2, wherein the deformation / reduction unit does not reduce the image quality deterioration area, and does not reduce the image quality deterioration area other than the area in the original image. Reduction is performed at the predetermined reduction ratio used by the reduction unit.

請求項4に係る発明は、請求項1から3のいずれか1項に係る発明において、前記画質劣化領域判定部が判定した領域の前記原画像中の位置に基づいて当該領域を補正し、補正後の領域を前記画質劣化領域とする画質劣化領域補正部、をさらに備える。   The invention according to claim 4 is the invention according to any one of claims 1 to 3, wherein the region is corrected based on a position in the original image of the region determined by the image quality degradation region determination unit. An image quality deterioration area correction unit that uses a later area as the image quality deterioration area is further provided.

請求項5に係る発明は、請求項1から4のいずれか1項に係る発明において、前記原画像の1つの走査方向を処理方向として前記画像処理装置が備える各部の処理を行った後、前記走査方向に対して垂直な方向を処理方向として前記画像処理装置が備える各部の処理を行う。   The invention according to claim 5 is the invention according to any one of claims 1 to 4, wherein after performing processing of each unit included in the image processing apparatus with one scanning direction of the original image as a processing direction, Processing of each unit included in the image processing apparatus is performed with a direction perpendicular to the scanning direction as a processing direction.

請求項6に係る発明は、請求項5に係る発明において、前記画質劣化領域の他の前記原画像中の領域から、前記処理方向と平行な辺を有する長方形の領域であって前記原画像の背景色を表す画素のみを含む領域である余白を検出し、検出した余白について前記所定の縮小率で縮小した場合の大きさよりも小さな大きさに縮小することを前記変形縮小部に指示する余白調整部、をさらに備え、前記変形縮小部は、さらに、前記余白調整部の指示に従って前記原画像を縮小する。   The invention according to claim 6 is the invention according to claim 5, wherein the image quality degradation area is a rectangular area having sides parallel to the processing direction from other areas in the original image. A margin adjustment which detects a margin which is an area including only pixels representing a background color and instructs the deformation reduction unit to reduce the detected margin to a size smaller than the size when reduced at the predetermined reduction rate. The deformation reduction unit further reduces the original image in accordance with an instruction from the margin adjustment unit.

請求項7に係る発明は、請求項6に係る発明において、前記変形縮小部による縮小の後の画像の大きさを求め、求めた大きさが前記縮小結果画像の大きさよりも大きい場合に、前記原画像について、前記縮小部が用いた前記所定の縮小率と異なる縮小率を用いて、少なくとも前記縮小部、前記画質劣化領域判定部、及び前記余白調整部の処理を実行する。   The invention according to claim 7 is the invention according to claim 6, wherein the size of the image after reduction by the deformation reduction unit is obtained, and when the obtained size is larger than the size of the reduction result image, For the original image, processing of at least the reduction unit, the image quality degradation area determination unit, and the margin adjustment unit is executed using a reduction rate different from the predetermined reduction rate used by the reduction unit.

請求項8に係る発明は、請求項1から4のいずれか1項に係る発明において、前記変形縮小部による縮小の後の画像の大きさを求め、求めた大きさが前記縮小結果画像の大きさよりも大きい場合に、前記画質劣化領域のそれぞれを原画像として、前記縮小部が用いた前記所定の縮小率と異なる縮小率を用いて、少なくとも前記縮小部及び前記画質劣化領域判定部の処理を実行する。   The invention according to claim 8 is the invention according to any one of claims 1 to 4, wherein the size of the image after reduction by the deformation reduction unit is obtained, and the obtained size is the size of the reduction result image. If the image quality degradation area is larger than the original image, each of the image quality degradation areas is used as an original image, and at least processing of the reduction section and the image quality degradation area determination section is performed using a reduction ratio different from the predetermined reduction ratio used by the reduction section. Execute.

請求項9に係る発明は、請求項1から4のいずれか1項に係る発明において、処理対象として指定された画像を原画像として、複数の異なる縮小率を用いて少なくとも前記縮小部及び前記画質劣化領域判定部の処理を繰り返し実行し、前記画質劣化領域判定部において前記画質劣化領域が存在しないと判定された場合に前記縮小部で用いられた縮小率のうち、縮小後の画像の大きさが最小となる縮小率を、前記指定された画像の可能縮小率として決定する可能縮小率決定部、をさらに備える。   The invention according to claim 9 is the invention according to any one of claims 1 to 4, wherein at least the reduction unit and the image quality using a plurality of different reduction ratios with an image designated as a processing target as an original image. Of the reduction ratios used in the reduction unit when the image quality deterioration region determination unit determines that the image quality deterioration region does not exist by repeatedly executing the processing of the deterioration region determination unit, the size of the image after reduction And a possible reduction ratio determining unit that determines a reduction ratio that minimizes as a possible reduction ratio of the designated image.

請求項10に係る発明は、請求項9に係る発明において、前記画質劣化領域のそれぞれを処理対象として指定して前記可能縮小率決定部の処理を実行し、前記変形縮小部は、前記画質劣化領域のそれぞれについて前記可能縮小率決定部が決定した可能縮小率を用いて前記画質劣化領域を縮小する。   The invention according to claim 10 is the invention according to claim 9, wherein each of the image quality degradation regions is designated as a processing target and the processing of the possible reduction ratio determining unit is executed, and the deformation reduction unit is configured to perform the image quality degradation. The image quality degradation region is reduced using the possible reduction rate determined by the possible reduction rate determination unit for each of the regions.

請求項11に係る発明は、所定の縮小率で原画像を縮小する縮小ステップと、前記縮小ステップによる縮小結果の画像に基づいて取得される情報と、前記原画像に基づいて取得される情報と、を比較することで、前記縮小結果画像において画質の劣化が生じる領域に対応する前記原画像中の領域である画質劣化領域を判定する画質劣化領域判定ステップと、前記画質劣化領域と、前記画質劣化領域の他の前記原画像中の領域と、について互いに異なる縮小率を用いて、前記原画像を縮小する変形縮小ステップと、をコンピュータに実行させることを特徴とするプログラムである。   The invention according to claim 11 is a reduction step of reducing an original image at a predetermined reduction rate, information acquired based on an image obtained as a result of reduction by the reduction step, and information acquired based on the original image , Comparing the image quality degradation area determining step for determining the image quality degradation area that is an area in the original image corresponding to the area where the image quality degradation occurs in the reduced result image, the image quality degradation area, and the image quality A program that causes a computer to execute a deformation and reduction step of reducing the original image by using different reduction ratios for the other areas in the original image other than the deteriorated area.

請求項1又は11に係る発明によると、縮小結果画像に基づいて取得される情報と原画像に基づいて取得される情報とを比較することで画質劣化領域を確実に判定でき、この画質劣化領域とその他の原画像中の領域とを互いに異なる縮小率で縮小するため、画質の劣化を生じさせずに原画像を縮小できる。   According to the invention according to claim 1 or 11, the image quality degradation region can be reliably determined by comparing the information acquired based on the reduction result image and the information acquired based on the original image. And other areas in the original image are reduced at different reduction rates, the original image can be reduced without causing deterioration in image quality.

請求項2に係る発明によると、画質劣化領域を容易に判定できる。   According to the second aspect of the present invention, the image quality degradation region can be easily determined.

請求項3に係る発明によると、画質劣化が生じないことが確実である変形縮小処理を行うことができる。   According to the third aspect of the present invention, it is possible to perform the deformation / reduction process that ensures that the image quality does not deteriorate.

請求項4に係る発明によると、補正された画質劣化領域とその他の原画像中の領域とを互いに異なる縮小率で縮小できる。   According to the fourth aspect of the present invention, the corrected image quality degradation region and other regions in the original image can be reduced at different reduction ratios.

請求項5に係る発明によると、容易な計算によって、画質劣化領域とその他の原画像中の領域とを互いに異なる縮小率で縮小するための処理を実行できる。   According to the fifth aspect of the present invention, the processing for reducing the image quality degradation region and other regions in the original image at different reduction ratios can be executed by easy calculation.

請求項6に係る発明によると、画像中の余白をより小さく縮小することで、画質劣化領域とその他の原画像中の領域とを互いに異なる縮小率で縮小した結果の画像の大きさをより小さくすることができる。   According to the invention of claim 6, by reducing the margin in the image to a smaller size, the size of the image as a result of reducing the image quality degradation region and the other regions in the original image at different reduction ratios can be reduced. can do.

請求項7に係る発明によると、原画像の全体を所定の縮小率で縮小した結果の画像の大きさよりも変形縮小処理の後の画像の大きさが大きい場合に当該所定の縮小率と異なる縮小率を用いて原画像の画質劣化領域を判定する処理を繰り返して実行することができ、その結果、原画像の全体を所定の縮小率で縮小した結果の画像により近い大きさの画像を変形縮小処理の結果として得ることができる。   According to the invention of claim 7, when the size of the image after the deformation reduction process is larger than the size of the image as a result of reducing the entire original image at the predetermined reduction rate, the reduction is different from the predetermined reduction rate. It is possible to repeatedly execute the process of determining the image quality degradation area of the original image using the rate, and as a result, the image closer to the size of the image obtained by reducing the entire original image at a predetermined reduction rate is deformed and reduced. It can be obtained as a result of processing.

請求項8に係る発明によると、原画像の全体を所定の縮小率で縮小した結果の画像の大きさよりも変形縮小処理の後の画像の大きさが大きい場合に、原画像の全体を所定の縮小率で縮小した結果の画像の大きさにより近い大きさの画像を変形縮小処理の結果として得ることができる。   According to the eighth aspect of the present invention, when the size of the image after the deformation reduction process is larger than the size of the image as a result of reducing the entire original image at a predetermined reduction ratio, the entire original image is An image having a size closer to the size of the image obtained as a result of reduction at the reduction rate can be obtained as a result of the deformation reduction processing.

請求項9に係る発明によると、画質劣化が生じない範囲で処理対象の画像を最も小さく縮小するための縮小率を求めることができる。   According to the ninth aspect of the present invention, it is possible to obtain a reduction ratio for reducing the image to be processed to the smallest extent within a range where image quality degradation does not occur.

請求項10に係る発明によると、画質劣化領域を縮小せず、画質劣化領域の他の原画像中の領域を所定の縮小率で縮小する場合と比較して、原画像の全体を所定の縮小率で縮小した結果の画像の大きさにより近い大きさの画像を変形縮小処理の結果として得ることができる。   According to the tenth aspect of the present invention, the entire original image is reduced by a predetermined size as compared with the case where the image quality deteriorated region is not reduced and the other areas of the original image in the image quality deteriorated region are reduced at a predetermined reduction rate. An image having a size closer to the size of the image obtained as a result of reduction at a rate can be obtained as a result of the deformation reduction processing.

図1は、本発明の1つの実施形態の画像処理装置10の概略構成の例を示すブロック図である。画像処理装置10は、画像入力部12、ユーザ入力部14、処理部16、記憶部18、及び出力部20を備える。   FIG. 1 is a block diagram illustrating an example of a schematic configuration of an image processing apparatus 10 according to an embodiment of the present invention. The image processing apparatus 10 includes an image input unit 12, a user input unit 14, a processing unit 16, a storage unit 18, and an output unit 20.

画像入力部12は、処理対象の画像データの入力を受け付けて処理部16に渡す。画像入力部12が受け付ける画像データは、例えば、画素ごとに白色及び黒色のいずれかを表す値を有する二値画像のデジタルデータである。画像入力部12は、例えば、スキャナなどの一般的なデジタル画像生成装置から画像データの入力を受け付ける。また例えば、画像入力部12は、インターネットやLAN(Local Area Network)などのネットワーク(図示しない)を介して画像処理装置10と接続されたコンピュータなどの情報処理装置から画像データの入力を受け付けてもよい。なお、以下の説明では、色などを表す数値を有する画素からなるデジタル画像データを単に「画像」と呼ぶ。   The image input unit 12 receives input of image data to be processed and passes it to the processing unit 16. The image data received by the image input unit 12 is, for example, digital data of a binary image having a value representing either white or black for each pixel. The image input unit 12 receives input of image data from a general digital image generation device such as a scanner, for example. Further, for example, the image input unit 12 may receive input of image data from an information processing apparatus such as a computer connected to the image processing apparatus 10 via a network (not shown) such as the Internet or a LAN (Local Area Network). Good. In the following description, digital image data composed of pixels having numerical values representing colors and the like is simply referred to as “image”.

ユーザ入力部14は、ユーザによる指示の入力を受け付けて処理部16に渡す。ユーザ入力部14は、例えば、キーボード及びマウスなどの一般的な入力装置であってよい。   The user input unit 14 receives an instruction input from the user and passes it to the processing unit 16. The user input unit 14 may be a general input device such as a keyboard and a mouse.

処理部16は、画像入力部12が受け付けた画像に対する処理を行う。処理部16は、縮小部160、拡大部162、縮小NGマスク作成部164、及び変形縮小部166を備える。   The processing unit 16 performs processing on the image received by the image input unit 12. The processing unit 16 includes a reduction unit 160, an enlargement unit 162, a reduction NG mask creation unit 164, and a deformation reduction unit 166.

縮小部は、原画像を所定の縮小率で縮小する処理を行う。縮小部は、例えば、画像の縮小方法として用いられる一般的な縮小方法によって原画像を縮小する。   The reduction unit performs a process of reducing the original image at a predetermined reduction rate. The reduction unit reduces the original image by, for example, a general reduction method used as an image reduction method.

拡大部162は、縮小部が縮小した結果の画像(以下、「縮小結果画像」とも呼ぶ)を拡大する処理を行う。拡大部162は、縮小部が用いた縮小率の逆数を拡大率として用い、縮小部が用いた縮小方法に対応する方法によって縮小結果画像を拡大する。例えば、縮小部が原画像を1/2倍に縮小した場合、拡大部162は、当該縮小結果画像を2倍に拡大する。この拡大部162による拡大の結果の画像(以下、「拡大結果画像」とも呼ぶ)は、縮小部による縮小前の原画像と同じ大きさを有する。   The enlargement unit 162 performs a process of enlarging an image (hereinafter, also referred to as “reduction result image”) obtained as a result of reduction by the reduction unit. The enlargement unit 162 uses the reciprocal of the reduction rate used by the reduction unit as the enlargement rate, and enlarges the reduction result image by a method corresponding to the reduction method used by the reduction unit. For example, when the reduction unit reduces the original image by a factor of 1/2, the enlargement unit 162 enlarges the reduction result image by a factor of two. The image resulting from the enlargement by the enlargement unit 162 (hereinafter also referred to as “enlargement result image”) has the same size as the original image before being reduced by the reduction unit.

縮小NGマスク作成部164は、縮小部の縮小処理によって情報欠落が生じ得る原画像中の領域を表すNGエリアを含む縮小NGマスクを作成する。縮小NGマスクは、原画像中の各画素に対応する画素を含む。縮小NGマスク中の各画素は、後述の変形縮小部166の処理で用いられる情報を有する。例えば、縮小NGマスク中の各画素は、当該画素がNGエリアに含まれる場合にONに設定され、当該画素がNGエリアに含まれない場合にOFFに設定されるNGマスク値を有する。縮小NGマスク作成部164は、NGエリア判定部1640及び縮小NGマスク補正部1642を備える。   The reduced NG mask creation unit 164 creates a reduced NG mask including an NG area representing an area in the original image where information loss may occur due to the reduction process of the reduction unit. The reduced NG mask includes a pixel corresponding to each pixel in the original image. Each pixel in the reduced NG mask has information used in processing of the deformation reduction unit 166 described later. For example, each pixel in the reduced NG mask has an NG mask value that is set to ON when the pixel is included in the NG area and set to OFF when the pixel is not included in the NG area. The reduced NG mask creation unit 164 includes an NG area determination unit 1640 and a reduced NG mask correction unit 1642.

NGエリア判定部1640は、縮小部の縮小処理によって情報欠落が生じ得る領域を判定する。NGエリア判定部1640は、例えば、縮小処理によって細線の消失又は線同士の潰れなどの画質の劣化が生じる領域をNGエリアとして判定する。NGエリア判定部1640は、例えば、拡大結果画像の各画素の値と原画像の各画素の値とを比較することでNGエリアを判定する。   The NG area determination unit 1640 determines a region where information loss may occur due to the reduction process of the reduction unit. For example, the NG area determination unit 1640 determines, as the NG area, an area in which image quality degradation such as disappearance of thin lines or collapse of lines occurs due to the reduction process. For example, the NG area determination unit 1640 determines the NG area by comparing the value of each pixel of the enlarged result image with the value of each pixel of the original image.

縮小NGマスク補正部1642は、NGエリア判定部1640が判定したNGエリアを補正して、補正された縮小NGマスクを生成する。縮小NGマスク補正部1642が行う補正処理の内容の詳細は後述する。   The reduced NG mask correcting unit 1642 corrects the NG area determined by the NG area determining unit 1640 and generates a corrected reduced NG mask. Details of the correction process performed by the reduced NG mask correction unit 1642 will be described later.

変形縮小部166は、縮小NGマスク作成部164が作成した縮小NGマスクに従って原画像を縮小する。変形縮小部166は、例えば、縮小NGマスクが表す各種の領域について互いに異なる縮小率を用いて原画像を縮小する。例えば、変形縮小部166は、縮小NGマスクが表すNGエリアについては縮小率1.0で縮小し(つまり、縮小しない)、NGエリア以外の原画像の領域については、縮小部が用いた所定の縮小率で縮小する。   The deformation reduction unit 166 reduces the original image in accordance with the reduced NG mask created by the reduced NG mask creation unit 164. For example, the deformation reduction unit 166 reduces the original image using different reduction ratios for various regions represented by the reduction NG mask. For example, the deformation / reduction unit 166 reduces the NG area represented by the reduced NG mask at a reduction ratio of 1.0 (that is, does not reduce), and the original image area other than the NG area is a predetermined area used by the reduction unit. Reduce at the reduction rate.

記憶部18は、処理部16における処理に必要な情報を記憶する記憶装置である。記憶部18は、例えば、処理部16の処理対象の画像、処理部16が行う処理で用いられる変数の値、及び処理部16が行う処理の手順を記述したプログラムなどを記憶する。   The storage unit 18 is a storage device that stores information necessary for processing in the processing unit 16. For example, the storage unit 18 stores an image to be processed by the processing unit 16, values of variables used in processing performed by the processing unit 16, a program describing a procedure of processing performed by the processing unit 16, and the like.

出力部20は、処理部16による処理の結果を出力する。例えば、出力部20は、処理部16による処理の結果として生成された画像を表示装置(図示しない)に対して出力し、当該画像を表示装置に表示させる。あるいは、例えば、出力部20は、処理結果の画像をネットワーク(図示しない)に対して出力することで、ネットワークを介して画像処理装置10に接続された装置に処理結果の画像を送ってもよい。   The output unit 20 outputs the result of processing by the processing unit 16. For example, the output unit 20 outputs an image generated as a result of processing by the processing unit 16 to a display device (not shown), and causes the display device to display the image. Alternatively, for example, the output unit 20 may output the processing result image to a device connected to the image processing apparatus 10 via the network by outputting the processing result image to a network (not shown). .

図2は、処理部16が行う処理の手順の例を示すフローチャートである。   FIG. 2 is a flowchart illustrating an example of a procedure of processing performed by the processing unit 16.

図2を参照し、処理部16は、まずステップS1で、処理の対象である原画像を画像入力部12から取得する。本例では、原画像は、二値画像のデジタルデータであるとする。   With reference to FIG. 2, the processing unit 16 first acquires an original image to be processed from the image input unit 12 in step S <b> 1. In this example, the original image is digital data of a binary image.

次に、ステップS2で、処理部16は、処理方向を原画像の主走査方向に設定する。ステップS3以降、処理部16が備える各部は、現在の処理方向の画素線に対して各処理を行う。   Next, in step S2, the processing unit 16 sets the processing direction to the main scanning direction of the original image. After step S3, each unit included in the processing unit 16 performs each process on the pixel line in the current processing direction.

ステップS3で、処理部16の縮小部は、現在の処理方向に所定の縮小率で原画像を縮小する。縮小部は、例えば、原画像の主走査方向の各画素線を1/f倍(1.0<f)に縮小する。この縮小率1/fの値は、例えばユーザによって指定された値であってよい。縮小部は、ユーザ入力部14を介して、ユーザが指定した縮小率1/fの値を取得できる。あるいは、縮小部は、予め設定されて記憶部18に記憶された縮小率1/fを用いてもよい。縮小部は、画像の縮小変換処理において一般的に用いられる方法で縮小処理を行う。例えば、原画像の各画素線から、縮小率1/fに応じて決定される一定の間隔で複数の画素を選択し、選択した各画素の値を、縮小結果画像の対応する画素線に含まれる各画素の値とする。縮小処理が終了すると、縮小部160は縮小結果画像を拡大部162に渡す。   In step S3, the reduction unit of the processing unit 16 reduces the original image at a predetermined reduction rate in the current processing direction. For example, the reduction unit reduces each pixel line in the main scanning direction of the original image by 1 / f times (1.0 <f). The value of the reduction ratio 1 / f may be a value designated by the user, for example. The reduction unit can acquire the value of the reduction ratio 1 / f specified by the user via the user input unit 14. Alternatively, the reduction unit may use a reduction rate 1 / f that is preset and stored in the storage unit 18. The reduction unit performs reduction processing by a method generally used in image reduction conversion processing. For example, a plurality of pixels are selected from each pixel line of the original image at a fixed interval determined according to the reduction ratio 1 / f, and the value of each selected pixel is included in the corresponding pixel line of the reduction result image It is set as the value of each pixel. When the reduction process ends, the reduction unit 160 passes the reduction result image to the enlargement unit 162.

ステップS4で、拡大部162は、縮小部から取得した縮小結果画像を拡大する。拡大部162は、設定された処理方向に、縮小部が用いた縮小率1/fの逆数で表される拡大率fで縮小結果画像を拡大する。例えば、拡大部162は、縮小結果画像の主走査方向の各画素線をf倍に拡大する。拡大部162は、縮小部が縮小処理(ステップS3)で用いた方法に対応する方法で拡大処理を行う。拡大部162の拡大処理(ステップS4)は、縮小処理(ステップS3)における変換の逆変換によって拡大結果画像を得るものであると言える。例えば、原画像の各画素線から一定間隔で選択された画素の値を縮小結果画像の画素線に含まれる各画素の値とする上述の例の方法で縮小処理が行われていた場合、拡大部162は、縮小結果画像の各画素線について、画素と画素との間に、拡大率fに応じて決定される所定の個数の画素を挿入した画素線を拡大結果画像の画素線とする。ここで、画素と画素との間に挿入される画素の値は、例えば、挿入される画素を挟む2つの画素のうちの一方と同じ値に設定しておけばよい。拡大処理が終了すると、拡大部162は、拡大結果画像を縮小NGマスク作成部164に渡す。   In step S4, the enlargement unit 162 enlarges the reduction result image acquired from the reduction unit. The enlargement unit 162 enlarges the reduction result image in the set processing direction at an enlargement rate f represented by the reciprocal of the reduction rate 1 / f used by the reduction unit. For example, the enlargement unit 162 enlarges each pixel line in the main scanning direction of the reduction result image by f times. The enlargement unit 162 performs the enlargement process by a method corresponding to the method used by the reduction unit in the reduction process (step S3). It can be said that the enlargement process (step S4) of the enlargement unit 162 obtains an enlargement result image by inverse conversion of the conversion in the reduction process (step S3). For example, when the reduction processing is performed by the method of the above example in which the values of the pixels selected at regular intervals from each pixel line of the original image are the values of each pixel included in the pixel line of the reduction result image, For each pixel line of the reduction result image, the unit 162 sets a pixel line in which a predetermined number of pixels determined according to the enlargement ratio f are inserted between the pixels as the pixel line of the enlargement result image. Here, the value of the pixel inserted between the pixels may be set to the same value as one of the two pixels sandwiching the inserted pixel, for example. When the enlargement process ends, the enlargement unit 162 passes the enlargement result image to the reduced NG mask creation unit 164.

縮小処理(ステップS3)において何らかの情報欠落が生じていた場合、ステップS4で縮小結果画像を拡大した拡大結果画像は、縮小結果画像における情報欠落状態を維持するものとなる。例えば、図3を参照し、画素線Aは、原画像IMGOの主走査方向の1つの画素線である。画素線Bは、画素線Aを主走査方向(矢印Mの方向)に1/f倍に縮小した画素線である。つまり、画素線Bは、縮小結果画像において原画像IMGOの画素線Aに対応する画素線である。また、画素線Cは、画素線Bを主走査方向にf倍に拡大した画素線である。つまり、画素線Cは、拡大結果画像において原画像IMGOの画素線Aに対応する画素線Cである。 When some information loss occurs in the reduction process (step S3), the enlarged result image obtained by enlarging the reduced result image in step S4 maintains the information missing state in the reduced result image. For example, referring to FIG. 3, the pixel line A is one pixel line in the main scanning direction of the original image IMG O. The pixel line B is a pixel line obtained by reducing the pixel line A to 1 / f times in the main scanning direction (the direction of the arrow M). That is, the pixel line B is a pixel line corresponding to the pixel line A of the original image IMG O in the reduction result image. The pixel line C is a pixel line obtained by enlarging the pixel line B f times in the main scanning direction. That is, the pixel line C is a pixel line C corresponding to the pixel line A of the original image IMG O in the enlarged result image.

図3に例示する原画像IMGOの画素線Aでは、一点鎖線で囲んだ部分p1に4つの黒画素が配置されており、各黒画素とその隣の黒画素との間には1つの白画素が配置されている。一方、縮小結果画像の画素線Bでは、画素線Aの部分p1に対応する部分において、4つの黒画素が連続して配置されており、画素線Aにおいて黒画素と黒画素との間に配置されている白画素は消失している。これは、縮小処理によって白色の細線が消失し、原画像IMGOにおける4本の独立した黒線が潰れて1つの線として縮小結果画像に現れることを示す。また、画素線Aにおいて一点鎖線で囲んだ部分p2に存在する1つの黒画素は、画素線Bでは消失している。これは、原画像IMGOにおける黒色の細線が縮小結果画像において消失することを表す。そして、画素線Bを拡大した画素線Cにおいても、画素線Aの部分p1中の白画素に対応する白画素は存在せず、画素線Aの部分p2中の黒画素に対応する黒画素は存在しない。つまり、拡大結果画像の画素線Cには、縮小結果画像の画素線Bにおける情報欠落状態が反映されている。したがって、原画像IMGOの画素線Aと拡大結果画像の画素線Cとを比較することで、縮小処理によって情報欠落が生じた部分を判定できる。 In the pixel lines A of the original image IMG O illustrated in FIG. 3, 1 between are arranged four black pixels in the portion p1 surrounded by a chain line, the black pixels and the black pixels of the adjacent Tsunoshiro Pixels are arranged. On the other hand, in the pixel line B of the reduced result image, four black pixels are continuously arranged in a portion corresponding to the portion p1 of the pixel line A, and are arranged between the black pixel and the black pixel in the pixel line A. The white pixels that have been deleted have disappeared. This indicates that the white thin line disappears due to the reduction process, and four independent black lines in the original image IMG O are crushed and appear as one line in the reduction result image. In addition, one black pixel existing in the portion p2 surrounded by the alternate long and short dash line in the pixel line A has disappeared in the pixel line B. This represents that the black thin line in the original image IMG O disappears in the reduction result image. Even in the pixel line C obtained by enlarging the pixel line B, there is no white pixel corresponding to the white pixel in the portion p1 of the pixel line A, and the black pixel corresponding to the black pixel in the portion p2 of the pixel line A is not exist. That is, the pixel line C of the enlarged result image reflects the information missing state in the pixel line B of the reduced result image. Therefore, by comparing the pixel line A of the original image IMG O and the pixel line C of the enlarged result image, it is possible to determine a portion where information loss has occurred due to the reduction process.

再び図2を参照し、ステップS5で、縮小NGマスク作成部164は、原画像と拡大結果画像とを比較することで縮小NGマスクを作成する。   Referring to FIG. 2 again, in step S5, the reduced NG mask creating unit 164 creates a reduced NG mask by comparing the original image and the enlarged result image.

図4に、縮小NGマスク作成処理の詳細手順の例を示す。図2のステップS5が開始されると、処理部16の縮小NGマスク作成部164は、図4に例示する手順の処理を開始する。   FIG. 4 shows an example of a detailed procedure of the reduced NG mask creation process. When step S5 of FIG. 2 is started, the reduced NG mask creation unit 164 of the processing unit 16 starts processing of the procedure illustrated in FIG.

図4を参照し、縮小NGマスク作成部164は、まず、縮小NGマスクの初期化を行う(ステップS50)。初期化処理では、縮小NGマスク作成部164は、例えば、原画像の各画素に対応する画素を含む縮小NGマスクを作成し、作成した縮小NGマスク中の全画素のNGマスク値をOFFに設定する。初期化処理の後、縮小NGマスク作成部164は、原画像の処理方向の画素線を1つ取得し(ステップS51)、この画素線に対応する画素線を拡大結果画像から取得する(ステップS52)。例えば、図3の例の画素線AをステップS51で原画像から取得した場合、ステップS52では、図3の例の画素線Cを拡大結果画像から取得する。   Referring to FIG. 4, reduced NG mask creation unit 164 first initializes a reduced NG mask (step S50). In the initialization process, the reduced NG mask creation unit 164 creates, for example, a reduced NG mask including pixels corresponding to each pixel of the original image, and sets the NG mask values of all the pixels in the created reduced NG mask to OFF. To do. After the initialization process, the reduced NG mask creation unit 164 acquires one pixel line in the processing direction of the original image (step S51), and acquires a pixel line corresponding to this pixel line from the enlarged result image (step S52). ). For example, when the pixel line A in the example of FIG. 3 is acquired from the original image in step S51, the pixel line C in the example of FIG. 3 is acquired from the enlarged result image in step S52.

次に、ステップS54で、縮小NGマスク作成部164のNGエリア判定部1640は、原画像の対象画素線(ステップS51で取得)と、これに対応する拡大結果画像の画素線(ステップS52で取得)と、を比較して、両者の間の相違部分を求める。例えば、NGエリア判定部1640は、ステップS54で、原画像の画素線の各画素の値と、対応する拡大結果画像の画素線の各画素の値と、に対して論理演算のAND演算を行うことで、原画像の画素線の画素と拡大結果画像の画素線の画素とが異なる値を有する画素線上の位置を求める。   Next, in step S54, the NG area determination unit 1640 of the reduced NG mask creation unit 164 obtains the target pixel line of the original image (obtained in step S51) and the corresponding pixel line of the enlarged result image (obtained in step S52). ), And the difference between the two is obtained. For example, in step S54, the NG area determination unit 1640 performs a logical AND operation on the value of each pixel of the pixel line of the original image and the value of each pixel of the pixel line of the corresponding enlarged result image. Thus, the position on the pixel line in which the pixel line pixel of the original image and the pixel line pixel of the enlarged result image have different values is obtained.

図5を参照し、線diffは、図3の例の原画像の画素線Aと、図3の例の拡大結果画像の画素線Cと、に対してNGエリア判定部1640がステップS54の処理を行った結果の例を示す。図5の線diffにおいて、斜線を引いた四角は、画素線A上の画素と、この画素の位置に対応する画素線C上の位置にある画素と、が互いに異なる値を有する(AND演算の結果はFALSE)画素位置を表す。この斜線を引いた四角で表される画素位置は、画素線Aと画素線Cとの間の相違部分である。また、線diffにおいて、斜線を引いた四角が配置されていない画素位置では、画素線A上の画素と画素線C上の画素とが同じ値を有する(AND演算の結果はTRUE)。   Referring to FIG. 5, the line diff indicates the processing in step S54 by the NG area determination unit 1640 for the pixel line A of the original image in the example of FIG. 3 and the pixel line C of the enlarged result image in the example of FIG. An example of the result of performing is shown. In the line diff in FIG. 5, the hatched squares have different values for the pixel on the pixel line A and the pixel on the pixel line C corresponding to the position of this pixel (AND operation). The result is FALSE) representing the pixel position. The pixel position represented by the hatched square is a difference between the pixel line A and the pixel line C. Further, in the line diff, at the pixel position where the hatched square is not arranged, the pixel on the pixel line A and the pixel on the pixel line C have the same value (the result of the AND operation is TRUE).

図4の説明に戻り、原画像の画素線と拡大結果画像の画素線との間の相違部分を求めた後、ステップS56で、NGエリア判定部1640は、拡大結果画像の画素線を同色の画素が連続する部分に分割する。例えば、図5の例の画素線Cは、c0,c1,c2,c3,c4に分割される。部分c1,c3は、黒画素が連続する部分であり、部分c0,c2,c4は、白画素が連続する部分である。   Returning to the description of FIG. 4, after obtaining the difference between the pixel line of the original image and the pixel line of the enlarged result image, in step S56, the NG area determination unit 1640 sets the pixel line of the enlarged result image to the same color. The pixel is divided into continuous portions. For example, the pixel line C in the example of FIG. 5 is divided into c0, c1, c2, c3, and c4. The portions c1 and c3 are portions where black pixels are continuous, and the portions c0, c2 and c4 are portions where white pixels are continuous.

ステップS58では、NGエリア判定部1640は、ステップS56で分割した部分のうちの1つを選択する。   In step S58, the NG area determination unit 1640 selects one of the parts divided in step S56.

次にステップS60で、NGエリア判定部1640は、ステップS58で選択した分割部分に、原画像の画素線と拡大結果画像の画素線との間の相違部分が含まれるか否かを判定する。相違部分が含まれる場合、処理はステップS62に進み、相違部分が含まれない場合、処理はステップS64に進む。例えば、図5の画素線Cの部分c0がステップS58で選択された場合、原画像の画素線Aと拡大結果画像の画素線Cとの間の相違を表す線diffにおいて部分c0に対応する部分は、相違部分(斜線を引いた四角)を含まないので、ステップS60の判定の結果、ステップS64に進む。また例えば、図5の画素線Cの部分c1がステップS58で選択された場合、線diffにおいて部分c1に対応する部分は、相違部分を含むので、ステップS60の判定の結果、ステップS62に進む。   Next, in step S60, the NG area determining unit 1640 determines whether or not the divided portion selected in step S58 includes a different portion between the pixel line of the original image and the pixel line of the enlarged result image. If a different part is included, the process proceeds to step S62. If a different part is not included, the process proceeds to step S64. For example, when the part c0 of the pixel line C in FIG. 5 is selected in step S58, the part corresponding to the part c0 in the line diff representing the difference between the pixel line A of the original image and the pixel line C of the enlarged image. Does not include a different portion (square with hatched lines), the process proceeds to step S64 as a result of the determination in step S60. Further, for example, when the part c1 of the pixel line C in FIG. 5 is selected in step S58, the part corresponding to the part c1 in the line diff includes a different part, so the process proceeds to step S62 as a result of the determination in step S60.

ステップS62で、NGエリア判定部1640は、縮小NGマスクにおいて原画像の画素線に対応する画素線について、処理対象の分割部分(ステップS58で選択)に対応する部分に含まれる少なくとも一部の画素のNGマスク値をONに設定する。NGエリア判定部1640は、例えば、縮小NGマスクの画素線において処理対象の分割部分に対応する部分に含まれる画素のうち、ステップS60で存在が確認された相違部分の画素位置に対応する位置に配置される画素と、この画素から所定の範囲内の位置に配置される画素と、についてNGマスク値をONに設定する。図5を参照し、画素線NGは、縮小NGマスクにおいて原画像の画素線Aに対応する画素線である。画素線NGにおいて、拡大結果画像の画素線Cの分割部分c1に対応する部分に含まれる全画素のNGマスク値がONに設定され、画素線Cの分割部分c2に対応する部分に含まれる画素のうち、相違部分に対応する位置及びその左隣の画素のNGマスク値がONに設定されている。このようにNGマスク値をONに設定された画素からなる領域がNGエリアであり、縮小部160の縮小処理(図2のステップS3)によって情報欠落が生じると判定された領域である。   In step S62, the NG area determination unit 1640 at least part of the pixels included in the portion corresponding to the division portion to be processed (selected in step S58) for the pixel line corresponding to the pixel line of the original image in the reduced NG mask. The NG mask value of is set to ON. The NG area determination unit 1640, for example, at a position corresponding to a pixel position of a different part that has been confirmed to exist in step S60 among pixels included in a part corresponding to the division part to be processed in the pixel line of the reduced NG mask. The NG mask value is set to ON for the pixel to be arranged and the pixel arranged at a position within a predetermined range from this pixel. Referring to FIG. 5, the pixel line NG is a pixel line corresponding to the pixel line A of the original image in the reduced NG mask. In the pixel line NG, the NG mask value of all the pixels included in the portion corresponding to the divided portion c1 of the pixel line C of the enlarged result image is set to ON, and the pixels included in the portion corresponding to the divided portion c2 of the pixel line C Among these, the position corresponding to the different part and the NG mask value of the pixel adjacent to the left are set to ON. As described above, an area composed of pixels having the NG mask value set to ON is an NG area, and is an area where it is determined that information loss occurs due to the reduction process of the reduction unit 160 (step S3 in FIG. 2).

ステップS62の後、処理はステップS64に進む。   After step S62, the process proceeds to step S64.

ステップS64では、NGエリア判定部1640は、拡大結果画像の画素線のすべての分割部分について処理済みであるか否かを判定する。すべての分割部分について処理済みでない場合は、ステップS58に戻って未処理の分割部分を1つ選択し、ステップS60〜S64の処理を繰り返す。すべての分割部分について処理済みである場合、処理はステップS66に進む。   In step S64, the NG area determination unit 1640 determines whether or not all the divided parts of the pixel lines of the enlarged result image have been processed. If all the divided parts have not been processed, the process returns to step S58 to select one unprocessed divided part and repeat the processes of steps S60 to S64. If all the divided parts have been processed, the process proceeds to step S66.

ステップS66で、NGエリア判定部1640は、原画像の処理方向の画素線のすべてについて処理済みであるか否かを判定する。すべての画素線について処理済みであれば、縮小NGマスク作成処理は終了し、すべての画素線について処理済みでなければ、ステップS51に戻って未処理の画素線が取得され、ステップS52以下の処理が繰り返される。   In step S66, the NG area determination unit 1640 determines whether or not all of the pixel lines in the processing direction of the original image have been processed. If all the pixel lines have been processed, the reduced NG mask creation process ends. If all the pixel lines have not been processed, the process returns to step S51 to obtain an unprocessed pixel line. Is repeated.

図6に、図4に例示する手順の縮小NGマスク作成処理によって生成される縮小NGマスクの例を示す。図6は、図3の例の原画像IMGOに対して図4に例示する手順の処理を行った場合の縮小NGマスクの例である。縮小NGマスクMSK中の斜線を引いた四角で表されるNGエリアa1,a2,a3は、それぞれ、原画像IMGOを縮小部160が縮小した場合に情報欠落が生じると判定された領域を表す。例えば、NGエリアa1,a3は、白色の細線が消失することにより原画像IMGO中の複数の黒色線同士が潰れてしまう領域を表し、NGエリアa2は、黒色の細線が消失する領域を示す。 FIG. 6 shows an example of a reduced NG mask generated by the reduced NG mask creation process of the procedure illustrated in FIG. FIG. 6 is an example of a reduced NG mask when processing of the procedure illustrated in FIG. 4 is performed on the original image IMG O in the example of FIG. The NG areas a1, a2, and a3 represented by the hatched squares in the reduced NG mask MSK represent areas that are determined to lack information when the original image IMG O is reduced by the reduction unit 160, respectively. . For example, the NG areas a1 and a3 represent areas in which a plurality of black lines in the original image IMG O are crushed due to the disappearance of white thin lines, and the NG area a2 represents an area in which the black thin lines disappear. .

図2の説明に戻り、縮小NGマスク作成処理(図2のステップS5、図4)が終了すると、縮小NGマスク作成部164の縮小NGマスク補正部1642は、縮小NGマスクを補正する処理を行う(ステップS7)。後述の変形縮小処理(ステップS8)では、原画像について、縮小NGマスクが表すNGエリアと、NGエリア以外の領域と、を異なる縮小率で処理方向に縮小するため、変形縮小後の画像において処理方向に画素ずれが生じ得る。例えば、図6を参照し、破線l1,l2,l3,l4,l5は、各NGエリアの上下方向(現在の処理方向Mと垂直な方向)の端部に対応する。図6の例の縮小NGマスクMSKに従って変形縮小処理を行うと、各破線l1,l2,l3,l4,l5の上下に位置する画素線に関して、変形縮小後の画像において処理方向に画素ずれが生じる。縮小NGマスク作成部164の縮小NGマスク補正部1642は、縮小NGマスクを補正し、変形縮小処理(ステップS8)によって画素ずれが生じる部分を減少させる。   Returning to the description of FIG. 2, when the reduced NG mask creation processing (step S <b> 5 in FIG. 2, FIG. 4) ends, the reduced NG mask correction unit 1642 of the reduced NG mask creation unit 164 performs processing to correct the reduced NG mask. (Step S7). In the deformation / reduction process (step S8), which will be described later, for the original image, the NG area represented by the reduced NG mask and the area other than the NG area are reduced in the processing direction at different reduction rates. A pixel shift may occur in the direction. For example, referring to FIG. 6, broken lines l1, l2, l3, l4, and l5 correspond to the ends of each NG area in the vertical direction (direction perpendicular to the current processing direction M). When the deformation / reduction processing is performed according to the reduced NG mask MSK in the example of FIG. 6, pixel shift occurs in the processing direction in the image after deformation / reduction with respect to the pixel lines positioned above and below the broken lines l1, l2, l3, l4, and l5. . The reduced NG mask correcting unit 1642 of the reduced NG mask creating unit 164 corrects the reduced NG mask and reduces the portion where the pixel shift occurs due to the deformation / reduction process (step S8).

図7に、縮小NGマスク補正処理の詳細手順の例を示す。図2の縮小NGマスク補正処理(ステップS7)が開始されると、縮小NGマスク補正部1642は、図7の例の手順の処理を開始する。   FIG. 7 shows an example of a detailed procedure of the reduced NG mask correction process. When the reduced NG mask correction process (step S7) of FIG. 2 is started, the reduced NG mask correction unit 1642 starts the process of the procedure of the example of FIG.

図7を参照し、まずステップS70で、縮小NGマスク補正部1642は、縮小NGマスク作成部164が作成した縮小NGマスク中に未処理のNGエリアが存在するか否かを判定する。縮小NGマスク中に未処理のNGエリアが存在すればステップS72に進み、存在しなければ処理を終了する。   Referring to FIG. 7, first, in step S70, the reduced NG mask correcting unit 1642 determines whether or not an unprocessed NG area exists in the reduced NG mask created by the reduced NG mask creating unit 164. If an unprocessed NG area exists in the reduced NG mask, the process proceeds to step S72, and if not, the process ends.

例えば、縮小処理(図2のステップS3)において、いずれの画素線においても情報欠落が生じなかった場合、いずれの画素線についても縮小NGマスク作成処理でNGマスクがONに設定されることはなく(図4のステップS60で常にNO判定)、縮小NGマスクはNGエリアを含まないものとなる。この場合、縮小NGマスク補正処理が開始されてから1回目のステップS70の判定でNOに進み、ステップS72以降の処理は行われない。   For example, in the reduction process (step S3 in FIG. 2), if no information loss occurs in any pixel line, the NG mask is not set to ON in the reduction NG mask creation process for any pixel line. (NO determination is always made in step S60 in FIG. 4), the reduced NG mask does not include an NG area. In this case, after the reduced NG mask correction process is started, the process proceeds to NO in the first determination in step S70, and the processes after step S72 are not performed.

ステップS72では、縮小NGマスク補正部1642は、縮小NGマスクから、未処理のNGエリアを1つ選択する。   In step S72, the reduced NG mask correction unit 1642 selects one unprocessed NG area from the reduced NG mask.

次に、ステップS73で、縮小NGマスク補正部1642は、選択したNGエリアが処理方向と平行な辺を有する長方形になるように補正する。このために縮小NGマスク補正部1642は、例えば、選択したNGエリアを通る処理方向の画素線のうち、縮小NGマスクの外枠(原画像の外枠に対応)を表す長方形の処理方向の2辺のそれぞれに最も近い2本の画素線を検出する。同様に、選択したNGエリアを通る処理方向に対して垂直な方向の画素線のうち、縮小NGマスクの外枠の長方形の処理方向に対して垂直な方向の2辺のそれぞれに最も近い2本の画素線を検出する。そして、検出された4本の画素線が形成する長方形の範囲内に含まれるすべての画素のNGマスク値をONに設定することで、選択したNGエリアを長方形にする。   Next, in step S73, the reduced NG mask correction unit 1642 corrects the selected NG area so as to be a rectangle having sides parallel to the processing direction. For this purpose, the reduced NG mask correction unit 1642, for example, among the pixel lines in the processing direction passing through the selected NG area, 2 in the rectangular processing direction representing the outer frame of the reduced NG mask (corresponding to the outer frame of the original image). Two pixel lines closest to each of the sides are detected. Similarly, of the pixel lines in the direction perpendicular to the processing direction passing through the selected NG area, two lines closest to each of the two sides in the direction perpendicular to the rectangular processing direction of the outer frame of the reduced NG mask This pixel line is detected. Then, the selected NG area is made rectangular by setting the NG mask value of all the pixels included in the rectangular range formed by the four detected pixel lines to ON.

ステップS73の処理の具体例として、図8を参照し、縮小NGマスクMSK0のNGエリアaが処理対象である場合の処理を説明する。縮小NGマスク補正部1642は、NGエリアaを通る処理方向の画素線のうち、縮小NGマスクの外枠の長方形の処理方向の2辺に最も近い2本の画素線u,dと、縮小マスクの外枠の長方形の処理方向に対して垂直な方向の2辺に最も近い2本の画素線l,rと、の4本の画素線を検出する。そして、検出した画素線u,d,l,rによって形成される長方形の範囲内の画素のNGマスク値をONに設定する。ステップS73の処理により、選択したNGエリアをすべて含む最小の長方形がNGエリアとして設定される。   As a specific example of the process in step S73, a process when the NG area a of the reduced NG mask MSK0 is a processing target will be described with reference to FIG. The reduced NG mask correcting unit 1642 includes two pixel lines u and d closest to two sides in the rectangular processing direction of the outer frame of the reduced NG mask among the pixel lines in the processing direction passing through the NG area a, and the reduced mask. The four pixel lines, i.e., the two pixel lines l and r closest to the two sides in the direction perpendicular to the rectangular processing direction of the outer frame are detected. Then, the NG mask value of the pixel within the rectangular range formed by the detected pixel lines u, d, l, r is set to ON. By the process of step S73, the smallest rectangle including all the selected NG areas is set as the NG area.

なお、図6の例のNGエリアa1,a2,a3のように、すでに処理方向と平行な辺を有する長方形であるNGエリアが選択された場合はステップS73の処理は省略できる。   Note that when an NG area that is a rectangle having a side parallel to the processing direction has already been selected, such as the NG areas a1, a2, and a3 in the example of FIG. 6, the process of step S73 can be omitted.

ステップS74では、縮小NGマスク補正部1642は、選択されたNGエリアを表す長方形の上端の辺を含む画素線の1つ上の画素線において、NGマスク値がONに設定されている画素が含まれているか否かを判定する。なお、ここで、「上端の辺」は、NGエリアを表す長方形の処理方向の2辺のうちの1辺であり、上端の辺の「1つ上の画素線」は、上端の辺を含む画素線に隣り合う2本の処理方向の画素線のうち選択されたNGエリアを通らない画素線である。   In step S74, the reduced NG mask correction unit 1642 includes pixels whose NG mask value is set to ON in the pixel line immediately above the pixel line including the upper edge of the rectangle representing the selected NG area. It is determined whether or not. Here, the “upper edge” is one of the two sides in the processing direction of the rectangle representing the NG area, and the “upper pixel line” on the upper edge includes the upper edge. The pixel line that does not pass through the selected NG area among the two pixel lines in the processing direction adjacent to the pixel line.

NGエリアの上端の辺を含む画素線の1つ上の画素線にNGマスク値がONに設定されている画素が含まれていれば、ステップS74からステップS76に進み、当該1つ上の画素線において、選択されたNGエリアの位置に対応する画素のNGマスク値をONに設定する。すると、この画素線は、選択されたNGエリアの新たな上端の辺を含む画素線となる。その後、ステップS74の判定でNGエリアの上端の辺を含む画素線の1つ上の画素線がNGマスク値ONの画素を含まないと判定されるまで、ステップS74,S76の処理が繰り返される。ステップS74でNO判定されると、処理はステップS78に進む。   If the pixel line that is one pixel above the pixel line that includes the upper edge of the NG area includes a pixel for which the NG mask value is set to ON, the process proceeds from step S74 to step S76, and the pixel that is one level higher. In the line, the NG mask value of the pixel corresponding to the position of the selected NG area is set to ON. Then, this pixel line becomes a pixel line including a new upper edge of the selected NG area. Thereafter, the processes in steps S74 and S76 are repeated until it is determined in step S74 that the pixel line immediately above the pixel line including the upper edge of the NG area does not include a pixel with the NG mask value ON. If NO is determined in step S74, the process proceeds to step S78.

例えば、図6の例の縮小NGマスクMSKのNGエリアa1がステップS72で選択された場合、NGエリアa1の上端の辺を含む画素線の1つ上の画素線には、NGマスク値がONに設定されている画素は存在しない。よって、ステップS74の判定でNOに進み、ステップS78の判定が行われる。   For example, when the NG area a1 of the reduced NG mask MSK in the example of FIG. 6 is selected in step S72, the NG mask value is ON for the pixel line immediately above the pixel line including the upper edge of the NG area a1. There is no pixel set to. Therefore, the determination in step S74 proceeds to NO, and the determination in step S78 is performed.

また例えば、図6の例のNGエリアa3がステップS72で選択された場合、NGエリアa3の上端を含む画素線の1つ上の画素線は、NGエリアa1,a2を通るため、NGマスク値ONの画素を含む。よって、ステップS74の判定でYESに進み、ステップS76で、NGエリアa3の上端の辺を含む画素線の1つ上の画素線において、NGエリアa3の位置に対応する画素のNGマスク値がONに設定され、この画素線がNGエリアa3の新たな上端の辺を含む画素線となる。そして、ステップS74,S76の処理が繰り返されてNGエリアa3の上端の辺が破線l1の位置に達すると、ステップS74でNO判定されてステップS78に進む。   Further, for example, when the NG area a3 in the example of FIG. 6 is selected in step S72, the pixel line one pixel above the pixel line including the upper end of the NG area a3 passes through the NG areas a1 and a2, and therefore the NG mask value. Includes ON pixels. Therefore, the determination in step S74 proceeds to YES, and in step S76, the NG mask value of the pixel corresponding to the position of the NG area a3 is turned ON in the pixel line immediately above the pixel line including the upper edge of the NG area a3. And this pixel line becomes a pixel line including a new upper edge of the NG area a3. Then, when the processes of steps S74 and S76 are repeated and the upper edge of the NG area a3 reaches the position of the broken line l1, NO is determined in step S74 and the process proceeds to step S78.

ステップS78では、ステップS72で選択されたNGエリアの下端の辺を含む画素線の1つ下の画素線において、NGマスク値がONに設定されている画素が含まれるか否かを判定する。なお、「下端の辺」は、選択されたNGエリアを表す長方形において上述の「上端の辺」と平行な他方の辺であり、下端の辺の「1つ下の画素線」は、下端の辺に隣り合う処理方向の2本の画素線のうち、選択されたNGエリアを通らない画素線である。下端の辺を含む画素線の1つ下の画素線にNGマスク値ONの画素が含まれていれば、ステップS78からステップS80に進み、当該画素線において、選択されたNGエリアの位置に対応する画素のNGマスク値をONに設定する。この画素線が選択されたNGエリアの新たな下端の辺を含む画素線となる。   In step S78, it is determined whether the pixel line immediately below the pixel line including the lower edge of the NG area selected in step S72 includes a pixel whose NG mask value is set to ON. Note that the “lower edge” is the other edge parallel to the above “upper edge” in the rectangle representing the selected NG area, and the “lower pixel line” of the lower edge is the lower edge. Of the two pixel lines in the processing direction adjacent to the side, the pixel line does not pass through the selected NG area. If the pixel line immediately below the pixel line including the lower edge includes an NG mask value ON pixel, the process proceeds from step S78 to step S80, and the pixel line corresponds to the position of the selected NG area. The NG mask value of the pixel to be set is set to ON. This pixel line becomes a pixel line including a new lower edge of the selected NG area.

例えば、図6の例のNGエリアa1がステップS72で選択された場合、NGエリアa1の下端の辺に相当する画素線の1つ下の画素線は、NGエリアa3を通るので、NGマスク値がONに設定されている画素を含む。この場合、ステップS78からステップS80へ進む。   For example, when the NG area a1 in the example of FIG. 6 is selected in step S72, the pixel line immediately below the pixel line corresponding to the lower edge of the NG area a1 passes through the NG area a3. Includes pixels that are set to ON. In this case, the process proceeds from step S78 to step S80.

ステップS80の後、ステップS78の判定でNGエリアの下端の辺に相当する画素線の1つ下の画素線がNGマスクONの画素を含まないと判定されるまで、ステップS78,S80の処理を繰り返し、ステップS78でNO判定されると、処理はステップS70に戻る。   After step S80, the processes in steps S78 and S80 are performed until it is determined in step S78 that the pixel line immediately below the pixel line corresponding to the lower edge of the NG area does not include an NG mask ON pixel. If the determination is NO in step S78, the process returns to step S70.

図7に例示する手順の縮小NGマスク補正処理の結果、例えば、図9に示す補正縮小NGマスクMSK´が生成される。図9は、図6の例の縮小NGマスクMSKに対して、図7の例の縮小NGマスク補正処理を行った場合の補正縮小NGマスクの例である。図9を参照し、補正後の縮小NGマスクMSK´に含まれる各NGエリアa1´,a2´,a3´は、主走査方向Mに対して垂直な方向に同一の長さを有し、かつ、それぞれの上端の画素線及び下端の画素線が1直線上(それぞれ、破線l1,l5)に位置する。図9の例の補正縮小NGマスクMSK´によると、後述の変形縮小処理(図2のステップS8)において、各破線l1,l5の上下の画素線については主走査方向Mに画素ずれが生じ得るが、各破線l2,l3,l4の上下の画素線については画素ずれが生じることはない。   As a result of the reduced NG mask correction process of the procedure illustrated in FIG. 7, for example, a corrected reduced NG mask MSK ′ shown in FIG. 9 is generated. FIG. 9 is an example of a corrected reduced NG mask when the reduced NG mask correction process of the example of FIG. 7 is performed on the reduced NG mask MSK of the example of FIG. Referring to FIG. 9, each of the NG areas a1 ′, a2 ′, a3 ′ included in the corrected reduced NG mask MSK ′ has the same length in the direction perpendicular to the main scanning direction M, and The uppermost pixel line and the lowermost pixel line are positioned on one straight line (broken lines 11 and 15 respectively). According to the correction reduction NG mask MSK ′ in the example of FIG. 9, pixel displacement in the main scanning direction M may occur for the pixel lines above and below the broken lines 11 and 15 in the deformation reduction process (step S <b> 8 in FIG. 2) described later. However, pixel shift does not occur in the pixel lines above and below the broken lines l2, l3, and l4.

図2の説明に戻り、縮小NGマスク補正処理(ステップS7、図7)が終了すると、ステップS8で、変形縮小部166は、補正縮小NGマスクに従って原画像を縮小する。変形縮小部166は、例えば、補正縮小NGマスクが表すNGエリアについては、現在の処理方向に縮小率1.0で縮小し(つまり、縮小しない)、NGエリア以外の領域については、処理方向に1/f倍に縮小する。   Returning to the description of FIG. 2, when the reduced NG mask correction process (step S7, FIG. 7) ends, the deformation / reduction unit 166 reduces the original image according to the corrected reduced NG mask in step S8. For example, the deformation / reduction unit 166 reduces (that is, does not reduce) the NG area represented by the corrected reduction NG mask in the current processing direction with a reduction ratio of 1.0 (in other words, does not reduce the area). Reduce to 1 / f times.

以下、図10及び図11を参照し、変形縮小部166が行う変形縮小処理の例を説明する。図10を参照し、原画像IMGO及び補正縮小NGマスクMSK´は、それぞれ、図3の原画像IMGO及び図9の補正縮小NGマスクMSK´と同様である。変形縮小部166は、原画像IMGOの主走査方向Mの各画素線について、この画素線に対応する補正縮小NGマスクMSK´の画素線に含まれる各画素のNGマスク値を参照して変形縮小処理を行う。図10では、この変形縮小後の画像IMGMを原画像IMGOの下方に示す。図10に示す変形縮小後画像IMGM中、一点鎖線で囲んだ領域は、それぞれ、補正縮小NGマスクMSK´中の各NGエリアに対応する。また、図10では、原画像IMGOと変形縮小後画像IMGMとの間に、原画像IMGO中の画素線A、補正縮小NGマスクMSK´中で画素線Aに対応する画素線E、及び、変形縮小後画像IMGM中で画素線Aに対応する画素線Fを示す。 Hereinafter, an example of the deformation reduction process performed by the deformation reduction unit 166 will be described with reference to FIGS. 10 and 11. Referring to FIG. 10, the original image IMG O and the corrected reduced NG mask MSK ′ are the same as the original image IMG O in FIG. 3 and the corrected reduced NG mask MSK ′ in FIG. 9, respectively. The deformation reduction unit 166 deforms each pixel line in the main scanning direction M of the original image IMG O with reference to the NG mask value of each pixel included in the pixel line of the correction reduction NG mask MSK ′ corresponding to this pixel line. Perform reduction processing. In FIG. 10, the image IMG M after this deformation / reduction is shown below the original image IMG O. In the post-deformation / reduction image IMG M shown in FIG. 10, the regions surrounded by the alternate long and short dash line correspond to the NG areas in the correction reduction NG mask MSK ′. In FIG. 10, the pixel line A in the original image IMG O and the pixel line E corresponding to the pixel line A in the corrected reduced NG mask MSK ′ between the original image IMG O and the deformed and reduced image IMG M In addition, a pixel line F corresponding to the pixel line A in the deformed / reduced image IMG M is shown.

以下、原画像IMGOの画素線Aに対して変形縮小処理を行う場合を例にとって説明する。変形縮小部166は、まず、画素線Aに対応する補正縮小NGマスクMSK´の画素線Eを取得する。そして、画素線EにおいてNGマスク値がONに設定されている部分を検出し、このNGマスク値ONの部分に対応する画素線Aの部分を検出する。画素線Eは、NGエリアa1´,a2´,a3´を通るため、画素線E上で各NGエリアa1´,a2´,a3´に含まれる部分が検出される。画素線E上で検出された各NGエリアa1´,a2´,a3´の部分に対応する画素線Aの部分として、それぞれ、長さL2,L4,L6の部分が検出される。次に、変形縮小部166は、画素線Aについて、NGエリアに対応する部分(長さL2,L4,L6)は縮小率1.0で、NGエリアに対応する部分以外の部分(長さL1,L3,L5,L7)は縮小率1/fで主走査方向に縮小する処理を行う。ここで、長さL1,L3,L5,L7の各部分については、縮小部160が縮小処理(図2のステップS3)で用いた方法と同じ方法で縮小する。画素線Aを変形縮小した結果の画素線Fにおいて、画素線Aの長さL1,L3,L5,L7の各部分に対応する部分の長さは、それぞれ、L1/f,L3/f,L5/f,L7/fである。画素線Fにおいて、画素線Aの長さL2,L4,L6の各部分に対応する部分の長さは、それぞれ、L2,L4,L6のままである。 Hereinafter, a case where the deformation reduction process for the pixel lines A of the original image IMG O will be described as an example. First, the deformation reduction unit 166 acquires the pixel line E of the correction reduction NG mask MSK ′ corresponding to the pixel line A. Then, a part of the pixel line E where the NG mask value is set to ON is detected, and a part of the pixel line A corresponding to the part of the NG mask value ON is detected. Since the pixel line E passes through the NG areas a1 ′, a2 ′, and a3 ′, portions included in the NG areas a1 ′, a2 ′, and a3 ′ on the pixel line E are detected. As the portions of the pixel line A corresponding to the portions of the NG areas a1 ′, a2 ′, and a3 ′ detected on the pixel line E, portions of lengths L 2 , L 4 , and L 6 are detected, respectively. Next, for the pixel line A, the deformation / reduction unit 166 has a reduction ratio of 1.0 for portions corresponding to the NG area (lengths L 2 , L 4 , L 6 ), and a portion other than the portion corresponding to the NG area ( The lengths L 1 , L 3 , L 5 , L 7 ) are reduced in the main scanning direction at a reduction ratio of 1 / f. Here, the lengths L 1 , L 3 , L 5 , and L 7 are reduced by the same method as the method used by the reduction unit 160 in the reduction process (step S3 in FIG. 2). In the pixel line F obtained by deforming and reducing the pixel line A, the lengths of the portions corresponding to the lengths L 1 , L 3 , L 5 and L 7 of the pixel line A are L 1 / f, L 3 / f, L 5 / f, and L 7 / f. In the pixel line F, the lengths of the portions corresponding to the lengths L 2 , L 4 and L 6 of the pixel line A remain as L 2 , L 4 and L 6 , respectively.

図11に、画素線Aを例に以上で説明した変形縮小処理を原画像IMGO中の全画素線のそれぞれについて行った結果の例を示す。図11を参照すると、原画像IMGOは、補正縮小NGマスクMSK´が表すNGエリア(一点鎖線で囲んだ領域)を含むか否かによって、一辺の長さが原画像IMGOの主走査方向の幅WOである長方形の領域(エリア1,エリア2,エリア3)に分割される。エリア1,エリア3は、NGエリアを含まず、エリア2は、NGエリアを含む。原画像の各画素線について上述の変形縮小処理を行った結果の各エリア1、エリア2、エリア3の幅をそれぞれ、W1,W2,W3とする。エリア1及びエリア3は、NGエリアを含まないため、全体として主走査方向に1/f倍に縮小され、W1=W3=WO/f=(L1+L2+L3+L4+L5+L6+L7)/fとなる。NGエリアを含むエリア2については、図10を参照して説明したように、縮小されない部分(L2,L4,L6)と1/f倍に縮小される部分(L1,L3,L5,L7)とを含むため、W2=L2+L4+L6+(L1+L3+L5+L7)/fとなる。よって、W1=W3<W2である。このままでは、W1又はW3とW2との間の差分に該当する領域(図11の破線で表す領域)には画素が存在しない。これらの領域については、例えば、背景色(この例では白色)の画素で補完する。あるいは、これらの領域に対応する画素線中の画素値の平均値を有する画素で補完してもよい。このように画素の補完処理を行うことで、幅W2を有する変形縮小後画像IMGM(図10参照)が生成される。 11 shows an example of the results was performed deformation reduction processes described above the pixel lines A Examples in each of all the lines of pixels in the original image IMG O. Referring to FIG. 11, the original image IMG O, depending whether including NG area representing the correction reduction NG mask MSK' (region surrounded by a chain line), the length of one side in the main scanning direction of the original image IMG O Are divided into rectangular areas (area 1, area 2, area 3) having a width W O of the first and second areas. Area 1 and area 3 do not include an NG area, and area 2 includes an NG area. The widths of areas 1, 2, and 3 as a result of performing the above-described deformation / reduction processing for each pixel line of the original image are W 1 , W 2 , and W 3 , respectively. Since area 1 and area 3 do not include the NG area, the area is reduced to 1 / f times in the main scanning direction as a whole, and W 1 = W 3 = W O / f = (L 1 + L 2 + L 3 + L 4 + L 5) + L 6 + L 7 ) / f. For the area 2 including the NG area, as described with reference to FIG. 10, the portion (L 2 , L 4 , L 6 ) that is not reduced and the portion (L 1 , L 3 , L 5 , L 7 ) and W 2 = L 2 + L 4 + L 6 + (L 1 + L 3 + L 5 + L 7 ) / f. Therefore, W 1 = W 3 <W 2 . In this state, there is no pixel in the region corresponding to the difference between W1 or W3 and W2 (the region indicated by the broken line in FIG. 11). These regions are complemented with, for example, pixels of the background color (white in this example). Or you may complement by the pixel which has the average value of the pixel value in the pixel line corresponding to these area | regions. By performing pixel complementation processing in this way, a post-transformation reduced image IMG M (see FIG. 10) having a width W 2 is generated.

以上、変形縮小部166による変形縮小処理(図2のステップS8)の例を説明した。この例の変形縮小処理では、縮小処理(ステップS3)で情報欠落が生じた領域(NGエリア)については縮小せず、縮小処理で情報欠落が生じなかった領域(NGエリア以外の領域)については、当該縮小処理で用いられた方法及び縮小率と同じ方法及び縮小率を用いて縮小する。したがって、この例の変形縮小処理では、情報欠落は発生しない。   In the above, the example of the deformation | transformation reduction process (step S8 of FIG. 2) by the deformation | transformation reduction part 166 was demonstrated. In the deformation / reduction process of this example, the area (NG area) in which information loss has occurred in the reduction process (step S3) is not reduced, and the area in which no information loss has occurred in the reduction process (area other than the NG area) Then, reduction is performed using the same method and reduction ratio as those used in the reduction processing. Therefore, no information is lost in the deformation reduction process of this example.

図2の説明に戻り、変形縮小処理(ステップS8)が終了すると、副走査方向について処理済みであるか否かを判定する(ステップS9)。処理済みでなければ、処理方向を副走査方向に設定し(ステップS10)、ステップS3以降の処理を行う。副走査方向について処理済みであれば、図2の例の手順の処理は終了する。   Returning to the description of FIG. 2, when the deformation / reduction process (step S8) is completed, it is determined whether or not the process has been completed in the sub-scanning direction (step S9). If not processed, the processing direction is set to the sub-scanning direction (step S10), and the processing after step S3 is performed. If the processing has been completed for the sub-scanning direction, the processing of the procedure in the example of FIG. 2 ends.

図12は、他の1つの実施形態の画像処理装置の概略構成の例を示すブロック図である。図12において、図1と同様の構成要素には同様の符号を付し、その詳細な説明を省略する。図12に例示する画像処理装置11の処理部17は、図1の例の画像処理装置10の処理部16の各構成要素に加えて、画像幅調整部168を備える。   FIG. 12 is a block diagram illustrating an example of a schematic configuration of an image processing apparatus according to another embodiment. In FIG. 12, the same components as those in FIG. 1 are denoted by the same reference numerals, and detailed description thereof is omitted. The processing unit 17 of the image processing apparatus 11 illustrated in FIG. 12 includes an image width adjustment unit 168 in addition to the components of the processing unit 16 of the image processing apparatus 10 in the example of FIG.

画像幅調整部168は、変形縮小部166の変形縮小処理で情報欠落が生じない限度において、変形縮小後の画像の幅が目標の幅に近づくように、原画像中の各種の領域の縮小率又は縮小後の幅を決定する処理を行う。   The image width adjustment unit 168 reduces the reduction ratios of various regions in the original image so that the width of the image after deformation / reduction approaches the target width as long as no information is lost in the deformation / reduction processing of the deformation / reduction unit 166. Or the process which determines the width | variety after reduction is performed.

画像幅調整部168は、画像幅算出部1680及び余白調整部1682を含む。画像幅算出部1680は、変形縮小部166による変形縮小を行った結果の画像の幅を算出する。例えば、画像幅算出部1680は、図11の例の幅W1,W2,W3の各値を算出する処理を行う。 The image width adjustment unit 168 includes an image width calculation unit 1680 and a margin adjustment unit 1682. The image width calculation unit 1680 calculates the width of the image as a result of the deformation / reduction performed by the deformation / reduction unit 166. For example, the image width calculation unit 1680 performs a process of calculating each value of the widths W 1 , W 2 , and W 3 in the example of FIG.

余白調整部1682は、原画像中の余白を検出し、検出した余白について、変形縮小処理でNGエリア以外の領域の縮小に用いられる縮小率で縮小した場合よりも小さくなるように、検出した余白が余白の縮小率又は縮小後の幅を決定する処理を行う。   The margin adjustment unit 1682 detects a margin in the original image, and detects the detected margin so that the detected margin is smaller than when the reduction is performed at the reduction ratio used for the reduction of the area other than the NG area in the deformation reduction process. Performs the process of determining the reduction ratio of the margin or the width after reduction.

図13は、図12に例示する画像処理装置11の処理部17が行う処理の手順の例を示すフローチャートである。図13において、図2に例示する手順の処理と同様の処理を行う処理ステップには図2と同様の符号を付す。   FIG. 13 is a flowchart illustrating an example of a procedure of processing performed by the processing unit 17 of the image processing apparatus 11 illustrated in FIG. In FIG. 13, processing steps that perform the same processing as the processing illustrated in FIG. 2 are denoted by the same reference numerals as in FIG. 2.

図13を参照し、まず、処理部17は、原画像を取得し(ステップS1)、処理方向を主走査方向に設定する(ステップS2)。   Referring to FIG. 13, first, the processing unit 17 acquires an original image (step S1), and sets the processing direction to the main scanning direction (step S2).

次に、処理部17は、縮小率1/fを用いて補正縮小NGマスクを作成する(ステップS30)。縮小率1/fの値は、図2に例示する手順の処理と同様に、ユーザによって指定された値であってよいし、予め設定されて記憶部18に記憶された値であってもよい。ステップS30では、図2から図9を参照して説明したステップS3〜S7の処理と同様の処理によって補正縮小NGマスクが生成される。   Next, the processing unit 17 creates a corrected reduced NG mask using the reduction ratio 1 / f (step S30). The value of the reduction ratio 1 / f may be a value designated by the user as in the process of the procedure illustrated in FIG. 2 or may be a value set in advance and stored in the storage unit 18. . In step S30, a corrected reduced NG mask is generated by a process similar to the process of steps S3 to S7 described with reference to FIGS.

ステップS40では、画像幅調整部168の画像幅算出部1680は、ステップS30の処理の結果として生成された補正縮小NGマスクに従って変形縮小部166が原画像を変形縮小した場合の変形縮小後の画像の幅を算出する。ここで、「画像の幅」とは、現在の処理方向の画像の大きさを意味する。画像幅算出部1680は、例えば、次の手順で画像幅を算出する。まず、画像幅算出部1680は、補正縮小NGマスクが表すNGエリアを含むか否かに従って、原画像の幅WOと同じ大きさの一辺を有する長方形の領域に、原画像を分割する。例えば図11の原画像IMGO及び補正縮小NGマスクの場合、原画像IMGOは、エリア1、エリア2、及びエリア3に分割される。次に、分割された領域それぞれから1つの画素線を選択し、補正縮小NGマスクに従って変形縮小処理を行った結果の各画素線の長さを算出する。この各画素線の長さは、分割された領域それぞれの変形縮小後の幅となる。図11の例では、原画像IMGOのエリア1、エリア2、エリア3それぞれの変形縮小後の幅W1,W2,W3が算出される。 In step S40, the image width calculation unit 1680 of the image width adjustment unit 168 displays an image after deformation / reduction when the deformation / reduction unit 166 deforms / reduces the original image according to the corrected reduction / NG mask generated as a result of the process of step S30. The width of is calculated. Here, the “image width” means the size of the image in the current processing direction. The image width calculation unit 1680 calculates the image width by the following procedure, for example. First, the image width calculation unit 1680 divides the original image into rectangular regions having one side having the same size as the width W O of the original image, according to whether or not the NG area represented by the corrected reduced NG mask is included. For example, in the case of the original image IMG O and the corrected reduced NG mask in FIG. 11, the original image IMG O is divided into area 1, area 2, and area 3. Next, one pixel line is selected from each of the divided areas, and the length of each pixel line as a result of performing the deformation / reduction process according to the correction reduction NG mask is calculated. The length of each pixel line is the width after deformation of each divided area. In the example of FIG. 11, the widths W 1 , W 2 , and W 3 after deformation / reduction of the area 1, area 2, and area 3 of the original image IMG O are calculated.

ステップS42では、画像幅調整部168は、画像幅算出部1680がステップS40で求めた幅の最大値が原画像の幅WOの1/f倍以下であるか否かを判定する。図11の例では、ステップS40で算出される幅W1,W2,W3のうち最大値を有する幅W2が原画像の幅WOの1/f倍以下であるか否かを判定する。 In step S42, the image width adjustment unit 168 determines whether or not the maximum value of the width obtained by the image width calculation unit 1680 in step S40 is 1 / f times or less the width W O of the original image. In the example of FIG. 11, it is determined whether or not the width W 2 having the maximum value among the widths W 1 , W 2 , and W 3 calculated in step S40 is equal to or less than 1 / f times the width W O of the original image. To do.

変形縮小後の画像幅の最大値が原画像の幅の1/f倍を超えている場合、画像幅調整処理(ステップS44)に進む。   If the maximum value of the image width after deformation / reduction exceeds 1 / f times the width of the original image, the process proceeds to image width adjustment processing (step S44).

図14は、画像幅調整処理の詳細手順の一例を示すフローチャートである。   FIG. 14 is a flowchart illustrating an example of a detailed procedure of image width adjustment processing.

図14を参照し、まず、余白調整部1682は、変形縮小後の幅が最大となる原画像中の領域を対象エリアとする。例えば、図11の例のエリア2が対象エリアとなる。そして、対象エリアにおいて、補正縮小NGマスクが表すNGエリア以外の領域の中から、処理方向と垂直な方向の対象エリアの辺と同じ長さの一辺を有する長方形の余白を検出する(ステップS440)。ここで、「余白」とは、原画像の背景色の画素のみからなる部分を意味する。また、以下では、図14のステップS440で検出される余白を「縦余白」と呼ぶこともある。   Referring to FIG. 14, first, the margin adjustment unit 1682 sets an area in the original image having the maximum width after deformation and reduction as a target area. For example, area 2 in the example of FIG. 11 is the target area. Then, in the target area, a rectangular blank having one side having the same length as the side of the target area in the direction perpendicular to the processing direction is detected from the areas other than the NG area represented by the correction reduced NG mask (step S440). . Here, the “margin” means a portion composed only of background color pixels of the original image. In the following, the margin detected in step S440 of FIG. 14 may be referred to as “vertical margin”.

図15を参照し、灰色の長方形bl1,bl2,bl3,bl4は、図11の例の原画像IMGOについてステップS440の処理を行った場合に検出される縦余白の例である。縦余白bl1,bl2,bl3,bl4は、それぞれ、エリア2の副走査方向(主走査方向Mに対して垂直な方向)の辺と同じ長さの一辺を有する。 Referring to FIG. 15, gray rectangles bl1, bl2, bl3, and bl4 are examples of vertical margins detected when the process of step S440 is performed on the original image IMG O in the example of FIG. Each of the vertical margins bl1, bl2, bl3, and bl4 has one side having the same length as the side of the area 2 in the sub-scanning direction (direction perpendicular to the main scanning direction M).

再び図14を参照し、縦余白を検出した後、余白調整部1682は、検出した縦余白のそれぞれについて、変形縮小処理の後の幅が元の幅の1/f倍よりも小さくなるように縦余白の幅を調整する(ステップS442)。例えば、補正縮小NGマスクにおいて各縦余白に対応する領域について、変形縮小後の幅が1画素幅となるように変形縮小処理を行うよう指示する情報と関連付ける。あるいは、例えば複数の縦余白を検出した場合であれば、検出した縦余白同士の幅の比を維持した上で、元の縦余白の幅の1/f倍よりも小さい幅になるように変形縮小処理を行うよう指示する情報と、補正縮小NGマスクにおいて各縦余白に対応する領域と、を関連付けてもよい。   Referring to FIG. 14 again, after detecting the vertical margin, the margin adjustment unit 1682 makes the width after the deformation reduction process smaller than 1 / f times the original width for each of the detected vertical margins. The width of the vertical margin is adjusted (step S442). For example, the area corresponding to each vertical margin in the corrected reduction NG mask is associated with information instructing to perform the deformation reduction process so that the width after the deformation reduction becomes one pixel width. Alternatively, for example, if a plurality of vertical margins are detected, the width ratio of the detected vertical margins is maintained, and the width is smaller than 1 / f times the original vertical margin width. Information instructing to perform the reduction process may be associated with an area corresponding to each vertical margin in the corrected reduced NG mask.

次に、ステップS444では、画像幅算出部1680は、ステップS422で調整された変形縮小後の縦余白の幅を用いて、変形縮小後の対象エリアの幅を算出する。例えば、図11のエリア2の例の場合、図15の各縦余白bl1,bl2,bl3,bl4の幅を1画素幅とし、NGエリアに該当する部分の幅をL2,L4,L6のまま、NGエリア及び縦余白のいずれにも該当しない部分の幅を元の幅の1/f倍として、変形縮小後のエリア2の幅を算出する。   Next, in step S444, the image width calculation unit 1680 calculates the width of the target area after deformation / reduction using the width of the vertical margin after deformation / reduction adjusted in step S422. For example, in the case of the area 2 in FIG. 11, the widths of the vertical margins bl1, bl2, bl3, and bl4 in FIG. 15 are set to one pixel width, and the widths of the portions corresponding to the NG area remain L2, L4, and L6. The width of the area 2 after deformation reduction is calculated by setting the width of the portion not corresponding to any of the NG area and the vertical margin as 1 / f times the original width.

次に、ステップS444で算出した対象エリアの幅が原画像の幅WOの1/f以下であるか否かを判定し(ステップS446)、目標の画像幅(WO/f)以下であれば処理を終了し、目標の画像幅(WO/f)を超えていればステップS448へ進む。 Next, it is determined whether or not the width of the target area calculated in step S444 is 1 / f or less of the width W O of the original image (step S446), and if it is less than or equal to the target image width (W O / f). If the target image width (W O / f) is exceeded, the process proceeds to step S448.

ステップS448では、処理部17は、出力部20を介して、縦余白の幅を調整した上で変形縮小処理を行ったとしても変形縮小後の画像の幅が目標の画像幅を超える旨を表す警告情報を出力する。例えば、この警告情報を表示装置(図示しない)に対して出力して表示させることで、縦余白調整済みの変形縮小後の画像幅が目標の画像幅を超える旨をユーザに知らせることができる。   In step S <b> 448, the processing unit 17 represents that the width of the image after deformation / reduction exceeds the target image width even if the deformation / reduction processing is performed after adjusting the width of the vertical margin via the output unit 20. Output warning information. For example, by outputting this warning information to a display device (not shown) and displaying it, it is possible to notify the user that the image width after deformation reduction after vertical margin adjustment exceeds the target image width.

ステップS450では、現在の縮小率1/fよりも大きな縮小率1/(f−α)を用いて、原画像について補正縮小NGマスクを作成する処理を再度実行するか否かを決定する。つまり、縮小部160において現在の縮小率1/fで縮小するよりも緩やかに原画像を縮小して補正縮小NGマスクを作成する処理を行うか否かを決定する。ここで、αの値は、例えば、図13の処理の開始時のfの値をfSTとして、次の式:
1/fST<1/(fST−α)<1.0
を満たすように、0<α<fST−1.0の範囲の定数に予め設定しておく。補正縮小NGマスク作成処理を再度実行することを決定すると、ステップS452でfの値をf−αに設定(つまり、縮小率1/fを1/(f−α)に設定)し、図13のステップS30に戻り、ステップS30以下の処理を再び行う。補正縮小NGマスク作成処理を再度実行しないことを決定すると、画像幅調整処理は終了する。
In step S450, it is determined whether to execute again the process of creating a corrected reduced NG mask for the original image using a reduction ratio 1 / (f−α) larger than the current reduction ratio 1 / f. That is, it is determined whether or not to perform the process of creating the corrected reduction NG mask by reducing the original image more slowly than the reduction unit 160 reduces the current reduction ratio 1 / f. Here, the value of α is, for example, the value at the beginning of the f of the processing of FIG. 13 as f ST, the following formula:
1 / f ST <1 / (f ST −α) <1.0
Is set in advance to a constant in the range of 0 <α <f ST −1.0. If it is decided to execute the correction reduced NG mask generation process again, the value of f is set to f−α (that is, the reduction ratio 1 / f is set to 1 / (f−α)) in step S452, and FIG. Returning to step S30, the processes after step S30 are performed again. When it is determined not to execute the correction / reduction NG mask creation process again, the image width adjustment process ends.

ステップS450の決定は、例えば、ユーザの指示に従って行う。例えば、ステップS448において、上述の警告情報とともに、新たな縮小率1/(f−α)を用いた補正縮小NGマスクの作成処理の実行をユーザが望むか否かを入力するようユーザに促す情報を表示装置に表示させ、ユーザが実行を望む旨を表す入力を受けた場合にステップS450からステップS452に進み、ユーザが実行を望まない旨を表す入力を受けた場合に処理を終了する。あるいは、例えば、ステップS450において、1/(f−α)が所定の値の範囲内あればYESに進み、所定の値の範囲外であればNOに進むようにしてもよい。この値の範囲は、例えば、縮小部160の縮小処理で用いる縮小率として適切な値の範囲0<1/(f−α)<1.0に設定しておく。ユーザが実行を望む旨を表す入力を受けたこと、及び、1/(f−α)の値が所定の範囲内であることの両方の条件が満たされる場合にステップS450でYESに進むようにしてもよい。   The determination in step S450 is performed according to a user instruction, for example. For example, in step S448, information prompting the user to input whether or not the user desires to execute a correction reduced NG mask creation process using a new reduction ratio 1 / (f−α) together with the above-described warning information. Is displayed on the display device, the process proceeds from step S450 to step S452 when the user receives an input indicating that execution is desired, and the process is terminated when the user receives an input indicating that execution is not desired. Alternatively, for example, in step S450, if 1 / (f−α) is within a predetermined value range, the process may proceed to YES, and if it is outside the predetermined value range, the process may proceed to NO. This value range is set to a value range 0 <1 / (f−α) <1.0, which is appropriate as a reduction ratio used in the reduction process of the reduction unit 160, for example. If both the conditions that the user has received an input indicating that execution is desired and the value of 1 / (f−α) is within a predetermined range are satisfied, the process proceeds to YES in step S450. Good.

図13の説明に戻り、ステップS8では、補正縮小NGマスクに従って変形縮小を行う。画像幅調整処理により、補正縮小NGマスクにおいて、縦余白の縮小に関する指示情報が設定されていれば、変形縮小部166は、その指示情報に従って変形縮小後の縦余白の幅を決定する。補正縮小NGマスクの縦余白以外の領域については、NGマスク値のON又はOFFに応じて、図10及び図11を参照して説明した図2のステップS8の変形縮小処理と同様の処理を行う。   Returning to the description of FIG. 13, in step S8, deformation and reduction are performed according to the correction reduction NG mask. If instruction information regarding vertical margin reduction is set in the corrected reduced NG mask by the image width adjustment process, the deformation reduction unit 166 determines the width of the vertical margin after deformation reduction according to the instruction information. For regions other than the vertical margin of the corrected reduced NG mask, processing similar to the deformation reduction processing in step S8 of FIG. 2 described with reference to FIGS. 10 and 11 is performed according to whether the NG mask value is ON or OFF. .

変形縮小処理の後、副走査方向について処理済みでなければ(ステップS9でNO)、処理方向を副走査方向に設定し(ステップS10)て、副走査方向についてステップS30以降の処理を行う。副走査方向について処理済みであれば(ステップS9でYES)、処理は終了する。   If the sub-scanning direction has not been processed after the deformation reduction process (NO in step S9), the processing direction is set to the sub-scanning direction (step S10), and the processes after step S30 are performed in the sub-scanning direction. If the process has been completed for the sub-scanning direction (YES in step S9), the process ends.

以上、図13及び図14に例示する手順の処理によると、変形縮小後の画像は、情報欠落が生じない限度において、図13の処理の開始時に設定されていた縮小率1/fで原画像を縮小した場合の幅に最も近い幅を有するものとなる。例えば、ユーザが指定した縮小率1/fを用いて図13の処理を開始した場合、情報欠落が生じない限度内で、ユーザの希望する画像サイズに最も近いサイズの変形縮小後画像が得られる。また例えば、情報欠落が生じることが確実である縮小率1/fを用いて図13の処理を開始した場合、情報欠落が生じない最小サイズの変形縮小後画像が得られる。   As described above, according to the processing of the procedure illustrated in FIG. 13 and FIG. 14, the image after deformation / reduction is an original image with the reduction ratio 1 / f set at the start of the processing of FIG. It has the width closest to the width when. For example, when the process of FIG. 13 is started using the reduction ratio 1 / f specified by the user, a deformed and reduced image having a size closest to the image size desired by the user can be obtained within a limit where no information is lost. . Further, for example, when the process of FIG. 13 is started using a reduction ratio 1 / f that is sure to cause information loss, a deformed and reduced image having a minimum size that does not cause information loss is obtained.

以下、図14、図16、及び図17を参照し、画像幅調整処理(図13のステップS44)の詳細手順の他の一例を説明する。   Hereinafter, another example of the detailed procedure of the image width adjustment process (step S44 in FIG. 13) will be described with reference to FIGS. 14, 16, and 17. FIG.

本例の画像幅調整処理において、画像幅調整部168は、まず、図14を参照して説明したステップS440〜ステップS448の処理を行う。縦余白の幅の調整後の対象エリアの変形縮小後の幅が目標の幅(WO/f)を超えている場合(ステップS446でNO)、その旨を表す警告情報を出力し(ステップS448)、画像幅調整部168は、図16に例示する手順の処理を開始する。 In the image width adjustment process of this example, the image width adjustment unit 168 first performs the processes of steps S440 to S448 described with reference to FIG. If the width of the target area after the adjustment of the width of the vertical margin exceeds the target width (W O / f) (NO in step S446), warning information indicating that is output (step S448). ), The image width adjustment unit 168 starts the processing of the procedure illustrated in FIG.

図16を参照し、まずステップS460で、目標縮小率1/fTに現在の縮小率1/fの値を代入する。次に、対象エリアに含まれるNGエリアの中から1つのNGエリアを選択し(ステップS462)、選択したNGエリアについて可能縮小率1/fminを決定する(ステップS464)。可能縮小率1/fminは、処理対象の画像について縮小部160の縮小処理を行った場合に情報欠落が生じない縮小率のうち、縮小後の画像の大きさが最小となる縮小率である。 Referring to FIG. 16, first, in step S460, it substitutes the value of the current reduction ratio 1 / f in the target reduction ratio 1 / f T. Next, one NG area is selected from the NG areas included in the target area (step S462), and the possible reduction ratio 1 / fmin is determined for the selected NG area (step S464). The possible reduction ratio 1 / fmin is a reduction ratio at which the size of the image after reduction is the smallest among the reduction ratios in which information loss does not occur when the reduction processing of the reduction unit 160 is performed on the processing target image.

可能縮小率決定処理(ステップS464)が開始されると、画像幅調整部168は、図17に例示する手順の処理を開始する。   When the possible reduction rate determination process (step S464) is started, the image width adjustment unit 168 starts the process of the procedure illustrated in FIG.

図17を参照し、ステップS600で、0<1/(f−α)<1.0であるか否かが判定される。ここで、αの値は、例えば、図14を参照して説明したステップS450,S452の処理におけるαと同様、0<α<fST−1の範囲(fSTは、図13の処理の開始時のfの値)の定数に設定しておく。 Referring to FIG. 17, it is determined in step S600 whether 0 <1 / (f−α) <1.0. Here, the value of α is, for example, in the range of 0 <α <f ST −1 (f ST is the start of the processing of FIG. 13), similar to α in the processing of steps S450 and S452 described with reference to FIG. It is set to a constant of the value of time f).

ステップS600の判定でYESに進むと、ステップS602で、新たなfの値としてf−αが設定される。次に、図16のステップS462で選択されたNGエリアについて、縮小率1/fを用いて、補正縮小NGマスク作成処理(ステップS30)が行われる。ステップS30では、選択されたNGエリアを原画像として、縮小率1/fを用いて、図2から図9を参照して説明したステップS3〜ステップS7の処理を実行することで、選択されたNGエリアの補正縮小NGマスクが作成される。   If YES in step S600, f-α is set as a new value of f in step S602. Next, a corrected reduced NG mask creation process (step S30) is performed using the reduction ratio 1 / f for the NG area selected in step S462 in FIG. In step S30, the selected NG area is used as the original image and the processing of steps S3 to S7 described with reference to FIGS. 2 to 9 is executed using the reduction ratio 1 / f. A corrected reduced NG mask for the NG area is created.

ステップS30の後、選択されたNGエリアについて作成された補正縮小NGマスク中にNGエリアが存在するか否かが判定される(ステップS604)。ステップS604で、補正縮小NGマスク中にNGエリアが存在すると判定されると、処理はステップS600に戻り、ステップS600以下の処理を繰り返す。ステップS604で、補正縮小NGマスク中にNGエリアが存在しないと判定されると、fminの値として現在のfの値を設定し(ステップS606)、可能縮小率1/fminの値が決定され、図17の処理は終了する。   After step S30, it is determined whether or not there is an NG area in the corrected reduced NG mask created for the selected NG area (step S604). If it is determined in step S604 that an NG area exists in the corrected reduced NG mask, the process returns to step S600, and the processes in and after step S600 are repeated. If it is determined in step S604 that there is no NG area in the corrected reduced NG mask, the current f value is set as the fmin value (step S606), and the possible reduction ratio 1 / fmin is determined. The process in FIG. 17 ends.

ステップS30で用いられる縮小率1/fの値は、選択したNGエリアに関する前回の補正縮小NGマスク作成処理に用いられた縮小率の値よりも大きい。したがって、ステップS604では、選択したNGエリアについて、ある縮小率を用いて縮小すると情報欠落が生じる場合に、より緩やかな縮小率で縮小した場合に情報欠落が生じるか否かを判定していると言える。   The value of the reduction ratio 1 / f used in step S30 is larger than the value of the reduction ratio used in the previous correction reduction NG mask creation process for the selected NG area. Therefore, in step S604, it is determined whether or not information loss occurs when the selected NG area is reduced at a more gradual reduction rate when information loss occurs when the selected NG area is reduced using a certain reduction rate. I can say that.

ステップS600,S602,S604を含む処理ループが繰り返されると、1/(f−α)の値が0<1/(f−α)<1.0の範囲外となる場合がある。この場合、ステップS600の判定でNOに進んでfの値として1.0が設定され(ステップS608)、ステップS606に進み、可能縮小率1/fminの値は1.0に決定される。   If the processing loop including steps S600, S602, and S604 is repeated, the value of 1 / (f−α) may fall outside the range of 0 <1 / (f−α) <1.0. In this case, the determination in step S600 proceeds to NO, and 1.0 is set as the value of f (step S608). The process proceeds to step S606, and the value of the possible reduction ratio 1 / fmin is determined to be 1.0.

なお、図13のステップS30で原画像について作成された補正縮小NGマスクにおいて、図17の例の可能縮小率決定処理の対象となったNGエリアについて、決定された可能縮小率1/fminで変形縮小処理を行うことを指示する情報が設定される。   In the corrected reduced NG mask created for the original image in step S30 in FIG. 13, the NG area that is the target of the possible reduction ratio determination process in the example of FIG. 17 is deformed at the determined possible reduction ratio 1 / fmin. Information for instructing to perform reduction processing is set.

図16を再び参照し、可能縮小率決定処理(ステップS464,図17)が終了すると、ステップS466で、画像幅算出部1680は、変形縮小後の対象エリアの幅を算出する。ステップS466では、すでに可能縮小率決定処理を行ったNGエリアについては決定された可能縮小率1/fminで縮小し、可能縮小率決定処理を未だ行っていないNGエリアについては縮小率1.0で縮小して変形縮小を行った場合の対象エリアの幅が算出される。ステップS466では、さらに、図14のステップS442の縦余白調整処理の結果も考慮して対象エリアの幅が算出される。   Referring to FIG. 16 again, when the possible reduction ratio determination process (step S464, FIG. 17) ends, in step S466, the image width calculation unit 1680 calculates the width of the target area after deformation / reduction. In step S466, the NG area that has already been subjected to the possible reduction ratio determination process is reduced at the determined possible reduction ratio 1 / fmin, and the NG area that has not yet been subjected to the possible reduction ratio determination process has a reduction ratio of 1.0. The width of the target area when the image is reduced and deformed / reduced is calculated. In step S466, the width of the target area is further calculated in consideration of the result of the vertical margin adjustment process in step S442 of FIG.

ステップS466で算出した対象エリアの幅が原画像の幅WOの1/fT倍以下であれば、画像幅調整処理は終了し、算出した対象エリアの幅が目標の画像幅WO/fTを越えていれば、ステップS470に進む。ステップS470では、対象エリアに含まれるすべてのNGエリアについて処理済みであるか否かを判定する。未処理のNGエリアが存在すれば、ステップS474に進んでfの値としてfTの値を設定し、ステップS462に戻り、未処理のNGエリアを1つ選択して、ステップS464以下の処理を繰り返す。 If the width of the target area calculated in step S466 is equal to or less than 1 / f T times the width W O of the original image, the image width adjustment process ends, and the calculated width of the target area is the target image width W O / f. If it exceeds T , the process proceeds to step S470. In step S470, it is determined whether all NG areas included in the target area have been processed. If there is NG area untreated, sets the value of f T as the value of f proceeds to step S474, the process returns to step S462, selects one NG area unprocessed, step S464 the following process repeat.

ステップS470で、対象エリアに含まれるすべてのNGエリアについて処理済みであると判定すると、ステップS472で、画像幅調整部168は、出力部20を介して、対象エリア中のすべてのNGエリアを可能な限り縮小したとしても変形縮小後の画像幅が目標の画像幅を超える旨を表す情報を出力し、画像幅調整処理を終了する。   If it is determined in step S470 that all NG areas included in the target area have been processed, in step S472, the image width adjustment unit 168 enables all NG areas in the target area via the output unit 20. Even if the image width is reduced as much as possible, information indicating that the image width after deformation reduction exceeds the target image width is output, and the image width adjustment processing ends.

以上、図14、図16、及び図17を参照して説明した画像幅調整処理の例では、原画像においてNGエリアが存在することから変形縮小後の画像幅が目標画像幅を超える場合に、各NGエリアに関してより大きな縮小率を用いて縮小NGマスクを作成することで、当該NGエリアについて情報欠落が生じない可能縮小率を求める。そして、変形縮小処理(図13のステップS8)では、各NGエリアについて、縮小率1.0を用いる代わりに当該NGエリアの可能縮小率を用いて縮小する。縦余白の幅の調整(図14のステップS442)と各NGエリアの可能縮小率による縮小とを共に行うことで、情報欠落を生じることなく目標の画像幅以下の幅を有する変形縮小後画像が得られる場合がある。   As described above, in the example of the image width adjustment processing described with reference to FIGS. 14, 16, and 17, since the NG area is present in the original image, the image width after deformation / reduction exceeds the target image width, By creating a reduced NG mask using a larger reduction ratio for each NG area, a possible reduction ratio at which no information loss occurs in the NG area is obtained. In the deformation reduction process (step S8 in FIG. 13), each NG area is reduced using the possible reduction ratio of the NG area instead of using the reduction ratio 1.0. By performing both adjustment of the width of the vertical margin (step S442 in FIG. 14) and reduction according to the possible reduction ratio of each NG area, a deformed and reduced image having a width equal to or smaller than the target image width without causing information loss is obtained. May be obtained.

また、以上では、図17の可能縮小率決定処理を画像幅調整処理の手順の一部として説明したが、原画像を処理対象として図17の可能縮小率決定処理を行ってもよい。原画像について図17の可能縮小率決定処理を行うと、原画像の可能縮小率を求めることができる。   In the above description, the possible reduction rate determination process of FIG. 17 has been described as part of the procedure of the image width adjustment process. However, the possible reduction rate determination process of FIG. 17 may be performed on the original image as a processing target. When the possible reduction rate determination process of FIG. 17 is performed on the original image, the possible reduction rate of the original image can be obtained.

また、図12の例の画像処理装置11の処理部17は、原画像の補正縮小NGマスクに含まれる各NGエリアについて、当該NGエリアを原画像として、上述の2つの例の画像幅調整処理のいずれかを含む図13の例の手順の処理を再帰的に実行することもできる。   Further, the processing unit 17 of the image processing apparatus 11 in the example of FIG. 12 performs, for each NG area included in the corrected reduced NG mask of the original image, the image width adjustment processing in the above two examples using the NG area as the original image. The process of the procedure of the example of FIG. 13 including any of the above can also be recursively executed.

以上で説明した各種の実施形態の変形縮小処理の例では、補正縮小NGマスクに従って、原画像中の異なる領域について異なる縮小率で縮小処理が行われる。したがって、上述の各種の例の変形縮小処理では、画像中の線の長さや太さなどが、原画像中の領域によって異なる比率で変換される場合がある。しかしながら、原画像における線と線との間の連結関係及び原画像中の線の存在は変形縮小処理後の画像においても保存される。したがって、例えば電気回路図など、要素同士の連結関係及び線の存在が図面に意味を与える画像に対して上述の各種の例の変形縮小処理を行うと、図面の表す情報の意味を変更することなく画像は縮小される。   In the example of the deformation / reduction process of the various embodiments described above, the reduction process is performed at different reduction ratios for different regions in the original image according to the corrected reduction / NG mask. Therefore, in the above-described various examples of deformation / reduction processing, the length and thickness of lines in an image may be converted at different ratios depending on the area in the original image. However, the connection relationship between lines in the original image and the presence of lines in the original image are also preserved in the image after the deformation / reduction process. Therefore, when the deformation / reduction processing of the above-described various examples is performed on an image in which the connection relationship between elements and the presence of a line give meaning to the drawing, such as an electric circuit diagram, the meaning of the information represented in the drawing is changed. The image is reduced.

以上で説明した実施形態の画像処理装置10,11は、典型的には、汎用のコンピュータにて上述の電子文書処理装置の各部の機能又は処理内容を記述したプログラムを実行することにより実現される。コンピュータは、例えば、ハードウエアとして、図18に示すように、CPU(中央演算装置)60、メモリ(一次記憶)62、各種I/O(入出力)インタフェース64などがバス66を介して接続された回路構成を有する。また、そのバス66に対し、例えばI/Oインタフェース64経由で、キーボードやマウスなどの入力装置68、及び、CRT(Cathode Ray Tube)や液晶ディスプレイなどの表示装置70が接続される。また、バス66には、I/Oインタフェース64を介して、HDD(ハードディスクドライブ)72や、CD、DVD、フラッシュメモリなどの各種規格の可搬型の不揮発性記録媒体を読み取るためのディスクドライブ74が接続される。このようなドライブ72,74は、メモリに対する外部記憶装置として機能する。実施形態の処理内容が記述されたプログラムがCDやDVDなどの記録媒体を経由して、又はネットワーク経由で、HDD72などの固定記憶装置に保存され、コンピュータにインストールされる。固定記憶装置に記憶されたプログラムがメモリ62に読み出されCPU60により実行されることにより、上述の各種の実施形態の処理が実現される。   The image processing apparatuses 10 and 11 according to the embodiments described above are typically realized by executing a program describing functions or processing contents of each unit of the electronic document processing apparatus described above on a general-purpose computer. . In the computer, for example, as shown in FIG. 18, a CPU (central processing unit) 60, a memory (primary storage) 62, various I / O (input / output) interfaces 64, and the like are connected via a bus 66 as hardware. Circuit configuration. An input device 68 such as a keyboard and a mouse and a display device 70 such as a CRT (Cathode Ray Tube) and a liquid crystal display are connected to the bus 66 via, for example, an I / O interface 64. Also, the bus 66 has an HDD (Hard Disk Drive) 72 and a disk drive 74 for reading portable non-volatile recording media of various standards such as a CD, a DVD and a flash memory via an I / O interface 64. Connected. Such drives 72 and 74 function as an external storage device for the memory. The program describing the processing contents of the embodiment is stored in a fixed storage device such as the HDD 72 via a recording medium such as a CD or DVD or via a network, and is installed in a computer. The programs stored in the fixed storage device are read out to the memory 62 and executed by the CPU 60, whereby the processes of the various embodiments described above are realized.

本発明の1つの実施形態の画像処理装置の構成例を示すブロック図である。It is a block diagram which shows the structural example of the image processing apparatus of one Embodiment of this invention. 図1の例の画像処理装置の処理部が行う処理の手順の一例を示すフローチャートである。2 is a flowchart illustrating an example of a procedure of processing performed by a processing unit of the image processing apparatus in the example of FIG. 1. 画像の縮小処理によって生じる情報欠落の様子の一例を示す図である。It is a figure which shows an example of the mode of the information missing produced by the reduction process of an image. 縮小NGマスク作成処理の手順の一例を示すフローチャートである。It is a flowchart which shows an example of the procedure of a reduced NG mask creation process. NGエリアを判定する処理の例を説明するための図である。It is a figure for demonstrating the example of the process which determines a NG area. 原画像に対して作成される縮小NGマスクの一例を示す図である。It is a figure which shows an example of the reduction | restoration NG mask produced with respect to an original image. 縮小NGマスク補正処理の手順の一例を示すフローチャートである。It is a flowchart which shows an example of the procedure of a reduction NG mask correction process. 縮小NGマスク補正処理の手順の一部の例を説明するための図である。It is a figure for demonstrating the example of a part of procedure of a reduction NG mask correction process. 縮小NGマスクを補正した補正縮小NGマスクの一例を示す図である。It is a figure which shows an example of the correction | amendment reduction NG mask which correct | amended the reduction NG mask. 変形縮小処理の例を説明するための図である。It is a figure for demonstrating the example of a deformation | transformation reduction process. 変形縮小処理の例を説明するための図である。It is a figure for demonstrating the example of a deformation | transformation reduction process. 本発明の他の1つの実施形態の画像処理装置の構成例を示すブロック図である。It is a block diagram which shows the structural example of the image processing apparatus of other one Embodiment of this invention. 図12に例示の画像処理装置の処理部が行う処理の手順の一例を示すフローチャートである。13 is a flowchart illustrating an example of a processing procedure performed by a processing unit of the image processing apparatus illustrated in FIG. 12. 画像幅調整処理の手順の一例を示すフローチャートである。It is a flowchart which shows an example of the procedure of an image width adjustment process. 余白の幅を調整する処理の例を説明するための図である。It is a figure for demonstrating the example of the process which adjusts the width | variety of a margin. 画像幅調整処理の手順の他の一例を示すフローチャートである。It is a flowchart which shows another example of the procedure of an image width adjustment process. 可能縮小率決定処理の手順の一例を示すフローチャートである。It is a flowchart which shows an example of the procedure of a possible reduction rate determination process. コンピュータのハードウエア構成の一例を示す図である。It is a figure which shows an example of the hardware constitutions of a computer.

符号の説明Explanation of symbols

10,11 画像処理装置、12 画像入力部、14 ユーザ入力部、16,17 処理部、18 記憶部、20 出力部、62 メモリ、64 インタフェース、66 バス、68 入力装置、70 表示装置、72 HDD、74 ディスクドライブ、160 縮小部、162 拡大部、164 縮小NGマスク作成部、166 変形縮小部、168 画像幅調整部、1640 NGエリア判定部、1642 縮小NGマスク補正部、1680 画像幅算出部、1682 余白調整部。   10, 11 image processing device, 12 image input unit, 14 user input unit, 16, 17 processing unit, 18 storage unit, 20 output unit, 62 memory, 64 interface, 66 bus, 68 input device, 70 display device, 72 HDD 74 disk drive, 160 reduction unit, 162 enlargement unit, 164 reduction NG mask creation unit, 166 deformation reduction unit, 168 image width adjustment unit, 1640 NG area determination unit, 1642 reduction NG mask correction unit, 1680 image width calculation unit, 1682 Margin adjustment unit.

Claims (11)

所定の縮小率で原画像を縮小する縮小部と、
前記縮小部による縮小結果の画像に基づいて取得される情報と、前記原画像に基づいて取得される情報と、を比較することで、前記縮小結果画像において画質の劣化が生じる領域に対応する前記原画像中の領域である画質劣化領域を判定する画質劣化領域判定部と、
前記画質劣化領域と、前記画質劣化領域の他の前記原画像中の領域と、について互いに異なる縮小率を用いて、前記原画像を縮小する変形縮小部と、
を備えることを特徴とする画像処理装置。
A reduction unit that reduces the original image at a predetermined reduction rate;
By comparing information acquired based on the image of the reduction result by the reduction unit and information acquired based on the original image, the image corresponding to a region where image quality degradation occurs in the reduction result image An image quality degradation area determination unit that determines an image quality degradation area that is an area in the original image;
A deformation / reduction unit that reduces the original image using different reduction ratios for the image quality degradation region and the other regions in the original image of the image quality degradation region;
An image processing apparatus comprising:
前記縮小部が用いた前記所定の縮小率の逆数を拡大率として用いて前記縮小結果画像を拡大する拡大部をさらに備え、
前記画質劣化領域判定部は、前記拡大部による拡大結果の画像に含まれる各画素の値と、前記拡大結果画像中の当該画素の位置に対応する前記原画像中の位置に配置される画素の値と、を比較することで、前記画質劣化領域を判定することを特徴とする請求項1に記載の画像処理装置。
An enlargement unit for enlarging the reduction result image using an inverse of the predetermined reduction rate used by the reduction unit as an enlargement rate;
The image quality degradation region determination unit includes a value of each pixel included in an image as a result of enlargement by the enlargement unit and a pixel disposed at a position in the original image corresponding to the position of the pixel in the enlargement result image. The image processing apparatus according to claim 1, wherein the image quality degradation region is determined by comparing the value.
前記変形縮小部は、前記画質劣化領域については縮小せず、前記画質劣化領域の他の前記原画像中の領域については前記縮小部が用いた前記所定の縮小率で縮小することを特徴とする請求項1又は2に記載の画像処理装置。   The deformation / reduction unit does not reduce the image quality deterioration region, and reduces other regions in the original image other than the image quality deterioration region at the predetermined reduction ratio used by the reduction unit. The image processing apparatus according to claim 1. 前記画質劣化領域判定部が判定した領域の前記原画像中の位置に基づいて当該領域を補正し、補正後の領域を前記画質劣化領域とする画質劣化領域補正部、をさらに備えることを特徴とする請求項1から3のいずれか1項に記載の画像処理装置。   An image quality deterioration region correction unit that corrects the region based on the position of the region determined by the image quality deterioration region determination unit in the original image and sets the corrected region as the image quality deterioration region; The image processing apparatus according to any one of claims 1 to 3. 前記原画像の1つの走査方向を処理方向として前記画像処理装置が備える各部の処理を行った後、前記走査方向に対して垂直な方向を処理方向として前記画像処理装置が備える各部の処理を行うことを特徴とする請求項1から4のいずれか1項に記載の画像処理装置。   After performing processing of each unit included in the image processing apparatus with one scanning direction of the original image as a processing direction, processing of each unit included in the image processing apparatus is performed with a direction perpendicular to the scanning direction as a processing direction. The image processing apparatus according to claim 1, wherein the image processing apparatus is an image processing apparatus. 前記画質劣化領域の他の前記原画像中の領域から、前記処理方向と平行な辺を有する長方形の領域であって前記原画像の背景色を表す画素のみを含む領域である余白を検出し、検出した余白について前記所定の縮小率で縮小した場合の大きさよりも小さな大きさに縮小することを前記変形縮小部に指示する余白調整部、
をさらに備え、
前記変形縮小部は、さらに、前記余白調整部の指示に従って前記原画像を縮小することを特徴とする請求項5に記載の画像処理装置。
From a region in the original image other than the image quality degradation region, a margin that is a rectangular region having sides parallel to the processing direction and includes only pixels representing the background color of the original image is detected, A margin adjustment unit that instructs the deformation / reduction unit to reduce the size of the detected margin to a size smaller than the size when reduced at the predetermined reduction rate;
Further comprising
The image processing apparatus according to claim 5, wherein the deformation reduction unit further reduces the original image according to an instruction from the margin adjustment unit.
前記変形縮小部による縮小の後の画像の大きさを求め、求めた大きさが前記縮小結果画像の大きさよりも大きい場合に、前記原画像について、前記縮小部が用いた前記所定の縮小率と異なる縮小率を用いて、少なくとも前記縮小部、前記画質劣化領域判定部、及び前記余白調整部の処理を実行することを特徴とする請求項6に記載の画像処理装置。   The size of the image after reduction by the deformation reduction unit is obtained, and when the obtained size is larger than the size of the reduction result image, the predetermined reduction rate used by the reduction unit for the original image The image processing apparatus according to claim 6, wherein processing of at least the reduction unit, the image quality degradation region determination unit, and the margin adjustment unit is executed using different reduction ratios. 前記変形縮小部による縮小の後の画像の大きさを求め、求めた大きさが前記縮小結果画像の大きさよりも大きい場合に、前記画質劣化領域のそれぞれを原画像として、前記縮小部が用いた前記所定の縮小率と異なる縮小率を用いて、少なくとも前記縮小部及び前記画質劣化領域判定部の処理を実行することを特徴とする請求項1から4のいずれか1項に記載の画像処理装置。   The size of the image after reduction by the deformation reduction unit is obtained, and when the obtained size is larger than the size of the reduction result image, each of the image quality degradation regions is used as an original image by the reduction unit. 5. The image processing apparatus according to claim 1, wherein at least processing of the reduction unit and the image quality degradation area determination unit is executed using a reduction rate different from the predetermined reduction rate. 6. . 処理対象として指定された画像を原画像として、複数の異なる縮小率を用いて少なくとも前記縮小部及び前記画質劣化領域判定部の処理を繰り返し実行し、前記画質劣化領域判定部において前記画質劣化領域が存在しないと判定された場合に前記縮小部で用いられた縮小率のうち、縮小後の画像の大きさが最小となる縮小率を、前記指定された画像の可能縮小率として決定する可能縮小率決定部、をさらに備えることを特徴とする請求項1から4のいずれか1項に記載の画像処理装置。   Using the image designated as the processing target as an original image, the processing of at least the reduction unit and the image quality degradation area determination unit is repeatedly performed using a plurality of different reduction ratios, and the image quality degradation area is determined by the image quality degradation area determination unit. A possible reduction ratio that determines, as a possible reduction ratio of the designated image, a reduction ratio that minimizes the size of the image after reduction among the reduction ratios used by the reduction unit when it is determined that the image does not exist. The image processing apparatus according to claim 1, further comprising a determination unit. 前記画質劣化領域のそれぞれを処理対象として指定して前記可能縮小率決定部の処理を実行し、
前記変形縮小部は、前記画質劣化領域のそれぞれについて前記可能縮小率決定部が決定した可能縮小率を用いて前記画質劣化領域を縮小する、ことを特徴とする請求項9に記載の画像処理装置。
Specifying each of the image quality degradation regions as a processing target and executing the processing of the possible reduction rate determination unit,
The image processing device according to claim 9, wherein the deformation reduction unit reduces the image quality degradation region using the possible reduction rate determined by the possible reduction rate determination unit for each of the image quality degradation regions. .
所定の縮小率で原画像を縮小する縮小ステップと、
前記縮小ステップによる縮小結果の画像に基づいて取得される情報と、前記原画像に基づいて取得される情報と、を比較することで、前記縮小結果画像において画質の劣化が生じる領域に対応する前記原画像中の領域である画質劣化領域を判定する画質劣化領域判定ステップと、
前記画質劣化領域と、前記画質劣化領域の他の前記原画像中の領域と、について互いに異なる縮小率を用いて、前記原画像を縮小する変形縮小ステップと、
をコンピュータに実行させることを特徴とするプログラム。
A reduction step for reducing the original image at a predetermined reduction rate;
By comparing the information acquired based on the image of the reduction result obtained by the reduction step with the information acquired based on the original image, the image corresponding to the region where the image quality is degraded in the reduction result image. An image quality degradation area determination step for determining an image quality degradation area that is an area in the original image;
A deformation reduction step of reducing the original image using different reduction ratios for the image quality deterioration region and the other regions in the original image of the image quality deterioration region;
A program that causes a computer to execute.
JP2008053759A 2008-03-04 2008-03-04 Image processing apparatus and program Expired - Fee Related JP4968115B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2008053759A JP4968115B2 (en) 2008-03-04 2008-03-04 Image processing apparatus and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2008053759A JP4968115B2 (en) 2008-03-04 2008-03-04 Image processing apparatus and program

Publications (2)

Publication Number Publication Date
JP2009212823A true JP2009212823A (en) 2009-09-17
JP4968115B2 JP4968115B2 (en) 2012-07-04

Family

ID=41185550

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2008053759A Expired - Fee Related JP4968115B2 (en) 2008-03-04 2008-03-04 Image processing apparatus and program

Country Status (1)

Country Link
JP (1) JP4968115B2 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08214150A (en) * 1995-02-06 1996-08-20 Fujitsu Ltd Binary image output device
JP2001001597A (en) * 1999-06-21 2001-01-09 Ricoh Co Ltd Print controller
JP2006345047A (en) * 2005-06-07 2006-12-21 Nec Corp Image processing apparatus, image processing system, and image processing method
JP2007166560A (en) * 2005-12-17 2007-06-28 Fuji Xerox Co Ltd Apparatus, method, and program for image processing and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08214150A (en) * 1995-02-06 1996-08-20 Fujitsu Ltd Binary image output device
JP2001001597A (en) * 1999-06-21 2001-01-09 Ricoh Co Ltd Print controller
JP2006345047A (en) * 2005-06-07 2006-12-21 Nec Corp Image processing apparatus, image processing system, and image processing method
JP2007166560A (en) * 2005-12-17 2007-06-28 Fuji Xerox Co Ltd Apparatus, method, and program for image processing and storage medium

Also Published As

Publication number Publication date
JP4968115B2 (en) 2012-07-04

Similar Documents

Publication Publication Date Title
JP4795929B2 (en) Program, apparatus, and method for determining interpolation method
KR101223865B1 (en) Image processing apparatus and control method of image processing apparatus
US20050162620A1 (en) Image processing apparatus
JP2006094467A (en) Image processor and method, program, and storage medium
JP4524104B2 (en) Apparatus and method for improving reproduction quality of video
JP2011198291A (en) Image processing apparatus, image processing method, and computer program
JP7014158B2 (en) Image processing equipment, image processing method, and program
JP4968115B2 (en) Image processing apparatus and program
JP2010066865A (en) Difference extraction device and difference extraction program
JP2006165828A (en) Gradation correcting device
JP2010239600A (en) Brightness correction program, brightness correction method, and brightness correction device
JP2011186221A (en) Image display apparatus and image display method
JP2008067205A (en) Frame interpolation circuit, frame interpolation method, and display device
JP2007213331A (en) Image processing method, image processor, image processing program and storage medium
JP4318573B2 (en) Luminance data correction apparatus and luminance data correction method
JP2008271259A (en) Image processor, image processing method, image processing program and recording medium which records the program
JP4744593B2 (en) Image processing apparatus, method, and program
JP2008166983A (en) Resolution conversion processing method, image processor, image display device, and program
JP2013077717A (en) Image display apparatus for direct drawing device and program
JP2007074619A (en) Image projection apparatus, image projection method and image projection program
JP4222976B2 (en) Image processing apparatus and image processing method
JP2009147584A (en) Image processor, projector, method and program for processing image
JP4784819B2 (en) Image processing apparatus, image processing method, and image processing program
JP2006054576A (en) Apparatus and method of processing image, program and storage medium
JP2022097021A (en) Imaging device and imaging processing method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20110223

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20111208

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20111213

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20120208

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

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20120319

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

Free format text: PAYMENT UNTIL: 20150413

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Ref document number: 4968115

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

S533 Written request for registration of change of name

Free format text: JAPANESE INTERMEDIATE CODE: R313533

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

LAPS Cancellation because of no payment of annual fees