JPH01147779A - Method for processing picture data - Google Patents

Method for processing picture data

Info

Publication number
JPH01147779A
JPH01147779A JP62307116A JP30711687A JPH01147779A JP H01147779 A JPH01147779 A JP H01147779A JP 62307116 A JP62307116 A JP 62307116A JP 30711687 A JP30711687 A JP 30711687A JP H01147779 A JPH01147779 A JP H01147779A
Authority
JP
Japan
Prior art keywords
image data
scanning lines
dot
dots
scanning
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
Application number
JP62307116A
Other languages
Japanese (ja)
Inventor
Yoji Horiuchi
堀内 洋治
Taku Yatabe
谷田部 卓
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.)
Shaken Co Ltd
Photo Composing Machine Manufacturing Co Ltd
Original Assignee
Shaken Co Ltd
Photo Composing Machine Manufacturing 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 Shaken Co Ltd, Photo Composing Machine Manufacturing Co Ltd filed Critical Shaken Co Ltd
Priority to JP62307116A priority Critical patent/JPH01147779A/en
Publication of JPH01147779A publication Critical patent/JPH01147779A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To convert the number of scanning lines by generating intermediate picture data by dividing original picture data scanned by N-lines of the scanning lines by the scanning lines of M-lines per one scanning line, and further, converting it into final picture data by applying NM-lines of the scanning lines for L-lines of the scanning lines. CONSTITUTION:The original picture data 20 formed of 6X6=36 dots is divided again into 4 times both in height and width, and the intermediate picture data 30 of 24X24=576 dots is generated. Further, 3 lines of the scanning lines of the intermediate picture data 30 are lumped into one new scanning line. Thus, 9 dots of the intermediate picture data 30 are converted into one dot of the final picture data, and the final picture data 40 of total 64 dots is obtained. Then, optional one dot at every area corresponding to one dot of the data 40 and LXL dots of the data 30 is selected by using a random number. Besides, when L used for converting the data 30 into the data 40 does not go to an integer, the scanning lines of the number nearest to a calculated value are selected. Thus, the number of the scanning lines can be converted while reducing the deterioration of quality.

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明は、図形や文字などの画像データを全面ラスター
走査方式で作る時の画像データの処理方法に関する。詳
しくはある走査線数で作られているオリジナル画像のデ
ータをその画像の品質を損わずに別の走査線数をもつ最
終画像データに任意に変更できるようにしたものである
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a method of processing image data when creating image data such as figures and characters using an overall raster scanning method. Specifically, the original image data created with a certain number of scanning lines can be arbitrarily changed to final image data with a different number of scanning lines without degrading the quality of the image.

印刷などに使用する画像の版下をラスター走査方式で作
る方式には色々あるが、よく使われている方式の一つに
1文字づつ走査して媒体にそれを記録していく方式があ
る。CRT写植機として知られているものは、大力この
方式が用いられている。もう一つの方式は、スキャナー
のようにページ全体を一括して走査し記録していく方式
である。
There are various ways to use the raster scanning method to create a copy of an image used for printing, etc., but one of the most commonly used methods is a method that scans each character one by one and records them on a medium. This method is widely used in what is known as a CRT phototypesetting machine. Another method is to scan and record the entire page at once, like a scanner.

この方法は最近使われ始めたレーザー写植機に用いられ
ている方法で、絵や図形も文字と一緒のものとして扱う
ことができるという大きな利点がある。しかし作成した
画像データの走査線数を自由に変えられないという欠点
も併わせで有している。
This method is used in laser phototypesetting machines that have recently started to be used, and has the great advantage of being able to treat pictures and figures as if they were text. However, it also has the disadvantage that the number of scanning lines of the created image data cannot be changed freely.

本発明はページ全体を一括して走査する方式の画像デー
タの処理方法において、画像の品質を損なうことなく走
査線密度を自由に変更できるようにして画像データの使
い勝手を大幅に改善しようとするものである。
The present invention aims to significantly improve the usability of image data by making it possible to freely change the scanning line density without impairing image quality in an image data processing method that scans the entire page at once. It is.

[従来の技術] 全面−括走査方式の問題点は、前記のように1つの画像
データを異なった走査線密度を持つ出力機に入力すると
、同じサイズの画像が得られないという事である。全面
−括走査方式による写植機では一般にレーザープリンタ
が使われるが、レーザープリンタの走査線ピッチはそれ
ぞれの機械で固有なものとして決まっており、一般には
自由に変換することができない。そのため異なる走査線
ピッチを持った2つのプリンタがあった場合、それぞれ
のプリンタに同じデータを入力してやると異なったサイ
ズの出力が作られてしまう。例えば300ドツト/イン
チの走査線密度のレーザープリンタと600ドツト/イ
ンチの走査線密度のプリンタに同じ画像データを与える
と、後者の出力サイズは前者の2分の1になってしまい
、このままでは同じサイズの画像を出力させることはで
きない。
[Prior Art] The problem with the full-screen/batch scanning method is that when one image data is input to output devices having different scanning line densities as described above, images of the same size cannot be obtained. Laser printers are generally used in phototypesetting machines using the full-page scanning method, but the scanning line pitch of laser printers is unique to each machine and cannot be freely changed. Therefore, if there are two printers with different scan line pitches, inputting the same data to each printer will produce output of different sizes. For example, if you give the same image data to a laser printer with a scanning line density of 300 dots/inch and a printer with a scanning line density of 600 dots/inch, the output size of the latter will be half that of the former, and if left as it is, it will remain the same. It is not possible to output an image of this size.

また反対に同じ走査線密度のプリンタであれば同じ画像
データを用いて異なったサイズの画像を出力させること
ができない。このように全面−括走査方式では基本的に
図形の拡大縮小が不可能であった。
Conversely, printers with the same scanning line density cannot output images of different sizes using the same image data. As described above, it is basically impossible to enlarge or reduce the figure in the full-batch scanning method.

[発明が解決しようとする問題点] 上記の原因は、全面−括走査方式では、出力するページ
のどの部分も一律に同じ走査線密度で走査を行なうから
である。これに対し部分走査方式のCRT写植機のよう
な場合には、同一ページの中の任意の場所を部分的に、
そのページの他の部分と異なる走査線密度で走査するこ
とができるので、前記のような拡大縮小の問題は生じな
い。
[Problems to be Solved by the Invention] The reason for the above is that in the full-page scanning method, every part of the page to be output is scanned at the same scanning line density. On the other hand, in the case of a partial scanning type CRT typesetting machine, any part of the same page can be
Because it can be scanned at a different line density than the rest of the page, the scaling problem described above does not occur.

このように全面−括走査方式では画像データの走査線数
を変換することができれば、以上述べたような問題が解
決する。
If the number of scanning lines of image data can be converted in this way in the full-batch scanning method, the above-mentioned problems can be solved.

従来このような場合、縮小する場合には縮小の割合に応
じて適当に何本かの走査線やドツトを捨てる、いわゆる
「間引」と称する方法をとっていた。拡大する場合には
、拡大の割合に応じて適当な走査線をコピーしてダブら
せるやり方等がとられていた。
Conventionally, in such cases, a method known as ``thinning'' has been used, in which some scanning lines or dots are appropriately discarded depending on the rate of reduction. When enlarging an image, a method has been adopted in which appropriate scanning lines are copied and duplicated depending on the enlargement ratio.

しかしこのようなやり方で全面−括走査方式の問題点に
対処しようとすると、次のように品質的に問題が生じる
However, when attempting to deal with the problems of the full-batch scanning method in this manner, the following quality problems arise.

1、単純な間引では、データの一部が失われて、著しい
品質劣化を起こす。
1. Simple thinning causes part of the data to be lost, resulting in significant quality deterioration.

2、単純な繰返しによるデータの付加では、いわゆる画
像の「ギザギザ」が目立つようになる。
2. If data is simply added repeatedly, so-called "jaggies" in the image become noticeable.

3、機械的なデータの間引や、繰返し付加の方法は走査
線の数を整数倍又は整数分の1に変更する場合を除くと
、特に画像が歪んだり、サイズが正確にならなかったり
する。
3. Mechanical data thinning or repeated addition methods may distort the image or make the size inaccurate, unless the number of scanning lines is changed to an integral multiple or fraction of an integral number. .

4、網点の画WA(平網や写真)では、間引を行うと顕
著なモアレが生ずる。
4. In halftone dot images WA (flat dots and photographs), noticeable moiré occurs when thinning is performed.

[問題点を解決するための手段] 本発明は上記のような問題を解決するためになしたもの
で、上記のような品質上の劣化を起こすことなく、画像
の走査線の数を任意に変更できるように、即ち全面−括
走査方式でありながら、走査線数変換を可能とすること
を目的とする。
[Means for Solving the Problems] The present invention was made to solve the above problems, and it is possible to arbitrarily increase the number of scanning lines of an image without causing quality deterioration as described above. The object of the present invention is to make it possible to change the number of scanning lines, that is, to make it possible to convert the number of scanning lines while using the full-batch scanning method.

そしてこの目的を達成するため本発明は、N本の走査線
で走査されたオリジナル画像のデータを、1本の走査線
あたりM本の走査線に再分割してNM本の走査線の中間
画像データを作り、その中間画像データのNM本の走査
線をL本づつ1本の走査線にあててNM/L本の走査線
を持つ最終画像データに変換し、オリジナル画像データ
と別の走査線数をもつ最終画像データを再生できるよう
にしたことを特徴とする。
In order to achieve this object, the present invention subdivides the data of an original image scanned with N scanning lines into M scanning lines per scanning line, thereby creating an intermediate image of NM scanning lines. Create data, convert the NM scanning lines of the intermediate image data into final image data having NM/L scanning lines by applying L scanning lines to each scanning line, and separate the original image data and another scanning line. It is characterized by being able to reproduce final image data having numbers.

さらに最終画像データの1ドツトとそれに対応する中間
画像データのL×Lドットに相当するエリア毎に、その
中の任意の1ドツトを乱数を用いて選び出す手段を持ち
、その選び出された1ドツトが白であるか黒であるかに
よって、変換された最終画像の対応するドツトを白また
は黒と決定するようにしたことを特徴としている。
Furthermore, for each area corresponding to one dot of the final image data and the L×L dot of the corresponding intermediate image data, there is a means for selecting any one dot therein using a random number, and the selected one dot is The method is characterized in that the corresponding dot in the converted final image is determined to be white or black depending on whether the dot is white or black.

また、中間画像データを最終画像データに変換する際の
Lが整数にならない場合、計算値と最も近い本数の走査
線を選択するようにしたことも特徴となっている。
Another feature is that when L when converting intermediate image data to final image data is not an integer, the number of scanning lines closest to the calculated value is selected.

[実施例] 第3図は、ある画像20を走査した状態を表している。[Example] FIG. 3 shows a state in which a certain image 20 is scanned.

この画像は説明を容易にするためXY力方向夫々6本の
走査線R1〜R6で走査したものとなっているが、実際
の画像データは何千本という大量の走査線で走査される
For ease of explanation, this image is scanned with six scanning lines R1 to R6 in each of the X and Y force directions, but actual image data is scanned with a large number of thousands of scanning lines.

さて、各走査線Rは画像全体を6X6=36ドツトに分
割して表現することになる。そしてこの画像20の中で
斜線が施されている部分は黒の像となる画線部である。
Now, each scanning line R represents the entire image by dividing it into 6×6=36 dots. In this image 20, the hatched portion is an image portion that becomes a black image.

次に本発明による走査線数の変換方法を図の実施例に基
ずいて説明する。
Next, a method of converting the number of scanning lines according to the present invention will be explained based on the embodiment shown in the drawings.

第4図は本発明の詳細な説明する図で、第3図で説明し
たような画像データをオリジナル画像データ31とし、
このデータから一旦中間の画像データ32を作り、この
中間画像データを後に詳述する方法によって処理するこ
とにより、オリジナル画像データ31と走査線数が異な
る最終画像データ33を作成する。
FIG. 4 is a diagram for explaining the present invention in detail, in which the image data as explained in FIG. 3 is used as original image data 31,
By temporarily creating intermediate image data 32 from this data and processing this intermediate image data by a method described in detail later, final image data 33 having a different number of scanning lines from the original image data 31 is created.

走査線数の変換を行うには、先ず第3図のようなオリジ
ナル画像のドツト平面を縦横共、更に何倍かに単純に再
分割する。第5図は 6x6=36ドツト で作られている第3図のオリジナル画像20を、縦横共
4倍に再分割した 24X24=576ドツト の中間画像データ30である。この中間画像は走査線密
度、ドツト密度共に4倍に再分割されているから、オリ
ジナル画像20の夫々の1ドツトは、この再分割された
中間画像の16ドツトに置換されている。
In order to convert the number of scanning lines, first, the dot plane of the original image as shown in FIG. 3 is simply subdivided into multiples in both the vertical and horizontal directions. FIG. 5 shows intermediate image data 30 of 24×24=576 dots obtained by redividing the original image 20 of FIG. 3, which is made of 6×6=36 dots, into four times the size in both the vertical and horizontal directions. Since this intermediate image has been subdivided four times in both scanning line density and dot density, each one dot in the original image 20 is replaced by 16 dots in this subdivided intermediate image.

第3図と第5図を比べてみれば明らかのようにオリジナ
ル画像20と中間画像30は単に画像の走査線数が違う
だけで、像そのものはまったく変化しておらず、両者は
品質的には同じである。従ってオリジナル画(1120
のあるドツトが白であれば、それに対応する第5図の中
間画像30の16ドツトは全て白になり、オリジナル画
像のドツトが黒であればそれに対応する中間画像の16
ドツトも全て黒になる。このように中間画像30ではま
ったく品質の劣化が起こらない。
As is clear from comparing Figures 3 and 5, the original image 20 and intermediate image 30 differ only in the number of scanning lines; the images themselves have not changed at all, and both are different in terms of quality. are the same. Therefore, the original picture (1120
If a dot is white, all 16 dots in the corresponding intermediate image 30 in FIG. 5 will be white; if a dot in the original image is black, all 16 dots in the corresponding intermediate image
All dots also turn black. In this way, no quality degradation occurs in the intermediate image 30.

この中間画像データから目的とする走査線数の最終画像
データを生成するが、この処理を走査線数変換と呼ぶ。
Final image data with a target number of scanning lines is generated from this intermediate image data, and this process is called scanning line number conversion.

第6図は走査線数変換して得られる最終画像の例で、6
X6=36ドツトで構成されているオリジナル画像20
に対し、8X8=64ドツトとドツト数を約2倍に変換
した最終側a40となっている。この変換は、走査線の
少ないプリンタ用に作られた画像データ(オリジナル画
像データ)を、それよりも4/3倍の走査線密度(最終
画像データ)を持ったプリンタに合わせるために走査線
数変換を行なうという例である。
Figure 6 is an example of the final image obtained by converting the number of scanning lines.
Original image 20 consisting of X6 = 36 dots
On the other hand, the final side a40 has 8×8=64 dots, which is about twice the number of dots. This conversion converts image data created for a printer with fewer scanning lines (original image data) to a printer with 4/3 times the scanning line density (final image data). This is an example of performing a conversion.

第5図の中間画像からこの最終画像に変換するためには
、中間画像の走査線を何本かづつまとめて1本の走査線
とする。第6図では第5図の中間画像データの3本の走
査線りをまとめて1本の新しい走査線としている。これ
によって中間画像データの9ドツトが最終画像の1ドツ
トに変換され合計64ドツトの最終画像が得られる。
In order to convert the intermediate image shown in FIG. 5 into this final image, several scanning lines of the intermediate image are combined into one scanning line. In FIG. 6, the three scanning lines of the intermediate image data in FIG. 5 are combined into one new scanning line. As a result, 9 dots of the intermediate image data are converted to 1 dot of the final image, resulting in a final image of 64 dots in total.

この変換によって新しく作られた最終画像の各ドツトの
白黒は、そのドツトを構成する中間画像データ9ドツト
の白黒によって決まる。この中間画像データから最終画
像データへの変換は次のような原理に基づいて行なわれ
る。
The black and white of each dot in the final image newly created by this conversion is determined by the black and white of the nine dots of intermediate image data that make up that dot. This conversion from intermediate image data to final image data is performed based on the following principle.

まず、走査線数変換後の新しいドツトを構成する元の中
間画像の9ドツトが全て白か、すべて黒である場合は、
そのまま白か黒として一義的に決定される。第6図の右
斜線が施されたドツトと白いドツトは中間画像のドツト
がすべて黒か、または白であるもので、そのまま黒また
は白と決定される。例えば、第6図のドツトAlの中間
画像データ(Lxl、Ly4)は第5図のす、、b2 
First, if the nine dots in the original intermediate image that make up the new dot after scanning line number conversion are all white or all black, then
It is uniquely determined as either white or black. The dots shaded to the right and the white dots in FIG. 6 are all black or white dots in the intermediate image, and are determined to be black or white as they are. For example, the intermediate image data (Lxl, Ly4) of dot Al in FIG.
.

・・・・・・・・・b9の9ドツトであるが、この中間
画像データの9ドツトは全てが黒なので、第6図のドツ
トA1はそのまま右斜線の黒と決まる。同様に第6図の
ドツトA2  (LXl、Lyl)を構成する第5図の
d、−d9の9ドツトは全て白なので白と決定される。
. . . The 9 dots of b9 are all black, so the dot A1 in FIG. 6 is determined to be black with diagonal lines to the right. Similarly, the nine dots d and -d9 in FIG. 5 that constitute dot A2 (LXl, Lyl) in FIG. 6 are all white, so they are determined to be white.

ところが、第6図に左斜線で示したそれ以外のドツト、
C1〜G2Gまでの26個のドツトはいわば灰色のドツ
トである。
However, the other dots indicated by diagonal lines on the left in Figure 6,
The 26 dots C1 to G2G are gray dots.

この様な灰色のドツトを再現するための処理方法につい
て説明する。第1にもしそのプリンタが中間調の濃度を
扱うことができるならば、そのまま9種類の階調で表せ
ばよい。第2に、2値しか扱えないプリンタであれば白
か黒かいずれかに決めなければならない。最も単純で広
く行なわれている方法は元の構成ドツト、即ち中間画像
データのドツトの白か黒かいずれか多い方に決めるやり
方である。例えば第6図のドツトC9は第5図でLXl
、’LV3に相当するから、e!〜e6の白が6個、0
7〜e9の黒が3個の中間画像のドツトで構成されてお
り、白の方が多いから白に決定される。同様に第6図の
ドツトC4は、第5図でLx3.Ly2に相当するから
f、−f3の白3個、f4〜f9の黒6個の中間画像で
構成され、黒の方が多いので黒に決定される。
A processing method for reproducing such gray dots will be explained. First, if the printer can handle halftone densities, it can simply represent them using nine different gradations. Second, if the printer can only handle binary values, it must be decided between white and black. The simplest and most widely used method is to determine whether the original constituent dots, that is, the dots in the intermediate image data, are white or black, whichever is more. For example, dot C9 in Figure 6 is LXl in Figure 5.
, 'Since it corresponds to LV3, e! ~e6 white 6 pieces, 0
The black dots 7 to e9 are made up of three intermediate image dots, and since there are more white dots, white is determined. Similarly, dot C4 in FIG. 6 is Lx3. Since it corresponds to Ly2, it is composed of three white intermediate images f and -f3 and six black intermediate images f4 to f9, and since there are more black images, black is determined.

しかしこの多数決による方法では白か黒かに決める過程
で品質の劣化が起こりやすい。例えば、黒と白の比率が
ほぼ同じで、黒が1個だけ足りないような場合でも、そ
のドツトは白に決まってしまう。そしてこのようなケー
スが続いて現れる場合、本当は半分は黒であるにも拘ら
ず一連の連続したドツトが全て白になってしまい元の画
像に対する忠実さを欠く結果となる。
However, with this majority vote method, quality is likely to deteriorate during the process of deciding between black and white. For example, even if the ratio of black and white is almost the same, but only one black dot is missing, that dot will be determined to be white. If such cases continue to occur, a series of consecutive dots will all turn white even though half of them are actually black, resulting in a lack of fidelity to the original image.

本発明ではこのような欠陥を避けるため、灰色データを
処理するのに確率を重視した方法を用いる。第7図はそ
の原理を説明するもので、elからC9までの9個のド
ツトは第6図のドツトC9を表している。この内でC7
、ef3 、 egは第5図の中間画像では黒になって
いる。残りのel〜e6の6ドツトは白である。前記し
た多数決方式によれば、この09ドツトは当然数の多い
白と決まるが、本発明の方式ではどちらが多いかという
判断をせずに、9個のドツトの中から任意の1ドツトを
取り出し、そのドツトが白ならば白、黒ならば黒と決め
る。すなわち、中間画像の構成ドツトの中のどれかのサ
ンプルドツトにその全体を代表させて、そのドツトによ
って最終画像のドツトを決めさせるようにしたのである
。問題はどのドツトをサンプルドツトとして代表させる
かということであるが、本発明ではその任意ドツトを乱
数によって選ぶようにしている。
In order to avoid such defects, the present invention uses a probability-oriented method to process gray data. FIG. 7 explains the principle, and the nine dots from el to C9 represent dot C9 in FIG. Among these, C7
, ef3, and eg are black in the intermediate image of FIG. The remaining six dots el to e6 are white. According to the majority voting method described above, this 09 dot is naturally determined to be white, which has the largest number, but in the method of the present invention, any one dot is selected from among the nine dots without making a judgment as to which dot has the largest number. If the dot is white, it is determined to be white, and if it is black, it is determined to be black. That is, one of the sample dots among the constituent dots of the intermediate image is made to represent the entire image, and the dots of the final image are determined by that dot. The problem is which dot should be used as a representative sample dot, but in the present invention, an arbitrary dot is selected using random numbers.

第1図は以上説明してきた本発明による方法を示したフ
ロー図の例で、第2図は本発明を実施するに適した画像
データ処理装置の一例を示したものである。
FIG. 1 is an example of a flow diagram showing the method according to the present invention described above, and FIG. 2 shows an example of an image data processing apparatus suitable for implementing the present invention.

第2図において第3図で示したようなオリジナル画像デ
ータ1は、CPU2より信号線3を経てメモリ4に予め
規定されているドツト密度に分割され、中間画像データ
として展開され記憶される(第1図のステップ1)。第
5図の例では6X6ドツトのオリジナル画像データが2
4X24ドツトの4倍に再分割されて展開された中間画
像となっている。
In FIG. 2, the original image data 1 as shown in FIG. Step 1 in Figure 1). In the example in Figure 5, the original image data of 6x6 dots is
This is an intermediate image that is re-divided and expanded into 4x4x24 dots.

CPtJ2は最終画像のサイズを指令する信号りを信号
線5よりX側ラッチ6、Y側うッチ7に伝える(第1図
ステップ2)。即ち、中間画像の走査線を何本(し)ま
とめて1本とするかが指令される。この指令は走査線数
の変換を指令するものであり、予めオリジナル画像デー
タ1中に入れておくか、あるいはCPU2に直接指令す
ることによって行われる。第5図の例はXYともL=3
としであるので、この場合2つのラッチ6.7には夫々
3がラッチされる。加算機8,9はこのラッチ6.7に
ラッチされたデータを累積し、最終画像データを作る各
ドツトの原点アドレスを発生する(第1図ステップ3)
CPtJ2 transmits a signal instructing the size of the final image to the X-side latch 6 and Y-side latch 7 via the signal line 5 (step 2 in FIG. 1). That is, a command is given as to how many scanning lines of the intermediate image are to be combined into one line. This command instructs conversion of the number of scanning lines, and is performed either by being included in the original image data 1 in advance or by direct command to the CPU 2. In the example in Figure 5, L=3 for both X and Y.
In this case, the two latches 6.7 each latch 3. Adders 8 and 9 accumulate the data latched in the latches 6 and 7, and generate the origin address of each dot that makes up the final image data (Step 3 in Figure 1).
.

第8図はこの原点アドレスを説明するもので、図中に示
した四角印70がlx、LVで表現される最終画像デー
タを作る各ドツトの原点アドレスであり、丸印71が乱
数によって指示されたサンプルドツトのアドレスを示し
ている。前記のように1段目の加算機8,9がラッチ6
.7にラッチされているデータ゛3″を順次累積して最
終画像を構成する各ドツトの原点アドレスを計算する。
FIG. 8 explains this origin address. The square mark 70 shown in the figure is the origin address of each dot that makes up the final image data expressed by lx and LV, and the circle mark 71 is the origin address indicated by a random number. It shows the address of the sample dot. As mentioned above, the first stage adders 8 and 9 are connected to the latch 6.
.. The data ``3'' latched in ``7'' are sequentially accumulated to calculate the origin address of each dot constituting the final image.

その結果を加算4110.11に伝える。この加算11
10.11にはラッチ6.7からの信号を受けて乱数発
生器12が乱数を伝達してきており(第1図ステップ4
)、それによって加算110.11は前記第8図の丸印
71位置で示されるサンプルドツトのアドレスを計算し
く第1図ステップ5)マルチプレクサ13.14によっ
て、メモリ4中のXYアドレスを指定する。
The result is transmitted to addition 4110.11. This addition 11
At 10.11, the random number generator 12 receives a signal from the latch 6.7 and transmits a random number (Step 4 in Figure 1).
), whereby the adder 110.11 calculates the address of the sample dot indicated by the circle 71 position in FIG.

乱数発生器12には、例えば第8図において、xnとy
nの値を指令することによって最終画像となる9ドツト
内の相対アドレスをランダムに発生し、サンプルドツト
のアドレスが指定されるようになっている。従ってサン
プルドツトの絶対アドレスは、原点アドレス70の座標
と乱数発生器12からの乱数(xn、yn)によって決
められる。
For example, in FIG. 8, the random number generator 12 has xn and y.
By specifying the value of n, relative addresses within the 9 dots that form the final image are randomly generated, and the address of the sample dot is designated. Therefore, the absolute address of the sample dot is determined by the coordinates of the origin address 70 and the random number (xn, yn) from the random number generator 12.

こうして指定されたサンプルドツトが白か黒かによって
最終画像の対応するドツトの白黒が決定される。例えば
第6図の灰色ドツトC4は、第5図でLX3.LV2に
相当するf、−f9の9ドツトで構成され、そのうちf
1〜f3が白、f4〜f9が黒となっている。一方第8
図のlx3゜lj/2ではサンプルドツトが位置71p
となっており、この位置は第5図でf8に相当し、f8
は黒ドツトであるからこのドツトC4全体は黒と判断さ
れる。
Depending on whether the designated sample dot is white or black, the black and white of the corresponding dot in the final image is determined. For example, gray dot C4 in FIG. 6 corresponds to LX3. Consists of 9 dots, f and -f9, which correspond to LV2, of which f
1 to f3 are white, and f4 to f9 are black. On the other hand, the 8th
At lx3゜lj/2 in the figure, the sample dot is at position 71p.
This position corresponds to f8 in Figure 5, and f8
Since C4 is a black dot, the entire dot C4 is determined to be black.

以上のようにして各灰色ドツト01〜026が判断され
、その結果はデータのリード信号によって(第1図ステ
ップ6)第1図のS/P変換器15でシリアル/パラレ
ル変換され、1ワ一ド単位のデータに組立られて(第1
図ステップ7)プリンタ16で出力されることになる。
As described above, each gray dot 01 to 026 is judged, and the result is serial/parallel converted by the S/P converter 15 in Fig. 1 according to the data read signal (step 6 in Fig. 1). The data is assembled into code units (first
Figure step 7) will be output by the printer 16.

以上述べてきた例は、元の画像の走査線と変換後の走査
線の比が整数になっている場合であったが、一般にはこ
の比は整数にはならない時が多い。
In the examples described above, the ratio of the scanning lines of the original image to the converted scanning lines is an integer, but generally this ratio is often not an integer.

例えば、第6図のドツトは、第5図の3x3ドツトに正
しく区画された8本の走査線で作られているが、これを
10本の走査線を持つ最終画像に変換しようとすると、
最終画像における走査線1本は中間画像の2−04本に
当たることになる。そのため中間画像の走査線2本に対
して最終画像の走査線が1本できるように変換したとし
ても、計算値に対して0.4の端数が出てしまう。本発
明ではこのような場合、第2図には示していないがこの
端数を加算していくことによって処理する。まず最初の
走査線の0.4を保持し、次に再び中間画像の走査線2
本分を最終画像の1本に変換すると、誤差は0.8にな
る。更に、次の変換をすると誤差は1.2になる。誤差
が中間画像の1本分を越えたら補正をする。即ち、中間
画像と最終画像の走査線の変換比2:1をこのとき3:
1とする。そうすると累積した端数1.2の誤差が0.
2となって補正される。
For example, the dot in Figure 6 is made up of 8 scan lines that are correctly partitioned into the 3x3 dot in Figure 5, but if we try to convert this to a final image with 10 scan lines, we get
One scanning line in the final image corresponds to 2-04 lines in the intermediate image. Therefore, even if the conversion is performed so that there is one scanning line in the final image for every two scanning lines in the intermediate image, a fraction of 0.4 will appear in the calculated value. In the present invention, such a case is handled by adding up the fractions, although this is not shown in FIG. First keep 0.4 of the first scanline, then again scanline 2 of the intermediate image.
If the main part is converted into one line in the final image, the error will be 0.8. Furthermore, when the following conversion is performed, the error becomes 1.2. If the error exceeds one intermediate image, correction is performed. That is, the conversion ratio of the scanning lines of the intermediate image and the final image is 2:1 in this case.
Set to 1. Then, the accumulated error of fraction 1.2 is 0.
2 and is corrected.

以後この0,2に端数を加算して同様の処理を行なって
いくが、計算による変換の線数との間に1本を越える誤
差が出たところで1本分走査線を増やしてやればよい。
From now on, we will add a fraction to these 0 and 2 and perform the same process, but if there is an error of more than 1 line between the number of lines converted by calculation, we can increase the number of scanning lines by 1. .

[発明の効果] 本発明によれば、走査線数変換しても品質劣化が少なく
て済むほかに、間引や繰返し付加方式のように変換比が
整数にならないような走査線数間でも、容易にしかも正
確に変換することが出来る。
[Effects of the Invention] According to the present invention, quality deterioration is small even when the number of scanning lines is converted, and even when the conversion ratio is not an integer as in thinning or repeated addition methods, It can be converted easily and accurately.

また変換に乱数を用いたため、モアレが発生しにくいの
も本発明による優れた特徴で、網点が掛けられた写真を
走査線数変換しても品質を維持することができる。
Another excellent feature of the present invention is that moiré is less likely to occur because random numbers are used for conversion, and the quality can be maintained even if a photograph with halftone dots is converted to the number of scanning lines.

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

第1図は本発明による方法を示したフロー図の例、第2
図は本発明を実施するのに適した画像データ処理装置の
一例を示した図、第3図は6×6ドツトのオリジナル画
像を示す説明図、第4図は本発明の詳細な説明する図、
第5図は第3図に基ずいて作成した24X24ドツトの
中間画像の説明図、第6図は第5図の中間画像を8×8
ドツトに走査線数変換して作成した最終画像の説明図、
第7図、第8図は説明図である。 1 オリジナル画像データ 2  CPU       4  メモリ6 ラッチ 
     7 ラッチ 8 加算ell       9  加算機10 加算
m      11  加算機12 乱数発生器   
13 マルチプレクサ14 マルチプレクサ 15  
S/P変換器16 プリンタ
FIG. 1 is an example of a flow diagram illustrating the method according to the invention;
The figure shows an example of an image data processing device suitable for carrying out the present invention, FIG. 3 is an explanatory diagram showing an original image of 6×6 dots, and FIG. 4 is a diagram illustrating the present invention in detail. ,
Figure 5 is an explanatory diagram of a 24x24 dot intermediate image created based on Figure 3, and Figure 6 is an 8x8 intermediate image of Figure 5.
An explanatory diagram of the final image created by converting the number of scanning lines to dots,
FIG. 7 and FIG. 8 are explanatory diagrams. 1 Original image data 2 CPU 4 Memory 6 Latch
7 Latch 8 Adder ell 9 Adder 10 Adder m 11 Adder 12 Random number generator
13 Multiplexer 14 Multiplexer 15
S/P converter 16 Printer

Claims (3)

【特許請求の範囲】[Claims] (1)、N本の走査線で走査されたオリジナル画像デー
タを、1本の走査線あたりM本の走査線に再分割してN
M本の走査線の中間画像データを作り、その中間画像デ
ータのNM本の走査線をL本づつ1本の走査線にあてて
NM/L本の走査線を持つ最終画像データに変換し、オ
リジナル画像データと別の走査線数をもつ最終画像デー
タを再生するようにしたことを特徴とする画像データの
処理方法。
(1), the original image data scanned with N scanning lines is redivided into M scanning lines per scanning line, and N
Create intermediate image data with M scanning lines, convert NM scanning lines of the intermediate image data into final image data with NM/L scanning lines by applying each L scanning line to one scanning line, A method for processing image data, characterized in that final image data having a different number of scanning lines from original image data is reproduced.
(2)、最終画像データの1ドットと、それに対応する
中間画像データのL×Lドットに相当するエリア毎に、
その中の任意の1ドットを乱数を用いて選び出す手段を
持ち、その選び出された1ドットが白であるか黒である
かによって、変換された最終画像データの対応するドッ
トを白または黒と決定するようにした特許請求の範囲第
1項記載の画像データの処理方法。
(2) For each area corresponding to one dot of final image data and L×L dots of corresponding intermediate image data,
It has means for selecting any one dot from among them using random numbers, and depending on whether the selected one dot is white or black, the corresponding dot in the converted final image data is changed to white or black. The image data processing method according to claim 1, wherein the image data processing method is determined.
(3)、中間画像データを最終画像データに変換する際
のLが整数にならない場合、計算値と最も近い本数の走
査線を選択するようにした特許請求の範囲第1項記載の
画像データの処理方法。
(3) When converting intermediate image data into final image data, if L is not an integer, the number of scanning lines closest to the calculated value is selected. Processing method.
JP62307116A 1987-12-04 1987-12-04 Method for processing picture data Pending JPH01147779A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62307116A JPH01147779A (en) 1987-12-04 1987-12-04 Method for processing picture data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62307116A JPH01147779A (en) 1987-12-04 1987-12-04 Method for processing picture data

Publications (1)

Publication Number Publication Date
JPH01147779A true JPH01147779A (en) 1989-06-09

Family

ID=17965220

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62307116A Pending JPH01147779A (en) 1987-12-04 1987-12-04 Method for processing picture data

Country Status (1)

Country Link
JP (1) JPH01147779A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS56106280A (en) * 1980-01-28 1981-08-24 Sharp Kk Bit pattern magnification system
JPS62152085A (en) * 1985-12-25 1987-07-07 Fujitsu Ltd Reduction system for picture of binary information
JPS62206966A (en) * 1986-03-06 1987-09-11 Seiko Epson Corp Data processing device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS56106280A (en) * 1980-01-28 1981-08-24 Sharp Kk Bit pattern magnification system
JPS62152085A (en) * 1985-12-25 1987-07-07 Fujitsu Ltd Reduction system for picture of binary information
JPS62206966A (en) * 1986-03-06 1987-09-11 Seiko Epson Corp Data processing device

Similar Documents

Publication Publication Date Title
US4651287A (en) Digital image processing algorithm for output devices with discrete halftone gray scale capability
JPS61237574A (en) Generation of halftone image
JPS5932037A (en) Halftone threshold generation apparatus and method
JPH08228282A (en) Processing method of document picture and binary picture picture element processor
JPH0693741B2 (en) Image shaping method in net
JPH08228290A (en) Reinforcing method of dot-matrix-data
JPH06105129A (en) Apparatus and method for electronic hi-fi screenless conversion using separable filter
JP3396992B2 (en) Image processing method and apparatus
JPH0818790A (en) Compression system for half tone image
JPH01147779A (en) Method for processing picture data
JPH10191090A (en) Apparatus and method for manufacturing color conversion table, and recording medium
JP3539552B2 (en) Image processing device
JP3757644B2 (en) Image processing device
JPS59204378A (en) Image processor
US7016079B2 (en) Method of and apparatus for generating proof image
JP4281126B2 (en) Image processing device
JP3344604B2 (en) Method and apparatus for creating dot image
EP0418868B1 (en) Image processing system
JP2831573B2 (en) Pseudo halftone image processing system
JP2913867B2 (en) Color image processing method
JPH04299470A (en) Image converting method based on error diffusion
JP3089688B2 (en) Image information processing method
JPH06324672A (en) Picture processor
JPH07262351A (en) Image processor and control method for the same
JP3057809B2 (en) Image information processing method