JPH0244432B2 - - Google Patents
Info
- Publication number
- JPH0244432B2 JPH0244432B2 JP60038871A JP3887185A JPH0244432B2 JP H0244432 B2 JPH0244432 B2 JP H0244432B2 JP 60038871 A JP60038871 A JP 60038871A JP 3887185 A JP3887185 A JP 3887185A JP H0244432 B2 JPH0244432 B2 JP H0244432B2
- Authority
- JP
- Japan
- Prior art keywords
- pixel
- converted
- satisfied
- original
- pixels
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Lifetime
Links
Landscapes
- Image Processing (AREA)
- Editing Of Facsimile Originals (AREA)
Description
【発明の詳細な説明】
(産業上の利用分野)
本発明は、白黒2値で表現されている画素にお
いて、画品質劣化の少ない画像の縮小変換法に関
するものである。DETAILED DESCRIPTION OF THE INVENTION (Field of Industrial Application) The present invention relates to an image reduction conversion method with little deterioration in image quality in pixels expressed in black and white binary.
(従来の技術)
従来の2値画像の縮小変換に対しては、OPC
(Ordinal Processing Conversion)法、SPC
(Selective Processing Conversion)法、(両者
とも画像電子学会第7回全国大会予稿集、予稿No.
10、昭和50.5.19)や領域判別法(信学技報
PRL81−92、昭和57.2.19)などが発表されてい
る
OPC法は原画像の画素(原画素)を順次取出
して変換画像の画素(変換画素)に置き換える方
法であり、SPC法は変換画素を原画上における最
も近い原画素で置き換える方法である。(Conventional technology) For conventional reduction conversion of binary images, OPC
(Ordinal Processing Conversion) method, SPC
(Selective Processing Conversion) method, (both published in Proceedings of the 7th National Conference of the Institute of Image Electronics Engineers, Proceedings No.
10, May 19, 1975) and area discrimination method (IEICE Technical Report
PRL81-92, February 19, 1982), etc. have been announced.The OPC method is a method that sequentially extracts pixels of the original image (original pixels) and replaces them with pixels of the converted image (converted pixels), and the SPC method extracts the pixels of the original image (original pixels) and replaces them with the pixels of the converted image (converted pixels). This is a method of replacing the pixel with the closest original pixel on the original image.
また、領域判別法では、変換画素に最近傍の4
個の原画素が変換画素位置に投影する平均濃度を
算出し、闘値処理をして変換画素の値とする方法
である。 In addition, in the area discrimination method, the nearest 4
In this method, the average density projected by each original pixel onto the converted pixel position is calculated, and threshold processing is performed to obtain the value of the converted pixel.
(発明が解決しようとする問題点)
これらの変換法では、変換画素位置に近い方か
ら順に最多でも4個の原画素を選択し、それらの
値もしくは濃度を求める論理演算により変換画素
の値を決定している。(Problems to be Solved by the Invention) In these conversion methods, a maximum of four original pixels are selected in order from the one closest to the converted pixel position, and the value of the converted pixel is calculated by a logical operation that calculates their value or density. It has been decided.
このため、原画像上に黒あるいは白の線があ
り、それらの線が、変換画素位置に最も近い画素
でない場合や、それらの線が変換画素位置に投影
する平均濃度を闘値処理した結果が線の値と一致
しない場合には、変換画像で該当する線が消失し
てしまうことがあつた。 Therefore, if there are black or white lines on the original image and those lines are not the closest pixels to the converted pixel position, or the result of threshold processing of the average density projected by those lines to the converted pixel position is If the value of the line did not match, the corresponding line would sometimes disappear in the converted image.
このため、これらの変換法では黒の線が消失す
るための切れ、かすれが、白の線が消失するため
のつぶれなどを生じ、画品質が劣化する欠点があ
つた。 For this reason, these conversion methods have the disadvantage that the black lines disappear, causing cuts and blurring, and the white lines disappear, causing blurring, resulting in deterioration of image quality.
また、黒の線が消失するために生じる切れ、か
すれなどの画品質劣化を防ぐために、黒の線が変
換画像に最も近い位置でない場合においても、変
換画素の値を黒とさせる方法も考えられる。 In addition, in order to prevent image quality deterioration such as cuts and blurring caused by the disappearance of the black line, it is possible to consider a method in which the value of the converted pixel is set to black even when the black line is not at the closest position to the converted image. .
しかし、この方法では、例えば線幅が1画素の
線の時に、その線を挟む形で位置する2つの変換
画素がどちらも黒となることが発生し、その結
果、変換画像上の線幅の方が原画像上の線幅より
太くなつたり、つぶれが発生して画品質劣化が生
じる欠点があつた。 However, with this method, for example, when the line width is 1 pixel, two converted pixels located on both sides of the line may both become black, and as a result, the line width on the converted image may change. This has the disadvantage that the line width becomes thicker than the line width on the original image, and the image quality deteriorates due to collapse.
発明の構成
(問題点を解決するための手段)
本発明は、これらの欠点を解決するために、原
画像上の細線の中で消失する恐れのある細線を識
別し、その細線を消失させることなく変換画像上
へ保存して画品質の劣化を防いだものである。従
来法では、黒い画素を優先して残す方法が提案さ
れていたが、黒及び白の細い線を判定し白い細線
と黒い細線の両方を保存するものは無い。白い細
線と黒い細線の両方を保存することにより、き
れ、かすれ、およびつぶれを防止して、良い品質
の変換画を得るようにしたものである。Structure of the Invention (Means for Solving the Problems) In order to solve these drawbacks, the present invention identifies a thin line that is likely to disappear among the thin lines on the original image, and causes the thin line to disappear. This method prevents deterioration of image quality by saving the converted image on the converted image. Conventional methods have proposed methods that give priority to black pixels and preserve them, but there is no method that determines black and white thin lines and preserves both white and black thin lines. By preserving both the white thin line and the black thin line, cutting, blurring, and blurring can be prevented, and a converted image of good quality can be obtained.
(作用)
このようにすれば、原画像上に存在する線の中
で縮小変換処理時に消失する恐れのある線を識別
し、その線を消失することなく変換画像上へ保存
することが可能であるから、画品質劣化の少ない
変換画像を得ることができる。(Function) In this way, it is possible to identify lines that are likely to disappear during reduction conversion processing among the lines that exist on the original image, and to save the lines on the converted image without disappearing. Therefore, a converted image with less image quality deterioration can be obtained.
(実施例)
第1図は、本発明の原理および参照画素を説明
するための図であり、原画素と縮小変換画素の配
置図を示しており、また、水平方向の変換比率
B/A=3/5の例について表している。ここ
で、P(m,n)、P(m+1,n)、P(m+2,
n)、P(m,n+1)、P(m+1,n+1)、P
(m+2,n+1)の〇,◎は原画素をQ(k,
l)Q(k+1,l)のXは変換画素を表してい
る。また、最短距離の関係にある原画素どおしを
実線で結んで表示しており、原画素間の中心線を
一点鎖線で表示している。第1図では原画素間の
距離を1と正規化しており、原画素と一点鎖線の
距離は第1図に示すように1/2で表示される。
このとき、変換画素間の距離A/B(この場合
5/3)で表される。また、〜は領域を表す
番号である。〜の領域は一点鎖線で区切られ
ている。また、第1図において斜線は、P(m+
1,n)とP(m+1,n+1)が黒である場合
に、変換画素へ黒の値が代入される領域を示して
いる。(Example) FIG. 1 is a diagram for explaining the principle of the present invention and reference pixels, and shows the arrangement of original pixels and reduced conversion pixels, and also shows the horizontal conversion ratio B/A= An example of 3/5 is shown. Here, P(m, n), P(m+1, n), P(m+2,
n), P (m, n+1), P (m+1, n+1), P
(m+2, n+1) ○, ◎ represent the original pixel Q(k,
l) X in Q(k+1,l) represents a converted pixel. Further, the original pixels having the shortest distance are shown connected by a solid line, and the center line between the original pixels is shown by a dashed line. In FIG. 1, the distance between the original pixels is normalized to 1, and the distance between the original pixel and the dashed dotted line is displayed as 1/2 as shown in FIG.
At this time, the distance between the converted pixels is expressed as A/B (5/3 in this case). Moreover, ~ is a number representing an area. The regions of ~ are delimited by dashed lines. In addition, in FIG. 1, the diagonal line indicates P(m+
1, n) and P(m+1, n+1) are black, the area in which a black value is assigned to the converted pixel is shown.
細線の消失を防止するためには、消失の恐れの
ある細線を判別する必要がある。 In order to prevent thin lines from disappearing, it is necessary to identify thin lines that are at risk of disappearing.
第1図で示したように、原画素P(m+1,n)
とP(m+1,n+1)が黒で同色であり、P
(m,n)、P(m+2,n),P(m,n+1)、P
(m+2,n+1)がP(m+1,n)の反対色の
白であるとすると、従来の変換法では変換画素位
置に最も近い原画素(第1図の場合は、Q(k,
l)に対してP(m,n)、Q(k+1,l)に対
してP(m+2,n)である)の値が最も重み付
けられて変換画素の値を決定しているため、Q
(k,l)、Q(k+1,l)ともP(m+1,n)
は反対色の白が代入されて、P(m+1,n)と
P(m+1,n+1)の黒い線が消失してしまう。 As shown in Figure 1, original pixel P(m+1,n)
and P(m+1,n+1) are black and have the same color, and P
(m, n), P (m+2, n), P (m, n+1), P
Assuming that (m+2, n+1) is white, which is the opposite color of P(m+1, n), in the conventional conversion method, the original pixel closest to the converted pixel position (in the case of Figure 1, Q(k,
Since the value of P(m,n) for l) and P(m+2,n) for Q(k+1,l) is the most weighted to determine the value of the converted pixel, Q
(k,l), Q(k+1,l) and P(m+1,n)
is substituted with the opposite color, white, and the black lines of P(m+1, n) and P(m+1, n+1) disappear.
本発明では、変換画素に最も近い原画素を始点
として変換画素位置へ近づく向きの水平方向で2
個先の原画素を参照画像に加えて消失の恐れのあ
る細線を判定する。第1図の場合、Q(k,l)
に対し上記の参照画素はP(m+2,n)であり、
Q(k+1,l)に対してはP(m,n)である。 In the present invention, the original pixel closest to the converted pixel is the starting point, and the horizontal direction approaches the converted pixel position.
The individual original pixels are added to the reference image to determine thin lines that may disappear. In the case of Figure 1, Q(k,l)
On the other hand, the above reference pixel is P(m+2,n),
For Q(k+1,l), it is P(m,n).
上記の参照画素を加えた細線の判別法の具体例
を以下に示す。第1図の領域(1)に位置するQ(k,
l)の値を決定する場合、参照画素として上記P
(m+2,n)に加えてP(m,n)、P(m+1,
n)、P(m+1,n+1)を用いて、
P(m,n)=P(m+2,2)
≠P(m+1,n)=P(m+2,n+1)
…(1)
を満足するときに消失する恐れのある細線が存在
すると判断してQ(k,l)にP(m+1,n)の
値を代入させる。もし、(1)式で満足しないときに
は、Q(k,l)に従来の変換法で決定される値
(例えば、SPC法では最短距離の原画素の値)を
代入する。なお、(1)式ではP(m,n+1)とP
(m+2,n+1)の値を参照していない。これ
は、垂直の細線P(m+1,n)−P(m+1,n
+1)と水平の細線P(m,n+1)−P(m+1,
n+1)−P(m+2,n+1)が存在している場
合にも、垂直の細線P(m+1,n)−P(m+1,
n+1)のみが存在する場合と同じくQ(k,l)
にP(m+1,n)の値を代入するためである。
すなわち、水平方向と垂直方向の細線が直交して
いる場合においても、細線が切れるのを防止する
ために、P(m,n+1)とP(m+2,n+1)
の値を参照せずに細線が存在するか否かを判断す
る。以上の処理により、細線の消失を防止するこ
とが可能である。第1図の例では、着目する変換
画素Q(k,l)の水平・垂直方向の位置(x,
y)が領域1の場合、すなわち、m≦x<m+
1/2かつn≦y<n+1/2であるときについ
て説明している。 A specific example of the thin line discrimination method in which the above reference pixels are added is shown below. Q(k,
l), use the above P as a reference pixel.
In addition to (m+2, n), P(m, n), P(m+1,
Using P(m+1,n+1), P(m,n)=P(m+2,2) ≠P(m+1,n)=P(m+2,n+1)
...When (1) is satisfied, it is determined that there is a thin line that may disappear, and the value of P(m+1,n) is substituted for Q(k,l). If equation (1) is not satisfied, a value determined by a conventional conversion method (for example, the value of the shortest distance original pixel in the SPC method) is substituted for Q(k,l). In addition, in equation (1), P(m, n+1) and P
The value of (m+2, n+1) is not referenced. This is the vertical thin line P(m+1,n)-P(m+1,n
+1) and the horizontal thin line P(m, n+1)-P(m+1,
n+1)-P(m+2,n+1) also exists, the vertical thin line P(m+1,n)-P(m+1,
As in the case where only n+1) exists, Q(k,l)
This is to assign the value of P(m+1,n) to .
In other words, even if the horizontal and vertical thin lines are perpendicular, P(m, n+1) and P(m+2, n+1) are used to prevent the thin lines from being cut.
Determine whether a thin line exists without referring to the value of . Through the above processing, it is possible to prevent thin lines from disappearing. In the example of FIG. 1, the horizontal and vertical position (x,
y) is in region 1, that is, m≦x<m+
The case where 1/2 and n≦y<n+1/2 is satisfied is explained.
同様にして、位置(x,y)が領域の場合す
なわち、m+1/2≦x<m+1かつn≦y<n
+1/2であるときにはP(m+1,n)=P(m
−1,n)≠P(m,n)=P(m,n+1)を用
い、この条件式を満足するならば細線が存在する
として着目する変換画素(Q)=P(m,n)と
し、また、位置(x,y)が領域の場合、すな
わち、m≦x<m+1/2かつn+1/2≦y<
n+1であるときには、P(m,n+1)=P(m
+2,n+1)≠P(m+1,n+1)=P(m+
1,n)を用い、この条件が満足するならば細線
が存在するとして着目する変換画素(Q)P(m
+1,n+1)とし、さらに、位置(x,y)が
領域の場合、すなわち、m+1/2≦x<m+
1かつn+1/2≦y<n+1であるときには、
P(m+1,n+1)=P(m−1,n+1)≠P
(m,n+1)=P(m,n)を用い、この条件式
を満足するならば細線が存在するとして着目する
変換画素(Q)=P(m,n+1)とすることによ
り、それぞれ消失する恐れのある細線を判別し、
細線の消失を防止することが可能である。 Similarly, if the position (x, y) is a region, m+1/2≦x<m+1 and n≦y<n
+1/2, P(m+1,n)=P(m
-1, n) ≠ P (m, n) = P (m, n + 1), and if this conditional expression is satisfied, a thin line exists, and the converted pixel of interest (Q) = P (m, n). , and when the position (x, y) is a region, that is, m≦x<m+1/2 and n+1/2≦y<
When n+1, P(m, n+1)=P(m
+2, n+1)≠P(m+1,n+1)=P(m+
1, n), and if this condition is satisfied, a thin line exists, and the converted pixel (Q)P(m
+1, n+1), and if the position (x, y) is a region, that is, m+1/2≦x<m+
1 and n+1/2≦y<n+1,
P(m+1,n+1)=P(m-1,n+1)≠P
Using (m, n+1) = P (m, n), if this conditional expression is satisfied, a thin line exists, and by setting the converted pixel of interest (Q) = P (m, n + 1), each disappears. Identify possible thin lines,
It is possible to prevent thin lines from disappearing.
第3図は上記に述べた細線の検出および細線の
保存を行う動作のフローチヤートを示したもので
ある。 FIG. 3 shows a flowchart of the above-described thin line detection and thin line storage operations.
以上、水平方向の縮小変換時に垂直の線を保存
する変換法について設明したが、垂直方向の縮小
変換についても同様の方法を用いることにより、
水平の線を保存することが可能である。 Above, we have established a conversion method that preserves vertical lines during horizontal reduction conversion, but by using the same method for vertical reduction conversion,
It is possible to preserve horizontal lines.
第2図は本発明の構成を示す一実施例のブロツ
ク図であり、1は変換画素の副走査カウンタ、2
は変換画素の主走査カウンタ、3及び4はメモリ
で、それぞれ変換画素の副走査方向及び主走査方
向位置情報を与え、5は領域判定部で、変換画素
位置を示す副及び主走査カウンタ1及び2の出力
を入力として変換画素が位置する領域の種別を出
力し、6及び7はそれぞれ原画素副走査カウンタ
及び原画素主走査カウンタで、原画素位置情報を
示すメモリ3及び4の出力を基にして副走査方向
及び主走査方向の原画素位置を計数し、8及び9
は参照する原画素のラインメモリで、#1〜#k
によりラインメモリ群を構成し、10は変換画素
決定論理部で、領域と複数の原画素とから変換画
素を決定させるための論理演算を実行することに
より、または、論理演算結果を記憶させてある記
憶装置を読出することにより変換画素の値を出力
する。 FIG. 2 is a block diagram of an embodiment showing the configuration of the present invention, in which 1 is a sub-scanning counter of a converted pixel, 2 is a sub-scanning counter of a converted pixel;
is a main scanning counter of the converted pixel; 3 and 4 are memories, which give position information of the converted pixel in the sub-scanning direction and the main scanning direction, respectively; 5 is an area determining unit, which has sub- and main-scanning counters 1 and 4 indicating the converted pixel position; 2 outputs the type of area where the converted pixel is located, and 6 and 7 are an original pixel sub-scanning counter and an original pixel main scanning counter, respectively, based on the outputs of memories 3 and 4 indicating the original pixel position information. count the original pixel positions in the sub-scanning direction and the main scanning direction, and
is the line memory of original pixels to refer to, #1 to #k
10 constitutes a line memory group, and 10 is a conversion pixel determination logic unit that executes a logical operation to determine a converted pixel from an area and a plurality of original pixels, or stores the result of a logical operation. The value of the converted pixel is output by reading the storage device.
縮小変換処理は、例えば、ラスター走査等のよ
うな一定の決まりに従つて順に変換画素の値を決
定し、それを繰返し行うことにより変換画素を作
成する。 In the reduction conversion process, values of converted pixels are sequentially determined according to a fixed rule such as raster scanning, and converted pixels are created by repeating this process.
最初に、着目変換画素の副走査方向及び主走査
方向の位置を、それぞれ変換画素の副走査カウン
タ1及び主走査カウンタ2により計数する。 First, the positions of the converted pixel of interest in the sub-scanning direction and the main scanning direction are counted by the sub-scanning counter 1 and the main-scanning counter 2 of the converted pixel, respectively.
次にその変換画素に対応する原画素、例えば変
換画素位置に最も近い原画素の位置を決定する。 Next, the position of the original pixel corresponding to the converted pixel, for example, the original pixel closest to the converted pixel position, is determined.
メモリ3及びメモリ4は着目変換画素に対応す
る原画素の位置情報、例えば、前変換画素と着目
変換画素それぞれに対応する原画素の位置の差分
値等を記憶し、原画素副走査カウンタ6及び原画
素主走査カウンタ7と共に変換画素に対応する原
画素位置を計数する。 The memories 3 and 4 store positional information of the original pixel corresponding to the converted pixel of interest, for example, the difference value between the position of the original pixel corresponding to the previous converted pixel and the converted pixel of interest, and store the original pixel sub-scanning counter 6 and Together with the original pixel main scanning counter 7, the original pixel positions corresponding to the converted pixels are counted.
ラインメモリ8及び9は、指定された原画素を
含み複数の原画素を参照画素として出力する。一
方、領域判定部5により変換画素位置から保存す
べき線と、その保存条件とを示す領域を判定す
る。 The line memories 8 and 9 output a plurality of original pixels including the specified original pixel as reference pixels. On the other hand, the area determination unit 5 determines an area indicating a line to be saved and its storage condition from the converted pixel position.
最後に、変換画素決定論理部10において、領
域と参照画素から線を判別する条件式を満足する
か否かを調べ、満足する場合には、線が存在する
として、その線の値を変換画素へ代入する。 Finally, the conversion pixel determination logic unit 10 checks whether the conditional expression for determining a line is satisfied based on the area and the reference pixel, and if it is satisfied, it is assumed that a line exists and the value of the line is converted to Assign to .
満足しない場合には、予め定義した論理演算法
に基づいて変換画素の値を決定する。簡単な論理
演算法の一例としては、前述のSPC法が挙げられ
る。 If not satisfied, the value of the converted pixel is determined based on a predefined logical operation method. An example of a simple logical operation method is the above-mentioned SPC method.
次に、具体的な処理例について以下にのべる。 Next, a specific processing example will be described below.
(a) 変換画素の副走査カウンタ1および主走査カ
ウンタ2、メモリ3および4、原画素の副走査
カウンタ6および主走査カウンタ7の関係
原画を主走査方向2000画素×副走査方向2000
画素の大きさとし、原画を主走査・副走査方向
ともに変換比率α=1/4で変換し、主走査方
向500画素×副素査方向500画素の大きさの変換
画を作成する場合を例にとつて説明する。(a) Relationship between sub-scanning counter 1 and main-scanning counter 2 of converted pixels, memories 3 and 4, and sub-scanning counter 6 and main-scanning counter 7 of original pixels Original image is divided into 2000 pixels in the main scanning direction x 2000 pixels in the sub-scanning direction
As an example, assume that the original image is converted with a conversion ratio α = 1/4 in both the main scanning and sub-scanning directions, and a converted image with a size of 500 pixels in the main scanning direction x 500 pixels in the sub-scanning direction is created. Let me explain.
変換画素副走査カウンタ1および変換画素主
走査カウンタ2により変換画素の副・主走査方
向の位置を計数する。変換画素の副・主走査方
向の位置をそれぞれj′,i′と表すと、変換画素
副走査カウンタ1および変換画素主走査カウン
タ2の出力はj′,i′である。すなわち、(i′,j′)
=(1,1),(2,1),(3,1),…,(500,
500)のように出力される。 A converted pixel sub-scanning counter 1 and a converted pixel main-scanning counter 2 count the positions of converted pixels in the sub- and main-scanning directions. If the positions of the converted pixel in the sub- and main-scanning directions are expressed as j' and i', respectively, the outputs of the converted pixel sub-scanning counter 1 and the converted pixel main-scanning counter 2 are j' and i'. That is, (i′, j′)
=(1,1),(2,1),(3,1),...,(500,
500) is output.
メモリ3及び4は、変換画素を原画上に写像
したときに対応する原画素を与えるものであ
る。メモリ3及び4の中に記憶してある情報
は、前変換画素と着目変換画素それぞれに対応
する原画素の位置の差分値である。この差分値
は変換比率α=1/4の場合4である。j′が増
えるたびにメモリ3から差分値4が、またi′が
増えるたびにメモリ4から差分値4が出力され
る。 Memories 3 and 4 provide corresponding original pixels when the converted pixels are mapped onto the original image. The information stored in the memories 3 and 4 is the difference value between the positions of the original pixels corresponding to the previous conversion pixel and the conversion pixel of interest. This difference value is 4 when the conversion ratio α=1/4. A difference value 4 is output from the memory 3 each time j' increases, and a difference value 4 is output from the memory 4 each time i' increases.
原画素副走査カウンタ6及び原画素主走査カ
ウンタ7より原画素の副・主走査方向の位置を
計数する。原画素の副・主走査方向の位置をそ
れぞれj,iと表わすと、原画素副走査カウン
タ6および原画素主走査カウンタ7の出力はj
とiである。変換比率α=1/4で変換すると
きの原画素の副・主走査方向の位置は、(i,
j)=(4,1),(8,1),(12,1),…,
(2000,2000)である。メモリ3および4から
出力される差分値4により、原画素副走査カウ
ンタ6および原画素主走査カウンタ7で(i,
j)=(4,1),(8,1),(12,1),…,
(2000,2000)と計数することができる。この
原画素の位置情報に基づいて、細線の判別に必
要な原画素を指定し該当する原画素を読み出
す。 The position of the original pixel in the sub- and main-scanning directions is counted by the original pixel sub-scanning counter 6 and the original pixel main-scanning counter 7. If the positions of the original pixel in the sub- and main-scanning directions are expressed as j and i, respectively, the outputs of the original pixel sub-scanning counter 6 and the original pixel main-scanning counter 7 are j.
and i. The position of the original pixel in the sub- and main-scanning directions when converting at the conversion ratio α=1/4 is (i,
j)=(4,1),(8,1),(12,1),...,
(2000, 2000). Based on the difference value 4 output from the memories 3 and 4, the original pixel sub-scanning counter 6 and the original pixel main-scanning counter 7 calculate (i,
j)=(4,1),(8,1),(12,1),...,
It can be counted as (2000, 2000). Based on the position information of this original pixel, the original pixel required for thin line discrimination is designated and the corresponding original pixel is read out.
(b) 領域判定部5の動作
領域判定部5は、変換画素が位置する領域の
種別を出力する。この領域は、保存すべき細線
の種類および保存するは否かの条件を示す。領
域の種別を出力するため、変換画素のi′,j′に
対応させて、変換画素が位置する領域の種別を
予め計算しておき、記憶させておく、これによ
りi′,j′を領域定部5の入力として、保存すべ
き細線と保存条件とを示す領域を出力すること
ができる。(b) Operation of area determination unit 5 The area determination unit 5 outputs the type of area in which the converted pixel is located. This area indicates the type of thin line to be saved and the conditions for whether or not to save it. In order to output the area type, the type of the area where the converted pixel is located is calculated in advance and stored in correspondence with the converted pixel i', j'. As an input to the fixed section 5, an area indicating the thin line to be saved and the preservation conditions can be output.
発明の効果
以上説明したように、本発明によれば、原画像
上に存在する線の中で縮小変換処理時に消失する
恐れのある線を識別し、その線を消失することな
く変換画像上へ保存することが可能であるから、
画品質劣化の少ない変換画像を得ることができ
る。Effects of the Invention As explained above, according to the present invention, lines existing on an original image that are likely to disappear during reduction conversion processing are identified, and the lines are transferred onto the converted image without disappearing. Because it is possible to save
A converted image with less deterioration in image quality can be obtained.
また、ハードウエア化が容易であり、高速に画
像の縮小変換を実行することができる。 Further, it is easy to implement in hardware, and image reduction conversion can be performed at high speed.
さらに、線の識別を行う条件式と、その条件式
を満足しない場合の論理演算法とはそれぞれ独立
であるため、優れた論理演算法を採用することに
より、一層画品質劣化の少ない変換画像が得られ
るという利点がある。 Furthermore, since the conditional expression for line identification and the logical operation method used when the conditional expression is not satisfied are independent, by adopting an excellent logical operation method, converted images with even less image quality deterioration can be obtained. There are advantages that can be obtained.
なお、本発明によれば、主走査方向と副走査方
向とで同一倍率は勿論、異なる倍率で縮小変換を
行うことも可能である。 According to the present invention, reduction conversion can be performed not only at the same magnification in the main scanning direction and in the sub-scanning direction, but also at different magnifications.
本発明の応用分野としては、フアクシミリによ
り入力された画像の縮小を行う文書編集システム
や、異なつた分解能を有する画像端末同志の異機
種間通信などを始め、種々の画像処理システムに
応用できる。 The present invention can be applied to various image processing systems, including document editing systems that reduce the size of images input by facsimile, and communication between different types of image terminals having different resolutions.
第1図は本発明の原理及び参照画素を説明する
ための原画素と変換画素の配置図、第2図は本発
明の構成を示す一実施例のブロツク図、第3図は
細線の検出および細線の保存を行うフローチヤー
トである。
1…変換画素副走査カウンタ、2…変換画素の
主走査カウンタ、3,4…メモリ、5…領域判定
部、6…原画素副走査カウンタ、7…原画素主走
査カウンタ、8,9…ラインメモリ、10…変換
画素決定論理部。
FIG. 1 is a layout diagram of original pixels and converted pixels for explaining the principle of the present invention and reference pixels, FIG. 2 is a block diagram of an embodiment showing the configuration of the present invention, and FIG. 3 is a diagram showing the detection of thin lines and This is a flowchart for preserving thin lines. 1... Converted pixel sub-scanning counter, 2... Converted pixel main-scanning counter, 3, 4... Memory, 5... Area determination section, 6... Original pixel sub-scanning counter, 7... Original pixel main-scanning counter, 8, 9... Line Memory, 10...Conversion pixel determination logic unit.
Claims (1)
される原画像を水平方向に1より小さい任意の倍
率で縮小変換させて、 Q(k,l)で表現される変換画像を作成する
縮小変換法において、 Q(k,l)をP(m,n)上へ写像したとき、
原画像の画素間の距離を1として、Q(k,l)
の水平・垂直方向の位置(x,y)を求める第1
の手段と、 その第1の手段により求められた位置(x,
y)が m≦x<m+1/2かつn≦y<n+1/2で
ある第1の領域、m+1/2≦x<m+1かつn
≦y<n+1/2である第2の領域、m≦x<m
+1/2かつn+1/2≦y<n+1である第3
の領域、m+1/2≦x<m+1かつn+1/2
≦y<n+1である第4の領域のどの領域に位置
するかを判定する第2の手段と、 前記第1の領域に位置する時には原画像からP
(m,n),P(m+2,n),P(m+1,n),P
(m+1,n+1)を選択して、条件式 P(m,n)=P(m+2,n) ≠P(m+1,n)=P(m+1,n+1) を満足するかどうかを判定し、満足するならば細
線が存在するとして、Q(k,l)=P(m+1,
n)を出力する第3の手段と、 前記第2の領域に位置する時には原画像からP
(m+1,n),P(m−1,n),P(m,n),P
(m,n+1)を選択して、条件式 P(m+1,n)=P(m−1,n) ≠P(m,n)=P(m,n+1) を満足するかどうかを判定し、満足するならば細
線が存在するとして、Q(k,l)=P(m,n)
を出力する第4の手段と、 前記第3の領域に位置する時には原画像からP
(m,n+1),P(m+2,n+1),P(m+1,
n+1),P(m+1,n)を選択して、条件式 P(m,n+1)=P(m+2,n+1) ≠P(m+1,n+1)=P(m+1,n) を満足するかどうかを判定し、満足するならば細
線が存在するとして、Q(k,l)=P(m+1,
n+1)を出力する第5の手段と、 前記第4の領域に位置する時には原画像からP
(m+1,n+1),P(m−1,n+1),P(m,
n+1),P(m,n)を選択して、条件式 P(m+1,n+1)=P(m−1,n+1) ≠P(m,n+1)=P(m,n) を満足するかどうかを判定し、満足するならば細
線が存在するとして、Q(k,l)=P(m,n+
1)を出力する第6の手段と、 前記全ての条件式を満足しない場合には P(m,n),P(m+1,n),P(m,n+
1),P(m+1,n+1)よりQ(k,l)の値
を決定する第7の手段とを備え、 前記第3,第4,第5,第6及び第7の手段に
よりQ(k,l)を決定する処理を繰り返して変
換画像を作成することを特徴とする画像の縮小変
換法。 2 線の判定及び保存方法を垂直軸上にも適用
し、水平方向及び垂直方向に縮小する際に生じる
水平方向及び垂直方向の細線消失を防ぐことを特
徴とする特許請求の範囲第1項記載の画像の縮小
変換法。[Claims] 1. An original image expressed by a pixel P (m, n) having two values of black and white is reduced and converted in the horizontal direction at an arbitrary magnification smaller than 1, and Q (k, l) is obtained. In the reduction transformation method that creates a transformed image expressed as , when Q(k,l) is mapped onto P(m,n),
Letting the distance between pixels of the original image be 1, Q(k,l)
The first step is to find the horizontal and vertical position (x, y) of
and the position (x,
y) is m≦x<m+1/2 and n≦y<n+1/2, m+1/2≦x<m+1 and n
a second region where ≦y<n+1/2, m≦x<m
+1/2 and n+1/2≦y<n+1, the third
area, m+1/2≦x<m+1 and n+1/2
a second means for determining which region of the fourth region where y<n+1 is located, and when the region is located in the first region, P from the original image
(m, n), P (m+2, n), P (m+1, n), P
Select (m+1, n+1) and determine whether the conditional expression P(m, n)=P(m+2,n) ≠P(m+1,n)=P(m+1,n+1) is satisfied. Then, assuming that a thin line exists, Q(k,l)=P(m+1,
a third means for outputting P from the original image when located in the second area;
(m+1,n),P(m-1,n),P(m,n),P
(m, n+1) and determine whether the conditional expression P(m+1, n)=P(m-1, n) ≠P(m, n)=P(m, n+1) is satisfied, If satisfied, assuming that a thin line exists, Q(k,l)=P(m,n)
a fourth means for outputting P from the original image when located in the third area;
(m, n+1), P(m+2, n+1), P(m+1,
n+1), P(m+1, n) and determine whether the conditional expression P(m, n+1) = P(m+2, n+1) ≠ P(m+1, n+1) = P(m+1, n) is satisfied. If satisfied, assuming that a thin line exists, Q(k,l)=P(m+1,
a fifth means for outputting P from the original image when located in the fourth area;
(m+1, n+1), P(m-1, n+1), P(m,
n+1), P(m, n) and whether the conditional expression P(m+1, n+1)=P(m-1, n+1) ≠P(m, n+1)=P(m, n) is satisfied. If it is satisfied, a thin line exists, and Q(k,l)=P(m,n+
1), and if all the above conditional expressions are not satisfied, P(m,n), P(m+1,n), P(m,n+
1), seventh means for determining the value of Q(k,l) from P(m+1,n+1), and the third, fourth, fifth, sixth and seventh means determine the value of Q(k,l). , l) to create a converted image by repeating the process of determining . 2. The line determination and storage method is also applied on the vertical axis to prevent thin lines from disappearing in the horizontal and vertical directions that occur when scaling down in the horizontal and vertical directions. image reduction method.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP60038871A JPS61199376A (en) | 1985-03-01 | 1985-03-01 | Method for image contracting and converting |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP60038871A JPS61199376A (en) | 1985-03-01 | 1985-03-01 | Method for image contracting and converting |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS61199376A JPS61199376A (en) | 1986-09-03 |
| JPH0244432B2 true JPH0244432B2 (en) | 1990-10-03 |
Family
ID=12537272
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP60038871A Granted JPS61199376A (en) | 1985-03-01 | 1985-03-01 | Method for image contracting and converting |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS61199376A (en) |
-
1985
- 1985-03-01 JP JP60038871A patent/JPS61199376A/en active Granted
Also Published As
| Publication number | Publication date |
|---|---|
| JPS61199376A (en) | 1986-09-03 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP4271804B2 (en) | Method for selecting colors assigned to pixels, and method for encoding and storing images | |
| EP0650287B1 (en) | Image processing method and apparatus | |
| US5280367A (en) | Automatic separation of text from background in scanned images of complex documents | |
| JP2004318832A (en) | A Method for Reducing the Number of Compositing Operations Performed in a Pixel Sequential Drawing System | |
| JPH0750752A (en) | Method and device for converting picture density | |
| US5054099A (en) | Binary image reduction method | |
| KR920008904B1 (en) | Picture decreasing method and device for fax | |
| JPH0334677A (en) | Picture reduction system | |
| US7365873B2 (en) | Image processing apparatus, image processing method, and storage medium | |
| JP2000175208A (en) | Interpolation processing apparatus and recording medium recording interpolation processing program | |
| JPH0244432B2 (en) | ||
| US20020024524A1 (en) | Image processing apparatus, control method thereof, and image processing method | |
| JP2525768B2 (en) | Image reduction conversion method | |
| US6891968B2 (en) | Method to upscale single-pixel wide text without loss of image sharpness | |
| JP3386203B2 (en) | Image information processing method and image information processing apparatus | |
| US6778301B2 (en) | Fast preview of CCITT-compressed documents | |
| JPH0257753B2 (en) | ||
| JP3006973B2 (en) | Image processing apparatus and method | |
| JP2511006B2 (en) | Color image data interpolation method | |
| JP2845376B2 (en) | Pixel density converter | |
| JPH0955851A (en) | Facsimile equipment | |
| JPS6118388B2 (en) | ||
| JP3875465B2 (en) | Image reduction method, image processing apparatus and image processing apparatus control method | |
| JPH07123246A (en) | Binary image reduction device | |
| JPH07182503A (en) | Image processing method and apparatus |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| EXPY | Cancellation because of completion of term |