JP2007265055A - Resolution conversion processing method of binary image - Google Patents

Resolution conversion processing method of binary image Download PDF

Info

Publication number
JP2007265055A
JP2007265055A JP2006089735A JP2006089735A JP2007265055A JP 2007265055 A JP2007265055 A JP 2007265055A JP 2006089735 A JP2006089735 A JP 2006089735A JP 2006089735 A JP2006089735 A JP 2006089735A JP 2007265055 A JP2007265055 A JP 2007265055A
Authority
JP
Japan
Prior art keywords
image
resolution conversion
line
line width
pixel
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2006089735A
Other languages
Japanese (ja)
Inventor
Token Kin
東憲 金
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.)
NEC Engineering Ltd
Original Assignee
NEC Engineering 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 NEC Engineering Ltd filed Critical NEC Engineering Ltd
Priority to JP2006089735A priority Critical patent/JP2007265055A/en
Publication of JP2007265055A publication Critical patent/JP2007265055A/en
Pending legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To obtain an image having high image quality in a short time when converting resolution of a binary line drawing image or the like such as a character image. <P>SOLUTION: A ratio of a main scan pixel number of the image before and after the resolution conversion is calculated, an interpolation bit wherein the main scan pixel number of the image after the resolution conversion is increased as compared to the main scan pixel number of the image before the conversion, or a thinning bit wherein the main scan pixel number of the image after the resolution conversion is reduced is calculated on the basis of the thinning ratio, the interpolation bit is set as the same kind of pixel as a left adjacent pixel, and the thinning bit is thinned. A longitudinal line slim mode line width pixel number that is a pixel number of integer-obtained by truncating a decimal place of a longitudinal line number in the image after the resolution conversion and a longitudinal line thick mode line width pixel number that is a pixel number of integer-obtained by rounding the decimal place are calculated on the basis of the calculated ratio of the main scan pixel number of the images before and the after the resolution conversion, and the image outputted by resolution conversion processing is uniformly processed to a line width mode designated by designation according to designation of a longitudinal line slim mode line width or a longitudinal line thick mode line width. A sub-scan direction is similarly processed. <P>COPYRIGHT: (C)2008,JPO&INPIT

Description

本発明は、2値画像の解像度変換処理方法に関し、特に、文字画像等の2値線画画像等を低解像度画像から高解像度画像に、また、高解像度画像から低解像度画像に変換する2値画像の解像度変換処理方法に関する。   The present invention relates to a resolution conversion processing method for a binary image, and in particular, a binary image for converting a binary line drawing image such as a character image from a low resolution image to a high resolution image and from a high resolution image to a low resolution image. This relates to a resolution conversion processing method.

従来の2値画像の解像度変換技術の一例として、非特許文献1には、画像データの周期性に着目し、信号処理で多用される離散フーリエ変換及び離散逆フーリエ変換等を利用し、画像データの周期を変換することによって解像度変換を行う方法が記載されている。具体的には、2値画像から多値画像に変換し、離散フーリエ変換処理を行い、離散フーリエ変換によって得たスペクトル画像から、周囲成分の切り取りと、値の正規化処理を行った後、逆離散フーリエ変換処理を行う。次に、逆離散フーリエ変換処理により得た多値画像データを2値化処理し、解像度変換後の2値画像を作成する。尚、2値化処理には、固定値2値化、誤差拡散やディザ法等がある。   As an example of a conventional binary image resolution conversion technique, Non-Patent Document 1 focuses on the periodicity of image data and uses discrete Fourier transform and discrete inverse Fourier transform, which are frequently used in signal processing, to obtain image data. A method is described in which resolution conversion is performed by converting the period. Specifically, a binary image is converted into a multi-valued image, a discrete Fourier transform process is performed, a surrounding image is cut out from the spectrum image obtained by the discrete Fourier transform, and a value normalization process is performed. Perform discrete Fourier transform processing. Next, the multi-value image data obtained by the inverse discrete Fourier transform process is binarized to create a binary image after resolution conversion. The binarization processing includes fixed value binarization, error diffusion, dithering, and the like.

一方、特許文献1に記載の2値画像の解像度変換方法では、2値画像の線密度変換前後の解像度によって解像度変換テーブルを作成し、変換前画像の各ドットにおける2値データより、変換後画像の各ドットにおける黒の占める割合で点数を算出する。そして、算出した各ドットの黒の点と、設定した判定閾値から変換後の黒白判定を行うことにより解像度変換画像を得る。   On the other hand, in the binary image resolution conversion method described in Patent Document 1, a resolution conversion table is created based on the resolution before and after the linear density conversion of the binary image, and the post-conversion image is obtained from the binary data in each dot of the pre-conversion image. The score is calculated by the ratio of black in each dot. Then, a resolution-converted image is obtained by performing black / white determination after conversion from the calculated black point of each dot and the set determination threshold.

「モアレのないカラープルーフィングのための網点の重力的再配置法」画像電子学会誌第13巻第5号(2005)"Gravitational rearrangement of halftone dots for moire-free color proofing" Image Electronics Society of Japan, Vol. 13, No. 5 (2005) 特開平2001−358937号公報JP 2001-358937 A

しかし、上記非特許文献1に記載の方法では、逆フーリエ変換した多値画像から2値画像に変換する際に、線画の輪郭線の特性(平滑化)を考慮していないため、文字輪郭の崩れなどが発生して画像が劣化するという問題があった。また、2次元離散フーリエ変換及び逆2次元離散フーリエ変換を行っているため、画像処理の演算量が多く、処理に長時間を要するという問題があった。   However, the method described in Non-Patent Document 1 does not consider the characteristics (smoothing) of the outline of the line drawing when converting the multi-valued image obtained by inverse Fourier transform into a binary image. There has been a problem that the image is deteriorated due to collapse or the like. Further, since the two-dimensional discrete Fourier transform and the inverse two-dimensional discrete Fourier transform are performed, there is a problem that the amount of calculation of the image processing is large and the processing takes a long time.

一方、上記特許文献1に記載の方法では、変換前の画像画素に解像度変換比率により重みを付けることで黒画素の占める割合を点数に変換し、変換した点数が、設定した黒白判定閾値から変換後画素を決定するため、文字の横線と縦線にランダムな画素を付けることになり、画像の劣化が生じるという問題があった。   On the other hand, in the method described in Patent Document 1, the proportion of black pixels is converted into points by weighting the image pixels before conversion with the resolution conversion ratio, and the converted points are converted from the set black and white determination threshold value. Since the subsequent pixels are determined, random pixels are added to the horizontal and vertical lines of the character, which causes a problem of image deterioration.

そこで、本発明は、上記従来の2値画像の解像度変換処理方法における問題点に鑑みてなされたものであって、2値線画画像等の解像度を変換するにあたって、短時間で高画質の画像を得ることが可能な2値画像の解像度変換方法を提供することを目的とする。   Therefore, the present invention has been made in view of the problems in the above conventional binary image resolution conversion processing method. In converting the resolution of a binary line drawing image or the like, a high-quality image can be obtained in a short time. An object of the present invention is to provide a binary image resolution conversion method that can be obtained.

上記目的を達成するため、本発明は、2値画像の解像度変換処理方法であって、解像度変換前の画像の主走査画素数と、解像度変換後の画像の主走査画素数との比率を算出し、該算出した比率に基づいて、解像度変換後の画像の主走査画素数が解像度変換前の画像の主走査画素数より増加する画素を表す補間ビット、又は減少する画素を表す間引きビットを算出し、前記補間ビットについては、左隣の画素と同一種類の画素とし、間引きビットについては、間引き処理を行うことを特徴とする。   In order to achieve the above object, the present invention is a resolution conversion processing method for a binary image, and calculates a ratio between the number of main scanning pixels of an image before resolution conversion and the number of main scanning pixels of an image after resolution conversion. Based on the calculated ratio, an interpolation bit representing a pixel in which the number of main scanning pixels of the image after resolution conversion is larger than the number of main scanning pixels in the image before resolution conversion or a thinning bit representing a decreasing pixel is calculated. The interpolation bit is the same type as the pixel on the left, and the thinning bit is subjected to thinning processing.

そして、本発明によれば、主走査方向について、解像度変換前と変換後の画像の画素位置情報に基づいた解像度変換処理を行うことができるため、高画質の解像度変換画像を得ることが可能である。   According to the present invention, the resolution conversion process based on the pixel position information of the image before and after the resolution conversion can be performed in the main scanning direction, so that a high-quality resolution converted image can be obtained. is there.

前記2値画像の解像度変換処理方法において、前記主走査の解像度変換画像のビット補間動作を決定する主走査補間ラインイメージテーブルを作成し、該主走査補間ラインイメージテーブルの画素ビットに対応している解像度変換前画像の主走査画像を、前記主走査補間ラインイメージテーブルが補間ビットの場合には、左隣の画素と同一種類の画素とし、間引きビットの場合には、間引き処理を行うことができる。予め作成した主走査補間ラインイメージテーブルを用いて解像度変換処理を行うことができるため、高速で解像度変換処理を行うことができる。   In the binary image resolution conversion processing method, a main scanning interpolation line image table for determining a bit interpolation operation of the main scanning resolution conversion image is created and corresponds to the pixel bits of the main scanning interpolation line image table. When the main scanning interpolation line image table is an interpolation bit, the main scanning image of the image before resolution conversion is the same type of pixel as the adjacent pixel on the left, and in the case of a thinning bit, thinning processing can be performed. . Since the resolution conversion process can be performed using a main scanning interpolation line image table created in advance, the resolution conversion process can be performed at high speed.

また、本発明は、2値画像の解像度変換処理方法であって、解像度変換前の画像の副走査ライン数と、解像度変換後の画像の副走査ライン数との比率を算出し、該算出した比率に基づいて、解像度変換後の画像の副走査ライン数が解像度変換前の画像の副走査ライン数より増加するラインを表す補間ビット、又は減少するラインを表す間引きビットを算出し、前記補間ビットについては、直上の画素と同一種類の画素とし、間引きビットについては、間引き処理を行うことを特徴とする。   The present invention is also a resolution conversion processing method for a binary image, which calculates a ratio between the number of sub-scanning lines of an image before resolution conversion and the number of sub-scanning lines of an image after resolution conversion. Based on the ratio, an interpolation bit representing a line in which the number of sub-scanning lines of the image after resolution conversion is greater than the number of sub-scanning lines in the image before resolution conversion or a thinning bit representing a decreasing line is calculated, and the interpolation bits Is the same type of pixel as the pixel immediately above, and the thinning bit is subjected to thinning processing.

本発明によれば、副走査方向について、解像度変換前と変換後の画像の画素位置情報に基づいた解像度変換処理を行うことができるため、高画質の解像度変換画像を得ることが可能である。   According to the present invention, it is possible to perform resolution conversion processing based on pixel position information of images before and after resolution conversion in the sub-scanning direction, so that a high-quality resolution-converted image can be obtained.

前記2値画像の解像度変換処理方法において、前記副走査の解像度変換画像のライン補間動作を決定する副走査補間ラインイメージテーブルを作成し、該副走査補間ラインイメージテーブルの画素ビットに対応している解像度変換前画像の副走査画像を、前記副走査補間ラインイメージテーブルが補間ビットの場合には、直上の画素と同一種類の画素とし、間引きビットの場合には、間引き処理を行うことができる。予め作成した副走査補間ラインイメージテーブルを用いて解像度変換処理を行うことができるため、高速で解像度変換処理を行うことができる。   In the binary image resolution conversion processing method, a sub-scan interpolation line image table for determining a line interpolation operation of the sub-scan resolution conversion image is created and corresponds to the pixel bits of the sub-scan interpolation line image table. When the sub-scanning interpolation line image table is an interpolation bit, the sub-scanned image of the pre-resolution conversion image is the same type of pixel as the pixel immediately above, and when it is a thinning-out bit, thinning processing can be performed. Since the resolution conversion process can be performed using the sub-scan interpolation line image table created in advance, the resolution conversion process can be performed at high speed.

また、本発明は、2値画像の解像度変換処理方法であって、互いに独立して相関関係のない前記主走査方向についての2値画像の解像度変換処理方法と、副走査方向についての2値画像の解像度変換処理方法とを組み合わせたことを特徴とする。これにより、2次元である画像処理を2つの1次元信号処理に分解させることが可能となり、さらに高速で解像度変換処理を行うことができる。   The present invention also relates to a resolution conversion processing method for binary images, and a binary image resolution conversion processing method for the main scanning direction and a binary image for the sub-scanning direction, which are independent of each other and have no correlation. And a resolution conversion processing method. As a result, the two-dimensional image processing can be decomposed into two one-dimensional signal processing, and the resolution conversion processing can be performed at a higher speed.

さらに、本発明は、前記主走査方向の2値画像の解像度変換処理方法において、前記算出した解像度変換前の画像の主走査画素数と解像度変換後の画像の主走査画素数との比率に基づき、解像度変換後の画像での縦線数を、小数点以下を切り捨てて整数化した画素数である縦線細めモード線幅画素数と、小数点以下を切り上げて整数化した画素数である縦線太めモード線幅画素数を算出し、該解像度変換処理によって出力される画像を、前記縦線細めモード線幅か、縦線太めモード線幅かの指定により、指定された線幅モードに均一に処理することを特徴とする。これによって、主走査方向について、解像度変換後の画像での線幅を均一に処理することができる。   Furthermore, the present invention is the resolution conversion processing method for binary images in the main scanning direction, based on the ratio between the calculated number of main scanning pixels of the image before resolution conversion and the number of main scanning pixels of the image after resolution conversion. , The number of vertical lines in the image after resolution conversion, the number of vertical line thinning mode line width pixels that are rounded down to the nearest whole number, and the number of pixels that are rounded up to the nearest whole number. The mode line width pixel count is calculated, and the image output by the resolution conversion processing is uniformly processed to the specified line width mode by specifying the vertical line thin mode line width or the vertical line thick mode line width. It is characterized by doing. Thereby, the line width in the image after resolution conversion can be processed uniformly in the main scanning direction.

前記主走査方向の2値画像の解像度変換処理方法において、前記算出した縦線細めモード線幅画素数、及び縦線太めモード線幅画素数に基づく縦線線幅補正テーブルを作成し、前記縦線細めモード線幅か、縦線太めモード線幅かの指定により、該縦線線幅補正テーブルを用いて指定された線幅モードに均一に処理することができる。予め作成した縦線線幅補正テーブルを用いて解像度変換処理を行うことができるため、高速で解像度変換処理を行うことができる。   In the resolution conversion processing method of the binary image in the main scanning direction, a vertical line width correction table is created based on the calculated vertical line thinning mode line width pixel number and vertical line thickening mode line width pixel number, and the vertical line width correction table is generated. By specifying the line width mode width or the vertical line width mode width, it is possible to uniformly process the line width mode specified using the vertical line width correction table. Since the resolution conversion process can be performed using the vertical line width correction table created in advance, the resolution conversion process can be performed at high speed.

また、本発明は、前記副走査方向の2値画像の解像度変換処理方法において、前記算出した解像度変換前の画像の副走査ライン数と解像度変換後の画像の副走査ライン数との比率に基づき、解像度変換後の画像でのライン数を、小数点以下を切り捨てて整数化したライン数である横線細めモード線幅ライン数と、小数点以下を切り上げて整数化したライン数である横線太めモード線幅ライン数を算出し、該解像度変換処理によって出力される画像を、前記横線細めモード線幅か、横線太めモード線幅かの指定により、指定された線幅モードに均一に処理することを特徴とする。これによって、副走査方向について、解像度変換後の画像での線幅を均一に処理することができる。   In the resolution conversion processing method for binary images in the sub-scanning direction, the present invention is based on the ratio between the calculated number of sub-scanning lines of the image before resolution conversion and the number of sub-scanning lines of the image after resolution conversion. , The horizontal line thinning mode line width, which is the number of lines in the image after resolution conversion, rounded down to the nearest whole number, and the horizontal line thick mode line width, which is the number of lines rounded up to the nearest whole number The number of lines is calculated, and the image output by the resolution conversion processing is uniformly processed into a designated line width mode by designating the horizontal line thin mode line width or the horizontal line thick mode line width. To do. Thereby, the line width in the image after resolution conversion can be processed uniformly in the sub-scanning direction.

前記副走査方向の2値画像の解像度変換処理方法において、前記算出した横線細めモード線幅ライン数、及び横線太めモード線幅ライン数に基づく横線線幅補正テーブルを作成し、前記横線細めモード線幅か、横線太めモード線幅かの指定により、該横線線幅補正テーブルを用いて指定された線幅モードに均一処理することができる。予め作成した横線線幅補正テーブルを用いて解像度変換処理を行うことができるため、高速で解像度変換処理を行うことができる。   In the resolution conversion processing method of the binary image in the sub-scanning direction, a horizontal line width correction table based on the calculated horizontal line thinning mode line width line number and horizontal line thickening mode line width line number is created, and the horizontal line thinning mode line is generated. By designating the width or the horizontal line thick mode line width, uniform processing can be performed in the line width mode specified using the horizontal line width correction table. Since the resolution conversion process can be performed using the horizontal line width correction table created in advance, the resolution conversion process can be performed at high speed.

また、本発明は、2値画像の解像度変換処理方法であって、互いに独立して相関関係のない前記主走査方向についての前記線幅を均一処理と、前記副走査方向についての前記線幅を均一処理とを組み合わせたことを特徴とする。これにより、2次元である画像処理を2つの1次元信号処理に分解させることが可能となり、さらに高速で解像度変換を処理することができる。   Further, the present invention is a resolution conversion processing method for a binary image, wherein the line width in the main scanning direction and the line width in the sub-scanning direction are independent from each other and have no correlation. It is characterized by combining uniform processing. As a result, the two-dimensional image processing can be decomposed into two one-dimensional signal processing, and resolution conversion can be processed at a higher speed.

以上説明したように、本発明にかかる2値画像の解像度変換方法よれば、2値線画画像等の解像度を変換するにあたって、短時間で高画質の画像を得ることが可能となる。   As described above, according to the binary image resolution conversion method of the present invention, it is possible to obtain a high-quality image in a short time when converting the resolution of a binary line drawing image or the like.

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

図1は、本発明にかかる2値画像の解像度変換処理方法の全体の処理の流れを示したものである。この方法は、2値画像の解像度を変換するにあたって、解像度変換前と変換後の画像の画素位置を不変とするため、解像度変換前の画像の画素の位置情報に基づいて、解像度変換後の画像での画素位置を表す主走査及び副走査の補間ラインイメージテーブルを作成し(ステップS1)、主、副走査の各補間ラインイメージテーブルに基づいて、主、副走査方向各々に独立して解像度変換処理を行い(ステップS2)、解像度変換処理により解像度変換後の画像で1画素の範囲で生じる線幅のばらつきを補正するための主走査、及び副走査の線幅補正テーブルを作成し(ステップS3)、線幅補正テーブルに基づいて解像度変換後の画像の線幅を補正する(ステップS4)。尚、本発明の実施の形態には、2値画像を低解像度から高解像度に解像度変換する第1の実施形態と、高解像度から低解像度に解像度変換する第2の実施形態がある。   FIG. 1 shows the overall processing flow of a binary image resolution conversion processing method according to the present invention. In this method, when converting the resolution of the binary image, the pixel position of the image before the resolution conversion and the image after the conversion are not changed. Therefore, the image after the resolution conversion is based on the pixel position information of the image before the resolution conversion. A main scanning and sub-scanning interpolation line image table representing the pixel position is created (step S1), and resolution conversion is independently performed in each of the main and sub-scanning directions based on the main and sub-scanning interpolation line image tables. Processing is performed (step S2), and a main-scanning and sub-scanning line-width correction table for correcting a variation in line width that occurs in the range of one pixel in the resolution-converted image is created (step S3). ), The line width of the image after resolution conversion is corrected based on the line width correction table (step S4). In the embodiment of the present invention, there are a first embodiment for converting resolution of a binary image from low resolution to high resolution and a second embodiment for converting resolution from high resolution to low resolution.

まず、本発明の第1の実施の形態について、図2を参照して処理の流れを説明する。   First, the flow of a process according to the first embodiment of the present invention will be described with reference to FIG.

解像度変換前の画像の寸法情報と、解像度変換後の画像の解像度により、解像度変換後の画像の寸法情報を得て(ステップS100)、補間ラインイメージテーブルを作成し(ステップS110)、解像度変換を行う(ステップS120)。その後、線幅補正テーブルを作成(ステップS130)し、線幅補正処理(ステップS140)を行う。   Based on the dimension information of the image before resolution conversion and the resolution of the image after resolution conversion, the dimension information of the image after resolution conversion is obtained (step S100), an interpolation line image table is created (step S110), and resolution conversion is performed. This is performed (step S120). Thereafter, a line width correction table is created (step S130), and a line width correction process (step S140) is performed.

ここで、補間ラインイメージテーブルの作成処理(ステップS110)は、主走査補間ラインイメージテーブルの作成処理(ステップS111)と、副走査補間ラインイメージテーブルの作成処理(ステップS112)とを含み、線幅補正テーブルの作成処理(ステップS130)は、縦線線幅補正テーブルの作成処理(ステップS131)と、横線線幅補正テーブルの作成処理(ステップS132)とを含む。   The interpolation line image table creation process (step S110) includes a main scanning interpolation line image table creation process (step S111) and a sub-scanning interpolation line image table creation process (step S112). The correction table creation process (step S130) includes a vertical line width correction table creation process (step S131) and a horizontal line width correction table creation process (step S132).

次に、図3〜図7を参照して本発明の第1の実施の形態の全体の動作について詳細に説明する。   Next, the overall operation of the first exemplary embodiment of the present invention will be described in detail with reference to FIGS.

まず、解像度変換後の画像の寸法情報を得る図2のステップS100では、解像度変換前の画像の寸法情報を、走査画素数W,副走査ライン数L、及び解像度Rとし、解像度変換後の画像の寸法情報を、主走査画素数W’、副走査ライン数L’、及び解像度R’とすると、解像度変換前の画像のW、L、Rと、解像度変換後の画像のR’から、解像度変換後の画像情報W、L’を以下の方式で求める。   First, in step S100 of FIG. 2 for obtaining the dimension information of the image after resolution conversion, the dimension information of the image before resolution conversion is set to the number of scanning pixels W, the number of sub-scanning lines L, and the resolution R, and the image after resolution conversion. Is the number of main scanning pixels W ′, the number of sub-scanning lines L ′, and the resolution R ′, the resolution from the W, L, R of the image before the resolution conversion and the R ′ of the image after the resolution conversion. The converted image information W and L ′ are obtained by the following method.

W’=W×R’÷R(小数点以下切捨て) ・・・式(1)
L’=L×R’÷R(小数点以下切捨て) ・・・式(2)
次に、図3を参照して補間ラインイメージテーブルの作成ステップS110について説明する。
W ′ = W × R ′ ÷ R (rounded down) ・ ・ ・ Equation (1)
L ′ = L × R ′ ÷ R (rounded down) ・ ・ ・ Equation (2)
Next, the interpolation line image table creation step S110 will be described with reference to FIG.

主走査補間ラインイメージテーブルの作成ステップS111では、まず、解像度変換後の画像の主走査画素数と同じビット数であるラインイメージバッファ(テーブル)を確保する。ラインイメージテーブルのビットは、解像度変換後の画像の主走査画素と一対一で対応している。   In the main scanning interpolation line image table creation step S111, first, a line image buffer (table) having the same number of bits as the number of main scanning pixels of the image after resolution conversion is secured. The bits of the line image table have a one-to-one correspondence with the main scanning pixels of the image after resolution conversion.

次に、ラスタスキャンにより、主走査方向の最左端画素の位置を0とした場合の解像度変換前の画像の主走査方向画素位置c(整数)と、解像度変換後の画像の主走査方向の主走査方向画素位置c’(整数)を設定する。画素位置は、2値画像の主走査方向の画素の位置を表すもので、0〜W−1(cの場合)、又は0〜W’−1(c’の場合)で表される。さらに、cは、0からW−1まで順次に大きくさせ、以下の式(3)で対応するc’の値を求める。   Next, by raster scanning, the pixel position c (integer) in the main scanning direction of the image before resolution conversion when the position of the leftmost pixel in the main scanning direction is set to 0, and the main position in the main scanning direction of the image after resolution conversion. A scanning direction pixel position c ′ (integer) is set. The pixel position represents the position of the pixel in the main scanning direction of the binary image, and is represented by 0 to W-1 (in the case of c) or 0 to W'-1 (in the case of c '). Further, c is sequentially increased from 0 to W−1, and the corresponding c ′ value is obtained by the following equation (3).

c’=c×W’÷W(小数点以下切捨て) ・・・式(3)
式(3)で求めたc’の値に対応して、ラインイメージテーブルのc’番目のビット値を値1に設定する。また、対応していないビット値を0に設定する。
c ′ = c × W ′ ÷ W (rounded down to the nearest decimal point) (3)
Corresponding to the value of c ′ obtained by Expression (3), the c′-th bit value of the line image table is set to the value 1. In addition, a bit value that is not supported is set to 0.

ここで、補間ラインイメージテーブル中で値が1のビットは、解像度変換後の画像のラインイメージでの解像度変換前の画像の画素に対応している画素と定義し、画素ビットとする。値が0のビットは、解像度変換後の画像のラインイメージの中で補間する画素(解像度処理により追加された画素)を対応づけるので補間ビットと定義する。   Here, a bit having a value of 1 in the interpolation line image table is defined as a pixel corresponding to a pixel of the image before resolution conversion in the line image of the image after resolution conversion, and is defined as a pixel bit. A bit having a value of 0 is defined as an interpolation bit because it associates a pixel to be interpolated (a pixel added by resolution processing) in the line image of the image after resolution conversion.

図3の例に示すのは、主走査15画素数の454dpiの解像度変換前の画像を、602dpiの解像度変換後の画像に解像度変換する場合の、解像度変換前の画像ラインイメージ、解像度変換後の画像ラインイメージと補間ラインイメージテーブルとの関係を表すものである。   The example of FIG. 3 shows an image line image before resolution conversion and an image after resolution conversion when converting an image before resolution conversion of 454 dpi with 15 pixels of main scanning into an image after resolution conversion of 602 dpi. It represents the relationship between an image line image and an interpolation line image table.

この例では、式(1)により解像度変換後の画像の主走査画素数は、15×602÷454=19(小数点以下切捨て)となるので、この値を式(3)に適用し、解像度変換前の画像の主走査方向の画素位置cを0から14まで順に大きくすると、c’=c×19÷15(小数点以下切捨て)から算出される解像度変換後の画像の主走査方向の画素位置c’値は、0,1,2,3,5,6,7,8,10,11,12,13,15,16,17と求められる。これらのビットが、値が1の画素ビットであり、残りの4,9,14,18番目のビットが、値が0の補間ビットである。   In this example, the number of main scanning pixels of the image after resolution conversion according to equation (1) is 15 × 602 ÷ 454 = 19 (truncated after the decimal point), so this value is applied to equation (3) to convert the resolution. When the pixel position c in the main scanning direction of the previous image is sequentially increased from 0 to 14, the pixel position c in the main scanning direction of the image after resolution conversion calculated from c ′ = c × 19 ÷ 15 (truncated after the decimal point). The values are obtained as 0, 1, 2, 3, 5, 6, 7, 8, 10, 11, 12, 13, 15, 16, 17. These bits are pixel bits having a value of 1, and the remaining 4, 9, 14, and 18th bits are interpolation bits having a value of 0.

副走査補間ラインイメージテーブルの作成ステップS112では、主走査補間ラインイメージテーブルの作成ステップS111と同様に、解像度変換前の画像の副走査ライン数Lと解像度変換後の画像の副走査ライン数L’に基づいて、副走査補間ラインイメージテーブルを作成する。副走査補間ラインイメージテーブルの画素ビットは、解像度変換前の画像の副走査ラインイメージに対応している解像度変換後の画像の副走査ラインイメージを表すラインであり、副走査補間ラインイメージテーブルの補間ビットは、解像度変換処理により解像度変換後の画像に追加した副走査ラインイメージを表すラインである。   In the sub-scanning interpolation line image table creation step S112, as in the main-scanning interpolation line image table creation step S111, the sub-scanning line number L ′ of the image before resolution conversion and the sub-scanning line number L ′ of the image after resolution conversion. Based on the above, a sub-scanning interpolation line image table is created. The pixel bit of the sub-scan interpolation line image table is a line representing the sub-scan line image of the image after resolution conversion corresponding to the sub-scan line image of the image before resolution conversion, and is interpolated in the sub-scan interpolation line image table. A bit is a line representing a sub-scanning line image added to an image after resolution conversion by resolution conversion processing.

次に、図2の解像度変換ステップS120について、図4を参照しながら説明する。図4は、図3と同様に、主走査15画素数の454dpiの解像度変換前の画像を、602dpiの解像度変換後の画像に解像度変換する場合の動作を説明するものである。   Next, the resolution conversion step S120 in FIG. 2 will be described with reference to FIG. FIG. 4 illustrates the operation in the case of converting the resolution of the 454 dpi resolution-converted image of 15 pixels in the main scanning into the image after 602 dpi resolution conversion, as in FIG. 3.

主走査補間ラインイメージテーブルの各ビットは、解像度変換後の画像の主走査画素と一対一で対応し、ラインイメージテーブル画素ビット(1の値のビット)は、解像度変換前の画像の画素と一対一で対応している。具体的な処理としては、解像度変換前の画像ラインイメージを左端から右端までラスタスキャンし、解像度変換前の画像の画素を主走査補間ラインイメージテーブルの画素ビットに対応している解像度変換後の画像の画素(1の値のビット)にそのままの値で書き込み、次に、主走査補間ラインイメーテーブルの補間ビット(0の値のビット)に対応している解像度変換後の画像の画素は、左隣のビットと同じ画素の値を書き込む。   Each bit of the main scanning interpolation line image table has a one-to-one correspondence with the main scanning pixel of the image after resolution conversion, and the line image table pixel bit (one value bit) has a pair with the pixel of the image before resolution conversion. It corresponds with one. Specifically, the image line image before the resolution conversion is raster scanned from the left end to the right end, and the pixels after the resolution conversion corresponding to the pixel bits of the main scanning interpolation line image table are converted from the pixels before the resolution conversion. The pixel of the image after resolution conversion corresponding to the interpolation bit (bit of 0 value) of the main scanning interpolation line image table is written to the left pixel (bit of 1 value) as it is. Write the same pixel value as the next bit.

さらに、図5の解像度変換処理のフローチャートを参照しながら解像度変換処理について詳細に説明する。   Further, the resolution conversion process will be described in detail with reference to the flowchart of the resolution conversion process in FIG.

まず、解像度変換前の画像の副走査ライン位置Nと、副走査補間ラインイメージテーブルのビット位置Mとを0番目にセットする(ステップS11、S12)。次に、副走査補間ラインイメージテーブルのMビット目を判断する(ステップS13)。Mビット目は、画素ビットの場合(ビット値が1)、解像度変換前の画像から、N行目画像ラインイメージを読み出すと同時に、解像度変換前の画像の副走査ライン位置Nに1を加算(次の解像度変換前の画像のラインを指す)する(ステップS14)。次に、主走査補間ラインイメージテーブルに基づいて、前記された主走査解像度変換を行うことにより、N行目解像度変換前の画像のラインイメージに対応しているM行目解像度変換後の画像のラインイメージを得る(ステップS15)。   First, the sub-scanning line position N of the image before resolution conversion and the bit position M of the sub-scanning interpolation line image table are set to 0th (steps S11 and S12). Next, the Mth bit of the sub-scanning interpolation line image table is determined (step S13). When the Mth bit is a pixel bit (bit value is 1), the Nth row image line image is read from the image before resolution conversion, and at the same time, 1 is added to the sub-scanning line position N of the image before resolution conversion ( Indicates the line of the image before the next resolution conversion) (step S14). Next, by performing the main scanning resolution conversion based on the main scanning interpolation line image table, the image of the image after the Mth row resolution conversion corresponding to the line image of the image before the Nth row resolution conversion is converted. A line image is obtained (step S15).

また、副走査補間ラインイメージテーブルのMビット目が、補間ビットの場合(ビット値が0)、主走査解像度変換せず、前ラインで処理して得たM−1行目の解像度変換後の画像のラインイメージを、M行目解像度変換後の画像ラインイメージにコピーしてM行目解像度変換後の画像ラインイメージにする(ステップS16)。   Also, when the M-th bit of the sub-scanning interpolation line image table is an interpolation bit (bit value is 0), the main scanning resolution is not converted, and the resolution conversion of the (M−1) th row obtained by processing on the previous line is performed. The line image of the image is copied to the image line image after the M-th row resolution conversion to obtain an image line image after the M-th row resolution conversion (step S16).

上記ステップS15又はステップS16の処理の後、M行目解像度変換後の画像のラインイメージを解像度変換後の画像に書き込むと同時に、副走査補間ラインイメージテーブルのビット数目Mに1を加算(次の解像度変換後の画像のラインを指す)する(ステップS17)。   After the process of step S15 or step S16, the line image of the image after the Mth line resolution conversion is written into the image after the resolution conversion, and at the same time, 1 is added to the bit number M of the sub-scanning interpolation line image table (next Indicates the line of the image after resolution conversion (step S17).

最後に、解像度変換後の画像ラインイメージのすべてを書き込んだか否かを判断し(ステップS18)、解像度変換後の画像ラインイメージをすべて書き込んだ場合には、解像度変換処理を終了する。残りが存在する場合には、前記の処理で解像度変換後の画像ラインイメージをすべて書き込むまで繰り返して行う。   Finally, it is determined whether or not all of the image line images after resolution conversion have been written (step S18). If all of the image line images after resolution conversion have been written, the resolution conversion processing is terminated. If there is a remainder, the above processing is repeated until all the image line images after resolution conversion are written.

この補間ラインイメージテーブルに基づいた解像度変換処理は、主走査解像度変換処理と、副走査解像度変換処理の各々が互いに独立している。従って、主走査解像度変換処理後に副走査解像度変換処理を行って得た解像度変換後の画像と、副走査解像度変換処理後に主走査解像度変換処理して得られる解像度変換後の画像は同じである。そのため、画像の解像度変換処理を主、副走査方向別々に解像度変換処理することで、2次元である画像処理を2つの1次元信号処理に分解することから、画像処理の演算量を大幅に削減し、高速処理が可能となる。   In the resolution conversion process based on the interpolation line image table, the main scanning resolution conversion process and the sub-scanning resolution conversion process are independent of each other. Accordingly, the resolution-converted image obtained by performing the sub-scanning resolution conversion process after the main-scanning resolution conversion process is the same as the image after resolution conversion obtained by performing the main-scanning resolution conversion process after the sub-scanning resolution conversion process. For this reason, the resolution conversion processing of the image is performed separately in the main and sub-scanning directions, so that the two-dimensional image processing is decomposed into two one-dimensional signal processing, thereby greatly reducing the amount of calculation of the image processing. However, high-speed processing becomes possible.

また、解像度変換後の画像が解像度変換前の画像の画質を最大限に維持するためには、解像度変換後の画像の大きさ、黒画素の濃度及び各画素の位置情報等が解像度変換前の画像とできる限り変わらないことが必要であるが、解像度変換処理により1画素の差がある異なった2つの線幅の解像度変換後の画像(線幅ばらつき)になる問題がある。   In addition, in order to maintain the image quality of the image before the resolution conversion at the maximum after the resolution conversion, the size of the image after the resolution conversion, the density of the black pixels, the position information of each pixel, etc. Although it is necessary to be as different as possible from the image, there is a problem that resolution conversion processing results in an image (line width variation) after resolution conversion of two different line widths having a difference of one pixel.

例えば、主走査方向10000個の画素の454dpi解像度変換前の画像から、602dpi解像度変換後の画像に解像度変換する場合には、602dpiの解像度に変換した後の画像では、13200個の画素になる。また、454dpiの解像度変換前の画像は、10000個画素中互いに独立している1000個の黒画素が存在するとすると、602dpi解像度変換後の画像について、画質の黒画素濃度を維持するためには、13200個画素中、1320個の画素を黒画素としなければならないため、454dpiの解像度変換前の画像の1個の独立黒点に対して解像度変換後、平均では、1.32個の黒画素になることになるが、実際の2値画像では、黒点が、1個(小数点以下を切り捨てることにより整数に整合)の黒画素と2個(小数点以下を切り上げることにより整数に整合)の黒画素の2種類(黒画素数の差は1個である)存在することになる。また、この2種類の黒点数の割合は、解像度変換前の画像の画素数と解像度変換後の画像の画素数との比率分となるため、1個の黒画素の黒点数は、全体の68%、2個の黒画素の黒点数は全体の32%にしなければならない。   For example, in a case where resolution conversion is performed from an image before 454 dpi resolution conversion of 10000 pixels in the main scanning direction to an image after 602 dpi resolution conversion, the image after conversion to 602 dpi resolution results in 13200 pixels. In addition, if an image before resolution conversion of 454 dpi has 1000 black pixels that are independent from each other among 10000 pixels, in order to maintain the black pixel density of the image quality for the image after 602 dpi resolution conversion, Since 1320 pixels out of 13200 pixels must be black pixels, after the resolution conversion is performed on one independent black point of the image before the 454 dpi resolution conversion, the average is 1.32 black pixels. However, in an actual binary image, there are two black dots, one black pixel (matched to an integer by rounding down the decimal point) and two black pixels (matched to an integer by rounding up the decimal point). There exist types (the difference in the number of black pixels is 1). Further, since the ratio of the two types of black dots is the ratio of the number of pixels of the image before resolution conversion and the number of pixels of the image after resolution conversion, the number of black dots of one black pixel is 68 in the whole. %, The number of black dots of two black pixels must be 32% of the total.

以上のことから、解像度変換前の画像の解像度と、解像度変換後の画像の解像度が、整数倍にならない解像度変換処理の場合には、同じ解像度変換前の画像の線幅は、1画素の差がある2つの異なる線幅の解像度変換後の画像(線幅ばらつき問題)になることは避けられない。   From the above, in the case of resolution conversion processing in which the resolution of the image before resolution conversion and the resolution of the image after resolution conversion are not an integral multiple, the line width of the same image before resolution conversion is a difference of one pixel. It is inevitable that there will be an image after resolution conversion of two different line widths (line width variation problem).

次に、上記で説明した整数倍とならない解像度画像間の解像度変換処理の場合に、線幅のばらつきに関する問題を軽減するための線幅補正テーブル作成(図1のステップS130)について説明する。   Next, a description will be given of the creation of a line width correction table (step S130 in FIG. 1) for reducing the problem relating to the variation in line width in the case of the resolution conversion process between resolution images that do not become integer multiples as described above.

線幅補正テーブルは、解像度変換前の画像の線幅(画素数)に対して、解像度変換処理により2種類の解像度変換後の画像線幅(画素数)を表すテーブルである。例えば、454dpiから602dpiに変換する場合には、解像度変換前の画像が1ライン線幅の場合、解像度変換により、解像度変換後の画像の線幅ライン数は、理論上
1×602÷454=1.32
になる。
The line width correction table is a table representing the image line width (number of pixels) after two types of resolution conversion by resolution conversion processing with respect to the line width (number of pixels) of the image before resolution conversion. For example, when converting from 454 dpi to 602 dpi, if the image before resolution conversion is one line width, the number of line width lines of the image after resolution conversion is theoretically 1 × 602 ÷ 454 = 1 by resolution conversion. .32
become.

従って、解像度変換後の画像には、1画素線幅(確率68%)と2画素線幅(確率32%)が存在する。この中で、1画素の線幅は細め線幅、2画素の線幅は太め線幅と定義する。そして、解像度変換前の画像の各画素数線幅について、解像度変換後の画像の細め線幅画素数と太め線幅画素数を求めたテーブルが、線幅補正テーブルである。   Accordingly, the image after resolution conversion has a 1-pixel line width (68% probability) and a 2-pixel line width (32% probability). Among these, the line width of one pixel is defined as a narrow line width, and the line width of two pixels is defined as a thick line width. A table for obtaining the number of thin line width pixels and the number of thick line width pixels of the image after resolution conversion for each pixel number line width of the image before resolution conversion is a line width correction table.

縦線線幅補正テーブルの作成(図2のステップS131)では、解像度変換前の画像の縦
線線幅画素数をn(整数)、解像度変換前の画像の縦線線幅に対応している解像度変換後の画像の縦線細め線幅画素数をm0(整数)、太め線幅画素数をm1(整数)と定義すると、m0とm1は、以下の式で決定される。
m0=n×W’÷W(小数点以下切捨てにより整数に整合) ・・・式(4)
m1=n×W’÷W(小数点以下切上げにより整数に整合) ・・・式(5)
尚、W’は、解像度変換後の画像の主走査方向画素数であり、Wは、解像度変換前の画像の主走査方向画素数である。
In the creation of the vertical line width correction table (step S131 in FIG. 2), the number of vertical line width pixels of the image before resolution conversion is n (integer) and corresponds to the vertical line width of the image before resolution conversion. When the number of vertical line thin line width pixels of the image after resolution conversion is defined as m0 (integer) and the number of thick line width pixels as m1 (integer), m0 and m1 are determined by the following equations.
m0 = n × W ′ ÷ W (matched to an integer by rounding down the decimal point) (4)
m1 = n × W ′ ÷ W (matched to an integer by rounding up the decimal point) Expression (5)
Note that W ′ is the number of pixels in the main scanning direction of the image after resolution conversion, and W is the number of pixels in the main scanning direction of the image before resolution conversion.

ここで、nを1からWまで(解像度変換前の画像中存在可能なすべての縦線線幅画素数)順に大きくしていくことで、nに対応するm0とm1を求めることによって縦線線幅補正テーブルを作成することができる。図6は、上記式(4)と、式(5)で作成した、線幅15画素縦線の454dpi画像を602dpi画像に変換する場合の縦線線幅補正テーブルの例である。   Here, by increasing n in order from 1 to W (the total number of pixels of the vertical line width pixels that can exist in the image before resolution conversion), vertical line lines are obtained by obtaining m0 and m1 corresponding to n. A width correction table can be created. FIG. 6 is an example of a vertical line width correction table in the case where a 454 dpi image having a line width of 15 pixels and a vertical line created by Expression (4) and Expression (5) is converted into a 602 dpi image.

横線線幅補正テーブルの作成(図2ステップS132)では、縦線補正テーブルの作成と同様に、解像度変換前の画像の副走査方向ライン数Lと解像度変換後の画像の副走査方向ライン数L’を用いて作成する。解像度変換前の画像の横線線幅ライン数をs(整数)、解像度変換前の画像の横線線幅に対応する解像度変換後の画像の横線細め線幅ライン数をp0(整数)、太め線幅ライン数をp1(整数)と定義すると、p0とp1は、以下の式で決定される。
p0=s×L’÷L(小数点以下切捨てにより整数に整合) ・・・式(6)
p1=s×L’÷L(小数点以下切上げにより整数に整合) ・・・式(7)
尚、L’は、解像度変換後の画像の副走査ライン数であり、Lは解像度変換前の画像の副走査ライン数である
In the creation of the horizontal line width correction table (step S132 in FIG. 2), as in the creation of the vertical line correction table, the number of lines L in the sub-scanning direction of the image before resolution conversion and the number of lines L in the sub-scanning direction of the image after resolution conversion. Create using '. The horizontal line width line number of the image before resolution conversion is s (integer), the horizontal line thin line width line number of the image after resolution conversion corresponding to the horizontal line width of the image before resolution conversion is p0 (integer), and the thick line width If the number of lines is defined as p1 (integer), p0 and p1 are determined by the following equations.
p0 = s × L ′ ÷ L (matched to an integer by rounding down the decimal point) (6)
p1 = s × L ′ ÷ L (matched to an integer by rounding up the decimal point) Expression (7)
Note that L ′ is the number of sub-scanning lines of the image after resolution conversion, and L is the number of sub-scanning lines of the image before resolution conversion.

ここで、sを1からLまで(解像度変換前の画像が存在可能なすべての横線線幅ライン数)順に大きくしていき、sに対するp0とp1を求めることによって横線線幅補正テーブルを作成することができる。   Here, s is increased in order from 1 to L (the number of all horizontal line width lines in which an image before resolution conversion can exist), and a horizontal line width correction table is created by obtaining p0 and p1 for s. be able to.

線幅補正テーブルは、解像度変換前の画像に存在する線幅が解像度変換処理により解像度変換後の画像で変化させる線幅を表すものである。   The line width correction table represents the line width that the line width existing in the image before resolution conversion changes in the image after resolution conversion by resolution conversion processing.

最後に、図7を参照して線幅補正処理(図2のステップS140)について説明する。線幅補正処理は、解像度変換処理により解像度変換後の画像中の2種類の線幅を1種類の線幅に均一化する処理である。ここでは、解像度変換後の画像の線幅をすべて太め線幅に均一化線幅補正処理モード1とすべて細め線幅に均一化線幅補正処理モード2を定義する。   Finally, the line width correction process (step S140 in FIG. 2) will be described with reference to FIG. The line width correction process is a process for equalizing two types of line widths in the image after resolution conversion to one type of line width by resolution conversion processing. Here, uniform line width correction processing mode 1 is defined for all line widths of images after resolution conversion, and uniform line width correction processing mode 2 is defined for all thin line widths.

図7に示すように、解像度変換後の画像の縦線線幅は、図6の補間ラインイメージテーブルを参照し、縦線線幅画素中の解像度変換前の画像画素である画素ビット数と追加した補間ビット数を識別できる。線幅補正処理の太め線幅に均一化する処理モード1の場合には、解像度変換後の画像の線幅が、太め線幅になっている場合は補正処理をせず、解像度変換後の画像の線幅が細め線幅となっている場合に解像度変換後の画像線幅の右端の1画素を黒画素に変更して、太め線幅にする。線幅補正処理の細め線幅に均一化する処理モード2の場合には、解像度変換後の画像の縦線線幅が細め線幅となっている場合は補正処理をせず、解像度変換後の画像の縦線線幅が太め線幅となっている場合に解像度変換後の画像縦線の右端の1画素を白画素に変更して、細め線幅の縦線にする。   As shown in FIG. 7, the vertical line width of the image after resolution conversion is added to the number of pixel bits which are image pixels before resolution conversion in the vertical line width pixels by referring to the interpolation line image table of FIG. The number of interpolated bits can be identified. In the case of processing mode 1 in which the line width correction processing is made uniform to a thick line width, if the line width of the image after resolution conversion is a thick line width, the correction processing is not performed and the image after resolution conversion is performed. When the line width is a thin line width, one pixel at the right end of the image line width after resolution conversion is changed to a black pixel to make it a thick line width. In the case of the processing mode 2 in which the line width correction processing is uniformized to the fine line width, if the vertical line width of the image after the resolution conversion is a thin line width, the correction processing is not performed and the resolution conversion is performed. When the vertical line width of the image is a thick line width, one pixel at the right end of the image vertical line after resolution conversion is changed to a white pixel to make a thin line width vertical line.

横線線幅補正処理は、縦線の線幅補正処理と同様に、解像度変換後の画像の横線の線幅に対して、横線線幅補正テーブルを用いて線幅補正処理を行う。但し、線幅補正処理による1画素の変更処理は、解像度変換後の画像の横線の最下端のラインに行う。   Similar to the vertical line width correction process, the horizontal line width correction process is performed on the horizontal line width of the image after the resolution conversion by using the horizontal line width correction table. However, the process of changing one pixel by the line width correction process is performed on the lowermost line of the horizontal line of the image after resolution conversion.

次に、本発明の第2の実施の形態(2値画像を高解像度から低解像度に変換する場合)について、図8を参照しながら処理の流れを説明する。   Next, the flow of processing for the second embodiment of the present invention (when a binary image is converted from high resolution to low resolution) will be described with reference to FIG.

解像度変換前の画像の寸法情報と、解像度変換後の画像の解像度により、解像度変換後の画像の寸法情報を得て(ステップS200)、補間ラインイメージテーブルを作成(ステップS210)し、解像度変換を行う(ステップS220)。その後、線幅補正テーブルを作成(ステップS230)し、線幅補正処理(ステップS240)を行う。   Based on the dimension information of the image before resolution conversion and the resolution of the image after resolution conversion, the dimension information of the image after resolution conversion is obtained (step S200), an interpolation line image table is created (step S210), and resolution conversion is performed. This is performed (step S220). Thereafter, a line width correction table is created (step S230), and a line width correction process (step S240) is performed.

ここで、補間ラインイメージテーブルの作成処理(ステップS210)は、主走査補間ラインイメージテーブルの作成処理(ステップS211)と、副走査補間ラインイメージテーブルの作成処理(ステップS212)とを含み、線幅補正テーブルの作成処理(ステップS230)は、縦線線幅補正テーブルの作成処理(ステップS231)と、横線線幅補正テーブルの作成処理(ステップS232)とを含む。   Here, the interpolation line image table creation process (step S210) includes a main scanning interpolation line image table creation process (step S211) and a sub-scanning interpolation line image table creation process (step S212). The correction table creation process (step S230) includes a vertical line width correction table creation process (step S231) and a horizontal line width correction table creation process (step S232).

次に、図9〜図13を参照して本実施の形態の全体の動作について詳細に説明する。   Next, the overall operation of the present embodiment will be described in detail with reference to FIGS.

まず、解像度変換後の画像の寸法情報を得る図8のステップS200では、解像度変換前の画像の寸法情報を、主走査方向画素数W,副走査ライン数L、及び解像度Rとし、解像度変換後の画像の寸法情報を、主走査画素数W’、副走査ライン数L’、及び解像度 R’とすると、解像度変換前の画像のW,L,R と、解像度変換後の画像のR’から、解像度変換後の画像情報W’、L’は、先述した第1の実施の形態の式(1)及び式(2)と同様に、以下のように求められる。   First, in step S200 of FIG. 8 for obtaining the dimension information of the image after resolution conversion, the dimension information of the image before resolution conversion is set to the number of pixels W in the main scanning direction, the number of sub-scanning lines L, and the resolution R, and after the resolution conversion. Is the number of main scanning pixels W ′, the number of sub-scanning lines L ′, and the resolution R ′, the W, L, R of the image before resolution conversion and the R ′ of the image after resolution conversion. The image information W ′ and L ′ after the resolution conversion are obtained as follows, similarly to the expressions (1) and (2) of the first embodiment described above.

W’=W×R’÷R(小数点以下切捨て) ・・・式(1)
L’=L×R’÷R(小数点以下切捨て) ・・・式(2)
W ′ = W × R ′ ÷ R (rounded down) ・ ・ ・ Equation (1)
L ′ = L × R ′ ÷ R (rounded down) ・ ・ ・ Equation (2)

次に、図9を参照して補間ラインイメージテーブルの作成ステップS210について説明する。   Next, the interpolation line image table creation step S210 will be described with reference to FIG.

主走査補間ラインイメージテーブルの作成ステップS211では、まず、解像度変換前の画像の主走査画素数と同じビット数であるラインイメージバッファ(テーブル)を確保する。ラインイメージテーブルのビットは、解像度変換前の画像の主走査画素と一対一に対応している。   In the main scanning interpolation line image table creation step S211, first, a line image buffer (table) having the same number of bits as the number of main scanning pixels of the image before resolution conversion is secured. The bits of the line image table have a one-to-one correspondence with the main scanning pixels of the image before resolution conversion.

次に、ラスタスキャンにより、主走査方向の最左端画素の位置を0にする解像度変換前の画像の主走査方向画素位置c(整数)と、解像度変換後の画像の主走査方向の主走査方向画素位置c’(整数)を設定する。画素位置は、2値画像の主走査方向の画素の位置を表すもので、0〜W−1(cの場合)又は0〜W’−1(c’の場合)で表される。さらに、c’は、0からW’−1まで順次に大きくさせて、以下の式(8)で対応している cの値を求める。
c=c’×W÷W’(小数点以下切捨て) ・・・式(8)
Next, by raster scanning, the pixel position c (integer) in the main scanning direction of the image before resolution conversion, which sets the position of the leftmost pixel in the main scanning direction to 0, and the main scanning direction in the main scanning direction of the image after resolution conversion A pixel position c ′ (integer) is set. The pixel position represents the position of the pixel in the main scanning direction of the binary image, and is represented by 0 to W-1 (in the case of c) or 0 to W′-1 (in the case of c ′). Further, c ′ is sequentially increased from 0 to W′−1, and the value of c corresponding to the following equation (8) is obtained.
c = c ′ × W ÷ W ′ (rounded down to the nearest decimal point) (8)

式(8)で求めたcの値に対応してラインイメージテーブルのc番目のビット値を値1に設定する。また、対応していないビット値を0に設定する。   The c-th bit value of the line image table is set to a value 1 corresponding to the value of c obtained by Expression (8). In addition, a bit value that is not supported is set to 0.

ここで、補間ラインイメージテーブル中で値が1のビットは、解像度変換前の画像のラインイメージでの解像度変換後の画像の画素を対応している画素と定義し、画素ビットとする。値が0のビットは、解像度変換前の画像のラインイメージの中で間引く画素(解像度処理により減少された画素)を対応づけるので間引きビットと定義する。   Here, a bit having a value of 1 in the interpolation line image table is defined as a pixel corresponding to the pixel of the image after resolution conversion in the line image of the image before resolution conversion, and is defined as a pixel bit. Bits having a value of 0 are defined as thinning bits because they correspond to thinning pixels (pixels reduced by resolution processing) in the line image of the image before resolution conversion.

図9の例に示すのは、主走査20画素数の602dpi解像度変換前の画像を454dpiの解像度変換後の画像に解像度変換する場合の、解像度変換前の画像ラインイメージ、解像度変換後の画像ラインイメージと補間ラインイメージテーブルとの関係を表すものである。   The example of FIG. 9 shows an image line image before resolution conversion and an image line after resolution conversion when converting an image before 602 dpi resolution conversion of 20 pixels in the main scanning into an image after 454 dpi resolution conversion. It represents the relationship between the image and the interpolation line image table.

この例では、式(1)により解像度変換後の画像の主走査画素数は、20×454÷602=15(小数点以下切捨て)となるので、この値を式(8)に適用し、解像度変換後の画像の主走査方向の画素位置c’を0から14まで順次に大きくさせるとc=c’×20÷15(小数点以下切捨て)から算出される解像度変換前の画像の主走査方向の画素位置c値は、0,1,2,4,5,6,8,9,10,12,13,14,16,17,18になり。これらのビットが、値が1で画素ビットであり、残りの3,7,11,15,19番目のビットが、値が0の間引きビットである。   In this example, the number of main scanning pixels of the image after resolution conversion according to equation (1) is 20 × 454 ÷ 602 = 15 (truncated after the decimal point), so this value is applied to equation (8) to convert the resolution. When the pixel position c ′ in the main scanning direction of the subsequent image is sequentially increased from 0 to 14, pixels in the main scanning direction of the image before resolution conversion calculated from c = c ′ × 20 ÷ 15 (rounded down to the nearest decimal place) The position c value is 0, 1, 2, 4, 5, 6, 8, 9, 10, 12, 13, 14, 16, 17, 18. These bits are pixel bits having a value of 1, and the remaining third, seventh, eleventh, fifteenth and nineteenth bits are thinning bits having a value of zero.

副走査補間ラインイメージテーブルの作成ステップS212では、主走査補間ラインイメージテーブルの作成ステップS211と同様に、解像度変換前の画像の副走査ライン数Lと、解像度変換後の画像の副走査ライン数L’とに基づいて、副走査補間ラインイメージテーブルを作成する。副走査補間ラインイメージテーブルの画素ビットは、解像度変換後の画像の副走査ラインイメージに対応している解像度変換前の画像の副走査ラインイメージを表すラインであり、副走査補間ラインイメージテーブルの間引きビットは、解像度変換処理により解像度変換前の画像に間引く副走査ラインイメージを表すラインである。   In the sub scanning interpolation line image table creation step S212, as in the main scanning interpolation line image table creation step S211, the sub scanning line number L of the image before resolution conversion and the sub scanning line number L of the image after resolution conversion. A sub-scan interpolation line image table is created based on 'and. The pixel bit of the sub-scanning interpolation line image table is a line representing the sub-scanning line image of the image before resolution conversion corresponding to the sub-scanning line image of the image after resolution conversion, and the sub-scanning interpolation line image table is thinned out. A bit is a line representing a sub-scanning line image that is thinned out to an image before resolution conversion by resolution conversion processing.

次に、図8の高解像度から低解像度に解像度変換処理を行う解像度変換ステップS220について説明する。図10は、図9と同様に、主走査20画素数の602dpi解像度変換前の画像を454dpiの解像度変換後の画像に解像度変換する場合の動作を説明するものである。   Next, the resolution conversion step S220 for performing the resolution conversion process from the high resolution to the low resolution in FIG. 8 will be described. FIG. 10 illustrates the operation in the case of converting the resolution of an image before 602 dpi resolution conversion of 20 pixels in the main scanning into an image after 454 dpi resolution conversion, as in FIG. 9.

主走査補間ラインイメージテーブルの各ビットは、解像度変換前の画像主走査画素と一対一で対応し、ラインイメージテーブルの画素ビット(1の値のビット)は、解像度変換後の画像の画素に一対一で対応している。具体的な処理としては、解像度変換前の画像ラインイメージを左端から右端までラスタスキャンし、解像度変換前の画像の画素を主走査補間ラインイメージテーブルの画素ビットに対応している解像度変換後の画像の画素(1の値のビット)にそのままの値で書き込み、主走査補間ラインイメージテーブルの間引きビット(0の値のビット)に対応している解像度変換前の画像の画素は、間引く画素として間引く処理(解像度変換後の画像に書き込まない)を行う。   Each bit of the main scanning interpolation line image table has a one-to-one correspondence with the image main scanning pixel before resolution conversion, and a pixel bit (1 value bit) of the line image table corresponds to a pixel of the image after resolution conversion. It corresponds with one. Specifically, the image line image before the resolution conversion is raster scanned from the left end to the right end, and the pixels after the resolution conversion corresponding to the pixel bits of the main scanning interpolation line image table are converted from the pixels before the resolution conversion. The pixel of the image before resolution conversion corresponding to the thinning bit (bit of 0 value) corresponding to the thinning bit (bit of 0 value) in the main scanning interpolation line image table is thinned out as a thinning pixel. Processing (not written in the image after resolution conversion) is performed.

さらに、図11の解像度変換処理のフローチャートを用いて解像度変換処理を詳細に説明する。   Further, the resolution conversion process will be described in detail using the flowchart of the resolution conversion process of FIG.

まず、解像度変換前の画像の副走査ライン位置Nと、副走査補間ラインイメージテーブルのビット位置Mとを0番目にセットする(ステップS21、S22)。次に、N行目の解像度変換前の画像ラインイメージを読み出す(ステップS23)。さらに、副走査補間ラインイメージテーブルのMビット目を判断する(ステップS24)。Mビット目は、画素ビットの場合(ビット値が1)、読み込んだ解像度変換前の画像N行目ラインイメージを主走査補間ラインイメージテーブルに基づいて、前記された主走査方向解像度変換を行うことにより、N行目解像度変換前の画像ラインイメージに対応しているM行目解像度変換後の画像ラインイメージを得る(ステップS25)。   First, the sub-scan line position N of the image before resolution conversion and the bit position M of the sub-scan interpolation line image table are set to 0th (steps S21 and S22). Next, the image line image before resolution conversion of the Nth row is read (step S23). Further, the Mth bit of the sub-scanning interpolation line image table is determined (step S24). If the M-th bit is a pixel bit (bit value is 1), the read N-th line image before resolution conversion is subjected to the above-described resolution conversion in the main scanning direction based on the main scanning interpolation line image table. Thus, an image line image after the M-th row resolution conversion corresponding to the image line image before the N-th row resolution conversion is obtained (step S25).

さらに、M行目解像度変換後の画像のラインイメージを解像度変換後の画像に書き込むと同時に、副走査補間ラインイメージテーブルの位置Mに1を加算する(次の解像度変換後の画像のラインを指す)(ステップS26)。また、副走査補間ラインイメージテーブルのMビット目は、補間ビットの場合(ビット値が0)、主走査解像度変換しない。   Further, the line image of the image after the Mth line resolution conversion is written into the image after the resolution conversion, and at the same time, 1 is added to the position M of the sub-scanning interpolation line image table (refers to the line of the image after the next resolution conversion). (Step S26). Further, when the Mth bit of the sub-scanning interpolation line image table is an interpolation bit (bit value is 0), the main scanning resolution is not converted.

最後に、解像度変換前の画像ラインイメージのすべてを読み出したか否かを判断し(ステップS27)、解像度変換前の画像ラインイメージのすべてを読み出した場合には、解像度変換処理を終了する。残りが存在する場合には、解像度変換前の画像の副走査ライン位置Nに1を加算(次の解像度変換前の画像のラインを指す)(ステップS28)して、前記の処理で解像度変換前の画像ラインイメージのすべてを読み出すまで繰り返して行う。   Finally, it is determined whether or not all of the image line images before the resolution conversion have been read (step S27). If all of the image line images before the resolution conversion have been read, the resolution conversion process ends. If there is a remainder, 1 is added to the sub-scan line position N of the image before resolution conversion (refers to the line of the image before the next resolution conversion) (step S28), and before the resolution conversion by the above processing Repeat until all the image line images are read out.

この第2実施の形態の補間ラインイメージテーブルに基づいた解像度変換処理は、第1実施の形態の解像度変換処理と同様、主走査解像度変換処理と副走査解像度変換処理が互いに独立であるため、2次元である画像処理を2つの1次元信号処理に分解することができるので、画像処理の演算量を大幅に削減し、高速処理が可能となる。   In the resolution conversion process based on the interpolation line image table of the second embodiment, the main scanning resolution conversion process and the sub-scanning resolution conversion process are independent of each other, as in the resolution conversion process of the first embodiment. Since the image processing that is a dimension can be decomposed into two one-dimensional signal processing, the amount of calculation of the image processing is greatly reduced, and high-speed processing becomes possible.

また、第1実施の形態の解像度変換処理と同様に、解像度変換処理により1画素の差がある異なった2つの線幅の解像度変換後の画像(線幅ばらつき)になる問題がある。   Further, similarly to the resolution conversion process of the first embodiment, there is a problem that the resolution conversion process results in an image (line width variation) after resolution conversion of two different line widths having a difference of one pixel.

例えば、主走査方向10000個画素の602dpi解像度変換前の画像から454dpi解像度変換後の画像に解像度変換する場合には、454dpi解像度変換後の画像では、7541個画素になる。また、602dpi解像度変換前の画像は、10000個画素中互いに独立している2個黒画素の黒点1000個が存在するとすると、454dpi解像度変換後の画像に解像度変換後、画質の黒画素濃度を維持するためには、7541個画素中、1508個の画素を黒画素としなげればならないため、602dpiの解像度変換前の画像の独立した2個の黒点に対して、平均では、1.5個の黒画素になるが、実際の2値画像では、黒点が、1個の黒画素(小数点以下を切り捨てにより整数に整合)と2個(小数点以下を切り上げにより整数に整合)の黒画素の2種類(黒画素数の差は1個である)存在することになる。また、この2種類の黒点数の割合は、解像度変換前の画像と解像度変換後の画像の画素数の比率分となるため、1個黒画素の黒点数は、全体の50%、2個の黒画素の黒点数は全体の50%にしなければならない。   For example, in a case where resolution conversion is performed from an image before 602 dpi resolution conversion of 10,000 pixels in the main scanning direction to an image after 454 dpi resolution conversion, the image after 454 dpi resolution conversion has 7541 pixels. Also, if there are 1000 black dots of 2 black pixels that are independent of each other among 10000 pixels, the image before 602 dpi resolution conversion maintains the black pixel density of the image quality after resolution conversion to the image after 454 dpi resolution conversion. In order to achieve this, 1508 pixels out of 7541 pixels must be black pixels, so an average of 1.5 pixels for two independent black dots in the image before 602 dpi resolution conversion. In the actual binary image, there are two types of black pixels, one black pixel (matching to an integer by rounding down the decimal point) and two black pixels (matching to an integer by rounding up the decimal point). (The difference in the number of black pixels is 1). Further, since the ratio of the two types of black dots is the ratio of the number of pixels of the image before resolution conversion and the image after resolution conversion, the number of black dots for one black pixel is 50% of the total, The number of black dots of black pixels must be 50% of the total.

以上のことから、解像度変換前の画像の解像度と、解像度変換後の画像の解像度とが、整数倍にならない解像度変換処理の場合には、同じ解像度変換前の画像の線幅は、1画素の差がある2つの異なる線幅の解像度変換後の画像(線幅ばらつき問題)になることは避けられない。   From the above, in the case of resolution conversion processing in which the resolution of the image before resolution conversion and the resolution of the image after resolution conversion are not an integral multiple, the line width of the same image before resolution conversion is one pixel. It is inevitable that the images after resolution conversion of two different line widths having a difference (line width variation problem) will be unavoidable.

次に、上記で説明した整数倍とならない解像度画像間の解像度変換処理の場合には、線幅ばらつき問題を軽減するための線幅補正テーブル作成(図8のステップS230)について説明する。   Next, in the case of resolution conversion processing between resolution images that do not become integer multiples as described above, a description will be given of the creation of a line width correction table (step S230 in FIG. 8) for reducing the problem of line width variation.

線幅補正テーブルは、解像度変換前の画像の線幅(画素数)に対して、解像度変換処理により2種類の解像度変換後の画像線幅(画素数)を表すテーブルである。例えば、602dpiから454dpiに変換する場合には、解像度変換前の画像が2ライン線幅の場合には、解像度変換により、解像度変換後の画像の線幅ライン数は、理論上2×454÷602=1.50
になる。
The line width correction table is a table representing the image line width (number of pixels) after two types of resolution conversion by resolution conversion processing with respect to the line width (number of pixels) of the image before resolution conversion. For example, when converting from 602 dpi to 454 dpi, if the image before resolution conversion has a two-line line width, the number of line width lines in the image after resolution conversion is theoretically 2 × 454 ÷ 602 by resolution conversion. = 1.50
become.

従って、解像度変換後の画像には,1画素線幅(確率50%)と2画素線幅(確率50%)が存在する。この中で、1画素の線幅は細め線幅、2画素の線幅は太め線幅と定義する。そして、解像度変換前の画像の各画素数線幅について、解像度変換後の画像の細め線幅画素数と太め線幅画素数を求めたテーブルが、線幅補正テーブルである。   Therefore, the image after resolution conversion has one pixel line width (probability 50%) and two pixel line widths (probability 50%). Among these, the line width of one pixel is defined as a narrow line width, and the line width of two pixels is defined as a thick line width. A table for obtaining the number of thin line width pixels and the number of thick line width pixels of the image after resolution conversion for each pixel number line width of the image before resolution conversion is a line width correction table.

縦線線幅補正テーブルの作成(図8のステップS231)は、解像度変換前の画像の線幅画素数をn(整数)、解像度変換前の画像の縦線線幅に対応している解像度変換後の画像の縦線細め線幅画素数をm0(整数)、太め線幅画素数をm1(整数)と定義すると、m0とm1は、先述した第1の実施の形態と同様に、式(4)と式(5)とで決定される。
m0=n×W’÷W(小数点以下切捨てにより整数に整合) ・・・式(4)
m1=n×W’÷W(小数点以下切上げにより整数に整合) ・・・式(5)
尚、W’は、解像度変換後の画像の主走査方向画素数であり、Wは、解像度変換前の画像の主走査方向画素数である
In the creation of the vertical line width correction table (step S231 in FIG. 8), the number of line width pixels of the image before resolution conversion is n (integer), and the resolution conversion corresponding to the vertical line width of the image before resolution conversion. If the number of vertical line thin line width pixels in the subsequent image is defined as m0 (integer) and the number of thick line width pixels is defined as m1 (integer), m0 and m1 are expressed by the formula (1) as in the first embodiment described above. 4) and equation (5).
m0 = n × W ′ ÷ W (matched to an integer by rounding down the decimal point) (4)
m1 = n × W ′ ÷ W (matched to an integer by rounding up the decimal point) Expression (5)
Note that W ′ is the number of pixels in the main scanning direction of the image after resolution conversion, and W is the number of pixels in the main scanning direction of the image before resolution conversion.

ここで、nを1からWまで(解像度変換前の画像中存在可能なすべての縦線線幅画素数) 順に大きくさせていくことで、nに対応するm0とm1を求めることによって縦線線幅補正テーブルを作成することができる。   Here, by increasing n from 1 to W (the total number of pixels of the vertical line width that can exist in the image before resolution conversion) in order, the vertical line is obtained by obtaining m0 and m1 corresponding to n. A width correction table can be created.

図12は、上記式(4)と式(5)によって作成した、線幅20画素縦線の602dpi画像を454dpi画像に変換する場合の縦線線幅補正テーブルの例である。   FIG. 12 is an example of a vertical line width correction table in the case of converting a 602 dpi image having a line width of 20 pixels and a vertical line created to 454 dpi image by the above formulas (4) and (5).

横線線幅補正テーブルの作成(図8のステップS232)では、縦線線幅補正テーブルの作成と同様に、解像度変換前の画像の副走査ライン数Lと解像度変換後の画像の副走査ライン数L’を用いて作成する。解像度変換前の画像の横線線幅ライン数をs(整数)、解像度変換前の画像の横線線幅に対応している解像度変換後の画像の横線細め線幅ライン数をp0(整数)、太め線幅ライン数をp1(整数)と定義すると、p0とp1は、先述した第1の実施の形態と同様に式(6)と式(7)で決定される。
p0=s×L’÷L(小数点以下切捨てにより整数に整合) ・・・式(6)
p1=s×L’÷L(小数点以下切上げにより整数に整合) ・・・式(7)
尚、L’は、解像度変換後の画像の副走査ライン数であり、Lは、解像度変換前の画像の副走査ライン数である
In the creation of the horizontal line width correction table (step S232 in FIG. 8), similarly to the creation of the vertical line width correction table, the number of sub-scanning lines L of the image before resolution conversion and the number of sub-scanning lines of the image after resolution conversion. Created using L '. The number of horizontal line width lines of the image before resolution conversion is s (integer), the number of horizontal line thin line width lines of the image after resolution conversion corresponding to the horizontal line width of the image before resolution conversion is p0 (integer), thick If the number of line width lines is defined as p1 (integer), p0 and p1 are determined by equations (6) and (7) as in the first embodiment described above.
p0 = s × L ′ ÷ L (matched to an integer by rounding down the decimal point) (6)
p1 = s × L ′ ÷ L (matched to an integer by rounding up the decimal point) Expression (7)
Note that L ′ is the number of sub-scanning lines of the image after resolution conversion, and L is the number of sub-scanning lines of the image before resolution conversion.

ここで、sは2からLまで(解像度変換前の画像が存在可能なすべての横線線幅ライン数)順に大きくし、sに対するp0とp1を求めることによって横線線幅補正テーブルを作成することができる。   Here, s is increased in order from 2 to L (the number of all horizontal line width lines in which an image before resolution conversion can exist), and a horizontal line width correction table is created by obtaining p0 and p1 for s. it can.

線幅補正テーブルは、解像度変換前の画像が存在可能なすべての線幅が、解像度変換処理により解像度変換後の画像で変化した線幅を表す。   The line width correction table represents line widths in which all line widths in which an image before resolution conversion can exist have changed in the image after resolution conversion by resolution conversion processing.

最後に、図13を参照して線幅補正処理(図8のステップS240)について説明する。   Finally, the line width correction process (step S240 in FIG. 8) will be described with reference to FIG.

線幅補正処理は、解像度変換処理により解像度変換後の画像中の2種類の線幅を一種類の線幅に均一化する処理である。ここでは、解像度変換後の画像の線幅をすべて太め線幅に均一化する線幅補正処理モード1とすべて細め線幅に均一化する線幅補正処理モード2を定義する。   The line width correction process is a process for equalizing two types of line widths in the image after resolution conversion to one type of line width by resolution conversion processing. Here, a line width correction processing mode 1 in which all the line widths of the image after resolution conversion are made uniform to a thick line width and a line width correction processing mode 2 in which all the line widths are made to be thin line width are defined.

図13に示すように、解像度変換前の画像の横線線幅は、図9の補間ラインイメージテーブルを参照し、縦線線幅画素中の解像度変換後の画像画素である画素ビット数と間引くビット数を識別することができる。線幅補正処理の太め線幅に均一化する処理モード1の場合には、解像度変換後の画像の線幅が、太め線幅になっている場合は補正処理をせず、解像度変換後の画像の線幅が、細め線幅となっている場合に解像度変換後の画像線幅の右端の1画素を黒画素に変更して、太め線幅にする。一方、線幅補正処理の細め線幅に均一化する処理モード2の場合には、解像度変換後の画像の縦線線幅が細め線幅となっている場合は、補正処理をせず、解像度変換後の画像の線幅が太め線幅となっている場合に解像度変換後の画像線幅の右端の1画素を白画素に変更して、細め線幅の縦線にする。   As shown in FIG. 13, the horizontal line width of the image before resolution conversion is referred to the interpolation line image table of FIG. 9, and the number of pixel bits which are image pixels after resolution conversion in the vertical line width pixels is thinned out. Numbers can be identified. In the case of processing mode 1 in which the line width correction processing is made uniform to a thick line width, if the line width of the image after resolution conversion is a thick line width, the correction processing is not performed and the image after resolution conversion is performed. When the line width is a thin line width, one pixel at the right end of the image line width after resolution conversion is changed to a black pixel to make it a thick line width. On the other hand, in the case of the processing mode 2 in which the line width correction processing is uniformized to the thin line width, if the vertical line width of the image after resolution conversion is the thin line width, the correction processing is not performed and the resolution is not performed. When the line width of the image after conversion is a thick line width, one pixel at the right end of the image line width after resolution conversion is changed to a white pixel to make a vertical line with a thin line width.

横線線幅補正処理は、縦線線幅補正処理と同様に、解像度変換後の画像の横線線幅に対して、横線線幅補正テーブルを用いて線幅補正処理を行う。但し、線幅補正処理により1画素の変更処理は、解像度変換後の画像の横線の最下端のラインに行う。   Similar to the vertical line width correction process, the horizontal line width correction process performs a line width correction process on the horizontal line width of the image after resolution conversion by using a horizontal line width correction table. However, the process of changing one pixel by the line width correction process is performed on the lowermost line of the horizontal line of the image after resolution conversion.

本発明にかかる2値画像の解像度変換処理方法の特徴を示すフローチャートである。It is a flowchart which shows the characteristic of the resolution conversion processing method of the binary image concerning this invention. 本発明にかかる2値画像の解像度変換処理方法によって、低解像度画像から高解像度画像に解像度変換を行う場合の全体の流れを説明するためのフローチャートである。It is a flowchart for demonstrating the whole flow at the time of performing resolution conversion from a low resolution image to a high resolution image by the resolution conversion processing method of the binary image concerning this invention. 本発明にかかる2値画像の解像度変換処理方法において、低画像度画像から高解像度画像に解像度変換処理する際に用いる補間ラインイメージテーブルの説明図である。It is explanatory drawing of the interpolation line image table used when performing the resolution conversion process from a low image degree image to a high resolution image in the resolution conversion processing method of the binary image concerning this invention. 本発明にかかる2値画像の解像度変換処理方法における、主走査方向の低線密度画像から高線密度画像への解像度変換処理の説明図である。It is explanatory drawing of the resolution conversion process from the low linear density image of the main scanning direction to the high linear density image in the resolution conversion processing method of the binary image concerning this invention. 本発明にかかる2値画像の解像度変換処理方法における、低画像度画像から高解像度画像への解像度変換処理の動作を示すフローチャートである。It is a flowchart which shows the operation | movement of the resolution conversion process from the low image degree image to a high resolution image in the resolution conversion processing method of the binary image concerning this invention. 本発明にかかる2値画像の解像度変換処理方法において、低線密度画像から高線密度画像に解像度変換処理する場合に用いる線幅補正テーブルを示す説明図である。It is explanatory drawing which shows the line | wire width correction table used when the resolution conversion process is carried out from the low linear density image to the high linear density image in the resolution conversion processing method of the binary image concerning this invention. 本発明にかかる2値画像の解像度変換処理方法における、低線密度画像から高線密度画像への解像度変換処理の線幅補正処理の説明図である。It is explanatory drawing of the line | wire width correction process of the resolution conversion process from the low linear density image to the high linear density image in the resolution conversion processing method of the binary image concerning this invention. 本発明にかかる2値画像の解像度変換処理方法によって、高解像度画像から低解像度画像に解像度変換を行う場合の全体の流れを説明するためのフローチャートである。It is a flowchart for demonstrating the whole flow when performing resolution conversion from a high resolution image to a low resolution image by the resolution conversion processing method of the binary image concerning this invention. 本発明にかかる2値画像の解像度変換処理方法において、高画像度画像から低解像度画像に解像度変換処理する際に用いる補間ラインイメージテーブルの説明図である。It is explanatory drawing of the interpolation line image table used when performing the resolution conversion process from a high image degree image to a low resolution image in the resolution conversion processing method of the binary image concerning this invention. 本発明にかかる2値画像の解像度変換処理方法における、主走査方向の高線密度画像から低線密度画像への解像度変換処理の説明図である。It is explanatory drawing of the resolution conversion process from the high linear density image of a main scanning direction to the low linear density image in the resolution conversion processing method of the binary image concerning this invention. 本発明にかかる2値画像の解像度変換処理方法における、高画像度画像から低解像度画像への解像度変換処理の動作を示すフローチャートである。It is a flowchart which shows the operation | movement of the resolution conversion process from the high image degree image to the low resolution image in the resolution conversion processing method of the binary image concerning this invention. 本発明にかかる2値画像の解像度変換処理方法において、高解像度画像度から低解像度画像に解像度変換処理する際に用いる補間ラインイメージテーブルの説明図である。It is explanatory drawing of the interpolation line image table used when performing the resolution conversion process from a high resolution image degree to a low resolution image in the resolution conversion processing method of the binary image concerning this invention. 本発明にかかる2値画像の解像度変換処理方法における、高線密度画像から低線密度画像への解像度変換処理の線幅補正処理の説明図である。It is explanatory drawing of the line | wire width correction process of the resolution conversion process from the high linear density image to the low linear density image in the resolution conversion processing method of the binary image concerning this invention.

Claims (10)

解像度変換前の画像の主走査画素数と、解像度変換後の画像の主走査画素数との比率を算出し、
該算出した比率に基づいて、解像度変換後の画像の主走査画素数が解像度変換前の画像の主走査画素数より増加する画素を表す補間ビット、又は減少する画素を表す間引きビットを算出し、
前記補間ビットについては、左隣の画素と同一種類の画素とし、間引きビットについては、間引き処理を行うことを特徴とする2値画像の解像度変換処理方法。
Calculate the ratio between the number of main scanning pixels of the image before resolution conversion and the number of main scanning pixels of the image after resolution conversion,
Based on the calculated ratio, an interpolation bit representing a pixel in which the number of main scanning pixels of the image after resolution conversion increases from the number of main scanning pixels in the image before resolution conversion, or a thinning bit representing a decreasing pixel is calculated,
The binary image resolution conversion processing method is characterized in that the interpolation bit is the same type of pixel as the pixel on the left and the thinning bit is thinned.
前記主走査の解像度変換画像のビット補間動作を決定する主走査補間ラインイメージテーブルを作成し、該主走査補間ラインイメージテーブルの画素ビットに対応している解像度変換前画像の主走査画像を、前記主走査補間ラインイメージテーブルが補間ビットの場合には、左隣の画素と同一種類の画素とし、間引きビットの場合には、間引き処理を行うことを特徴とする請求項1に記載の2値画像の解像度変換処理方法。   A main scanning interpolation line image table for determining a bit interpolation operation of the resolution conversion image of the main scanning is created, and the main scanning image of the pre-resolution conversion image corresponding to the pixel bit of the main scanning interpolation line image table is 2. The binary image according to claim 1, wherein when the main scanning interpolation line image table is an interpolation bit, a pixel of the same type as the pixel on the left is used, and when it is a thinning bit, a thinning process is performed. Resolution conversion processing method. 解像度変換前の画像の副走査ライン数と、解像度変換後の画像の副走査ライン数との比率を算出し、
該算出した比率に基づいて、解像度変換後の画像の副走査ライン数が解像度変換前の画像の副走査ライン数より増加するラインを表す補間ビット、又は減少するラインを表す間引きビットを算出し、
前記補間ビットについては、直上の画素と同一種類の画素とし、間引きビットについては、間引き処理を行うことを特徴とする2値画像の解像度変換処理方法。
Calculate the ratio between the number of sub-scanning lines of the image before resolution conversion and the number of sub-scanning lines of the image after resolution conversion,
Based on the calculated ratio, an interpolation bit representing a line in which the number of sub-scanning lines of the image after resolution conversion is increased from the number of sub-scanning lines in the image before resolution conversion or a thinning bit representing a decreasing line is calculated,
A binary image resolution conversion processing method, wherein the interpolation bit is the same type of pixel as the pixel immediately above, and the thinning bit is thinned.
前記副走査の解像度変換画像のライン補間動作を決定する副走査補間ラインイメージテーブルを作成し、該副走査補間ラインイメージテーブルの画素ビットに対応している解像度変換前画像の副走査画像を、前記副走査補間ラインイメージテーブルが補間ビットの場合には、直上の画素と同一種類の画素とし、間引きビットの場合には、間引き処理を行うことを特徴とする請求項3に記載の2値画像の解像度変換処理方法。   A sub-scanning interpolation line image table for determining a line interpolation operation of the resolution-converted image of the sub-scanning is created, and the sub-scanning image of the pre-resolution conversion image corresponding to the pixel bit of the sub-scanning interpolation line image table is 4. The binary image according to claim 3, wherein when the sub-scanning interpolation line image table is an interpolation bit, the pixel is the same type as the pixel immediately above, and when the sub-scanning interpolation line image table is a decimation bit, a decimation process is performed. Resolution conversion processing method. 互いに独立して相関関係のない請求項1又は2に記載の2値画像の解像度変換処理方法と、請求項3又は4に記載の2値画像の解像度変換処理方法とを組み合わせたことを特徴とする2値画像の解像度変換処理方法。   The binary image resolution conversion processing method according to claim 1 or 2 that is independent of each other and has no correlation, and the binary image resolution conversion processing method according to claim 3 or 4 are combined. A binary image resolution conversion processing method. 前記算出した解像度変換前の画像の主走査画素数と解像度変換後の画像の主走査画素数との比率に基づき、解像度変換後の画像での縦線数を、小数点以下を切り捨てて整数化した画素数である縦線細めモード線幅画素数と、小数点以下を切り上げて整数化した画素数である縦線太めモード線幅画素数を算出し、
該解像度変換処理によって出力される画像を、前記縦線細めモード線幅か、縦線太めモード線幅かの指定により、指定された線幅モードに均一に処理することを特徴とする請求項1又は2に記載の2値画像の解像度変換処理方法。
Based on the ratio between the calculated number of main scanning pixels of the image before resolution conversion and the number of main scanning pixels of the image after resolution conversion, the number of vertical lines in the image after resolution conversion is rounded down to an integer. Calculate the number of vertical line thin mode line width pixels, which is the number of pixels, and the number of vertical line thick mode line width pixels, which is the number of pixels rounded up to the nearest whole number,
2. The image output by the resolution conversion processing is uniformly processed into a designated line width mode by designating the vertical line thin mode line width or the vertical line thick mode line width. Or a binary image resolution conversion processing method described in 2;
前記算出した縦線細めモード線幅画素数、及び縦線太めモード線幅画素数に基づく縦線線幅補正テーブルを作成し、
前記縦線細めモード線幅か、縦線太めモード線幅かの指定により、該縦線線幅補正テーブルを用いて指定された線幅モードに均一に処理することを特徴とする請求項6に記載の2値画像の解像度変換処理方法。
Create a vertical line width correction table based on the calculated vertical line thin mode line width pixel number and vertical line thick mode line width pixel number,
7. The processing according to claim 6, wherein the processing is uniformly performed in the line width mode specified by using the vertical line width correction table by designating the vertical line thin mode line width or the vertical line thick mode line width. A resolution conversion processing method of the binary image described.
前記算出した解像度変換前の画像の副走査ライン数と解像度変換後の画像の副走査ライン数との比率に基づき、解像度変換後の画像でのライン数を、小数点以下を切り捨てて整数化したライン数である横線細めモード線幅ライン数と、小数点以下を切り上げて整数化したライン数である横線太めモード線幅ライン数を算出し、
該解像度変換処理によって出力される画像を、前記横線細めモード線幅か、横線太めモード線幅かの指定により、指定された線幅モードに均一に処理することを特徴とする請求項1又は2に記載の2値画像の解像度変換処理方法。
Based on the ratio between the calculated sub-scan line number of the image before resolution conversion and the sub-scan line number of the image after resolution conversion, the number of lines in the image after resolution conversion is converted to an integer by rounding off the decimal part. Calculate the number of horizontal line thin mode line width lines and the number of horizontal line thick mode line width lines that are rounded up to the nearest whole number.
3. The image output by the resolution conversion processing is uniformly processed into a designated line width mode by designating the horizontal line thin mode line width or the horizontal line thick mode line width. 2. A resolution conversion processing method for a binary image described in 1.
前記算出した横線細めモード線幅ライン数、及び横線太めモード線幅ライン数に基づく横線線幅補正テーブルを作成し、
前記横線細めモード線幅か、横線太めモード線幅かの指定により、該横線線幅補正テーブルを用いて指定された線幅モードに均一に処理することを特徴とする請求項8に記載の2値画像の解像度変換処理方法。
Create a horizontal line width correction table based on the calculated horizontal line thin mode line width line number and horizontal line thick mode line width line number,
9. The uniform processing according to claim 8, wherein the processing is uniformly performed in the line width mode specified by using the horizontal line width correction table by designating the horizontal line thin mode line width or the horizontal line thick mode line width. Value image resolution conversion processing method.
互いに独立して相関関係のない請求項6又は7に記載の2値画像の解像度変換処理方法と、請求項8又は9に記載の2値画像の解像度変換処理方法とを組み合わせたことを特徴とする2値画像の解像度変換処理方法。   The binary image resolution conversion processing method according to claim 6 or 7, which is independent of each other and has no correlation, and the binary image resolution conversion processing method according to claim 8 or 9, are combined. A binary image resolution conversion processing method.
JP2006089735A 2006-03-29 2006-03-29 Resolution conversion processing method of binary image Pending JP2007265055A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2006089735A JP2007265055A (en) 2006-03-29 2006-03-29 Resolution conversion processing method of binary image

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2006089735A JP2007265055A (en) 2006-03-29 2006-03-29 Resolution conversion processing method of binary image

Publications (1)

Publication Number Publication Date
JP2007265055A true JP2007265055A (en) 2007-10-11

Family

ID=38637973

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2006089735A Pending JP2007265055A (en) 2006-03-29 2006-03-29 Resolution conversion processing method of binary image

Country Status (1)

Country Link
JP (1) JP2007265055A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012095078A (en) * 2010-10-27 2012-05-17 Nec Engineering Ltd Pixel number conversion method, program for executing the same and pixel number converter
JP2012095079A (en) * 2010-10-27 2012-05-17 Nec Engineering Ltd Pixel number conversion method, program for executing the same and pixel number converter
WO2023246828A1 (en) * 2022-06-24 2023-12-28 北京集创北方科技股份有限公司 Led display screen driving method, system and apparatus, and device and medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS60246485A (en) * 1984-05-21 1985-12-06 Matsushita Electric Ind Co Ltd Magnifying and reducing device of picture
JPS63228272A (en) * 1987-03-17 1988-09-22 Nec Software Ltd Converter for linear density of binary picture
JPH08251399A (en) * 1995-03-09 1996-09-27 Hitachi Ltd Image variable power processing system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS60246485A (en) * 1984-05-21 1985-12-06 Matsushita Electric Ind Co Ltd Magnifying and reducing device of picture
JPS63228272A (en) * 1987-03-17 1988-09-22 Nec Software Ltd Converter for linear density of binary picture
JPH08251399A (en) * 1995-03-09 1996-09-27 Hitachi Ltd Image variable power processing system

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012095078A (en) * 2010-10-27 2012-05-17 Nec Engineering Ltd Pixel number conversion method, program for executing the same and pixel number converter
JP2012095079A (en) * 2010-10-27 2012-05-17 Nec Engineering Ltd Pixel number conversion method, program for executing the same and pixel number converter
WO2023246828A1 (en) * 2022-06-24 2023-12-28 北京集创北方科技股份有限公司 Led display screen driving method, system and apparatus, and device and medium

Similar Documents

Publication Publication Date Title
JPH07226841A (en) Picture processor
US7460276B2 (en) Systems and methods for rank-order error diffusion image processing
JP3844808B2 (en) Coding method for delayed anti-aliasing
US7081972B2 (en) Image processing apparatus and image processing method
JP5641822B2 (en) Image processing apparatus and method
JP2007265055A (en) Resolution conversion processing method of binary image
JP5124268B2 (en) Method and apparatus for generating a dither mask by interpolation between preferred patterns
US20160026904A1 (en) Image processing apparatus, image processing method, and computer-readable recording medium
JP3396992B2 (en) Image processing method and apparatus
JP3979372B2 (en) Image processing apparatus, image processing method, and image processing program
JP4479663B2 (en) Image processing apparatus, image processing method, and image processing program for halftone processing using fixed cells
US6757079B1 (en) Method and apparatus for forming multi-level dither images from an input digital image
US20030020935A1 (en) Image processing method and apparatus
JP2000332995A (en) Method for generating image data and recording medium
JP4355706B2 (en) Resolution conversion processing method for binary image
JP2004304543A (en) Halftoning processing method and halftoning processing system
JP3949642B2 (en) Image processing device
JP2900907B2 (en) Image processing device
JP2008306427A (en) Device and method for processing image
JP4238673B2 (en) Image processing apparatus, image processing method, and image processing program
JP4469511B2 (en) Image processing method
JP2002290734A (en) Image processing method
JP4496765B2 (en) Image processing apparatus, image processing method, and image processing program
JP5018878B2 (en) Resolution conversion program, resolution conversion method, and resolution conversion apparatus
JP2012109880A (en) Image encoding method, image encoding device, image decoding method, and image decoding device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20071012

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20100715

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20100721

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20101116