Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JPH04431B2 - - Google Patents
[go: Go Back, main page]

JPH04431B2 - - Google Patents

Info

Publication number
JPH04431B2
JPH04431B2 JP58057525A JP5752583A JPH04431B2 JP H04431 B2 JPH04431 B2 JP H04431B2 JP 58057525 A JP58057525 A JP 58057525A JP 5752583 A JP5752583 A JP 5752583A JP H04431 B2 JPH04431 B2 JP H04431B2
Authority
JP
Japan
Prior art keywords
prediction
signal
prediction error
error signal
halftone
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
JP58057525A
Other languages
Japanese (ja)
Other versions
JPS59183577A (en
Inventor
Takao Oomachi
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.)
NEC Corp
Original Assignee
Nippon Electric Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nippon Electric Co Ltd filed Critical Nippon Electric Co Ltd
Priority to JP58057525A priority Critical patent/JPS59183577A/en
Publication of JPS59183577A publication Critical patent/JPS59183577A/en
Publication of JPH04431B2 publication Critical patent/JPH04431B2/ja
Granted legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T9/00Image coding
    • G06T9/001Model-based coding, e.g. wire frame

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Color Image Communication Systems (AREA)

Description

【発明の詳細な説明】 本発明はスクリーン角度および網点ピツチの異
なるカラー網点写真を含む画像を符号化するカラ
ー画像符号化装置に関するものである。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a color image encoding device for encoding an image including color halftone photographs having different screen angles and halftone dot pitches.

一般に雑誌、新聞等におけるカラー印刷では、
シアン、マゼンダ、イエロー、ブラツクの4色の
網点画像を重ねて印刷する多色製版を行なつてい
る。この多色製版においては、各色の網点画像を
重ねた事による「モアレ」(多様に変化する不安
定な模様)の発生を防ぐため、各色の網点画像の
スクリーン角度(網点の格子と画像の水平方向と
がなす角度)を違えている。
In general, color printing in magazines, newspapers, etc.
Multicolor plate making is used to print overlapping halftone images in four colors: cyan, magenta, yellow, and black. In this multicolor plate making, in order to prevent the occurrence of "moiré" (an unstable pattern that changes in various ways) due to the overlapping of halftone dot images of each color, the screen angle of the halftone dot image of each color (halftone lattice and The angle between the image and the horizontal direction is different.

第1図はモアレを防ぐためのスクリーン角度の
一例でシアン15゜、マゼンダ75゜、イエロー30゜、ブ
ラツク45゜の場合を示している。
Figure 1 shows an example of screen angles for preventing moiré, with cyan at 15 degrees, magenta at 75 degrees, yellow at 30 degrees, and black at 45 degrees.

実際の多色製版においてはスクリーン角度の組
合せはこの1種類だけでなく、シアン75゜、マゼ
ンダ45゜、イエロー0゜、ブラツク15゜の組合せやシ
アン15゜、マゼンダ45゜、イエロー0゜、ブラツク75゜
の組合せもある。さらに網点ピツチ(網点の中心
間の距離)も要求される画像の品質によつて変化
し、1インチの中の網点の個数が60程度のものか
ら300程度のものまで多くの種類がある。
In actual multicolor plate making, the combination of screen angles is not limited to this one, but also combinations of cyan 75°, magenta 45°, yellow 0°, black 15°, and cyan 15°, magenta 45°, yellow 0°, black. There is also a 75° combination. Furthermore, the halftone dot pitch (distance between the centers of halftone dots) also changes depending on the required image quality, and there are many types, ranging from about 60 to 300 halftone dots per inch. be.

またカラー印刷画像にはこのような網点写真以
外に文字や線画のようなものも存在する。
In addition to such halftone photographs, color printed images also include characters and line drawings.

従来新聞等の網点写真を含んだ紙面に対する符
号化装置として特許願昭53−115357号明細書に示
されたように網点写真用の予測器と文字用の予測
器を適応的に切り替える装置は存在するが、網点
写真のスクリーン角度が一定のものを対象として
いる。
A device for adaptively switching between a predictor for halftone photographs and a predictor for characters, as disclosed in Patent Application No. 53-115357, as a conventional encoding device for pages containing halftone photographs such as newspapers. exists, but it is intended for those where the screen angle of the halftone photograph is constant.

このため、従来の符号化装置を多種のスクリー
ン角度や網点ピツチで構成される網点写真を含む
画像に対して用いた場合は、データ圧縮効率が低
くなるという欠点が生じる。
For this reason, when a conventional encoding device is used for an image including a halftone photograph composed of various screen angles and halftone dot pitches, a drawback arises in that the data compression efficiency is low.

本発明の目的は上述の従来の符号化装置の欠点
を除去した、カラー画像符号化装置を提供する事
にある。
SUMMARY OF THE INVENTION An object of the present invention is to provide a color image encoding device that eliminates the drawbacks of the conventional encoding devices described above.

本発明のカラー画像符号化装置はスクリーン角
度および網点ピツチの異なるカラー網点写真を含
む画像を符号化する装置で、MとNを正整数と
し、少なくとも前記カラー網点写真のM種類のス
クリーン角度とN種類の網点ピツチからなるM×
N種類の組合わせのそれぞれに合わせて参照画素
配置を設定できる予測手段と、前記予測手段から
得られる予測誤差信号および予測状態信号をブロ
ツク単位で区切る手段と、前記区切られた予測誤
差信号の予測はずれの画素数を前記参照画素の配
置を変えて比較し、いずれか1組の予測誤差信号
および予測状態信号を選択する手段と、前記選択
結果と前記選択された予測状態信号とに基づいて
前記選択された予測誤差信号を符号化する符号化
手段とから構成されることを特徴とする。
The color image encoding apparatus of the present invention is an apparatus for encoding an image including color halftone photographs having different screen angles and halftone dot pitches, where M and N are positive integers, and at least M types of screens of the color halftone photographs are encoded. Mx consisting of angle and N types of halftone dot pitches
a prediction means capable of setting a reference pixel arrangement according to each of the N types of combinations; a means for dividing a prediction error signal and a prediction state signal obtained from the prediction means into blocks; and prediction of the divided prediction error signal. means for comparing the number of out-of-place pixels by changing the arrangement of the reference pixels, and selecting any one set of a prediction error signal and a prediction state signal; and encoding means for encoding the selected prediction error signal.

本発明のカラー画像符号化装置は、予測手段と
して複数のスクリーン角度と網点ピツチの各組合
せにそれぞれ合わせて参照画素配置を設定できる
予測手段を用い、1/m(mは正整数)走査線単位 で予測誤差信号の予測はずれの画素数を参照画素
配置を変えて比較し、いずれか1つの予測手段を
選び、その予測誤差信号を効率良く符号化する事
によつて、多種のスクリーン角度および網点ピツ
チで構成される網点写真を含んだ画像の情報量を
大幅に減少できる効果を有する。
The color image encoding device of the present invention uses a prediction means that can set a reference pixel arrangement according to each combination of a plurality of screen angles and halftone dot pitches as a prediction means, and uses a 1/m (m is a positive integer) scanning line By comparing the number of mispredicted pixels of the prediction error signal by changing the reference pixel arrangement, selecting one of the prediction methods, and efficiently encoding the prediction error signal, it is possible to This has the effect of greatly reducing the amount of information of an image containing a halftone photograph composed of halftone dot pitches.

以下本発明について実施例を示す図面を参照し
て説明する。
The present invention will be described below with reference to drawings showing embodiments.

第2図は本発明の一実施例を示すブロツク図で
あり、説明を容易にするため網点写真用としてス
クリーン角度が2種類(角度1、角度2)、網点
ピツチが2種類(ピツチ1、ピツチ2)から成る
計4種類の組合せ(角度1−ピツチ1)(角度1
−ピツチ2)(角度2−ピツチ1)(角度2−ピツ
チ2)に適合した予測器と、文字に適合した1種
類の予測器との、合計5種類の予測器を用いた場
合の符号化装置を示している。
FIG. 2 is a block diagram showing one embodiment of the present invention. For ease of explanation, there are two types of screen angles (angle 1 and angle 2) and two types of dot pitches (angle 1 and 2) for halftone photographs. , Pitch 2), a total of 4 types of combinations (Angle 1 - Pitch 1) (Angle 1
- Encoding using a total of 5 types of predictors: a predictor adapted to pitch 2) (angle 2 - pitch 1) (angle 2 - pitch 2) and one type of predictor adapted to characters The device is shown.

第2図において網点写真と文字等を含む画像信
号1(例えば、走査線1ライン分)は、タイミン
グ発生回路9によりクロツク2および位相信号3
をもとに作られる制御信号に従つて、それぞれ文
字用予測器4と写真用予測器5〜8(文字用第3
図A、写真用は第3図B〜Eに示す2種類のスク
リーン角度と2種類の網点ピツチを組合わせた参
照画素をそれぞれ用いた予測器であり、レジスタ
とリード、オンリー・メモリ、との組合せにより
容易に実現でき、特許願昭53−20457号明細書に
示された予測器に予測状態信号を出力するリー
ド・オンリーメモリを付加したものである)によ
り予測誤差信号および予測状態信号に変換され
る。
In FIG. 2, an image signal 1 (for example, one scanning line) containing halftone photographs, characters, etc. is outputted by a timing generation circuit 9 to a clock 2 and a phase signal 3.
According to the control signal generated based on
The predictors shown in Figure A and for photographs use reference pixels that combine two types of screen angles and two types of dot pitches shown in Figures B to E, and have register, read, only memory, and This can be easily realized by combining the prediction error signal and the prediction state signal by adding a read-only memory for outputting the prediction state signal to the predictor shown in patent application No. 53-20457. converted.

前記予測誤差信号は論理積ゲート10〜14を
介してカウンター15〜19とシフトレジスタ2
0に入力され、前記予測状態信号はシフトレジス
タ21に入力される。カウンター15〜19に入
力された予測誤差信号は、論理積ゲート10〜1
4においてタイミング発生回路9から供給される
クロツクと論理積をとられることにより予測はず
れの部分だけが数えられる。比較器23では、一
走査線をm等分した長さを1ブロツクとし、1ブ
ロツク単位でカウンター15〜19の値が比較さ
れ、最も値の小さいものを選択する制御信号が出
力される。これは新聞等の一走査線内には、文字
および写真の部分が混在するため、n等分した単
位、例えば、1024画素単位紙面の大きさで言えば
2.5cm単位等の細かい単位で予測はずれの個数を
比較し、選択した方が高い圧縮率が得られるから
である。シフトレジスタ20及び21は、1ブロ
ツクの遅延線であり、予測器4〜8から入力され
た予測誤差信号及び予測状態信号は、タイミング
発生回路9の制御のもとで1ブロツク遅らされマ
ルチプレクサ24および25に入力される。マル
チプレクサ24および25では、比較器23の制
御信号に従つてシフトレジスタ20および21で
遅らされた予測誤差信号および予測状態信号のう
ち一組の予測誤差信号と予測状態信号が選択され
符号器26に与えられる。符号器26は予測器を
選択する制御信号と予測誤差信号と予測状態信号
とを用いて符号化を行い符号27を出力する。こ
こで使用される符号器26は予測状態信号によつ
て予測誤差信号をいくつかのグループに分け、符
号化を行う第5図に示すような符号器である。
The prediction error signal is passed through AND gates 10 to 14 to counters 15 to 19 and shift register 2.
0, and the predicted state signal is input to the shift register 21. The prediction error signals input to counters 15 to 19 are input to AND gates 10 to 1.
At step 4, the clock signal supplied from the timing generation circuit 9 is ANDed, so that only the portions where the prediction is incorrect are counted. In the comparator 23, the length of one scanning line divided into m equal parts is defined as one block, and the values of the counters 15 to 19 are compared in units of one block, and a control signal for selecting the one with the smallest value is output. This is because text and photographs are mixed in one scanning line of newspapers, etc., so the size of the paper is divided into n equal parts, for example, 1024 pixels.
This is because a higher compression ratio can be obtained by comparing and selecting the number of predicted errors in small units such as 2.5 cm. The shift registers 20 and 21 are one-block delay lines, and the prediction error signals and prediction state signals inputted from the predictors 4 to 8 are delayed by one block under the control of the timing generation circuit 9 and sent to the multiplexer 24. and 25. The multiplexers 24 and 25 select one set of the prediction error signal and the prediction state signal from among the prediction error signal and the prediction state signal delayed by the shift registers 20 and 21 in accordance with the control signal of the comparator 23, and the encoder 26 selects one set of the prediction error signal and the prediction state signal. given to. The encoder 26 performs encoding using a control signal for selecting a predictor, a prediction error signal, and a prediction state signal, and outputs a code 27. The encoder 26 used here is an encoder as shown in FIG. 5, which divides the prediction error signal into several groups according to the prediction state signal and encodes them.

第3図AからEは第2図の予測器4〜8に用い
られる参照画素の一例を示す図である。第3図A
は文字用予測に適した参照画素配置例であり、注
目画素(現在予測を行なおうとしている対象画
素)の近傍に位置するa〜lの12画素を参照画素
として用いている。第3図BとCはスクリーン角
度15゜の網点写真の予測に適した参照画素配置例
であり、第3図DとEはスクリーン角度30゜の網
点写真の予測に反した参照画素配置例である。B
〜Eの参照画素配置はいずれも注目画素xの近傍
3画素a〜cと、注目画素xからスクリーン角度
に応じて網点ピツチPだけ離れた9画素d〜lと
の計12画素からできている。BとDはP1の網点
ピツチに合わせた配置であり、CとEはP2の網
点ピツチに合わせた配置である。
FIGS. 3A to 3E are diagrams showing examples of reference pixels used in the predictors 4 to 8 of FIG. 2. Figure 3A
is an example of a reference pixel arrangement suitable for character prediction, in which 12 pixels a to l located near the pixel of interest (the target pixel for which prediction is currently being performed) are used as reference pixels. Figures 3B and C are examples of reference pixel placements that are suitable for predicting halftone photographs with a screen angle of 15°, and Figures 3D and E are examples of reference pixel placements that are contrary to the prediction of halftone photographs with a screen angle of 30°. This is an example. B
The reference pixel arrangement of ~E is made up of a total of 12 pixels: three pixels a to c near the pixel of interest x, and nine pixels d to l located a halftone pitch P away from the pixel of interest x depending on the screen angle. There is. B and D are arranged to match the dot pitch of P1 , and C and E are arranged to match the dot pitch of P2 .

第1図の実施例では説明を容易にするために、
網点写真に対しスクリーン角度2種類、網点ピツ
チ2種類の組合せから成る4種類の予測器を用い
た場合について述べたが、実際のスクリーン角度
としては15゜、30゜、45゜、60゜、75゜、90゜の6種類

網点ピツチも5〜10種類程度は必要になる。第4
図にスクリーン角度45゜、60゜、75゜、90゜の4種類
の網点写真の予測に適した参照画素配置例を示
す。
In the embodiment shown in FIG. 1, for ease of explanation,
We have described the case where four types of predictors consisting of two types of screen angle and two types of dot pitch are used for halftone photographs, but the actual screen angles are 15°, 30°, 45°, and 60°. , 75°, 90°, 6 types,
Approximately 5 to 10 different dot pitches are required. Fourth
The figure shows examples of reference pixel arrangements suitable for predicting four types of halftone photographs with screen angles of 45°, 60°, 75°, and 90°.

なお、文字用の予測器においても、参照画素配
置を変えて複数もつ事もできる。
Note that a plurality of character predictors can be provided by changing the reference pixel arrangement.

次に参照画素より予測状態信号sおよび予測誤
差信号yを作り出す方法について述べる。参照画
素パターンと予測信号zとの関係はn個の参照画
素の組合せでできる2n通りの参照画素パターンの
それぞれに対して注目画素信号が1となる頻度を
予め統計的に調べて決定する。すなわち、2n通り
の参照画素パターンのそれぞれに対して注目画素
信号が1となる頻度が0.5を越えるとき予測信号
zは1と、0.5を越えないとき予測信号zは0と
なるように参照画素パターンに対する予測信号z
の発生の論理テーブルを作成する。
Next, a method of generating the prediction state signal s and the prediction error signal y from the reference pixels will be described. The relationship between the reference pixel pattern and the predicted signal z is determined by statistically examining in advance the frequency at which the target pixel signal becomes 1 for each of 2n reference pixel patterns formed by combinations of n reference pixels. That is, for each of the 2 n reference pixel patterns, the reference pixel is set so that when the frequency of the target pixel signal being 1 exceeds 0.5, the predicted signal z becomes 1, and when the frequency does not exceed 0.5, the predicted signal z becomes 0. Prediction signal z for the pattern
Create a logical table of occurrences.

予測誤差信号yは注目画素信号xと予測信号z
との排他的論理和をとることによつて次式より求
められる。
The prediction error signal y is the pixel of interest signal x and the prediction signal z
It can be obtained from the following formula by taking the exclusive OR with

y=xz ……(1) 参照画素パターンと予測状態信号sとの関係は
次式で求められる条件付予測誤差エントロピー
Hmをほぼ最小にする予測不一致確率を予め統計
的に調べて決定する。
y=xz...(1) The relationship between the reference pixel pattern and the predicted state signal s is the conditional prediction error entropy calculated by the following equation.
The prediction discrepancy probability that almost minimizes Hm is statistically investigated and determined in advance.

Hm=H(G)Q(G)+H(B)Q(B) ……(2) H(G)=−PE(G)logPE(G)−{1−PE(G)}log {1−PE(G)} H(B)=−PE(B)logPE(B)−{1−PE(B)}log {1−PE(B)} Q(G) 〓iG=Q(i)、Q(B)= 〓iBQ(i) PE(G)= 〓iGPE(i)Q(i)/Q(G) PE(B)= 〓iBPE(i)Q(i)/Q(B) Q(i):状態確率、PE(i):状態iの条件付誤差
信号確率(予測不一致確率) つまり、n個の参照画素の組合せでできる2n
りの参照画素パターンのそれぞれに対して予測信
号と注目画素信号とが一致しない確率を求め、(2)
式の条件付予測誤差エントロピーを最小とする予
測不一致確率lを基準として閾値がl以上となる
参照画素パターンに対する予測状態信号を0と
し、その逆を1とする論理テーブルを作成するこ
とによつて予測状態信号sを発生させる。
Hm=H(G)Q(G)+H(B)Q(B) ……(2) H(G)=−P E (G)logP E (G)−{1−P E (G)}log {1−P E (G)} H(B)=−P E (B)logP E (B)−{1−P E (B)}log {1−P E (B)} Q(G) 〓 iG =Q(i), Q(B)= 〓 iB Q(i) P E (G)= 〓 iG P E (i)Q(i)/Q(G) P E (B )= 〓 iB P E (i)Q(i)/Q(B) Q(i): State probability, P E (i): Conditional error signal probability of state i (prediction mismatch probability) In other words, n Find the probability that the predicted signal and the target pixel signal do not match for each of 2n reference pixel patterns created by combinations of reference pixels, and (2)
By creating a logical table in which the prediction state signal for the reference pixel pattern whose threshold value is equal to or greater than l is set to 0, and the opposite is set to 1, based on the prediction mismatch probability l that minimizes the conditional prediction error entropy of the formula. A predicted state signal s is generated.

第5図は第2図の符号器26の一例を示す図で
ある。この符号器は、予測状態信号が1ビツト、
つまり、予測誤差信号を2つのグループに分けて
符号化を行なう。すなわち、第2図に示したよう
に、この符号器に入力された予測誤差信号を予測
状態信号の値によつて2つのグループに分け、つ
まり、予測状態信号が0の時には区切りの始めか
ら、1の時には区切りの終りから順番に並ぶよう
に予測誤差信号を並び変えることによつて2つの
グループに分け、それぞれのグループを別々の符
号割り当てで符号化を行なうものである。まず、
入力された予測誤差信号31がメモリ35に書き
込まれ、メモリ36より並び変えられた予測誤差
信号がランレングス符号器44(一般に用いられ
ているランレングス符号器の同期信号の部分にど
の予測器で作られた予測誤差信号数が最も少ない
かを表わすモード符号を付加する機能を加えたも
の)に読み込まれる場合の動作について述べる。
このとき、マルチプレグサ38は、書込み用のカ
ウンター39および40の方を選択しており、マ
ルチプレクサ37は、読出し用のカウンター41
の方を選択しており、マルチプレクサ43は、メ
モリ36の方を選択している。カウンター39,
40および41は、ブロツクの始めでタイミング
制御回路42でクロツク33およびブロツク同期
信号34(1ブロツク1024画素として1024クロツ
ク単位で発生する)より作られるロード信号でそ
れぞれアドレス0、1023および0をセツトする。
入力された予測状態信号32がロー(低)レベル
のときには、カウンター39がカウントアツプさ
れ、マルチプレクサ38はカウンター39の方を
選択することによつて予測誤差信号31をメモリ
35のアドレス0番地から高い方に向つて順に書
き込む。予測状態信号32がハイ(高)レベルの
ときには、カウンター40がカウントダウンさ
れ、マルチプレクサ38は、カウンター40の方
を選択することによつて予測誤差信号31をメモ
リ35のアドレスの1023番地から低い方に向つて
順に書き込む。これらの動作によつて予測誤差信
号31は、予測状態信号32のレベルによつて2
つのグループに分割されメモリ35に書き込まれ
る。このとき、マルチプレクサ37は、読出し用
のカウンター41の方を選択しており、メモリ3
6の内容は、ランレングス符号器44の読出しク
ロツクに従い0番地から1023番地まで順次読み出
され、マルチプレクサ43を経由してランレング
ス符号器44に送られる。この読出し動作は連続
して行なわれており、メモリ35および36は交
互に読出し書込み動作を行うことによりランレン
グス符号器44に並び変えられた予測誤差信号を
ブロツク単位で連続して送り出す。ランレングス
符号器44の動作は3段階に分けて行なわれる。
すなわち、第1のタイミング制御回路42から送
られる制御信号46を符号化してどの予測器で作
られた予測誤差信号が選択されたかを表わすモー
ド符号として同期の部分に付加する。第2はメモ
リ36の0番地からk番地まで格納された予測誤
差信号を第1のランレングス符号化する。第3の
メモリ36の(k+1)番地から1023番地に格納
された予測誤差信号を第2のランレングス符号化
する。上記kの値は文字部と写真部とに対してそ
れぞれ別の一定の値をとるものである。つまり、
写真と文字とでは予測状態信号がハイレベルであ
る確率が異なるので、kの値を文字部と写真部と
で別々に決め、ランレングス符号化を行うことに
よつて符号化効率を高めたものである。ここで、
第1および第2のランレングス符号化は、ランレ
ングスに対する符号割り当てを変えたものを用い
る。すなわち、メモリ26の0〜k番地には第1
の予測状態(S=0)における予測誤差信号が書
き込まれている可能性が高く(kの値は、種々の
紙面の平均で求めたものであり、1ブロツク単位
でみた場合には、必ずしも予測状態(S=0)の
予測誤差信号が0〜k番地に書込まれているとは
限らず、予測状態S=0とS=1の境目がkより
大きいことも小さいこともあるが、平均的に0〜
k番地には予測状態S=0の予測誤差信号が書き
込まれている)(k+1)〜1023番地までは第2
の予測状態(S=1)における予測誤差信号が書
き込まれている可能性が高い。S=1とS=0に
対するランレングス分布は異なるので、それぞれ
に適合した符号割り当てを行つている。
FIG. 5 is a diagram showing an example of the encoder 26 of FIG. 2. This encoder has a predicted state signal of 1 bit,
That is, the prediction error signal is divided into two groups and encoded. That is, as shown in FIG. 2, the prediction error signal input to this encoder is divided into two groups depending on the value of the prediction state signal.In other words, when the prediction state signal is 0, the prediction error signal input to this encoder is divided into two groups. When the number is 1, the prediction error signals are rearranged so that they are arranged in order from the end of the division to be divided into two groups, and each group is encoded with different code assignments. first,
The input prediction error signal 31 is written to the memory 35, and the rearranged prediction error signal from the memory 36 is sent to the run-length encoder 44 (which predictor is used to input the synchronization signal part of a commonly used run-length encoder). The following describes the operation when the data is read into a system (with a function of adding a mode code indicating whether the number of generated prediction error signals is the smallest).
At this time, the multiplexer 38 selects the writing counters 39 and 40, and the multiplexer 37 selects the reading counter 41.
The multiplexer 43 selects the memory 36. counter 39,
40 and 41 are load signals generated by the timing control circuit 42 from the clock 33 and the block synchronization signal 34 (generated in units of 1024 clocks for 1 block of 1024 pixels) at the beginning of the block, and set addresses 0, 1023, and 0, respectively. .
When the input prediction state signal 32 is at a low level, the counter 39 counts up, and the multiplexer 38 selects the counter 39 to increase the prediction error signal 31 from address 0 of the memory 35 to a high level. Write in order. When the prediction state signal 32 is at a high level, the counter 40 counts down, and the multiplexer 38 selects the counter 40 to lower the prediction error signal 31 from address 1023 of the memory 35. Write in order. Through these operations, the prediction error signal 31 changes to 2 depending on the level of the prediction state signal 32.
The data is divided into two groups and written into the memory 35. At this time, the multiplexer 37 has selected the reading counter 41 and the memory 3
The contents of 6 are sequentially read out from address 0 to address 1023 according to the read clock of run-length encoder 44, and sent to run-length encoder 44 via multiplexer 43. This read operation is performed continuously, and the memories 35 and 36 alternately perform read and write operations to continuously send rearranged prediction error signals to the run-length encoder 44 in blocks. The operation of run-length encoder 44 is performed in three stages.
That is, the control signal 46 sent from the first timing control circuit 42 is encoded and added to the synchronization part as a mode code indicating which prediction error signal produced by which predictor has been selected. Second, the prediction error signals stored from address 0 to address k in the memory 36 are encoded in the first run length. The prediction error signals stored at addresses (k+1) to 1023 in the third memory 36 are encoded in a second run length. The above-mentioned value of k takes different fixed values for the text portion and the photograph portion. In other words,
Since the probability that the predicted state signal will be at a high level is different for photographs and characters, the value of k is determined separately for the character part and the photograph part, and the encoding efficiency is increased by performing run-length encoding. It is. here,
The first and second run-length encodings use different code assignments for run lengths. That is, at addresses 0 to k of the memory 26, the first
There is a high possibility that the prediction error signal in the prediction state (S = 0) is written (the value of k is obtained by averaging various papers, and when viewed in units of one block, it is not necessarily the prediction error signal in the prediction state (S = 0). The prediction error signal for the state (S=0) is not necessarily written at addresses 0 to k, and the boundary between the predicted states S=0 and S=1 may be larger or smaller than k, but the average Target 0~
The prediction error signal for the prediction state S=0 is written at address k) (k+1) to address 1023 are the second
It is highly likely that a prediction error signal in the prediction state (S=1) is written. Since the run length distributions for S=1 and S=0 are different, codes are assigned that are suitable for each.

第6図は第5図に示した符号器の動作を説明す
るための図であり、1ブロツクの画素数を15とし
た場合を示している。第6図Aは選択された予測
誤差信号で、斜線部は予測はずれを、その他は予
測当りを表わしている。第6図Bは選択された予
測状態信号で斜線部は第2の予測状態(S=1)
を、その他は第1の予測状態(S=0)を表わし
ている。第6図Cは選択された予測誤差信号Aを
選択された予測状態信号Bに従つて並べかえた予
測誤差信号を表わしている。選択された予測誤差
信号Aは予測状態信号Bの状態によつて2つの状
態に分けられる。つまり、第6図の並べかえられ
た予測誤差信号Cに示されたように予測状態信号
Bの予測状態S=0の時には、ブロツクの始めか
ら、予測状態S=1の時にはブロツクの終りから
並ぶように並び変えられる。次に予測誤差信号C
は前記kの値で2分され、別々のランレングス符
号を用いて符号化される。ここで、k=10とすれ
ば、予測誤差信号Cのy1からy13までは、第1の
ランレングス符号、y15からy3までは第2のラン
レングス符号が割り当てられる。実際の符号器で
は、予測はずれまでを1つのランとして符号化す
るので、y1からy12までがランレングス9のラン
として、y13からy10までがランレングス4のラン
として、y7およびy3がランレングス1のランとし
て数えられ、ランレングス9および4のランに
は、第1のランレングス符号が、ランレングス1
の2つのランレングスには第2のランレングス符
号がそれぞれ割り当てられる。
FIG. 6 is a diagram for explaining the operation of the encoder shown in FIG. 5, and shows a case where the number of pixels in one block is 15. FIG. 6A shows the selected prediction error signal, in which the shaded areas represent incorrect predictions and the other areas represent successful predictions. Figure 6B shows the selected predicted state signal, and the shaded area is the second predicted state (S=1).
, and the others represent the first predicted state (S=0). FIG. 6C shows a prediction error signal obtained by rearranging the selected prediction error signal A according to the selected prediction state signal B. The selected prediction error signal A is divided into two states depending on the state of the prediction state signal B. In other words, as shown in the rearranged prediction error signal C in FIG. 6, when the prediction state S=0 of the prediction state signal B, the signals are arranged from the beginning of the block, and when the prediction state S=1, the signals are arranged from the end of the block. can be rearranged. Next, the prediction error signal C
is divided into two by the value of k and encoded using separate run-length codes. Here, if k=10, the first run-length code is assigned to y 1 to y 13 of the prediction error signal C, and the second run-length code is assigned to y 15 to y 3 . In an actual encoder, the period up to the prediction error is encoded as one run, so y 1 to y 12 are encoded as a run with a run length of 9, y 13 to y 10 are encoded as a run with a run length of 4, y 7 and y 3 is counted as a run with run length 1, and runs with run lengths 9 and 4 have the first run length code as run length 1.
A second run-length code is assigned to each of the two run-lengths.

前記の実施例の説明では、並べかえた後の予測
誤差信号を2分して別のランレングス符号を用い
るための境界となるkの値は文字部と写真部で固
定としてが、各ブロツクにおいて第1の予測状態
(S=0)と第2の予測状態(S=1)の境界に
kの値を一致させ、第1の予測状態である予測誤
差信号は第1のランレングス符号を用い、第2の
予測状態である予測誤差信号は第2のランレング
ス符号を用いて符号化する事も可能である。ただ
しこの場合はkの値を符号に付加しなければ復号
ができなくなる。
In the explanation of the above embodiment, the value of k, which is the boundary for dividing the rearranged prediction error signal into two and using different run-length codes, is fixed for the text portion and the photo portion, but The value of k is made to match the boundary between the first prediction state (S = 0) and the second prediction state (S = 1), and the prediction error signal in the first prediction state uses the first run-length code, The prediction error signal, which is the second prediction state, can also be encoded using a second run-length code. However, in this case, decoding cannot be performed unless the value of k is added to the code.

また前記の実施例ではスクリーン角度と網点ピ
ツチのそれぞれの組合せに対して別々の予測器を
備え、同時に予測誤差信号と予測状態信号を発生
させているが、参照画素配置を可変にする事がで
きる1つあるいは複数の予測器を用い、順番に参
照画素配置を変え、時間をずらして全予測器に対
応する予測誤差信号と予測状態信号を発生させる
事もできる。
Furthermore, in the embodiment described above, a separate predictor is provided for each combination of screen angle and halftone dot pitch, and a prediction error signal and a prediction state signal are generated simultaneously, but it is possible to make the reference pixel arrangement variable. It is also possible to generate prediction error signals and prediction state signals corresponding to all the predictors by using one or more predictors that can be used, changing the reference pixel arrangement in turn, and shifting the time.

一般にシアン、マゼンダ、イエロー、ブラツク
の4種類の網点画像に対しては網点ピツチは同一
である。これを利用していずれか1つの網点画像
を符号化する時にはすべてのスクリーン角度と網
点ピツチの組合せに対応して参照画素配置を変え
て予測を行ない他の3つの網点画像に対しては先
に符号化した網点画像の網点ピツチに参照画素配
置のピツチを合わせ、スクリーン角度だけを変え
て予測を行なう事もできる。
Generally, the dot pitch is the same for the four types of dot images: cyan, magenta, yellow, and black. Using this, when encoding any one halftone image, prediction is performed by changing the reference pixel arrangement corresponding to all combinations of screen angles and halftone dot pitches, and prediction is performed for the other three halftone images. It is also possible to make predictions by matching the pitch of the reference pixel arrangement to the halftone dot pitch of the previously encoded halftone image and changing only the screen angle.

以上のように、本発明の装置は予測手段として
複数のスクリーン角度と網点ピツチの各組合せに
それぞれ合わせて参照画素配置を設定できる予測
手段を用い、この予測手段で参照画素配置を変え
て得られた複数の予測誤差信号および予測状態信
号対のうち1つの対を予測誤差信号の予測はずれ
の個数の比較により選択し、それらを用いて符号
化を行なう事により、多種のスクリーン角度およ
び網点ピツチで構成された網点写真と文字の混つ
た画像の効率良い符号化を行なつている。
As described above, the apparatus of the present invention uses, as a prediction means, a prediction means that can set a reference pixel arrangement according to each combination of a plurality of screen angles and halftone dot pitches, and uses this prediction means to change the reference pixel arrangement. By selecting one of the plural prediction error signals and prediction state signal pairs by comparing the number of prediction errors of the prediction error signal and performing encoding using them, various screen angles and halftone dots can be generated. It performs efficient encoding of an image containing a halftone photograph composed of pitches and text.

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

第1図は4種類のカラー網点写真のスクリーン
角度の一例を示す図、第2図は本発明の実施例の
構成を示すブロツク図、第3図は第2図の実施例
で用いる1種類の文字用参照画素配置と4種類の
網点写真用参照画素配置の例を示す図、第4図は
45゜、60゜、75゜、90゜のスクリーン角度に適合した
参照画素配置の例を示す図、第5図は本発明の実
施例の一部である符号器の構成を示すブロツク
図、第6図は符号器の動作を説明するための図で
ある。 図中の各番号はそれぞれ次のものを示してい
る。1……画像信号、2……クロツク、3……位
相信号、4〜8……予測器、9……タイミング発
生回路、10〜14……論理積ゲート、15〜1
9……カウンター、20,21……シフトレジス
タ、23……比較器、24,25……マルチプレ
クサ、26……符号器、27……符号、31……
予測誤差信号、32……予測状態信号、33……
クロツク、34……ブロツク同期信号、35,3
6……メモリ、37,38……マルチプレクサ、
39,40,41……カウンター、42……タイ
ミング制御回路、43……マルチプレクサ、44
……ランレングス符号器、45……符号。
Fig. 1 is a diagram showing an example of screen angles for four types of color halftone photographs, Fig. 2 is a block diagram showing the configuration of an embodiment of the present invention, and Fig. 3 is one type used in the embodiment of Fig. 2. Figure 4 is a diagram showing an example of the reference pixel arrangement for characters and the reference pixel arrangement for four types of halftone photographs.
FIG. 5 is a block diagram showing the configuration of an encoder that is part of an embodiment of the present invention; FIG. FIG. 6 is a diagram for explaining the operation of the encoder. Each number in the figure indicates the following. 1... Image signal, 2... Clock, 3... Phase signal, 4-8... Predictor, 9... Timing generation circuit, 10-14... AND gate, 15-1
9... Counter, 20, 21... Shift register, 23... Comparator, 24, 25... Multiplexer, 26... Encoder, 27... Code, 31...
Prediction error signal, 32...Prediction state signal, 33...
Clock, 34...Block synchronization signal, 35, 3
6...Memory, 37, 38...Multiplexer,
39, 40, 41... Counter, 42... Timing control circuit, 43... Multiplexer, 44
. . . run-length encoder, 45 . . . code.

Claims (1)

【特許請求の範囲】[Claims] 1 スクリーン角度および網点ピツチの異なるカ
ラー網点写真を含む画像を符号化するカラー画像
符号化装置において、MとNを正整数とし、少な
くとも前記カラー網点写真のM種類のスクリーン
角度とN種類の網点ピツチからなるM×N種類の
組合わせのそれぞれに合わせて参照画素配置を設
定できる予測手段と、前記予測手段から得られる
予測誤差信号および予測状態信号をブロツク単位
で区切る手段と、前記区切られた予測誤差信号の
予測はずれの画素数を前記参照画素の配置を変え
て比較し、いずれか1組の予測誤差信号および予
測状態信号を選択する手段と、前記選択結果と前
記選択された予測状態信号とに基づいて前記選択
された予測誤差信号を符号化する符号化手段とか
ら構成されることを特徴とするカラー画像符号化
装置。
1. In a color image encoding device that encodes an image including color halftone photographs having different screen angles and halftone dot pitches, M and N are positive integers, and at least M types of screen angles and N types of the color halftone photographs are used. a prediction means capable of setting a reference pixel arrangement according to each of M×N combinations of halftone dot pitches; means for dividing a prediction error signal and a prediction state signal obtained from the prediction means into blocks; means for comparing the number of mispredicted pixels of the divided prediction error signals by changing the arrangement of the reference pixels, and selecting any one set of prediction error signal and prediction state signal; a prediction state signal; and encoding means for encoding the selected prediction error signal based on the prediction state signal.
JP58057525A 1983-04-01 1983-04-01 Color picture encoder Granted JPS59183577A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP58057525A JPS59183577A (en) 1983-04-01 1983-04-01 Color picture encoder

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP58057525A JPS59183577A (en) 1983-04-01 1983-04-01 Color picture encoder

Publications (2)

Publication Number Publication Date
JPS59183577A JPS59183577A (en) 1984-10-18
JPH04431B2 true JPH04431B2 (en) 1992-01-07

Family

ID=13058154

Family Applications (1)

Application Number Title Priority Date Filing Date
JP58057525A Granted JPS59183577A (en) 1983-04-01 1983-04-01 Color picture encoder

Country Status (1)

Country Link
JP (1) JPS59183577A (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6012865A (en) * 1983-07-01 1985-01-23 Canon Inc Highly efficient encoding system of picture data
JPS6447169A (en) * 1987-08-18 1989-02-21 Fujitsu Ltd Compression system for dot picture data
JPH0763178B2 (en) * 1990-07-02 1995-07-05 キヤノン株式会社 Color image processor
JPH0630280A (en) * 1991-03-19 1994-02-04 Nec Eng Ltd Selective coding preprocessing system by blocks for binary image data
JPWO2009072601A1 (en) * 2007-12-07 2011-04-28 ナルテック株式会社 Method and apparatus for generating compressed image data

Also Published As

Publication number Publication date
JPS59183577A (en) 1984-10-18

Similar Documents

Publication Publication Date Title
US4553172A (en) Picture scanning and recording method
KR100428599B1 (en) A partial pixel encoding and decoding method
US5745249A (en) Pipelined architecture for patterned halftone generation
US4215375A (en) Digital facsimile transmission system for screened pictures
US4716471A (en) Data decoding apparatus
JPH04431B2 (en)
US5517318A (en) Image forming apparatus
US4425582A (en) Hardware implementation of 2 line/11 element predictor
JPS58173791A (en) Compression of complicated characters
JPS60157375A (en) Halftone expressing system
US5386302A (en) Image processing apparatus
US5926616A (en) Printing apparatus and method
US4435726A (en) One shot predictor for mixed mode documents
EP0855671B1 (en) Image processing method and apparatus
US5374957A (en) Decompression method and apparatus for split level image buffer
US5257120A (en) Image processing apparatus
EP0928099A2 (en) Increased functionality for holladay halftoning
US5917993A (en) Color image processing apparatus
JPS59141874A (en) Coder for color dot picture
US20020009236A1 (en) Image data conversion device and image data conversion method for converting the order of pixels
JPH0132702B2 (en)
JPH02185456A (en) recording device
KR100228788B1 (en) Dynamic Configuration Method and Circuit of Memory in Color Printing System
JPH0127320Y2 (en)
JP2800251B2 (en) Data compression method