JPH10302055A - Image reducing method and storage medium recording program - Google Patents

Image reducing method and storage medium recording program

Info

Publication number
JPH10302055A
JPH10302055A JP9110875A JP11087597A JPH10302055A JP H10302055 A JPH10302055 A JP H10302055A JP 9110875 A JP9110875 A JP 9110875A JP 11087597 A JP11087597 A JP 11087597A JP H10302055 A JPH10302055 A JP H10302055A
Authority
JP
Japan
Prior art keywords
pixel
image
pixels
density data
original image
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP9110875A
Other languages
Japanese (ja)
Inventor
Itaru Furukawa
至 古川
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.)
Dainippon Screen Manufacturing Co Ltd
Original Assignee
Dainippon Screen Manufacturing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Dainippon Screen Manufacturing Co Ltd filed Critical Dainippon Screen Manufacturing Co Ltd
Priority to JP9110875A priority Critical patent/JPH10302055A/en
Publication of JPH10302055A publication Critical patent/JPH10302055A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To provide an image reducing method capable of reducing an image without reducing picture quality and a storage medium recording a program for allowing a computer to execute the method. SOLUTION: A calculation target pixel section in an original image which is to be used for calculating the density data of pixels to be calculated in a reduced image is determined in accordance with the reduction rate of the image (step S1). Plural pixels representing mutually related calculation target pixel sections of the original image are selected based on the similarity of density data values of respective pixels in the calculation target pixel section determined in the step S1 and the similarity of distances of respective pixels (step 52). Processing (step S3) for adopting the mean value of density data of respective pixels selected in the step S2 as the density data of pixels to be calculated in the reduced image is repeated (step S4) and the density data of respective pixels in the reduced image are found out to obtain the reduced image of the original image.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、デジタルの原画像
を縮小して縮小後の画像を得る画像縮小方法およびその
方法をコンピュータに実行させるためのプログラムを記
録した記憶媒体に関する。
[0001] 1. Field of the Invention [0002] The present invention relates to an image reduction method for obtaining a reduced image by reducing a digital original image and a storage medium storing a program for causing a computer to execute the method.

【0002】[0002]

【従来の技術】従来のこの種の画像縮小は、図22に示
すように、所望の縮小方向(図ではX方向)に並ぶ原画
像OGの1画素列(画素列1、画素列2、…、画素列
Z)ごとに、所望の縮小率n/m(n、mはn<mの正
の数)で縮小して、原画像OGを1次元の縮小方向に縮
小した縮小後の画像SGを得るようにしている。
2. Description of the Related Art As shown in FIG. 22, this kind of conventional image reduction is performed by one pixel row (pixel row 1, pixel row 2,...) Of an original image OG arranged in a desired reduction direction (X direction in the figure). , For each pixel row Z), a reduced image SG in which the original image OG is reduced in a one-dimensional reduction direction by reducing the original image OG in a desired reduction ratio n / m (n, m is a positive number of n <m). I'm trying to get

【0003】この種の画像縮小では、通常、原画像OG
の縮小方向内に処理範囲SHを設定することができるよ
うになっている。これは、原画像OGの縮小方向の画素
列の端部に画像と無関係な不要部分(不要画素)がある
場合などに、その不要画素を縮小後の画像SGに反映さ
せないようにするためである。図22では点線で挟まれ
た範囲を処理範囲SHとした場合の画像縮小を示してい
るが、原画像OGに不要画素がなければ縮小方向の画素
列全体を処理範囲SHとして処理される。
In this type of image reduction, an original image OG is usually used.
The processing range SH can be set in the reduction direction of. This is to prevent the unnecessary pixels from being reflected in the reduced image SG, for example, when there is an unnecessary portion (unnecessary pixel) unrelated to the image at the end of the pixel row in the reduction direction of the original image OG. . FIG. 22 shows image reduction when the range between the dotted lines is the processing range SH. However, if there is no unnecessary pixel in the original image OG, the entire pixel row in the reduction direction is processed as the processing range SH.

【0004】上記1画素例ごとの画像縮小は、従来、図
23に示すように、原画像の画素列内の画素の位置に応
じて割り振った荷重による隣接画素の荷重平均で行って
いる。なお、図23では縮小率n/mを2/7としてい
る。また、図中の各符号は以下の通りである。
Conventionally, the image reduction for each pixel example is performed by averaging the weight of adjacent pixels by the weight allocated according to the position of the pixel in the pixel row of the original image as shown in FIG. In FIG. 23, the reduction ratio n / m is 2/7. In addition, each symbol in the figure is as follows.

【0005】sは、原画像OGの処理対象の1画素列
(画素列1、画素列2、…、画素列Z)を構成する画素
の画素No(s=1、2、…、s(MAX) :s(MAX) は図示
を省略しているが原画像OGの処理対象の1画素列の画
素数)、P(s)は、原画像OGの処理対象の1画素列
を構成する各画素の濃度データ、tは、縮小後の画像S
Gの1画素列(画素列1、画素列2、…、画素列Z)を
構成する画素の画素No(t=1、2、…t(MAX) :t
(MAX) は図示を省略しているが縮小後の画像SGの1画
素列の画素数)、Q(t)は、縮小後の画像SGの1画
素列を構成する各画素の濃度データ、s(t)は、原画
像OGの処理対象の1画素列を構成する画素のうち、前
記Q(t)を算出するのに参照する原画像OGの画素の
画素No、s(1)は、原画像OGの処理対象の1画素列
内の処理範囲SHの先頭の画素の画素No、ahは、P
(s(1))の荷重補正量(ah=0、1、…、(n−
1))、R(t)は、前記Q(t)を算出するのに用い
る原画像OGの算出対象領域であって、前記Q(t)を
求める荷重計算に用いる原画像OGの各画素内の区分の
範囲を示す領域、G(t)は、前記Q(t)を算出する
のに用いる原画像OGの算出対象画素区画であって、前
記Q(t)を求める荷重計算に用いる原画像OGの複数
個の隣接画素の範囲を示す区画、である。
[0005] s is a pixel number (s = 1, 2,..., S (MAX ) of pixels constituting one pixel column (pixel column 1, pixel column 2,..., Pixel column Z) to be processed of the original image OG. ) : S (MAX) is not shown, but the number of pixels in one pixel column to be processed in the original image OG), and P (s) is each pixel constituting one pixel column to be processed in the original image OG Is the density data t of the reduced image S
Pixel No. (t = 1, 2,..., T (MAX) : t ) of pixels constituting one pixel column of G (pixel column 1, pixel column 2,..., Pixel column Z)
(MAX) is not shown, but the number of pixels in one pixel column of the reduced image SG), Q (t) is density data of each pixel constituting one pixel column of the reduced image SG, s (T) is a pixel number of a pixel of the original image OG which is referred to when calculating the Q (t) among pixels constituting one pixel column to be processed of the original image OG, and s (1) is an original pixel number. The pixel No. and ah of the first pixel of the processing range SH in one pixel column to be processed of the image OG are P
(S (1)) load correction amount (ah = 0, 1,..., (N−
1)), R (t) is a calculation target area of the original image OG used for calculating the Q (t), and is within each pixel of the original image OG used for the load calculation for obtaining the Q (t). G (t) is a pixel section to be calculated of the original image OG used for calculating the Q (t), and the original image used for the weight calculation for obtaining the Q (t). This is a section indicating the range of a plurality of adjacent pixels of the OG.

【0006】また、従来の方法を演算式で表すと、以下
のようになる。 Q(t)=((n−a(t))/m)×P(s(t)) +Σ{(n/m)×P(i)} 〔i=s(t)+1〜s(t+1)−1〕 +(a(t+1)/m)×P(s(t+1)) … (1) ただし、 s(t)=s(1)+int〔(ah+(m×(t−1)))/n〕 a(t)=(ah+(m×(t−1))) mod n
[0006] The conventional method is expressed by the following equation. Q (t) = ((n−a (t)) / m) × P (s (t)) + {(n / m) × P (i)} [i = s (t) +1 to s (t + 1) ) -1] + (a (t + 1) / m) × P (s (t + 1)) (1) where s (t) = s (1) + int [(ah + (m × (t−1))) / N] a (t) = (ah + (m × (t−1))) mod n

【0007】なお、上記演算式において、int〔A/
B〕は、整数化関数でAをBで除した結果の整数部、A
mod Bは AをBで除したときの余りを求める関
数、である。
In the above equation, int [A /
B] is an integer part of the result of dividing A by B with an integer function, A
mod B is a function for calculating the remainder when A is divided by B.

【0008】処理は、t=1、2、3、…とtを順次カ
ウントアップして、Q(1)、Q(2)、Q(3)、…
の順に縮小後の画像SGの1画素列を構成する各画素の
濃度データを求めていき1画素列分の縮小を行う。この
ような処理を縮小方向に直交する方向(図22ではY方
向)に並列される各画素列(画素列1、画素列2、…、
画素列Z)ごとに行って原画像OGを縮小方向に縮小率
n/mで縮小する。
In the processing, t = 1, 2, 3,... And t are sequentially counted up, and Q (1), Q (2), Q (3),.
In this order, density data of each pixel constituting one pixel row of the reduced image SG is obtained, and reduction of one pixel row is performed. Such processing is performed in each pixel column (pixel column 1, pixel column 2,...) Arranged in parallel in a direction orthogonal to the reduction direction (Y direction in FIG. 22).
The process is performed for each pixel row Z) to reduce the original image OG in the reduction direction at a reduction rate of n / m.

【0009】図23や上記演算式より明らかなように、
この従来方法では、原画像OGの処理対象の1画素列を
構成する各画素を便宜的にn個に区分し、各区分に1/
mの荷重を割り付けて、原画像OGの1画素の最大荷重
をn/mとし、s(1)番目の画素の(ah+1)番目
の区分から始めて、荷重の合計がm/m(100%)に
なるようにR(t)を決め、原画像OGの処理対象の1
画素列内の複数個の隣接画素(G(t)を構成する各画
素)にR(t)の区分数に応じた荷重を割り振り、その
荷重による荷重平均結果を縮小後の1画素の濃度データ
としている。そして、各Q(t)に対する各R(t)を
連続して決めていき、縮小後の画像SGの1画素列の各
画素の濃度データを順次求めていくものである。
[0009] As is clear from FIG.
In this conventional method, each pixel constituting one pixel column to be processed of the original image OG is divided into n pieces for convenience, and 1 /
m, and the maximum load of one pixel of the original image OG is set to n / m. Starting from the (ah + 1) th division of the s (1) th pixel, the total load is m / m (100%). R (t) is determined so that
A plurality of adjacent pixels (pixels constituting G (t)) in the pixel column are assigned a load according to the number of R (t) divisions, and the weighted average result of the load is reduced in density data of one pixel. And Then, each R (t) for each Q (t) is continuously determined, and the density data of each pixel in one pixel column of the reduced image SG is sequentially obtained.

【0010】この従来方法によれば、s(t)を決める
演算式からも明らかなように、例えば、縮小後の画像S
Gの処理対象の画素列内のk番目の画素の濃度データ
〔Q(k)〕の算出で参照する原画像OGの処理対象の
画素列内の画素〔s(k)〕は、s(1)から数えて略
〔(m/n)×k〕番目の画素となる。従って、縮小後
の画像SGの各画素に対する原画像OG内の参照画素
は、縮小率に応じた適切な位置の画素が選ばれる。そし
て、縮小後の画像SGの各画素の濃度データを、各参照
画素の近辺の隣接画素の荷重平均で求めているので、縮
小方向について原画像OGの処理範囲SH全体をn/m
倍に略均等に縮小することができる。
According to this conventional method, as is apparent from the arithmetic expression for determining s (t), for example, the reduced image S
The pixel [s (k)] in the pixel row to be processed of the original image OG referred to in the calculation of the density data [Q (k)] of the k-th pixel in the pixel row to be processed G is s (1 ), It is approximately the [(m / n) × k] th pixel. Therefore, a pixel at an appropriate position according to the reduction ratio is selected as a reference pixel in the original image OG for each pixel of the reduced image SG. Then, since the density data of each pixel of the reduced image SG is obtained by the weighted average of adjacent pixels near each reference pixel, the entire processing range SH of the original image OG in the reduction direction is n / m.
The size can be reduced almost evenly.

【0011】また、2次元のデジタルの原画像を2次元
方向(X方向およびY方向)それぞれに縮小する場合
は、図24に示すように、原画像OGに対して上記方法
でX方向に縮小し、その縮小演算後の画像SG1に対し
て上記方法でY方向に縮小することで、原画像OGを2
次元方向に縮小した画像SG2を得ている。
When the two-dimensional digital original image is reduced in each of the two-dimensional directions (X direction and Y direction), the original image OG is reduced in the X direction by the above method as shown in FIG. Then, the original image OG is reduced to 2 by reducing the reduced image SG1 in the Y direction by the above method.
An image SG2 reduced in the dimensional direction is obtained.

【0012】[0012]

【発明が解決しようとする課題】しかしながら、このよ
うな従来の画像縮小方法には次のような問題がある。図
25を参照する。図25(a)は、白黒(斜線で示す画
素が黒)に2値化(ここでは、黒の画素の濃度データを
「0.00」、白の画素の濃度データを「1.00」と
する)された原画像OGを示し、図25(b)は、図2
5(a)の原画像OGを、従来方法でXY両方向にそれ
ぞれ縮小率を2/7、s(1)=1、ah=0として縮
小した縮小後の画像SGの各画素の濃度データを示す。
However, such a conventional image reduction method has the following problems. Referring to FIG. FIG. 25A shows binarization of black and white (pixels indicated by oblique lines are black) (here, density data of black pixels is “0.00”, density data of white pixels is “1.00”). FIG. 25 (b) shows the original image OG that has been
5A shows density data of each pixel of the reduced image SG obtained by reducing the original image OG in the XY directions in the XY directions in the conventional manner with a reduction ratio of 2/7, s (1) = 1, and ah = 0, respectively. .

【0013】2次元の原画像OGの各画素の濃度データ
をP(sX ,sY )、縮小後の2次元の画像の各画素の
濃度データをQ(tX ,tY )とすると、例えば、Q
(1,3)は、図25(a)のX方向の算出対象画素区
画GX (1)と、Y方向の算出対象画素区画GY (3)
とで囲まれる2次元の算出対象画素区画に含まれる各画
素に対して、X方向の算出対象領域RX (1)と、Y方
向の算出対象領域RY (3)とで囲まれる2次元の算出
対象領域に応じて割り振った荷重による荷重平均であ
り、以下のような演算で求められることになる。
If the density data of each pixel of the two-dimensional original image OG is P (s X , s Y ), and the density data of each pixel of the reduced two-dimensional image is Q (t X , t Y ), For example, Q
(1, 3) is a calculation target pixel section G X (1) in the X direction of FIG. 25A and a calculation target pixel section G Y (3) in the Y direction.
The two-dimensional calculation target region R X (1) and the Y-direction calculation target region R Y (3) for each pixel included in the two-dimensional calculation target pixel section surrounded by Is the load average based on the load allocated according to the calculation target area, and can be obtained by the following calculation.

【0014】 Q(1,3)=2/7×(2/7×P( 1, 8)+2/7×P( 2, 8)+2/7×P( 3, 8)+1/7×P( 4, 8)) +2/7×(2/7×P( 1, 9)+2/7×P( 2, 9)+2/7×P( 3, 9)+1/7×P( 4, 9)) +2/7×(2/7×P( 1,10)+2/7×P( 2,10)+2/7×P( 3,10)+1/7×P( 4,10)) +1/7×(2/7×P( 1,11)+2/7×P( 2,11)+2/7×P( 3,11)+1/7×P( 4,11)) =2/7×(2/7×1.00+2/7×1.00+2/7×0.00+1/7×0.00) +2/7×(2/7×1.00+2/7×0.00+2/7×0.00+1/7×0.00) +2/7×(2/7×1.00+2/7×0.00+2/7×0.00+1/7×0.00) +1/7×(2/7×1.00+2/7×0.00+2/7×0.00+1/7×0.00) =18/49≒0.37Q (1,3) = 2/7 × (2/7 × P (1,8) + 2/7 × P (2,8) + 2/7 × P (3,8) + 1 / 7 × P (4,8)) + 2/7 × (2/7 × P (1,9) + 2/7 × P (2,9) + 2/7 × P (3,9) + 1 / 7 × P (4,9)) + 2/7 × (2/7 × P (1,10) + 2/7 × P (2,10) + 2/7 × P (3,10) + 1 / 7 × P (4,10)) + 1/7 × (2/7 × P (1,11) + 2/7 × P (2,11) + 2/7 × P (3,11) + 1 / 7 × P (4,11)) = 2/7 × (2/7 × 1.00 + 2/7 × 1.00 + 2/7 × 0.00 + 1/7 × 0.00) + 2/7 × (2/7 × 1.00 + 2/7 × 0.00 + 2/7 × 0.00 + 1/7 × 0.00) + 2/7 × (2/7 × 1.00 + 2/7 × 0.00 + 2/7 × 0.00 + 1/7 × 0.00) + 1/7 × (2/7 × 1.00 + 2/7 × 0.00 + 2/7 × 0.00 + 1/7 × 0.00) = 18/49 ≒ 0.37

【0015】縮小後の画像SGの他の画素の濃度データ
も同様に算出される。図25より明らかなように、従来
方法のように、原画像OG内における画素の位置に応じ
て割り振った荷重による荷重平均で縮小後の画像SGの
画素の濃度データを求めると、例えば、Q(1,3)、
Q(2,1)、Q(2,3)、Q(2,4)のように、
これら画素の濃度データを算出するための原画像OGの
2次元の算出対象領域内を略2分するように原画像OG
の白黒のエッジが通る場合には、縮小後の画像SGの画
素の濃度データは中間値(グレー)となる。また、Q
(1,4)、Q(2,2)などにように濃度データが低
下する(濃いグレーになる)場合もある。一方で、Q
(3,1)、Q(4,1)のように、これら画素の濃度
データの算出に用いる原画像OGの2次元の算出対象領
域内に原画像OGの白黒のエッジが通らなければ濃度デ
ータが低下しないこともある。このように、原画像OG
の白黒のエッジの通過状態に応じて、画像がボケたりボ
ケなかったりして、縮小後の画像SGの画質が低下する
という問題があった。
The density data of the other pixels of the reduced image SG are calculated in the same manner. As is clear from FIG. 25, as in the conventional method, when the density data of the pixels of the image SG after the reduction is obtained by the weighted average by the load allocated according to the position of the pixels in the original image OG, for example, Q ( 1,3),
Like Q (2,1), Q (2,3), Q (2,4)
The original image OG is so divided as to divide the two-dimensional calculation target area of the original image OG for calculating the density data of these pixels into approximately two.
, The density data of the pixels of the reduced image SG is an intermediate value (gray). Also, Q
The density data may decrease (become dark gray) as in (1, 4) or Q (2, 2). On the other hand, Q
As in (3,1) and Q (4,1), if the monochrome edge of the original image OG does not pass through the two-dimensional calculation target area of the original image OG used for calculating the density data of these pixels, the density data May not decrease. Thus, the original image OG
There is a problem that the image is blurred or not blurred depending on the passing state of the black-and-white edge, and the image quality of the reduced image SG is degraded.

【0016】本発明は、このような事情に鑑みてなされ
たものであって、画質の低下を招かずに画像を縮小する
ことができる画像縮小方法及びその方法をコンピュータ
に実行させるためのプログラムを記録した記憶媒体を提
供することを目的とする。
SUMMARY OF THE INVENTION The present invention has been made in view of such circumstances, and an image reduction method capable of reducing an image without deteriorating image quality and a program for causing a computer to execute the method are provided. It is an object of the present invention to provide a recorded storage medium.

【0017】[0017]

【課題を解決するための手段】本発明は、このような目
的を達成するために、次のような構成をとる。すなわ
ち、請求項1に記載の発明は、デジタルの原画像を縮小
して縮小後の画像を得る画像縮小方法において、(1−
1)縮小後の画像の算出対象の画素の濃度データを算出
するのに用いる原画像の算出対象画素区画を画像の縮小
率に応じて決める工程と、(1−2)前記(1−1)の
工程で決めた原画像の算出対象画素区画内の各画素間の
濃度データの値の近さと各画素間の距離の近さとに基づ
いて、相互につながりがあるその原画像の算出対象画素
区画を代表する複数個の画素を選ぶ工程と、(1−3)
前記(1−2)の工程で選んだ各画素の濃度データの平
均値を前記縮小後の画像の算出対象の画素の濃度データ
とする工程と、からなる工程で縮小後の画像の各画素の
濃度データを求めることで原画像を縮小した縮小後の画
像を得ることを特徴とするものである。
The present invention has the following configuration in order to achieve the above object. That is, the invention according to claim 1 is an image reduction method for reducing a digital original image to obtain a reduced image.
1) a step of determining a pixel segment to be calculated of an original image used for calculating density data of a pixel to be calculated in a reduced image according to the reduction ratio of the image; and (1-2) the above (1-1). Based on the closeness of the value of the density data between each pixel and the closeness of the distance between each pixel in the calculation target pixel section of the original image determined in the step, the calculation target pixel section of the original image that is interconnected (A) selecting a plurality of pixels representing
Making the average value of the density data of each pixel selected in the step (1-2) the density data of the pixel to be calculated in the reduced image. It is characterized in that a reduced image obtained by reducing an original image is obtained by obtaining density data.

【0018】請求項2に記載の発明は、デジタルの原画
像を縮小して縮小後の画像を得る画像縮小方法におい
て、(2−1)縮小後の画像の算出対象の画素の濃度デ
ータを算出するのに用いる原画像の算出対象画素区画を
画像の縮小率に応じて決める工程と、(2−2)前記
(2−1)の工程で決めた原画像の算出対象画素区画内
の中心位置の画素(中心画素)以外の画素から、前記中
心画素に対して濃度データの値と距離とが近い画素を選
ぶ工程と、(2−3)前記(2−2)の工程で選んだ画
素及び前記中心画素の各濃度データの平均値を前記縮小
後の画像の算出対象の画素の濃度データとする工程と、
からなる工程で縮小後の画像の各画素の濃度データを求
めることで原画像を縮小した縮小後の画像を得ることを
特徴とするものである。
According to a second aspect of the present invention, there is provided an image reducing method for obtaining a reduced image by reducing a digital original image, wherein (2-1) calculating density data of a pixel to be calculated for the reduced image. Determining the calculation target pixel section of the original image to be used in accordance with the reduction ratio of the image; and (2-2) the center position in the calculation target pixel section of the original image determined in the step (2-1). And (2-3) selecting a pixel whose density data value and distance are close to the center pixel from the pixels other than the pixel (center pixel). A step of setting an average value of each density data of the center pixel as density data of a pixel to be calculated of the reduced image,
By obtaining the density data of each pixel of the reduced image in the step consisting of, the reduced image obtained by reducing the original image is obtained.

【0019】請求項3に記載の発明は、上記請求項1ま
たは2に記載の画像縮小方法により、2次元のデジタル
の原画像の2次元方向の画像の縮小を同時に行うことを
特徴とするものである。
According to a third aspect of the present invention, the two-dimensional digital original image is simultaneously reduced in the two-dimensional direction by the image reducing method according to the first or second aspect. It is.

【0020】請求項4に記載の発明は、1次元の縮小方
向に画素が並ぶ前記原画像の画素列ごとに、上記請求項
1または2に記載の画像縮小方法で画像縮小処理を行
い、前記原画像を前記縮小方向に縮小することを特徴と
するものである。
According to a fourth aspect of the present invention, an image reduction process is performed by the image reduction method according to the first or second aspect for each pixel row of the original image in which pixels are arranged in a one-dimensional reduction direction. The original image is reduced in the reduction direction.

【0021】請求項5に記載の発明は、デジタルの原画
像を縮小して縮小後の画像を得る処理をコンピュータに
実行させるためのプログラムを記録した記憶媒体であっ
て、(1−1)縮小後の画像の算出対象の画素の濃度デ
ータを算出するのに用いる原画像の算出対象画素区画を
画像の縮小率に応じて決める工程と、(1−2)前記
(1−1)の工程で決めた原画像の算出対象画素区画内
の各画素間の濃度データの値の近さと各画素間の距離の
近さとに基づいて、相互につながりがあるその原画像の
算出対象画素区画を代表する複数個の画素を選ぶ工程
と、(1−3)前記(1−2)の工程で選んだ各画素の
濃度データの平均値を前記縮小後の画像の算出対象の画
素の濃度データとする工程と、からなる工程で縮小後の
画像の各画素の濃度データを求めることで原画像を縮小
した縮小後の画像を得る処理をコンピュータに実行させ
るためのプログラムを記憶媒体に記録したものである。
According to a fifth aspect of the present invention, there is provided a storage medium storing a program for causing a computer to execute a process of reducing a digital original image to obtain a reduced image, wherein: A step of determining a pixel segment to be calculated of an original image used to calculate density data of a pixel to be calculated later in the image in accordance with a reduction ratio of the image; and (1-2) the step of (1-1). Based on the closeness of the value of the density data between the pixels in the calculated target pixel section of the original image and the closeness of the distance between the pixels, the calculated target pixel sections of the original image that are interconnected are represented. Selecting a plurality of pixels; and (1-3) setting the average value of the density data of each pixel selected in the step (1-2) as density data of a pixel to be calculated in the reduced image. And the density data of each pixel of the reduced image It is obtained by recording a program for executing a process of obtaining a reduced image obtained by reducing the original image by obtaining the data on the computer storage media.

【0022】請求項6に記載の発明は、デジタルの原画
像を縮小して縮小後の画像を得る処理をコンピュータに
実行させるためのプログラムを記録した記憶媒体であっ
て、(2−1)縮小後の画像の算出対象の画素の濃度デ
ータを算出するのに用いる原画像の算出対象画素区画を
画像の縮小率に応じて決める工程と、(2−2)前記
(2−1)の工程で決めた原画像の算出対象画素区画内
の中心位置の画素(中心画素)以外の画素から、前記中
心画素に対して濃度データの値と距離とが近い画素を選
ぶ工程と、(2−3)前記(2−2)の工程で選んだ画
素及び前記中心画素の各濃度データの平均値を前記縮小
後の画像の算出対象の画素の濃度データとする工程と、
からなる工程で縮小後の画像の各画素の濃度データを求
めることで原画像を縮小した縮小後の画像を得る処理を
コンピュータに実行させるためのプログラムを記憶媒体
に記録したものである。
According to a sixth aspect of the present invention, there is provided a storage medium storing a program for causing a computer to execute a process of reducing a digital original image to obtain a reduced image, wherein (2-1) reduction A step of determining a pixel section to be calculated of an original image used to calculate density data of a pixel to be calculated in a subsequent image in accordance with the reduction ratio of the image; and (2-2) the step of (2-1). (2-3) a step of selecting, from the pixels other than the pixel at the center position (center pixel) in the calculated target pixel section of the original image, a pixel whose density data value and the distance are close to the center pixel; Using the average value of the density data of the pixel selected in the step (2-2) and the density data of the center pixel as density data of a pixel to be calculated in the reduced image;
A program for causing a computer to execute a process of obtaining a reduced image obtained by reducing the original image by obtaining density data of each pixel of the reduced image in the step consisting of is recorded on a storage medium.

【0023】[0023]

【作用】請求項1に記載の発明の作用は次のとおりであ
る。縮小後の画像の各画素の濃度データを以下の(1−
1)〜(1−3)の工程で順次求める。
The operation of the first aspect of the invention is as follows. The density data of each pixel of the reduced image is represented by the following (1-
It is determined sequentially in steps 1) to (1-3).

【0024】(1−1)の工程では、縮小後の画像の算
出対象の画素の濃度データを算出するのに用いる原画像
の算出対象画素区画を画像の縮小率に応じて決める。こ
の原画像の算出対象画素区画の決め方は、例えば、従来
と同様の演算によって決めることができる。例えば、請
求項4に記載の発明のように1次元の縮小方向への画像
縮小をその縮小方向に画素が並ぶ原画像の画素列ごとに
行うような場合には、従来方法の式(1)に基づき算出
対象画素区画を決めることができる。また、請求項3に
記載の発明のように2次元方向に同時に画像縮小する場
合には、従来方法の式(1)に基づき決まる各方向の算
出対象画素区画で囲まれる2次元の区画をこの(1−
1)の工程で決める原画像の算出対象画素区画とすれば
よい。
In the step (1-1), the calculation target pixel section of the original image used for calculating the density data of the pixel to be calculated of the reduced image is determined according to the reduction ratio of the image. The method of determining the calculation target pixel section of the original image can be determined, for example, by the same calculation as in the related art. For example, in the case where image reduction in a one-dimensional reduction direction is performed for each pixel column of an original image in which pixels are arranged in the reduction direction as in the invention described in claim 4, the formula (1) of the conventional method is used. The pixel segment to be calculated can be determined based on When the image is simultaneously reduced in the two-dimensional direction as in the third aspect of the present invention, the two-dimensional section surrounded by the calculation target pixel section in each direction determined based on Expression (1) of the conventional method is used. (1-
What is necessary is just to set it as the calculation target pixel section of the original image determined in the step 1).

【0025】(1−2)の工程では、上記(1−1)の
工程で決めた原画像の算出対象画素区画内の各画素間の
濃度データの値の近さと各画素間の距離の近さとに基づ
いて、相互につながりがあるその原画像の算出対象画素
区画を代表する複数個の画素を選ぶ。
In the step (1-2), the proximity of the density data value between the pixels and the proximity of the distance between the pixels in the pixel segment to be calculated of the original image determined in the step (1-1) are described. Based on the above, a plurality of pixels representing the calculation target pixel section of the original image which are connected to each other are selected.

【0026】原画像の算出対象画素区画内の各画素間の
濃度データの値の近さと各画素間の距離の近さとを相互
補完的に評価することで各画素間のつながり状態を知る
ことができる。画素間の濃度データの値と画素間の距離
の双方が近づけばそれだけその画素間のつながりが強
く、逆に画素間の濃度データの値と画素間の距離の双方
が離れればそれだけその画素間のつながりが弱くなり、
画素間の濃度データの値(または画素間の距離)が近い
場合でも画素間の距離(または画素間の濃度データの
値)が離れていればそれに応じてその画素間のつながり
が弱くなるので、そのように画素間の濃度データの値の
近さと画素間の距離の近さとを相互補完的に評価するよ
うな評価関数(あるいは評価方法)により画素間のつな
がり状態を調べる。
It is possible to know the connection state between the pixels by mutually complementarily evaluating the proximity of the value of the density data between the pixels and the proximity of the distance between the pixels in the pixel section to be calculated of the original image. it can. If both the value of the density data between pixels and the distance between the pixels are closer, the connection between the pixels is stronger, and conversely, if both the value of the density data between the pixels and the distance between the pixels are farther, the distance between the pixels is longer Connection becomes weaker,
Even when the value of the density data between pixels (or the distance between pixels) is short, if the distance between the pixels (or the value of the density data between pixels) is large, the connection between the pixels is correspondingly weakened. The connection state between the pixels is examined by an evaluation function (or an evaluation method) that complementarily evaluates the proximity of the value of the density data between the pixels and the proximity of the distance between the pixels.

【0027】(1−2)の工程では、上記(1−1)の
工程で決めた原画像の算出対象画素区画内の各画素につ
いて、2画素の組とする全ての組み合わせ(原画像の算
出対象画素区画内の画素数がpn個であれば(pn−
1)!個の組み合わせとなる)を考え、各2画素の組に
ついて上記のように画素間の濃度データの値の近さと画
素間の距離の近さとに基づいてその2画素間のつながり
を評価する。そして、各2画素の組の間のつながりを調
べて、各画素相互につながりがある画素を検索する。例
えば、画素p1−p2、画素p2−p3、画素p1−p
3それぞれにつながりがあれば、画素p1−p2−p3
は相互につながりがあることになる。このようにして、
相互につながりがある複数個の画素を選び、原画像の算
出対象画素区画を代表する複数個の画素を決める。相互
につながりがある複数個の画素のグループが1個だけ選
ばれれば、そのグループの画素群が原画像の算出対象画
素区画を代表する複数個の画素とする。また、相互につ
ながりがある複数個の画素のグループが2個以上あれ
ば、画素の個数が多いグループの画素群を原画像の算出
対象画素区画を代表する複数個の画素とする。
In the step (1-2), all the combinations of the two-pixel set (the calculation of the original image) are performed for each pixel in the target pixel section of the original image determined in the step (1-1). If the number of pixels in the target pixel section is pn (pn-
1)! , And the connection between the two pixels is evaluated based on the closeness of the value of the density data between the pixels and the closeness of the distance between the pixels as described above. Then, the connection between each pair of two pixels is checked to search for a pixel having a connection between each pixel. For example, pixels p1-p2, pixels p2-p3, pixels p1-p
3 are connected to each other, the pixels p1-p2-p3
Are interconnected. In this way,
A plurality of pixels that are connected to each other are selected, and a plurality of pixels that represent the calculation target pixel section of the original image are determined. When only one group of a plurality of interconnected pixels is selected, the group of pixels is set as a plurality of pixels representing the calculation target pixel section of the original image. If there are two or more groups of interconnected pixels, the pixel group of the group having a large number of pixels is regarded as a plurality of pixels representing the pixel segment to be calculated in the original image.

【0028】(1−3)の工程では、上記(1−2)の
工程で選んだ各画素の濃度データの平均値を前記縮小後
の画像の算出対象の画素の濃度データとする。
In the step (1-3), the average value of the density data of each pixel selected in the step (1-2) is used as the density data of the pixel to be calculated in the reduced image.

【0029】このように画像縮小することで、原画像の
算出対象画素区画でつながりがない画素を除外して、相
互につながりがあるその原画像の算出対象画素区画を代
表する複数個の画素の濃度データを用いて縮小後の画像
の算出対象の画素の濃度データを求めることができ、画
像縮小による画質の低下を防ぐことができる。
By reducing the image in this way, pixels that are not connected in the pixel section to be calculated in the original image are excluded, and a plurality of pixels representing the pixel section to be calculated in the original image that are connected to each other are removed. Using the density data, the density data of the pixel for which the reduced image is to be calculated can be obtained, and the image quality can be prevented from lowering due to the image reduction.

【0030】請求項2に記載の発明では、上記請求項1
に記載の発明の(1−1)の工程と同様の方法によっ
て、縮小後の画像の算出対象の画素の濃度データを算出
するのに用いる原画像の算出対象画素区画を画像の縮小
率に応じて決め((2−1)の工程)、(2−2)の工
程で、(2−1)の工程で決めた原画像の算出対象画素
区画内の中心位置の画素(中心画素)以外の画素から、
中心画素に対して濃度データの値と距離とが近い画素を
選び、(2−3)の工程で、(2−2)の工程で選んだ
画素及び中心画素の各濃度データの平均値を縮小後の画
像の算出対象の画素の濃度データとするようにしたもの
である。
According to the second aspect of the present invention, the first aspect is provided.
According to the same method as the step (1-1) of the invention described in (1), the calculation target pixel section of the original image used to calculate the density data of the calculation target pixel of the reduced image is determined according to the image reduction ratio. (Step (2-1)), and in step (2-2), the pixels other than the pixel at the center position (center pixel) in the calculation target pixel section of the original image determined in step (2-1) From the pixels,
A pixel whose density data value and distance are close to the center pixel is selected, and in step (2-3), the average value of the density data of the pixel selected in step (2-2) and the center pixel is reduced. The density data of the pixel to be calculated in the subsequent image is used.

【0031】すなわち、請求項2に記載の発明は、原画
像の算出対象画素区画内の中心画素に対する、原画像の
算出対象画素区画内の他の画素との濃度データの値と距
離との近さを調べて、原画像の算出対象画素区画内の各
画素のうち、中心画素及び中心画素に対して濃度データ
の値と距離とが近い(中心画素とつながりがより強い)
画素を用いて縮小後の画像の算出対象の画素の濃度デー
タを求めるものである。この場合、縮小後の画像の算出
対象の画素は中心画素の影響を受け易くなるが、中心画
素は原画像の算出対象画素区画の大まかな濃度分布状態
を代表していることが多いので、原画像の算出対象画素
区画を代表する中心画素と、その中心画素とつながりが
強い画素とを用いて縮小後の画像の算出対象の画素の濃
度データを求めることができ、画像縮小による画質の低
下を防ぐことができる。また、請求項1に記載の発明で
は、原画像の算出対象画素区画内の全画素を対象として
つながり状態を調べる必要があるが、請求項2に記載の
発明では、中心画素とその他の画素とのつながり状態を
調べるだけでよいので、縮小後の画像の1画素の濃度デ
ータを求めるのに要する処理時間を短縮することもでき
る。
That is, according to the second aspect of the present invention, the density data value and the distance between the center pixel in the original image calculation target pixel section and other pixels in the original image calculation target pixel section are close to each other. The density data value and the distance are closer to the center pixel and the center pixel among the pixels in the calculation target pixel section of the original image (the connection to the center pixel is stronger).
The density data of the pixel to be calculated for the reduced image is obtained by using the pixel. In this case, the pixel to be calculated in the reduced image is easily affected by the center pixel, but the center pixel often represents the rough density distribution state of the pixel block to be calculated in the original image. The density data of the pixel to be calculated for the reduced image can be obtained using the central pixel representing the image calculation target pixel section and the pixel strongly connected to the central pixel. Can be prevented. According to the first aspect of the present invention, it is necessary to check the connection state with respect to all the pixels in the calculation target pixel section of the original image. However, in the second aspect of the present invention, the center pixel and the other pixels are not connected. Since it is only necessary to check the connection state of, the processing time required to obtain the density data of one pixel of the reduced image can be reduced.

【0032】請求項3に記載の発明では、2次元のデジ
タルの原画像の2次元方向の画像縮小を同時に、かつ、
好適に行うことができる。
According to the third aspect of the present invention, the two-dimensional digital original image is simultaneously reduced in the two-dimensional direction, and
It can be suitably performed.

【0033】また、請求項4に記載の発明では、従来方
法と同様に1次元の縮小方向に画素が並ぶ原画像の画素
列ごとに画像縮小処理を行い、原画像を縮小方向に縮小
する処理を好適に行うことができる。
According to the fourth aspect of the present invention, as in the conventional method, image reduction processing is performed for each pixel row of an original image in which pixels are arranged in a one-dimensional reduction direction, and the original image is reduced in the reduction direction. Can be suitably performed.

【0034】請求項5に記載の発明によれば、記憶媒体
に記録されたプログラムをコンピュータに読み込ませる
ことにより、そのコンピュータが請求項1に記載の発明
に係る画像縮小処理を実行する。
According to the fifth aspect of the present invention, by causing a computer to read the program recorded in the storage medium, the computer executes the image reduction processing according to the first aspect of the present invention.

【0035】また、請求項6に記載の発明によれば、記
憶媒体に記録されたプログラムをコンピュータに読み込
ませることにより、そのコンピュータが請求項2に記載
の発明に係る画像縮小処理を実行する。
According to the sixth aspect of the present invention, by causing a computer to read a program recorded in a storage medium, the computer executes the image reduction processing according to the second aspect of the present invention.

【0036】[0036]

【発明の実施の形態】以下、図面を参照して本発明の実
施の形態を説明する。図1は本発明に係る画像縮小方法
を実施するハードウエア構成の一例を示すブロック図で
ある。
Embodiments of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram showing an example of a hardware configuration for implementing an image reduction method according to the present invention.

【0037】図1はコンピュータシステムで構成されて
いる。デジタルの原画像を縮小して縮小後の画像を得る
画像縮小処理を実行するCPU10が、バスライン20
を介してRAMなどで構成される内部メモリ30に接続
されている。この内部メモリ30には、画像縮小処理を
実行する際にプログラムが移植されるプログラムメモリ
31、原画像を記憶する原画像メモリ32、縮小後の画
像を記憶する縮小後画像メモリ33などの各領域がそれ
ぞれ設定されている。また、CPU10は入出力インタ
ーフェイス40を介して、外部記憶装置用のドライバ4
1、原画像入力器42、出力器43、設定器44などと
接続されている。
FIG. 1 is constituted by a computer system. A CPU 10 that executes image reduction processing for reducing a digital original image to obtain a reduced image is performed by a bus line 20.
Is connected to an internal memory 30 such as a RAM via a. The internal memory 30 has various areas such as a program memory 31 into which a program is ported when executing image reduction processing, an original image memory 32 for storing original images, and a reduced image memory 33 for storing reduced images. Are set respectively. Further, the CPU 10 controls the driver 4 for the external storage device via the input / output interface 40.
1, connected to an original image input device 42, an output device 43, a setting device 44, and the like.

【0038】ドライバ41には外部記憶装置45が装填
される。この外部記憶装置45には予め作成された画像
縮小処理プログラムが保存されている。外部記憶装置4
5は、光磁気ディスク、CD−ROM、フロッピーディ
スク、ハードディスク、磁気テープその他の記憶媒体で
構成される。装置の電源がONされ、本実施例に係る画
像縮小処理が起動されると、外部記憶装置45から画像
縮小処理プログラムが読み込まれてプログラムメモリ3
1に記憶され、CPU10がその画像縮小処理プログラ
ムに従って後述する画像縮小処理を実行する。この画像
縮小処理プログラムが記憶された外部記憶装置45は、
本発明におけるプログラムを記録した記憶媒体に相当す
る。
The driver 41 is loaded with an external storage device 45. The external storage device 45 stores an image reduction processing program created in advance. External storage device 4
Reference numeral 5 includes a magneto-optical disk, a CD-ROM, a floppy disk, a hard disk, a magnetic tape, and other storage media. When the power of the apparatus is turned on and the image reduction processing according to the present embodiment is started, the image reduction processing program is read from the external storage device 45 and the program memory 3 is read.
1 and the CPU 10 executes an image reduction process described later according to the image reduction process program. The external storage device 45 storing the image reduction processing program is:
It corresponds to a storage medium on which a program according to the present invention is recorded.

【0039】原画像入力器42は、原画像を入力する機
器で、例えば、デジタルカメラや入力スキャナ、特開平
3−16367号公報などに開示されたCCDなどのラ
インセンサを用いた画像取り込み装置などで構成され
る。この原画像入力器42で入力された原画像が原画像
メモリ32に記憶され、その原画像に対して後述する画
像縮小処理が施され、縮小後の画像が縮小後メモリ33
に記憶される。なお、予め入力された原画像を外部記憶
装置に記憶しておき、その外部記憶装置から原画像を読
み込んで原画像メモリ32に記憶して、その原画像に対
して画像縮小処理を施すように構成してもよい。
The original image input device 42 is a device for inputting an original image, for example, a digital camera, an input scanner, an image capturing device using a line sensor such as a CCD disclosed in Japanese Patent Application Laid-Open No. 3-16367 and the like. It consists of. The original image input by the original image input device 42 is stored in the original image memory 32, and the original image is subjected to image reduction processing described later, and the reduced image is stored in the reduced memory 33.
Is stored. The original image input in advance is stored in an external storage device, the original image is read from the external storage device, stored in the original image memory 32, and the original image is subjected to image reduction processing. You may comprise.

【0040】原画像メモリ32は、図2に示すように、
2次元のデジタルの原画像を記憶できるように構成され
ており、縮小後画像メモリ33は、図3に示すように、
2次元のデジタルの縮小後の画像を記憶できるように構
成されている。
The original image memory 32 includes, as shown in FIG.
It is configured to be able to store a two-dimensional digital original image, and the reduced image memory 33 includes, as shown in FIG.
It is configured to be able to store a two-dimensional digitally reduced image.

【0041】出力器43は、縮小後画像メモリ33に生
成された縮小後の画像を出力するためのもので、例え
ば、表示器や記録用スキャナ、プリンタなどで構成され
る。なお、縮小後の画像を外部記憶装置に保存するよう
に構成してもよい。
The output unit 43 is for outputting the reduced image generated in the reduced image memory 33, and includes, for example, a display, a recording scanner, a printer, and the like. Note that the reduced image may be stored in an external storage device.

【0042】設定器44は、各種の設定や指定、指示な
どを行うためのもので、キーボードやマウス、スイッ
チ、設定用モニタなどで構成されている。
The setting unit 44 is used to make various settings, designations, instructions, and the like, and includes a keyboard, a mouse, switches, a setting monitor, and the like.

【0043】以下、上記構成による第1の画像縮小処理
を図4に示すフローチャートを参照して説明する。な
お、図4は2次元のデジタルの原画像の2次元方向の画
像縮小を同時に行う場合のフローチャートである。ま
た、処理が開始される時点で原画像は原画像メモリ32
に記憶されているものとする。
Hereinafter, the first image reduction processing according to the above configuration will be described with reference to the flowchart shown in FIG. FIG. 4 is a flowchart in the case where the two-dimensional digital original image is simultaneously reduced in the two-dimensional direction. When the processing is started, the original image is stored in the original image memory 32.
Is stored.

【0044】以下の説明において、s、P(s)、t、
Q(t)、s(t)、s(1)、ah、R(t)、G
(t)は基本的に従来方法と同じ意味であり、特に、X
方向、Y方向を区別する必要がある場合には各符号に方
向を示す添え字を付し(X方向〔sX 、tX 、sX (t
X )、sX (1)、ahX 、RX (tX )、G
X (tX)〕、Y方向〔sY 、tY 、sY (tY )、s
Y (1)、ahY 、RY (tY )、GY (tY )〕)、
原画像の各画素を2次元で示す場合には2次元座標(s
X,sY )で、原画像の各画素の濃度データを2次元で
示す場合には2次元表記(P(sX ,sY ))で表し、
同様に、縮小後の画像についても各画素を2次元で示す
場合には2次元座標(tX ,tY )で、濃度データを2
次元で示す場合には2次元表記(Q(tX ,tY ))で
表す。また、図5に示すように、RX (tX)とR
Y (tY )とで囲まれる2次元の算出対象領域をR
XY(tX ,tY )で表し、GX (tX )とGY (tY
とで囲まれる2次元の算出対象画素区画をGXY(tX
Y )で表す。
In the following description, s, P (s), t,
Q (t), s (t), s (1), ah, R (t), G
(T) has basically the same meaning as in the conventional method.
When it is necessary to distinguish between the direction and the Y direction, a suffix indicating the direction is added to each code (X direction [s X , t X , s X (t
X ), s X (1), ah X , R X (t X ), G
X (t X )], Y direction [s Y , t Y , s Y (t Y ), s
Y (1), ah Y , R Y (t Y ), G Y (t Y )]),
When each pixel of the original image is represented in two dimensions, the two-dimensional coordinates (s
X , s Y ), and when the density data of each pixel of the original image is represented in two dimensions, it is represented by two-dimensional notation (P (s X , s Y )),
Similarly, when each pixel of the reduced image is represented two-dimensionally, the density data is represented by two-dimensional coordinates (t X , t Y ).
When it is expressed in dimensions, it is expressed in two-dimensional notation (Q (t X , t Y )). Also, as shown in FIG. 5, R x (t x ) and R x (t x )
A two-dimensional calculation target area surrounded by Y (t Y )
XY (t X, t Y) expressed in, G X (t X) and G Y (t Y)
And the two-dimensional calculation target pixel section enclosed by G XY (t X ,
t Y ).

【0045】図4のステップS1(本発明の(1−1)
の工程に相当):縮小後の画像の算出対象の画素の濃度
データ(Q(tX ,tY ))を算出するのに用いる原画
像の(2次元の)算出対象画素区画(GXY(tX
Y ))を画像の縮小率(n/m)に応じて決める。
Step S1 of FIG. 4 ((1-1) of the present invention)
): A (two-dimensional) calculation target pixel section (G XY () of the original image used to calculate the density data (Q (t X , t Y )) of the calculation target pixel of the reduced image t X ,
t Y )) is determined according to the image reduction ratio (n / m).

【0046】この算出対象画素区画GXY(tX ,tY
は、例えば、従来の(1)式に基づき決めることができ
る。すなわち、X方向の算出対象画素区画G
X (tX )、Y方向の算出対象画素区画GY (tY )を
それぞれ(1)式に基づき決めて、これらGX (tX
とGY (tY )とで囲まれる2次元の算出対象画素区画
を、GXY(tX ,tY )とする。X方向の算出対象画素
区画GX (tX )は、原画像のX方向についてsX (t
X )番目の画素からsX (tX +1)番目の画素までの
画素を含む区画となる。ただし、n−aX (tX )=0
の場合((1)式の右辺第1項の係数が「0」となる場
合)には原画像のX方向について(sX (tX )+1)
番目の画素からsX (tX +1)番目の画素までの画素
を含む区画となる。同様に、Y方向の算出対象画素区画
Y (tY )は、原画像のY方向についてs Y (tY
番目の画素からsY (tY +1)番目の画素までの画素
を含む区画(ただし、n−aY (tY )=0の場合には
原画像のY方向について(sY (tY)+1)番目の画
素からsY (tY +1)番目の画素までの画素を含む区
画)となる。
This calculation target pixel section GXY(TX, TY)
Can be determined, for example, based on the conventional equation (1).
You. That is, the calculation target pixel section G in the X direction
X(TX), The calculation target pixel section G in the Y directionY(TY)
Each G is determined based on the equation (1).X(TX)
And GY(TY) And the two-dimensional calculation target pixel section enclosed by
And GXY(TX, TY). Pixel to be calculated in X direction
Section GX(TX) Is s for the X direction of the original image.X(T
XS) from the pixelX(TX+1) th pixel
This is a section including pixels. Where naX(TX) = 0
(If the coefficient of the first term on the right side of the equation (1) is “0”)
) In the X direction of the original image (sX(TX) +1)
S from the pixelX(TX+1) pixels up to the pixel
It becomes a section containing. Similarly, the calculation target pixel section in the Y direction
GY(TY) Is s for the Y direction of the original image. Y(TY)
S from the pixelY(TY+1) pixels up to the pixel
(Including naY(TYIf) = 0
About the Y direction of the original image (sY(TY) +1) th stroke
From elementY(TY+1) Area including pixels up to the pixel
Picture).

【0047】なお、aX (tX )=(ahX +(m×
(tX −1))) mod nであり、aY (tY )=
(ahY +(m×(tY −1))) mod nであ
る。
Note that a x (t x ) = (ah x + (mx)
(T X -1))) mod n and a Y (t Y ) =
(Ah Y + (m × ( t Y -1))) is a mod n.

【0048】また、ahX 、ahY を一義的に「0」と
して(aX (tX )=(m×(tX−1)) mod
n、aY (tY )=(m×(tY −1)) mod
n)でGX (tX )、GY (tY )を決めてG
XY(tX ,tY )を決めてもよい。
Further, ah X and ah Y are uniquely defined as “0” and (a X (t X ) = (m × (t X −1)) mod
n, a Y (t Y ) = (m × (t Y −1)) mod
n), G X (t X ) and G Y (t Y ) are determined and G
XY (t X, t Y) may be determined.

【0049】例えば、図25(a)の場合では、G
XY(1,1)は原画像の(1〜4,1〜4)、すなわ
ち、(1,1)、(2,1)、(3,1)、(4,
1)、(1,2)、(2,2)、(3,2)、(4,
2)、(1,3)、(2,3)、(3,3)、(4,
3)、(1,4)、(2,4)、(3,4)、(4,
4)の16個の画素からなる区画、GXY(2,1)は原
画像の(4〜7,1〜4)の16個の画素からなる区
画、GXY(3,1)は原画像の(8〜11,1〜4)の
16個の画素からなる区画、…、GXY(1,2)は原画
像の(1〜4,4〜7)の16個の画素からなる区画、
…である。
For example, in the case of FIG.
XY (1, 1) is (1-4, 1-4) of the original image, that is, (1,1), (2,1), (3,1), (4,
1), (1, 2), (2, 2), (3, 2), (4,
2), (1,3), (2,3), (3,3), (4,
3), (1,4), (2,4), (3,4), (4,
4) a section composed of 16 pixels, G XY (2, 1) is a section composed of 16 pixels (4 to 7, 1 to 4) of the original image, and G XY (3, 1) is an original image , A section composed of 16 pixels (8 to 11, 1 to 4),..., G XY (1, 2) is a section composed of 16 pixels (1 to 4, 4 to 7) of the original image,
...

【0050】このように算出対象画素区画GXY(tX
Y )を決めて、このGXY(tX ,tY )内の画素を使
って縮小後の画像の算出対象の画素の濃度データQ(t
X ,tY )を求めることで、図6に示すように、原画像
OGのX、Y方向それぞれの処理範囲SHで囲まれる2
次元の処理範囲(点線で囲まれる範囲)全体をn/m倍
に略均等に縮小した縮小後の画像SGを得ることができ
る。原画像OGのX方向または/およびY方向に不要画
素がなければ不要画素がない方向については原画像OG
のその方向全体を処理範囲SHとして処理する。X方向
(Y方向)の処理範囲SHはsX (1)、ahX (sY
(1)、ahY )などで設定できるが、X方向(Y方
向)の処理範囲SHの後尾の画素の画素No(s
X(LIM)(sY(LIM)))を設定するように構成してもよ
い。
As described above, the calculation target pixel section G XY (t X ,
t Y ), and the density data Q (t) of the pixel to be calculated for the reduced image using the pixels in G XY (t X , t Y ).
X , t Y ), as shown in FIG. 6, the area surrounded by the processing range SH in each of the X and Y directions of the original image OG.
It is possible to obtain a reduced image SG in which the entire dimensional processing range (the range surrounded by the dotted line) is reduced substantially evenly to n / m times. If there are no unnecessary pixels in the X direction and / or the Y direction of the original image OG, the direction in which there is no unnecessary pixel
Is processed as the processing range SH. The processing range SH in the X direction (Y direction) is s X (1), ah X (s Y
(1), ah Y ), etc., but the pixel No (s) of the last pixel in the processing range SH in the X direction (Y direction)
X (LIM) (s Y (LIM) )).

【0051】なお、縮小率(n/m)やsX (1)、a
X 、sY (1)、ahY (sX(LI M)、sY(LIM))など
の必要なデータは、ステップS1の処理に先立ち、設定
器44などから設定される。
The reduction ratio (n / m), s X (1), a
h X, s Y (1) , ah Y necessary data, such as (s X (LI M), s Y (LIM)) , prior to the process of step S1, is set etc. setter 44.

【0052】図4のステップS2(本発明の(1−2)
の工程に相当):上記ステップS1で決めた原画像の算
出対象画素区画GXY(tX ,tY )内の各画素間の濃度
データの値の近さと各画素間の距離の近さとに基づい
て、相互につながりがあるその原画像の算出対象画素区
画GXY(tX ,tY )を代表する複数個の画素を選ぶ。
Step S2 in FIG. 4 ((1-2) of the present invention)
): The closeness of the value of the density data between the pixels and the closeness of the distance between the pixels in the pixel segment G XY (t X , t Y ) for calculation of the original image determined in step S1 Based on this, a plurality of pixels representing the calculation target pixel section G XY (t X , t Y ) of the original image which are connected to each other are selected.

【0053】2画素(p1、p2)間のつながり状態
は、例えば以下の評価式F(e)で評価することができ
る。
The connection state between the two pixels (p1, p2) can be evaluated, for example, by the following evaluation formula F (e).

【0054】F(e)=α×〔対象となる2画素p1、
p2間の濃度データの値の近さ〕+β×〔対象となる2
画素p1、p2間の距離の近さ〕 なお、α、βは、画素間の濃度データの値の近さと画素
間の距離の近さとのいずれを重視するかを設定するため
の係数である。
F (e) = α × [Two target pixels p1,
Proximity of the density data value between p2] + β × [target 2
The proximity of the distance between the pixels p1 and p2] [alpha] and [beta] are coefficients for setting which of the proximity of the value of the density data between the pixels and the proximity of the distance between the pixels is important.

【0055】〔対象となる2画素p1、p2間の濃度デ
ータの値の近さ〕は例えば以下の評価式Fd(e)で評
価することができる。
[Nearness of the value of the density data between the target two pixels p1 and p2] can be evaluated by, for example, the following evaluation formula Fd (e).

【0056】 Fd(e)={DMAX −ABS(Dp1−Dp2)} なお、DMAX は原画像の画素の濃度データの最大値であ
り、原画像の各画素の濃度データが「0.00」〜
「1.00」で表現されていればDMAX は「1.00」
であり、8ビット表現(0〜255)であればDMAX
「255」である。また、Dp1は画素p1の濃度デー
タ、Dp2は画素p2の濃度データであり、原画像メモリ
32の画素p1、p2の座標値から読み込む。ABS( )は
絶対値を示す。
Fd (e) = {D MAX −ABS (D p1 −D p2 )} Note that D MAX is the maximum value of the density data of the pixels of the original image, and the density data of each pixel of the original image is “0”. .00 "~
If it is expressed by "1.00", DMAX is "1.00"
In it, D MAX if the 8-bit representation (0 to 255) is "255". D p1 is the density data of the pixel p1 and D p2 is the density data of the pixel p2, which is read from the coordinate values of the pixels p1 and p2 in the original image memory 32. ABS () indicates an absolute value.

【0057】このFd(e)は、画素p1の濃度データ
と画素p2の濃度データとが同じとき最大となり、双方
の濃度データの値が近づくに従って大きくなり、逆に双
方の濃度データの値が離れるに従って小さくなる。
This Fd (e) becomes maximum when the density data of the pixel p1 and the density data of the pixel p2 are the same, increases as the values of both density data approach, and conversely, the values of both density data are separated. Becomes smaller according to

【0058】〔対象となる2画素p1、p2間の距離の
近さ〕は例えば以下の評価式Fb(e)で評価すること
ができる。
[Nearness of the distance between the target two pixels p1 and p2] can be evaluated, for example, by the following evaluation formula Fb (e).

【0059】 Fb(e)={1−(Bp1-p2 /BMAX )} なお、Bp1-p2 は2画素p1、p2間の距離である。図
7に示すように、各画素の中心点をその画素のX、Y座
標(p1の座標を(sXp1 ,sYp1 )、p2の座標を
(sXp2 ,sYp2 )としている)とすれば、B
p1-p2 は、ピタゴラスの定理により求めることができ
る。また、BMAX はGXY(tX ,tY )内の画素間最大
距離であり、図8に示すように、GXY(tX ,tY )内
の画素のうちの左上隅の画素pLUと右下隅の画素p
RD(右上隅の画素pRUと左下隅の画素pLDでもよい)間
の距離である。
Fb (e) = {1− (B p1−p2 / B MAX )} Note that B p1−p2 is the distance between the two pixels p1 and p2. As shown in FIG. 7, X of the pixel of the center points of the pixels, (the coordinates of p1 (s Xp1, s Yp1) , the coordinates of p2 (s Xp2, is set to s Yp2)) Y-coordinate if , B
p1-p2 can be obtained by Pythagorean theorem. Also, B MAX is G XY (t X, t Y ) is the inter-pixel maximum distance in, as shown in FIG. 8, G XY (t X, t Y) the upper left corner of the pixel among the pixels in the p LU and pixel p in lower right corner
RD (may be pixel p RU at upper right corner and pixel p LD at lower left corner).

【0060】このFb(e)は、画素p1、p2間の距
離が近づくに従って大きくなり、逆に双方の間の距離が
離れるに従って小さくなる。
This Fb (e) increases as the distance between the pixels p1 and p2 decreases, and decreases as the distance between the two increases.

【0061】従って、上記F(e)は、2画素間の濃度
データの値が近づくとともに、2画素間の距離が近づく
に従って大きな値となり、2画素間の濃度データの値が
離れるとともに、2画素間の距離が離れるに従って小さ
な値となる。また、一方のファクター(2画素間の濃度
データの値(または2画素間の距離))が近い場合で
も、他方のファクター(2画素間の距離(または2画素
間の濃度データの値))が離れていればそれに応じてF
(e)は小さくなる。
Accordingly, the value of F (e) becomes larger as the value of the density data between the two pixels becomes closer and the distance between the two pixels becomes closer. The value becomes smaller as the distance between them increases. Further, even when one factor (the value of the density data between two pixels (or the distance between the two pixels)) is close, the other factor (the distance between the two pixels (or the value of the density data between the two pixels)) is small. If it is far away, F
(E) becomes smaller.

【0062】2画素間のつながり状態は、2画素間の濃
度データの値が近づくとともに、2画素間の距離が近づ
くに従ってつながりが高くなり、2画素間の濃度データ
の値が離れるとともに、2画素間の距離が離れるに従っ
てつながりがなくなっていく。また、2画素間の濃度デ
ータの値が近い場合でも2画素間の距離が離れていれば
つながりは低いと推定でき、2画素間の距離が近い場合
でも、2画素間の濃度データの値が離れていればつなが
りは低いと推定できる。従って、F(e)の値を評価す
ることにより2画素間のつながり状態を知ることができ
る。
The state of connection between two pixels is such that as the value of the density data between the two pixels approaches, the connection increases as the distance between the two pixels approaches, the value of the density data between the two pixels increases, and The connection disappears as the distance between them increases. Even when the value of the density data between the two pixels is close, if the distance between the two pixels is long, it is estimated that the connection is low. Even when the distance between the two pixels is short, the value of the density data between the two pixels is low. If they are far apart, it can be estimated that the connection is low. Therefore, the connection state between two pixels can be known by evaluating the value of F (e).

【0063】図4のステップS2では、まず、GXY(t
X ,tY )内の各画素について、2画素の組とする全て
の組み合わせ(原画像の算出対象画素区画内の画素数が
pn個であれば(pn−1)!個の組み合わせとなる)
を考え、各2画素の組について上記F(e)を求める。
例えば、図9(a)に示すGXY(tX ,tY )では、9
個の画素(pa、pb、…、ph、pi)があるので、
その組み合わせは図9(b)のようになる。
In step S2 of FIG. 4, first, G XY (t
X , t Y ) for each pixel, all combinations of two pixels (if the number of pixels in the calculation target pixel section of the original image is pn, (pn−1)! Combinations)
And F (e) is obtained for each set of two pixels.
For example, in G XY (t X , t Y ) shown in FIG.
Since there are pixels (pa, pb, ..., ph, pi),
The combination is as shown in FIG.

【0064】次に、各2画素の組のF(e)を所定のし
きい値と比較し、しきい値以下のF(e)の2画素の組
を除外する。このしきい値は、2画素の組の各画素間に
つながりがあると推定し得る値を、原画像の最大の濃度
データや縮小率、α、βなどに応じて予め決めておく。
すなわち、ここで画素間につながりがある2画素の組が
残ることになる。
Next, F (e) of each pair of two pixels is compared with a predetermined threshold value, and a pair of two pixels of F (e) equal to or smaller than the threshold value is excluded. The threshold value is determined in advance based on the maximum density data of the original image, the reduction ratio, α, β, and the like, which can be estimated to have a connection between each pixel of the set of two pixels.
That is, a set of two pixels having a connection between the pixels remains.

【0065】そして、上記で残った各2画素の組の間の
つながりを調べて、各画素相互につながりがある画素を
検索する。この検索は例えば以下のようように行う。
Then, the connection between each pair of the remaining two pixels is checked to search for a pixel having a connection between the pixels. This search is performed, for example, as follows.

【0066】まず、上記で残った2画素の組に含まれる
1つの画素(例えばpaとする)に注目する。この画素
につながりがある画素を上記で残った2画素の組に基づ
いて検索する。例えば、注目画素paにつながりがある
画素が図10(a)のLaに示す画素であったとする。
次に、La内の1画素を次の注目画素(pbとする)と
して、その注目画素につながりがあるLa内の画素を、
上記で残った2画素の組に基づいて検索する。この段階
でpaとpbそれぞれにつながりがある画素が得られ
る。例えば、画素paとpbそれぞれにつながりがある
画素が図10(b)のLabに示す画素であったとす
る。次に、Lab内の1画素を次の注目画素(pdとす
る)として、その注目画素につながりがあるLab内の
画素を、上記で残った2画素の組に基づいて検索する。
図10(c)に示すように以後同様の処理を、その時点
の注目画素につながりがある画素が1画素になるまで繰
り返す。図10の結果、画素pa、pb、pd、peが
相互につながりがある画素として選ばれることになる。
そして、上記で残った2画素の組に、画素pa、pb、
pd、pe以外の画素が含まれていれば、その画素を注
目画素として上記と同様に処理を繰り返す。
First, attention is paid to one pixel (for example, pa) included in the set of the two remaining pixels. A pixel connected to this pixel is searched based on the set of the remaining two pixels. For example, it is assumed that a pixel connected to the target pixel pa is a pixel indicated by La in FIG.
Next, one pixel in La is set as the next target pixel (hereinafter referred to as pb), and a pixel in La connected to the target pixel is
The search is performed based on the set of two pixels remaining above. At this stage, pixels having connections with pa and pb are obtained. For example, it is assumed that a pixel connected to each of the pixels pa and pb is a pixel indicated by Lab in FIG. Next, one pixel in Lab is set as the next pixel of interest (hereinafter referred to as pd), and a pixel in Lab connected to the pixel of interest is searched based on the pair of two pixels remaining above.
As shown in FIG. 10C, the same process is repeated until one pixel is connected to the target pixel at that time. As a result of FIG. 10, the pixels pa, pb, pd, and pe are selected as mutually interconnected pixels.
Then, the pixels pa, pb,
If a pixel other than pd and pe is included, the process is repeated in the same manner as above with that pixel as the target pixel.

【0067】上記検索の結果、相互につながりがある複
数個の画素のグループ(例えば、画素pa、pb、p
d、peからなるグループ)が1個だけ選ばれれば、そ
のグループの画素群が原画像の算出対象画素区画を代表
する複数個の画素とする。また、相互につながりがある
複数個の画素のグループが2個以上(例えば、画素p
a、pb、pd、peからなるグループ1と、画素p
h、piからなるグループ2)あれば、画素の個数が最
も多いグループ(グループ1)の画素群を原画像の算出
対象画素区画を代表する複数個の画素とする。
As a result of the above search, a group of a plurality of pixels (for example, pixels pa, pb, p
If only one group consisting of d and pe) is selected, the pixel group of that group is a plurality of pixels representing the calculation target pixel section of the original image. In addition, two or more groups of a plurality of interconnected pixels (for example, a pixel p
a, pb, pd, pe group 1 and pixel p
If there is a group 2) consisting of h and pi, the pixel group of the group having the largest number of pixels (group 1) is a plurality of pixels representing the calculation target pixel section of the original image.

【0068】なお、相互につながりがある複数個の画素
のグループが2個以上あり、画素の個数が最も多いグル
ープが2個以上ある場合には、従来方法により各画素に
割り振られる荷重を勘案して1グループを決める。各画
素の荷重は、算出対象画素区画GXY(tX ,tY )に算
出対象領域RXY(tX ,tY )を重ね合わせたときに各
画素が占める前記RXY(tX ,tY )の面積に対応す
る。例えば、図25(a)のGXY(1,1)について
(1〜3,1〜3)の各画素の荷重は「4/49(=n
2 /m2 )」、(1〜3,4)の画素や(3,1〜
3))の画素の荷重は「2/49(=1/2×n2 /m
2 )」、(4,4)の画素の荷重は「1/49(=1/
4×n2 /m2 )」となる。従って、画素の個数が最も
多い2個以上の各グループに属する各画素の荷重の合計
を求め、その荷重の合計が最も多いグループの画素群を
原画像の算出対象画素区画を代表する複数個の画素とす
る。
When there are two or more groups of a plurality of pixels connected to each other, and there are two or more groups having the largest number of pixels, the load allocated to each pixel by the conventional method is taken into consideration. Decide one group. The weight of each pixel is calculated by the above-mentioned R XY (t X , t Y ) occupied by each pixel when the calculation target region R XY (t X , t Y ) is superimposed on the calculation target pixel section G XY (t X , t Y ). Y ) corresponding to the area. For example, for G XY (1, 1) in FIG. 25A, the load of each pixel of (1 to 3, 1 to 3) is “4/49 (= n
2 / m 2 ) ", pixels (1-3, 4) and (3,1-
The weight of the pixel of 3)) is “2/49 (= 1/2 × n 2 / m)
2 ) ”, the weight of the pixel of (4, 4) is“ 1/49 (= 1 /
4 × n 2 / m 2 ) ”. Accordingly, the sum of the loads of the pixels belonging to each of the two or more groups having the largest number of pixels is calculated, and the pixel group of the group having the largest sum of the loads is divided into a plurality of pixels representing the calculation target pixel section of the original image. Pixels.

【0069】このようにして、相互につながりがあるそ
の原画像の算出対象画素区画を代表する複数個の画素を
選ぶ。
In this manner, a plurality of pixels representing the calculation target pixel section of the original image which are connected to each other are selected.

【0070】なお、評価式は上記F(e)以外、例え
ば、〔対象となる2画素p1、p2間の濃度データの値
の近さ〕と〔対象となる2画素p1、p2間の距離の近
さ〕を乗算するなどの評価式でも評価することができ
る。また、Fd(e)、Fb(e)も上記以外の例えば
以下のような評価式で〔対象となる2画素p1、p2間
の濃度データの値の近さ〕、〔対象となる2画素p1、
p2間の距離の近さ〕を評価することもできる。
The evaluation formulas other than the above F (e) include, for example, [proximity of density data between two target pixels p1 and p2] and [distance of two target pixels p1 and p2]. It can also be evaluated by an evaluation formula such as multiplying by (closeness). In addition, Fd (e) and Fb (e) are also expressed by the following evaluation formula other than the above, for example, [the proximity of the density data between the target two pixels p1 and p2], [the target two pixels p1 ,
shortness of the distance between p2] can also be evaluated.

【0071】 Fd(e)={DMAX −ABS(Dp1−Dp2)}/DMAX Fb(e)={BMAX −Bp1-p2 Fd (e) = {D MAX −ABS (D p1 −D p2 )} / D MAX Fb (e) = {B MAX −B p1-p2 }

【0072】また、例えば、GXY(tX ,tY )の各画
素を濃度データの値に注目して濃度データの値が近い画
素同志でグループ分けを行い、そのグループ分けにより
得られた各グループについて、次に、距離の近さを評価
して、最終的に相互につながりがあるその原画像の算出
対象画素区画を代表する複数個の画素を選ぶようにして
もよい。
Further, for example, each pixel of G XY (t X , t Y ) is focused on the value of the density data, and the pixels are grouped with the pixels having similar density data values, and each pixel obtained by the grouping is obtained. For the group, next, the closeness of the distance may be evaluated, and a plurality of pixels representing the calculation target pixel section of the original image which are finally connected to each other may be selected.

【0073】上記ステップS2の処理の結果、例えば、
図25(a)の原画像の算出対象画素区画GXY(1,
3)は図11(a)の2グループに分けられて最終的に
グループ2が選ばれ、GXY(2,1)は図11(b)の
2グループに分けられて最終的にグループ2が選ばれ、
XY(3,1)は図11(c)の1グループが選ばれ
る。
As a result of the processing in step S2, for example,
The pixel segment G XY (1,
3) is divided into two groups in FIG. 11A and finally group 2 is selected. G XY (2,1) is divided into two groups in FIG. 11B and finally group 2 is selected. Chosen,
For G XY (3, 1), one group shown in FIG. 11C is selected.

【0074】図4のステップS3(本発明の(1−3)
の工程に相当):上記ステップS2で選んだ各画素の濃
度データの平均値を縮小後の画像の算出対象の画素の濃
度データQ(tX ,tY )とする。
Step S3 in FIG. 4 ((1-3) of the present invention)
: The average value of the density data of each pixel selected in step S2 is used as the density data Q (t X , t Y ) of the pixel to be calculated for the reduced image.

【0075】例えば、図9(a)の画素pa、pb、p
d、peが選ばれた場合、 Q(tX ,tY )=(〔画素paの濃度データ〕+〔画
素pbの濃度データ〕+〔画素pdの濃度データ〕+
〔画素peの濃度データ〕)/4 となる。
For example, pixels pa, pb, p shown in FIG.
When d and pe are selected, Q (t x , t Y ) = ([density data of pixel pa] + [density data of pixel pb] + [density data of pixel pd] +
[Density data of pixel pe]) / 4.

【0076】これにより、GXY(tX ,tY )内でつな
がりがない画素を除外して、相互につながりがあるその
XY(tX ,tY )を代表する複数個の画素の濃度デー
タを用いて縮小後の画像SGの算出対象の画素の濃度デ
ータQ(tX ,tY )を求めることができ、画像縮小に
よる画質の低下を防ぐことができる。
As a result, the pixels having no connection in G XY (t X , t Y ) are excluded, and the densities of a plurality of pixels representing the G XY (t X , t Y ) having mutual connection are removed. The density data Q (t x , t y ) of the pixel to be calculated for the reduced image SG can be obtained by using the data, so that the image quality can be prevented from deteriorating due to the image reduction.

【0077】例えば、図25(a)の原画像をこの第1
の画像縮小処理で縮小すると、図12に示すようにな
り、図25(b)と比べて、縮小後の画像の各画素の濃
度データがボケたり低下するのが防止され、好適に画像
縮小されている。
For example, the original image shown in FIG.
When the image is reduced by the image reduction process shown in FIG. 12, the density data of each pixel of the reduced image is prevented from being blurred or reduced as compared with FIG. 25B, and the image is appropriately reduced. ing.

【0078】図4に戻って、上記ステップS1〜S3の
処理を以下の終了判定を満たすまで繰り返して各Q(t
X ,tY )を順次求めていき、原画像を縮小した縮小後
の画像を生成し、終了判定を満たすと処理を終了する
(ステップS4)。
Returning to FIG. 4, the processing of steps S1 to S3 is repeated until the following end judgment is satisfied, and each Q (t
X , t Y ) are sequentially obtained, a reduced image obtained by reducing the original image is generated, and the process ends when the end determination is satisfied (step S4).

【0079】なお、Q(tX ,tY )は、図13(a)
に示すように、X方向優先、すなわち、Q(1,1)、
Q(2,1)、…、Q(tX(MAX),1)、Q(1,
2)、Q(2,2)、…、Q(tX(MAX),2)、…、Q
(1,tY(MAX))、Q(2,tY( MAX))、…、Q(t
X(MAX),tY(MAX))の順に求めてもよいし、図13
(b)に示すように、Y方向優先、すなわち、Q(1,
1)、Q(1,2)、…、Q(1,tY(MAX))、Q
(2,1)、Q(2,2)、…、Q(2,tY(MAX))、
…、Q(tX(MAX),1)、Q(tX(MAX),2)、…、Q
(tX(MAX),tY(MAX))の順に求めてもよい。
It should be noted that Q (t X , t Y ) is shown in FIG.
, X-direction priority, that is, Q (1,1),
Q (2,1),..., Q (t X (MAX) , 1), Q (1,
2), Q (2, 2),..., Q (t X (MAX) , 2),.
(1, t Y (MAX) ), Q (2, t Y ( MAX) ),..., Q (t
X (MAX) , t Y (MAX) ) in FIG.
As shown in (b), priority in the Y direction, that is, Q (1,
1), Q (1, 2),..., Q (1, t Y (MAX) ), Q
(2,1), Q (2,2),..., Q (2, t Y (MAX) ),
..., Q (tX (MAX) , 1), Q (tX (MAX) , 2), ..., Q
(TX (MAX) , tY (MAX) ).

【0080】縮小後の画像のX方向、Y方向の画素数
(tX(MAX)個、tY(MAX)個)が予め決まっている場合に
は、Q(tX ,tY )のtX が1〜tX(MAX)の範囲で、
かつ、tY が1〜tY(MAX)の範囲で各Q(tX ,tY
を求めてQ(tX(MAX),tY(MA X))が求まった時点で処
理を終了する。
If the number of pixels (t X (MAX) , t Y (MAX) ) of the reduced image in the X direction and the Y direction is predetermined, t (t x , t Y ) X is in the range of 1 to tX (MAX) ,
And each range t Y is 1~t Y (MAX) Q (t X, t Y)
The seeking Q (t X (MAX), t Y (MA X)) and ends the process when the is Motoma'.

【0081】また、X方向、Y方向について、原画像の
X (1)番目の画素から最後の画素(sX(MAX)番目の
画素)までをX方向の処理範囲SH、sY (1)番目の
画素から最後の画素(sY(MAX)番目の画素)までをY方
向の処理範囲SHとして処理する場合には、X方向につ
いては、Q(tX ,tY )の算出に用いる原画像のX方
向に並ぶ画素がsX(MAX)番目の画素に達するまでの範囲
で処理を行い、Y方向については、Q(tX ,tY )の
算出に用いる原画像のY方向に並ぶ画素がsY( MAX)番目
の画素に達するまでの範囲で処理を行い、X方向、Y方
向共にQ(tX,tY )の算出に用いる原画像の画素が
X(MAX)番目、sY(MAX)番目の画素に達すると処理を終
了する。
In the X direction and the Y direction, the processing range SH, s Y (1 ) from the s X (1) -th pixel to the last pixel (s X (MAX) -th pixel) of the original image is obtained. ) -Th pixel to the last pixel (s Y (MAX) -th pixel) are processed as the processing range SH in the Y direction, and the X direction is used to calculate Q (t X , t Y ). The processing is performed until the pixels arranged in the X direction of the original image reach the s X (MAX) -th pixel, and the Y direction is calculated in the Y direction of the original image used for calculating Q (t X , t Y ). The processing is performed in a range until the arranged pixels reach the s Y ( MAX) -th pixel, and the pixels of the original image used for calculating Q (t X , t Y ) in the X and Y directions are the s X (MAX) -th pixels , S Y (MAX) th pixel, the process ends.

【0082】さらに、X方向、Y方向に処理範囲SHの
後尾の画素の画素No(sX(LIM)、s Y(LIM))を決めてい
る場合には、X方向については、Q(tX ,tY )の算
出に用いる原画像のX方向に並ぶ画素がsX(LIM)番目の
画素に達するまでの範囲で処理を行い、Y方向について
は、Q(tX ,tY )の算出に用いる原画像のY方向に
並ぶ画素がsY(LIM)番目の画素に達するまでの範囲で処
理を行い、X方向、Y方向共にQ(tX ,tY )の算出
に用いる原画像の画素がsX(LIM)番目、sY(LI M)番目の
画素に達すると処理を終了する。
Further, in the X direction and the Y direction,
Pixel No. of the tail pixel (sX (LIM), S Y (LIM))
In the case of X direction, Q (tX, TY) Calculation
The pixels arranged in the X direction of the original image used for output are sX (LIM)Th
Processing is performed in the range up to the pixel, and for the Y direction
Is Q (tX, TY) In the Y direction of the original image
Pixels lined up sY (LIM)Processing up to the pixel
Q (t) in both the X and Y directionsX, TY) Calculation
Pixels of the original image used forX (LIM)Th, sY (LI M)Th
When the pixel is reached, the process ends.

【0083】なお、原画像のX方向の全ての画素を処理
対象SHとする場合には、sX (1)=1(処理範囲S
Hの後尾の画素の画素No(sX(LIM))を決める場合に
は、s X(LIM)=sX(MAX))とし、また、原画像のX方向
の端部の所定個数の画素を切り捨てる場合には、s
X (1)=〔先頭側の切り捨て画素数+1〕(処理範囲
SHの後尾の画素の画素No(sX(LIM))を決める場合に
は、sX(LIM)=〔sX(MAX)−後尾側の切り捨て画素数−
1〕)とすればよい。Y方向の処理範囲SHも上記X方
向の処理範囲SHと同様に決めることができる。
Note that all pixels in the X direction of the original image are processed.
When the target SH is set, sX(1) = 1 (processing range S
The pixel number of the tail pixel of H (sX (LIM))
Is s X (LIM)= SX (MAX)) And the X direction of the original image
When a predetermined number of pixels at the end of are truncated, s
X(1) = [number of pixels to be truncated on the top side + 1] (processing range
Pixel No. (s) of the tail pixel of SHX (LIM))
Is sX (LIM)= [SX (MAX)−Truncation pixels on the tail side−
1)). The processing range SH in the Y direction is also the X direction
Can be determined in the same manner as the processing range SH.

【0084】X方向、Y方向の縮小率は同じあってもよ
いし、X方向の縮小率とY方向の縮小率とを違えて画像
縮小してもよい。この場合は、原画像の算出対象画素区
画G XY(tX ,tY )を決める際に、X方向の算出対象
画素区画GX (tX )はX方向の縮小率に応じて決め、
Y方向の算出対象画素区画GY (tY )はY方向の縮小
率に応じて決めればよい。
The reduction ratios in the X and Y directions may be the same.
The difference between the reduction ratio in the X direction and the reduction ratio in the Y direction
It may be reduced. In this case, the calculation target pixel section of the original image
Picture G XY(TX, TY) When calculating the X direction
Pixel section GX(TX) Is determined according to the reduction ratio in the X direction,
Calculation target pixel section G in Y directionY(TY) Indicates reduction in the Y direction
It should be decided according to the rate.

【0085】次に、本発明の第2の画像縮小処理を図1
4に示すフローチャートを参照して説明する。この第2
の画像縮小処理も2次元のデジタルの原画像の2次元方
向の画像縮小を同時に行うものである。なお、この第2
の画像縮小処理及び後述する第3の画像縮小処理も上記
第1の画像縮小処理と同様に、処理が開始される時点で
原画像は原画像メモリ32に記憶されているものとす
る。
Next, a second image reduction process according to the present invention will be described with reference to FIG.
This will be described with reference to the flowchart shown in FIG. This second
The image reduction processing of (2) simultaneously performs image reduction in the two-dimensional direction of the two-dimensional digital original image. Note that this second
It is assumed that the original image is stored in the original image memory 32 at the time when the process is started, similarly to the first image reduction process.

【0086】図14のステップS11(本発明の(2−
1)の工程に相当):上記第1の画像処理のステップS
1と同様の方法で、縮小後の画像の算出対象の画素の濃
度データ(Q(tX ,tY ))を算出するのに用いる原
画像の(2次元の)算出対象画素区画(GXY(tX ,t
Y ))を画像の縮小率(n/m)に応じて決める。
Step S11 in FIG. 14 ((2-
1)): Step S of the first image processing
In the same manner as in 1, the (two-dimensional) calculation target pixel section (G XY ) of the original image used to calculate the density data (Q (t X , t Y )) of the calculation target pixel of the reduced image (T x , t
Y )) is determined according to the image reduction ratio (n / m).

【0087】図14のステップS12(本発明の(2−
2)の工程に相当):上記ステップS21で決めた原画
像の算出対象画素区画GXY(tX ,tY )内の中心位置
の画素(中心画素)以外の画素から、前記中心画素に対
して濃度データの値と距離とが近い画素を選ぶ。
Step S12 of FIG. 14 ((2-
2)): From the pixels other than the pixel at the center position (center pixel) in the pixel segment G XY (t X , t Y ) to be calculated of the original image determined in step S21, To select a pixel whose value is close to the density data value.

【0088】GXY(tX ,tY )内の中心画素は、例え
ば以下のように決める。まず、X方向の算出対象領域R
X (tX )、Y方向の算出対象領域RY (tY)をそれ
ぞれ従来方法の(1)式に基づき決めて、これらR
X (tX )とRY (tY )とで囲まれる2次元の算出対
象領域RXY(tX ,tY )と得る。
The center pixel in G XY (t X , t Y ) is determined, for example, as follows. First, the calculation target region R in the X direction
X (t X ) and the calculation target area R Y (t Y ) in the Y direction are determined based on equation (1) of the conventional method.
X (t X) and R Y (t Y) and de 2-dimensional calculation target region surrounded R XY (t X, t Y ) obtained with.

【0089】図15に示すように、各画素のX、Y方向
の間隔をnとして、RXY(tX ,t Y )のX方向、Y方
向の中心を求め、その交点をRXY(tX ,tY )の中心
点CPとし、この中心点CPを含む画素をGXY(tX
Y )内の中心画素(図では斜線で示す画素)とする。
As shown in FIG. 15, the X and Y directions of each pixel
Where n is the interval ofXY(TX, T Y) X direction, Y direction
Direction center, and the intersection is RXY(TX, TY) Heart
A point CP is defined as a pixel including the center point CP.XY(TX,
tY) Is the central pixel (the pixel indicated by oblique lines in the figure).

【0090】なお、図16(a)に示すように、R
XY(tX ,tY )の中心点CPが4画素の中央に位置す
るときは、周囲の4画素のうちの予め決めた位置の画素
(例えば、中心点CPの左上の画素)を中心画素とす
る。また、図16(b)、(c)に示すように、R
XY(tX ,tY )の中心点CPがX方向またはY方向に
並ぶ2画素の中央に位置するときは、その2画素のうち
の予め決めた位置の画素(例えば、図16(b)の場合
は中心点CPの左側の画素、図16(c)の場合は中心
点CPの上側の画素)を中心画素とする。
Note that, as shown in FIG.
When the center point CP of XY (t X , t Y ) is located at the center of the four pixels, a pixel at a predetermined position (for example, the upper left pixel of the center point CP) among the four surrounding pixels is set as the center pixel. And Further, as shown in FIGS. 16B and 16C, R
XY (t X, t Y) when the center point CP is located at the center of two pixels arranged in the X direction or Y direction of a predetermined position of a pixel of its two pixels (e.g., and FIG. 16 (b) In the case of (a), the pixel on the left side of the center point CP, and in the case of FIG.

【0091】ステップS12では、上記のようにして決
めたGXY(tX ,tY )内の中心画素に対して、G
XY(tX ,tY )内の中心画素以外の各画素との各2画
素の組について上記F(e)を求める。例えば、図9
(a)の9画素からなるGXY(tX,tY )(中心画素
はpe)に対しては、図17(a)に示す組み合わせの
各2画素の組について上記F(e)を求める。
In step S12, the center pixel in G XY (t X , t Y ) determined as described above is
The above F (e) is obtained for each pair of two pixels with each pixel other than the center pixel in XY (t X , t Y ). For example, FIG.
With respect to G XY (t X , t Y ) consisting of 9 pixels in (a) (the center pixel is pe), the above F (e) is obtained for each two-pixel combination of the combination shown in FIG. .

【0092】そして、図17(b)に示すように、各2
画素の組の中心画素と対の画素をF(e)の大小順に並
べ、F(e)が大きい方から所定個数の画素を選ぶ。図
では、pa、pb、pdの3画素が選ばれている。な
お、選ぶ画素の個数は、例えば、GXY(tX ,tY )内
の中心画素以外の画素の個数(図では8個)に対する割
合(例えば、GXY(tX ,tY )内の中心画素以外の画
素の個数の1/3や30%など)で決める。前記割合の
計算に小数が出る場合には切り上げ計算する。例えば、
図の場合にGXY(tX ,tY )内の中心画素以外の画素
の個数の1/3とすると、(8/3)で2.66…とな
るので切り上げて3個の画素を選ぶ。
Then, as shown in FIG.
The center pixel of the set of pixels and the paired pixels are arranged in descending order of F (e), and a predetermined number of pixels are selected in descending order of F (e). In the figure, three pixels pa, pb, and pd are selected. The number of pixels to choose, for example, G XY (t X, t Y) ratio with respect to the center pixel other than the number of pixels in the (eight in the drawing) (e.g., G XY (t X, t Y) within the 1/3 or 30% of the number of pixels other than the center pixel). If a decimal number appears in the calculation of the ratio, the calculation is rounded up. For example,
In the case of the figure, if the number of pixels other than the central pixel in G XY (t X , t Y ) is 1 /, (8/3) is 2.66. .

【0093】図14のステップS13(本発明の(2−
3)の工程に相当):上記ステップS22で選んだ画素
(図17(b)ではpa、pb、pd)及び中心画素
(図17(b)ではpe)の各濃度データの平均値を前
記縮小後の画像の算出対象の画素の濃度データQXY(t
X ,tY )とする。
Step S13 in FIG. 14 ((2-
3)): The average value of the density data of the pixels (pa, pb, and pd in FIG. 17B) and the central pixel (pe in FIG. 17B) selected in step S22 is reduced. The density data Q XY (t of the pixel to be calculated in the subsequent image
X , t Y ).

【0094】例えば、図17(b)の場合、 Q(tX ,tY )=(〔画素peの濃度データ〕+〔画
素paの濃度データ〕+〔画素pbの濃度データ〕+
〔画素pdの濃度データ〕)/4 となる。
For example, in the case of FIG. 17B, Q (t X , t Y ) = ([density data of pixel pe] + [density data of pixel pa] + [density data of pixel pb] +
[Density data of pixel pd]) / 4.

【0095】また、図25(a)のGXY(1,2)は中
心画素が(2,6)の画素(白)であるので、ステップ
S12では、(2,6)の中心画素の周囲の白の画素が
数個選ばれる結果、Q(1,2)は白(1.00)とな
り、GXY(2,1)(中心画素は(6,2)の画素)や
XY(2,2)(中心画素は(6,6)の画素)は中心
画素が(黒)であるので、ステップS12では、それぞ
れの中心画素の周囲の黒の画素が数個選ばれる結果、Q
(2,1)やQ(2,2)は黒(0.00)となる。
Since G XY (1,2) in FIG. 25 (a) has a center pixel of (2,6) (white), in step S12, the center pixel of (2,6) As a result, Q (1,2) becomes white (1.00), and G XY (2,1) (the center pixel is a (6,2) pixel) or G XY (2 , 2) (the central pixel is the pixel of (6, 6)), the central pixel is (black), so in step S12, several black pixels around each central pixel are selected.
(2,1) and Q (2,2) are black (0.00).

【0096】図25(a)の原画像をこの第2の画像縮
小処理で縮小すると、図18に示すようになり、図25
(b)と比べて、縮小後の画像の各画素の濃度データが
ボケたり低下するのが防止され、好適に画像縮小されて
いる。
When the original image of FIG. 25A is reduced by the second image reduction processing, the result is as shown in FIG.
Compared with (b), the density data of each pixel of the reduced image is prevented from being blurred or reduced, and the image is appropriately reduced.

【0097】このように画像縮小する場合、縮小後の画
像の算出対象の画素は中心画素の影響を受け易くなる
が、中心画素はGXY(tX ,tY )の大まかな濃度分布
状態を代表していることが多いので、GXY(tX
Y )を代表する中心画素と、その中心画素につながり
が強い複数個の画素を用いてQXY(tX ,tY )を求め
ることができ、画像縮小による画質の低下を防ぐことが
できる。また、上記第1の画像縮小処理では、GXY(t
X ,tY )内の全画素を対象としてつながり状態を調べ
る必要があるが、この第2の画像縮小処理では、中心画
素とその他の画素とのつながり状態を調べるだけでよい
ので、1個のQXY(tX ,tY )を求めるのに要する処
理時間を短縮することもできる。
When the image is reduced in this manner, the pixel for which the reduced image is to be calculated is easily affected by the center pixel, but the center pixel has a rough density distribution state of G XY (t X , t Y ). G XY (t X ,
Q XY (t X , t Y ) can be obtained by using a central pixel representing t Y ) and a plurality of pixels strongly connected to the central pixel, thereby preventing a reduction in image quality due to image reduction. . In the first image reduction process, G XY (t
X , t Y ), it is necessary to check the connection state for all the pixels. In the second image reduction processing, it is only necessary to check the connection state between the center pixel and the other pixels. The processing time required to obtain Q XY (t X , t Y ) can also be reduced.

【0098】図14のステップS14は上記第1の画像
縮小処理のステップS4と同様の処理であり、第2の画
像縮小処理のその他の処理も、上記第1の画像縮小処理
と同様であるのでその詳述は省略する。
Step S14 in FIG. 14 is the same as step S4 in the first image reduction process, and the other processes in the second image reduction process are the same as those in the first image reduction process. The details are omitted.

【0099】次に、本発明の第3の画像縮小処理を図1
9、図20に示すフローチャートを参照して説明する。
なお、この第3の画像縮小処理は、1次元の縮小方向に
画素が並ぶ原画像の画素列ごとに上記第1の画像縮小処
理と同様の画像縮小処理を行って原画像を縮小方向に縮
小するものである。
Next, the third image reduction processing of the present invention is shown in FIG.
9 and will be described with reference to the flowchart shown in FIG.
In the third image reduction processing, the original image is reduced in the reduction direction by performing the same image reduction processing as in the first image reduction processing for each pixel row of the original image in which pixels are arranged in a one-dimensional reduction direction. Is what you do.

【0100】この画像縮小処理では、図19のステップ
T2〜T7で処理対象の1画素列分の画像縮小を行い、
この処理を縮小方向に直交する方向に並列される各画素
列ごとに順次実行して2次元の原画像全体を1次元の縮
小方向に縮小する。なお、図19、図20のフローチャ
ートでは、縮小方向に直交する方向の処理範囲SH(端
部側の画素列を除去して画像縮小する場合)を考慮し
て、原画像メモリ32に記憶されている原画像の縮小方
向に直交する方向のi番目の画素列(X方向への縮小時
にはi=sY (1)、sY (1)+1、sY (1)+
2、…であり、Y方向への縮小時にはi=sX (1)、
X (1)+1、sX (1)+2、…)の縮小結果を、
縮小後画像メモリ33の縮小方向に直交する方向のj番
目の画素列(j=1、2、3、…)として記憶するよう
に処理しているが、原画像メモリ32に記憶されている
原画像の縮小方向に直交する方向の全画素列を処理対象
とする場合には、i=j(1、2、3、…)として処理
すればよい。
In this image reduction process, image reduction for one pixel column to be processed is performed in steps T2 to T7 in FIG.
This process is sequentially performed for each pixel column arranged in parallel in the direction orthogonal to the reduction direction to reduce the entire two-dimensional original image in the one-dimensional reduction direction. Note that in the flowcharts of FIGS. 19 and 20, the processing range SH in the direction orthogonal to the reduction direction (in the case of reducing the image by removing the pixel rows on the end side) is stored in the original image memory 32. I-th pixel column in the direction orthogonal to the reduction direction of the original image (i = s Y (1), s Y (1) +1, s Y (1) + when reduced in the X direction)
2,... At the time of reduction in the Y direction, i = s X (1),
s X (1) +1, s X (1) +2,...)
Although processing is performed so as to store the j-th pixel row (j = 1, 2, 3,...) In the direction orthogonal to the reduction direction of the reduced image memory 33, the original image stored in the original image memory 32 is processed. If all pixel rows in the direction orthogonal to the image reduction direction are to be processed, the processing may be performed with i = j (1, 2, 3,...).

【0101】例えば、図2のX方向を縮小方向とした画
像縮小の場合、Y方向に並列された各画素列を順次処理
対象の1画素列として処理していく。この場合、原画像
の処理対象の1画素列(i番目の画素列)内のQ
(tX ,j)算出用の算出対象画素区画GX (tX )に
含まれる画素のうち、平均計算に用いる画素の濃度デー
タ(P(sX ,i))を原画像メモリ32から読み出し
て画像縮小し、その結果を縮小後画像メモリ33の(t
X ,j)の座標値の画素の濃度データQ(tX ,j)と
して縮小後画像メモリ33に記憶していく。一方、図2
のY方向を縮小方向とした画像縮小の場合、X方向に並
列された各画素列を順次処理対象の1画素列として処理
していく。この場合、原画像の処理対象の1画素列(i
番目の画素列)内のQ(j,tY )算出用の算出対象画
素区画GY (tY )に含まれる画素のうち、平均計算に
用いる画素の濃度データ(P(i,sY ))を原画像メ
モリ32から読み出して画像縮小し、その結果を縮小後
画像メモリ33の(j,tY )の座標値の画素の濃度デ
ータQ(j,tY )として縮小後画像メモリ33に記憶
していく。
For example, in the case of image reduction in which the X direction in FIG. 2 is a reduction direction, each pixel row arranged in the Y direction is sequentially processed as one pixel row to be processed. In this case, Q in one pixel column (i-th pixel column) to be processed of the original image
Of the pixels included in the calculation target pixel section G x (t x ) for (t x , j) calculation, the density data (P (s x , i)) of the pixel used for the average calculation is read from the original image memory 32. The image is reduced by (t) in the image memory 33 after reduction.
X, the density data Q (t X pixel coordinate values of j), j) will be stored in the reduced after image memory 33 as. On the other hand, FIG.
In the case of image reduction in which the Y direction is a reduction direction, the pixel rows arranged in the X direction are sequentially processed as one pixel row to be processed. In this case, one pixel column (i
Of pixels included in the calculation target pixel section G Y (t Y ) for calculating Q (j, t Y ) in the (th pixel row), the density data (P (i, s Y )) of the pixel used for the average calculation ) to read from the original image memory 32 and image reduction, the result of reduced post-image memory 33 (j, t Y) density data Q (j pixel coordinate values of the reduced after image memory 33 as t Y) I will remember.

【0102】図19のステップT1:初期設定を行う。
jに「1」をセットし、X方向への縮小の場合はiにs
Y (1)をセットし、Y方向への縮小の場合はiにsX
(1)をセットする。なお、sY (1)、sX (1)、
縮小率(n/m)、ahX (X方向への縮小の場合)、
ahY (Y方向への縮小の場合)などの必要なデータ
は、ステップT1の処理に先立ち、設定器44などから
設定される。
Step T1: FIG. 19: Initial setting is performed.
Set “1” to j, and set s to i in the case of reduction in the X direction.
Y (1) is set, and i is s X for reduction in the Y direction.
Set (1). Note that s Y (1), s X (1),
Reduction ratio (n / m), ah X (in the case of reduction in the X direction),
Necessary data such as ah Y (in the case of reduction in the Y direction) is set from the setting unit 44 and the like prior to the processing in step T1.

【0103】図19のステップT2:1画素列分の画像
縮小処理の初期設定を行う。X方向への縮小の場合はt
X に「1」をセットし、Y方向への縮小の場合はtY
「1」をセットする。
Step T2 in FIG. 19: Initial setting of image reduction processing for one pixel row is performed. T for reduction in the X direction
X is set to “1”, and in the case of reduction in the Y direction, “1” is set to t Y.

【0104】図19のステップT3(本発明の(1−
1)の工程に相当):縮小後の画像の算出対象の画素
(縮小後の画像の処理対象の画素列内の算出対象の画
素)の濃度データを算出するのに用いる原画像(原画像
の処理対象の画素列内)の算出対象画素区画を画像の縮
小率(n/m)に応じて決める。
Step T3 in FIG. 19 ((1-
1)): an original image (of the original image) used to calculate the density data of the pixel to be calculated in the reduced image (the pixel to be calculated in the pixel column to be processed in the reduced image) The calculation target pixel section (within the processing target pixel column) is determined according to the image reduction ratio (n / m).

【0105】この算出対象画素区画は、例えば、従来の
(1)式に基づき決めることができる。すなわち、X方
向への縮小の場合は、原画像のY方向に並列される画素
列のうちのi番目の画素列内のsX (tX )番目の画素
からsX (tX +1)番目の画素までの区画(ただし、
n−aX (tX )=0の場合には、(sX (tX )+
1)番目の画素からsX (tX +1)番目の画素までの
区画)を算出対象画素区画GX (tX )とする。また、
Y方向への縮小の場合には、原画像のX方向に並列され
る画素列のうちのi番目の画素列内のsY (tY )番目
の画素からsY (tY +1)番目の画素までの区画(た
だし、n−aY (tY )=0の場合には、(s
Y (tY )+1)番目の画素からsY (tY +1)番目
の画素までの区画)を算出対象画素区画GY (tY )と
する。
The calculation target pixel section can be determined, for example, based on the conventional equation (1). That is, in the case of reduction in the X direction, the s X (t X ) -th pixel to the s X (t X +1) -th pixel in the i-th pixel row of the pixel rows arranged in the Y direction of the original image Area up to the pixel of (however,
When n−a X (t X ) = 0, (s X (t X ) +
The (1) -th pixel to the s X (t X +1) -th pixel) is defined as a calculation target pixel block G X (t X ). Also,
In the case of reduction in the Y direction, the s Y (t Y ) -th pixel to the s Y (t Y +1) -th pixel in the i-th pixel row of the pixel row arranged in the X direction of the original image Lot to the pixel (although in the case of n-a Y (t Y) = 0 is, (s
And Y (t Y) +1) th pixel from s Y (t Y +1) th section to the pixel) is calculated pixel partitioning G Y (t Y).

【0106】図25(a)の場合では、GX (1)は
(1〜4,i)の4個の画素からなる区画、GX (2)
は(4〜7,i)の4個の画素からなる区画、G
X (3)は(8〜11,i)の4個の画素からなる区
画、…であり、GY (1)は(i,1〜4)の4個の画
素からなる区画、GY (2)は(i,4〜7)の4個の
画素からなる区画、GY (3)は(i,8〜11)の4
個の画素からなる区画、…である。
In the case of FIG. 25A, G X (1) is a section composed of four pixels (1 to 4, i), G X (2)
Is a section composed of four pixels (4 to 7, i), G
X (3) is a section composed of four pixels (8-11, i),..., G Y (1) is a section composed of four pixels (i, 1-4), G Y ( 2) is a section composed of four pixels of (i, 4 to 7), and G Y (3) is 4 of (i, 8 to 11).
, A section made up of pixels.

【0107】また、この処理においても、X方向への縮
小の場合、ahX を一義的に「0」としてGX (t)を
決め、Y方向への縮小の場合、ahY を一義的に「0」
としてGY (t)を決めてもよい。
Also in this processing, when reducing in the X direction, ah X is uniquely defined as “0” to determine G X (t). In the case of reducing in the Y direction, ah Y is uniquely defined. "0"
G Y (t) may be determined as

【0108】このように算出対象画素区画を決めて、こ
の算出対象画素区画内の画素を使って縮小後の画像の算
出対象の画素の濃度データを求めることで、原画像の縮
小方向の処理範囲SH全体をn/m倍に略均等に縮小す
ることができる。
By determining the pixel segment to be calculated in this way and obtaining the density data of the pixel to be calculated of the reduced image using the pixels in the pixel segment to be calculated, the processing range in the reduction direction of the original image is obtained. The entire SH can be reduced substantially evenly to n / m times.

【0109】図19のステップT4(本発明の(1−
2)の工程に相当)、ステップT5(本発明の(1−
3)の工程に相当)は、上記第1の画像縮小処理のステ
ップS2、S3と同様の処理である。すなわち、この第
3の画像縮小処理では、上記ステップT3で、原画像の
処理対象の1画素列に対して算出対象画素区画を決め、
相互につながりがあるその算出対象画素区画を代表する
複数個の画素を選んで、それら画素の平均によって縮小
後の画像の算出対象の画素の濃度データを求めるもので
ある。これにより、1次元方向の縮小方向への画像縮小
において、上記第1の画像縮小処理と同様の効果を得る
ことができる。
Step T4 of FIG. 19 ((1-
2)), Step T5 ((1- (
3) is a process similar to steps S2 and S3 of the first image reduction process. That is, in the third image reduction process, in step T3, a calculation target pixel section is determined for one pixel column to be processed of the original image.
A plurality of pixels representing the calculation target pixel section which are connected to each other are selected, and the density data of the calculation target pixel of the reduced image is obtained by averaging these pixels. Thus, in the image reduction in the one-dimensional reduction direction, the same effect as the first image reduction processing can be obtained.

【0110】なお、この画像縮小処理において、2画素
p1、p2のFb(e)を上述した評価式で評価すると
きの画素間最大距離BMAX は、X方向に縮小時はG
X (tx)内の画素数に相当し、Y方向に縮小時はGY
(tY )内の画素数に相当する。また、X方向への縮小
時の2画素p1、p2間の距離Bp1-p2 は図7(b)に
より、Y方向への縮小時の2画素p1、p2間の距離B
p1-p2 は図7(c)により求める。
In this image reduction processing, the maximum distance B MAX between pixels when Fb (e) of the two pixels p1 and p2 is evaluated by the above-described evaluation expression is G when the image is reduced in the X direction.
Equivalent to the number of pixels in X (t x ), and G Y when reduced in the Y direction
This corresponds to the number of pixels in (t Y ). 7B, the distance B p1- p2 between the two pixels p1 and p2 when reducing in the X direction is the distance B between the two pixels p1 and p2 when reducing in the Y direction.
p1-p2 is obtained according to FIG.

【0111】図19のステップT6では、現在の処理対
象の1画素列に対する画像縮小処理が終了したか否かを
判定し、終了していなければ、X方向への縮小時はtX
をカウントアップし、Y方向への縮小時はtY をカウン
トアップして(ステップT7)、ステップT3に戻って
縮小後の画像の現在の処理対象の画素列内の次の画素の
濃度データを求める。以後、現在の処理対象の1画素列
に対する画像縮小処理が終了するまでステップT3〜T
7の処理を繰り返して、X方向への縮小の場合は、tX
=1、2、3、…と順次カウントアップして、Q(1,
j)、Q(2,j)、Q(3,j)、…の順に縮小後の
画像のY方向のj番目の画素列を構成する各画素の濃度
データを原画像のY方向のi番目の画素列から求めてい
き、Y方向への縮小の場合は、tY =1、2、3、…と
順次カウントアップして、Q(j,1)、Q(j,
2)、Q(j,3)、…の順に縮小後の画像のX方向の
j番目の画素列を構成する各画素の濃度データを原画像
のX方向のi番目の画素列から求めていく。現在の処理
対象の1画素列に対する画像縮小処理が終了すると、図
20のステップT8で処理対象の全ての画素列に対する
画像縮小処理が終了したか否かを判定し、終了していな
ければi、jをそれぞれカウントアップして(ステップ
T9)、図19のステップT2に戻り次の画素列に対す
る縮小処理を行い、処理対象の全ての画素列に対する画
像縮小処理が終了すると処理を終了する。
[0111] In step T6 of FIG. 19, it is determined whether the image reduction processing is completed for one pixel row of the current processing target, if not completed, when the reduction in the X-direction is t X
Is counted up, and when reducing in the Y direction, t Y is counted up (step T7), and the process returns to step T3 to return the density data of the next pixel in the current processing target pixel column of the reduced image. Ask. Thereafter, steps T3 to T3 are performed until the image reduction processing for the current pixel row to be processed is completed.
7 is repeated, and in the case of reduction in the X direction, t X
= 1, 2, 3,... And Q (1,
j), Q (2, j), Q (3, j),..., the density data of each pixel constituting the j-th pixel column in the Y direction of the reduced image in the i-th direction in the Y direction of the original image. , And in the case of reduction in the Y direction, t Y = 1, 2, 3,... Are sequentially counted up, and Q (j, 1), Q (j,
2), Q (j, 3),..., The density data of each pixel constituting the j-th pixel column in the X direction of the reduced image is obtained from the i-th pixel column in the X direction of the original image. . When the image reduction processing for one pixel row to be processed is completed, it is determined in step T8 in FIG. 20 whether or not the image reduction processing for all pixel rows to be processed has been completed. j is counted up (step T9), and the process returns to step T2 in FIG. 19 to perform the reduction processing on the next pixel row. When the image reduction processing on all the pixel rows to be processed ends, the processing ends.

【0112】X方向への縮小(Y方向への縮小)の場合
のステップT6の終了判定は以下のように行う。縮小後
の画像のX方向(Y方向)の画素数(tX(MAX)個(t
Y(MAX)個))が予め決まっている場合には、Q(t
X(MAX),j)(Q(j,tY(MAX)))が求まった時点で
処理対象の1画素列の画像縮小処理を終了する。
In the case of reduction in the X direction (reduction in the Y direction), the end determination of step T6 is performed as follows. The number of pixels in the X direction (Y direction) of the reduced image (t X (MAX) (t
Y (MAX) )) is predetermined, then Q (t
When X (MAX) , j) (Q (j, tY (MAX) )) is obtained, the image reduction processing of one pixel column to be processed is ended.

【0113】また、X方向(Y方向)について、原画像
のsX (1)(sY (1))番目の画素から最後の画素
(sX(MAX)番目の画素(sY(MAX)番目の画素))までを
X方向(Y方向)の処理範囲SHとして処理する場合に
は、Q(tX ,j)(Q(j,tY ))の算出に用いる
原画像の処理対象の1画素列内の画素がsX(MAX)番目の
画素(sY(MAX)番目の画素)に達するまでの範囲で処理
対象の1画素列の画像縮小処理を行い、Q(tX ,j)
(Q(i,tY ))の算出に用いる原画像の処理対象の
1画素列内の画素がsX(MAX)番目の画素(sY(MAX)番目
の画素)に達すると処理対象の1画素列の画像縮小処理
を終了する。
In the X direction (Y direction), the s X (1) (s Y (1))-th pixel to the last pixel (s X (MAX) -th pixel (s Y (MAX) ) of the original image ) Is processed as the processing range SH in the X direction (Y direction), the processing target of the original image used to calculate Q (t X , j) (Q (j, t Y )) pixels in one pixel column performs image reduction processing of s X (MAX) th pixel (s Y (MAX) th pixel) in a range until a 1 pixel string to be processed, Q (t X, j )
When a pixel in one pixel column to be processed of the original image used for calculating (Q (i, t Y )) reaches the s X (MAX) -th pixel (s Y (MAX) -th pixel), The image reduction processing for one pixel row is completed.

【0114】さらに、X方向(Y方向)の処理範囲SH
に後尾の画素の画素No(sX(LIM)(sY(LIM)))を決め
ている場合には、Q(tX ,j)(Q(i,tY ))の
算出に用いる原画像の処理対象の1画素列内の画素がs
X(LIM)番目の画素(sY(LIM)番目の画素)に達するまで
の範囲で処理対象の1画素列の画像縮小処理を行い、Q
(tX ,j)(Q(i,tY ))の算出に用いる原画像
の処理対象の1画素列内の画素がsX(LIM)番目の画素
(sY(LIM)番目の画素)に達すると処理対象の1画素列
の画像縮小処理を終了する。
Further, the processing range SH in the X direction (Y direction)
Hara used to calculate the pixels of the tail of the pixels No (s X (LIM) ( s Y (LIM))) if they decide is, Q (t X, j) (Q (i, t Y)) to The pixel in one pixel column to be processed is s
Image reduction processing of one pixel column to be processed is performed until the pixel reaches the X (LIM) -th pixel (s Y (LIM) -th pixel).
(T X, j) (Q (i, t Y)) pixels s X in one pixel row of the process target of the original image used for calculating the (LIM) th pixel (s Y (LIM) th pixel) Is reached, the image reduction processing for one pixel column to be processed ends.

【0115】X方向への縮小(Y方向への縮小)の場合
のステップT8の終了判定は以下のように行う。縮小後
の画像のY方向(X方向)の画素列の数(tY(MAX)
(tX(MAX)個))が予め決まっている場合には、j=t
Y(MAX)(j=tX(MAX))の画素列の縮小処理を終えた時
点で処理を終了する。
In the case of reduction in the X direction (reduction in the Y direction), the end determination of step T8 is made as follows. If the number of pixel rows in the Y direction (X direction) of the reduced image (t Y (MAX) (t X (MAX) )) is predetermined, j = t
When the reduction processing of the pixel row of Y (MAX) (j = t X (MAX) ) is completed, the processing ends.

【0116】また、Y方向(X方向)について、原画像
のsY (1)(sX (1))番目の画素から最後の画素
(sY(MAX)番目の画素(sX(MAX)番目の画素))までを
Y方向(X方向)の処理範囲SHとして処理する場合に
は、i=sY(MAX)(i=sX( MAX))の画素列の縮小処理
を終えた時点で処理を終了する。
In the Y direction (X direction), the s Y (1) (s X (1))-th pixel to the last pixel (s Y (MAX) -th pixel (s X (MAX) ) of the original image ) Is processed as the processing range SH in the Y direction (X direction) when the reduction process of the pixel row of i = s Y (MAX) (i = s X ( MAX) ) is completed. Ends the processing.

【0117】さらに、Y方向(X方向)の処理範囲SH
に後尾の画素の画素No(sY(LIM)(sX(LIM)))を決め
ている場合には、i=sY(LIM)(i=sX(LIM))の画素
列の縮小処理を終えた時点で処理を終了する。
Further, the processing range SH in the Y direction (X direction)
If the pixel number (sY (LIM) (sX (LIM) )) of the last pixel is determined, the pixel row of i = sY (LIM) (i = sX (LIM) ) is reduced. The process ends when the process is completed.

【0118】なお、X方向、Y方向の処理範囲SHは、
上記第1の画像縮小処理で説明したようにsX (1)
(sX(LIM))、sY (1)、(sY(LIM))を決めればよ
い。
Note that the processing ranges SH in the X and Y directions are
As described in the first image reduction process, s X (1)
(S X (LIM)), s Y (1), may be determined a (s Y (LIM)).

【0119】また、例えば、ラインセンサを用いた画像
取り込み装置で各主走査方向の画素列が取り込まれると
すぐにその画素列を画像縮小する場合には、原画像メモ
リ32を図21にように、主走査方向1画素列分のデー
タを記憶できるように構成し、画像取り込み装置で主走
査方向1画素列分のデータが取り込まれるたびにそのデ
ータを図21の原画像メモリ32に記憶して上記図1
9、図20の処理で順次画像縮小して縮小後画像メモリ
33に記憶していくように構成してもよい。
Further, for example, when an image capturing apparatus using a line sensor captures a pixel row in each main scanning direction and immediately reduces the image of the pixel row, the original image memory 32 is stored as shown in FIG. Each time data of one pixel row in the main scanning direction is captured by the image capturing device, the data is stored in the original image memory 32 of FIG. FIG.
9, the image may be sequentially reduced in the processing of FIG. 20 and stored in the reduced image memory 33.

【0120】さらに、上記第3の画像縮小処理のステッ
プT4、T5を、上記第2の画像縮小処理のステップS
12、S13と同様に方法で処理すれば、1次元方向の
縮小方向への画像縮小において、上記第2の画像縮小処
理と同様の効果を得ることができる。なお、この場合、
X方向への縮小時のGX (tx )の中心画素は、図15
の方法において、RX (tX )のX方向の中心を求め、
その中心を含む画素をGX (tx )の中心画素とすれば
よく、同様に、Y方向への縮小時のGY (tY)の中心
画素は、図15の方法において、RY (tY )のY方向
の中心を求め、その中心を含む画素をGY (tY )の中
心画素とすればよい。
Further, steps T4 and T5 of the third image reduction processing are replaced with steps S4 and T5 of the second image reduction processing.
If the processing is performed in the same manner as in S12 and S13, the same effect as in the second image reduction processing can be obtained in reducing the image in the one-dimensional reduction direction. In this case,
The central pixel of G X (t x ) at the time of reduction in the X direction is shown in FIG.
In the method described above, the center of R x (t x ) in the X direction is obtained,
The pixel including the center may be set as the center pixel of G X (t x ). Similarly, the center pixel of G Y (t Y ) at the time of reduction in the Y direction is determined by R Y ( The center in the Y direction of t Y ) may be obtained, and the pixel including the center may be set as the center pixel of G Y (t Y ).

【0121】[0121]

【発明の効果】以上の説明から明らかなように、請求項
1に記載の発明によれば、原画像の算出対象画素区画内
の各画素から相互につながりがあるその原画像の算出対
象画素区画を代表する複数個の画素を選び、これら各画
素の濃度データを平均することで縮小後の画像の算出対
象の画素の濃度データを求めているので、原画像の算出
対象画素区画内でつながりがない画素を除外して、相互
につながりがあるその原画像の算出対象画素区画を代表
する複数個の画素の濃度データを用いて縮小後の画像の
算出対象の画素の濃度データを求めることができ、画像
縮小による画質の低下を防ぐことができる。
As is apparent from the above description, according to the first aspect of the present invention, the calculation target pixel section of the original image is connected to each pixel in the calculation target pixel section of the original image. Is selected, and the density data of the pixel to be calculated for the reduced image is obtained by averaging the density data of each pixel, so that the connection is made within the calculation target pixel section of the original image. By excluding non-existing pixels, density data of pixels to be calculated in the reduced image can be obtained by using density data of a plurality of pixels representing the calculation target pixel section of the original image which are connected to each other. In addition, it is possible to prevent a decrease in image quality due to image reduction.

【0122】請求項2に記載の発明によれば、原画像の
算出対象画素区画内の中心画素及び中心画素に対して濃
度データの値と距離とが近い画素の各濃度データを平均
することで縮小後の画像の算出対象の画素の濃度データ
を求めているので、原画像の算出対象画素区画の大まか
な濃度分布状態を代表している中心画素とその中心画素
とつながりが高い画素とを用いて縮小後の画像の画素の
濃度データを求めることができ、画像縮小による画質の
低下を防ぐことができる。また、中心画素と原画像の算
出対象画素区画内の他の画素とのつながり状態を調べる
だけでよいので、縮小後の画像の1画素の濃度データを
求めるのに要する処理時間を短縮することもできる。
According to the second aspect of the present invention, by averaging the density data of the central pixel and the pixels whose distance and the density data are close to the central pixel in the pixel segment to be calculated of the original image. Since the density data of the pixel to be calculated in the reduced image is calculated, a central pixel representing a rough density distribution state of the pixel segment to be calculated in the original image and a pixel having a high connection with the central pixel are used. Thus, the density data of the pixels of the image after the reduction can be obtained, and the deterioration of the image quality due to the image reduction can be prevented. Further, since it is only necessary to check the connection state between the center pixel and the other pixels in the calculation target pixel section of the original image, the processing time required for obtaining the density data of one pixel of the reduced image can be reduced. it can.

【0123】請求項3に記載の発明によれば、原画像の
2次元方向の画像縮小を同時に、かつ、好適に行うこと
ができる。
According to the third aspect of the present invention, it is possible to simultaneously and suitably reduce the size of the original image in the two-dimensional direction.

【0124】請求項4に記載の発明によれば、1次元の
縮小方向に画素が並ぶ原画像の画素列ごとに画像縮小処
理を行い、原画像を縮小方向に縮小する処理を好適に行
うことができる。
According to the fourth aspect of the present invention, image reduction processing is performed for each pixel row of an original image in which pixels are arranged in a one-dimensional reduction direction, and processing for reducing the original image in the reduction direction is preferably performed. Can be.

【0125】請求項5、6に記載の発明によれば、請求
項1、2に記載の発明に係る画像縮小処理をコンピュー
タに実行させることができる。
According to the fifth and sixth aspects of the present invention, it is possible to cause a computer to execute the image reduction processing according to the first and second aspects of the present invention.

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

【図1】本発明に係る画像縮小方法を実施するハードウ
エア構成の一例を示すブロック図である。
FIG. 1 is a block diagram showing an example of a hardware configuration for implementing an image reduction method according to the present invention.

【図2】原画像メモリの構成を示す図である。FIG. 2 is a diagram showing a configuration of an original image memory.

【図3】縮小後画像メモリの構成を示す図である。FIG. 3 is a diagram illustrating a configuration of a reduced image memory.

【図4】2次元のデジタルの原画像の2次元方向の画像
縮小を同時に行う、本発明に係る第1の画像縮小処理の
手順を示すフローチャートである。
FIG. 4 is a flowchart illustrating a procedure of a first image reduction process according to the present invention, in which image reduction in a two-dimensional direction of a two-dimensional digital original image is performed simultaneously.

【図5】2次元の算出対象領域と2次元の算出対象画素
区画を示す図である。
FIG. 5 is a diagram showing a two-dimensional calculation target area and a two-dimensional calculation target pixel section;

【図6】原画像と縮小後の画像の関係を示す図である。FIG. 6 is a diagram showing a relationship between an original image and a reduced image.

【図7】2画素間の距離の算出方法を示す図である。FIG. 7 is a diagram illustrating a method for calculating a distance between two pixels.

【図8】原画像の算出対象画素区画内の最大画素間距離
の算出方法を示す図である。
FIG. 8 is a diagram illustrating a method of calculating a maximum inter-pixel distance in a calculation target pixel section of an original image.

【図9】原画像の算出対象画素区画内の各画素のつなが
り状態を調べる手順を説明するための図である。
FIG. 9 is a diagram for explaining a procedure for checking a connection state of each pixel in a calculation target pixel section of an original image.

【図10】各画素の相互のつながり状態を調べる手順を
説明するための図である。
FIG. 10 is a diagram for explaining a procedure for checking a mutual connection state of each pixel;

【図11】図25(a)の原画像の各算出対象画素区画
内の各画素のつながり状態を示す図である。
FIG. 11 is a diagram illustrating a connection state of each pixel in each calculation target pixel section of the original image of FIG.

【図12】図20(a)の原画像を第1の画像縮小処理
で縮小した結果を示す図である。
FIG. 12 is a diagram showing a result of reducing the original image of FIG. 20A by a first image reduction process.

【図13】処理手順をX方向優先にする場合とY方向優
先にする場合を示す図である。
FIG. 13 is a diagram showing a case where the processing procedure is given priority in the X direction and a case where the processing procedure is given priority in the Y direction.

【図14】2次元のデジタルの原画像の2次元方向の画
像縮小を同時に行う、本発明に係る第2の画像縮小処理
の手順を示すフローチャートである。
FIG. 14 is a flowchart illustrating a procedure of a second image reduction process according to the present invention, in which image reduction in a two-dimensional direction of a two-dimensional digital original image is simultaneously performed.

【図15】原画像の算出対象画素区画の中心画素を算出
する方法を示す図である。
FIG. 15 is a diagram illustrating a method of calculating a center pixel of a calculation target pixel section of an original image.

【図16】同じく、原画像の算出対象画素区画の中心画
素を算出する方法を示す図である。
FIG. 16 is a diagram illustrating a method of calculating a center pixel of a calculation target pixel section of the original image.

【図17】原画像の算出対象画素区画内の中心画素以外
の各画素と中心画素とのつながり状態を調べる手順を説
明するための図である。
FIG. 17 is a diagram for explaining a procedure for examining the connection state between each pixel other than the center pixel in the calculation target pixel section of the original image and the center pixel.

【図18】図20(a)の原画像を第2の画像縮小処理
で縮小した結果を示す図である。
FIG. 18 is a diagram showing a result of reducing the original image of FIG. 20A by a second image reduction process.

【図19】1次元の縮小方向に画素が並ぶ原画像の画素
列ごとに、画像縮小処理を行って原画像を縮小方向に縮
小する、本発明に係る第3の画像縮小処理の手順を示す
フローチャートである。
FIG. 19 shows a procedure of a third image reduction process according to the present invention, in which an image reduction process is performed for each pixel column of an original image in which pixels are arranged in a one-dimensional reduction direction to reduce the original image in the reduction direction. It is a flowchart.

【図20】同じく本発明に係る第2の画像縮小処理の手
順を示すフローチャートである。
FIG. 20 is a flowchart showing a procedure of a second image reduction process according to the present invention.

【図21】原画像メモリの変形例の構成を示す図であ
る。
FIG. 21 is a diagram showing a configuration of a modification of the original image memory.

【図22】従来の画像縮小方法を説明するための図であ
る。
FIG. 22 is a diagram for explaining a conventional image reduction method.

【図23】従来の1画素列ごとの画像縮小方法を示す図
である。
FIG. 23 is a diagram illustrating a conventional image reduction method for each pixel column.

【図24】従来方法で2次元の原画像を2次元方向に画
像縮小する手順を示す図である。
FIG. 24 is a diagram showing a procedure for reducing an image of a two-dimensional original image in a two-dimensional direction by a conventional method.

【図25】従来方法の問題点を説明するための図であ
る。
FIG. 25 is a diagram for explaining a problem of the conventional method.

【符号の説明】[Explanation of symbols]

10:CPU 31:プログラムメモリ 32:原画像メモリ 33:縮小後画像メモリ 45:外部記憶装置 P(sX ,sY ):原画像の画素の濃度データ Q(tX ,tY ):縮小後の画像の画素の濃度データ GXY(tX ,tY )、GX (tX )、GY (tY ):算
出対象画素区画
10: CPU 31: program memory 32: the original image memory 33: after the reduction image memory 45: Storage P (s X, s Y) : density data Q of the pixels of the original image (t X, t Y): After reduction Density data G XY (t X , t Y ), G X (t X ), G Y (t Y ) of the image pixel

Claims (6)

【特許請求の範囲】[Claims] 【請求項1】 デジタルの原画像を縮小して縮小後の画
像を得る画像縮小方法において、 (1−1)縮小後の画像の算出対象の画素の濃度データ
を算出するのに用いる原画像の算出対象画素区画を画像
の縮小率に応じて決める工程と、 (1−2)前記(1−1)の工程で決めた原画像の算出
対象画素区画内の各画素間の濃度データの値の近さと各
画素間の距離の近さとに基づいて、相互につながりがあ
るその原画像の算出対象画素区画を代表する複数個の画
素を選ぶ工程と、 (1−3)前記(1−2)の工程で選んだ各画素の濃度
データの平均値を前記縮小後の画像の算出対象の画素の
濃度データとする工程と、 からなる工程で縮小後の画像の各画素の濃度データを求
めることで原画像を縮小した縮小後の画像を得ることを
特徴とする画像縮小方法。
1. An image reduction method for reducing a digital original image to obtain a reduced image, comprising: (1-1) calculating an original image used for calculating density data of a pixel to be calculated for the reduced image; (1-2) determining the calculation target pixel section according to the reduction ratio of the image; and (1-2) determining the density data value between the pixels in the calculation target pixel section of the original image determined in the step (1-1). A step of selecting a plurality of pixels representing the calculation target pixel section of the original image, which are mutually connected, based on the proximity and the proximity of the distance between the pixels; (1-3) the (1-2) Obtaining the average value of the density data of each pixel selected in the step as density data of the pixel to be calculated for the reduced image, and obtaining the density data of each pixel of the reduced image in the step of An image characterized in that a reduced image obtained by reducing an original image is obtained. Small way.
【請求項2】 デジタルの原画像を縮小して縮小後の画
像を得る画像縮小方法において、 (2−1)縮小後の画像の算出対象の画素の濃度データ
を算出するのに用いる原画像の算出対象画素区画を画像
の縮小率に応じて決める工程と、 (2−2)前記(2−1)の工程で決めた原画像の算出
対象画素区画内の中心位置の画素(中心画素)以外の画
素から、前記中心画素に対して濃度データの値と距離と
が近い画素を選ぶ工程と、 (2−3)前記(2−2)の工程で選んだ画素及び前記
中心画素の各濃度データの平均値を前記縮小後の画像の
算出対象の画素の濃度データとする工程と、 からなる工程で縮小後の画像の各画素の濃度データを求
めることで原画像を縮小した縮小後の画像を得ることを
特徴とする画像縮小方法。
2. An image reduction method for reducing a digital original image to obtain a reduced image, comprising: (2-1) calculating an original image used for calculating density data of a pixel to be calculated for the reduced image; A step of determining the calculation target pixel section in accordance with the image reduction ratio; and (2-2) a pixel other than the pixel at the center position (center pixel) in the calculation target pixel section of the original image determined in the step (2-1). (2-3) selecting a pixel whose density data value and distance are closer to the center pixel from the pixels of (2-3); and (2-3) each density data of the pixel selected in the step (2-2) and the center pixel Using the average value of as the density data of the pixel to be calculated of the reduced image, and obtaining the density data of each pixel of the reduced image in the step of calculating the reduced image obtained by reducing the original image. A method for reducing an image, comprising:
【請求項3】 請求項1または2に記載の画像縮小方法
により、2次元のデジタルの原画像の2次元方向の画像
の縮小を同時に行うことを特徴とする画像縮小方法。
3. An image reduction method according to claim 1, wherein the two-dimensional image of the two-dimensional digital original image is reduced simultaneously.
【請求項4】 1次元の縮小方向に画素が並ぶ前記原画
像の画素列ごとに、請求項1または2に記載の画像縮小
方法で画像縮小処理を行い、前記原画像を前記縮小方向
に縮小することを特徴とする画像縮小方法。
4. An image reduction process according to claim 1 or 2, wherein an image reduction process is performed for each pixel row of the original image in which pixels are arranged in a one-dimensional reduction direction, and the original image is reduced in the reduction direction. An image reduction method, comprising:
【請求項5】 デジタルの原画像を縮小して縮小後の画
像を得る処理をコンピュータに実行させるためのプログ
ラムを記録した記憶媒体であって、 (1−1)縮小後の画像の算出対象の画素の濃度データ
を算出するのに用いる原画像の算出対象画素区画を画像
の縮小率に応じて決める工程と、 (1−2)前記(1−1)の工程で決めた原画像の算出
対象画素区画内の各画素間の濃度データの値の近さと各
画素間の距離の近さとに基づいて、相互につながりがあ
るその原画像の算出対象画素区画を代表する複数個の画
素を選ぶ工程と、 (1−3)前記(1−2)の工程で選んだ各画素の濃度
データの平均値を前記縮小後の画像の算出対象の画素の
濃度データとする工程と、 からなる工程で縮小後の画像の各画素の濃度データを求
めることで原画像を縮小した縮小後の画像を得る処理を
コンピュータに実行させるためのプログラムを記録した
記憶媒体。
5. A storage medium storing a program for causing a computer to execute a process of reducing a digital original image to obtain a reduced image, wherein: (1-1) a calculation target of the reduced image A step of determining a pixel section to be calculated for the original image used to calculate the density data of the pixel according to the reduction ratio of the image; and (1-2) a calculation target of the original image determined in the step (1-1). A step of selecting a plurality of pixels representing the calculation target pixel section of the original image that are connected to each other based on the proximity of the value of the density data between the pixels in the pixel section and the proximity of the distance between the pixels; And (1-3) a step of using the average value of the density data of each pixel selected in the step (1-2) as the density data of the pixel to be calculated in the reduced image. By calculating the density data of each pixel of the subsequent image, A storage medium recording a program for executing a process of obtaining a reduced image obtained by reducing the image to a computer.
【請求項6】 デジタルの原画像を縮小して縮小後の画
像を得る処理をコンピュータに実行させるためのプログ
ラムを記録した記憶媒体であって、 (2−1)縮小後の画像の算出対象の画素の濃度データ
を算出するのに用いる原画像の算出対象画素区画を画像
の縮小率に応じて決める工程と、 (2−2)前記(2−1)の工程で決めた原画像の算出
対象画素区画内の中心位置の画素(中心画素)以外の画
素から、前記中心画素に対して濃度データの値と距離と
が近い画素を選ぶ工程と、 (2−3)前記(2−2)の工程で選んだ画素及び前記
中心画素の各濃度データの平均値を前記縮小後の画像の
算出対象の画素の濃度データとする工程と、 からなる工程で縮小後の画像の各画素の濃度データを求
めることで原画像を縮小した縮小後の画像を得る処理を
コンピュータに実行させるためのプログラムを記録した
記憶媒体。
6. A storage medium storing a program for causing a computer to execute a process of reducing a digital original image to obtain a reduced image, wherein (2-1) a calculation target of the reduced image is calculated. A step of determining a pixel section to be calculated of the original image used to calculate the density data of the pixel in accordance with the reduction ratio of the image; and (2-2) a calculation target of the original image determined in the step (2-1). A step of selecting, from pixels other than the pixel at the center position (center pixel) in the pixel section, a pixel having a value close to the value of density data and a distance from the center pixel, (2-3) Using the average value of the respective density data of the pixel selected in the step and the center pixel as the density data of the pixel to be calculated for the reduced image, and calculating the density data of each pixel of the reduced image in the step of Reduced image obtained by reducing the original image Storage medium storing a program for executing obtaining processing to the computer.
JP9110875A 1997-04-28 1997-04-28 Image reducing method and storage medium recording program Pending JPH10302055A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP9110875A JPH10302055A (en) 1997-04-28 1997-04-28 Image reducing method and storage medium recording program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP9110875A JPH10302055A (en) 1997-04-28 1997-04-28 Image reducing method and storage medium recording program

Publications (1)

Publication Number Publication Date
JPH10302055A true JPH10302055A (en) 1998-11-13

Family

ID=14546921

Family Applications (1)

Application Number Title Priority Date Filing Date
JP9110875A Pending JPH10302055A (en) 1997-04-28 1997-04-28 Image reducing method and storage medium recording program

Country Status (1)

Country Link
JP (1) JPH10302055A (en)

Similar Documents

Publication Publication Date Title
EP2130176B1 (en) Edge mapping using panchromatic pixels
EP2130175B1 (en) Edge mapping incorporating panchromatic pixels
KR101342806B1 (en) Interpolation of panchromatic and color pixels
JP3853034B2 (en) Object boundary determination method and apparatus, and recording medium recording object boundary determination program
JP3207690B2 (en) Image processing device
JPH05227425A (en) Improvement in automatic image segmentation
JPH1023452A (en) Picture extracting device and its method
JP2010009599A (en) System and method for detecting stable keypoints in picture image using localized scale space properties
JP2012208597A (en) Pattern identification device, pattern identification method and program
JPH1188664A (en) Image-processing unit and record medium recorded with program thereof
JP4460368B2 (en) Image correction apparatus and method, and image correction program
JPH10271326A (en) Image processor
US7463785B2 (en) Image processing system
JP2005339535A (en) Calculation of dissimilarity measure
JPH10302055A (en) Image reducing method and storage medium recording program
US20090041331A1 (en) Recursive image filtering
US5825364A (en) System and method for constructing a three dimensional model from two dimensional images using poissan probability
JP3483426B2 (en) Image reduction method and storage medium storing program
JP3318248B2 (en) Image quality improvement device and recording medium
JP2005004470A (en) Image color subtraction apparatus, image color subtraction method and image color subtraction program
JP3452460B2 (en) Image reduction method and apparatus, and storage medium storing program
JPH08272960A (en) Filtering processing method for image
JP2796900B2 (en) Image interpolation device
JP3297964B2 (en) Image processing method and apparatus
JP4306333B2 (en) Computer-readable information recording medium recording object detection program