JPH11164143A - Binary multi-valued image conversion method - Google Patents

Binary multi-valued image conversion method

Info

Publication number
JPH11164143A
JPH11164143A JP9339398A JP33939897A JPH11164143A JP H11164143 A JPH11164143 A JP H11164143A JP 9339398 A JP9339398 A JP 9339398A JP 33939897 A JP33939897 A JP 33939897A JP H11164143 A JPH11164143 A JP H11164143A
Authority
JP
Japan
Prior art keywords
pixel
binary image
image
pixels
binary
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP9339398A
Other languages
Japanese (ja)
Other versions
JP3779051B2 (en
Inventor
Yoshiyuki Sato
義幸 佐藤
Katsuhiko Sumiyoshi
勝彦 住吉
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.)
Sakata Inx Corp
Original Assignee
Sakata Inx Corp
Sakata Corp
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 Sakata Inx Corp, Sakata Corp filed Critical Sakata Inx Corp
Priority to JP33939897A priority Critical patent/JP3779051B2/en
Publication of JPH11164143A publication Critical patent/JPH11164143A/en
Application granted granted Critical
Publication of JP3779051B2 publication Critical patent/JP3779051B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To prevent periodic moires from appearing in a multi-valued image by temporarily generating a dummy binary image, having black pixels dispersed at random from a binary image and converting it into a multi-valued image by using a scan matrix which has a different size from or the same size with a threshold matrix. SOLUTION: A dummy binary image is generated by having coloring materials (or white pixel) of an inputted binary image moved and dispersed, and a multi-valued image which has a different scan matrix size from or the same size with a threshold matrix is obtained from the binary image. This converting method determines a colored image of interest in the binary image in a first step and determines the movement position of the colored image of interest in the binary image in a second step. In a third step, the colored image is dispersed to the above determined movement position and in a next step, the multi-valued image is obtained according to the binary image obtained from the result of the 3rd step.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、2値のカラー画像
を、多値のカラー画像に変換するための2値多値変換方
法に関する。
[0001] 1. Field of the Invention [0002] The present invention relates to a binary / multi-value conversion method for converting a binary color image into a multi-valued color image.

【0002】[0002]

【従来の技術】多値のカラー画像を、オフセット印刷を
行うためには、網点化された2値画像が使用される。印
刷後に2値画像から色の調子を修正しようとするために
は、多値画像に戻すことが必要となる。また、近年、本
社から2値画像しか送られてこない地方の新聞工場等の
分散工場において、安価な多値カラープルーファーに出
力することも要望されている。
2. Description of the Related Art In order to perform offset printing of a multi-valued color image, a binary image which is halftone-dotted is used. In order to correct the color tone from the binary image after printing, it is necessary to return to the multi-valued image. Further, in recent years, there has been a demand for output to an inexpensive multi-value color proofer at a distributed factory such as a local newspaper factory to which only a binary image is sent from the head office.

【0003】従来、2値画像から多値画像へと変換する
場合、閾値マトリックス(m×n単位)と同じサイズの
スキャンマトリックス(V×W=m×n単位)毎に分割
し、スキャンマトリックス内の白黒に応じた多値画像を
得る方法が知られている。この方法では、閾値マトリッ
クスとスキャンマトリックスとを同じサイズにすること
により、2値化する前の原画には無かった周期性のモア
レを軽減することができた(特開昭60−140349
号公報、特開平6−70138号公報)。
Conventionally, when converting a binary image to a multi-valued image, the image is divided into scan matrices (V × W = m × n units) having the same size as the threshold matrix (m × n units), and There is known a method of obtaining a multi-valued image corresponding to black and white. In this method, by setting the threshold matrix and the scan matrix to have the same size, it is possible to reduce the moire of the periodicity that was not present in the original image before binarization (Japanese Patent Laid-Open No. 60-140349).
JP-A-6-70138).

【0004】しかしながら、この方法では、閾値マトリ
ックスのサイズと同じサイズのスキャンマトリックスか
ら多値画像の一画素を形成しているため、多値画像の解
像度(画質)と最大階調数は、閾値マトリックスのサイズ
に依存し、閾値マトリックスのサイズが大きい2値画像
の場合は、得られる多値画像の最大階調数は多いが、解
像度は低下してしまう問題を有し、閾値マトリックスの
サイズが小さい2値画像の場合は、得られる多値画像の
解像度は高いが、最大階調数は減少する問題を有する。
However, in this method, since one pixel of a multi-valued image is formed from a scan matrix having the same size as the threshold value matrix, the resolution (image quality) and the maximum number of gradations of the multi-valued image are determined by the threshold value matrix. In the case of a binary image in which the size of the threshold matrix is large, the maximum number of tones of the obtained multivalued image is large, but there is a problem that the resolution is reduced, and the size of the threshold matrix is small. In the case of a binary image, the resolution of the obtained multivalued image is high, but there is a problem that the maximum number of gradations is reduced.

【0005】したがって、閾値マトリックスより小さい
サイズのスキャンマトリックスを用いて最大階調数は減
少してもいいから解像度を高くしたい、更には、閾値マ
トリックスより大きいサイズのスキャンマトリックスを
用いて解像度は低くしてもいいから最大階調数を多くし
たいといった用途にあった多値画像を得る方法が要望さ
れている。
Accordingly, it is possible to reduce the maximum number of gradations by using a scan matrix having a size smaller than the threshold matrix, so that the resolution should be increased. Further, the resolution should be reduced by using a scan matrix having a size larger than the threshold matrix. Therefore, there is a demand for a method of obtaining a multi-valued image suitable for use such as increasing the maximum number of gradations.

【0006】しかし、従来の閾値マトリックスのサイズ
と異なるスキャンマトリックスのサイズで多値画像を得
る場合は、2値画像に何も手を加えずに行っているの
で、原画にはなかった周期性のモアレが生じてしまうと
いう欠点がある。
However, when obtaining a multi-valued image with a scan matrix size different from the size of the conventional threshold matrix, since the binary image is processed without any modification, the periodicity which has not been provided in the original image is obtained. There is a drawback that moire occurs.

【0007】[0007]

【発明が解決しようとする課題】本発明の目的は、この
ような従来技術の問題を解決するためになされたもので
あり、閾値マトリックスのサイズとスキャンマトリック
スのサイズが異なっても同一であっても、多値画像に周
期性のモアレが生じることなく、しかも、閾値マトリッ
クスのサイズとスキャンマトリックスのサイズが異なる
ことによって、最大階調数を保ったまま解像度を高くし
たり、解像度を保ったまま最大階調数を多くしたり、用
途にあった2値多値変換方法を提供することである。
SUMMARY OF THE INVENTION An object of the present invention is to solve such a problem of the prior art, and is the same even if the size of the threshold matrix and the size of the scan matrix are different. Also, the periodic matrix moire does not occur in the multi-valued image, and the difference between the size of the threshold matrix and the size of the scan matrix makes it possible to increase the resolution while maintaining the maximum number of gradations or to maintain the resolution. An object of the present invention is to increase the maximum number of gradations and to provide a binary / multi-value conversion method suitable for the application.

【0008】[0008]

【課題を解決するための手段】本願発明者は、前記課題
を解決すべく研究を重ねた結果、入力された2値画像の
着色画素(または、白画素)を所望の方法で移動・分散
させて疑似2値画像を作成し、この2値画像から閾値マ
トリックスのサイズと異なる又は同一スキャンマトリッ
クスのサイズで多値画像を得る様に構成した。
Means for Solving the Problems As a result of repeated studies to solve the above problems, the present inventor has moved and dispersed colored pixels (or white pixels) of an input binary image in a desired manner. In this way, a pseudo-binary image is created, and a multi-valued image is obtained from this binary image with a size different from the threshold matrix or with the same scan matrix size.

【0009】したがって、多値画像に周期性のモアレが
生じることなく、しかも、閾値マトリックスのサイズと
スキャンマトリックスのサイズが異なり、2値画像をk
倍に拡大又は縮小することによって、最大階調数を保っ
たまま解像度を高くしたり、解像度を保ったまま最大階
調数を多くしたり、用途にあった2値画像を得ることが
できる。
Therefore, no periodic moire occurs in the multi-valued image, and the size of the threshold matrix and the size of the scan matrix are different.
By enlarging or reducing the magnification twice, it is possible to increase the resolution while maintaining the maximum number of gradations, increase the maximum number of gradations while maintaining the resolution, and obtain a binary image suitable for the application.

【0010】すなわち、本発明は、閾値マトリックスを
用いて得られた2値画像を該閾値マトリックスと異なる
サイズ又は同一のサイズのスキャンマトリックスで多値
画像に変換する2値多値画像変換方法において、該2値
画像中の注目する着色画素を決定する第1のステップ
と、該第1のステップで決定された着色画素の該2値画
像内での移動位置を決定する第2のステップと、該第2
のステップで決定された移動位置に該着色画素をに分散
させる第3のステップと、該第3のステップの結果から
得られる2値画像に基づいて多値画像を得るステップと
を備えたことを特徴とする2値多値画像変換方法に関す
る。
That is, the present invention provides a method for converting a binary image obtained by using a threshold matrix into a multivalued image using a scan matrix having a different size or the same size as the threshold matrix. A first step of determining a colored pixel of interest in the binary image, a second step of determining a moving position of the colored pixel determined in the first step in the binary image, Second
A third step of dispersing the colored pixels at the movement position determined in the step, and a step of obtaining a multi-valued image based on a binary image obtained from the result of the third step. The present invention relates to a binary / multi-valued image conversion method which is a feature.

【0011】また、本発明は、(1) m×n単位(但
し、m、nは、整数)の閾値マトリックスを用いて得ら
れる2値化された網点によって形成されるM×N個(但
し、M、Nは、整数)の画素からなる2値画像におい
て、該2値画像をk倍に拡大又は縮小又は等倍し、M’
×N’個(但し、M’=k×M,N’=k×N、 M、
Nは整数)からなる2値画像を得る手段、該M’×N’
個からなる2値画像の着色画素部をランダムに分散させ
て、この結果から擬似2値画像を作成する手段、該擬似
2値画像に対して、V×W単位(但し、V、Wは整数)の
スキャンマトリックス毎に分割し、スキャンマトリック
ス内の白と着色部の数の比に応じた(M’/V)×
(N’/W)個(但し、M’/V、N’/Wは、整数)
の画素からなる多値画像を得る手段、からなることを特
徴とする2値多値画像変換方法に関する。
Further, the present invention provides (1) M × N (dots) formed by binarized halftone dots obtained using a threshold matrix of m × n units (where m and n are integers). However, in a binary image composed of (M and N are integers) pixels, the binary image is enlarged, reduced, or magnified by k times to obtain M ′
× N ′ (where M ′ = k × M, N ′ = k × N, M,
A means for obtaining a binary image consisting of:
Means for randomly distributing the colored pixel portions of the binary image composed of two pieces, and creating a pseudo-binary image from the result. For this pseudo-binary image, a V × W unit (where V and W are integers) ) Is divided for each scan matrix, and (M ′ / V) × corresponding to the ratio of the number of white and colored portions in the scan matrix
(N '/ W) pieces (however, M' / V and N '/ W are integers)
And a means for obtaining a multi-valued image composed of pixels.

【0012】さらに本発明は、(2)前記(1)記載の
M’×N’個からなる2値画像の着色画素部分をランダ
ムに分散させて、擬似2値画像を作成する手段が、M’
×N’個からなる2値画像領域内の着色画素部をカウン
トしながら背番号P(1、2、3、・・・、T)を付け
る手段、該背番号P(1、2、3、・・・、T)の着色
画素部をランダムに選ぶ手段、選ばれた着色画素部の移
動方向D(該着色画素部の上下左右方向)をランダムに
選ぶ手段、着色画素部を移動させる方向Dの画素が白の
場合のみ移動させる手段、からなり、この手段を
[〔{(m+n)/2}/2〕×k]2×T回程度繰り
返すことを特徴とする2値多値画像変換方法に関する。
Further, according to the present invention, (2) means for generating a pseudo binary image by randomly dispersing the colored pixel portions of the M ′ × N ′ binary image described in (1) above, '
Means for assigning a uniform number P (1, 2, 3,..., T) while counting the colored pixel portions in a binary image area composed of × N ′ pieces; .., T) means for randomly selecting the colored pixel portion, means for randomly selecting the moving direction D of the selected colored pixel portion (up, down, left and right directions of the colored pixel portion), and direction D for moving the colored pixel portion. And a means for moving only when the pixel is white, and repeating this means about [[{(m + n) / 2} / 2] × k] 2 × T times. About.

【0013】さらに本発明は、(3)前記(1)記載の
M’×N’個からなる2値画像の着色画素部分をランダ
ムに分散させて、擬似2値画像を作成する手段が、M’
×N’個からなる2値画像領域内の着色画素部分をカウ
ントしながら背番号P(1、2、3、・・・、T)を付
ける手段、該背番号P(1、2、3、・・・、T)の着
色画素部をランダム又は背番号Pの番号順に選ぶ手段、
Further, according to the present invention, (3) means for generating a pseudo binary image by randomly dispersing the colored pixel portions of the M ′ × N ′ binary image described in (1) above, '
Means for assigning a uniform number P (1, 2, 3,..., T) while counting the colored pixel portions in the binary image area consisting of × N ′ pieces, the uniform number P (1, 2, 3,. ... Means for selecting the colored pixel portions of T) at random or in the order of the number P

【外1】 選ばれた着色画素部の移動先角度θ(0≦θ<2π)を
決定する手段、選ばれた着色画素部の元の位置に、Δx
=int[rcosθ]、Δy=int[rsinθ]
(但し、int[ ]は、[ ]の整数部をとるものと
定義する。)を加えて移動させる手段からなり、この手
段をT回程度繰り返すことを特徴とする2値多値画像変
換方法に関する。
[Outside 1] Means for determining the destination angle θ (0 ≦ θ <2π) of the selected colored pixel portion, Δx
= Int [rcosθ], Δy = int [rsinθ]
(However, int [] is defined as taking the integer part of [].) A method for converting a binary / multi-valued image is characterized in that this means is repeated about T times. .

【0014】さらに本発明は、(4)前記(1)記載の
M’×N’個からなる2値画像の着色画素部分をランダ
ムに分散させて、擬似2値画像を作成する手段が、M’
×N’個からなる2値画像領域内の着色画素部をカウン
トしながら背番号P(1、2、3、・・・、T)を付け
る手段、該背番号P(1、2、3、・・・、T)の着色
画素部をランダム又は背番号Pの番号順に選ぶ手段、選
ばれた着色画素部の移動距離rを r=[k(m+n)/20]・(G1−2×|G2|+
10) 但し、G1、G2はボックス・ミュラー法により得られ
る平均0、分散1の正規乱数であり、 G1=(−2×log(R1))1/2×cos(2π×
R2) G2=(−2×log(R1))1/2×sin(2π×
R2) 尚、R1、R2は[0,1]一様乱数 より決定する手段、選ばれた着色画素部の移動先角度θ
(0≦θ<2π)を決定する手段、選ばれた着色画素部
の元の位置に、Δx=int[rcosθ]、Δy=in
t[rsinθ]を加えて移動させる手段からなり、この
手段をT回(総着色画素数)程度繰り返すことを特徴と
する2値多値画像変換方法に関する。
Further, according to the present invention, there is provided (4) means for generating a pseudo binary image by randomly dispersing the colored pixel portions of the M ′ × N ′ binary image described in the above (1). '
Means for assigning a uniform number P (1, 2, 3,..., T) while counting the colored pixel portions in a binary image area composed of × N ′ pieces; .., T) means for selecting the colored pixel portions randomly or in the order of the number P, and the moving distance r of the selected colored pixel portion is given by r = [k (m + n) / 20] · (G1-2 × | G2 | +
10) Here, G1 and G2 are normal random numbers with mean 0 and variance 1 obtained by the Box-Muller method, and G1 = (− 2 × log (R1)) 1/2 × cos (2π ×
R2) G2 = (− 2 × log (R1)) 1/2 × sin (2π ×
R2) Here, R1 and R2 are means for determining from [0,1] uniform random numbers, the destination angle θ of the selected colored pixel portion.
Means for determining (0 ≦ θ <2π), Δx = int [rcosθ], Δy = in at the original position of the selected colored pixel portion
The present invention relates to a binary / multi-valued image conversion method characterized by comprising means for adding and moving t [rsinθ] and repeating this means about T times (total number of colored pixels).

【0015】尚、本願発明の注目画素は、着色画素に限
られず、白色画素を着目しても良い。
The pixel of interest in the present invention is not limited to a colored pixel, but may be a white pixel.

【0016】[0016]

【発明の実施の形態】以下、図に基づいてい本願発明の
実施の形態を説明する。 <実施の形態1>図1は、本願第一実施の形態のフロー
チャートを示す。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below with reference to the drawings. <First Embodiment> FIG. 1 shows a flowchart of the first embodiment of the present invention.

【0017】図2は、本実施の形態に使用される2値画
像を示す。
FIG. 2 shows a binary image used in the present embodiment.

【0018】図1の画素補間ステップ1には、図2に示
した2値画像101が入力する。
In the pixel interpolation step 1 in FIG. 1, the binary image 101 shown in FIG. 2 is input.

【0019】2値画素101は、10×10単位(m×
n単位)の閾値マトリックスを用いて得られる面積率5
0%を表わす2値化された網点によって形成された画像
で、縦80画素(M)、横80画素(N)、総画素数6
400個からなっている。
The binary pixel 101 has a size of 10 × 10 units (mx
area ratio 5 obtained using a threshold matrix of (n units)
An image formed by binarized halftone dots representing 0%, with 80 pixels vertically (M), 80 pixels horizontally (N), and a total number of pixels of 6
It consists of 400 pieces.

【0020】画素補間ステップ1は、2値画像101を
k=2倍する。最近傍法を用いて画素補間された2値画
像102は、縦160画素(M’)、横160画素
(N’)、総画素数25600個からなっている。該補
間された2値画像を図3に示す。
The pixel interpolation step 1 multiplies the binary image 101 by k = 2. The binary image 102 pixel-interpolated using the nearest neighbor method has 160 vertical pixels (M ′), 160 horizontal pixels (N ′), and a total of 25600 pixels. FIG. 3 shows the interpolated binary image.

【0021】該補間された2値画像102は、黒画素カ
ウントステップ2により2値画像領域内の黒画素がカウ
ントされる。黒画素カウントステップ2は、各黒画素に
黒画素を識別するための番号である背番号を順次付して
いく。
In the interpolated binary image 102, black pixels in the binary image area are counted in a black pixel counting step 2. The black pixel counting step 2 sequentially assigns a uniform number, which is a number for identifying a black pixel, to each black pixel.

【0022】このカウント処理を、図4に示すマトリッ
クスの1単位の2値画像103により説明する。黒画素
カウントステップ2は、X=9,Y=1の黒画素に背番
号P=1を,X=10,Y=1の黒画素に背番号P=2
を,以下各黒画素に同様に背番号を付ける。2値画像領
域内のすべての黒画素に背番号を付け終わると総黒画素
数T=12800が求まる。
This counting process will be described with reference to a binary image 103 of one unit of the matrix shown in FIG. In the black pixel counting step 2, the uniform number P = 1 is assigned to the black pixels of X = 9 and Y = 1, and the unique number P = 2 is assigned to the black pixels of X = 10 and Y = 1.
Is assigned a uniform number to each black pixel. When all the black pixels in the binary image area have been assigned a uniform number, the total number of black pixels T = 12800 is obtained.

【0023】注目画素決定ステップ3により、2値画像
領域内の黒画素をランダムに注目する。ランダムとは本
発明一実施の形態では、1/12800(1/T)の確
率で黒画素を選ぶことである。
In the pixel of interest determination step 3, black pixels in the binary image area are randomly noted. In the embodiment of the present invention, "random" means selecting a black pixel with a probability of 1/1800 (1 / T).

【0024】具体的には、[0,1]一様乱数Rを用い
て、12800倍したものに1を加えた整数部をPとす
る。但し、一様乱数R=1の時はP=12800とす
る。
Specifically, P is an integer part obtained by adding 1 to a value obtained by multiplying 12800 times by using a [0, 1] uniform random number R. However, when the uniform random number R = 1, P = 12800.

【0025】 P=int[T×R+1] ・・・・・・・(1) (但し、0≦R<1,int[ ]は、[ ]の整数部を取
るものと定義する。) P=T=12800 但し、R=1)・・・・・(2) 上式によってT個(12800画素)の中から、1個の
黒画素(背番号P)をランダムに注目することができ
る。
P = int [T × R + 1] (1) (However, 0 ≦ R <1, int [] is defined to take an integer part of [].) P = T = 12800 where R = 1) (2) From the T (12800 pixels), one black pixel (pattern number P) can be randomly noted from the above equation.

【0026】次に、参照画素決定ステップ5により、注
目画素の周りの画素をランダムに参照する。すなわち、
注目画素決定ステップ3により、ランダムに選択された
注目画素に隣接する画素の1つをランダムに選択して、
選択された画素を参照画素とする。該参照画素が白画素
の場合は次のステップで前記注目画素を該参照画素の位
置に移動させる。該参照画素が黒画素または2値画像領
域外の場合には、注目画素の参照画素位置への移動は行
わない。これは、移動させれば黒画素数が減少するのを
防止する為である。
Next, in a reference pixel determination step 5, pixels around the target pixel are randomly referred to. That is,
In the target pixel determination step 3, one of the pixels adjacent to the randomly selected target pixel is randomly selected,
The selected pixel is set as a reference pixel. If the reference pixel is a white pixel, the pixel of interest is moved to the position of the reference pixel in the next step. If the reference pixel is outside the black pixel or the binary image area, the target pixel is not moved to the reference pixel position. This is to prevent the number of black pixels from decreasing when moved.

【0027】この参照処理を図5の説明図により詳述す
る。
This reference processing will be described in detail with reference to FIG.

【0028】図5中、Fは注目画素決定ステップ3によ
りランダムに選択された注目画素であり、該注目画素F
に隣接する4つの画素W1、W2、W3、W4の内の1個の
画素が参照画素決定ステップ5によりランダムに選択さ
れる。この図5では隣接画素W1、W2、W3、W4は全て
2値画像領域内の場合を示した。
In FIG. 5, F is a target pixel randomly selected in the target pixel determination step 3, and the target pixel F
One of the four pixels W 1 , W 2 , W 3 , W 4 adjacent to is randomly selected by the reference pixel determination step 5. In FIG. 5, adjacent pixels W 1 , W 2 , W 3 and W 4 are all
The case in the binary image area is shown.

【0029】具体的には、[0,1]一様乱数Rを用い
て、4倍したものに1を加えた整数部を方向Dとする。
但し、一様乱数R=1の時はD=4とする。
Specifically, the direction D is an integer part obtained by adding 1 to a value obtained by multiplying the quadruple number by using the [0, 1] uniform random number R.
However, when the uniform random number R = 1, D = 4.

【0030】 D=int(4×R+1) (但し、0≦R<1) ・・・・(3) D=4 (但し、R=1) ・・・・・(4) 図5中、D=1,2,3,4をそれぞれ右、左、上、下
に対応させると、注目画素に隣接する参照画素の位置
(x1,y1)は注目画素位置F(x0,y0)を用いて、
下記(5)式 W1(x1,y1)=(x0+1,y0) → D=1 W2(x1,y1)=(x0−1,y0) → D=2 W3(x1,y1)=(x0,y0+1) → D=3 W4(x1,y1)=(x0,y0−1) → D=4 と現わされる。
D = int (4 × R + 1) (where 0 ≦ R <1) (3) D = 4 (where R = 1) (4) In FIG. = 1, 2, 3, and 4 correspond to the right, left, upper, and lower, respectively, the position (x 1 , y 1 ) of the reference pixel adjacent to the target pixel is the target pixel position F (x 0 , y 0 ) Using,
The following equation (5): W 1 (x 1 , y 1 ) = (x 0 +1, y 0 ) → D = 1 W 2 (x 1 , y 1 ) = (x 0 −1, y 0 ) → D = 2 W 3 (x 1 , y 1 ) = (x 0 , y 0 +1) → D = 3 W 4 (x 1 , y 1 ) = (x 0 , y 0 −1) → D = 4 .

【0031】上記(3)式または(4)式によって隣接
画素の一つが参照画素としてランダムに参照され、選択
された1つの参照画素の位置は(5)式により決定され
る。
One of the adjacent pixels is randomly referred to as a reference pixel by the above equation (3) or (4), and the position of one selected reference pixel is determined by equation (5).

【0032】次に、白画素判定ステップ6は、参照画素
位置にある参照画素が白画素か黒画素かを判定し、参照
画素が白画素であればYes、黒画素であればNoと判
定する。
Next, in the white pixel determination step 6, it is determined whether the reference pixel at the reference pixel position is a white pixel or a black pixel. If the reference pixel is a white pixel, Yes is determined, and if the reference pixel is a black pixel, No is determined. .

【0033】更に、白画素判別ステップ6は、図6に示
すように、参照画素が2値画像領域外にある場合はNo
と判定する。Noと判定された場合は、注目画素決定ス
テップ3に戻り、Yesになるまで繰り返す。
Further, as shown in FIG. 6, when the reference pixel is outside the binary image area, the white pixel determination step 6
Is determined. If the determination is No, the process returns to the pixel-of-interest determination step 3 and is repeated until the determination becomes Yes.

【0034】この例では、参照画素として画素W1が選
択されたとする。
[0034] In this example, the pixel W 1 is selected as the reference pixel.

【0035】位置移動ステップ7は、白画素判定ステッ
プ6で“Yes”と判定された参照画素W1に、注目画
素F(背番号P)をその注目画素位置F(x,y)=
(x0,y0)から参照画素位置B1(x,y)=(x1
1)に移動させる。これにより、注目画素Pの位置
は、(x0,y0)→(x1,y1)と分散されたことにな
る。
The position moving step 7, the reference pixels W 1 it is determined "Yes" in the white pixel determination step 6, the target pixel position a pixel of interest F (uniform number P) F (x, y) =
From (x 0 , y 0 ), the reference pixel position B 1 (x, y) = (x 1 ,
y 1 ). Thus, the position of the target pixel P is dispersed as (x 0 , y 0 ) → (x 1 , y 1 ).

【0036】この様に、本発明では、 注目画素Pが
ランダムに選択され、更に、ランダムに選択された注
目画素Pを基準にして、隣接する隣接画素からランダム
に参照画素を選択・参照し、該参照画素が2値画像領
域内の白画素の場合には該注目画素Pを参照画素の位置
に移動させ、2値画像をランダム(無作為)に分散さ
せ、この黒画素の分散を繰り返す。これは、本発明の特
徴の1つである。
As described above, in the present invention, the target pixel P is randomly selected, and further, the reference pixel is randomly selected from the adjacent pixels with reference to the randomly selected target pixel P. If the reference pixel is a white pixel in the binary image area, the pixel of interest P is moved to the position of the reference pixel, the binary image is randomly (randomly) dispersed, and the distribution of the black pixels is repeated. This is one of the features of the present invention.

【0037】次に、分散回数判定ステップ8により、
「注目画素決定→参照画素決定→参照画素が白の場合の
み注目画素の黒は移動する」という分散処理の繰り返し
回数が判定される。
Next, in the distribution number determination step 8,
The number of repetitions of the distributed processing of “determining the target pixel → determining the reference pixel → moving the black of the target pixel only when the reference pixel is white” is determined.

【0038】分散回数判定ステップ8は、繰り返し回数
が、 [〔{(m+n)/2}/2〕×k]2×T回 ・・・・・・・(6) (但し、m,nは閾値マトリックスのサイズ、kは拡大
係数、Tは総画素数)以上であればYes、未満であれ
ばNoと判定する。具体的には、本実施の形態では分散
回数判定ステップ8は、分散回数が [〔{(m+n)/2}/2〕×k]2×T =[〔{(10+10)/2}/2〕×2]2×12800=1280000 以上であればYes、未満であればNoと判定する。
In the distribution number determination step 8, the number of repetitions is [[{(m + n) / 2} / 2] × k] 2 × T (6) (where m and n are If the size of the threshold matrix, k is the enlargement coefficient, and T is the total number of pixels, it is determined as Yes, and if less than No, it is determined as No. More specifically, in the present embodiment, the number-of-times-of-dispersion determination step 8 is performed when the number of times of dispersion is [[{(m + n) / 2} / 2] × k] 2 × T = [[{(10 + 10) / 2} / 2. ] × 2] 2 × 12800 = 12800000 If it is equal to or more than Yes, it is determined to be No, and if less than No, it is determined to be No.

【0039】Noと判定された場合は注目画素決定ステ
ップ3へ戻り、Yesと判定されるまで黒画素の分散を
繰り返す。分散を繰り返すことによって、ランダムに黒
画素を分散させた図7に示すような擬似2値画像104
を得る。
If the determination is No, the process returns to the target pixel determination step 3, and the distribution of black pixels is repeated until the determination is Yes. Pseudo binary image 104 as shown in FIG. 7 in which black pixels are randomly distributed by repeating the distribution.
Get.

【0040】ここで、前記分散回数は、予め試行して得
たデータに許容範囲を含ませた、所望の多値画像を得る
ために注目画素の平均移動回数であり、少なくともT/
100回から、多くとも100・T回の範囲で予め設定
される。
Here, the number of times of dispersion is an average number of times of movement of a pixel of interest in order to obtain a desired multi-valued image in which data obtained in advance by trial is included in an allowable range.
It is preset in a range from 100 times to at most 100 · T times.

【0041】上記の「擬似2値画像を作る」までのステ
ップは、所望の高い画質を持つ多値画像を得るために、
予め設定された回数繰り返される。本発明一実施の形態
では該繰返し回数Aは3回と設定されている。
The above steps up to “creating a pseudo binary image” are performed in order to obtain a multi-valued image having a desired high image quality.
It is repeated a preset number of times. In one embodiment of the present invention, the number of repetitions A is set to three times.

【0042】即ち、平均化ステップ10により、疑似2
値画像作成までの繰り返し回数が判定される。平均化ス
テップ10は、繰り返し回数がA=3回以上であればY
es、未満であればNoと判定する。
That is, by the averaging step 10, the pseudo 2
The number of repetitions up to the creation of the value image is determined. In the averaging step 10, if the number of repetitions is A = 3 or more, Y
If it is less than es, it is determined as No.

【0043】Noと判定された場合は擬似2値画像のそ
れぞれの位置にある黒画素数BA(x,y)を記憶ステ
ップ12で記憶し、擬似2値画像を2値画像102に初
期化してから、注目画素決定ステップ3へ戻る。平均化
ステップ10で該繰り返し回数がYesと判定されるま
で、上述のランダムに注目画素を分散させ擬似2値画像
を作成する各ステップが上述の様に繰り返される。
If the determination is No, the number of black pixels B A (x, y) at each position of the pseudo binary image is stored in the storage step 12, and the pseudo binary image is initialized to the binary image 102. Then, the process returns to the target pixel determination step 3. Until the number of repetitions is determined to be Yes in the averaging step 10, the above steps of randomly distributing the pixel of interest and creating a pseudo binary image are repeated as described above.

【0044】平均化ステップ10が、繰り返し回数A=
3を判別すると、平均疑似2値画像ステップ13は各々
の位置の黒画素数と該繰り返し回数とに基づいて平均疑
似2値画像を求める。
The averaging step 10 calculates the number of repetitions A =
When 3 is determined, the average pseudo binary image step 13 obtains an average pseudo binary image based on the number of black pixels at each position and the number of repetitions.

【0045】平均疑似2値画像ステップ13は、擬似2
値画像のそれぞれの位置にある黒画素数をBA、疑似2
値画像の作成回数をAとして、
The average pseudo binary image step 13 is a pseudo binary
The number of black pixels at each position of the value image is B A , pseudo 2
Assuming that the number of creations of the value image is A,

【数1】 により1画素内にある黒の平均個数を求め、それぞれの
位置の黒の平均個数を示す平均擬似2値画像を得る。
(Equation 1) To obtain the average number of blacks in one pixel, and obtain an average pseudo binary image indicating the average number of blacks at each position.

【0046】次に、多値化ステップ15は、該平均擬似
2値画像を8×8単位(V×W単位)のスキャンマトリ
ックス毎に分割し、それぞれのスキャンマトリックス内
の白黒の比に応じた(M’/V)×(N’/W)個の画
素からなる図8に示す多値画像105を得る。但し、ス
キャンマトリックス内の黒の総和が V×W=8×8=64 を超える場合は64とする。多値画像105は縦20画
素、横20画素、総画素数400個からなっている。
Next, the multi-value conversion step 15 divides the average pseudo-binary image into 8 × 8 (V × W) scan matrices according to the ratio of black and white in each scan matrix. A multi-valued image 105 shown in FIG. 8 including (M ′ / V) × (N ′ / W) pixels is obtained. However, if the sum of black in the scan matrix exceeds V × W = 8 × 8 = 64, the value is 64. The multi-valued image 105 is composed of 20 pixels vertically, 20 pixels horizontally and 400 pixels in total.

【0047】尚、上記実施の形態では、入力2値画像を
拡大(または縮小)する場合を示したが、入力2値画像
をそのまま使用してもよい。
Although the input binary image is enlarged (or reduced) in the above embodiment, the input binary image may be used as it is.

【0048】また、疑似2値画像を複数回作成して、こ
の疑似2値画像を平均して平均疑似2値画像を得る場合
を示したが、1回だけ疑似2値画像作成し、この2値画
像に基づいて多値画像を作成してもよい。
Also, a case has been shown in which a pseudo binary image is created a plurality of times and the pseudo binary image is averaged to obtain an average pseudo binary image. A multi-value image may be created based on the value image.

【0049】また、注目画素を順番に決定してもよい。 <実施の形態2>図9は、本願第二実施の形態のフロー
チャートを示す。
The target pixel may be determined in order. <Embodiment 2> FIG. 9 is a flowchart of a second embodiment of the present invention.

【0050】図1で示した本願第一実施の形態と比較す
ると、参照画素決定ステップが異なる。また、本第二実
施の形態では白画素判定ステップを必要としない。他の
点は前記第一実施の形態と同一であり、図1と同一の符
号はそれぞれ同一のものを示す。
The reference pixel determining step is different from that of the first embodiment shown in FIG. Further, the second embodiment does not require a white pixel determination step. The other points are the same as those of the first embodiment, and the same reference numerals as those in FIG. 1 indicate the same parts.

【0051】本第二実施の形態でも、第一実施の形態と
同様に、画素補間ステップ1には、図2に示した2値画
像101が入力する。
In the second embodiment, as in the first embodiment, the binary image 101 shown in FIG.

【0052】2値画素101は、10×10単位(m×
n単位)の閾値マトリックスを用いて得られる面積率5
0%を表わす2値化された網点によって形成された画像
で、縦80画素(M)、横80画素(N)、総画素数6
400個からなっている。
The binary pixel 101 has a size of 10 × 10 units (mx
area ratio 5 obtained using a threshold matrix of (n units)
An image formed by binarized halftone dots representing 0%, with 80 pixels vertically (M), 80 pixels horizontally (N), and a total number of pixels of 6
It consists of 400 pieces.

【0053】画素補間ステップ1は、2値画像101を
k=2倍する。最近傍法を用いて画素補間された2値画
像102は、縦160画素(M’)、横160画素
(N’)、総画素数25600個からなっている。該補
間された2値画像を図3に示す。
In the pixel interpolation step 1, the binary image 101 is multiplied by k = 2. The binary image 102 pixel-interpolated using the nearest neighbor method has 160 vertical pixels (M ′), 160 horizontal pixels (N ′), and a total of 25600 pixels. FIG. 3 shows the interpolated binary image.

【0054】該補間された2値画像102は、黒画素カ
ウントステップ2により2値画像領域内の黒画素がカウ
ントされる。黒画素カウントステップ2は、各黒画素に
黒画素を識別するための番号である背番号を順次付して
いく。
In the interpolated binary image 102, black pixels in the binary image area are counted in a black pixel counting step 2. The black pixel counting step 2 sequentially assigns a uniform number, which is a number for identifying a black pixel, to each black pixel.

【0055】このカウント処理を、図4に示すマトリッ
クスの1単位の2値画像103により説明する。黒画素
カウントステップ2は、X=9,Y=1の黒画素に背番
号P=1を,X=10,Y=1の黒画素に背番号P=2
を,以下各黒画素に同様に背番号を付ける。2値画像領
域内のすべての黒画素に背番号を付け終わると総黒画素
数T=12800が求まる。即ち、最後の黒画素の背番
号PはP=12800である。
This counting process will be described with reference to a binary image 103 of one unit of the matrix shown in FIG. In the black pixel counting step 2, the uniform number P = 1 is assigned to the black pixels of X = 9 and Y = 1, and the unique number P = 2 is assigned to the black pixels of X = 10 and Y = 1.
Is assigned a uniform number to each black pixel. When all the black pixels in the binary image area have been assigned a uniform number, the total number of black pixels T = 12800 is obtained. That is, the uniform number P of the last black pixel is P = 12800.

【0056】次に、注目画素決定ステップ3により、2
値画像領域内の黒画素をランダムに注目する。ランダム
とは1/12800(1/T)の確率で黒画素を選ぶ。
Next, in the target pixel determination step 3, 2
Attention is paid to the black pixels in the value image area at random. Random means selecting a black pixel with a probability of 1/1800 (1 / T).

【0057】具体的には、[0,1]一様乱数Rを用い
て、12800倍したものに1を加えた整数部をPとす
る。但し、一様乱数R=1の時はP=12800とす
る。
More specifically, an integer part obtained by adding 1 to a value obtained by multiplying the value by 12800 using the [0, 1] uniform random number R is defined as P. However, when the uniform random number R = 1, P = 12800.

【0058】P=int[T×R+1] (但し、0≦R<1,int[ ]は、[ ]の整
数部を取るものと定義する。) P=T (但し、R=1) 上式によってT個の中から、1個の黒画素(背番号P)
をランダムに注目することができる。
P = int [T × R + 1] (where 0 ≦ R <1, int [] is defined as taking an integer part of [].) P = T (where R = 1) , One black pixel out of T
Can be noticed at random.

【0059】次に、参照画素決定ステップ21により、
注目画素の周りの画素からランダム(無作為)に1個の
画素を選択し、該選択された画素を参照画素として決定
する。
Next, in the reference pixel determination step 21,
One pixel is randomly (randomly) selected from the pixels around the target pixel, and the selected pixel is determined as a reference pixel.

【0060】ここで、上述の如く第一の実施の形態で
は、注目画素に隣接する画素からランダムに1つの参照
画素を選択し、該参照画素が2値画像領域内の白画素で
ある場合に注目画素(黒画素)を該参照画素位置に移動
させ、この処理ステップを所定回数繰り返して最適な多
値画像を得た。
Here, as described above, in the first embodiment, one reference pixel is randomly selected from the pixels adjacent to the target pixel, and the reference pixel is a white pixel in the binary image area. The target pixel (black pixel) was moved to the reference pixel position, and this processing step was repeated a predetermined number of times to obtain an optimal multi-valued image.

【0061】しかし、本第二実施の形態では、予め最適
な多値画像を得るための試行を繰り返し、最適な多値画
像を得る為に各注目画像(各黒画素)が移動した各距離
rを統計的に処理して、各注目画素(即ち、各黒画素)
の各移動距離rに対する出現度数(以下、単に、「頻
度」とも言う)を測定し、この頻度に基づいて注目画素
の周りの画素から参照画素を選択する。
However, in the second embodiment, trials for obtaining an optimal multi-valued image are repeated in advance, and in order to obtain an optimal multi-valued image, each distance r of each image of interest (each black pixel) has moved. Is statistically processed to calculate each pixel of interest (that is, each black pixel).
Is measured for each moving distance r (hereinafter, simply referred to as “frequency”), and a reference pixel is selected from pixels around the target pixel based on the frequency.

【0062】即ち、参照画素決定ステップ21は、図1
0に示すヒストグラム106に基づいて注目画素の周り
の画素をランダムに参照して、参照画素を決定する。
That is, the reference pixel determination step 21 is the same as that in FIG.
A reference pixel is determined by randomly referencing pixels around the pixel of interest based on the histogram 106 shown in FIG.

【0063】ここで、図10は、予め最良の多値画像を
得る為に試行を繰り返し、この時の各黒画素が移動した
移動距離rを1画素の大きさ単位で測定し、各移動距離
rに黒画素が出現する出現度数を柱状に表したヒストグ
ラムであり、縦軸は頻度(出現度数)を示し、横軸は1
画素の大きさを示す。
Here, FIG. 10 shows a case where the trial is repeated in advance to obtain the best multi-valued image, and the moving distance r at which each black pixel has moved at this time is measured in units of one pixel. r is a histogram showing the frequency of appearance of black pixels in a columnar manner, where the vertical axis indicates frequency (frequency of appearance) and the horizontal axis is 1
Indicates the size of a pixel.

【0064】参照画素決定ステップを図11に示す参照
画素決定処理の説明図に基づいて説明する。
The reference pixel determination step will be described with reference to the explanatory diagram of the reference pixel determination processing shown in FIG.

【0065】参照画素決定ステップ21は、図11に示
すように、周辺画素の内の、注目画素Fから前記ヒスト
グラムに対応する移動距離rおよびランダムの角度θだ
け離れた位置に存在する画素を参照画素Wとする。
As shown in FIG. 11, the reference pixel determination step 21 refers to a pixel located at a position apart from the target pixel F by a moving distance r corresponding to the histogram and a random angle θ among the peripheral pixels, as shown in FIG. The pixel W is assumed.

【0066】参照画素決定ステップ21は、総黒画素が
全体として該ヒストグラムに表された頻度で移動距離r
を移動する様に各々の注目画素の移動距離rを決定す
る。
In the reference pixel determination step 21, the total distance of black pixels is determined by the moving distance r at the frequency represented as a whole in the histogram.
Is determined so as to move the target pixel.

【0067】また、角度θは、[0,1]一様乱数Rを用
いると、 θ=2π×R ・・・・・・・(8) と定義され、任意の方向が等しい確率で決定される。
When the [0, 1] uniform random number R is used, the angle θ is defined as θ = 2π × R (8), and an arbitrary direction is determined with equal probability. You.

【0068】極座標系(r,θ)を直行座標系(x,
y)に変換し、画素位置は整数であることを考慮する
と、参照画素位置W(x,y)=(x1,y1)は注目画
素位置(x,y)=(x0,y0)を用いて、 W(x1,y1)=(x0+Δx,y0+Δy) =(x0+int[r×cos(θ)],y0+int[r×sin(θ)] となる。
The polar coordinate system (r, θ) is changed to a rectangular coordinate system (x,
y), and considering that the pixel position is an integer, the reference pixel position W (x, y) = (x 1 , y 1 ) is the target pixel position (x, y) = (x 0 , y 0) ), W (x 1 , y 1 ) = (x 0 + Δx, y 0 + Δy) = (x 0 + int [r × cos (θ)], y 0 + int [r × sin (θ)] .

【0069】これにより、参照画素決定ステップ21
は、注目画素の周りの(距離r,角度θだけ離れた)画
素を予め記憶されたヒストグラムに基づいてランダムに
選択して、参照画素を決定する。
Thus, the reference pixel determination step 21
Determines a reference pixel by randomly selecting pixels around the target pixel (which are separated by a distance r and an angle θ) based on a histogram stored in advance.

【0070】次に、位置移動ステップ7により、黒画素
(背番号P)を注目画素位置F(x,y)=(x0
0)から参照画素位置W(x,y)=(x1,y1)に
移動させる。
Next, in the position moving step 7, the black pixel (back number P) is set to the target pixel position F (x, y) = (x 0 ,
(y 0 ) to the reference pixel position W (x, y) = (x 1 , y 1 ).

【0071】F(x0,y0)→(x1,y1) 但し、図12に示すように参照画素W1の位置が画素補
間された2値画像領域外の場合は、注目画素Fは移動さ
れず元の位置を保つ。
F (x 0 , y 0 ) → (x 1 , y 1 ) However, as shown in FIG. 12, when the position of the reference pixel W 1 is out of the binary image area where the pixel interpolation is performed, the pixel of interest F Is not moved and keeps its original position.

【0072】F(x0,y0)→(x0,y0) また、本第二実施の形態の場合には参照画素が白画素ま
たは黒画素であつても注目画素は移動し、図12に示す
様に、複数の黒画素が同じ参照画素W2の位置にあるこ
ともある(参照画素位置に黒画素があっても、注目画素
は移動する。)次に、分散回数判定ステップ8により、
「参照画素の白黒に関係なく注目画素は移動し、参照画
素が画素補間された2値画像領域外の場合のみ、同じ位
置を保つ」という分散を何回繰り返しているかを判定す
る。
F (x 0 , y 0 ) → (x 0 , y 0 ) In the second embodiment, even if the reference pixel is a white pixel or a black pixel, the target pixel moves. as shown in 12, (even if there is a black pixel in the reference pixel position, the pixel of interest is moved.), sometimes there are a plurality of black pixels in the same position of the reference pixel W 2 Next, dispersion times judging step 8 By
It is determined how many times the variance of “the target pixel moves regardless of the black and white of the reference pixel and the same position is maintained only when the reference pixel is outside the pixel-interpolated binary image area” is repeated.

【0073】本第二実施の形態では注目画素を実測され
たヒストグラムにより参照画素位置に分散させるので、
分散回数ステップ8は、分散回数が総注目画素数T=1
2800以上であれば、Yes、未満であればNoと判
定する。Noと判定された場合は注目画素判定ステップ
20へ戻り、分散回数判定ステップ8でYesと判定さ
れるまで分散動作を繰り返す。
In the second embodiment, the target pixel is dispersed at the reference pixel position by the actually measured histogram.
The number-of-dispersion step 8 is performed when the number of dispersions is equal to the total number of target pixels T = 1.
If it is 2800 or more, it is determined as Yes, and if it is less than 2,800 is determined as No. If the determination is No, the process returns to the pixel-of-interest determination step 20, and the dispersing operation is repeated until the result of the dispersal number determination step 8 is Yes.

【0074】分散回数判定ステップ8が12800回の
分散を判別すると、画素補間された2値画像領域内のす
べての黒画素を1回の移動によって、ランダムに分散さ
せた擬似2値画像が疑似2値画像ステップ9で作成され
る。
When the number-of-dispersion determination step 8 determines that the dispersion is 12,800 times, a pseudo binary image in which all the black pixels in the pixel-interpolated binary image area are randomly dispersed by one movement is converted into a pseudo binary image. It is created in the value image step 9.

【0075】上記の「擬似2値画像を作る」までのステ
ップは、所望の高い画質を持つ多値画像を得るために、
予め設定された回数繰り返される。第二実施の形態では
該繰返し回数Aは3回と設定されている。
The steps up to “creating a pseudo-binary image” are performed in order to obtain a multi-valued image having a desired high image quality.
It is repeated a preset number of times. In the second embodiment, the number of repetitions A is set to three times.

【0076】即ち、平均化ステップ10により、疑似2
値画像作成までの繰り返し回数が判定される。平均化ス
テップ10は、繰り返し回数がA=3回以上であればY
es、未満であればNoと判定する。
That is, by the averaging step 10, the pseudo 2
The number of repetitions up to the creation of the value image is determined. In the averaging step 10, if the number of repetitions is A = 3 or more, Y
If it is less than es, it is determined as No.

【0077】Noと判定された場合は擬似2値画像のそ
れぞれの位置にある黒画素数BA(x,y)を記憶ステ
ップ12で記憶し、擬似2値画像を2値画像102に初
期化してから、注目画素決定ステップ3へ戻る。平均化
ステップ10で該繰り返し回数がYesと判定されるま
で、上述のランダムに注目画素を分散させ擬似2値画像
を作成する各ステップが上述の様に繰り返される。
If No, the number of black pixels B A (x, y) at each position of the pseudo binary image is stored in the storage step 12, and the pseudo binary image is initialized to the binary image 102. Then, the process returns to the target pixel determination step 3. Until the number of repetitions is determined to be Yes in the averaging step 10, the above steps of randomly distributing the pixel of interest and creating a pseudo binary image are repeated as described above.

【0078】平均化ステップ10が、繰り返し回数A=
3を判別すると、平均疑似2値画像ステップ13は各々
の位置の黒画素数と該繰り返し回数とに基づいて平均疑
似2値画像を求める。
The averaging step 10 calculates the number of repetitions A =
When 3 is determined, the average pseudo binary image step 13 obtains an average pseudo binary image based on the number of black pixels at each position and the number of repetitions.

【0079】平均疑似2値画像ステップ13は、擬似2
値画像のそれぞれの位置にある黒画素数をBA、疑似2
値画像の作成回数をAとして、
The average pseudo binary image step 13 is a pseudo binary
The number of black pixels at each position of the value image is B A , pseudo 2
Assuming that the number of creations of the value image is A,

【数2】 より1画素内にある黒の平均個数を求め、それぞれの位
置の黒の平均個数を示す平均擬似2値画像を得る。
(Equation 2) Then, the average number of blacks within one pixel is obtained, and an average pseudo binary image indicating the average number of blacks at each position is obtained.

【0080】次に、多値化ステップ15は、該平均擬似
2値画像を8×8単位(V×W単位)のスキャンマトリ
ックス毎に分割し、それぞれのスキャンマトリックス内
の白黒の比に応じた(M’/V)×(N’/W)個の画
素からなる図8に示す多値画像105を得る。但し、ス
キャンマトリックス内の黒の総和が V×W=8×8=64 を超える場合は64とする。多値画像105は縦20画
素、横20画素、総画素数400個からなっている。
Next, in the multi-value conversion step 15, the average pseudo binary image is divided into scan matrices of 8 × 8 units (V × W units), and according to the ratio of black and white in each scan matrix. A multi-valued image 105 shown in FIG. 8 including (M ′ / V) × (N ′ / W) pixels is obtained. However, if the sum of black in the scan matrix exceeds V × W = 8 × 8 = 64, the value is 64. The multi-valued image 105 is composed of 20 pixels vertically, 20 pixels horizontally and 400 pixels in total.

【0081】尚、上記実施の形態では、入力2値画像を
拡大(または縮小)する場合を示したが、入力2値画像
をそのまま使用してもよい。
In the above embodiment, the case where the input binary image is enlarged (or reduced) is shown, but the input binary image may be used as it is.

【0082】また、疑似2値画像を複数回作成して、こ
の疑似2値画像を平均して平均疑似2値画像を得る場合
を示したが、1回だけ疑似2値画像作成し、この2値画
像に基づいて多値画像を作成してもよい。
Also, a case has been shown in which a pseudo binary image is created a plurality of times, and the pseudo binary image is averaged to obtain an average pseudo binary image. A multi-value image may be created based on the value image.

【0083】また、黒画素の分散回数は12600回の
場合を示したが、必ずしも12600回である必要はな
く、必要に応じて増減できる。
Although the number of times of dispersion of black pixels is 12600 times, it is not necessarily 12600 times and can be increased or decreased as necessary.

【0084】尚、本実施の形態においても注目画素を順
番に決定してもよい。 <実施の形態3>図13は、本願第三実施の形態のフロ
ーチャートを示す。
In this embodiment, the target pixel may be determined in order. <Third Embodiment> FIG. 13 is a flowchart of a third embodiment of the present invention.

【0085】図1で示した本願第一実施の形態と比較す
ると、注目画素決定ステップ、参照画素決定ステップが
異なる。また、本第三実施の形態では白画素判定ステッ
プを必要としない。他の点は前記第一実施の形態と同一
であり、図1と同一の符号はそれぞれ同一のものを示
す。
As compared with the first embodiment of the present invention shown in FIG. 1, the target pixel determining step and the reference pixel determining step are different. Further, the third embodiment does not require a white pixel determination step. The other points are the same as those of the first embodiment, and the same reference numerals as those in FIG. 1 indicate the same parts.

【0086】本第三実施の形態でも、第一実施の形態と
同様に、画素補間ステップ1には、図2に示した2値画
像101が入力する。
In the third embodiment, the binary image 101 shown in FIG. 2 is input to the pixel interpolation step 1 as in the first embodiment.

【0087】2値画素101は、10×10単位(m×
n単位)の閾値マトリックスを用いて得られる面積率5
0%を表わす2値化された網点によって形成された画像
で、縦80画素(M)、横80画素(N)、総画素数6
400個からなっている。
The binary pixel 101 has a size of 10 × 10 units (mx
area ratio 5 obtained using a threshold matrix of (n units)
An image formed by binarized halftone dots representing 0%, with 80 pixels vertically (M), 80 pixels horizontally (N), and a total number of pixels of 6
It consists of 400 pieces.

【0088】画素補間ステップ1は、2値画像101を
k=2倍する。最近傍法を用いて画素補間された2値画
像102は、縦160画素(M’)、横160画素
(N’)、総画素数25600個からなっている。該補
間された2値画像を図3に示す。
In the pixel interpolation step 1, k = 2 times the binary image 101. The binary image 102 pixel-interpolated using the nearest neighbor method has 160 vertical pixels (M ′), 160 horizontal pixels (N ′), and a total of 25600 pixels. FIG. 3 shows the interpolated binary image.

【0089】該補間された2値画像102は、黒画素カ
ウントステップ2により2値画像領域内の黒画素がカウ
ントされる。黒画素カウントステップ2は、各黒画素に
黒画素を識別するための番号である背番号を順次付して
いく。
In the interpolated binary image 102, black pixels in the binary image area are counted in a black pixel counting step 2. The black pixel counting step 2 sequentially assigns a uniform number, which is a number for identifying a black pixel, to each black pixel.

【0090】このカウント処理を、図4に示すマトリッ
クスの1単位の2値画像103により説明する。黒画素
カウントステップ2は、X=9,Y=1の黒画素に背番
号P=1を,X=10,Y=1の黒画素に背番号P=2
を,以下各黒画素に同様に背番号を付ける。2値画像領
域内のすべての黒画素に背番号を付け終わると総黒画素
数T=12800が求まる。即ち、最後の黒画素の背番
号PはP=12800である。
The counting process will be described with reference to the binary image 103 of one unit of the matrix shown in FIG. In the black pixel counting step 2, the uniform number P = 1 is assigned to the black pixels of X = 9 and Y = 1, and the unique number P = 2 is assigned to the black pixels of X = 10 and Y = 1.
Is assigned a uniform number to each black pixel. When all the black pixels in the binary image area have been assigned a uniform number, the total number of black pixels T = 12800 is obtained. That is, the uniform number P of the last black pixel is P = 12800.

【0091】次に、注目画素決定ステップ23により、
画素補間された2値画像領域内の黒画素を背番号順に注
目する。背番号順とは、1の次は2、2のつぎは3、・
・・と黒画素を背番号順に選ぶことである。
Next, in the pixel of interest determination step 23,
Attention is paid to the black pixels in the binary image area in which the pixels have been interpolated in the order of the numbers. In the order of the numbers, the next to 1 is 2, the next to 2 is 3, etc.
.. and black pixels are selected in the order of their numbers.

【0092】この様に、注目画素決定ステップ23は、
T個の黒画素中から1個の黒画素を背番号1,2,3,
・・・と背番号の順番に選択して注目する。これは本第
三実施の形態の特徴の1つである。
As described above, the pixel-of-interest determination step 23 is as follows.
One black pixel among the T black pixels is assigned a uniform number 1, 2, 3,
... and the numbers are selected in the order and attention is paid. This is one of the features of the third embodiment.

【0093】次に、参照画素決定ステップ24により、
注目画素の周りの画素からランダム(無作為)に1個の
画素を選択し、該選択された画素を参照画素として決定
する。
Next, in the reference pixel determination step 24,
One pixel is randomly (randomly) selected from the pixels around the target pixel, and the selected pixel is determined as a reference pixel.

【0094】本第三実施の形態は、参照画素決定ステッ
プ24が、乱数を用いて全黒画素を所望の分散頻度で分
散させる点に特徴がある。
The third embodiment is characterized in that the reference pixel determination step 24 distributes all black pixels at a desired distribution frequency using random numbers.

【0095】参照画素決定ステップを図11に示す参照
画素決定処理の説明図に基づいて説明する。
The reference pixel determination step will be described with reference to the explanatory diagram of the reference pixel determination processing shown in FIG.

【0096】参照画素決定ステップ21は、図11に示
すように、周辺画素の内の、注目画素Fから移動距離r
およびランダムの角度θだけ離れた位置に存在する画素
を参照画素Wとする。
As shown in FIG. 11, the reference pixel determination step 21 is performed at a moving distance r from the target pixel F in the peripheral pixels.
A pixel located at a position separated by a random angle θ is defined as a reference pixel W.

【0097】例えば、移動距離rは、先ず、ボックス・
ミュラー法により、2個の正規乱数G1,G2(平均
0,分散1)を2個の[0,1]一様乱数R1,R2から
作り、そして、G1、|G2|、定数の3つの項から下
式(9)で決定する。
For example, the moving distance r is first determined by
By the Mueller method, two normal random numbers G1 and G2 (mean 0, variance 1) are generated from the two [0,1] uniform random numbers R1 and R2, and three terms of G1, | G2 | From Equation (9) below.

【0098】 r=[k(m+n)/20]・(G1−2×|G2|+10) =[2(10+10)/20]・(G1−2×|G2|+10) =2(G1−2×|G2|+10) ・・・・・・(9) 但し、 G1=(−2×log(R1))1/2×cos(2π×
R2) G2=(−2×log(R1))1/2×sin(2π×
R2) とする。。
R = [k (m + n) / 20] · (G1-2 × | G2 | +10) = [2 (10 + 10) / 20] · (G1-2 × | G2 | +10) = 2 (G1-2) × | G2 | +10) (9) where G1 = (− 2 × log (R1)) 1/2 × cos (2π ×
R2) G2 = (− 2 × log (R1)) 1/2 × sin (2π ×
R2). .

【0099】即ち、参照画素決定ステップ24は、上式
(9)によって移動距離rを図14に示すヒストグラム
107の頻度で決定する。
That is, in the reference pixel determination step 24, the moving distance r is determined by the above equation (9) based on the frequency of the histogram 107 shown in FIG.

【0100】ここで、図14は、縦軸は各黒画素の各移
動距離に出現する頻度を示し、横軸は1画素の大きさ単
位で表した各黒画素の移動距離を示す。
Here, in FIG. 14, the vertical axis indicates the frequency of occurrence of each black pixel at each moving distance, and the horizontal axis indicates the moving distance of each black pixel expressed in units of one pixel.

【0101】また、角度θは、[0,1]一様乱数Rを用
いると、 θ=2π×R ・・・・・・・(10) と定義され、任意の方向が等しい確率で決定される。
The angle θ is defined as θ = 2π × R (10) using the [0, 1] uniform random number R, and an arbitrary direction is determined with equal probability. You.

【0102】極座標系(r,θ)を直行座標系(x,
y)に変換し、画素位置は整数であることを考慮する
と、参照画素位置W(x,y)=(x1,y1)は注目画
素位置(x,y)=(x0,y0)を用いて、 W(x1,y1)=(x0+Δx,y0+Δy)(x0+i
nt[r×cos(θ)],y0+int[r×sin
(θ)] となる。
The polar coordinate system (r, θ) is changed to a rectangular coordinate system (x,
y), and considering that the pixel position is an integer, the reference pixel position W (x, y) = (x 1 , y 1 ) is the target pixel position (x, y) = (x 0 , y 0) ), W (x 1 , y 1 ) = (x 0 + Δx, y 0 + Δy) (x 0 + i
nt [r × cos (θ)], y 0 + int [r × sin
(Θ)].

【0103】以上、上式によって注目画素の周りの(距
離r,角度θだけ離れた)画素を予め設定したヒストグ
ラムに基づいてランダムに参照する事ができる。
As described above, pixels around the target pixel (a distance r and an angle θ apart) can be randomly referred to based on the preset histogram.

【0104】次に、位置移動ステップ7により、黒画素
(背番号P)を注目画素位置F(x,y)=(x0
0)から参照画素位置W(x,y)=(x1,y1)に
移動させる。
Next, in the position moving step 7, the black pixel (back number P) is set to the target pixel position F (x, y) = (x 0 ,
(y 0 ) to the reference pixel position W (x, y) = (x 1 , y 1 ).

【0105】F(x0,y0)→(x1,y1) 但し、図12に示すように参照画素W1の位置が画素補
間された2値画像領域外の場合は、注目画素Fは移動さ
れず元の位置を保つ。
F (x 0 , y 0 ) → (x 1 , y 1 ) However, if the position of the reference pixel W 1 is outside the pixel-interpolated binary image area as shown in FIG. Is not moved and keeps its original position.

【0106】F(x0,y0)→(x0,y0) また、本第三実施の形態の場合には参照画素が白画素ま
たは黒画素であつても注目画素は移動し、図12に示す
様に、複数の黒画素が同じ参照画素W2の位置にあるこ
ともある(参照画素位置に黒画素があっても、注目画素
は移動する。)次に、分散回数判定ステップ8により、
「参照画素の白黒に関係なく注目画素は移動し、参照画
素が画素補間された2値画像領域外の場合のみ、同じ位
置を保つ」という分散を何回繰り返しているかを判定す
る。
F (x 0 , y 0 ) → (x 0 , y 0 ) In the third embodiment, even if the reference pixel is a white pixel or a black pixel, the target pixel moves. as shown in 12, (even if there is a black pixel in the reference pixel position, the pixel of interest is moved.), sometimes there are a plurality of black pixels in the same position of the reference pixel W 2 Next, dispersion times judging step 8 By
It is determined how many times the variance of “the target pixel moves regardless of the black and white of the reference pixel and the same position is maintained only when the reference pixel is outside the pixel-interpolated binary image area” is repeated.

【0107】本第三実施の形態では注目画素を背番号順
に参照画素位置に分散させるので、分散回数ステップ8
は、分散回数が総注目画素数T=12800以上であれ
ば、Yes、未満であればNoと判定する。Noと判定
された場合は注目画素判定ステップ20へ戻り、分散回
数判定ステップ8でYesと判定されるまで分散動作を
繰り返す。
In the third embodiment, the target pixel is dispersed at the reference pixel position in the order of the spine number.
Is determined as Yes if the number of times of distribution is equal to or greater than the total number of pixels of interest T = 12800, and is determined as No if less than T800. If the determination is No, the process returns to the pixel-of-interest determination step 20, and the dispersing operation is repeated until the result of the dispersal number determination step 8 is Yes.

【0108】分散回数判定ステップ8が12800回の
分散を判別すると、画素補間された2値画像領域内のす
べての黒画素を1回の移動によって、ランダムに分散さ
せた擬似2値画像が疑似2値画像ステップ9で作成され
る。
When the number-of-dispersion determination step 8 determines that the dispersion is 12,800 times, a pseudo binary image in which all the black pixels in the pixel-interpolated binary image area are randomly dispersed by one movement is converted into a pseudo binary image. It is created in the value image step 9.

【0109】上記の「擬似2値画像を作る」までのステ
ップは、所望の高い画質を持つ多値画像を得るために、
予め設定された回数繰り返えされる。第三実施の形態で
は該繰返し回数Aは3回と設定されている。
The steps up to “creating a pseudo-binary image” are as follows in order to obtain a multi-valued image having a desired high image quality.
It is repeated a preset number of times. In the third embodiment, the number of repetitions A is set to three times.

【0110】即ち、平均化ステップ10により、疑似2
値画像作成までの繰り返し回数が判定される。
That is, by the averaging step 10, the pseudo 2
The number of repetitions up to creation of the value image is determined.

【0111】平均化ステップ10は、繰り返し回数がA
=3回以上であればYes、未満であればNoと判定す
る。
In the averaging step 10, when the number of repetitions is A
If it is equal to or more than three times, it is determined as Yes, and if it is less than No, it is determined as No.

【0112】Noと判定された場合は擬似2値画像のそ
れぞれの位置にある黒画素数BA(x,y)を記憶ステ
ップ12で記憶し、擬似2値画像を2値画像102に初
期化してから、注目画素決定ステップ3へ戻る。平均化
ステップ10で該繰り返し回数がYesと判定されるま
で、上述のランダムに注目画素を分散させ擬似2値画像
を作成する各ステップが上述の様に繰り返される。
If No, the number of black pixels B A (x, y) at each position of the pseudo binary image is stored in the storage step 12, and the pseudo binary image is initialized to the binary image 102. Then, the process returns to the target pixel determination step 3. Until the number of repetitions is determined to be Yes in the averaging step 10, the above steps of randomly distributing the pixel of interest and creating a pseudo binary image are repeated as described above.

【0113】平均化ステップ10が、繰り返し回数A=
3を判別すると、平均疑似2値画像ステップ13は各々
の位置の黒画素数と該繰り返し回数とに基づいて平均疑
似2値画像を求める。
The averaging step 10 calculates the number of repetitions A =
When 3 is determined, the average pseudo binary image step 13 obtains an average pseudo binary image based on the number of black pixels at each position and the number of repetitions.

【0114】平均疑似2値画像ステップ13は、擬似2
値画像のそれぞれの位置にある黒画素数をBA、疑似2
値画像の作成回数をAとして、
The average pseudo binary image step 13 is a pseudo binary
The number of black pixels at each position of the value image is B A , pseudo 2
Assuming that the number of creations of the value image is A,

【数3】 より1画素内にある黒の平均個数を求め、それぞれの位
置の黒の平均個数を示す平均擬似2値画像を得る。
(Equation 3) Then, the average number of blacks within one pixel is obtained, and an average pseudo binary image indicating the average number of blacks at each position is obtained.

【0115】次に、多値化ステップ15は、該平均擬似
2値画像を8×8単位(V×W単位)のスキャンマトリ
ックス毎に分割し、それぞれのスキャンマトリックス内
の白黒の比に応じた(M’/V)×(N’/W)個の画
素からなる図8に示す多値画像105を得る。但し、ス
キャンマトリックス内の黒の総和が V×W=8×8=64 を超える場合は64とする。多値画像105は縦20画
素、横20画素、総画素数400個からなっている。
Next, the multi-value conversion step 15 divides the average pseudo binary image into scan matrices of 8 × 8 units (V × W units) and according to the ratio of black and white in each scan matrix. A multi-valued image 105 shown in FIG. 8 including (M ′ / V) × (N ′ / W) pixels is obtained. However, if the sum of black in the scan matrix exceeds V × W = 8 × 8 = 64, the value is 64. The multi-valued image 105 is composed of 20 pixels vertically, 20 pixels horizontally and 400 pixels in total.

【0116】ここで、図15を用いて本発明によるモア
レと従来方法によるモアレを比較して詳細に説明する。
Here, the moire according to the present invention and the moire according to the conventional method will be described in detail with reference to FIG.

【0117】図15において、閾値マトリックスのサイ
ズ10×10の2値画像110をスキャンマトリックス
のサイズ8×8で多値化したものが、多値画像111で
ある。閾値マトリックスのサイズとスキャンマトリック
スのサイズが異なるために、多値画像111には周期性
のあるモアレが生じている。図112は多値画像111
を数値で表現したものである。図112のZ軸方向は一
つのスキャンマトリックス領域にある黒画素の数を表
し、階調を意味する。図112からも、周期性のあるモ
アレが生じているのが分かる。
In FIG. 15, a multi-valued image 111 is obtained by converting a binary image 110 having a threshold matrix size of 10.times.10 into a scan matrix having a size of 8.times.8. Since the size of the threshold matrix is different from the size of the scan matrix, periodic moire occurs in the multi-valued image 111. FIG. 112 shows a multi-valued image 111.
Is represented by a numerical value. The Z-axis direction in FIG. 112 indicates the number of black pixels in one scan matrix area, and means a gray scale. From FIG. 112, it can be seen that moiré having periodicity occurs.

【0118】一方、2値画像110をいったん、ランダ
ムに分散させた疑似2値画像121を作り、スキャンマ
トリックスのサイズ8×8で多値化したものが、多値画
像122である。図123は多値画像122を数値で表
現したものである。多値画像122と図123から周期
性のあるモアレがなくなり、原図(50%)に近づいて
いる事が分かる。
On the other hand, a multi-valued image 122 is obtained by forming a pseudo-binary image 121 in which the binary image 110 is once dispersed at random, and converting the binary value to a scan matrix size of 8 × 8. FIG. 123 illustrates the multi-value image 122 by numerical values. From the multi-valued image 122 and FIG. 123, it can be seen that the moire with periodicity disappears and approaches the original drawing (50%).

【0119】尚、上記実施の形態では、着目画素が黒画
素の場合を示したが、これに限られるものでなく、白画
素を着目画素としよい。
In the above embodiment, the case where the target pixel is a black pixel has been described. However, the present invention is not limited to this, and a white pixel may be used as the target pixel.

【0120】また、入力2値画像を拡大(または縮小)
する場合を示したが、入力2値画像をそのまま使用して
もよい。
Further, the input binary image is enlarged (or reduced).
However, the input binary image may be used as it is.

【0121】また、疑似2値画像を複数回作成して、こ
の疑似2値画像を平均して平均疑似2値画像を得る場合
を示したが、1回だけ疑似2値画像作成し、この2値画
像に基づいて多値画像を作成してもよい。
Also, a case has been shown in which a pseudo binary image is created a plurality of times, and the pseudo binary image is averaged to obtain an average pseudo binary image. A multi-value image may be created based on the value image.

【0122】また、注目画素を第一、第二実施の形態の
様にランダムに選択してもよい。
The pixel of interest may be randomly selected as in the first and second embodiments.

【0123】また、上記第1ないし第3の実施の形態の
各ステップは、コンピュータ読み取り可能な記憶媒体に
記憶されることがよい。
Each step of the first to third embodiments is preferably stored in a computer-readable storage medium.

【0124】[0124]

【効果】以上説明したように本発明によれば、2値画像
から多値画像へと変換する際に、2値画像から直接に多
値画像を作成するのでなく、2値画像からいったん、黒
画素をランダムに分散させた擬似2値画像を作成し、該
疑似2値画像から閾値マトリックスと異なる又は同一サ
イズのスキャンマトリックスを用いて、多値画像に変換
することとした。
As described above, according to the present invention, when converting a binary image to a multi-valued image, the multi-valued image is not directly created from the binary image, but is converted from the binary image to black once. A pseudo binary image in which pixels are randomly dispersed is created, and the pseudo binary image is converted into a multi-valued image using a scan matrix having a size different from or the same as the threshold matrix.

【0125】したがって、変換された多値画像に周期性
のモアレが生じることがない。更に、擬似2値画像には
閾値マトリックス(m×n)毎による周期性がないの
で、用途にあったスキャンマトリックスの多値画像が得
られる効果を有する。
Therefore, there is no occurrence of periodic moire in the converted multi-valued image. Further, since the pseudo binary image has no periodicity for each threshold matrix (m × n), there is an effect that a multi-valued image of a scan matrix suitable for the application can be obtained.

【図面の簡単な説明】[Brief description of the drawings]

【図1】第一実施の形態のフローチャートFIG. 1 is a flowchart of a first embodiment.

【図2】入力2値画像(面積率50%)の説明図FIG. 2 is an explanatory diagram of an input binary image (50% area ratio);

【図3】補間された2値画像の説明図FIG. 3 is an explanatory diagram of an interpolated binary image.

【図4】閾値マトリックス単位の2値画像(図3の拡大
図)
FIG. 4 is a binary image of a threshold matrix unit (an enlarged view of FIG. 3);

【図5】参照画素決定ステップの説明図FIG. 5 is an explanatory diagram of a reference pixel determination step.

【図6】参照画素決定ステップの説明図FIG. 6 is an explanatory diagram of a reference pixel determination step.

【図7】疑似2値画像の説明図FIG. 7 is an explanatory diagram of a pseudo binary image.

【図8】多値画像の説明図FIG. 8 is an explanatory diagram of a multi-value image.

【図9】第二実施の形態のフローチャートFIG. 9 is a flowchart of the second embodiment.

【図10】移動距離のヒストグラムFIG. 10 is a histogram of a moving distance.

【図11】参照画素決定ステップの説明図FIG. 11 is an explanatory diagram of a reference pixel determination step.

【図12】参照画素決定ステップの説明図FIG. 12 is an explanatory diagram of a reference pixel determination step.

【図13】第三実施の形態のフローチャートFIG. 13 is a flowchart of the third embodiment.

【図14】移動距離のヒストグラムFIG. 14 is a histogram of a moving distance.

【図15】本発明による分散によるモアレ減少を説明す
る写真
FIG. 15 is a photograph illustrating the reduction of moire due to dispersion according to the present invention.

Claims (8)

【特許請求の範囲】[Claims] 【請求項1】 閾値マトリックスを用いて得られた2値
画像を該閾値マトリックスと異なる又は同一サイズのス
キャンマトリックスで多値画像に変換する2値多値画像
変換方法において、 該2値画像中の着色画素または白色画素の何れか一方に
注目して注目画素を決定する第1のステップと、 該第1のステップで決定された注目画素の該2値画像内
での移動位置を決定する第2のステップと、 該第2のステップで決定された移動位置に該注目画素を
分散させる第3のステップと、 該第3のステップの結果から得られる2値画像に基づい
て多値画像を得るステップと、 を備えたことを特徴とする2値多値画像変換方法。
1. A binary multi-valued image conversion method for converting a binary image obtained using a threshold value matrix into a multi-valued image by using a scan matrix having a size different from or the same as the threshold value matrix, A first step of determining a target pixel by focusing on one of a colored pixel and a white pixel; and a second step of determining a moving position of the target pixel determined in the first step in the binary image. And a third step of dispersing the pixel of interest at the movement position determined in the second step; and a step of obtaining a multi-valued image based on the binary image obtained from the result of the third step A method for converting a binary / multi-valued image, comprising:
【請求項2】 前記第1のステップが、該注目する画素
を1/総注目画素数の確率で決定することを特徴とする
請求項1に記載の2値多値画像変換方法。
2. The method according to claim 1, wherein in the first step, the pixel of interest is determined by a probability of 1 / total number of pixels of interest.
【請求項3】 前記第1のステップが、該注目する画素
を順番に決定することを特徴とする請求項1に記載の2
値多値画像変換方法。
3. The method according to claim 1, wherein the first step determines the pixels of interest in order.
Value multi-value image conversion method.
【請求項4】 前記第2のステップが、前記第1のステ
ップで決定された注目画素に隣接する画素の内から1つ
の画素を選択することを特徴とする請求項1ないし3の
いずれかに記載の2値多値画像変換方法。
4. The method according to claim 1, wherein the second step selects one pixel from the pixels adjacent to the target pixel determined in the first step. The binary / multivalued image conversion method as described in the above.
【請求項5】 前記第2のステップが、試行を繰り返し
て得られた結果から予め測定された前記注目する画素が
移動する移動距離頻度に基づいて該注目する画素の移動
すべき距離を決定することを含むことを特徴とする請求
項1なしい3の何れかに記載の2値多値画像変換方法。
5. The method according to claim 2, wherein the second step determines a moving distance of the target pixel based on a frequency of a moving distance of the target pixel which is measured in advance from a result obtained by repeating the trial. 4. The method according to claim 1, further comprising the steps of:
【請求項6】 前記第2のステップが、該注目する画素
の移動頻度が、移動すべき距離に対して所望のヒストグ
ラムになるように各注目画素の移動距離を決定すること
を含むことを特徴とする請求項1なしい3の何れかに記
載の2値多値画像変換方法。
6. The method according to claim 1, wherein the second step includes determining a moving distance of each pixel of interest such that the frequency of movement of the pixel of interest has a desired histogram with respect to a distance to be moved. The binary / multi-value image conversion method according to any one of claims 1 to 3.
【請求項7】 前記第2のステップが、注目する画素部
の移動距離rを r=[(m+n)/20]・(G1−2×|G2|+1
0) 但し、m,nは整数で閾値マトリックスの大きさであ
り、G1、G2はボックス・ミュラー法により得られる
平均0、分散1の正規乱数であり、 G1=(−2×log(R1))1/2×cos(2π×
R2) G2=(−2×log(R1))1/2×sin(2π×
R2) 尚、R1、R2は[0,1]一様乱数より決定するするこ
とを特徴とする請求項1ないし3の何れかに記載の2値
多値画像変換方法。
7. In the second step, the moving distance r of the pixel portion of interest is calculated as follows: r = [(m + n) / 20] · (G1-2 × | G2 | +1
0) where m and n are integers and the size of the threshold matrix, G1 and G2 are normal random numbers with mean 0 and variance 1 obtained by the Box-Muller method, and G1 = (− 2 × log (R1)) ) 1/2 × cos (2π ×
R2) G2 = (− 2 × log (R1)) 1/2 × sin (2π ×
R2) The method according to any one of claims 1 to 3, wherein R1 and R2 are determined from [0,1] uniform random numbers.
【請求項8】 前記第3のステップが、前記移動位置に
存在する画素が白画素のときだけ前記注目画素である着
色画素を分散させ、また前記移動位置に存在する画素が
着色画素のときだけ前記注目画素である白色画素を分散
させることを特徴とする請求項1ないし3のいずれかに
記載の2値多値画像変換方法。
8. The method according to claim 3, wherein the third step disperses the colored pixel as the target pixel only when the pixel existing at the movement position is a white pixel, and only when the pixel existing at the movement position is a colored pixel. 4. The method according to claim 1, wherein the white pixels as the target pixels are dispersed.
JP33939897A 1997-11-25 1997-11-25 Binary multi-value image conversion method Expired - Fee Related JP3779051B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP33939897A JP3779051B2 (en) 1997-11-25 1997-11-25 Binary multi-value image conversion method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP33939897A JP3779051B2 (en) 1997-11-25 1997-11-25 Binary multi-value image conversion method

Publications (2)

Publication Number Publication Date
JPH11164143A true JPH11164143A (en) 1999-06-18
JP3779051B2 JP3779051B2 (en) 2006-05-24

Family

ID=18327107

Family Applications (1)

Application Number Title Priority Date Filing Date
JP33939897A Expired - Fee Related JP3779051B2 (en) 1997-11-25 1997-11-25 Binary multi-value image conversion method

Country Status (1)

Country Link
JP (1) JP3779051B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015106767A (en) * 2013-11-29 2015-06-08 Necエンジニアリング株式会社 Image conversion processing method, program for executing the same and image conversion processing device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015106767A (en) * 2013-11-29 2015-06-08 Necエンジニアリング株式会社 Image conversion processing method, program for executing the same and image conversion processing device

Also Published As

Publication number Publication date
JP3779051B2 (en) 2006-05-24

Similar Documents

Publication Publication Date Title
JP3327680B2 (en) Generation method of halftone image using special filter
JP3301770B2 (en) Method for printing on one or more color planes with improved error diffusion control
JPH0472433B2 (en)
EP0803160B1 (en) Image display using irregularly placed spiral structures
KR20080106458A (en) Multilevel halftone screen and sets thereof
JPH05308515A (en) Method for quantizing pixel value in picture
EP0591274A1 (en) Improved error diffusion system
JPH11239274A (en) Image processing method and device
JPH113420A (en) Digital halftone processing using sequenced base tone
JP3810835B2 (en) Image processing method using error diffusion and halftone processing
JPH11239275A (en) Image processing method and device
JPH10164366A (en) Printing system and design method for halftone screen
US7460276B2 (en) Systems and methods for rank-order error diffusion image processing
EP0772934B1 (en) Image display using evenly distributed intensity clusters
US6025930A (en) Multicell clustered mask with blue noise adjustments
JP2001527340A (en) Method and apparatus for creating a threshold array using variance minimization and pixel angle calculation
JPH0785272A (en) Frequency-modulated halftone image and formation method
US6498868B1 (en) Image scaling using pattern matching to select among scaling algorithms
EP1503574B1 (en) Stochastic halftone screening method
JPH07307866A (en) Processing unit and method for binarizing image signal
JPH11164143A (en) Binary multi-valued image conversion method
JPH0793531A (en) Picture processor
JP2001285634A (en) Image processing apparatus
JP2002044445A (en) Image processor and image processing method, and method for generating threshold matrix for generating halftone image
JP4108517B2 (en) Halftoning processing method and halftoning processing system

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20041116

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20051110

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20060106

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20060301

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20100310

Year of fee payment: 4

LAPS Cancellation because of no payment of annual fees