JPH02199584A - Method of image contraction - Google Patents

Method of image contraction

Info

Publication number
JPH02199584A
JPH02199584A JP1017703A JP1770389A JPH02199584A JP H02199584 A JPH02199584 A JP H02199584A JP 1017703 A JP1017703 A JP 1017703A JP 1770389 A JP1770389 A JP 1770389A JP H02199584 A JPH02199584 A JP H02199584A
Authority
JP
Japan
Prior art keywords
pixel
value
data
image
converting
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP1017703A
Other languages
Japanese (ja)
Other versions
JP2636396B2 (en
Inventor
Tadatsugu Ichikawa
市川 忠嗣
Hisato Miyaji
寿人 宮地
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.)
Nippon Telegraph and Telephone Corp
Original Assignee
Nippon Telegraph and Telephone Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nippon Telegraph and Telephone Corp filed Critical Nippon Telegraph and Telephone Corp
Priority to JP1017703A priority Critical patent/JP2636396B2/en
Publication of JPH02199584A publication Critical patent/JPH02199584A/en
Application granted granted Critical
Publication of JP2636396B2 publication Critical patent/JP2636396B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Abstract

PURPOSE:To attain the rapid processing of contraction by using a process for obtaining an added value of reference picture element values determined in accordance with contraction ratios and a process for converting a picture element having digits smaller than the number M of digits required when the added value of the reference picture elements is expressed by a decimal number into the data of N planes expressed by a bit for the contraction. CONSTITUTION:Added values, e.g. a11 to a28, to be inputted to a reference picture element added value memory 4 for calculating the added value of reference picture elements and the data in the 1st line and the 1st byte are inputted to a reference picture element adding means 1. Since the initial reference picture element interval data is '0', the value is shifted to the right by one bit by a shift register 1A, a picture element P112 is moved to the 1st bit position, the P112 is similarly extracted by a mask circuit 1B and added to Q11 by an adder 1C. Similarly, a P113 is extracted and added to a Q11 to end the processing of three reference picture elements. Thus, each three picture elements are processed, the maximum value of the added value is set up to '9' and the necessary number of digits is set up to a value less than M4 only by one.

Description

【発明の詳細な説明】 (産業上の利用分野) この発明は、白黒2値で1画素が1ビットで表現された
ディジタル画像を、多値表示可能な画像出力装置に出力
するために縮小変換する場合、多値画像に変換すること
により画品質劣化の少ない縮小変換画像を得る画像の縮
小変換方法に関するものである。
Detailed Description of the Invention (Industrial Field of Application) This invention performs reduction conversion in order to output a digital image in which one pixel is expressed as one bit in black and white binary to an image output device capable of multi-value display. In this case, the present invention relates to an image reduction conversion method for obtaining a reduction conversion image with less deterioration in image quality by converting it into a multivalued image.

〔従来の技術〕[Conventional technology]

従来、白黒2値で1画素が1ビットで表現されたディジ
タル画像(白黒2値画像)の縮小変換方法としては、最
も簡単な方法には原画像の行および列を変換画像で必要
とする値まで適当に間引く方法が挙げられ、画像をパソ
コンなどのデイスプレィに表示するための縮小変換方法
に採用されている。この方法は処理が簡単であり、簡易
な方法としで、゛例えばワープロなどでレイアウトのみ
を知りたい場合などに使用されている。しかし、文書の
内容を判読する場合には切れやつぶれなどの発生により
著しく画品質が劣化するため適当ではない。一方、白黒
2値画像から白黒2値画像への縮小変換方法として、S
PC法(−像電子学会第7回全国大会予稿集、予稿No
、10、昭和50年)や領域判別法(信学技報RPL8
1−92)などが発表されている。これらの変換方法で
は、黒の細い線が消失するための切れ、白の細い線が消
失するためのつぶれが発生し、画品質が劣化する欠点が
あった。これに対して、これらの欠点を解、決するため
細い線を判定し、これを保存することにより画品質の劣
化を防ぐTP法(信学技報ED84−26、昭和59年
)なども発表されている。この方法でも、切れやつぶれ
がなくなったわけではないため、パソコンのデイスプレ
ィ等の多値表示可能な画像出力装置に出力するための縮
小変換方法としては不十分であった。さらに、切れやつ
ぶれを防ぐ多値表示可能な画像出力装置に出力するため
の縮小変換方法として、変換画像を原画像に写像した時
、着目する変換画素に対する周囲の原画素の値を加算し
て多値データとし、これを変換画素の値とする方法が考
えられている。
Conventionally, the simplest method for reducing and converting digital images (black and white binary images) in which one pixel is represented by one bit in black and white binary values is to change the rows and columns of the original image to the values required in the converted image. One method is to thin out images appropriately, and is used as a reduction conversion method for displaying images on a display such as a personal computer. This method is easy to process, and is used as a simple method when, for example, you only want to know the layout of a word processor. However, when reading the contents of a document, this method is not suitable because the image quality deteriorates significantly due to occurrence of cuts and smearing. On the other hand, as a reduction conversion method from a black and white binary image to a black and white binary image, S
PC method (-Proceedings of the 7th National Conference of the Society of Image Electronics Engineers, Proceedings No.
, 10, 1975) and area discrimination method (IEICE Technical Report RPL8)
1-92) have been published. These conversion methods have the disadvantage that the image quality deteriorates due to breakage caused by the disappearance of thin black lines and blurring caused by the disappearance of thin white lines. In order to resolve these shortcomings, the TP method (IEICE Technical Report ED84-26, 1986), which prevents deterioration of image quality by determining thin lines and storing them, was also announced. ing. Even with this method, cuts and distortions were not eliminated, so it was insufficient as a reduction conversion method for outputting to an image output device capable of multi-value display such as a personal computer display. Furthermore, as a reduction conversion method for outputting to an image output device capable of multi-level display to prevent clipping or collapse, when the converted image is mapped to the original image, the values of the surrounding original pixels to the converted pixel of interest are added. A method has been considered in which multi-valued data is used as the value of the converted pixel.

この方法では、原画像と変換画像の関係が第7図(a)
、(b)に示すような場合、縮小率(垂直方向B/A、
水平方向C/D)から計算によって変換画素の位置およ
び参照画素を求める。第7図に示すように、黒画素を“
°1°′、白画素な°“0°゛として着目する変換画素
の周囲の参照画素の値を加算する。第7図(a)では参
照画素の加算値は、o”、”i°゛、“’2”、’“3
゛。
In this method, the relationship between the original image and the converted image is shown in Figure 7(a).
, in the case shown in (b), the reduction ratio (vertical direction B/A,
The position of the converted pixel and the reference pixel are calculated from the horizontal direction (C/D). As shown in Figure 7, black pixels are
The values of the reference pixels around the conversion pixel of interest are added as °1°', white pixel °"0°". In Fig. 7(a), the added values of the reference pixels are o", "i°". , “'2”, ““3
゛.

” 4 ”の5種類、第7図(b)では°°0゛1°°
  “°2°°  “”3”   ’“4°′  5°
“6″’、  7  、”8”、”9°゛の10種類と
なる。参照画素の加算値に対応、する階調値で表示する
ことにより品質の良い変換画像が得られる。
Five types of “4”, °°0゛1°° in Figure 7(b)
“°2°° “”3” '4°' 5°
There are 10 types: "6"', 7, "8", and "9°". A converted image of good quality can be obtained by displaying the gradation value corresponding to the added value of the reference pixels.

この変換方法では、参照画素の加算値は参照画素数+ル
ベルの多値データとなり、2値データに縮小した場合に
比べてデータ量が増加するという欠点があった。
This conversion method has the drawback that the added value of the reference pixels becomes multivalued data of the number of reference pixels + Lebel, and the amount of data increases compared to the case of reduction to binary data.

この発明は、縮小変換画像を原画像に写像した際、着目
する変換画素を中心として複数の周囲の原画素の値を利
用する′縮小変換画像にお□いて、前述の欠点を解決し
白黒2値画像からデータ量の少ない高品質な多値の縮小
変換画像が、簡単な回路構成で演算の回数が少なく、高
速に得られる画像の縮小変換方法を提供する゛こ°゛と
にある。
This invention solves the above-mentioned drawbacks in the reduced-converted image, which utilizes the values of a plurality of surrounding original pixels around the converted pixel of interest when mapping the reduced-converted image to the original image. The purpose of this invention is to provide an image reduction conversion method that allows high-quality multi-value reduction conversion images with a small amount of data to be obtained from value images at high speed with a simple circuit configuration and a small number of calculations.

〔課題を解決するための手段〕[Means to solve the problem]

この発明にかかる画像の縮小変換方法の請求項(1)記
載の発明は、縮小率に応じて決まる参照画素の値の加算
値を得る過程と、これにより得られた参照画素の加算値
を2進数で表現した時に必要となる桁数Mより少ない1
画素を1ビットで表現したMプレーンのデータに変換す
る過程とからなる。  ゛ また、1画素を1ビットで表現したMプレーンのデータ
に変換する過程が、参照画素の加算値を2進数で表現し
た時に必要となる桁数Mまで加算値の各桁を変換画素の
順・番により決まる1バイト長または1語長データの所
定の位置に取り出すことにより1画素を1ビットで表現
したMプレーンのデータに変換する過程と、該Mプレー
ンのデータをMより少ない1画素を1ビットで表現した
Mプレーンにする論理演算過程とすることもできる。
The invention described in claim (1) of the image reduction conversion method according to the present invention includes a process of obtaining an added value of the reference pixel values determined according to the reduction ratio, and a process of obtaining the added value of the reference pixel values obtained thereby. 1 less than the number of digits M required when expressed in base numbers
It consists of a process of converting pixels into M-plane data expressed in 1 bit.゛Also, the process of converting 1 pixel into M-plane data expressed with 1 bit involves converting each digit of the added value in the order of the converted pixel up to the number M of digits required when the added value of the reference pixel is expressed in binary.・The process of converting 1-byte length or 1-word length data determined by the number to a predetermined position to convert it into M-plane data in which 1 pixel is expressed with 1 bit, and converting the M-plane data into 1 pixel less than M. It can also be a logical operation process to create an M plane expressed in 1 bit.

(作用) この発明においては、従来の多値画像への縮小変換にく
らベデータ量少なくて高品質な変換画像が得られる。
(Operation) According to the present invention, a high-quality converted image can be obtained with a smaller amount of data than conventional reduction conversion to a multivalued image.

また、請求項(2)記載の発明では、請求項(1)記載
の発明と同様に、データ量の少ない高品質な多値の変換
画像か得られ、さらに、より簡単な回路構成で演算の回
数が少なく、高速に変換画素が得られる。
Further, in the invention described in claim (2), similarly to the invention described in claim (1), a high-quality multivalued converted image with a small amount of data can be obtained, and furthermore, the calculation can be performed with a simpler circuit configuration. Converted pixels can be obtained quickly with a small number of times.

〔実施例〕〔Example〕

第1図はこの発明の一実施例を示すブロック図である。 FIG. 1 is a block diagram showing one embodiment of the present invention.

ただし、ここでは説明を簡単にするため水平方向と垂直
方向の縮小率は同じで、B/Aとする。DATAは変換
画像を原画像に写像したときの縮小率対応の参照画素数
、参照画素処理単位および参照画素群間隔データからな
る参照画素の位置データを示し、1はシフトレジスタI
A、マスク回路1Bおよび加算回路1Cからなる参照画
素の値の加算手段、2はシフトレジスタ2A、マスク回
路2Bおよび論理和回路2Cからなる参照画素の加算値
を2進数で表現した時に必要となるビット数Mまで参照
画素の加算値の各ビットを1画素1ビットからなるMプ
レーンデータに変換する手段、3は1画素1ビットから
なる該Mプレーン分のデータをMより少ないMプレーン
分のブタに変換する論理演算手段、4は初期値Oの参照
画素の加算値用メモリ、5は初期値0のMプレーン分デ
ータ用メモリ、6はNブレー2分データ用メモリである
However, here, to simplify the explanation, the reduction ratios in the horizontal direction and the vertical direction are assumed to be the same, which is B/A. DATA indicates the position data of the reference pixel consisting of the number of reference pixels corresponding to the reduction ratio, reference pixel processing unit, and reference pixel group interval data when the converted image is mapped to the original image, and 1 is the shift register I.
A means for adding the value of the reference pixel consisting of a mask circuit 1B and an adder circuit 1C; 2 is necessary when the added value of the reference pixel consisting of a shift register 2A, a mask circuit 2B and an OR circuit 2C is expressed in binary numbers; Means for converting each bit of the added value of reference pixels up to the number of bits M into M plane data consisting of 1 bit per pixel; 4 is a memory for addition values of reference pixels with an initial value of O, 5 is a memory for M-plane data with an initial value of 0, and 6 is a memory for N-plane 2-minute data.

参照画素の位置データのうち、参照画素数は水平方向と
垂直方向の加算の対象となる画素数を示すものであり、
例えば参照画素数3では垂直方向には3ライン分のデー
タが、水平方向には3画素が加算の単位となる。参照画
素数は縮小率により第2図に示す関係で決めればよい。
Among the reference pixel position data, the reference pixel number indicates the number of pixels to be added in the horizontal and vertical directions.
For example, when the number of reference pixels is 3, the unit of addition is three lines of data in the vertical direction and three pixels in the horizontal direction. The number of reference pixels may be determined according to the relationship shown in FIG. 2 depending on the reduction ratio.

参照画素処理単位は参照画素の加算を行う上での処理単
位である。参照画素の加算値をMプレーンの多値データ
に変換する際に、1バイト長単位での処理を行うときは
、参照画素処理単位は縮小率の分母の数字Aとすればよ
い。このとき、変換画素に対応する参照画素の加算値の
個数は、8×(縮小率の分子の数B)となる。1語単位
での処理を行うときは参照画素処理単位はく縮小率の分
母の数字A)X (1語長/8)となる。
The reference pixel processing unit is a processing unit for performing addition of reference pixels. When converting the reference pixel addition value into M-plane multi-value data, when processing is performed in 1-byte length units, the reference pixel processing unit may be the number A in the denominator of the reduction rate. At this time, the number of added values of the reference pixels corresponding to the converted pixels is 8×(the number B of the numerator of the reduction rate). When processing is performed in units of one word, the denominator of the reference pixel processing unit reduction ratio is A)X (one word length/8).

参照画素群間隔データは参照画素の集まり(参照画素群
)の重なりを示すデータであり、縮小率と参照画素が第
2図に示す関係の場合、整数分の1の縮小率では常にO
である。非整数分の1の縮小率では0と−1の値をとり
、縮小率の分子Bで決まる周期での繰り返しとなる。参
照画素の加算にあたり、参照画素群間隔0では新たな参
照画素から加算を開始するが、−1ではひとつ前の参照
画素から加算を開始する。
Reference pixel group spacing data is data that indicates the overlap of a collection of reference pixels (reference pixel group), and when the reduction ratio and reference pixels have the relationship shown in Figure 2, the reduction ratio is always O at a reduction ratio of 1/integer.
It is. At a reduction rate of 1/a non-integer, the values are 0 and -1, and the cycle is repeated at a period determined by the numerator B of the reduction rate. When adding reference pixels, when the reference pixel group interval is 0, addition is started from a new reference pixel, but when it is -1, addition is started from the previous reference pixel.

縮小率が215で1バイト長データで処理する場合につ
いて、この発明による縮小変換方法を説明する。
The reduction conversion method according to the present invention will be described for a case where the reduction ratio is 215 and processing is performed using 1-byte length data.

参照画素と変換画素の位置関係は第7図(b)と同じで
ある。この時、参照画素の位置データとしては、水平方
向と垂直方向の参照画素数は3、参照画素処理単位は5
バイト、参照画素間隔は0、−1を1回毎に繰り返した
値となる。
The positional relationship between the reference pixel and the converted pixel is the same as in FIG. 7(b). At this time, as the position data of the reference pixel, the number of reference pixels in the horizontal and vertical directions is 3, and the reference pixel processing unit is 5.
The byte and reference pixel intervals are values obtained by repeating 0 and -1 each time.

入力データは、第3図に示すように、第7図の左の画素
が右側のビットから収められているものとして以下に説
明する。
The input data will be explained below assuming that the left pixel in FIG. 7 is stored starting from the right bit, as shown in FIG.

第3図のデータでは、P ill + P 112 +
 P 113が変換画素Q+目の参照画素、P 113
 + P114 +2015が変換画素Q、、2の参照
画素、pttaP 117 * P III!lが変換
画素Q、1.の参照画素、Ptea + PL21 +
 P 122が変換画素Q、14の参照画素、P 12
3 + P 124 + P +28が変換画素Q11
5の参照画素、P 125 + P 12B + P1
27が変換画素Q 118の参照画素、P1□8 * 
P 13’l +  P 132が変換画素Q117の
参照画素・P132・PI3’3・P、34が変換画素
Q118の参照画素、P136+P 138 + P 
+37が変換画素Q 121の参照画素、P137・+
 P 138+ P 141が変換画素Q、22の参照
画素、PI42 + P143 + PI44が変換画
素Q123の参照画素、P I’441 145’I 
P +48が変換画素Q124の参照画素、P147 
+ P+4a l P+s+が変換画素Q126の参照
画素、P+s’+ + P182P153が変換画素Q
128の参照画素、P154Pe55+ P+5aが変
換画素Q、27の参照画素、Po5e + Plst 
+ P+saが変換画素Q128の参照画素となる。
In the data in Figure 3, P ill + P 112 +
P 113 is the conversion pixel Q + reference pixel, P 113
+P114 +2015 is the reference pixel of conversion pixel Q,,2, pttaP 117 * P III! l is the converted pixel Q, 1. Reference pixel of Ptea + PL21 +
P 122 is the reference pixel of conversion pixel Q, 14, P 12
3 + P 124 + P + 28 is the converted pixel Q11
5 reference pixels, P 125 + P 12B + P1
27 is the reference pixel of conversion pixel Q 118, P1□8 *
P 13'l + P 132 is the reference pixel of the conversion pixel Q117, P132, PI3'3, P, 34 is the reference pixel of the conversion pixel Q118, P136 + P 138 + P
+37 is the reference pixel of conversion pixel Q 121, P137・+
P 138 + P 141 is the reference pixel of conversion pixel Q, 22, PI42 + P143 + PI44 is the reference pixel of conversion pixel Q123, PI'441 145'I
P+48 is the reference pixel of conversion pixel Q124, P147
+ P+4a l P+s+ is the reference pixel of conversion pixel Q126, P+s'+ + P182P153 is conversion pixel Q
128 reference pixels, P154Pe55+ P+5a is conversion pixel Q, 27 reference pixels, Po5e + Plst
+P+sa becomes the reference pixel for the conversion pixel Q128.

次に第1図の実施例の動作を説明する。Next, the operation of the embodiment shown in FIG. 1 will be explained.

第1に参照画素の加算値を算出する。参照画素の参照画
素の加算値用メモリ4に入れる加算値を説明上all+
 a12+ a13+  a14+  al!+  a
lB+817+  ”  Ia+  821+  82
2+  823+  824+  8 28a 261
  a 271 a 28で表す01ライン1バイト目
のデータを参照画素の加算手段1に入力する。最初は参
照画素間隔データは0である。該値が0のためpHl 
、 PI12PII3の値をallに加算する。この加
算は次の動作により行う。シフトレジスタ1A上の右端
ビットP11!をマスク回路1Bにより1バイト長デタ
として取り出し、加算回路1Cによりallに加算する
。次に、シフトレジスタ1Aで右に1ビットシフトして
P112を第1番目のビット位置に移動し、マスク回路
IB”rP++2を同様に取り出し、加算回路1Cによ
りa1□に加算する。同様に、p+Bを取り出しall
に加算する。これで参照画素数3個分の処理が終る。次
では参照画素群間隔が−1のため、ひとつ前の参照画素
であるP、13とP 114 + P 115の値を上
記と同じ動作によりa12に加算する。次では参照画素
群間隔が0のため、P 116 + P 117 + 
P118の値を上記と同じ動作によりalsに加算する
。次では、参照画素群間隔が−1のため、Pl、8の値
をa14に加算する。これで1バイト目のデータが終る
First, an added value of reference pixels is calculated. For the purpose of explanation, the addition value to be stored in the addition value memory 4 of the reference pixel is all+
a12+ a13+ a14+ al! +a
lB+817+ ” Ia+ 821+ 82
2+ 823+ 824+ 8 28a 261
The data of the first byte of the 01 line represented by a 271 a 28 is input to the addition means 1 of the reference pixel. Initially, the reference pixel interval data is 0. Since the value is 0, pHl
, Add the value of PI12PII3 to all. This addition is performed by the following operation. Rightmost bit P11 on shift register 1A! is taken out as 1-byte length data by the mask circuit 1B, and added to all by the adder circuit 1C. Next, shift register 1A shifts 1 bit to the right to move P112 to the first bit position, similarly takes out mask circuit IB"rP++2, and adds it to a1□ by adder circuit 1C.Similarly, p+B Take out all
Add to. This completes the processing for three reference pixels. Next, since the reference pixel group interval is -1, the values of the previous reference pixels P, 13 and P 114 + P 115 are added to a12 by the same operation as above. Next, since the reference pixel group interval is 0, P 116 + P 117 +
The value of P118 is added to als by the same operation as above. Next, since the reference pixel group interval is -1, the value of Pl, 8 is added to a14. This completes the first byte of data.

2バイト目のデータを参照画素の加算手段1に入力し、
P 121 + P 122をat4にも加算して参照
画素3個分の処理を終る。以下同様に処理を繰り返し、
5バイト目のデータを入力して第1ラインの5バイト分
の参照画素の加算値を得る。
Input the second byte data to the addition means 1 of the reference pixel,
P 121 + P 122 is also added to at4 to complete the processing for three reference pixels. Repeat the process below,
The data of the 5th byte is input to obtain the added value of the 5 bytes of reference pixels on the first line.

上述のように、各バイト目のデータを入力して処理する
ことによりall、a 12+  a lj+ a14
+a IS+   a 16+   a 17+   
a Ia+   a 2++   a 22+   a
 23+824+ a2S+ a2B+ a27+ a
2aについて参照画素処理単位である5バイト1ライン
目の加算値を得ることができる。
As mentioned above, by inputting and processing the data of each byte, all, a 12+ a lj+ a14
+a IS+ a 16+ a 17+
a Ia+ a 2++ a 22+ a
23+824+ a2S+ a2B+ a27+ a
For 2a, the added value of the 5-byte first line, which is the reference pixel processing unit, can be obtained.

引き続いて、同様に2ライン目の5バイト、3ライン目
の5バイトを順次入力し、それまでの参照画素の加算値
に加える。
Subsequently, similarly, the 5 bytes of the second line and the 5 bytes of the third line are sequentially input and added to the added value of the reference pixels up to that point.

このようにして、第3図に示す5バイト3ライン分のデ
ータより第4図に示すような2×8個の参照画素の加算
値を得る。
In this way, an added value of 2×8 reference pixels as shown in FIG. 4 is obtained from the 5 bytes and 3 lines of data shown in FIG. 3.

第2に参照画素の加算値を2進数で表現した各桁毎に取
り出してプレーンデータに変換する。プレーン数は2進
数で表現した時に必要となる桁数Mまでとする。参照画
素数が3の場合、変換画素の加算値の最大値は9である
のでMは4である。
Second, the added value of the reference pixels is extracted for each digit expressed in binary numbers and converted into plain data. The number of planes is up to M, which is the number of digits required when expressed in binary numbers. When the number of reference pixels is 3, the maximum value of the added value of converted pixels is 9, so M is 4.

参照画素の加算手段1で得た8個2組の該加算値から2
組の1バイト長の4ブレ一ン分データに変換する。この
1バイト長データのメモリを説明上E all E 1
2+ E l’3+ E 14+ E 21+ E 2
2+ E 23E24とする。
2 from the added values of the 2 sets of 8 pixels obtained by the reference pixel addition means 1.
The set is converted into one byte length of four blocks of data. To explain the memory of this 1-byte length data, E all E 1
2+ E l'3+ E 14+ E 21+ E 2
2+ E 23E24.

参照画素の加算値を参照画素の加算値用メモリ4から1
個づつ第1図の加算値をMプレーンデータに変換する手
段2に順次入力する。allの値5の1バイトの2進数
表現” 00000101 ”からシフトレジスタ2A
とマスク回路2Bおよび論理和回路2Cにより以下のよ
うに処理する。allの1桁目“1′′を1バイト長デ
ータの第1番目のビット位置で、マスク回路2Bにより
取り出しEllと論理和をとる。次に、2桁目゛0”を
シフトレジスタ2Aで右に1ビットシフトし、1バイト
長データの第1番目の位置に移動した後、マスク回路2
Bにより取り出し、EI2と論理和をとる。同様に、3
桁目゛1°°を取り出し、E13と論理和を、1桁目”
 o ”を取り出しE14と論理和をとる。
The reference pixel addition value is transferred from reference pixel addition value memory 4 to 1.
The added values shown in FIG. 1 are input one by one to the means 2 for converting them into M-plane data. Shift register 2A from 1-byte binary representation "00000101" of value 5 of all
The following processing is performed by the mask circuit 2B and the OR circuit 2C. The first digit "1'' of all is taken out by the mask circuit 2B at the first bit position of the 1-byte length data and logically ORed with Ell. Next, the second digit "0" is transferred to the right by the shift register 2A. After shifting 1 bit to the first position of 1-byte length data, mask circuit 2
B is taken out and logically summed with EI2. Similarly, 3
Take out the digit ``1°°, OR with E13, the 1st digit''
o'' is taken out and logically summed with E14.

a 12(7)値” o o o o o o t i
 ”は第2番目のビット位置にシフトレジスタ2Aとマ
スク回路2Bで取り出し、論理和回路2CでE l l
+ E 12゜E 13+  E +4と論理和をとる
。同様に、as3は第3番目のビット位置、a14は第
4番目のビット位置、alsは第5番目のビット位置、
a16は第6番目のビット位置、a17は第7番目のビ
ット位置、a□8は第8番目のビット位置に順次取り出
して、第5図(a)に示す各1バイト4プレ一ン分のE
 11+  E 121  E 131  E 14を
得る。821〜82Bについても同様にして同図に示す
E2++ E22+ E23E24を得る。
a 12(7) value” o o o o o o ti
” is taken out at the second bit position by the shift register 2A and mask circuit 2B, and E l l by the OR circuit 2C.
+E 12°E 13+E +4 and logical OR. Similarly, as3 is the third bit position, a14 is the fourth bit position, als is the fifth bit position,
a16 is the sixth bit position, a17 is the seventh bit position, and a□8 is the eighth bit position. E
11+ E 121 E 131 E 14 is obtained. For 821 to 82B, E2++ E22+ E23E24 shown in the figure is obtained in the same manner.

第3に第1図の論理演算手段3でN=2、すなわち2プ
レ一ン分のデータに変換する場合を説明する。2組の1
バイト長2ブレ一ン分データを説明上D all D 
12+ D 21’+ D 22とする。
Thirdly, a case will be explained in which the logic operation means 3 of FIG. 1 converts data into data for N=2, that is, two plays. 1 of 2
D all D
12+D 21'+D 22.

1バイト長4プレ一ン分のデータEll〜E14を論理
演算手段3に入力し、第6図(a)で示す関係で第5図
(b)に示す2ブレ一ン分のデータD I l+ D 
I2を得る。この場合における論理演算手段3は、次式
で示される論理式を実現する構成であればよい。
The data Ell to E14 for 4 blocks of 1 byte length are input to the logical operation means 3, and the data D I l+ for 2 blocks shown in FIG. D
Obtain I2. The logical operation means 3 in this case may have any configuration as long as it realizes the logical formula shown by the following formula.

D nl”’ E nJ+(E n2*  E n3)
D n2” E n4+E n3     nは1or
2   ++++  (1)ただし、十記号は論理和を
、*記号は論理積を−記号は補数を表している。
D nl"' E nJ+(E n2* E n3)
D n2” E n4+E n3 n is 1or
2 +++++ (1) However, the ten symbol represents a logical sum, the * symbol represents a logical product, and the - symbol represents a complement.

同様にE21〜E24についてもD2□、D22を得る
Similarly, D2□ and D22 are obtained for E21 to E24.

また、第6図(b)のような2ブレ一ン分のデータにす
る場合には、第 (1)式の論理式が次式となるような
構成に変更すればよい。すなわち、−理演算手段3を変
えることにより第6図以外に任意の2ブレ一ン分のデー
タにすることができる。
Furthermore, when data for two brains is used as shown in FIG. 6(b), the logical expression (1) may be changed to the following expression. That is, by changing the -arithmetic calculation means 3, it is possible to obtain data for any two blocks other than those shown in FIG.

D n、= (E na* E nl)+(En3*(
En2*  Ens) )+(−En3*(En2+E
n1)) Dn2=En4+(El13*  (Enz+Ent)
)。は、。r2             ・・・・・
・ (2)垂直方向については、参照画素群間隔がOと
1の値の1回毎の繰り返しのため、第1ラインとしてひ
とつ前の3ライン分データのうちの最終ラインを使用す
ることを1回毎に繰り返せばよい。このようにして、水
平方向、垂直方向のすべての原画素を参照画素として処
理することにより、縮小率215の1画素を1ビットで
表現した2ブレ一ン分の多値データの変換画像を得るこ
とができる。
D n, = (E na * E nl) + (En3 * (
En2* Ens) )+(-En3*(En2+E
n1)) Dn2=En4+(El13* (Enz+Ent)
). teeth,. r2...
・ (2) In the vertical direction, because the reference pixel group interval is repeated every time with values of O and 1, it is recommended to use the last line of the previous three lines of data as the first line. You can repeat it every time. In this way, by processing all the original pixels in the horizontal and vertical directions as reference pixels, we obtain a converted image of multi-value data for one 2-ray frame in which one pixel with a reduction ratio of 215 is expressed in one bit. be able to.

例えば、パソコンのようにイ、メージデータ表示用のメ
モ′すpi’、  1画素1ビットで極数プレーンの構
成をとっており、ルックアップテーブルにより具体的な
デイスプレィの表示色を決めている場合には、イメー゛
ジデータ表示用のメモリにバス経由で上記データ2プレ
ーン分を転送し、ルックアップテーブルで白と黒および
その中間色2種類を決めればよい。
For example, when a personal computer has a memo 'spi' for displaying image data, it has a pole number plane configuration with one pixel and one bit, and the specific display color is determined by a lookup table. To do this, the two planes of data described above are transferred to the image data display memory via the bus, and white, black, and two intermediate colors are determined using a lookup table.

なお、原画素の順序は右端が第1番目の画素として説明
したが、左端が第1番目の画素の場合には参照画素の加
算値を算出する際、参照画素処理単位としての人力デー
タを逆順にすれば同様な処理が可能である。
Note that the order of the original pixels has been explained assuming that the right end is the first pixel, but if the left end is the first pixel, when calculating the added value of the reference pixel, the manual data as the reference pixel processing unit is processed in reverse order. Similar processing is possible if you do this.

(発明の効果〕 以上説明したようにこの発明は、白黒2値ディジタル画
像を多値表示可能な出力装置に縮小して表示する場合、
変換画素の値として着目する変換画素の周囲のnxn個
の参照画素の加算値を算出し、酸価を2進数で表現した
時に必要となる桁数Mに対応して1画素を1ビットで表
現したMプレーン分のデータに変換し、さらに、該1画
素1ビットのMプレーン分のデータを定められた論理演
算によりMより少ない1画素の1ビットのMプレーン分
のデータとしたので、データ量の少ない品質のよい縮小
変換画像が、簡単な回路構成で演算の回数が少なく、高
速に得られる。
(Effects of the Invention) As explained above, the present invention provides a method for reducing and displaying a monochrome binary digital image on an output device capable of multi-value display.
Calculate the sum of nxn reference pixels surrounding the conversion pixel of interest as the value of the conversion pixel, and express 1 pixel with 1 bit corresponding to the number of digits M required when expressing the acid value in binary. The amount of data is A reduced conversion image of good quality with a small number of calculations can be obtained at high speed with a simple circuit configuration.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図はこの発明の詳細な説明するための図、第2図は
縮小率と参照画素数の関係の例を示す図、第3図はこの
発明の縮ノ11変換方法の流れを説明するための白黒2
値ディジタル画像の一部5バイト3ライン分のデータ例
の図、第4図は、第3図のデータ例における参照画素の
加算値とその2進数表現、第5図(a)は参照画素の加
算値を1画素1ビットの4プレーンに変換した多値デー
タを示す図、第5図(b)は論理演算手段により得た1
画素1ビットの2プレーンの多値データを示す図、第6
図(a)、(b)は論理演算手段の例の説明図、第7図
は従来の参照画素の加算値を多値データとする縮小変換
方法を説明するための図である。 図中、1は参照画素の加算手段、1人はシフトレジスタ
、1Bはマスク回路、1cは加算回路、2は参照画素の
加算値を2進数で表現した時に必要となるビット数Mま
で参Iカ画素の加算値の各ビットを1画素1ビットから
なるMプレーンデータに変換する手段、2Aはシフトレ
ジスタ、2Bはマスク回路、2Cは論理和回路、3は論
理演算手段、4は加算値用メモリ、5はMプレーン分デ
タ用メモリ、6はNプレーン分データ用メモリで呪 Φ ○ ○ ○ 〇−−令 ○ ○ ○ ○ ○−−◆ × ○ ○ ○ 〇−− 0膿 \\ 凶凶 cQ × ○−−− ○ ○ ○−−− × × ○ ○ ○ ○−◆ × × ○ ○ × 凶へ Q菌 ○ ○ ×
FIG. 1 is a diagram for explaining the present invention in detail, FIG. 2 is a diagram showing an example of the relationship between the reduction ratio and the number of reference pixels, and FIG. 3 is a diagram explaining the flow of the reduction No. 11 conversion method of the present invention. black and white 2
Figure 4 shows the added value of the reference pixel in the data example of Figure 3 and its binary representation, and Figure 5 (a) shows the data example of 5 bytes and 3 lines of a part of the value digital image. Figure 5 (b) is a diagram showing multi-value data obtained by converting the added value into 4 planes of 1 bit per pixel.
Diagram 6 showing 2-plane multi-value data of 1-bit pixel
FIGS. 7A and 7B are explanatory diagrams of examples of logical operation means, and FIG. 7 is a diagram for explaining a conventional reduction conversion method in which the added value of reference pixels is converted into multivalued data. In the figure, 1 is the reference pixel addition means, 1 is the shift register, 1B is the mask circuit, 1c is the addition circuit, and 2 is the number of bits M required when expressing the added value of the reference pixels in binary. 2A is a shift register, 2B is a mask circuit, 2C is an OR circuit, 3 is a logic operation means, 4 is for addition value Memory, 5 is memory for M plane data, 6 is memory for N plane data. cQ × ○−−− ○ ○ ○−−− × × ○ ○ ○ ○−◆ × × ○ ○ × Bad Q bacteria○ ○ ×

Claims (2)

【特許請求の範囲】[Claims] (1)1画素が1ビットで表現されたディジタル画像を
任意の倍率で縮小変換する場合に、変換後の変換画像の
各変換画素の値を変換前の原画像に写像した時、着目す
る変換画素の値を該変換画素に対する周囲の原画像の原
画素の値を参照して求める縮小変換方法において、縮小
率に応じて決定した参照画素の値の加算値を得る過程と
、得られた参照画素の加算値を2進数で表現した時に必
要となる桁数Mより少ない1画素を1ビットで表現した
Nプレーンのデータに変換する過程とからなり、変換画
像を1画素を1ビットで表現したNプレーンの多値画像
とすることを特徴とする画像の縮小変換方法。
(1) When reducing or converting a digital image in which 1 pixel is expressed by 1 bit at an arbitrary magnification, when the value of each converted pixel of the converted image after conversion is mapped to the original image before conversion, the conversion to focus on In a reduction conversion method in which the value of a pixel is determined by referring to the value of the original pixels of the surrounding original image for the converted pixel, a process of obtaining an added value of the value of the reference pixel determined according to the reduction ratio, and the obtained reference It consists of the process of converting one pixel, which is less than the number of digits M required when expressing the pixel addition value in binary, into N-plane data expressed in one bit, and the converted image is expressed in one bit per pixel. A method for reducing and converting an image into an N-plane multivalued image.
(2)1画素を1ビットで表現したNプレーンのデータ
に変換する過程が、参照画素の加算値を2進数で表現し
た時に必要となる桁数Mまで、加算値の各桁を変換画素
の順番により決まる1バイト長または1語長データの所
定の位置に取り出すことにより1画素を1ビットで表現
したMプレーンのデータに変換する過程と、該Mプレー
ンのデータをMより少ない1画素を1ビットで表現した
Nプレーンにする論理演算過程からなることを特徴とす
る請求項(1)記載の画像の縮小変換方法。
(2) The process of converting one pixel into N-plane data, which is expressed by one bit, converts each digit of the added value to the converted pixel until the number M of digits is required when the added value of the reference pixel is expressed in binary. A process of converting one pixel into M-plane data in which one pixel is represented by one bit by extracting it at a predetermined position of one-byte length or one-word length data determined by the order, and converting the data of the M plane into one pixel less than M. 2. The method for reducing and converting an image according to claim 1, further comprising a logical operation process for converting an image into N planes expressed in bits.
JP1017703A 1989-01-30 1989-01-30 Image reduction conversion method Expired - Lifetime JP2636396B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1017703A JP2636396B2 (en) 1989-01-30 1989-01-30 Image reduction conversion method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1017703A JP2636396B2 (en) 1989-01-30 1989-01-30 Image reduction conversion method

Publications (2)

Publication Number Publication Date
JPH02199584A true JPH02199584A (en) 1990-08-07
JP2636396B2 JP2636396B2 (en) 1997-07-30

Family

ID=11951142

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1017703A Expired - Lifetime JP2636396B2 (en) 1989-01-30 1989-01-30 Image reduction conversion method

Country Status (1)

Country Link
JP (1) JP2636396B2 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS57185078A (en) * 1981-05-09 1982-11-15 Tokyo Shibaura Electric Co Picture display unit
JPS608892A (en) * 1983-06-29 1985-01-17 富士通株式会社 Shaded image display unit
JPS60163080A (en) * 1984-02-03 1985-08-24 富士通株式会社 Image reduction display processing system
JPS6183587A (en) * 1984-08-18 1986-04-28 富士通株式会社 Image data conversion system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS57185078A (en) * 1981-05-09 1982-11-15 Tokyo Shibaura Electric Co Picture display unit
JPS608892A (en) * 1983-06-29 1985-01-17 富士通株式会社 Shaded image display unit
JPS60163080A (en) * 1984-02-03 1985-08-24 富士通株式会社 Image reduction display processing system
JPS6183587A (en) * 1984-08-18 1986-04-28 富士通株式会社 Image data conversion system

Also Published As

Publication number Publication date
JP2636396B2 (en) 1997-07-30

Similar Documents

Publication Publication Date Title
US4747154A (en) Image data expanding and/or contracting method and apparatus
JPS62262188A (en) Picture processor
KR940007161B1 (en) Electronic zooming system using image buffer
JPS60146369A (en) Image reduction method
JPH02199584A (en) Method of image contraction
JPH06253134A (en) Picture processing device
JP2004509528A (en) Data transfer between RGB color space and YCrCb color space for DCT interface
JPH05233795A (en) Image expansion/reduction device
JP4578444B2 (en) Zero pixel count circuit
JPS63164575A (en) Encoding system for image data
JP3209396B2 (en) Image data compression method and apparatus
JP3503711B2 (en) Raster / block conversion method and apparatus for implementing the method
KR100298127B1 (en) Digital filter
Ishikawa et al. Multi-Resolutional Image Format Using Stochastic Numbers and Its Hardware Implementation
CN117544734A (en) Lossy compression method based on RGB three primary color images
KR100602249B1 (en) Video Processing Device and the Method thereof
JPS61156434A (en) Digital multiplier for series operation
JPH0936749A (en) Coding decoding device and coding method used for it
JP2638842B2 (en) Decoder circuit
JP3876067B2 (en) Data signal path connection method and signal path connector
JPH0523013Y2 (en)
JP2590840B2 (en) Run-length encoding device
CN111127323A (en) Image reduction method based on FPGA
JPH01302960A (en) Error disseminating processing circuit
JPS6342587A (en) Data compressing method

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090425

Year of fee payment: 12

EXPY Cancellation because of completion of term
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090425

Year of fee payment: 12