Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP4355706B2 - Resolution conversion processing method for binary image - Google Patents
[go: Go Back, main page]

JP4355706B2 - Resolution conversion processing method for binary image - Google Patents

Resolution conversion processing method for binary image Download PDF

Info

Publication number
JP4355706B2
JP4355706B2 JP2006083160A JP2006083160A JP4355706B2 JP 4355706 B2 JP4355706 B2 JP 4355706B2 JP 2006083160 A JP2006083160 A JP 2006083160A JP 2006083160 A JP2006083160 A JP 2006083160A JP 4355706 B2 JP4355706 B2 JP 4355706B2
Authority
JP
Japan
Prior art keywords
image
pixel
resolution conversion
pixels
probability
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.)
Expired - Lifetime
Application number
JP2006083160A
Other languages
Japanese (ja)
Other versions
JP2007259258A (en
Inventor
東憲 金
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 JP2006083160A priority Critical patent/JP4355706B2/en
Publication of JP2007259258A publication Critical patent/JP2007259258A/en
Application granted granted Critical
Publication of JP4355706B2 publication Critical patent/JP4355706B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Images

Landscapes

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

Description

本発明は、2値画像の解像度変換処理方法に関し、特に、網点画像を低解像度画像から高解像度画像に変換する2値画像の解像度変換処理方法に関する。   The present invention relates to a binary image resolution conversion processing method, and more particularly to a binary image resolution conversion processing method for converting a halftone image from a low resolution image to a high resolution image.

従来の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次元離散フーリエ変換することにより画像処理の演算量が多くなるため、処理に長時間を要するという問題があった。   However, in the conventional method described in the above-mentioned document etc., since the processing is based on information such as period value conversion and black pixel ratio, the image size after resolution conversion, black pixel density, pixel position, etc. There was a problem that the resolution could not be converted while maintaining it. In addition, the method described in Non-Patent Document 1 has a problem in that a long time is required for processing because the amount of image processing is increased by performing two-dimensional discrete Fourier transform and inverse two-dimensional discrete Fourier transform.

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

上記目的を達成するため、本発明は、2値画像の解像度変換処理方法であって、2値画像を低解像度画像から高解像度画像に変換するにあたって、解像度変換後の画素数が、解像度変換前の画像の画素数の整数倍ではない場合には、解像度変換前と解像度変換後の画像の画素数比率を用いた画素座標計算により、解像度変換前の画像の画素の座標と、該画素に隣接する画素の座標に対応する解像度変換後の画像の画素座標の整数部分と小数点以下の部分を算出し、該小数点以下の部分を線幅を表現するための画素の画素数変化量の確率値に変換し、該確率値を用いたランダマイズ補正処理によって解像度変換後の線画像の黒画素又は白画素の位置を決定する画素の補間処理を行うことを特徴とする。 In order to achieve the above object, the present invention is a binary image resolution conversion processing method, and when converting a binary image from a low resolution image to a high resolution image, the number of pixels after resolution conversion is the same as before resolution conversion. If it is not an integer multiple of the number of pixels of the image, the pixel coordinate calculation using the pixel number ratio of the image before and after resolution conversion and the pixel coordinates of the image before resolution conversion and the adjacent pixels The integer part of the pixel coordinates of the image after resolution conversion corresponding to the coordinates of the pixel to be converted and the part after the decimal point are calculated, and the part after the decimal point is used as a probability value of the amount of change in the number of pixels for expressing the line width. A pixel interpolation process is performed to determine the position of a black pixel or a white pixel of a line image after resolution conversion by randomization correction processing using the probability value .

そして、本発明によれば、従来のように、2値画像の画像情報(ある領域内の黒白画素の分布情報)に頼らず、画素座標情報に基づいて画素毎に解像度変換処理を行うため、黒又は白画素に偏った処理結果となることを防止し、モアレ等が発生することを回避することができる。すなわち、黒画素と白画素に関係なく、同じ位置にある画素では、同じ解像度変換処理となる(処理対象画素と領域内の黒白画素の分布と無相関である)。また、解像度変換前と変換後の画像の画素位置がずれる状況下でも、モアレを解消し、黒画素濃度を適正に維持することができる。 And according to the present invention, the resolution conversion process is performed for each pixel based on the pixel coordinate information without relying on the image information of the binary image (distribution information of the black and white pixels in a certain area) as in the prior art. It is possible to prevent the processing result from being biased toward black or white pixels and to avoid the occurrence of moire or the like. That is, regardless of the black pixel and the white pixel, the pixels at the same position are subjected to the same resolution conversion process (which is uncorrelated with the distribution of the processing target pixel and the black and white pixels in the region). In addition, moire can be eliminated and the black pixel density can be maintained appropriately even under a situation where the pixel positions of the image before and after resolution conversion are shifted.

前記2値画像の解像度変換処理方法において、前記確率を用いたランダマイズ補正処理による画素の補間処理を、主走査方向と副走査方向とで各々独立して行うことができる。これによって、2次元である画像処理を2つの1次元処理に分解することができ、演算量は、従来のx2から2xまで減少可能となり、高速の変換処理が可能となる。その結果、解像度変換前の画像と解像度変換後の画像の大きさを保ちながら、解像度変換処理による画質の劣化を抑え、高画質かつ高速な2値画像の解像度変換を行うことができる。 In the resolution conversion processing method of the binary image, the interpolation pixel by randomizing the correction processing using the previous SL probability, it is possible to perform each independently in the main scanning direction and the sub-scanning direction. As a result, two-dimensional image processing can be decomposed into two one-dimensional processes, and the amount of computation can be reduced from the conventional x 2 to 2x, enabling high-speed conversion processing. As a result, while maintaining the size of the image before the resolution conversion and the image after the resolution conversion, it is possible to suppress the deterioration of the image quality due to the resolution conversion process and perform the high-quality and high-speed binary image resolution conversion.

前記2値画像の解像度変換処理方法において、前記2値画像は、網点画像であってもよく、新聞紙面画像等の2値画像を低解像度から高解像度に解像度変換する際などに、本発明にかかる処理方法を適用することができる。   In the binary image resolution conversion processing method, the binary image may be a halftone image, and the present invention is used when converting a binary image such as a newspaper image from a low resolution to a high resolution. The processing method concerning can be applied.

以上説明したように、本発明にかかる2値画像の解像度変換方法によれば、網点画像等を低解像度画像から高解像度画像に変換するにあたって、短時間で高画質の画像を得ることが可能となる。   As described above, according to the binary image resolution conversion method of the present invention, a high-quality image can be obtained in a short time when a halftone image or the like is converted from a low-resolution image to a high-resolution image. It becomes.

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

図1に示すように、本発明では、2値画像の解像度を変換するにあたって、解像度変換前の画像の画素と、その近傍(隣接した右、下)の画素の座標に基づいて、解像度変換前の画像の画素に対応する解像度変換後の画像の画素を求める解像度変換処理の補間処理(ステップS1)と、解像度変換処理の補間処理により解像度変換後の画像で1画素以下の範囲で生じる画素位置ずれを補正するため、主、副走査方向について各々独立して画素の位置ずれを補正する確率付きランダマイズ補正処理(ステップS2)とを行うことを特徴とする。   As shown in FIG. 1, in the present invention, when converting the resolution of a binary image, before converting the resolution, based on the coordinates of the pixel of the image before the resolution conversion and its neighboring (adjacent right and lower) pixels. The pixel position generated in the range of 1 pixel or less in the resolution-converted image by the interpolation process (step S1) of the resolution conversion process for obtaining the pixel of the image after the resolution conversion corresponding to the pixel of the image In order to correct the deviation, randomized correction processing with probability (step S2) for correcting the positional deviation of the pixels independently in the main and sub-scanning directions is performed.

次に、本発明にかかる2値画像の解像度変換処理方法の全体の処理の流れについて、図2を参照しながら説明する。   Next, the overall processing flow of the binary image resolution conversion processing method according to the present invention will be described with reference to FIG.

まず、解像度変換前の画像の寸法情報と、解像度変換後の画像の解像度により、解像度変換後の画像の寸法情報を得て(ステップS1000)、解像度変換処理の補間処理(ステップS1100)を行う。その後、確率付きランダマイズ補正処理(ステップS1200)を行う。   First, the dimension information of the image after resolution conversion is obtained from the dimension information of the image before resolution conversion and the resolution of the image after resolution conversion (step S1000), and interpolation processing (step S1100) of resolution conversion processing is performed. After that, randomized correction processing with probability (step S1200) is performed.

ここで、確率付きランダマイズ補正処理(ステップS1200)は、主走査方向の確率付きランダマイズ補正処理(ステップS1210)と、副走査方向の確率付きランダマイズ補正処理(ステップS1220)とを含んでいる。さらに、主走査方向の確率付きランダマイズ補正処理(ステップS1210)は、主走査方向確率取得処理(ステップS1211)と、主走査方向確率発生関数処理(ステップS1212)と、主走査方向ランダマイズ補正処理(ステップS1213)とを含み、副走査方向の確率付きランダマイズ補正処理(ステップS1220)は、副走査方向確率取得処理(ステップS1221)と、副走査方向確率発生関数処理(ステップS1222)と、副走査方向ランダマイズ補正処理(ステップS1223)とを含む。   Here, the randomization correction processing with probability (step S1200) includes randomization correction processing with probability in the main scanning direction (step S1210) and randomization correction processing with probability in the sub-scanning direction (step S1220). Further, random correction processing with probability in the main scanning direction (step S1210) includes main scanning direction probability acquisition processing (step S1211), main scanning direction probability generation function processing (step S1212), and main scanning direction randomization correction processing (step S1210). S1213), randomization correction processing with probability in the sub-scanning direction (step S1220), sub-scanning direction probability acquisition processing (step S1221), sub-scanning direction probability generation function processing (step S1222), and sub-scanning direction randomization Correction processing (step S1223).

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

まず、解像度変換後の画像の寸法情報を得るための図2のステップS1000では、解像度変換前の画像の寸法情報を、走査画素数W、副走査ライン数L、及び解像度Rとし、解像度変換後の画像の寸法情報を、主走査画素数W’、副走査ライン数L’、及び解像度R’とすると、解像度変換前の画像のW、L、Rと、解像度変換後の画像のR’から、解像度変換後の画像情報W’、L’を以下の式(1)及び式(2)より算出する。   First, in step S1000 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 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 resolution conversion are calculated from the following equations (1) and (2).

W’= W×R’÷R(小数点以下切り捨て) ・・・式(1)
L’= L×R’÷R(小数点以下切り捨て) ・・・式(2)
W ′ = W × R ′ ÷ R (rounded down to the nearest decimal point) (1)
L ′ = L × R ′ ÷ R (rounded down to the nearest decimal point) (2)

次に、解像度変換処理の補間処理(図2のステップS1100)について、図3を参照しながら説明する。   Next, interpolation processing (step S1100 in FIG. 2) of resolution conversion processing will be described with reference to FIG.

まず、画像の画素座標を定義する。大きさW×Lの解像度変換前の画像の画素の座標は、画像の左上端の画素座標を(0,0)、画像の右下端の画素を(W−1,L−1)と定義する。また、W’×L’の解像度変換後の画像の画素の座標は、解像度変換前の画像と同様に、画像の左上端の画素座標を(0,0)画像の右下端の画素を(W’−1,L’−1)と定義する。   First, the pixel coordinates of the image are defined. As for the coordinates of the pixel of the image before the resolution conversion of size W × L, the pixel coordinate at the upper left corner of the image is defined as (0, 0) and the pixel at the lower right corner of the image is defined as (W−1, L−1). . Also, the pixel coordinates of the image after W ′ × L ′ resolution conversion are the same as those of the image before resolution conversion, the pixel coordinates of the upper left corner of the image are (0, 0), and the pixel of the lower right corner of the image is (W '-1, L'-1).

次に、解像度変換前の画像の画素座標から、対応する解像度変換後の画像の画素座標を求める。   Next, the pixel coordinates of the corresponding image after resolution conversion are obtained from the pixel coordinates of the image before resolution conversion.

図3に示すように、解像度変換前の画像画素の座標s(m,n)に対応する解像度変換後の画像画素の座標s’(m’,n’)は、以下の式(3)と式(4)を用いて求めることができる。   As shown in FIG. 3, the coordinates s ′ (m ′, n ′) of the image pixel after resolution conversion corresponding to the coordinates s (m, n) of the image pixel before resolution conversion are expressed by the following equation (3): It can be determined using equation (4).

m’=m×W’÷W(小数点以下切り捨て) ・・・式(3)
n’=n×L’÷L(小数点以下切り捨て) ・・・式(4)
m ′ = m × W ′ ÷ W (rounded down to the nearest decimal point) ・ ・ ・ Equation (3)
n ′ = n × L ′ ÷ L (rounded down to the nearest decimal point) (4)

さらに、上記の式(3)及び式(4)を用いた解像度変換の補間処理について説明する。   Further, resolution conversion interpolation processing using the above equations (3) and (4) will be described.

図3において、解像度変換前の画像画素s(m,n)と、その近傍の右側の画素s0(m+1,n)、及び下側の画素s1(m,n+1)は、式(3)及び(4)を用いて対応する解像度変換後の画像の画素座標s’(m’,n’),s0’(m0,n0)と、s1’(m1,n1)として求められる。解像度変換前の画像画素s(m,n)に対応する解像度変換後の画像画素は、解像度変換後の画像画素s’(m’,n’)を左上にして、画素s0’(m0,n0)とs1’(m1,n1)に囲まれた画素領域(画素s0’がある列の画素とs1’がある行の画素は含まない)であるため、この領域内の画素をすべて解像度変換前の画像の画素s(m,n)と同じ画素に変換する。この処理が解像度変換の補間処理である。   In FIG. 3, an image pixel s (m, n) before resolution conversion, a right pixel s0 (m + 1, n) in the vicinity thereof, and a lower pixel s1 (m, n + 1) are expressed by equations (3) and ( 4) is used to obtain pixel coordinates s ′ (m ′, n ′), s0 ′ (m0, n0) and s1 ′ (m1, n1) of the corresponding image after resolution conversion. The image pixel after resolution conversion corresponding to the image pixel s (m, n) before resolution conversion is the pixel s0 ′ (m0, n0) with the image pixel s ′ (m ′, n ′) after resolution conversion at the upper left. ) And s1 ′ (m1, n1) (the pixel in the column with pixel s0 ′ and the pixel in the row with s1 ′ are not included). To the same pixel as the pixel s (m, n) of the image. This process is an interpolation process for resolution conversion.

同様に、解像度変換前の画像をラスタスキャンして、画素(0,0)から画素(W−1,L−1)まで、解像度変換前の画像の画素毎に対応する解像度変換後の画像の画素を得る処理を行い、解像度変換における画素の補間処理を全画素に対して行う。   Similarly, the image before resolution conversion is raster-scanned, and the resolution-converted image corresponding to each pixel of the image before resolution conversion from pixel (0, 0) to pixel (W-1, L-1) is displayed. Processing for obtaining pixels is performed, and pixel interpolation processing in resolution conversion is performed for all pixels.

また、解像度変換後の画像が解像度変換前の画像の画質(画像情報)を最大限に維持するためには、解像度変換後の画像の大きさ、黒画素の濃度及び各画素の位置情報等が解像度変換前の画像と可能な限り変化しないことが必要であるが、解像度変換前と変換後の画像の解像度の変更が整数倍にならない場合には、解像度変換前と変換後画像の画素位置がずれるという問題がある。この問題は、解像度変換後の画像にモアレが発生する原因となる。   In addition, in order to maintain the image quality (image information) of the image before resolution conversion to the maximum after the resolution conversion, the size of the image after resolution conversion, the density of black pixels, the position information of each pixel, etc. It is necessary to change as little as possible from the image before resolution conversion. However, if the change in resolution of the image before and after resolution conversion does not become an integral multiple, the pixel position of the image before and after conversion is not changed. There is a problem of shifting. This problem causes moiré in the image after resolution conversion.

例えば、解像度が454dpiで主走査方向に10000個の画素の画像を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, when converting an image of 10000 pixels in the main scanning direction with a resolution of 454 dpi to a resolution of 602 dpi, the image after resolution conversion to 602 dpi results in 13200 pixels. Also, if the image before resolution conversion of 454 dpi includes 1000 black pixels independent from each other in 10000 pixels, the image after resolution conversion to 602 dpi maintains the black pixel density. In this case, 1320 pixels out of 13200 pixels must be black pixels. Therefore, the average of 1.32 black pixels for one independent black point of the image before the resolution conversion of 454 dpi is 1.32 black pixels on the average, but in the actual binary image, one black point (by rounding off the decimal point) There are two types of black pixels (matching to integers) and two (matching to integers by rounding up the decimal point) black pixels (the difference in the number of black pixels is one). 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% of the whole. The number of black dots of the two black pixels must be 32% of the total.

602dpi画像の1個の黒画素の黒点では、黒点の位置が黒画素の中心(座標1.0)にあるため、理論上の計算では、454dpi画像の黒画素位置との誤差は、1.0−1.32=−0.32個(単位画素)になる。すなわち、図4に示すように、解像度変換後の画像の画素位置は、解像度変換前の画像の画素位置より0.32個画素分左に寄っていることになる。また、602dpi画像の2個の黒画素の黒点数では、黒点の位置が2個黒画素の中心(座標1.5)にあるため、理論上の計算では、454dpi画像の黒画素位置との誤差は、1.5−1.32=+0.18個(単位画素)になる。すなわち、解像度変換後の画像の画素位置は、解像度変換前の画像の画素位置より0.18個画素分右に寄っていることになる。以上のことから、解像度変換前の画像の解像度と、解像度変換後の画像の解像度とが、整数倍にならない解像度変換処理の場合には、解像度変換前と変換後の画像の画素位置がずれるという問題を回避することはできない。   At the black point of one black pixel in the 602 dpi image, the position of the black point is at the center (coordinate 1.0) of the black pixel. Therefore, in the theoretical calculation, the error from the black pixel position of the 454 dpi image is 1.0. −1.32 = −0.32 (unit pixel). That is, as shown in FIG. 4, the pixel position of the image after resolution conversion is shifted to the left by 0.32 pixels from the pixel position of the image before resolution conversion. In addition, in the number of black dots of two black pixels in the 602 dpi image, the black point position is at the center of the two black pixels (coordinate 1.5). Therefore, the theoretical calculation shows an error from the black pixel position of the 454 dpi image. Becomes 1.5−1.32 = + 0.18 (unit pixel). That is, the pixel position of the image after resolution conversion is 0.18 pixels to the right of the pixel position of the image before resolution conversion. 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 do not become an integral multiple, the pixel positions of the image before and after conversion are shifted. The problem cannot be avoided.

次に、上記のように、解像度変換前と変換後の画像の解像度の変更が整数倍とならない解像度変換処理に用いる、解像度変換前と変換後の画像の画素位置がずれる問題を解消するための処理である図2の確率付きランダマイズ補正処理(ステップS1200)について詳細に説明する。   Next, as described above, it is used for resolution conversion processing in which the change in the resolution of the image before and after the resolution conversion does not become an integral multiple, in order to solve the problem that the pixel position of the image before and after the resolution conversion is shifted. The randomization correction process with probability (step S1200) in FIG. 2, which is the process, will be described in detail.

まず、ランダマイズに画素を付加することにより、2値画像中の小数点以下の画素を表す方法について図5を参照しながら説明する。   First, a method of expressing pixels after the decimal point in a binary image by adding pixels to randomization will be described with reference to FIG.

同図の最左端は、10個の画素による線幅が1画素の縦線である。最右端では、20個の画素による線幅が2画素の縦線である。線幅1画素の縦線と、線幅2画素の縦線の間には、最左端の1画素縦線の右に2個の黒画素、5個の黒画素と8個の黒画素を付加した縦線が示されている。濃度上は、付加した黒画素数によって、元線幅1画素の縦線が、線幅1.2画素の縦線、線幅1.5画素の縦線と線幅1.8画素の縦線になる。すなわち、実際の2値画像で実現できない1画素以下になった線幅の差は、周辺の画素を黒画素に変えることにより数字的(画像演算できるようになる)に表現できることになる。解像度変換後の画像画素毎に、ランダマイズに付加する画素を制御することにより、本来2値画像で表現できない1画素以下の画素(小数点以下の画素)を見かけ上の濃度で表現することが可能となる。   The leftmost end of the figure is a vertical line having a line width of 10 pixels by 10 pixels. At the rightmost end, the line width of 20 pixels is a vertical line of 2 pixels. Between the vertical line with a line width of 1 pixel and the vertical line with a line width of 2 pixels, two black pixels, 5 black pixels, and 8 black pixels are added to the right of the leftmost 1-pixel vertical line. Vertical lines are shown. In terms of density, depending on the number of added black pixels, a vertical line with a source line width of 1 pixel is a vertical line with a line width of 1.2 pixels, a vertical line with a line width of 1.5 pixels, and a vertical line with a line width of 1.8 pixels become. That is, a line width difference of 1 pixel or less that cannot be realized with an actual binary image can be expressed numerically (becomes image calculation) by changing the surrounding pixels to black pixels. By controlling the pixels to be added to randomization for each image pixel after resolution conversion, it is possible to express pixels of 1 pixel or less (pixels after the decimal point) that cannot be originally expressed in a binary image with an apparent density. Become.

次に、ランダマイズに付加する画素を制御するパラメータである確率について説明する。線幅1.2画素の縦線を例にとると、10個の黒画素における線幅1画素の縦線は、右に隣接した10個の白画素の白画素毎に確率0.2で黒画素に変換することにより、全体の10個の白画素中2個画素が黒画素になる。結果的に、濃度上では、上記の線幅1.2画素の縦線になる。従って、黒画素と隣接している白画素(あるいは、白画素に隣接している黒画素)をランダマイズかつ確率(ランダマイズに付加する画素の出現確率を調整する)を参照して変換処理する確率付きランダマイズ補正処理により、理論上では、任意の小数点以下の線幅を2値画像で表現することができる。   Next, the probability that is a parameter for controlling a pixel to be added to randomization will be described. Taking a vertical line with a line width of 1.2 pixels as an example, a vertical line with a line width of 1 pixel in 10 black pixels is black with a probability of 0.2 for each white pixel of 10 white pixels adjacent to the right. By converting into pixels, 2 pixels out of the total 10 white pixels become black pixels. As a result, in terms of density, the above vertical line having a line width of 1.2 pixels is obtained. Therefore, with the probability that the white pixel adjacent to the black pixel (or the black pixel adjacent to the white pixel) is randomized and converted with reference to the probability (adjusting the appearance probability of the pixel added to the randomization). By randomization correction processing, a line width below an arbitrary decimal point can be expressed by a binary image in theory.

次に、図2の主走査方向の確率付きランダマイズ補正処理ステップS1210について説明する。   Next, the randomization correction processing step S1210 with probability in the main scanning direction of FIG. 2 will be described.

まず、図2の主走査方向確率取得処理(ステップS1211)について説明する。この処理では、解像度変換処理の補間処理後の画像の画素座標に対応する解像度変換処理の補間処理前の画像の画素座標を推算し、推算された解像度変換処理の補間処理前の画像の画素座標から、解像度変換処理の補間処理前と補間処理後の画像の画素位置のずれ量を得る。ここで得られた画素位置のずれ量がランダマイズ補正処理の確率パラメータとなる。   First, the main scanning direction probability acquisition process (step S1211) in FIG. 2 will be described. In this process, the pixel coordinates of the image before the interpolation process of the resolution conversion process corresponding to the pixel coordinates of the image after the interpolation process of the resolution conversion process are estimated, and the estimated pixel coordinates of the image before the interpolation process of the resolution conversion process From this, the amount of deviation between the pixel positions of the image before and after the interpolation processing of the resolution conversion processing is obtained. The amount of pixel position shift obtained here is a random parameter for the randomization correction process.

例えば、解像度変換処理の補間処理後画像の画素座標(s’,t’)の主走査方向のランダマイズ確率kは以下の方法で求められる。   For example, the randomization probability k in the main scanning direction of the pixel coordinates (s ′, t ′) of the post-interpolation image in the resolution conversion process is obtained by the following method.

解像度変換後の補間処理画像の画素座標(s’,t’)に対応する主走査方向の解像度変換処理の補間処理前の画像の画素座標sを以下の式(5)により求める。   The pixel coordinate s of the image before the interpolation process of the resolution conversion process in the main scanning direction corresponding to the pixel coordinate (s ′, t ′) of the interpolation process image after the resolution conversion is obtained by the following equation (5).

s=s’×W÷W’(小数点以下を切り上げて整数にする) ・・・式(5)   s = s ′ × W ÷ W ′ (rounded up to the nearest whole number) (5)

sを用いて以下の式(6)で画素座標(s’,t’)の主走査方向のランダマイズ確率kを計算する。
k=s×W’÷W(整数部分を切り捨て、1以下の小数点以下の数値のみにする) ・・・式(6)
The randomization probability k in the main scanning direction of the pixel coordinates (s ′, t ′) is calculated by the following formula (6) using s.
k = s × W ′ ÷ W (the integer part is rounded down so that only the numerical value after the decimal point is 1 or less) (6)

次に、図2の主走査方向確率発生関数処理ステップS1212について説明する。   Next, the main scanning direction probability generation function processing step S1212 of FIG. 2 will be described.

まず、確率発生関数の元となる種seedに初期値として0以上の整数を与える。種seedの値は、主走査方向での相対位置を示すものであり、画像をラスタスキャンした際、画素を読み出す度に値1を加算する。   First, an integer greater than or equal to 0 is given as an initial value to the seed that is the source of the probability generation function. The seed value indicates the relative position in the main scanning direction. When the image is raster scanned, the value 1 is added each time a pixel is read out.

上記のステップS1211で、求められた確率値k(0〜1.0)を以下の式(7)に代入して確率発生関数の発生値Qを求める。ここで演算中間値I,I’は整数である。   In the above step S1211, the obtained probability value k (0 to 1.0) is substituted into the following equation (7) to obtain the occurrence value Q of the probability generation function. Here, the calculation intermediate values I and I 'are integers.

I=seed×(1−k)(小数点以下を切り捨て整数にする)
I’=(seed+1)×(1−k)(小数点以下を切り捨て整数にする) ・・・式(7)
I = seed × (1-k) (rounded down to a whole number)
I ′ = (seed + 1) × (1-k) (rounded down to a whole number) (7)

ここで、IとI’が等しい場合には、確率値kに対して、確率発生関数の発生値Q=1とし、IとI’が異なった場合は、確率値kに対して、確率発生関数の発生値Q=0とする。このQ=1になったとき、基本的には画素を追加するものとする。   Here, when I and I ′ are equal, the probability generation function generation value Q = 1 with respect to the probability value k, and when I and I ′ are different, the probability generation with respect to the probability value k. It is assumed that the function generation value Q = 0. When Q = 1, basically, a pixel is added.

この確率発生関数の発生値は、画像処理において、以下の意味を持つ。例えば、確率0.15で画素が追加処理された100個の画素の画像から元画像を求めたい場合には、元画像の画素数は、100×(1−0.15)=85個である。元画像に対して可能な限り均等に追加したので、追加された画像の画素座標i’は1〜100で、これに対応する元画像の画素座標iは、   The generation value of this probability generation function has the following meaning in image processing. For example, when an original image is to be obtained from an image of 100 pixels in which pixels are additionally processed with a probability of 0.15, the number of pixels of the original image is 100 × (1−0.15) = 85. . Since the original image is added as evenly as possible, the pixel coordinate i 'of the added image is 1 to 100, and the corresponding pixel coordinate i of the original image is

i=i’×(1−0.15)(小数点以下を切り捨て)により求められる。
また、追加された画像の元画像の画素に対応していない画素は、
i’×(1−0.15)(小数点以下切り捨て)=(i’+1)×(1−0.15)(小数点以下切り捨て)
を満たす座標i’+1の画素であり、これが追加された画素である(i’+1の画素と対応する元画像の画素がない)。この追加された画素が、確率0.15で均等で画像中に分布することになる。
i = i ′ × (1−0.15) (rounded down to the nearest decimal point).
In addition, pixels that do not correspond to the pixels of the original image of the added image,
i ′ × (1−0.15) (rounded down) = (i ′ + 1) × (1−0.15) (rounded down)
This is a pixel having coordinates i ′ + 1 that satisfy the above condition, and this is an added pixel (there is no original image pixel corresponding to the pixel i ′ + 1). The added pixels are evenly distributed in the image with a probability of 0.15.

さらに、図2の主走査方向の確率付きランダマイズ補正処理(ステップS1213)について、図6のフローチャートを用いて詳細に説明する。   Further, the randomization correction process with probability in the main scanning direction of FIG. 2 (step S1213) will be described in detail with reference to the flowchart of FIG.

まず、解像度変換処理の補間処理後の画像の副走査ライン位置nとラインイメージデータ画素座標mを0番目にセットする(ステップS11、S12)。次に、n行目の補間処理後の画像ラインイメージを読み出す(ステップS13)。さらに、画素(m,n)と右側の隣接画素(m+1,n)が同じ画素であるか否かを判断する(ステップS14)。画素(m,n)と右側の隣接画素(m+1,n)が違う画素の場合には、上記の画素座標mの主走査方向確率取得処理を行う(ステップS15)。取得した確率kを用いて、画素(m,n)に対して主走査方向のランダマイズ補正処理を行う(ステップS16)。   First, the sub-scanning line position n and the line image data pixel coordinate m of the image after the interpolation process of the resolution conversion process are set to 0th (steps S11 and S12). Next, the image line image after the interpolation processing in the nth row is read (step S13). Further, it is determined whether or not the pixel (m, n) and the right adjacent pixel (m + 1, n) are the same pixel (step S14). When the pixel (m, n) is different from the right adjacent pixel (m + 1, n), the main scanning direction probability acquisition process of the pixel coordinate m is performed (step S15). Randomization correction processing in the main scanning direction is performed on the pixel (m, n) using the acquired probability k (step S16).

主走査方向のランダマイズ補正処理は、式(6)で求められたランダマイズ確率kの値を上記の確率発生関数(上述した式(7))に代入して、確率発生関数の発生値Qが1の場合には、画素(m,n)と右側の隣接画素(m+1,n)を画素(m,n)と同じ画素に変換する。確率発生関数の発生値Qが0の場合には、画素の変換処理は行わない。画素(m,n)と右側の隣接画素(m+1,n)が同じ画素の場合も画素の変換処理は行わない。次に、確率発生関数の種seed値に1を加算する(ステップS17)。   In the randomization correction process in the main scanning direction, the value of the randomization probability k obtained by the equation (6) is substituted into the probability generation function (the above equation (7)), and the generation value Q of the probability generation function is 1. In this case, the pixel (m, n) and the adjacent pixel (m + 1, n) on the right side are converted into the same pixel as the pixel (m, n). When the generation value Q of the probability generation function is 0, pixel conversion processing is not performed. Even when the pixel (m, n) and the right adjacent pixel (m + 1, n) are the same pixel, the pixel conversion process is not performed. Next, 1 is added to the seed value of the probability generation function (step S17).

次に、ラインイメージデータが終わりかどうか否かを判断する(ステップS18)。ラインイメージデータが終わっていない場合には、画素座標mに1を加算する(次の画素を指す)(ステップS19)。ラインイメージデータが終わりの場合には、変換処理を終えたラインイメージデータをn行目の解像度変換後の画像ラインイメージとして解像度変換後の画像に書き込む。(ステップS20)。最後に、解像度変換後の画像ラインイメージのすべてを書き込んだか否かを判断し(ステップS21)、解像度変換後の画像ラインイメージのすべてを書き込んだ場合には、解像度変換処理を終了する。残りのラインイメージが存在する場合には、解像度変換の補間処理後の画像の副走査ライン位置nに1を加算(次の解像度変換の補間処理後画像のラインを指す)(ステップS22)して、すべての画像ラインイメージの変換画像の書き込みが終了するまで繰り返して行う。   Next, it is determined whether or not the line image data is over (step S18). If the line image data has not ended, 1 is added to the pixel coordinate m (points to the next pixel) (step S19). When the line image data ends, the line image data that has been subjected to the conversion process is written in the image after resolution conversion as an image line image after resolution conversion of the nth row. (Step S20). Finally, it is determined whether or not all of the image line images after resolution conversion have been written (step S21). If all of the image line images after resolution conversion have been written, the resolution conversion processing is terminated. If there are remaining line images, 1 is added to the sub-scanning line position n of the image after resolution conversion interpolation processing (refers to the line of the image after interpolation processing for the next resolution conversion) (step S22). This is repeated until writing of the converted image of all the image line images is completed.

最後に、図2の副走査方向の確率付きランダマイズ補正処理ステップS1220について説明する。   Finally, the randomized correction processing step S1220 with probability in the sub-scanning direction in FIG. 2 will be described.

まず、図2の副走査方向確率取得処理(ステップS1221)について説明する。この処理では、主走査方向確率取得処理と同様に、解像度変換処理の補間処理後の画像の画素座標に対応する解像度変換処理の補間処理前の画像の画素座標を推算し、推算された解像度変換処理の補間処理前の画像の画素座標から解像度変換処理の補間処理前と、補間後の画像の画素位置のずれ量を得る。得られた画素位置のずれ量は、ランダマイズ補正処理の確率パラメータになる。   First, the sub-scanning direction probability acquisition process (step S1221) in FIG. 2 will be described. In this process, as in the main scanning direction probability acquisition process, the pixel coordinates of the image before the interpolation process of the resolution conversion process corresponding to the pixel coordinates of the image after the interpolation process of the resolution conversion process are estimated, and the estimated resolution conversion From the pixel coordinates of the image before the interpolation process of the process, the shift amount of the pixel position of the image before the interpolation process of the resolution conversion process and after the interpolation is obtained. The obtained shift amount of the pixel position becomes a random parameter for the randomization correction process.

解像度変換処理の補間処理後の画像の画素(s’,t’)の副走査方向のランダマイズ確率k’は以下の方法で求める。   The randomization probability k ′ in the sub-scanning direction of the pixel (s ′, t ′) of the image after the interpolation processing of the resolution conversion processing is obtained by the following method.

解像度変換処理の補間処理後の画像画素(s’,t’)に対応する副走査方向の解像度変換処理の補間処理前の画像の画素座標tを式(8)により求める。
t=t’×L÷L’(小数点以下を切り上げて整数にする) ・・・式(8)
tを用いて次の式(9)で画素(s’,t’)の副走査方向のランダマイズ確率k’を計算する。
The pixel coordinate t of the image before the interpolation process of the resolution conversion process in the sub-scanning direction corresponding to the image pixel (s ′, t ′) after the interpolation process of the resolution conversion process is obtained by Expression (8).
t = t ′ × L ÷ L ′ (rounded up to the nearest whole number) (8)
Using t, the randomization probability k ′ of the pixel (s ′, t ′) in the sub-scanning direction is calculated by the following equation (9).

k’=t×L’÷L(整数部分を切り捨て、小数点以下の1以下の数値にする) ・・・式(9) k ′ = t × L ′ ÷ L (the integer part is rounded down to a numerical value of 1 or less after the decimal point) (9)

次に、図2の副走査方向確率発生関数処理ステップS1222について説明する。   Next, the sub-scanning direction probability generation function processing step S1222 of FIG. 2 will be described.

図2の主走査方向確率発生関数処理ステップS1212と同様に、まず確率発生関数の種seedの初期値として0以上の整数を与える。種seedの値は副走査方向での相対位置を示すもので、画像をラスタスキャンした際、画素を読み出す度に値1を加算する。   As in the main scanning direction probability generation function processing step S1212 in FIG. 2, first, an integer greater than or equal to 0 is given as the initial value of the seed of the probability generation function. The seed value indicates the relative position in the sub-scanning direction. When the image is raster scanned, the value 1 is added each time a pixel is read.

上記図2のステップS1221で求められた確率値k(0〜1.0)を以下の式(10)に代入して確率発生関数の発生値Qを求める。ここで、演算中間値I,I’は整数である。
I(整数)=seed×(1−k)(小数点以下を切り捨て整数にする) ・・・式(10)
The probability value k (0 to 1.0) obtained in step S1221 in FIG. 2 is substituted into the following equation (10) to obtain the probability value Q of the probability generation function. Here, the calculation intermediate values I and I ′ are integers.
I (integer) = seed × (1-k) (rounded down to a whole number) (10)

I’(整数)=(seed+1)×(1−k)(小数点以下を切り捨て整数にする)
IとI’が等しい場合には、確率値kに対して、確率発生関数の発生値Q=1とする。IとI’が異なった場合は、確率値kに対して、確率発生関数の発生値Q=0とする。このQ=1になったとき、基本的には画素を追加するものとする。
I ′ (integer) = (seed + 1) × (1-k) (rounded down to a whole number)
When I and I ′ are equal, the probability generation function generation value Q = 1 for the probability value k. If I and I ′ are different, the probability generation function generation value Q = 0 is set for the probability value k. When Q = 1, basically, a pixel is added.

さらに、図2の副走査方向の確率付きランダマイズ補正処理(ステップS1223)について副走査方向の確率付きランダマイズ補正処理のフローチャートを用いて詳細に説明する。   Further, the randomization correction process with probability in the sub-scanning direction in FIG. 2 (step S1223) will be described in detail with reference to the flowchart of randomization correction process with probability in the sub-scanning direction.

まず、0行目の補間処理後の画像ラインイメージを読み出し、解像度変換処理の補間処理後の画像の副走査ライン位置nと、ラインイメージデータ画素座標mを0番目にセットする(ステップS31とステップS32)。次に、n+1行目の補間処理後の画像ラインイメージを読み出す(ステップS33)。さらに、画素(m,n)と、下側の隣接画素(m,n+1)とが同じ画素であるか否かを判断する(ステップS34)。画素(m,n)と下側の隣接画素(m,n+1)が違う画素の場合には、上記の座標nの副走査方向確率取得処理を行う(ステップS35)。取得した確率k’を用いて、画素(m,n)に対して副走査方向のランダマイズ補正処理を行う(ステップS36)。   First, the image line image after the interpolation process of the 0th row is read, and the sub-scanning line position n and the line image data pixel coordinate m of the image after the interpolation process of the resolution conversion process are set to 0th (step S31 and step S31). S32). Next, the image line image after the interpolation processing of the (n + 1) th row is read (step S33). Further, it is determined whether or not the pixel (m, n) and the lower adjacent pixel (m, n + 1) are the same pixel (step S34). When the pixel (m, n) and the lower adjacent pixel (m, n + 1) are different, the sub-scanning direction probability acquisition process for the coordinate n is performed (step S35). Using the acquired probability k ', randomization correction processing in the sub-scanning direction is performed on the pixel (m, n) (step S36).

副走査方向のランダマイズ補正処理は、式(9)で求められたランダマイズ確率k’の値を上記された確率発生関数(上述した式(10))に代入し、確率発生関数の発生値Qが1の場合には、画素(m,n)と下側の隣接画素(m,n+1)を画素(m,n)と同じ画素に変換する。確率発生関数の発生値Qが0の場合には、変換処理を行わない。画素(m,n)と下側の隣接画素(m,n+1)が同じ画素の場合も変換処理を行わない。   In the randomizing correction process in the sub-scanning direction, the value of the randomization probability k ′ obtained by the equation (9) is substituted into the above probability generation function (the above equation (10)), and the generation value Q of the probability generation function is In the case of 1, the pixel (m, n) and the lower adjacent pixel (m, n + 1) are converted into the same pixel as the pixel (m, n). When the generation value Q of the probability generation function is 0, the conversion process is not performed. Even when the pixel (m, n) and the lower adjacent pixel (m, n + 1) are the same pixel, the conversion process is not performed.

さらに、確率発生関数の種seed値に1を加算する(ステップS37)。この後でラインイメージデータが終わりか否かを判断する(ステップS38)。ラインイメージデータが終わりでない場合には、画素座標mに1を加算する(次の画素を指す)(ステップS39)。ラインイメージデータが終わりの場合、変換処理を終えたラインイメージデータをn行目解像度変換後の画像ラインイメージとして解像度変換後の画像に書き込む。(ステップS40)。   Further, 1 is added to the seed value of the probability generation function (step S37). Thereafter, it is determined whether or not the line image data is over (step S38). If the line image data is not the end, 1 is added to the pixel coordinate m (points to the next pixel) (step S39). When the line image data is finished, the line image data that has been subjected to the conversion process is written in the image after resolution conversion as an image line image after resolution conversion of the nth row. (Step S40).

最後に、解像度変換後の画像ラインイメージのすべてを書き込んだか否かを判断し(ステップS41)、解像度変換後の画像ラインイメージのすべてを書き込んだ場合には、解像度変換処理を終了する。残りのラインイメージが存在する場合には、解像度変換の補間処理後の画像の副走査ライン位置nに1を加算(次の解像度変換の補間処理後画像のラインを指す)(ステップS42)して、解像度変換後の画像ラインイメージのすべてを書き込むまで繰り返して行う。   Finally, it is determined whether or not all of the image line images after resolution conversion have been written (step S41). If all of the image line images after resolution conversion have been written, the resolution conversion processing ends. If there are remaining line images, 1 is added to the sub-scan line position n of the image after resolution conversion interpolation processing (refers to the line of the image after interpolation processing for the next resolution conversion) (step S42). This is repeated until all of the image line images after resolution conversion are written.

以上のように解像度変換処理の補正処理後の画像の画素座標の補正処理を、主走査方向及び副走査方向を各々別々に独立した確率付きランダマイズ補正処理とすることで、2次元である画像処理を2つの1次元処理に分解することができ、演算量は、x2から2xまでに減少させることができるようになり、高速な変換処理が可能となる。 As described above, the correction processing of the pixel coordinates of the image after the correction processing of the resolution conversion processing is a randomized correction processing with probability in which the main scanning direction and the sub-scanning direction are separately independent, so that two-dimensional image processing is performed. Can be decomposed into two one-dimensional processes, and the amount of calculation can be reduced from x 2 to 2x, enabling high-speed conversion processing.

本発明にかかる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 of the resolution conversion processing method of the binary image concerning this invention. 本発明にかかる2値画像の解像度変換処理方法の補間処理の説明図である。It is explanatory drawing of the interpolation process of the resolution conversion processing method of the binary image concerning this invention. 図3の解像度変換処理の補間処理により、補間処理前と補間処理後画像の画素の位置ずれが発生することの説明図である。FIG. 4 is an explanatory diagram showing that pixel displacement between pre-interpolation and post-interpolation images occurs due to the interpolation processing of the resolution conversion processing of FIG. 3. 本発明にかかる2値画像の解像度変換処理方法の確率付きランダマイズ補正処理の説明図である。It is explanatory drawing of the randomization correction process with a probability of the resolution conversion processing method of the binary image concerning this invention. 本発明にかかる2値画像の解像度変換処理方法の主走査方向の確率付きランダマイズ補正処理のフローチャートである。6 is a flowchart of randomization correction processing with probability in the main scanning direction of the binary image resolution conversion processing method according to the present invention. 本発明にかかる2値画像の解像度変換処理方法の副走査方向の確率付きランダマイズ補正処理のフローチャートである。6 is a flowchart of randomization correction processing with probability in the sub-scanning direction of the binary image resolution conversion processing method according to the present invention.

Claims (3)

2値画像を低解像度画像から高解像度画像に変換するにあたって、
解像度変換後の画素数が、解像度変換前の画像の画素数の整数倍ではない場合には、解像度変換前と解像度変換後の画像の画素数比率を用いた画素座標計算により、解像度変換前の画像の画素の座標と、該画素に隣接する画素の座標に対応する解像度変換後の画像の画素座標の整数部分と小数点以下の部分を算出し、該小数点以下の部分を線幅を表現するための画素の画素数変化量の確率値に変換し、該確率値を用いたランダマイズ補正処理によって解像度変換後の線画像の黒画素又は白画素の位置を決定する画素の補間処理を行うことを特徴とする2値画像の解像度変換処理方法。
When converting a binary image from a low resolution image to a high resolution image,
If the number of pixels after resolution conversion is not an integer multiple of the number of pixels of the image before resolution conversion, the pixel coordinates before resolution conversion are calculated by pixel coordinate calculation using the ratio of the number of pixels of the image before resolution conversion and after resolution conversion. To calculate the integer part and the decimal part of the pixel coordinates of the image after resolution conversion corresponding to the coordinates of the pixel of the image and the pixel adjacent to the pixel, and to express the line width of the part after the decimal point Conversion to a probability value of the amount of change in the number of pixels of the pixel, and a pixel interpolation process for determining the position of the black pixel or white pixel of the line image after resolution conversion by randomization correction processing using the probability value A resolution conversion processing method for a binary image.
記確率を用いたランダマイズ補正処理による画素の補間処理を、主走査方向と副走査方向とで各々独立して行うことを特徴とする請求項1に記載の2値画像の解像度変換処理方法。 The interpolation pixel by randomizing the correction processing using the previous SL probability, resolution conversion processing method of a binary image according to claim 1, characterized in that each independently in the main scanning direction and the sub-scanning direction. 前記2値画像は、網点画像であることを特徴とする請求項1又は2に記載の2値画像の解像度変換処理方法。 The binary image, resolution conversion processing method of a binary image according to claim 1 or 2, characterized in that the halftone image.
JP2006083160A 2006-03-24 2006-03-24 Resolution conversion processing method for binary image Expired - Lifetime JP4355706B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2006083160A JP4355706B2 (en) 2006-03-24 2006-03-24 Resolution conversion processing method for binary image

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2006083160A JP4355706B2 (en) 2006-03-24 2006-03-24 Resolution conversion processing method for binary image

Publications (2)

Publication Number Publication Date
JP2007259258A JP2007259258A (en) 2007-10-04
JP4355706B2 true JP4355706B2 (en) 2009-11-04

Family

ID=38633009

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2006083160A Expired - Lifetime JP4355706B2 (en) 2006-03-24 2006-03-24 Resolution conversion processing method for binary image

Country Status (1)

Country Link
JP (1) JP4355706B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101351558B1 (en) * 2013-05-08 2014-01-15 주식회사 아몬드 소프트 Data transforming device and method

Also Published As

Publication number Publication date
JP2007259258A (en) 2007-10-04

Similar Documents

Publication Publication Date Title
JP4771569B2 (en) Distortion correction method and distortion correction apparatus
US9217949B2 (en) Image variable magnification device and image variable magnification method
US7460276B2 (en) Systems and methods for rank-order error diffusion image processing
JP4355706B2 (en) Resolution conversion processing method for binary image
EP2755377B1 (en) Image deformation processing device and method
US9036219B2 (en) Image processing device and image processing method for preventing image quality deterioration
JP4947351B2 (en) Image processing apparatus and program
US7634154B2 (en) Image conversion apparatus and image conversion method
US6757079B1 (en) Method and apparatus for forming multi-level dither images from an input digital image
JP2004304543A (en) Halftoning processing method and halftoning processing system
JP2007265055A (en) Resolution conversion processing method of binary image
JP3760634B2 (en) Image processing apparatus, image processing method, and recording medium
JP2788699B2 (en) Image data processing device
JP5601577B2 (en) Pixel number conversion method, program for executing the same, and pixel number conversion device
JP4422128B2 (en) Method for correcting gradation of binary image
US20040239962A1 (en) Systems and methods for designing digital anamorphic line screens
JP6651776B2 (en) Image processing apparatus, image processing method, and program
JP3779051B2 (en) Binary multi-value image conversion method
JP5018878B2 (en) Resolution conversion program, resolution conversion method, and resolution conversion apparatus
JP2012095079A (en) Pixel number conversion method, program for executing the same and pixel number converter
JP4238673B2 (en) Image processing apparatus, image processing method, and image processing program
JP6108218B2 (en) Image conversion processing method, program for executing the same, and image conversion processing apparatus
JP4158652B2 (en) Image processing apparatus, image processing method, and image processing program
JPH08297739A (en) Image processing apparatus and method thereof
JP4262148B2 (en) Image processing apparatus and image processing method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20070912

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20090401

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20090413

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20090611

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

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

R150 Certificate of patent or registration of utility model

Ref document number: 4355706

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20120807

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20130807

Year of fee payment: 4

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313111

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313114

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350