JPH06337928A - Picture processor - Google Patents
Picture processorInfo
- Publication number
- JPH06337928A JPH06337928A JP5148312A JP14831293A JPH06337928A JP H06337928 A JPH06337928 A JP H06337928A JP 5148312 A JP5148312 A JP 5148312A JP 14831293 A JP14831293 A JP 14831293A JP H06337928 A JPH06337928 A JP H06337928A
- Authority
- JP
- Japan
- Prior art keywords
- pixel value
- value
- pixel
- pattern
- density
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000006243 chemical reaction Methods 0.000 claims description 29
- 238000004364 calculation method Methods 0.000 claims description 16
- 238000004220 aggregation Methods 0.000 claims description 2
- 230000002776 aggregation Effects 0.000 claims description 2
- 238000010586 diagram Methods 0.000 description 11
- 238000013139 quantization Methods 0.000 description 5
- 238000000034 method Methods 0.000 description 4
- 238000005070 sampling Methods 0.000 description 3
- 101100087530 Caenorhabditis elegans rom-1 gene Proteins 0.000 description 1
- 101100305983 Mus musculus Rom1 gene Proteins 0.000 description 1
- 238000010606 normalization Methods 0.000 description 1
Landscapes
- Controls And Circuits For Display Device (AREA)
- Image Processing (AREA)
- Facsimile Image Signal Circuits (AREA)
Abstract
Description
【0001】[0001]
【産業上の利用分野】本発明は画像処理装置に関し、特
に2値の文字パタンを階調(濃淡)パタンに変換する画
像処理装置に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image processing apparatus, and more particularly to an image processing apparatus for converting a binary character pattern into a gradation (shade) pattern.
【0002】[0002]
【従来の技術】本発明の先行技術として特公昭63−1
4375号公報(以下文献1という)に開示された発明
がある。文字パターンはフォントメモリと称される文字
パタンROMに、1アドレス1ビットの白黒データのビ
ットパタンとして格納されており、当該文字の文字コー
ドをアドレスとして読み出される。1個の文字の文字パ
タンが、たとえばX方向に48ドット、Y方向に48ド
ットで構成されているとき、出力装置(CRT表示装置
とかプリンタとか)の分解能の都合によってX方向に1
2ドット、Y方向に12ドットで1文字のドットパタン
を構成するように変換しなければならない場合がある。2. Description of the Related Art As a prior art of the present invention, Japanese Patent Publication No. 63-1
There is an invention disclosed in Japanese Patent No. 4375 (hereinafter referred to as Document 1). A character pattern is stored in a character pattern ROM called a font memory as a bit pattern of monochrome data of 1 bit per address, and the character code of the character is read as an address. When the character pattern of one character is composed of, for example, 48 dots in the X direction and 48 dots in the Y direction, it is set to 1 in the X direction depending on the resolution of the output device (CRT display device or printer).
In some cases, it is necessary to perform conversion so as to form a dot pattern for one character with 2 dots and 12 dots in the Y direction.
【0003】このような場合にX方向に12ドット、Y
方向に12ドットの白黒データに変換したのではラスタ
走査に対して斜め方向の輪郭線に階段状のギザギザが表
示されるという問題がある。文献1に開示された発明は
この問題を解決するためのものである。In such a case, 12 dots in the X direction and Y
Converting to black and white data of 12 dots in the direction causes a problem that stepwise jaggedness is displayed on the contour line in an oblique direction with respect to the raster scanning. The invention disclosed in Document 1 is to solve this problem.
【0004】文献1に開示された発明では、1文字48
×48ドットの白黒データ(2値データ)を1文字12
×12の白黒データに変換するのではなく、1文字12
×12の濃淡データ(多値データ)に変換して階段状の
ギザギザが表示されないようにした。48×48ドット
のデータを12×12ドットのデータに変換すると、変
換後の1ドットには変換前の4×4=16ドットが含ま
れるので、この16ドットの中に黒のドットが何個ある
かにより、変換後のドットの濃度を表すことができる。
16ドットの中に含まれる黒のドットの数は、0〜16
の17種類の段階になる。In the invention disclosed in Document 1, one character 48
Black and white data (binary data) of × 48 dots 12 for each character
12 characters per character, not converted to x12 black and white data
It was converted to × 12 grayscale data (multi-valued data) so that stepwise jaggedness was not displayed. When converting 48x48 dot data to 12x12 dot data, one dot after conversion contains 4x4 = 16 dots before conversion, so how many black dots are in this 16 dots? Depending on whether or not there is any, the density of the converted dot can be represented.
The number of black dots included in 16 dots is 0 to 16
There are 17 different stages.
【0005】[0005]
【発明が解決しようとする課題】以上に述べたように文
献1で開示された装置では、表示画像の各画素の濃度レ
ベルと当該画素内に含まれる元のパタン中の論理「1」
のビットの総数との関係が固定されているので、文字パ
タンの線の幅によって表示画像の濃淡が変化するという
問題があった。As described above, in the device disclosed in Document 1, the density level of each pixel of the display image and the logic "1" in the original pattern contained in the pixel are displayed.
Since the relation with the total number of bits of is fixed, there is a problem that the shading of the display image changes depending on the width of the line of the character pattern.
【0006】例えば4×4ドットの元の画像部分を1ド
ットの画素に変換する場合を考えてみると、線の幅が4
ドットである場合、元の画像部分がX軸に平行な直線の
一部分であると、元の画像メモリでは、その16ビット
がすべて論理「1」であるが、線の幅が1ドットであれ
ば、X軸に平行な直線の一部分を表す元の画像メモリに
は4個の論理「1」のビットしか含まれてない。従っ
て、変換後この画像部分を1ドットの画素で表したと
き、元の画像の線幅が1ドットのものは元の画像の線幅
4ドットのものに比し、1/4の濃度で表されることに
なる。このように、元の画像の線幅によって変換後の画
像の濃度レベルが変化することは好ましくなく、特に文
字ごとに濃度レベルがばらつくことは避けなければなら
ない。Consider, for example, the case where the original image portion of 4 × 4 dots is converted into pixels of 1 dot, and the line width is 4
In the case of dots, if the original image portion is a part of a straight line parallel to the X-axis, all 16 bits of the original image memory are logical “1”, but if the line width is 1 dot , The original image memory, which represents a portion of a straight line parallel to the X-axis, contains only four logic "1" bits. Therefore, when this image portion after conversion is represented by 1-dot pixels, the original image with a line width of 1 dot is represented with a density of 1/4 as compared with the original image with a line width of 4 dots. Will be done. As described above, it is not preferable that the density level of the converted image changes depending on the line width of the original image, and in particular, the density level of each character should be prevented from varying.
【0007】本発明は、文献1で開示された装置におけ
る上述の問題点を解決し、文字表示においてラスタ走査
の方向に対し斜めの線にギザギザが生じることなく、か
つ元の文字パタンの線の大きさにより変換後の濃度レベ
ルが変化することのない画像処理装置を提供することを
目的としている。The present invention solves the above-mentioned problems in the device disclosed in Document 1, and in the character display, the lines oblique to the raster scanning direction are not jagged, and the lines of the original character pattern are An object of the present invention is to provide an image processing apparatus in which the density level after conversion does not change depending on the size.
【0008】[0008]
【課題を解決するための手段】本発明ではすべての文字
パタンにおいて各文字の最大濃度のドットの濃度、又は
当該文字パタン中で出現頻度の最も多い濃度のドットの
濃度がすべての文字を通じて一定になるように制御し
た。すなわち、2値信号で表される元の画像のイメージ
メモリから1ドットが多値の濃度で表されるイメージメ
モリに変換するに際しては文献1の方法を用い、変換後
の1ドットに含まれる元のドット中に存在する黒のドッ
ト(メモリでは論理「1」のビット)の数を当該ドット
の画素値とし、一つの文字について画素値が最大なドッ
ト(その画素値を仮にVmax とする)を求め、Vmax の
値に従って定められる関数関係に従って画素値を濃度値
に変換した。According to the present invention, the density of the dot having the maximum density of each character in all the character patterns, or the density of the dot having the highest appearance frequency in the character pattern is constant throughout all the characters. Controlled to be. That is, when the image memory of the original image represented by the binary signal is converted into the image memory in which one dot is represented by multi-valued density, the method of Document 1 is used, The number of black dots (bits of logic "1" in the memory) existing in each dot is the pixel value of the dot, and the dot having the maximum pixel value for one character (the pixel value is assumed to be V max ) Was calculated, and the pixel value was converted into the density value according to the functional relationship determined according to the value of V max .
【0009】また、画素値最大のドットの画素値Vmax
に関連した関数関係を使用するかわりに、当該文字パタ
ン中で出現頻度の最大な画素値に関連した関数関係化を
使用してもよい。以上のような方法で正規化すると、文
字パタンの線幅によって平均的な濃度が変化し、文字ご
とに濃度が変化するという問題は起こらなくなる。Further, the pixel value V max of the dot having the maximum pixel value
Instead of using the functional relation associated with, the functional relation associated with the most frequently occurring pixel value in the character pattern may be used. When the normalization is performed by the above method, the average density changes depending on the line width of the character pattern, and the problem that the density changes for each character does not occur.
【0010】[0010]
【実施例】以下、本発明の実施例を図面について説明す
る。図1は本発明の一実施例を示すブロック図であっ
て、図において、2値パタン入力手段101はアドレス
演算手段111、文字パタンROM112、文字パタン
転送装置113を含む。外部から入力された文字コード
に対する文字パタンの文字パタンROM112でのアド
レスをアドレス演算装置111により算出してROM1
12にアクセスし、読み出したデータ(文字パタンを表
すビットパタン)を文字パタン転送装置113により2
値パタン記憶装置102に転送する。Embodiments of the present invention will now be described with reference to the drawings. FIG. 1 is a block diagram showing an embodiment of the present invention. In the figure, a binary pattern input means 101 includes an address calculation means 111, a character pattern ROM 112, and a character pattern transfer device 113. The address in the character pattern ROM 112 of the character pattern corresponding to the character code input from the outside is calculated by the address arithmetic unit 111, and the ROM 1
12 is accessed, and the read data (bit pattern representing a character pattern) is transferred to the character pattern transfer device 113.
Transfer to the value pattern storage device 102.
【0011】2値パタン記憶装置102は、パタンサイ
ズ記憶部114とパタン記憶部115とを備えている。
図3は2値パタン記憶装置102の記憶内容の一例を示
す図で、片仮名のアの字の文字パタンを48×48画素
に分解し、各画素に対し1ビットのデータ(白黒の2値
データ)が記憶される。記憶装置内の数値は2進数を用
いて表されるが、図3では2進数4ビットをまとめて1
桁の16進数とし2桁の16進数で表す。すなわち、パ
タンサイズ記憶部114の数値30は、10進数に変換
すると48となり、48×48画素のサイズであること
を示す。The binary pattern storage device 102 includes a pattern size storage unit 114 and a pattern storage unit 115.
FIG. 3 is a diagram showing an example of the stored contents of the binary pattern storage device 102. The character pattern of the Katakana character A is decomposed into 48 × 48 pixels, and 1-bit data (black and white binary data ) Is stored. Numerical values in the storage device are represented using binary numbers, but in FIG.
It is a hexadecimal number of two digits and is represented by a two-digit hexadecimal number. That is, the numerical value 30 of the pattern size storage unit 114 becomes 48 when converted into a decimal number, which indicates a size of 48 × 48 pixels.
【0012】パタン記憶部115の縦方向は48区画あ
って48画素に対応する48ビットを表しているが、横
方向では8ビットのビットパタンをまとめて1区画で表
し、6区画で48ビットのビットパターンを表してい
る。例えば、パタン記憶部115の第11行目に、3,
83,ff,・・・とあるのは、「0000,0001
1,1000,0011,1111,1111,・・
・」のようなビットパタンを表している。パタンサイズ
記憶部114の数字30(一般的にはYIN)、30(一
般的にはXIN)の値は、文字パタンROM112に記憶
されている文字パタンのサイズに等しい。The pattern storage unit 115 has 48 sections in the vertical direction and represents 48 bits corresponding to 48 pixels, but in the horizontal direction, 8-bit bit patterns are collectively represented by 1 section, and 6 sections of 48 bits. It represents a bit pattern. For example, in the 11th line of the pattern storage unit 115, 3,
83, ff, ... means "0000001
1,1000,0011,1111,1111, ...
"" Represents a bit pattern. The values of the numbers 30 (generally Y IN ) and 30 (generally X IN ) in the pattern size storage unit 114 are equal to the size of the character pattern stored in the character pattern ROM 112.
【0013】次に、多値化装置103ではパタン記憶部
115の2値パタンを4×4(一般的にはM×N)画素
の開口で走査し、開口内の黒画素数を計数してこれを画
素値として画素値補正パラメータ算出手段105および
多値パタン記憶装置104に出力する。ここで、多値化
装置103での開口の走査を、主走査方向(X方向とす
る)ではM画素間隔、副走査方向(Y方向とする)では
N画素間隔で移動することで、パタン記憶部115上の
すべてのビットを走査することになる。従って多値パタ
ン記憶手段104のパタンサイズ記憶部に記憶されるパ
タンサイズは、XOU=XIN/M, YOU=YIN/Nとな
る。Next, in the multi-value quantization apparatus 103, the binary pattern of the pattern storage unit 115 is scanned with an opening of 4 × 4 (generally M × N) pixels, and the number of black pixels in the opening is counted. This is output to the pixel value correction parameter calculation means 105 and the multi-valued pattern storage device 104 as a pixel value. Here, the pattern storage is performed by moving the aperture scanning in the multi-value quantization apparatus 103 at M pixel intervals in the main scanning direction (X direction) and at N pixel intervals in the sub scanning direction (Y direction). All bits on section 115 will be scanned. Therefore, the pattern sizes stored in the pattern size storage unit of the multi-valued pattern storage unit 104 are X OU = X IN / M and Y OU = Y IN / N.
【0014】図4は図3の2値パタンから多値化装置1
03により生成した多値パタンの一例を示す図で、その
パタン記憶部119は1区画1画素の区分で各画素の画
素値を記憶する。たとえば、図4のパタン記憶部119
の第3行第2列目の数値6は、図3のパタン記憶部11
5の第9〜12行第1列後半のビットパタン「000
0」「0011」「0011」「0011」に含まれる
「1」の総数である。FIG. 4 is a multi-value conversion device 1 from the binary pattern of FIG.
FIG. 3 is a diagram showing an example of a multi-valued pattern generated by 03, in which the pattern storage unit 119 stores the pixel value of each pixel in a section of 1 section and 1 pixel. For example, the pattern storage unit 119 of FIG.
The numerical value 6 in the third row, second column of is the pattern storage unit 11 in FIG.
5, bit pattern "000" in the second half of the 9th row to the 1st column
It is the total number of "1" included in "0", "0011", "0011", and "0011".
【0015】画素値補正パラメータ算出手段105は、
最大画素値レジスタ116と画素値比較装置117とを
備え、多値化装置103から順次入力される画素値から
画素値の最大値Vmax を定める。すなわち、最大画素値
レジスタ116の初期値を0としておき、多値化装置1
03から入力される画素値とレジスタ116の内容とを
画素値比較装置117で比較し、入力される画素値の方
がレジスタ116の内容より大きいときは入力される画
素値をレジスタ116に記憶する。このようにすること
により、多値化装置103による走査が終了した時点で
のレジスタ116の内容は、各文字パタンについてのV
max を表すことになる。多値パターン記憶手段104上
のすべての画素値を処理し終えた後にVmax を画素値変
換手段106へ出力する。The pixel value correction parameter calculation means 105 is
The maximum pixel value register 116 and the pixel value comparison device 117 are provided, and the maximum value V max of pixel values is determined from the pixel values sequentially input from the multi-value quantization device 103. That is, the initial value of the maximum pixel value register 116 is set to 0, and the multi-value quantization apparatus 1
The pixel value input from 03 and the content of the register 116 are compared by the pixel value comparison device 117, and when the input pixel value is larger than the content of the register 116, the input pixel value is stored in the register 116. . By doing so, the content of the register 116 at the time when the scanning by the multi-value quantization apparatus 103 is completed is the V for each character pattern.
will represent max . After processing all pixel values on the multi-valued pattern storage means 104, V max is output to the pixel value conversion means 106.
【0016】Vmax の値は文字パタンによって異なる
が、画素値変換手段106ではすべての文字のVmax に
対し同一の濃度値Dを対応させる。この場合のDは最大
濃度値Dmax とする。すなわち、濃度レベルが0,1,
2,3の4階調で出力されるとすれば、Vmax に対する
濃度は3(=Dmax )となる。画素値がxである画素の
濃度Dx は、Dx =x(Dmax /Vmax )・・・(1)
で算出される。画素値変換手段106は式(1)を用い
た演算によってすべての画素値(x)に対応するDx を
算出して画素値変換テーブル120を作成する。Although the value of V max differs depending on the character pattern, the pixel value converting means 106 associates the same density value D with V max of all characters. In this case, D is the maximum density value D max . That is, the density level is 0, 1,
If four gradations of 2 and 3 are output, the density for V max is 3 (= D max ). The concentration D x of the pixel a pixel value is x, D x = x (D max / V max) ··· (1)
It is calculated by. The pixel value conversion unit 106 calculates D x corresponding to all pixel values (x) by the calculation using the equation (1) and creates the pixel value conversion table 120.
【0017】図7は画素値変換テーブルの一例を示す。
画素値は元の2値パタンの16ビットが全部「0」(x
=0)から16ビットが全部「1」(x=16)の17
種類存在可能であるが、図4に示す例ではVmax =e
(=14)である。従って画素値14以上のものは(図
4の例ではx=15,16は存在しないが)濃度値が3
となる。画素値xに対する濃度値は式(1)から算出さ
れるが、濃度値には4階調しかないので計算結果の小数
点以下をどう処理するかによって、画素値変換テーブル
120の内容は多少変化するが、この変化によって本質
的な影響が生ずることはない。すなわち、xとDx との
関係は比例関係である必要はなく、単純に増加する関数
関係であればよい。FIG. 7 shows an example of the pixel value conversion table.
For the pixel value, all 16 bits of the original binary pattern are "0" (x
= 0) 16 bits are all "1" (x = 16) 17
There can be types, but in the example shown in FIG. 4, V max = e
(= 14). Therefore, if the pixel value is 14 or more (x = 15, 16 does not exist in the example of FIG. 4), the density value is 3
Becomes The density value for the pixel value x is calculated from the equation (1), but since the density value has only four gradations, the content of the pixel value conversion table 120 changes slightly depending on how to process the decimal point of the calculation result. However, this change has no substantial effect. That is, the relationship between x and D x does not have to be a proportional relationship, and may be a functional relationship that simply increases.
【0018】次に、画素値書き込み器121により、多
値パタン記憶手段104のパタン記憶部119の各画素
値を画素値変換テーブル120に従って変換する。図4
のパタン記憶部119が変換された濃度変換後の多値パ
タンを図5に示す。階調パタン出力手段107は図5に
示す多値パタンを読み出しD/A変換器122により濃
度値をアナログ信号に変換して表示装置108に表示す
る。Next, the pixel value writer 121 converts each pixel value in the pattern storage unit 119 of the multi-valued pattern storage means 104 according to the pixel value conversion table 120. Figure 4
FIG. 5 shows a multi-valued pattern after density conversion, which has been converted by the pattern storage unit 119 of FIG. The gradation pattern output means 107 reads the multi-valued pattern shown in FIG. 5 and converts the density value into an analog signal by the D / A converter 122 and displays it on the display device 108.
【0019】図2は本発明の他の実施例を示すブロック
図で、図において図1と同一符号は同一部分を示し、そ
の動作も同一であるので説明を省略する。図1の実施例
では画素値補正パラメータ算出手段は各文字パタンにつ
いて最大画素値を全文字パタンを通じて一定の最大濃度
値に対応させたが、図2に示す実施例では、各文字パタ
ンについて出現頻度最大の画素値を全文字パタンを通じ
て一定の濃度値に対応させた。FIG. 2 is a block diagram showing another embodiment of the present invention. In the figure, the same reference numerals as those in FIG. 1 indicate the same parts, and the operation thereof is also the same, so that the description thereof will be omitted. In the embodiment of FIG. 1, the pixel value correction parameter calculation means makes the maximum pixel value for each character pattern correspond to a constant maximum density value through all character patterns, but in the embodiment shown in FIG. 2, the appearance frequency for each character pattern. The maximum pixel value was made to correspond to a constant density value through all character patterns.
【0020】画素値補正パラメータ算出手段201はヒ
ストグラム生成装置211とメディアン値レジスタ21
2とヒストグラム集計装置213を持つ。ヒストグラム
生成装置には0〜16の17種類の画素値に対応して1
7個のカウンタを持ち、初期化の時点ではすべてのカウ
ンタはクリアされ、多値化装置103により画素値が決
定されるごとにその画素値に対応するカウンタに数値1
が加えられる。図4のパタン記憶部119のすべての画
素値が決定された後のヒストグラム生成装置211の各
カウンタの計数値は、たとえば図6のようになってい
る。The pixel value correction parameter calculation means 201 comprises a histogram generation device 211 and a median value register 21.
2 and the histogram totaling device 213. The histogram generator has 1 corresponding to 17 kinds of pixel values of 0 to 16.
It has seven counters, all counters are cleared at the time of initialization, and each time the pixel value is determined by the multilevel halftoning device 103, a numerical value 1 is added to the counter corresponding to that pixel value.
Is added. The count value of each counter of the histogram generation device 211 after all the pixel values of the pattern storage unit 119 of FIG. 4 are determined is as shown in FIG. 6, for example.
【0021】画素値0のものを除き出現度数最大のもの
は画素値8であり、単純に画素値8をメディアン値レジ
スタ212に記憶してもよい。また、画素値7以下の画
素値の出現度数(画素値0を除く)と画素値7以上の画
素値の出現度数が同一(ほぼ同一であればよい)である
ことをヒストグラム集計装置213により計算し、メデ
ィアン値レジスタ212には画素値7を記憶してもよ
い。The pixel with the highest appearance frequency except the pixel value 0 is the pixel value 8, and the pixel value 8 may be simply stored in the median value register 212. In addition, the histogram aggregation device 213 calculates that the frequency of appearance of pixel values of pixel value 7 or less (excluding pixel value 0) and the frequency of appearance of pixel values of pixel value 7 or more are the same (substantially the same). However, the pixel value 7 may be stored in the median value register 212.
【0022】画素値変換手段202はメディアン値レジ
スタ212からメディアン値を入力し、このメディアン
値に対応する濃度値を定めて画素変換テーブル213を
作成する。図6に示す画素値ヒストグラムの例で言え
ば、画素値7または8に対応する濃度値を2にする。濃
度レベル0,1,2,3のうち濃度レベル0を除くと、
濃度レベル2を出現度数が最多の濃度とするとよい。メ
ディアン値レジスタの画素値をVmid 、これに対応する
濃度をDmid とすると、画素値xに対応する濃度値Dx
は、Dx =x(Dmid /Vmid )・・(2)となる。但
し、上述の例ではDx の最大値は3である。The pixel value conversion means 202 inputs the median value from the median value register 212, determines the density value corresponding to this median value, and creates the pixel conversion table 213. In the example of the pixel value histogram shown in FIG. 6, the density value corresponding to the pixel value 7 or 8 is set to 2. Excluding density level 0 among density levels 0, 1, 2, and 3,
It is advisable to set the density level 2 to the density having the highest appearance frequency. If the pixel value of the median value register is V mid and the density corresponding thereto is D mid , the density value D x corresponding to the pixel value x
Becomes D x = x (D mid / V mid ) ... (2). However, in the above example, the maximum value of D x is 3.
【0023】以上の記述では説明の便宜のために数値例
を用いて説明したが、本願発明がこれら数値例により限
定されるものでないことは申すまでもない。また、2値
パタン記憶装置102の4×4ビットのデータを多値パ
タン記憶装置104の1画素のデータとする場合を説明
したが、これはM×Nビットのデータを1画素のデータ
とする場合のM=N=4である数値例についての説明で
あり、更に一般的に言えば、2値パタン記憶装置上に複
数の標本点を選んで2値パタンを再標本化し、標本点の
近傍の論理「1」のビットの数で当該標本点の画素値を
決定する方法の数値例による説明である。また、画素値
補正パラメータ算出手段105は、各文字パタンにおけ
る最大画素値または出現度数最大の画素値に対応する濃
度を全文字パタンに対して同一にしたが、たとえば画素
値の平均値など一般的に各文字パタン内において予め定
める順位にある画素値に対応する濃度を全文字パタンに
対し同一濃度にすることもできる。In the above description, numerical examples are used for convenience of explanation, but it is needless to say that the present invention is not limited to these numerical examples. Further, the case has been described in which the 4 × 4 bit data of the binary pattern storage device 102 is used as the 1-pixel data of the multi-value pattern storage device 104, but this assumes that the M × N bit data is the 1-pixel data. In the case of M = N = 4 in the case, more generally speaking, a plurality of sampling points are selected on the binary pattern storage device, the binary pattern is resampled, and the neighborhood of the sampling point is selected. Is a numerical example of a method of determining the pixel value of the sample point by the number of bits of logic "1". Further, the pixel value correction parameter calculation unit 105 sets the density corresponding to the maximum pixel value or the pixel value with the maximum appearance frequency in each character pattern to be the same for all character patterns. In addition, the density corresponding to the pixel value in a predetermined order in each character pattern can be the same for all character patterns.
【0024】[0024]
【発明の効果】以上説明したように、本発明による画像
処理装置は、2値パタンを再標本化し標本点の近傍画素
の値から出力画素値を算出することにより多値パタンを
生成し、生成された多値パタンの画素値の値ごとの出現
度数の分布に基づいて多値パタンの画素値を濃度値に変
換することにより入力パタンごとの濃度の不揃いを抑制
し、特に文字画像などでは、個々に処理した文字パタン
を並べて表示する際にも濃度の不揃いを抑制し、読み易
い文字列画像を生成することができる。As described above, the image processing apparatus according to the present invention generates a multi-valued pattern by re-sampling a binary pattern and calculating an output pixel value from the values of pixels in the vicinity of the sample point. By suppressing the unevenness of the density of each input pattern by converting the pixel value of the multi-valued pattern into the density value based on the distribution of the appearance frequency for each value of the pixel value of the multi-valued pattern, especially in a character image, Even when the character patterns that have been individually processed are displayed side by side, it is possible to suppress unevenness in density and generate an easily readable character string image.
【図1】本発明の一実施例を示すブロック図ある。FIG. 1 is a block diagram showing an embodiment of the present invention.
【図2】本発明の他の実施例を示すブロック図ある。FIG. 2 is a block diagram showing another embodiment of the present invention.
【図3】本発明の2値パタン記憶装置の記憶内容の一例
を示す図である。FIG. 3 is a diagram showing an example of stored contents of a binary pattern storage device of the present invention.
【図4】本発明の多値パタン記憶手段に記憶された画素
値の一例を示す図である。FIG. 4 is a diagram showing an example of pixel values stored in a multi-valued pattern storage means of the present invention.
【図5】本発明の多値パタン記憶手段に記憶された濃度
値の一例を示す図である。FIG. 5 is a diagram showing an example of density values stored in a multi-valued pattern storage means of the present invention.
【図6】本発明の画素値ヒストグラムの一例を示す図で
ある。FIG. 6 is a diagram showing an example of a pixel value histogram of the present invention.
【図7】本発明の画素値変換テーブルの一例を示す図で
ある。FIG. 7 is a diagram showing an example of a pixel value conversion table of the present invention.
101 2値パタン入力手段 102 2値パタン記憶装置 103 多値化装置 104 多値パタン記憶手段 105 画素値補正パラメータ算出手段 106 画素値変換手段 107 階調パタン出力手段 108 表示装置 111 アドレス演算装置 112 文字パタンROM 113 文字パタン転送装置 114 パタンサイズ記憶部 115 パタン記憶部 116 最大画素レジスタ 117 画素比較装置 119 パタン記憶部 120 画素値変換テーブル 121 画素値書き込み器 122 D/A変換器 201 画素値補正パラメータ算出手段 202 画素値変換手段 211 ヒストグラム生成手段 212 メディアン値レジスタ 213 画素値変換テーブル 101 binary pattern input means 102 binary pattern storage device 103 multi-value conversion device 104 multi-value pattern storage means 105 pixel value correction parameter calculation means 106 pixel value conversion means 107 gradation pattern output means 108 display device 111 address calculation device 112 characters Pattern ROM 113 Character pattern transfer device 114 Pattern size storage unit 115 Pattern storage unit 116 Maximum pixel register 117 Pixel comparison device 119 Pattern storage unit 120 Pixel value conversion table 121 Pixel value writer 122 D / A converter 201 Pixel value correction parameter calculation Means 202 Pixel value conversion means 211 Histogram generation means 212 Median value register 213 Pixel value conversion table
Claims (6)
り各画素のデータを表す画像パタンを生成し出力する2
値パタン入力手段、 この2値パタン入力手段から前記画像パタンを入力し、
元の画像中の画素の座標位置に対応するアドレス位置に
前記画像パタンを構成する2値信号を格納する2値パタ
ン記憶装置、 この2値パタン記憶装置上設計で定める各点を標本点と
し、各標本点について当該標本点から所定の範囲内にあ
る2値信号のうち論理「1」のビットの総数を当該標本
点に対応する画素の画素値として再標本化する多値化装
置、 この多値化装置により再標本化された画素値を入力し、
当該画素値が算出された標本点の座標位置に対応するア
ドレス位置に各画素値を格納する多値パタン記憶手段、 前記多値化装置により再標本化される画素値に関し1画
像パタン中の画素値の所定の順序のものを所定の濃度値
に対応させることによって、画素値・濃度値変換パラメ
ータを決定する画素値補正パラメータ算出手段、 前記多値パタン記憶手段の各標本点に記憶される画素値
を前記画素値・濃度変換パラメータを用いて対応する濃
度値に変換する画素値変換手段、 を備えた画像処理装置。1. An image pattern representing data of each pixel is generated and output by a binary signal of logic "0" or "1".
Value pattern input means, inputting the image pattern from the binary pattern input means,
A binary pattern storage device that stores a binary signal that constitutes the image pattern at an address position corresponding to the coordinate position of a pixel in the original image, and each point determined by design on this binary pattern storage device is a sample point, For each sample point, a multi-valued device that resamples the total number of bits of logic "1" in a binary signal within a predetermined range from the sample point as a pixel value of a pixel corresponding to the sample point, Input the pixel value resampled by the quantizer,
A multi-valued pattern storage means for storing each pixel value at an address position corresponding to the coordinate position of the sample point where the pixel value is calculated, and a pixel in one image pattern regarding the pixel value re-sampled by the multi-valued device. Pixel value correction parameter calculation means for determining a pixel value / density value conversion parameter by associating values in a predetermined order with a predetermined density value, and pixels stored at each sample point of the multi-valued pattern storage means. An image processing apparatus comprising: a pixel value conversion means for converting a value into a corresponding density value using the pixel value / density conversion parameter.
段は、当該画像パタン中の最大の画素値を全画像パタン
を通じて最大の濃度値に対応させることを特徴とする画
像処理装置。2. The image processing apparatus according to claim 1, wherein the pixel value correction parameter calculation means associates the maximum pixel value in the image pattern with the maximum density value in the entire image pattern.
段は、最大画素値レジスタと画素値比較装置とを備え、
初期化時点で前記最大画素値レジスタの内容を0にし、
前記多値化装置により再標本化されて出力する画素値と
前記最大画素値レジスタの内容を前記画素値比較装置で
比較し、前記多値化装置の出力する画素値の方が大きい
ときは該画素値を前記最大画素値レジスタに入力するこ
とを特徴とする画像処理装置。3. The pixel value correction parameter calculation means according to claim 2, comprising a maximum pixel value register and a pixel value comparison device,
At the time of initialization, the content of the maximum pixel value register is set to 0,
The pixel value output by being resampled by the multi-valued device and the content of the maximum pixel value register are compared by the pixel value comparison device, and when the pixel value output by the multi-valued device is larger, An image processing apparatus, wherein a pixel value is input to the maximum pixel value register.
段は、当該画像パタン中の出現度数最大の画素値を全画
像パタンを通じて一定の濃度値に対応させることを特徴
とする画像処理装置。4. The image processing apparatus according to claim 1, wherein the pixel value correction parameter calculation means associates a pixel value having the maximum appearance frequency in the image pattern with a constant density value throughout the entire image pattern.
段は、ヒストグラム生成手段とメディアン値レジスタと
ヒストグラム集計装置とを備え、前記多値化装置により
再標本化されて出力する画素値のヒストグラムを生成
し、このヒストグラムからそのメディアン値を算出し、
算出したメディアン値を前記出現度数最大の画素値とす
ることを特徴とする画像処理装置。5. The pixel value correction parameter calculation means according to claim 4 comprises a histogram generation means, a median value register, and a histogram aggregation device, and a histogram of pixel values output by being resampled by the multivalued device is output. Generate, calculate the median value from this histogram,
An image processing apparatus, wherein the calculated median value is set as the pixel value having the maximum appearance frequency.
変換手段は、画素値変換テーブルと画素値書き込み器と
を備え、前記画素値・濃度値変換パラメータに従って各
画素値に対応する濃度値を決定して前記画素値変換テー
ブルに記憶し、前記画素値書き込み器は前記画素値変換
テーブルを参照して前記多値パタン記憶手段の記憶する
画素値の値を対応する濃度値に書き換えることを特徴と
する画像処理装置。6. The image processing apparatus according to claim 1, wherein the pixel value conversion means comprises a pixel value conversion table and a pixel value writer, and obtains a density value corresponding to each pixel value according to the pixel value / density value conversion parameter. It is determined and stored in the pixel value conversion table, and the pixel value writer refers to the pixel value conversion table and rewrites the value of the pixel value stored in the multi-valued pattern storage means to a corresponding density value. Image processing device.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP5148312A JPH06337928A (en) | 1993-05-28 | 1993-05-28 | Picture processor |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP5148312A JPH06337928A (en) | 1993-05-28 | 1993-05-28 | Picture processor |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH06337928A true JPH06337928A (en) | 1994-12-06 |
Family
ID=15449979
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP5148312A Pending JPH06337928A (en) | 1993-05-28 | 1993-05-28 | Picture processor |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH06337928A (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US6546151B1 (en) | 1998-01-22 | 2003-04-08 | Matsushita Electric Industrial Co., Ltd | Information processing apparatus and information equipment using the information processing apparatus |
Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH0311876A (en) * | 1989-06-09 | 1991-01-21 | Canon Inc | Picture element density converter |
| JPH03135677A (en) * | 1989-10-20 | 1991-06-10 | Matsushita Electric Ind Co Ltd | Method and device for reduction of image |
-
1993
- 1993-05-28 JP JP5148312A patent/JPH06337928A/en active Pending
Patent Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH0311876A (en) * | 1989-06-09 | 1991-01-21 | Canon Inc | Picture element density converter |
| JPH03135677A (en) * | 1989-10-20 | 1991-06-10 | Matsushita Electric Ind Co Ltd | Method and device for reduction of image |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US6546151B1 (en) | 1998-01-22 | 2003-04-08 | Matsushita Electric Industrial Co., Ltd | Information processing apparatus and information equipment using the information processing apparatus |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US6686922B2 (en) | Adaptive thresholding using loose gray scale template matching | |
| US6757431B2 (en) | Resolution conversion for anti-aliased images using loose gray scale template matching | |
| KR100223495B1 (en) | Image processing method and apparatus | |
| JPH11341286A (en) | Image processing method including pixels from which aliases have been removed | |
| US6582046B1 (en) | Method and device for image processing | |
| US5862305A (en) | Logic filters for resolution conversion of digital images | |
| US5758034A (en) | Video path architecture including logic filters for resolution conversion of digital images | |
| JPH07322057A (en) | Increase of resolution of binary input picture and its increasing device together with improvement of appearance ofbinary input picture | |
| JP2856420B2 (en) | Character pattern data generation method | |
| US20060285167A1 (en) | Image processing method and a recording medium storing image processing program | |
| JPH06337928A (en) | Picture processor | |
| CN108269233B (en) | A Text Dithering Method Based on Shading Halftone | |
| US6741751B1 (en) | Logic based tagging for hyperacuity rendering of an input image with a 5×5 context | |
| US6567565B1 (en) | Antialiased image rendering algorithm | |
| JP3581460B2 (en) | Image processing method and apparatus | |
| JP3539552B2 (en) | Image processing device | |
| US7345790B2 (en) | Method and apparatus for simulating 2 bit-per-pel printing on a bi-level printer using intelligent double dotting | |
| KR100440944B1 (en) | Binary image resolution reducing method and device simplifying resolution reduction algorithm | |
| JP2755313B2 (en) | Image processing device | |
| JPH05110854A (en) | Image processing method and apparatus thereof | |
| JP2878695B2 (en) | Image processing apparatus and multi-value image estimation method | |
| JPH0668250A (en) | Image processing device | |
| JPS6226632B2 (en) | ||
| JPH09191405A (en) | Gradation processing system | |
| JPH10224620A (en) | Image processing method and apparatus |