JPH0744700A - Picture processing method and picture editing method - Google Patents
Picture processing method and picture editing methodInfo
- Publication number
- JPH0744700A JPH0744700A JP5187988A JP18798893A JPH0744700A JP H0744700 A JPH0744700 A JP H0744700A JP 5187988 A JP5187988 A JP 5187988A JP 18798893 A JP18798893 A JP 18798893A JP H0744700 A JPH0744700 A JP H0744700A
- Authority
- JP
- Japan
- Prior art keywords
- change point
- line
- attribute
- coordinate value
- original image
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims description 59
- 238000003672 processing method Methods 0.000 title claims description 22
- 238000009499 grossing Methods 0.000 abstract description 10
- 230000006835 compression Effects 0.000 abstract description 9
- 238000007906 compression Methods 0.000 abstract description 9
- 230000008878 coupling Effects 0.000 abstract 1
- 238000010168 coupling process Methods 0.000 abstract 1
- 238000005859 coupling reaction Methods 0.000 abstract 1
- 238000010586 diagram Methods 0.000 description 21
- 101000911772 Homo sapiens Hsc70-interacting protein Proteins 0.000 description 2
- 102100029860 Suppressor of tumorigenicity 20 protein Human genes 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 102100035353 Cyclin-dependent kinase 2-associated protein 1 Human genes 0.000 description 1
- 101000661807 Homo sapiens Suppressor of tumorigenicity 14 protein Proteins 0.000 description 1
- 101000585359 Homo sapiens Suppressor of tumorigenicity 20 protein Proteins 0.000 description 1
- 239000003086 colorant Substances 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
Landscapes
- Image Processing (AREA)
- Editing Of Facsimile Originals (AREA)
- Facsimile Image Signal Circuits (AREA)
- Controls And Circuits For Display Device (AREA)
Abstract
Description
【0001】[0001]
【産業上の利用分野】本発明は、複写機およびコンピュ
ータ等の画像処理方法および画像編集方法に係り、特
に、画像入力装置により入力された原稿の画像情報を出
力する場合に、出力する画像の輪郭部のジャギーを減少
させるのに好適な画像処理方法および画像編集方法に関
する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image processing method and an image editing method for a copying machine, a computer and the like, and more particularly, when outputting image information of an original document input by an image input device, an image to be output is output. The present invention relates to an image processing method and an image editing method suitable for reducing jaggies in a contour portion.
【0002】[0002]
【従来の技術】近年、文字、図形等の原稿の画像情報を
イメージスキャナ(以下、スキャナという)等の画像入
力装置により読み取り、これを原画像の画像データとし
て公知の画像メモリ等に取り込み、この原画像の画像デ
ータをそのまま、あるいは、拡大等の画像編集を施して
プリンタ等の公知の出力装置で再生することが行われて
いる。2. Description of the Related Art In recent years, image information of a document such as characters and figures is read by an image input device such as an image scanner (hereinafter referred to as a scanner), and the image information is taken into a known image memory as image data of an original image. The image data of the original image is reproduced as it is, or after being subjected to image editing such as enlargement, it is reproduced by a known output device such as a printer.
【0003】このような画像処理は、スキャナ等の画像
入力装置により原画像の画像情報ををメッシュ化して電
気信号に変換し、原画像の1ドットと画像メモリの1ビ
ットとを1対1で対応させたビットマップデータ(原画
像の画像データ)とされて画像メモリに記憶される。そ
して、原画像の色彩等の付帯属性は原画像の各ドットに
対応する画像メモリの量を増加させて対応している。In such image processing, image information of an original image is meshed by an image input device such as a scanner and converted into an electric signal, and one dot of the original image and one bit of the image memory are in a one-to-one correspondence. The corresponding bitmap data (image data of the original image) is stored in the image memory. Then, incidental attributes such as colors of the original image correspond by increasing the amount of image memory corresponding to each dot of the original image.
【0004】また、原画像の拡大等の画像編集を行う場
合には、画像メモリに記憶された前記ビットマップデー
タのすべての座標値を画像編集指令により計算して、全
ビットマップデータの座標値を変更することにより行っ
ている。When performing image editing such as enlarging an original image, all coordinate values of the bitmap data stored in the image memory are calculated by an image editing command, and coordinate values of all bitmap data are calculated. By changing.
【0005】[0005]
【発明が解決しようとする課題】ところで、前述した従
来の画像処理方法においては、原画像の画像情報をスキ
ャナにより読み取り2値化する際にどうしても誤差が生
じ、図18(a)に示すような理想の原画像データとな
らず、図18(b)に示すような段差のある原画像デー
タとなり、出力する画像の輪郭部にジャギーが発生し、
画像品質が低下するという問題点があった。特に、スキ
ャナの走査方向と直交する方向に描画されている直線部
分に凹凸が生じていた。In the conventional image processing method described above, an error is inevitable when the image information of the original image is read by the scanner and binarized, and as shown in FIG. 18 (a). Not the ideal original image data, but the original image data with steps as shown in FIG. 18B, and jaggies occur in the contour portion of the output image,
There is a problem that the image quality deteriorates. In particular, unevenness was generated in the straight line portion drawn in the direction orthogonal to the scanning direction of the scanner.
【0006】また、このような原画像の画像データに画
像編集、例えば、拡大処理を施すと、図19に示すよう
に、原画像データの段差を単純に拡大することとなり、
文字等の出力する画像の輪郭部のジャギーがより際だ
ち、画像品質がより低下するという問題点があった。Further, when the image data of such an original image is subjected to image editing, for example, enlargement processing, the step of the original image data is simply enlarged as shown in FIG.
There is a problem in that the jaggies of the contour portion of the output image such as characters are more prominent and the image quality is further deteriorated.
【0007】そこで、このような問題点に対処するため
に、3×3、5×5等の公知のマスク処理をもって、原
画像データの平滑化(輪郭修正)を施す画像処理方法が
提案されている。図20に3×3のマスク処理を例示す
る。Therefore, in order to deal with such a problem, an image processing method has been proposed in which the original image data is smoothed (outline correction) by a known mask processing such as 3 × 3, 5 × 5. There is. FIG. 20 illustrates a 3 × 3 mask process.
【0008】しかしながら、マスク処理による画像処理
方法においては、原画像の画像データを局所的にしか平
滑化することができず、出力する画像全体の画像品質を
向上させることができず、近年の出力画像の品質の向上
が求められるなか、よりすぐれた画像処理方法および画
像編集方法が望まれている。However, in the image processing method by the mask processing, the image data of the original image can only be locally smoothed, and the image quality of the entire output image cannot be improved. With the demand for improved image quality, better image processing methods and image editing methods are desired.
【0009】本発明はこれらの点に鑑みてなされたもの
であり、前述した従来のものにおける問題点を克服し、
出力する画像の輪郭部のジャギーを防止し、高品質の出
力画像を得ることを可能とする画像処理方法および画像
編集方法を提供することを目的とする。The present invention has been made in view of these points, and overcomes the above-mentioned problems in the conventional ones.
An object of the present invention is to provide an image processing method and an image editing method capable of preventing a jaggedness of the contour portion of an image to be output and obtaining a high quality output image.
【0010】[0010]
【課題を解決するための手段】前述した目的を達成する
ため請求項1に記載の本発明の画像処理法方は、原画像
の画像データを、ビットの属性変化点の座標値と前記属
性変化点における付帯属性とを対としたライン単位の圧
縮原画像データとし、前記圧縮原画像データの連続する
3ラインをその属性変化点の座標値のみを拡大して修正
圧縮データとし、前記修正圧縮データの各ラインの同一
属性を有する属性変化点が座標方向の所定範囲内に位置
する場合に、中間ラインの属性変化点の座標値を先頭ラ
インの属性変化点の座標値と後尾ラインの属性変化点の
座標値との平均座標値に置換することにより原画像の画
像データの輪郭修正を施すことを特徴としている。In order to achieve the above-mentioned object, the image processing method of the present invention according to claim 1 is characterized in that image data of an original image is converted into a coordinate value of a bit attribute change point and the attribute change. The compressed original image data in units of lines paired with the incidental attribute at the point is used, and the continuous three lines of the compressed original image data are expanded as the corrected compressed data by expanding only the coordinate value of the attribute change point. When the attribute change points having the same attribute of each line are located within a predetermined range in the coordinate direction, the coordinate value of the attribute change point of the intermediate line is set to the coordinate value of the attribute change point of the first line and the attribute change point of the tail line. It is characterized in that the contour correction of the image data of the original image is performed by replacing the average coordinate value with the coordinate value of.
【0011】そして、請求項2に記載の本発明の画像処
理法方は、原画像の画像データを、ビットの属性変化点
の座標値と前記属性変化点における付帯属性とを対とし
たライン単位の圧縮原画像データとし、前記圧縮原画像
データの連続する3ラインをその属性変化点の座標値の
みを拡大して修正圧縮データとし、前記修正圧縮データ
の後尾ラインの属性変化点中より中間ラインの属性変化
点と重なるとともに同一属性を有し、かつ、中間ライン
の属性変化点の座標値との差分の絶対値が所定値以下の
属性変化点を検出し、続いて、先頭ラインの属性変化点
中より後尾ラインの属性変化点と同一属性を有し、か
つ、後尾ラインの属性変化点の座標値との差分の絶対値
が所定値以下の属性変化点を検出し、検出された先頭ラ
インの属性変化点の座標値と後尾ラインの属性変化点の
座標値との差分の絶対値が所定値以下の場合に、当該差
分の平均を中間ラインの属性変化点の座標値に加えた座
標値を中間ラインの属性変化点の座標値とすることによ
り原画像の画像データの輪郭修正を施すことを特徴とし
ている。According to the image processing method of the present invention as set forth in claim 2, the image data of the original image is composed of a line unit in which the coordinate value of the bit attribute change point and the incidental attribute at the attribute change point are paired. Compressed original image data, the continuous three lines of the compressed original image data are expanded to the corrected compressed data by expanding only the coordinate values of the attribute change points, and the intermediate line from the attribute change points of the tail line of the corrected compressed data The attribute change point that has the same attribute as that of the attribute change point and the absolute value of the difference from the coordinate value of the attribute change point of the intermediate line is equal to or less than a predetermined value is detected. An attribute change point that has the same attribute as the attribute change point of the tail line from among the points and whose absolute value of the difference from the coordinate value of the attribute change point of the tail line is less than or equal to a predetermined value is detected, and the detected first line Attribute change point of When the absolute value of the difference between the standard value and the coordinate value of the attribute change point of the tail line is less than or equal to a predetermined value, the coordinate value obtained by adding the average of the difference to the coordinate value of the attribute change point of the intermediate line is the attribute of the intermediate line. It is characterized in that the contour value of the image data of the original image is corrected by using the coordinate value of the change point.
【0012】また、請求項3に記載の本発明の画像編集
方法は、原画像に対する拡大率が所定値以上の場合に、
請求項1または請求項2に記載の画像処理を施した後、
前記圧縮原画像データの相互に隣接する2ラインの座標
値を所定の拡大率と等しくなるように乗算して拡大圧縮
データとし、前記拡大圧縮データから直線補間する属性
変化点を検出し、補間ラインの属性変化点を拡大率に応
じた直線補間をもって行うことにより原画像の画像デー
タの拡大を施すことを特徴としている。Further, in the image editing method of the present invention according to claim 3, when the enlargement ratio with respect to the original image is a predetermined value or more,
After performing the image processing according to claim 1 or 2,
The coordinate values of two lines adjacent to each other in the compressed original image data are multiplied so as to be equal to a predetermined expansion rate to obtain expanded compressed data, and an attribute change point for linear interpolation is detected from the expanded compressed data, and an interpolation line is detected. It is characterized in that the image data of the original image is enlarged by performing the attribute change point of (1) by linear interpolation according to the enlargement ratio.
【0013】[0013]
【作用】請求項1および請求項2に記載の本発明の画像
処理方法によれば、原画像の画像データを圧縮原画像デ
ータとし、この圧縮原画像データを加工することによ
り、出力する画像の全体的な平滑化を行うことができ
る。According to the image processing method of the present invention described in claims 1 and 2, the image data of the original image is used as the compressed original image data, and the compressed original image data is processed to obtain the image to be output. Global smoothing can be performed.
【0014】請求項3に記載の本発明の画像編集方法に
よれば、原画像の画像データの全体的な平滑化をした
後、平滑化された圧縮原画像データを加工することによ
り、出力する拡大画像の平滑化をすることができる。According to the image editing method of the present invention as defined in claim 3, the image data of the original image is subjected to overall smoothing, and then the smoothed compressed original image data is processed and outputted. The enlarged image can be smoothed.
【0015】[0015]
【実施例】以下、本発明の実施例を図面について説明す
る。Embodiments of the present invention will now be described with reference to the drawings.
【0016】まず、本発明に係る画像処理方法に適用す
る圧縮原画像データについて図1により説明する。First, compressed original image data applied to the image processing method according to the present invention will be described with reference to FIG.
【0017】白色の用紙に黒色で所望の文字が書かれた
原稿があるとする。この原稿をスキャナで読み込むと、
スキャナの分解能、例えば、400dpiに応じてライ
ン単位で読み取られ、図1(a)に示すように、2値化
されたライン単位のビットイメージに変換された原画像
の画像データとなる。It is assumed that there is a manuscript in which desired characters are written in black on white paper. If you scan this document with a scanner,
Image data of the original image is read in line units according to the resolution of the scanner, for example, 400 dpi, and converted into a binarized bit image in line units as shown in FIG. 1A.
【0018】そして、図1(a)に示す原画像の画像デ
ータ(ビットイメージ)を、白黒のビットイメージのう
ち白から黒、または、黒から白のようにビットの属性が
変化する属性変化点(以下、変化点といい、図において
も変化点と記す。)の座標値Xと前記変化点における付
帯属性Zとを対としたライン単位のデータとすることに
より、図1(b)に示すように、圧縮原画像データを形
成する。The image data (bit image) of the original image shown in FIG. 1 (a) is converted into an attribute change point at which the bit attribute changes from white to black or black to white in the black and white bit image. FIG. 1 (b) shows the data in units of a line, in which the coordinate value X of (hereinafter, referred to as a change point, also referred to as a change point in the figure) and the incidental attribute Z at the change point are paired. Thus, the compressed original image data is formed.
【0019】すなわち、図1(a)に示すビットイメー
ジの原画像の画像データは、ラインの先端(図中右端,
座標値0)のドットが白であるので、(0,白)のX座
標の座標値Xと付帯属性Zとを対とした1組のデータ、
つまり座標値をX、付帯属性をZとすると(0,白)か
らなる(X1,Z1)という変化点1のデータがまず作
成される。つぎに、ラインの進行方向の座標値Xが4
(X=4)で黒に変化しているので、(4,黒)からな
る(X2,Z2)という変化点2のデータが作成され
る。以下同様にして、(X3,Z3)という変化点3の
データ、(X4,Z4)という変化点4のデータ、(X
5,Z5)という変化点5のデータが順次作成されて、
ビットの変化点の座標値Xと前記変化点における付帯属
性Zとを対とした(Xn,Zn)というライン単位の圧
縮原画像データが形成される。That is, the image data of the original image of the bit image shown in FIG.
Since the dot having the coordinate value 0) is white, a set of data in which the coordinate value X of the X coordinate of (0, white) and the incidental attribute Z are paired,
That is, assuming that the coordinate value is X and the incidental attribute is Z, the data of the change point 1 consisting of (0, white) (X1, Z1) is first created. Next, the coordinate value X in the traveling direction of the line is 4
Since the color has changed to black at (X = 4), data of the change point 2 of (X2, Z2) composed of (4, black) is created. Similarly, the data of the change point 3 of (X3, Z3), the data of the change point 4 of (X4, Z4), and (X
5, Z5), the data of change point 5 is sequentially created,
Compressed original image data of a line unit of (Xn, Zn) is formed with the coordinate value X of the bit change point and the incidental attribute Z at the change point as a pair.
【0020】そして、上記のように形成された圧縮原画
像データは、図示しない公知の画像メモリに記憶される
こととなる。The compressed original image data formed as described above is stored in a known image memory (not shown).
【0021】このように、原画像の画像データを、ビッ
トの変化点の座標値Xと前記変化点における付帯属性Z
とを対(Xn,Zn)としたライン単位の圧縮原画像デ
ータに圧縮するのは、原稿を読み取るときの分解能が優
れているほど効率が向上する。例えば、原画像の画像デ
ータを構成するドットの数はスキャナの分解能の2乗に
比例する。これに対して、圧縮後の圧縮原画像データ
は、ラインの数はスキャナの分解能に比例するが、1ラ
イン中のビットの変化点の座標値Xと前記変化点におけ
る付帯属性Zとを対(Xn,Zn)とした組の数は変化
しない。従って、分解能を2乗とするとドットの数は4
倍となるが、圧縮原画像データの数はラインの数が増加
した2倍にしかならない。In this way, the image data of the original image is converted into the coordinate value X of the bit change point and the incidental attribute Z at the change point.
The compression of line-by-line compressed original image data in which and are paired (Xn, Zn) is more efficient as the resolution at the time of reading the original is superior. For example, the number of dots forming the image data of the original image is proportional to the square of the resolution of the scanner. On the other hand, in the compressed original image data after compression, the number of lines is proportional to the resolution of the scanner, but the coordinate value X of the change point of the bit in one line and the additional attribute Z at the change point are paired ( (Xn, Zn) does not change the number of pairs. Therefore, if the resolution is squared, the number of dots is 4
However, the number of compressed original image data is only twice as many as the number of lines.
【0022】上述したようにして形成される圧縮原画像
データの一例を図2に、その圧縮原画像データの変化点
を示す模式図を図3に示す。FIG. 2 shows an example of the compressed original image data formed as described above, and FIG. 3 is a schematic diagram showing the changing points of the compressed original image data.
【0023】つぎに、本発明に係る画像処理方法の一実
施例について図4に示すフローチャートにより説明す
る。Next, an embodiment of the image processing method according to the present invention will be described with reference to the flow chart shown in FIG.
【0024】本実施例の画像処理方法は、図示しない画
像メモリに記憶された、圧縮原画像データを加工するこ
とにより行われる。The image processing method of this embodiment is performed by processing the compressed original image data stored in the image memory (not shown).
【0025】図4に示すように、本実施例の画像処理方
法(輪郭修正方法)が開始されると、ステップST10に
おいて、図示しない画像メモリに記憶された圧縮原画像
データをラインの先頭(ライン0)から順に処理できる
ようにライン番号および各変化点番号を初期化してつぎ
のステップST11に進行する。すなわち、L,i,j,
k←0とする。As shown in FIG. 4, when the image processing method (outline correction method) of the present embodiment is started, the compressed original image data stored in the image memory (not shown) at the beginning of the line (line The line number and each change point number are initialized so that they can be sequentially processed from 0), and the process proceeds to the next step ST11. That is, L, i, j,
Let k ← 0.
【0026】ここで、Lはライン番号、iはラインLの
変化点番号、jはラインL+1の変化点番号、kはライ
ンL+2の変化点番号とする。Here, L is the line number, i is the change point number of the line L, j is the change point number of the line L + 1, and k is the change point number of the line L + 2.
【0027】つぎに、ステップST11において、連続す
る3ライン、L,L+1,L+2の圧縮原画像データを
図示しない画像メモリから取り出してつぎのステップS
T12に進行する。Next, in step ST11, compressed original image data of three consecutive lines, L, L + 1, L + 2, is taken out from an image memory (not shown), and the next step S11 is performed.
Proceed to T12.
【0028】つぎに、ステップST12において、取り出
した3ラインの変化点の座標値XをX座標方向に2
n(n:自然数)倍して拡大して修正圧縮データとし、
つぎのステップST13に進行する。Next, in step ST12, the coordinate value X of the change point of the three lines taken out is set to 2 in the X coordinate direction.
n (n: natural number) times and expands to make modified compressed data,
Then, the process proceeds to next step ST13.
【0029】なお、2n(n:自然数)倍という拡大値
としたのは、内部処理を容易にして、処理速度の低下を
防止するためであり、処理速度の低下を他の方法により
防止する場合には、任意の値を用いることができる。The enlarged value of 2 n (n: natural number) times is for facilitating the internal processing and preventing the reduction of the processing speed, and the reduction of the processing speed is prevented by another method. In this case, any value can be used.
【0030】つぎに、ステップST13において、修正圧
縮データの後尾ライン(L+2)の先頭の変化点kの付
帯属性(色属性)Zと中間ライン(L+1)の変化点j
の付帯属性(色属性)Zとが同一属性を有するととも
に、その両変化点k,jの座標値kx,jxの差分ΔX
1の絶対値(|kx−jx|)が所定値ΔX(固定値)
以下となる変化点k,j(輪郭修正の必要な変化点)の
有無を判断し、YESの場合にはつぎのステップST14
に進行する。Next, in step ST13, an incidental attribute (color attribute) Z of the change point k at the beginning of the tail line (L + 2) of the corrected compressed data and a change point j of the intermediate line (L + 1).
Has the same attribute as the incidental attribute (color attribute) Z, and the difference ΔX between the coordinate values kx and jx of both change points k and j.
The absolute value of 1 (| kx-jx |) is a predetermined value ΔX (fixed value)
The presence or absence of the following change points k and j (change points that require contour correction) is determined. If YES, the next step ST14
Proceed to.
【0031】すなわち、”変化点[(L+2),k]の
色属性=変化点[(L+1),j]の色属性”と、”|
変化点[(L+2),k]の座標値(kx)−変化点
[(L+1),j]の座標値(jx)|≦ΔX”とを満
足する変化点k,jを検出する。That is, "color attribute of changing point [(L + 2), k] = color attribute of changing point [(L + 1), j]" and "|
The change points k and j satisfying the coordinate value (kx) of the change point [(L + 2), k] -the coordinate value (jx) | ≦ ΔX ”of the change point [(L + 1), j] are detected.
【0032】前記ステップST13の判断がNO(無)の
場合には、ステップST20に進行して、中間ライン(L
+1)の先頭の変化点jの次の変化点j+1をjとして
(j←j+1)つぎのステップST21に進行し、ライン
L+1の変化点数≧j(すべての変化点jについて処理
したか否か)を判断し、NO(すべての変化点jについ
て処理した)の場合には、ステップST40に進行し、Y
ES(すべての変化点jについて処理してない)の場合
には、ステップST13に戻り、ステップST21において
NOの判断がでるまで同様の処理を繰り返す。そして、
ステップST40において、後尾ラインL+2の先頭の変
化点kの次の変化点k+1をkとして(k←k+1)つ
ぎのステップST41に進行し、ラインL+2の変化点数
≧k(すべての変化点kについて処理したか否か)を判
断し、NO(すべての変化点kについて処理した)の場
合には、ステップ16に進行し、YES(すべての変化点
kについて処理してない)の場合には、ステップST13
に戻り、ステップST41においてNOの判断がでるまで
同様の処理を繰り返す。If the determination in step ST13 is NO, the process proceeds to step ST20 and the intermediate line (L
(J ← j + 1), where the next change point j + 1 of the first change point j in (+1) is j (j ← j + 1), the process proceeds to the next step ST21, and the number of change points in line L + 1 ≧ j (whether or not all change points j have been processed) If NO (processed for all change points j), the process proceeds to step ST40 and Y
In the case of ES (all the change points j have not been processed), the process returns to step ST13, and the same process is repeated until NO is determined in step ST21. And
In step ST40, the next change point k + 1 of the first change point k of the tail line L + 2 is set to k (k ← k + 1), and the process proceeds to the next step ST41, where the number of change points of the line L + 2 ≧ k (for all change points k If NO (processed for all change points k), proceed to step 16. If YES (not processed for all change points k), proceed to step 16. ST13
Returning to step ST41, the same processing is repeated until NO is determined in step ST41.
【0033】すなわち、ステップST20およびステップ
ST21において、ラインL+1の変化点jを先頭から順
に変化させるとともに、ステップST40およびステップ
ST41において、ラインL+2の変化点kを先頭から順
に変化させることにより、両変化点j,kのすべてにつ
いて処理を施している。That is, in steps ST20 and ST21, the change point j of the line L + 1 is changed in order from the beginning, and in steps ST40 and ST41, the change point k of the line L + 2 is changed in order from the beginning. All points j and k are processed.
【0034】つぎに、ステップST14において、修正圧
縮データの後尾ライン(L+2)の変化点kの付帯属性
(色属性)Zと先頭ライン(L)の変化点iの付帯属性
(色属性)Zとが同一属性を有するとともに、その両変
化点k,iの座標値kx,ixの差分ΔX2の絶対値
(|kx−ix|)が所定値ΔX以下となる変化点k,
i(輪郭修正の必要な変化点)の有無を判断し、YES
の場合にはつぎのステップST15に進行する。Next, in step ST14, the additional attribute (color attribute) Z of the change point k of the tail line (L + 2) of the corrected compressed data and the additional attribute (color attribute) Z of the change point i of the first line (L) are set. Have the same attribute, and the change point k, in which the absolute value (| kx-ix |) of the difference ΔX2 between the coordinate values kx, ix of the two change points k, i is less than or equal to a predetermined value ΔX.
Determine if there is an i (change point that requires contour correction), and YES
In the case of, the process proceeds to the next step ST15.
【0035】すなわち、ステップST13と同様にし
て、”変化点[(L+2),k]の色属性=変化点
[(L),i]の色属性”と、”|変化点[(L+
2),k]の座標値(kx)−変化点[(L),i]の
座標値(ix)|≦ΔX”とを満足する変化点k,iを
検出する。That is, as in step ST13, "color attribute of changing point [(L + 2), k] = color attribute of changing point [(L), i]" and "| changing point [(L +
2) Change points k and i satisfying the coordinate value (kx) of k] −the coordinate value (ix) | ≦ ΔX ”of the change point [(L), i] are detected.
【0036】前記ステップST14の判断がNO(無)の
場合には、ステップST30に進行して、先頭ラインLの
先頭の変化点iの次の変化点i+1をiとして(i←i
+1)つぎのステップST31に進行し、ラインLの変化
点数≧i(すべての変化点iについて処理したか否か)
を判断し、NO(すべての変化点iについて処理した)
の場合には、つぎのステップST40に進行し、YES
(すべての変化点iについて処理してない)の場合に
は、ステップST14に戻り、ステップST31においてN
Oの判断がでるまで同様の処理を繰り返す。If the determination in step ST14 is NO (none), the process proceeds to step ST30, where i is the change point i + 1 next to the change point i at the beginning of the start line L (i ← i
+1) Proceeding to the next step ST31, the number of change points of the line L ≧ i (whether or not all change points i have been processed)
And NO (processed for all change points i)
In the case of, proceed to the next step ST40, and YES
In the case of (all the change points i have not been processed), the process returns to step ST14 and N is returned in step ST31.
The same processing is repeated until the determination of O is made.
【0037】すなわち、ステップST30およびステップ
ST31において、ラインLの変化点iを先頭から順に変
化させるとともに、ステップST40およびステップST
41において、ラインL+2の変化点kを先頭から順に変
化させることにより、両変化点i,kのすべてについて
処理を施している。That is, in steps ST30 and ST31, the change point i of the line L is changed in order from the beginning, and steps ST40 and ST
In 41, the change point k of the line L + 2 is changed in order from the beginning to process all the change points i and k.
【0038】つぎに、ステップST15において、前記ス
テップST13およびステップST14において検出された
各変化点i,j,kに基づいて、中間ライン(L+1)
の変化点jの座標値(jx)を、差分ΔX2の平均を先
頭ライン(L)の変化点iの座標値kxに加えた新座標
値(jx’)に置き換えてつぎのステップST16に進行
する。Next, in step ST15, based on the respective change points i, j, k detected in steps ST13 and ST14, the intermediate line (L + 1)
The coordinate value (jx) of the change point j is replaced with a new coordinate value (jx ') obtained by adding the average of the differences ΔX2 to the coordinate value kx of the change point i of the first line (L), and the process proceeds to the next step ST16. .
【0039】すなわち、”変化点[(L+1),j]の
新座標値(jx’)=変化点[(L),i]の座標値
(ix)+{変化点[(L+2),k]の座標値(k
x)−変化点[(L),i]の座標値(ix)}/2”
とする。That is, "new coordinate value (jx ') of change point [(L + 1), j] = coordinate value (ix) of change point [(L), i] + {change point [(L + 2), k] Coordinate value of (k
x) -change point [(L), i] coordinate value (ix)} / 2 "
And
【0040】つぎに、ステップST16において、後述す
る画像編集(拡大編集)の有無を判断し、NO(画像編
集しない)の場合には、つぎのステップST17bに進行
し、L,L+1,L+2を2n(n:自然数)にて除し
てもとのサイズに戻してから図示しない画像メモリに記
憶させてつぎのステップST18に進行する。なお、もと
のサイズに戻す時に、整数値とならずに小数点以下が生
じた場合には、小数点以下を切り捨てるようになってい
る。Next, in step ST16, it is determined whether or not there is image editing (enlargement editing) described later. If NO (no image editing), the process proceeds to the next step ST17b, and L, L + 1, L + 2 is set to 2 After returning to the original size by dividing by n (n: natural number), it is stored in an image memory (not shown) and the process proceeds to the next step ST18. In addition, when returning to the original size, if a decimal point occurs instead of an integer value, the decimal point is truncated.
【0041】前記ステップST16の判断がYES(画像
編集する)場合には、つぎのステップST17aに進行
し、L,L+1,L+2をもとのサイズに戻さずに図示
しない画像メモリに記憶させてつぎのステップST18に
進行する。If the determination in step ST16 is YES (image editing), the process proceeds to the next step ST17a, in which L, L + 1 and L + 2 are stored in an image memory (not shown) without being restored to the original size. To step ST18.
【0042】つぎに、ステップST18において、L+2
に続くL+3の実際の圧縮原画像データのライン番号
が、画像メモリに記憶された圧縮原画像データの最終ラ
イン番号より小さいかどうかを判断し、YES(小さ
い)の場合には、つぎのステップST19において、L+
1をLとして(L←L+1)ステップST11に戻り、ス
テップ18においてNOの判断がでるまで同様の処理を繰
り返し、NO(大きい)の場合には、処理を終了する。Next, in step ST18, L + 2
It is determined whether or not the line number of the actual compressed original image data of L + 3 following is smaller than the final line number of the compressed original image data stored in the image memory. If YES (small), the next step ST19 At L +
When 1 is set to L (L ← L + 1), the process returns to step ST11, and the same process is repeated until NO is determined in step 18, and if NO (large), the process ends.
【0043】つぎに、前述した画像処理について図2か
ら図8により具体的に説明する。Next, the above-mentioned image processing will be specifically described with reference to FIGS.
【0044】まず、図2に示す圧縮原画像データから連
続する3ライン、L,L+1,L+2の圧縮原画像デー
タとして、例えば、ライン7,ライン8,ライン9を取
り出す。この取り出した圧縮原画像データを図5に示
す。ここで、ライン7の変化点をA、ライン8の変化点
をB、ライン9の変化点をCとする。First, for example, line 7, line 8 and line 9 are extracted from the compressed original image data shown in FIG. 2 as compressed original image data of three consecutive lines, L, L + 1, L + 2. The extracted compressed original image data is shown in FIG. Here, the change point of line 7 is A, the change point of line 8 is B, and the change point of line 9 is C.
【0045】つぎに、図5に示す圧縮原画像データの座
標値を座標方向に2n(n:自然数)倍、ここではn=
1として2倍して修正圧縮データを形成する。この修正
圧縮データを図6に示す。ここで、ライン7の修正圧縮
データの変化点をA’ライン8の修正圧縮データの変化
点をB’、ライン9の修正圧縮データの変化点をC’と
する。Next, the coordinate values of the compressed original image data shown in FIG. 5 are multiplied by 2 n (n: natural number) in the coordinate direction, where n =
It is doubled as 1 to form modified compressed data. This corrected compressed data is shown in FIG. Here, the change point of the corrected compressed data on line 7 is A ', the change point of the corrected compressed data on line 8 is B', and the change point of the corrected compressed data on line 9 is C '.
【0046】つぎに、図6に示す修正圧縮データの変化
点から輪郭修正が必要な変化点を、所定値ΔX=2とし
て探し出す。つまり、ライン7とライン8との両ライン
で同時に、ライン9の変化点と色属性が同一で座標値の
差分が2以下という条件を満足する変化点を探し出す。Next, a change point requiring contour correction is searched for from the change point of the corrected compressed data shown in FIG. 6 as a predetermined value ΔX = 2. That is, a change point that has the same color attribute as the change point of the line 9 and a difference in coordinate value of 2 or less is searched for on both the line 7 and the line 8 at the same time.
【0047】この輪郭修正を必要とする変化点は、つぎ
に記す3カ所となる。 1)変化点A1’、B1’、C1’ 2)変化点A2’、B2’、C2’ 3)変化点A5’、B3’、C5’ つぎに、修正圧縮データの中間ライン(ライン8)の輪
郭修正が必要な変化点B’の座標値を、以下に記すよう
にして新座標値に置き換える。 1)変化点B1’=A1’+(C1’−A1’)/2 =0+(0−0)/2=0 従って、変化点B1’の新座標値は0のままである。 2)変化点B2’=A2’+(C2’−A2’)/2 =4+(4−4)/2=4 従って、変化点B2’の座標値を6から新座標値4に置
き換える。 3)変化点B3’=A5’+(C5’−A5’)/2 =44+(44−44)/2=44 従って、変化点B3’の座標値を46から新座標値44
に置き換える。There are three changing points which require the contour modification as described below. 1) Change points A1 ', B1', C1 '2) Change points A2', B2 ', C2' 3) Change points A5 ', B3', C5 'Next, the intermediate line (line 8) of the modified compressed data The coordinate value of the changing point B ′ that requires contour correction is replaced with a new coordinate value as described below. 1) Change point B1 ′ = A1 ′ + (C1′−A1 ′) / 2 = 0 + (0−0) / 2 = 0 Therefore, the new coordinate value of the change point B1 ′ remains 0. 2) Change point B2 ′ = A2 ′ + (C2′−A2 ′) / 2 = 4 + (4-4) / 2 = 4 Therefore, the coordinate value of the change point B2 ′ is replaced with 6 from the new coordinate value 4. 3) Change point B3 ′ = A5 ′ + (C5′−A5 ′) / 2 = 44 + (44−44) / 2 = 44 Therefore, the coordinate value of the change point B3 ′ is changed from 46 to the new coordinate value 44.
Replace with.
【0048】この置き換えにより輪郭修正を施した修正
圧縮データを図7に示す。FIG. 7 shows the corrected compressed data in which the contour is corrected by this replacement.
【0049】つぎに、画像編集を行う場合には、前記輪
郭修正を施した修正圧縮データを画像処理(輪郭修正)
を施した圧縮原画像データとしてそのまま図示しない画
像メモリに記憶させる。Next, when performing image editing, the corrected compressed data subjected to the contour correction is subjected to image processing (contour correction).
The compressed original image data is stored in the image memory (not shown) as it is.
【0050】また、画像編集を行わない場合には、図7
に示す置き換えた修正圧縮データの座標値を2で除して
もとのサイズに戻し、画像処理(輪郭修正)を施した圧
縮原画像データとする。この画像処理(輪郭修正)を施
した圧縮原画像データを図8に示す。If the image is not edited, the process shown in FIG.
The coordinate value of the replaced corrected compressed data shown in (4) is divided by 2 to return to the original size, and the compressed original image data is subjected to image processing (outline correction). FIG. 8 shows the compressed original image data that has been subjected to this image processing (outline correction).
【0051】つぎに、ライン7,ライン8,ライン9の
圧縮原画像データに対する画像処理が終了したら、つぎ
にライン8,ライン9,ライン10の圧縮原画像データ
に対して前述と同様に画像処理を施す。なお、ライン
8,ライン9,ライン10の画像処理を行う場合のライ
ン8の圧縮原画像データは、画像処理により座標値が置
き換えられたものを使用する。Next, when the image processing on the compressed original image data of line 7, line 8 and line 9 is completed, the image processing on the compressed original image data of line 8, line 9 and line 10 is performed in the same manner as described above. Give. In addition, the compressed original image data of the line 8 when the image processing of the line 8, the line 9, and the line 10 is performed uses the data whose coordinate values are replaced by the image processing.
【0052】以下、画像メモリから取り出す後尾ライン
の番号が、画像メモリに記憶された圧縮原画像データの
最終ライン番号と同一になるまで、順に3ラインづつ取
り出して前述した画像処理を施すことにより、図2に示
す圧縮原画像データを、図9に示すような輪郭修正を施
した圧縮原画像データとすることができ、図3に示す模
式図は図10に示すような模式図となり、画像全体の輪
郭が円滑に修正され、出力する画像の輪郭部のジャギー
を確実に防止するとともに、高品質の出力画像を得るこ
とができる。Thereafter, three lines are sequentially taken out and subjected to the above-mentioned image processing until the number of the tail line extracted from the image memory becomes the same as the final line number of the compressed original image data stored in the image memory. The compressed original image data shown in FIG. 2 can be the compressed original image data with the contour correction shown in FIG. 9, and the schematic diagram shown in FIG. 3 becomes a schematic diagram shown in FIG. The contour is corrected smoothly, jaggies in the contour of the output image are reliably prevented, and a high-quality output image can be obtained.
【0053】つぎに、本発明に係る画像編集方法(スム
ージング処理)の一実施例について図11に示すフロー
チャートにより説明する。Next, an embodiment of the image editing method (smoothing processing) according to the present invention will be described with reference to the flowchart shown in FIG.
【0054】本実施例の画像編集方法は、前述した画像
処理方法のステップST17bにおいて図示しない画像メ
モリに記憶された画像処理(輪郭修正)を施した圧縮原
画像データを加工することにより行われる。The image editing method of this embodiment is performed by processing the compressed original image data which has been subjected to the image processing (outline correction) stored in the image memory (not shown) in step ST17b of the above-mentioned image processing method.
【0055】図11に示すように、本実施例の画像編集
方法(拡大編集)が開始されると、ステップST50にお
いて、前述した画像処理が行われ、つぎにステップST
51に進行する。As shown in FIG. 11, when the image editing method (enlargement editing) of this embodiment is started, the above-mentioned image processing is performed in step ST50, and then step ST is executed.
Proceed to 51.
【0056】つぎに、ステップST51において、画像を
拡大する拡大率Nが2以上かどうか(N≧2)を判断
し、YES(拡大率が2以上、N≧2)の場合には、つ
ぎのステップST52に進行する。Next, in step ST51, it is determined whether or not the enlargement ratio N for enlarging the image is 2 or more (N ≧ 2). If YES (enlargement ratio is 2 or more, N ≧ 2), Proceed to step ST52.
【0057】そして、ステップST52において、相互に
隣接する2ライン、L,L+1の画像処理が施された圧
縮原画像データを図示しない画像メモリから取り出して
つぎのステップST53に進行する。Then, in step ST52, the compressed original image data which has been subjected to the image processing of two lines, L and L + 1, which are adjacent to each other, is taken out from the image memory (not shown), and the process proceeds to the next step ST53.
【0058】つぎに、ステップST53において、取り出
した2ラインL,L+1の変化点の座標値XをX座標方
向に倍率N/2nをもって拡大して拡大圧縮データと
し、つぎのステップST54に進行する。Next, in step ST53, the coordinate value X of the extracted change point of the two lines L and L + 1 is enlarged in the X coordinate direction by a magnification N / 2n to obtain enlarged / compressed data, and the process proceeds to the next step ST54. .
【0059】つぎに、ステップST54において、直線補
間する変化点を検出し、つぎのステップST55に進行す
る。Next, in step ST54, a change point for linear interpolation is detected, and the process proceeds to next step ST55.
【0060】すなわち、拡大圧縮データの前ラインLの
変化点と後ラインL+1の変化点とが同一属性を有する
とともに、重なり合う変化点を検出する。That is, the change point of the front line L and the change point of the rear line L + 1 of the expanded / compressed data have the same attribute, and an overlapping change point is detected.
【0061】つぎに、ステップST55において、原画像
に対する拡大率Nに応じた補間ラインの変化点を、ステ
ップST54にて検出した変化点を直線補間することによ
り、拡大率Nに応じた補間ラインの拡大圧縮データを作
成し、つぎのステップST56に進行する。Next, in step ST55, the change point of the interpolation line corresponding to the enlargement ratio N with respect to the original image is linearly interpolated with the change point detected in step ST54 to obtain the interpolation line corresponding to the enlargement ratio N. Enlarged and compressed data is created, and the process proceeds to the next step ST56.
【0062】つぎに、ステップST56において、L+1
をLとして(L←L+1)つぎのステップST57に進行
する。Next, in step ST56, L + 1
Is set to L (L ← L + 1) and the process proceeds to the next step ST57.
【0063】つぎに、ステップST57において、L+1
の圧縮原画像データのライン番号が、画像メモリに記憶
された圧縮原画像データの最終ライン番号より小さいか
どうかを判断し、YES(小さい)の場合には、ステッ
プST52に戻り、ステップ57においてNOの判断がでる
まで同様の処理を繰り返し、NO(大きい)の場合に
は、処理を終了する。Next, in step ST57, L + 1
Of the compressed original image data is smaller than the final line number of the compressed original image data stored in the image memory. If YES (small), the process returns to step ST52 and NO in step 57. The same process is repeated until the determination is made. If NO (large), the process ends.
【0064】前記ステップST51の判断がNO(拡大率
Nが2未満)の場合には、ステップST61に進行する。If the determination in step ST51 is NO (the enlargement ratio N is less than 2), the process proceeds to step ST61.
【0065】そして、ステップST61において、ライン
Lの画像処理が施された圧縮原画像データを図示しない
画像メモリから取り出してつぎのステップST62に進行
する。Then, in step ST61, the compressed original image data subjected to the image processing of the line L is taken out from the image memory (not shown), and the process proceeds to step ST62.
【0066】つぎに、ステップST62において、取り出
したラインLの変化点の座標値XをX座標方向に倍率N
/2nをもって拡大して拡大圧縮データとし、つぎのス
テップST63に進行する。Next, in step ST62, the coordinate value X of the change point of the line L taken out is multiplied by N in the X coordinate direction.
The data is expanded with / 2 n to obtain expanded compressed data, and the process proceeds to the next step ST63.
【0067】つぎに、ステップST63において、ライン
Lの変化点を原画像に対する拡大率Nに応じた補間ライ
ンの変化点として直線補間することにより、拡大率Nに
応じた補間ラインの拡大圧縮データを作成し、つぎのス
テップST64に進行する。Next, in step ST63, the change point of the line L is linearly interpolated as the change point of the interpolation line corresponding to the enlargement ratio N with respect to the original image to obtain the enlargement / compression data of the interpolation line corresponding to the enlargement ratio N. Create and proceed to the next step ST64.
【0068】つぎに、ステップST64において、L+1
をLとして(L←L+1)つぎのステップST65に進行
する。Next, in step ST64, L + 1
Is set to L (L ← L + 1) and the process proceeds to the next step ST65.
【0069】つぎに、ステップST65において、ライン
Lの圧縮原画像データのライン番号が、画像メモリに記
憶された圧縮原画像データの最終ライン番号より小さい
かどうかを判断し、YES(小さい)の場合には、ステ
ップST61に戻り、ステップ65においてNOの判断がで
るまで同様の処理を繰り返し、NO(大きい)の場合に
は、処理を終了する。Next, in step ST65, it is determined whether or not the line number of the compressed original image data of the line L is smaller than the final line number of the compressed original image data stored in the image memory. If YES (small) In step ST61, the same process is repeated until NO is determined in step 65. If NO (large), the process ends.
【0070】つぎに、前述した画像編集(拡大)につい
て原画像の拡大率N=3の場合を例示して図12から図
16により具体的に説明する。Next, the image editing (enlargement) described above will be specifically described with reference to FIGS. 12 to 16 by exemplifying the case where the enlargement ratio N = 3 of the original image.
【0071】まず、図示しない画像メモリに記憶された
輪郭修正処理が施された圧縮原画像データからライン
L,ラインL+1の2ライン(以下、説明の便宜上ライ
ンLをライン1とし、ラインL+2をライン2とする)
を取り出し、ライン1,ライン2の座標値を拡大率Nに
対応させて3/2n倍し、拡大圧縮データとする。この
拡大圧縮データの一例を図12に、その変化点を示す模
式を図13に示し、以下の説明を図12および図13を
もとにして説明する。ここで、ライン1の拡大圧縮デー
タの変化点をA,B,C…、ライン2の拡大圧縮データ
の変化点をa,b,c…とする。First, two lines of line L and line L + 1 from the compressed original image data stored in an image memory (not shown) and subjected to the contour correction process (hereinafter, line L is line 1 and line L + 2 is line 1 for convenience of explanation). 2)
Is taken out and the coordinate values of line 1 and line 2 are multiplied by 3/2 n in correspondence with the enlargement ratio N to obtain enlarged compressed data. An example of this expanded / compressed data is shown in FIG. 12, and a schematic diagram showing the change points thereof is shown in FIG. 13, and the following description will be made with reference to FIGS. 12 and 13. Here, the change points of the expanded / compressed data of the line 1 are A, B, C ... And the change points of the expanded / compressed data of the line 2 are a, b, c.
【0072】つぎに、直線補間する変化点を探し出す
(検出する)。つまり、ライン1の変化点A,B,C…
とライン2の変化点a,b,c…とが同一属性を有する
とともに、重なり合う変化点を検出する。Next, a change point for linear interpolation is searched for (detected). That is, the change points A, B, C of line 1 ...
And the changing points a, b, c ... Of line 2 have the same attribute, and the changing points that overlap each other are detected.
【0073】この直線補間する変化点は、変化点A−a
間、変化点B−b間、変化点D−b間、変化点D−d
間、変化点E−e間、変化点F−f間、変化点G−g間
の7カ所となる。The change point for this linear interpolation is the change point A-a.
, Change point B-b, change point D-b, change point D-d
7 points between the change points E-e, between the change points F-f, and between the change points G-g.
【0074】つぎに、拡大率Nに応じて補間ラインの変
化点の座標値を直線補間することにより算出する。ここ
で、拡大率Nを3倍としたので、2つの補間ライン(補
間ライン1、補間ライン2)を作成するための直線補間
を行う。 1)変化点A−a間(白) A座標値+(a座標値−
A座標値)/拡大率 補間ライン1の座標値=0+(0−0)×1/3=0 補間ライン2の座標値=0+(0−0)×2/3=0 2)変化点B−b間(黒) B座標値+(b座標値−
B座標値)/拡大率 補間ライン1の座標値=3+(6−3)×1/3=4 補間ライン2の座標値=3+(6−3)×2/3=5 3)変化点D−b間(黒) D座標値+(b座標値−
D座標値)/拡大率 補間ライン1の座標値=12+(6−12)×1/3=
10 補間ライン2の座標値=12+(6−12)×2/3=
8 4)変化点D−d間(黒) D座標値+(d座標値−
D座標値)/拡大率 補間ライン1の座標値=12+(18−12)×1/3
=14 補間ライン2の座標値=12+(18−12)×2/3
=16 5)変化点E−e間(白) E座標値+(e座標値−
E座標値)/拡大率 補間ライン1の座標値=21+(24−21)×1/3
=22 補間ライン2の座標値=21+(24−21)×2/3
=23 6)変化点F−f間(黒) F座標値+(f座標値−
F座標値)/拡大率 補間ライン1の座標値=30+(27−30)×1/3
=29 補間ライン2の座標値=30+(27−30)×2/3
=28 7)変化点G−g間(白) G座標値+(g座標値−
G座標値)/拡大率 補間ライン1の座標値=36+(33−36)×1/3
=35 補間ライン2の座標値=36+(33−36)×2/3
=34 この補間ラインを含む拡大圧縮データを図14に、その
変化点を示す模式を図15に示す。Next, the coordinate value of the change point of the interpolation line is calculated by linearly interpolating according to the enlargement ratio N. Here, since the enlargement ratio N is set to 3, linear interpolation is performed to create two interpolation lines (interpolation line 1 and interpolation line 2). 1) Between change points A-a (white) A coordinate value + (a coordinate value-
A coordinate value) / enlargement ratio Coordinate value of interpolation line 1 = 0 + (0-0) × 1/3 = 0 Coordinate value of interpolation line = 0 = 0 + (0-0) × 2/3 = 0 2) Change point B Between -b (black) B coordinate value + (b coordinate value-
B coordinate value) / magnification ratio Coordinate value of interpolation line 1 = 3 + (6-3) × 1/3 = 4 Coordinate value of interpolation line 2 = 3 + (6-3) × 2/3 = 5 3) Change point D Between -b (black) D coordinate value + (b coordinate value-
D coordinate value) / magnification ratio Coordinate value of interpolation line 1 = 12 + (6-12) × 1/3 =
10 Coordinate value of interpolation line 2 = 12 + (6-12) × 2/3 =
84) Change point D-d (black) D coordinate value + (d coordinate value-
D coordinate value) / magnification ratio Coordinate value of interpolation line 1 = 12 + (18-12) × 1/3
= 14 Coordinate value of interpolation line 2 = 12 + (18-12) × 2/3
= 165) Between change points E-e (white) E coordinate value + (e coordinate value-
E coordinate value) / magnification ratio Coordinate value of interpolation line 1 = 21 + (24-21) × 1/3
= 22 Coordinate value of interpolation line 2 = 21 + (24-21) × 2/3
= 236) Between change points F-f (black) F coordinate value + (f coordinate value-
F coordinate value) / magnification ratio Coordinate value of interpolation line 1 = 30 + (27-30) × 1/3
= 29 Coordinate value of interpolation line 2 = 30 + (27-30) × 2/3
= 287) Between change points G-g (white) G coordinate value + (g coordinate value-
G coordinate value) / magnification ratio Coordinate value of interpolation line 1 = 36 + (33−36) × 1/3
= 35 Coordinate value of interpolation line 2 = 36 + (33-36) × 2/3
= 34 FIG. 14 shows the expanded / compressed data including this interpolation line, and FIG. 15 schematically shows the changing points.
【0075】以上のように画像編集(拡大)を施すこと
により、図13に示す拡大圧縮データの模式図は、図1
6に示すような段差が単純に拡大された単純拡大でな
く、図15に示すような輪郭のジャギーが非常に少ない
スムージング処理が施された、高品質の出力画像を得る
ことができる。By performing image editing (enlargement) as described above, the schematic diagram of the enlarged and compressed data shown in FIG.
It is possible to obtain a high-quality output image that has been subjected to smoothing processing as shown in FIG. 15 in which the contour jaggies are very small as shown in FIG.
【0076】なお。本実施例の画像編集(拡大)におい
ては、拡大率が3倍の場合にスムージング処理を施して
いるが、出力画像の輪郭のジャギーの目立ち具合と、処
理時間を勘案してスムージング処理を行う拡大率N、例
えばN=2、を決定すればよく、本実施例の拡大率に限
定されるものではない。Incidentally. In the image editing (enlargement) of the present embodiment, the smoothing process is performed when the enlargement ratio is 3. However, the smoothing process is performed in consideration of the conspicuousness of the jaggies of the contour of the output image and the processing time. It suffices to determine the rate N, for example N = 2, and it is not limited to the enlargement rate of this embodiment.
【0077】また、前述したように、輪郭修正を施す前
に圧縮原画像データの座標値をX座標方向に2n倍する
ことにより、図17に示すように、圧縮原画像データを
単純拡大する場合(前記画像編集方法、図11のステッ
プST61〜ステップST65)の輪郭部、特に、曲線部分
の輪郭部の画質向上を確実に図ることができる。Further, as described above, the coordinate value of the compressed original image data is multiplied by 2 n in the X coordinate direction before the contour correction is performed, so that the compressed original image data is simply enlarged as shown in FIG. In this case (the above-mentioned image editing method, steps ST61 to ST65 in FIG. 11), it is possible to surely improve the image quality of the contour portion, particularly the contour portion of the curved portion.
【0078】なお、本実施例において、原画像の画像編
集(拡大)を行う場合には、圧縮原画像データの各ライ
ンの座標値XをX座標方向に2n倍して(ステップST
12)輪郭修正処理を行った後、一旦もとのサイズに戻す
ことなく(ステップST17a)スムージング処理に進行
し、ここで原画像の拡大率をNとして、N/2n倍して
(ステップST53,ステップST62)座標値XをX座標
方向にN倍した拡大圧縮データを作成する手順を用いて
いるが、輪郭修正処理時に、一旦もとのサイズに戻し
(ステップST17b)、その後スムージング処理に進行
し、ここで原画像の拡大率Nを乗算することにより座標
値XをX座標方向にN倍した拡大圧縮データを作成する
手順を用いてもよい。In this embodiment, when the image of the original image is edited (enlarged), the coordinate value X of each line of the compressed original image data is multiplied by 2 n in the X coordinate direction (step ST
12) After performing the contour correction process, the process proceeds to the smoothing process without once returning to the original size (step ST17a), where N is the enlargement ratio of the original image and is multiplied by N / 2 n (step ST53). , Step ST62) The procedure of creating enlarged / compressed data by multiplying the coordinate value X by N times in the X coordinate direction is used, but at the time of contour correction processing, the size is temporarily returned to the original size (step ST17b), and then progresses to smoothing processing. However, it is also possible to use a procedure of multiplying the enlargement ratio N of the original image here to create enlarged and compressed data in which the coordinate value X is multiplied by N in the X coordinate direction.
【0079】また、本発明は、前記実施例に限定される
ものではなく、必要に応じて変更することができる。Further, the present invention is not limited to the above-mentioned embodiment, but can be modified as necessary.
【0080】[0080]
【発明の効果】以上説明したように本発明の画像処理方
法および画像編集方法によれば、出力する画像の輪郭部
のジャギーを防止し、高品質の出力画像を得ることがで
きるという非常に優れた効果を奏する。As described above, according to the image processing method and the image editing method of the present invention, it is possible to prevent the jaggedness of the contour portion of the output image and to obtain a high quality output image. Produce the effect.
【図1】本発明に係る画像処理方法に適用する圧縮原画
像データを説明する図であり、(a)は原画像の画像デ
ータ、(b)は(a)の圧縮原画像データFIG. 1 is a diagram illustrating compressed original image data applied to an image processing method according to the present invention, in which (a) is image data of an original image and (b) is compressed original image data of (a).
【図2】本発明に係る画像処理方法に適用する圧縮原画
像データの一例を示す図FIG. 2 is a diagram showing an example of compressed original image data applied to an image processing method according to the present invention.
【図3】図2に示す圧縮原画像データの変化点を示す模
式図FIG. 3 is a schematic diagram showing change points of the compressed original image data shown in FIG.
【図4】本発明に係る画像処理方法の一実施例を示すフ
ローチャートFIG. 4 is a flowchart showing an embodiment of an image processing method according to the present invention.
【図5】ライン7,ライン8,ライン9の圧縮原画像デ
ータを示す図FIG. 5 is a diagram showing compressed original image data of lines 7, 8 and 9;
【図6】図5の修正圧縮データを示す図FIG. 6 is a diagram showing the corrected compressed data of FIG.
【図7】輪郭修正を施した修正圧縮データを示す図FIG. 7 is a diagram showing corrected compressed data subjected to contour correction.
【図8】画像処理(輪郭修正)を施した圧縮原画像デー
タを示す図FIG. 8 is a diagram showing compressed original image data subjected to image processing (outline correction).
【図9】輪郭修正を施した圧縮原画像データの全体を示
す図2と同様の図FIG. 9 is a view similar to FIG. 2 showing the entire compressed original image data with contour correction.
【図10】図9に示す圧縮原画像データの変化点の全体
を示す図3と同様の図10 is a view similar to FIG. 3 showing the entire change points of the compressed original image data shown in FIG. 9;
【図11】本発明に係る画像編集方法(スムージング処
理)の一実施例を示すフローチャートFIG. 11 is a flowchart showing an embodiment of an image editing method (smoothing processing) according to the present invention.
【図12】拡大圧縮データの一例を示す図FIG. 12 is a diagram showing an example of expanded and compressed data.
【図13】図12に示す拡大圧縮データの変化点を示す
模式図13 is a schematic diagram showing a change point of the expanded / compressed data shown in FIG.
【図14】補間ラインを含む拡大圧縮データを示す図FIG. 14 is a diagram showing expanded / compressed data including an interpolation line.
【図15】図14に示す拡大圧縮データの変化点を示す
模式図15 is a schematic diagram showing a change point of the expanded / compressed data shown in FIG.
【図16】単純拡大圧縮データの変化点を示す模式図FIG. 16 is a schematic diagram showing a change point of simple expansion / compression data.
【図17】輪郭修正の作用を説明する説明図FIG. 17 is an explanatory diagram illustrating the effect of contour correction.
【図18】従来の原画像データを説明する説明図であ
り、(a)は理想の原画像データ、(b)は従来の原画
像データFIG. 18 is an explanatory diagram illustrating conventional original image data, where (a) is ideal original image data and (b) is conventional original image data.
【図19】従来の画像編集(拡大)を説明する説明図FIG. 19 is an explanatory diagram illustrating conventional image editing (enlargement).
【図20】従来の画像処理(輪郭修正)としてのマスク
処理を説明する説明図FIG. 20 is an explanatory diagram illustrating mask processing as conventional image processing (contour correction).
N 拡大率 X 座標値 Z 付帯属性 N magnification rate X coordinate value Z incidental attribute
フロントページの続き (51)Int.Cl.6 識別記号 庁内整理番号 FI 技術表示箇所 H04N 1/409 4226−5C H04N 1/40 101 C (72)発明者 沢野 行男 東京都港区西麻布2丁目26番30号 富士写 真フィルム株式会社内 (72)発明者 杉山 幸一 東京都大田区雪谷大塚町1番7号 アルプ ス電気株式会社内 (72)発明者 荒津 修一 東京都大田区雪谷大塚町1番7号 アルプ ス電気株式会社内 (72)発明者 藤沢 久一 東京都大田区雪谷大塚町1番7号 アルプ ス電気株式会社内Continuation of front page (51) Int.Cl. 6 Identification number Office reference number FI Technical display location H04N 1/409 4226-5C H04N 1/40 101 C (72) Inventor Yukio Sawano 2 Nishiazabu, Minato-ku, Tokyo No. 26-30 Fuji Shashin Film Co., Ltd. (72) Inventor Koichi Sugiyama 1-7 Yukiya Otsuka-cho, Ota-ku, Tokyo Alps Electric Co., Ltd. (72) Inventor Shuichi Aratsu 1 Yukaya-Otsuka-cho, Ota-ku, Tokyo No. 7 Alps Electric Co., Ltd. (72) Inventor, Kyuichi Fujisawa No. 7 Yukiya Otsuka-cho, Ota-ku, Tokyo Alps Electric Co., Ltd.
Claims (3)
化点の座標値と前記属性変化点における付帯属性とを対
としたライン単位の圧縮原画像データとし、前記圧縮原
画像データの連続する3ラインをその属性変化点の座標
値のみを拡大して修正圧縮データとし、前記修正圧縮デ
ータの各ラインの同一属性を有する属性変化点が座標方
向の所定範囲内に位置する場合に、中間ラインの属性変
化点の座標値を先頭ラインの属性変化点の座標値と後尾
ラインの属性変化点の座標値との平均座標値に置換する
ことにより原画像の画像データの輪郭修正を施すことを
特徴とする画像処理方法。1. Image data of an original image is compressed original image data in units of lines in which a coordinate value of a bit attribute change point and an incidental attribute at the attribute change point are paired, and the compressed original image data is continuous. If three lines are expanded as coordinate values of their attribute change points to be corrected compressed data, and attribute change points having the same attribute of each line of the corrected compressed data are located within a predetermined range in the coordinate direction, an intermediate line The contour correction of the image data of the original image is performed by replacing the coordinate value of the attribute change point of the above with the average coordinate value of the coordinate value of the attribute change point of the first line and the coordinate value of the attribute change point of the tail line. Image processing method.
化点の座標値と前記属性変化点における付帯属性とを対
としたライン単位の圧縮原画像データとし、前記圧縮原
画像データの連続する3ラインをその属性変化点の座標
値のみを拡大して修正圧縮データとし、前記修正圧縮デ
ータの後尾ラインの属性変化点中より中間ラインの属性
変化点と重なるとともに同一属性を有し、かつ、中間ラ
インの属性変化点の座標値との差分の絶対値が所定値以
下の属性変化点を検出し、続いて、先頭ラインの属性変
化点中より後尾ラインの属性変化点と同一属性を有し、
かつ、後尾ラインの属性変化点の座標値との差分の絶対
値が所定値以下の属性変化点を検出し、検出された先頭
ラインの属性変化点の座標値と後尾ラインの属性変化点
の座標値との差分の絶対値が所定値以下の場合に、当該
差分の平均を中間ラインの属性変化点の座標値に加えた
座標値を中間ラインの属性変化点の座標値とすることに
より原画像の画像データの輪郭修正を施すことを特徴と
する画像処理方法。2. Image data of an original image is compressed original image data in units of lines in which a coordinate value of a bit attribute change point and an incidental attribute at the attribute change point are paired, and the compressed original image data is continuous. The three lines are expanded to have only the coordinate values of the attribute change points as modified compressed data, and have the same attributes as those of the modified line of the tail line of the modified compressed data, overlapping with the attribute changing points of the intermediate line, and having the same attribute, An attribute change point whose absolute value of the difference from the coordinate value of the attribute change point of the intermediate line is equal to or less than a predetermined value is detected, and then the attribute change point of the trailing line has the same attribute as the attribute change point of the first line. ,
Also, the attribute change point whose absolute value of the difference from the coordinate value of the attribute change point of the tail line is less than or equal to a predetermined value is detected, and the detected coordinate value of the attribute change point of the first line and the coordinate of the attribute change point of the tail line are detected. When the absolute value of the difference with the value is less than or equal to a predetermined value, the coordinate value obtained by adding the average of the differences to the coordinate value of the attribute change point of the intermediate line is used as the coordinate value of the attribute change point of the intermediate line. An image processing method, characterized in that the contour of the image data is corrected.
合に、請求項1または請求項2に記載の画像処理を施し
た後、前記圧縮原画像データの相互に隣接する2ライン
の座標値を所定の拡大率と等しくなるように乗算して拡
大圧縮データとし、前記拡大圧縮データから直線補間す
る属性変化点を検出し、補間ラインの属性変化点を拡大
率に応じた直線補間をもって行うことにより原画像の画
像データの拡大を施すことを特徴とする画像編集方法。3. When the enlargement ratio with respect to the original image is a predetermined value or more, after performing the image processing according to claim 1 or 2, the coordinate values of two lines adjacent to each other of the compressed original image data Is multiplied by equal to a predetermined enlargement ratio to obtain enlarged / compressed data, the attribute change point for linear interpolation is detected from the enlarged / compressed data, and the attribute change point of the interpolation line is performed by linear interpolation according to the enlargement ratio. The image editing method is characterized in that the image data of the original image is enlarged by.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP5187988A JP2843234B2 (en) | 1993-07-29 | 1993-07-29 | Image processing method and image editing method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP5187988A JP2843234B2 (en) | 1993-07-29 | 1993-07-29 | Image processing method and image editing method |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH0744700A true JPH0744700A (en) | 1995-02-14 |
| JP2843234B2 JP2843234B2 (en) | 1999-01-06 |
Family
ID=16215659
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP5187988A Expired - Fee Related JP2843234B2 (en) | 1993-07-29 | 1993-07-29 | Image processing method and image editing method |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP2843234B2 (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US6864314B1 (en) | 1999-05-26 | 2005-03-08 | Dominic Wai-Kwing Yeung | Block polymers, compositions and methods of use for foams, laundry detergents, shower rinses and coagulants |
-
1993
- 1993-07-29 JP JP5187988A patent/JP2843234B2/en not_active Expired - Fee Related
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US6864314B1 (en) | 1999-05-26 | 2005-03-08 | Dominic Wai-Kwing Yeung | Block polymers, compositions and methods of use for foams, laundry detergents, shower rinses and coagulants |
Also Published As
| Publication number | Publication date |
|---|---|
| JP2843234B2 (en) | 1999-01-06 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US5483351A (en) | Dilation of images without resolution conversion to compensate for printer characteristics | |
| JPH05308513A (en) | Method for improving resolution of input picture and executing concentration processing and smoothing operation | |
| JPH09179703A (en) | Method for reproducing synthetic picture | |
| JPH09172543A (en) | Image processor | |
| US5317679A (en) | Digital image processor including correction for undesirable edge emphasis in outline-demarcated fonts | |
| JPH09164739A (en) | Printing equipment | |
| JPH06245056A (en) | Extending and smoothing processor of picture data | |
| JPH03105687A (en) | Picture synthesizing method | |
| JPH06328785A (en) | Method and apparatus for forming character | |
| JP2843234B2 (en) | Image processing method and image editing method | |
| JPH07143332A (en) | Image data enlargement processing method | |
| JP2002007102A (en) | Print control device, drawing control device, data processing method, and storage medium | |
| JPH10294864A (en) | Image separation processing device | |
| JP4360021B2 (en) | Image processing apparatus and image processing method | |
| JPH04174494A (en) | Letter generating system | |
| JP2544599B2 (en) | Image forming method | |
| JP2000101823A (en) | Image processing unit | |
| JP3877054B2 (en) | Image reduction scaling device | |
| JP2567185B2 (en) | Figure processing method | |
| JP3737582B2 (en) | Image forming apparatus and image forming method | |
| JP2000305550A (en) | Halftone font generator | |
| JP2000287075A (en) | Image processing method and apparatus | |
| JPS58164378A (en) | Form overlay control system | |
| JPH02288985A (en) | Information processor equipped with data reducing / enlarging function and developing function | |
| JP2006150827A (en) | Image forming apparatus |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 19981013 |
|
| LAPS | Cancellation because of no payment of annual fees |