JP2636396B2 - Image reduction conversion method - Google Patents

Image reduction conversion method

Info

Publication number
JP2636396B2
JP2636396B2 JP1017703A JP1770389A JP2636396B2 JP 2636396 B2 JP2636396 B2 JP 2636396B2 JP 1017703 A JP1017703 A JP 1017703A JP 1770389 A JP1770389 A JP 1770389A JP 2636396 B2 JP2636396 B2 JP 2636396B2
Authority
JP
Japan
Prior art keywords
pixel
data
value
bit
conversion
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
JP1017703A
Other languages
Japanese (ja)
Other versions
JPH02199584A (en
Inventor
忠嗣 市川
寿人 宮地
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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

Description

【発明の詳細な説明】 〔産業上の利用分野〕 この発明は、白黒2値で1画素が1ビットで表現され
たディジタル画像を、多値表示可能な画像出力装置に出
力するために縮小変換する場合、多値画像に変換するこ
とにより画品質劣化の少ない縮小変換画像を得る画像の
縮小変換方法に関するものである。
Description: BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a reduction conversion for outputting a digital image in which one pixel is represented by 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 reduced conversion image with less image quality degradation by converting the image into a multi-valued image.

〔従来の技術〕[Conventional technology]

従来、白黒2値で1画素が1ビットで表現されたディ
ジタル画像(白黒2値画像)の縮小変換方法としては、
最も簡単な方法には原画像の行および列を変換画像で必
要とする値まで適当に間引く方法が挙げられ、画像をパ
ソコンなどのディスプレイに表示するための縮小変換方
法に採用されている。この方法は処理が簡単であり、簡
易な方法として、例えばワープロなどでレイアウトのみ
を知りたい場合などに使用されている。しかし、文書の
内容を判読する場合には切れやつぶれなどの発生により
著しく画品質が劣化するため適当ではない。一方、白黒
2値画像から白黒2値画像への縮小変換方法として、SP
C法(画像電子学会第7回全国大会予稿集、予稿No.10、
昭和50年)や領域判別法(信学技報RPL81−92)などが
発表されている。これらの変換方法では、黒の細い線が
消失するための切れ、白の細い線が消失するためのつぶ
れが発生し、画品質が劣化する欠点があった。これに対
して、これらの欠点を解決するため細い線を判定し、こ
れを保存することにより画品質の劣化を防ぐTP法(信学
技報ED84−26、昭和59年)なども発表されている。この
方法でも、切れやつぶれがなくなったわけではないた
め、パソコンのディスプレイ等の多値表示可能な画像出
力装置に出力するための縮小変換方法としては不十分で
あった。さらに、切れやつぶれを防ぐ多値表示可能な画
像出力装置に出力するための縮小変換方法として、変換
画像を原画像に写像した時、着目する変換画素に対する
周囲の原画素の値を加算して多値データとし、これを変
換画素の値とする方法が考えられている。
Conventionally, as a reduction conversion method of a digital image (monochrome binary image) in which one pixel is represented by one bit in black and white binary,
The simplest method is a method of appropriately thinning out rows and columns of an original image to values required in a converted image, and is adopted as a reduction conversion method for displaying an image on a display such as a personal computer. This method is simple in processing, and is used as a simple method, for example, when it is desired to know only the layout using a word processor or the like. However, it is not appropriate to read the contents of a document because image quality is significantly degraded due to occurrence of cuts or crushing. On the other hand, as a reduction conversion method from a black and white binary image to a black and white binary image, SP
Method C (Proceedings of the 7th Annual Conference of the Institute of Image Electronics Engineers of Japan,
1975) and the area discrimination method (IEICE Technical Report RPL81-92) have been published. In these conversion methods, there is a disadvantage that the image quality is deteriorated due to breakage due to disappearance of a thin black line and collapse due to disappearance of a white thin line. On the other hand, the TP method (IEICE Technical Report ED84-26, 1984), which determines thin lines to solve these drawbacks and prevents them from deteriorating image quality by storing them, has also been announced. I have. Even this method does not eliminate cuts and crushes, and thus is 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-value display that prevents cuts and crushes, when a converted image is mapped to an original image, the values of surrounding original pixels with respect to the conversion pixel of interest are added. A method has been considered in which multi-valued data is used and this is used as the value of the converted pixel.

この方法では、原画像と変換画像の関係が第7図
(a),(b)に示すような場合、縮小率(垂直方向B/
A、水平方向C/D)から計算によって変換画素の位置およ
び参照画素を求める。第7図に示すように、黒画素を
“1"、白画素を“0"として着目する変換画素の周囲の参
照画素の値を加算する。第7図(a)では参照画素の加
算値は、“0",“1",“2",“3",“4"の5種類、第7図
(b)では“0",“1",“2",“3",“4",“5",“6",“7",
“8",“9"の10種類となる。参照画素の加算値に対応す
る階調値で表示することにより品質の良い変換画像が得
られる。
In this method, when the relationship between the original image and the converted image is as shown in FIGS. 7 (a) and 7 (b), the reduction ratio (vertical direction B /
(A, horizontal direction C / D), the position of the converted pixel and the reference pixel are obtained by calculation. As shown in FIG. 7, the values of the reference pixels around the conversion pixel of interest are added with the black pixel being “1” and the white pixel being “0”. In FIG. 7A, the added values of the reference pixels are five types of "0", "1", "2", "3", "4", and in FIG. 7B, "0", "1". ",“ 2 ”,“ 3 ”,“ 4 ”,“ 5 ”,“ 6 ”,“ 7 ”,
There are 10 types, “8” and “9”. A converted image with high quality can be obtained by displaying with a gradation value corresponding to the added value of the reference pixels.

この変換方法では、参照画素の加算値は参照画素数+
1レベルの多値データとなり、2値データに縮小した場
合に比べてデータ量が増加するという欠点があった。
In this conversion method, the added value of the reference pixels is the number of reference pixels +
There is a drawback that the data amount increases as compared with the case where the data becomes one-level multi-valued data and is reduced to binary data.

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

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

この発明にかかる画像の縮小変換方法の発明は、縮小
率に応じて決まる参照画素の値の加算値を得る過程と、
これにより得られた参照画素の加算値を2進数で表現し
た時に必要となる桁数Mより少ない1画素を1ビットで
表現したNプレーンのデータに変換する過程を有し、こ
の1画素を1ビットで表現したNプレーンのデータに変
換する過程4が、参照画素の加算値を2進数で表現した
時に必要となる桁数Mまで加算値の各桁を変換画素の順
番により決まる1バイド長または1語長データの所定の
位置に取り出すことにより1画素を1ビットで表現した
Mプレーンのデータに変換する過程と、該Mプレーンの
データをMより少ない1画素を1ビットで表現したNプ
レーンにする論理演算過程とからなるものである。
The invention of the image reduction conversion method according to the present invention includes a step of obtaining an addition value of a value of a reference pixel determined according to a reduction ratio;
There is a step of converting one pixel smaller than the number of digits M required when the sum of the reference pixels obtained in this way is represented by a binary number into N-plane data represented by one bit. Step 4 of converting the data into N-plane data expressed in bits is performed by converting each digit of the added value up to the number of digits M required when the added value of the reference pixel is expressed in a binary number, by one byte length determined by the order of the converted pixels or A process of converting one pixel into M-plane data represented by one bit by extracting one word-length data to a predetermined position, and converting the data of the M-plane into an N-plane represented by one bit less than M by one bit Logical operation process.

〔作用〕[Action]

この発明においては、従来の多値画像への縮小変換に
くらべデータ量少なくて高品質な変換画像が得られる。
さらに、より簡単な回路構成で演算の回数が少なく、高
速に変換画素が得られる。
According to the present invention, it is possible to obtain a high-quality converted image with a smaller amount of data than the conventional reduced conversion to a multi-valued image.
Furthermore, a converted pixel can be obtained at a high speed with a simpler circuit configuration and a small number of operations.

〔実施例〕〔Example〕

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

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

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

参照画素群間隔データは参照画素の集まり(参照画素
群)の重なりを示すデータであり、縮小率と参照画素が
第2図に示す関係の場合、整数分の1の縮小率では常に
0である。非整数分の1の縮小率では0と−1の値をと
り、縮小率の分子Bで決まる周期での繰り返しとなる。
参照画素の加算にあたり、参照画素群間隔0では新たな
参照画素から加算を開始するが、−1ではひとつ前の参
照画素から加算を開始する。
The reference pixel group interval data is data indicating the overlap of a group of reference pixels (reference pixel group). When the reduction ratio and the reference pixels have the relationship shown in FIG. . At a reduction ratio of a non-integral fraction, values of 0 and −1 are taken, and repetition is performed at a period determined by the numerator B of the reduction ratio.
When adding reference pixels, the addition is started from a new reference pixel at the reference pixel group interval 0, while the addition is started from the immediately preceding reference pixel at −1.

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

参照画素と変換画素の位置関係は第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 reference pixel position data, the number of reference pixels in the horizontal direction and the vertical direction is 3, the reference pixel processing unit is 5 bytes, and the reference pixel interval is a value obtained by repeating 0 and -1 each time.

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

第3図のデータでは、P111,P112,P113が変換画素Q111
の参照画素、P113,P114,P115が変換画素Q112の参照画
素、P116,P117,P118が変換画素Q113の参照画素、P118,P
121,P122が変換画素Q114の参照画素、P123,P124,P125
変換画素Q115の参照画素、P125,P126,P127が変換画素Q
116の参照画素、P128,P131,P132が変換画素Q117の参照
画素、P132,P133,P134が変換画素Q118の参照画素、
P135,P136,P137が変換画素Q121の参照画素、P137,P138,
P141が変換画素Q122の参照画素、P142,P143,P144が変換
画素Q123の参照画素P144,P145,P146が変換画素Q124の参
照画素、P147,P148,P151が変換画素Q125の参照画素、P
151,P152,P153が変換画素Q126の参照画素、P154,P155,P
156が変換画素Q127の参照画素、P156,P157,P158が変換
画素Q128の参照画素となる。
In the data of FIG. 3, P 111 , P 112 and P 113 are converted pixels Q 111
, P 113 , P 114 , and P 115 are reference pixels of the conversion pixel Q 112 , P 116 , P 117 , and P 118 are reference pixels of the conversion pixel Q 113 , P 118 , and P
121 and P 122 are reference pixels of the conversion pixel Q 114 , P 123 , P 124 and P 125 are reference pixels of the conversion pixel Q 115 , and P 125 , P 126 and P 127 are conversion pixels Q
Reference pixel 116, reference pixel P 128, P 131, reference pixel P 132 is converted pixel Q 117, P 132, P 133 , P 134 is converted pixel Q 118,
P 135 , P 136 , P 137 are reference pixels of the conversion pixel Q 121 , P 137 , P 138 ,
Reference pixel P 141 is converted pixel Q 122, P 142, P 143 , P 144 is the reference pixel P 144, P 145, P 146 is a reference pixel of the converted pixel Q 124 of the converted pixel Q 123, P 147, P 148 , P 151 is the reference pixel of the conversion pixel Q 125 , P
151 , P 152 , P 153 are reference pixels of the conversion pixel Q 126 , P 154 , P 155 , P
156 reference pixels converted pixel Q 127, P 156, P 157 , P 158 is a reference pixel of the converted pixel Q 128.

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

第1に参照画素の加算値を算出する。参照画素の参照
画素の加算値用メモリ4に入れる加算値を説明上a11,a
12,a13,a14,a15,a16,a17,a18,a21,a22,a23,a24,a25,
a26,a27,a28で表す。
First, the sum of the reference pixels is calculated. Description on a 11 additional values to take into addition value memory 4 of the reference pixels of the reference pixel, a
12 , a 13 , a 14 , a 15 , a 16 , a 17 , a 18 , a 21 , a 22 , a 23 , a 24 , a 25 ,
They are represented by a 26 , a 27 and a 28 .

1ライン1バイト目のデータを参照画素の加算手段1
に入力する。最初は参照画素間隔データは0である。該
値が0のためP111,P112,P113の値をa11に加算する。こ
の加算は次の動作により行う。シフトレジスタ1Aの右端
ビットP111をマスク回路1Bにより1バイト長データとし
て取り出し、加算回路1Cによりa11に加算する。次に、
シフトレジスタ1Aで右に1ビットシフトしてP112を第1
番目のビット位置に移動し、マスク回路1BでP112を同様
に取り出し、加算回路1CによりaP11に加算する。同様
に、P113を取り出しa11に加算する。これで参照画素数
3個分の処理が終る。次では参照画素群間隔が−1のた
め、ひとつ前の参照画素であるP113とP114,P115の値を
上記と同じ動作によりa12に加算する。次では参照画素
群間隔が0のため、P116,P117,P118の値を上記と同じ動
作によりa13に加算する。次では、参照画素群間隔が−
1のため、P118の値をa14に加算する。これで1バイト
目のデータが終る。
1st byte of data per line is added to reference pixel adding means 1
To enter. Initially, the reference pixel interval data is 0. Since the value is 0, the values of P 111 , P 112 and P 113 are added to a 11 . This addition is performed by the following operation. Removed shift register 1A in the rightmost bit P 111 as a 1-byte-length data by the mask circuit 1B, is added to a 11 by the adding circuit 1C. next,
Shift 1 bit to the right with shift register 1A to set P112 as first
Th moved to bit positions, similarly removed P 112 by the mask circuit 1B, it adds to aP 11 by the adding circuit 1C. Similarly, it added to a 11 removed P 113. This completes the process for three reference pixels. Since the reference pixel group interval is following -1, the value of the P 113, which is one before the reference pixel P 114, P 115 is added to a 12 by the same operation as described above. Next, since the reference pixel group interval is 0, the values of P 116 , P 117 and P 118 are added to a 13 by the same operation as described above. Next, if the reference pixel group interval is-
For 1, it adds the value of P 118 to a 14. This ends the first byte of data.

2バイト目のデータを参照画素の加算手段1に入力
し、P121,P122をa14にも加算して参照画素3個分の処理
を終る。以下同様に処理を繰り返し、5バイト目のデー
タを入力して第1ラインの5バイト分の参照画素の加算
値を得る。
The second byte of the data input to the adding means 1 of the reference pixel, P 121, P 122 to end the addition to the reference pixels corresponding to three processing to a 14. Thereafter, the same process is repeated to input the data of the fifth byte to obtain an added value of the reference pixels for the five bytes of the first line.

上述のように、各バイト目のデータを入力して処理す
ることによりa11,a12,a13,a14,a15,a16,a17,a18,a21,a
22,a23,a24,a25,a26,a27,a28について参照画素処理単位
である5バイト1ライン目の加算値を得ることができ
る。
As mentioned above, a 11 by processing to input data for each byte, a 12, a 13, a 14, a 15, a 16, a 17, a 18, a 21, a
22, a 23, a 24, a 25, a 26, a 27, a reference pixel processing unit is about a 28 can be obtained 5-byte first line of the sum.

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

このようにして、第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 data of 5 bytes and 3 lines shown in FIG.

第2に参照画素の加算値を2進数で表現した各桁毎に
取り出してプレーンデータに変換する。プレーン数は2
進数で表現した時に必要となる桁数Mまでとする。参照
画素4数が3の場合、変換画素の加算値の最大値は9で
あるのでMは4である。参照画素の加算手段1で得た8
個2組の該加算値から2組の1バイト長の4プレーン分
データに変換する。この1バイト長データのメモリを説
明上E11,E12,E13,E14,E21,E22,E23,E24とする。
Second, the added value of the reference pixel is extracted for each digit represented by a binary number and converted into plane data. 2 planes
The number of digits must be up to M, which is required when expressed in base numbers. When the number of reference pixels 4 is 3, the maximum value of the sum of the converted pixels is 9, and M is 4. 8 obtained by the reference pixel adding means 1
Two sets of the added values are converted into two sets of 1-byte length data for four planes. Description on E 11 the memory of the 1-byte length data, E 12, and E 13, E 14, E 21 , E 22, E 23, E 24.

参照画素の加算値を参照画素の加算値用メモリ4から
1個づつ第1図の加算値をMプレーンデータに変換する
手段2に順次入力する。a11の値5の1バイトの2進数
表現“00000101"からシフトレジスタ2Aとマスク回路2B
および論理和回路2Cにより以下のように処理する。a11
の1桁目“1"を1バイト長データの第1番目のビット位
置で、マスク回路2Bにより取り出しE11と論理和をと
る。次に、2桁目“0"をシフトレジスタ2Aで右にビット
シフトし、1バイト長データの第1番目の位置に移動し
た後、マスク回路2Bにより取り出し、E12と論理和をと
る。同様に、3桁目“1"を取り出し、E13と論理和を、
1桁目“0"を取り出しE14と論理和をとる。
The added values of the reference pixels are sequentially input one by one from the reference pixel added value memory 4 to the means 2 for converting the added values of FIG. 1 into M plane data. a Shift register 2A and mask circuit 2B from 1-byte binary representation “00000101” of value 5 of 11
And the following processing is performed by the OR circuit 2C. a 11
1 digit "1" in the first bit position of the 1-byte length data, taking extraction E 11 ORed by the mask circuit 2B. Then, bit-shifts to the right the second digit "0" in the shift register 2A, after moving to the first position of the 1-byte length data, taken out by the mask circuit 2B, take the E 12 and the logical sum. Similarly, the third digit “1” is extracted, and OR is calculated with E 13 ,
Take the E 14 and the logical sum is taken out the first digit "0".

a12の値“00000011"は第2番目のビット位置にシフト
レジスタ2Aとマスク回路2Bで取り出し、論理和回路2Cで
E11,E12,E13,E14と論理和をとる。同様に、a13は第3番
目のビット位置、a14は第4番目のビット位置、a15は第
5番目のビット位置、a16は第6番目のビット位置、a17
は第7番目のビット位置、a18は第8番目のビット位置
に順次取り出して、第5図(a)に示す各1バイト4プ
レーン分のE11,E12,E13,E14を得る。a12〜a28について
も同様にして同図に示すE21,E22,E23,E24を得る。
The value of a 12 "00000011" is taken out by the shift register 2A and the mask circuit 2B to the second bit position, in the OR circuit 2C
The logical sum of E 11 , E 12 , E 13 and E 14 is calculated. Similarly, a 13 is the third bit position, a 14 is the fourth bit position, a 15 is the fifth bit position, a 16 is the sixth bit position, a 17
Is the seventh bit position, a 18 is sequentially extracted to the eighth bit position, and E 11 , E 12 , E 13 , and E 14 for one byte and four planes shown in FIG. 5A are obtained. . obtain E 21, E 22, E 23 , E 24 shown in the figure the same for a 12 ~a 28.

第3に第1図の論理演算手段3でN=2、すなわち2
プレーン分のデータに変換する場合を説明する。2組の
1バイト長2プレーン分データを説明上D11,D12,D21,D
22とする。
Third, the logical operation means 3 in FIG.
A case where the data is converted into plane data will be described. Description on D 11 two sets of 1-byte length two planes worth data, D 12, D 21, D
22 .

1バイト長4プレーン分のデータE11〜E14を論理演算
手段3に入力し、第6図(a)で示す関係で第5図
(b)に示す2プレーン分のデータD11,D12を得る。こ
の場合における論理演算手段3は、次式で示される論理
式を実現する構成であればよい。
1 byte length of 4 planes worth data E 11 to E 14 and input to the logic operation unit 3, FIG. 6 (a) 2-plane of data D 11 shown in FIG. 5 (b) in the relationship shown in, D 12 Get. In this case, the logical operation means 3 only needs to be configured to realize the logical expression shown by the following expression.

ただし、+記号は論理和を、*記号は論理積を ̄記号
は補数を表している。
However, the + symbol represents a logical sum, the * symbol represents a logical product, and the  ̄ symbol represents a complement.

同様にE21〜E24についてもD21,D22を得る。Similarly obtain D 21, D 22 also E 21 to E 24.

また、第6図(b)のような2プレーン分のデータに
する場合には、第(1)式の論理式が次式となるような
構成に変更すればよい。すなわち、論理演算手段3を変
えることにより第6図以外に任意の2プレーン分のデー
タにすることができる。
In addition, in the case where data for two planes as shown in FIG. 6B is used, the configuration may be changed so that the logical expression of Expression (1) becomes the following expression. That is, by changing the logical operation means 3, data for any two planes other than FIG. 6 can be obtained.

垂直方向については、参照画素群間隔が0と−1の値
の1回毎の繰り返しのため、第1のラインとしてひとつ
前の3ライン分データのうちの最終ラインを使用するこ
とを1回毎に繰り返せばよい。このようにして、水平方
向,垂直方向のすべての原画素を参照画素として処理す
ることにより、縮小率2/5の1画素を1ビットで表現し
た2プレーン分の多値データの変換画像を得ることがで
きる。
In the vertical direction, since the reference pixel group interval repeats the value of 0 and −1 each time, the use of the last line of the previous three lines of data as the first line is performed each time. It should be repeated. In this way, by converting all original pixels in the horizontal and vertical directions as reference pixels, a converted image of multi-level data for two planes, in which one pixel with a reduction ratio of 2/5 is represented by one bit, is obtained. be able to.

例えば、パソコンのようにイメージデータ表示用のメ
モリは、1画素1ビットで複数プレーンの構成をとって
おり、ルックアップテーブルにより具体的なディスプレ
イの表示色を決めている場合には、イメージデータ表示
用のメモリにバス経由で上記データ2プレーン分を転送
し、ルックアップテーブルで白と黒およびその中間色2
種類を決めればよい。
For example, a memory for displaying image data, such as a personal computer, has a configuration of a plurality of planes with one bit per pixel, and when a specific display color of a display is determined by a look-up table, the image data display is performed. The data for the two planes is transferred to the memory for the bus via the bus, and white and black and the intermediate color 2
You can decide the type.

なお、原画素の順序は右端が第1番目の画素として説
明したが、左端が第1番目の画素の場合には参照画素の
加算値を算出する際、参照画素処理単位としての入力デ
ータを逆順にすれば同様な処理が可能である。
Although the order of the original pixels has been described assuming that the right end is the first pixel, when the left end is the first pixel, the input data as the reference pixel processing unit is reversed in calculating the sum of the reference pixels. Then, the same processing can be performed.

〔発明の効果〕〔The invention's effect〕

以上説明したようにこの発明は、白黒2値ディジタル
画像を多値表示可能な出力装置に縮小して表示する場
合、変換画素の値として着目する変換画素の周囲のn×
n個の参照画素の加算値を算出し、該値を2進数で表現
した時に必要となる桁数Mに対応して1画素を1ビット
で表現したMプレーン分のデータに変換し、さらに、該
1画素1ビットのMプレーン分のデータを定められた論
理演算によりMより少ない1画素を1ビットで表現した
Nプレーン分のデータとしたので、データ量の少ない品
質のよい縮小変換画像が、簡単な回路構成で演算の回数
が少なく、高速に得られる。
As described above, according to the present invention, when a black-and-white binary digital image is reduced and displayed on an output device capable of multi-level display, the value of nx around the conversion pixel of interest is used as the value of the conversion pixel.
An addition value of n reference pixels is calculated, and the value is converted into data of M plane in which one pixel is represented by one bit corresponding to the number of digits M required when the value is represented by a binary number. Since the data of the M plane of 1 bit per pixel is data of the N plane in which 1 pixel less than M is represented by 1 bit by a defined logical operation, a reduced converted image of good quality with a small data amount is obtained. With a simple circuit configuration, the number of operations is small, and high speed can be obtained.

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

第1図はこの発明の原理を説明するための図、第2図は
縮小率と参照画素数の関係の例を示す図、第3図はこの
発明の縮小変換方法の流れを説明するための白黒2値デ
ィジタル画像の一部5バイト3ライン分のデータ例の
図、第4図は、第3図のデータ例における参照画素の加
算値とその2進数表現、第5図(a)は参照画素の加算
値を1画素1ビットの4プレーンに変換した多値データ
を示す図、第5図(b)は論理演算手段により得た1画
素1ビットの2プレーンの多値データを示す図、第6図
(a),(b)は論理演算手段の例の説明図、第7図は
従来の参照画素の加算値を多値データとする縮小変換方
法を説明するための図である。 図中、1は参照画素の加算手段、1Aはシフトレジスタ、
1Bはマスク回路、1Cは加算回路、2は参照画素の加算値
を2進数で表現した時に必要となるビット数Mまで参照
画素の加算値の各ビットを1画素1ビットからなるMプ
レーンデータに変換する手段、2Aはシフトレジスタ、2B
はマスク回路、2Cは論理和回路、3は論理演算手段、4
は加算値用メモリ、5はプレーン分データ用メモリ、6
はNプレーン分データ用メモリである。
FIG. 1 is a diagram for explaining the principle of the present invention, 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 for explaining the flow of the reduction conversion method of the present invention. FIG. 4 shows an example of data of 5 bytes and 3 lines of a part of a monochrome binary digital image, FIG. 4 shows an addition value of a reference pixel and its binary representation in the data example of FIG. 3, and FIG. FIG. 5B is a diagram showing multi-valued data obtained by converting an added value of pixels into four planes of one bit per pixel, and FIG. 5B is a diagram showing multi-valued data of two planes of one bit per pixel obtained by a logical operation means; 6 (a) and 6 (b) are explanatory diagrams of an example of a logical operation means, and FIG. 7 is a diagram for explaining a conventional reduction conversion method in which an added value of a reference pixel is converted to multi-value data. In the figure, 1 is a reference pixel adding means, 1A is a shift register,
1B is a mask circuit, 1C is an addition circuit, and 2 is M plane data consisting of one bit per pixel for each bit of the reference pixel addition value up to the number M of bits required when the addition value of the reference pixel is expressed in binary. Conversion means, 2A is shift register, 2B
Is a mask circuit, 2C is a logical sum circuit, 3 is a logical operation means, 4
Is a memory for addition value, 5 is a memory for plane data, 6
Is a data memory for N planes.

───────────────────────────────────────────────────── フロントページの続き (56)参考文献 特開 昭61−83587(JP,A) 特開 昭60−163080(JP,A) 特開 昭57−185078(JP,A) 特開 昭60−8892(JP,A) ──────────────────────────────────────────────────続 き Continuation of the front page (56) References JP-A-61-83587 (JP, A) JP-A-60-163080 (JP, A) JP-A-57-185078 (JP, A) JP-A-60-163 8892 (JP, A)

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】1画素が1ビットで表現されたデイジタル
画像を任意の倍率で縮小変換して多値表示可能な出力装
置に縮小して表示する場合に、変換後の変換画像の各変
換画像を変換前の原画像に写像した時、着目する変換画
素の値を該変換画素を中心とする複数の周囲の原画像の
原画素の値を参照して求める画像の縮小変換方法におい
て、 縮小率に応じて決定した参照画素の値により定められる
水平垂直方向の区域の内部にある全ての原画素の値を加
算して加算値を得る過程と、 得られた参照画素の加算値を2進法で表現した時に必要
となる桁数Mまで、加算値の各桁を変換画素の順番によ
り決まる1バイト長または1語長データの所定の位置に
取り出すことにより1画素を1ビットで表現したMプレ
ーンのデータに変換する過程と、 該Mプレーンのデータを1画素を1ビットで表現したN
プレーンのデータに変換(NはMより小さい正の整数)
し、Nプレーンのデータにより多値表示データを得る論
理演算過程 からなることを特徴とする画像の縮小変換方法。
A digital image in which one pixel is represented by one bit is reduced and converted at an arbitrary magnification and reduced and displayed on an output device capable of multi-value display. Is mapped to the original image before conversion, the reduction conversion method of the image, in which the value of the conversion pixel of interest is obtained by referring to the values of the original pixels of a plurality of surrounding original images around the conversion pixel, Summing the values of all original pixels inside the horizontal and vertical directions defined by the reference pixel values determined according to the above, and obtaining the added value of the obtained reference pixels in a binary system An M plane in which one pixel is represented by one bit by extracting each digit of the added value to a predetermined position of one byte length or one word length data determined by the order of the conversion pixel up to the number of digits M required when represented by Converting the data into N representing the data of lane one pixel by one bit
Convert to plane data (N is a positive integer less than M)
And a logical operation step of obtaining multi-value display data from N-plane data.
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 JPH02199584A (en) 1990-08-07
JP2636396B2 true 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)

Family Cites Families (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
JPH02199584A (en) 1990-08-07

Similar Documents

Publication Publication Date Title
US5740285A (en) Image reduction/enlargement technique
EP0143533B1 (en) Image data expanding and/or contracting method and apparatus
KR100258919B1 (en) Dithering circuit and method
US7352494B2 (en) Pixel block data generating device and pixel block data generating method
JPS62262188A (en) Picture processor
EP0069542A2 (en) Data processing arrangement
US5680225A (en) Image reduction with fine-line protection
CN112118449B (en) Method and device for compressing and decompressing image
JP2636396B2 (en) Image reduction conversion method
JPS6083852A (en) Character pattern emphasis control system
JPH01303578A (en) Picture converting device
KR100884849B1 (en) System for processing graphic patterns
JP2006094225A (en) Image processing apparatus, image processing method, and its program
JPH0413882Y2 (en)
JP2730399B2 (en) Image data reduction device
US6859205B1 (en) Apparatus and method for drawing lines
JP3209396B2 (en) Image data compression method and apparatus
EP0552544A1 (en) An improved method for decoding compressed images
JPS61208363A (en) Picture magnifying and reducing device
KR100276793B1 (en) Subpixel Mask Generator
JP2658346B2 (en) Parallel image processing device
JP2753349B2 (en) Arbitrary angle rotation image data input / output method, input / output circuit thereof, and electronic file device using the same
JP2833112B2 (en) Change point detection circuit
JPS63102467A (en) Converting device for resolution of picture data
KR900007566B1 (en) Picture data converting device

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