JPH0946511A - Image forming device - Google Patents

Image forming device

Info

Publication number
JPH0946511A
JPH0946511A JP7194431A JP19443195A JPH0946511A JP H0946511 A JPH0946511 A JP H0946511A JP 7194431 A JP7194431 A JP 7194431A JP 19443195 A JP19443195 A JP 19443195A JP H0946511 A JPH0946511 A JP H0946511A
Authority
JP
Japan
Prior art keywords
image data
color
boundary
pixel
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.)
Pending
Application number
JP7194431A
Other languages
Japanese (ja)
Inventor
Hisashi Ichioka
恒 市岡
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Corp
Original Assignee
NEC Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Corp filed Critical NEC Corp
Priority to JP7194431A priority Critical patent/JPH0946511A/en
Publication of JPH0946511A publication Critical patent/JPH0946511A/en
Pending legal-status Critical Current

Links

Landscapes

  • Editing Of Facsimile Originals (AREA)
  • Color Image Communication Systems (AREA)
  • Color, Gradation (AREA)

Abstract

PROBLEM TO BE SOLVED: To obtain an image with a sharp border by providing a border discrimination means outputting a border flag and an image forming means printing out output image data from a color smoothing means in multi-gradation so as to attain a high transfer rate. SOLUTION: A color conversion means 2 applies color conversion processing to raster data outputted from an image data entry section 1 and having sets of R, G, B of picture elements into sets of three primary colors subject to subtractive color mixture having integral values from '0' to '255'. Then the operator sets threshold levels (k) from '0' to '255' to threshold level decision section 5 by means of a key board 4. Then a border discrimination means 6 compares a threshold level from the threshold level decision section 5 with border information from a color smoothing means 3 to generate a border flag f1, which is outputted to a color smoothing means 3. Then a print engine 7 forms an image onto an image recording medium based on CMY output image data outputted from the color smoothing means 3 by the sublimation thermal transfer system.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【発明の属する技術分野】本発明は画像形成装置に係
り、特に低解像度の画像データを入力とし、これより高
解像度の画像を形成する画像形成装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image forming apparatus, and more particularly to an image forming apparatus which receives low-resolution image data as an input and forms an image of higher resolution.

【0002】[0002]

【従来の技術】近年、画像形成装置、特にプリンタに関
する技術が進歩し、最小画素が高密度化するのと並行し
てカラーでの多階調表現が可能となってきている。これ
に伴い、画像形成に必要な画像データ量は激増し、画像
を記録している記録媒体からの画像データの読み出しは
もとより、記録媒体から画像形成エンジンまでのデータ
転送の過程で、シリアルデータ転送などの遅い転送プロ
トコルが存在すると、画像データ転送に非常に長い時間
がかかり、全体のスループットを低下させている。
2. Description of the Related Art In recent years, technology relating to image forming apparatuses, particularly printers, has advanced, and at the same time that the density of minimum pixels has increased, multi-gradation expression in color has become possible. Along with this, the amount of image data required for image formation increases dramatically, and in addition to reading image data from the recording medium on which the image is recorded, serial data transfer is performed during the data transfer process from the recording medium to the image forming engine. If such a slow transfer protocol exists, it takes a very long time to transfer the image data, which lowers the overall throughput.

【0003】そのため、従来より、画像圧縮によりデー
タ量を減らすようにした画像形成装置が多数提案されて
いるが、画像の圧縮、解凍には一般的に複雑な処理を要
し、圧縮、解凍自体に時間がかかってしまったり、専用
の集積回路(IC)を用意しなければならないなどの問
題がある。
For this reason, many image forming apparatuses have been proposed so far in which the amount of data is reduced by image compression. However, image compression and decompression generally require complicated processing, and the compression and decompression itself. However, there are problems such as taking time and preparing a dedicated integrated circuit (IC).

【0004】一方、原画像のデータをデータ量の小さい
低解像度表現で入力し、この画像データを元に画像形成
することが考えられるが、この場合は単純に原画像デー
タの一画素の色の値を、複数の出力画素のピクセルにそ
のまま割り当て、原画像データの解像度以下の解像度で
画像形成すると、出力画像は入力画像以下の解像度とな
り、文字などの輪郭がギザギザになり、また、色変化が
滑らかでないという問題が生じる。
On the other hand, it is conceivable to input the original image data in a low resolution representation with a small data amount and form an image based on this image data. In this case, the color of one pixel of the original image data is simply converted. If the values are directly assigned to the pixels of a plurality of output pixels and an image is formed at a resolution lower than the resolution of the original image data, the output image has a resolution lower than the input image, the outlines of characters and the like are jagged, and color changes The problem of not being smooth arises.

【0005】この問題に対しては、文字などの二値的表
現について、その輪郭を滑らかにする従来の画像形成装
置を適用できる(特開平2−155760号公報)。す
なわち、この従来の画像形成装置は、入力画像データを
記憶手段により記憶し、補間すべき注目画素周辺の、記
憶手段により記憶した画像データが2値的表現の画像に
属するか多値的表現の画像に属するかを判別手段により
判別し、その判別結果に応じた演算方法でデータ補間手
段により注目画素の補間データを生成する構成であり、
低解像度の画像データを入力した場合でも2値的画像の
部分では輪郭の滑らかな高解像度の画像データとして画
像形成することができる。
To solve this problem, a conventional image forming apparatus for smoothing the outline of a binary expression such as a character can be applied (Japanese Patent Laid-Open No. 2-155760). That is, in this conventional image forming apparatus, the input image data is stored by the storage means, and the image data stored by the storage means around the pixel of interest to be interpolated belongs to a binary representation image or a multi-value representation image. It is configured to determine whether the image belongs to the image by the determination unit, and generate the interpolation data of the pixel of interest by the data interpolation unit by the calculation method according to the determination result.
Even when low-resolution image data is input, it is possible to form an image as high-resolution image data having a smooth contour in the binary image portion.

【0006】[0006]

【発明が解決しようとする課題】しかるに、上記の従来
の画像形成装置は、画像データの二値表現の部分につい
て輪郭を滑らかにするものであり、色変化が滑らかでな
いという問題に対する改善はない。また、一般的な画像
処理装置において、出力画像の各画素について原画像の
対応位置近傍の画素の色データから補間によって色デー
タを得、解像度を変換するものが知られているが、単純
に補間によって色データを作成すると、一つの画素と隣
接する画素の色が相関をもつため、文字縁部や物体輪郭
などの境界部のシャープネスが低下し、画像品質が低下
するという問題があった。
However, the above-described conventional image forming apparatus smoothes the contour of the binary representation portion of the image data, and there is no improvement to the problem that the color change is not smooth. In a general image processing device, it is known that each pixel of an output image obtains color data by interpolation from color data of a pixel near a corresponding position of an original image, and the resolution is converted. When the color data is created by using one pixel, the color of one pixel and the color of the adjacent pixel are correlated with each other, so that the sharpness of a boundary portion such as a character edge portion or an object contour is reduced, which causes a problem that image quality is deteriorated.

【0007】本発明は、以上の点に鑑みなされたもの
で、低解像度の小さい画像データを入力とし、かつ、プ
リンタの高解像度を生かした高品位な画像出力を行うこ
とによって、画像形成に必要な画像データ量を小さく
し、画像データの読み出しや転送などの扱いを高速にし
得る画像形成装置を提供することを目的とする。
The present invention has been made in view of the above points, and is necessary for image formation by inputting low-resolution small image data and performing high-quality image output by utilizing the high resolution of the printer. It is an object of the present invention to provide an image forming apparatus that can reduce the amount of image data and speed up handling such as reading and transfer of image data.

【0008】[0008]

【課題を解決するための手段】本発明は上記の目的を達
成するため、各画素毎に加法混色の三原色の値の組をも
つ、第1の解像度の第1の画像データを入力する画像デ
ータ入力部と、各画素毎に加法混色の三原色の値の組を
もつ、第1の解像度の第1の画像データを入力する画像
データ入力部と、画像データ入力部からの第1の画像デ
ータを減法混色の三原色の値の組の第2の画像データに
変換する色変換手段と、任意の閾値を設定する閾値設定
部と、出力画像の各画素について、色変換手段から入力
された第2の画像データの対応する位置近傍の画素のう
ち、境界フラグにより判別された境界によって隔てられ
ていない画素の値を代入し、更に補間処理を行って、第
1の解像度の2倍の第2の解像度の画像データを生成す
る色平滑化手段と、色平滑化手段から入力される第2の
画像データの各画素と隣接画素との差分情報を閾値設定
部からの閾値と比較し、閾値よりも大きな色の差異があ
るときは境界があると判定した境界フラグを出力する境
界判定手段と、色平滑化手段の出力画像データを多階調
にて媒体上に印字する画像形成手段とを有する構成とし
たものである。
In order to achieve the above object, the present invention provides image data for inputting first image data of a first resolution having a set of values of three primary colors of additive color mixture for each pixel. An input unit, an image data input unit for inputting first image data of a first resolution having a set of values of three primary colors of additive color mixture for each pixel, and first image data from the image data input unit. For each pixel of the output image, the color conversion means for converting into the second image data of the set of the values of the three primary colors of the subtractive color mixture, the threshold setting part for setting an arbitrary threshold value, and the second input from the color conversion means. Of the pixels in the vicinity of the corresponding position in the image data, the values of the pixels that are not separated by the boundary determined by the boundary flag are substituted, and further interpolation processing is performed to obtain the second resolution twice the first resolution. Smoothing means for generating image data of The difference information between each pixel of the second image data input from the color smoothing unit and the adjacent pixel is compared with the threshold value from the threshold value setting unit, and when there is a color difference larger than the threshold value, it is determined that there is a boundary. The boundary determining means for outputting the boundary flag and the image forming means for printing the output image data of the color smoothing means on the medium in multiple gradations are provided.

【0009】また、本発明の色平滑化手段は、入力され
た第2の画像データの一画素分外側を表す画素の三原色
のうちの一の原色の値として、最大値の2倍以上の値を
代入した後、隣接画素との差分情報を算出して境界判定
手段へ出力し、色変換手段から入力される第2の画像デ
ータの対応する位置近傍の画素のうち、境界判定手段よ
りの境界フラグにより判別された境界によって隔てられ
ていない画素の値を代入し、更に補間処理を行って、第
1の解像度の2倍の第2の解像度の出力画像データを生
成することを特徴とする。
Further, the color smoothing means of the present invention has a value which is at least twice the maximum value as the value of one of the three primary colors of the pixel representing the outside of one pixel of the input second image data. , The difference information from the adjacent pixel is calculated and output to the boundary determining means, and among the pixels in the vicinity of the corresponding position of the second image data input from the color converting means, the boundary from the boundary determining means is calculated. It is characterized in that the pixel values not separated by the boundary discriminated by the flag are substituted, and interpolation processing is further performed to generate output image data of a second resolution twice the first resolution.

【0010】更に、本発明の境界判定手段は、色平滑化
手段から入力される第2の画像データの各画素と隣接画
素との差分情報の減法混色の三原色のすべての値と閾値
とを大小比較し、三原色のうち一つでも値が閾値より大
きいときには境界があると判定した境界フラグを出力す
ることを特徴とする。
Further, the boundary determining means of the present invention makes all the values and thresholds of the three primary colors of subtractive color mixture of the difference information between each pixel of the second image data input from the color smoothing means and the adjacent pixel large and small. The comparison is characterized by outputting a boundary flag which determines that there is a boundary when the value of at least one of the three primary colors is larger than the threshold value.

【0011】本発明では、色平滑化手段により、出力画
像の各画素について色変換手段から入力された第2の画
像データの対応する位置近傍の画素のうち、境界フラグ
により判別された境界によって隔てられていない画素の
値を代入し、更に補間処理を行って第1の解像度の2倍
の第2の解像度の出力画像データを生成するようにして
いるため、低解像度の入力画像データを高解像度の画像
データとして出力することができる。
In the present invention, the color smoothing means separates each pixel of the output image by the boundary determined by the boundary flag among the pixels in the vicinity of the corresponding position of the second image data input from the color converting means. Since the value of the pixel which is not assigned is substituted and the interpolation processing is further performed to generate the output image data of the second resolution which is twice the first resolution, the input image data of the low resolution is converted to the high resolution. Can be output as image data.

【0012】[0012]

【発明の実施の形態】次に、本発明の実施の形態につい
て図面と共に説明する。図1は本発明になる画像形成装
置の一実施の形態のブロック図を示す。この実施の形態
では、画像形成手段として周知の技術である昇華型熱転
写方式を採用し、出力画像の解像度は150dpiで、
一画素について256階調のシアン(C)、マゼンタ
(M)及びイエロー(Y)の減法混色の3原色混合によ
りフルカラーを表現する。また、この実施の形態では、
出力解像度の150dpiに対して、2分の1の解像度
である75dpiのデータを入力し、画像形成を行う。
DESCRIPTION OF THE PREFERRED EMBODIMENTS Next, embodiments of the present invention will be described with reference to the drawings. FIG. 1 shows a block diagram of an embodiment of an image forming apparatus according to the present invention. In this embodiment, a sublimation type thermal transfer system, which is a well-known technique, is adopted as the image forming means, and the resolution of the output image is 150 dpi.
A full color is expressed for one pixel by mixing three primary colors of subtractive colors of 256 gradations of cyan (C), magenta (M) and yellow (Y). Also, in this embodiment,
With respect to the output resolution of 150 dpi, 75 dpi data which is half the resolution is input to form an image.

【0013】この実施の形態の画像形成装置は、図1に
示すように、画像データ入力部1、色変換手段2、色平
滑化手段3、キーボード4、閾値設定部5、境界判定手
段6及びプリントエンジン7から構成されている。な
お、色変換手段2、色平滑化手段3及び境界判定手段6
からなる破線で囲んだ部分は、ここではソフトウェアに
よって実現する場合を想定しているが、同様の処理をハ
ードウェアによって実現できるのは明らかである。
As shown in FIG. 1, the image forming apparatus of this embodiment has an image data input unit 1, a color conversion unit 2, a color smoothing unit 3, a keyboard 4, a threshold value setting unit 5, a boundary determination unit 6 and It is composed of the print engine 7. In addition, the color conversion unit 2, the color smoothing unit 3, and the boundary determination unit 6
The portion surrounded by the broken line consisting of is assumed here to be realized by software, but it is obvious that the same processing can be realized by hardware.

【0014】画像データ入力部1は、記録媒体(図示せ
ず)から加法混色の三原色である赤(R)、緑(G)及
び青(B)の3色のプレーンからなる解像度75dpi
の画像データを、一画素について、各々”0”から”2
55”の整数の値をもつR、G及びBの値の組をもつラ
スタデータ列として読み出し、色変換手段2へ出力す
る。
The image data input unit 1 has a resolution of 75 dpi consisting of three color planes of red (R), green (G) and blue (B) which are three primary colors of additive color mixture from a recording medium (not shown).
Image data of "0" to "2" for each pixel
It is read as a raster data string having a set of R, G, and B values having an integer value of 55 ″, and is output to the color conversion means 2.

【0015】色変換手段2は画像データ入力部1から出
力された各画素のR、G及びBの値の組をもつラスタデ
ータ列を、周知の技術である色変換処理を行って、”
0”から”255”の整数の値をもつ、減法混色の三原
色であるシアン(C)、マゼンタ(M)及びイエロー
(Y)の値の組(以下、「色ベクトル」と表現する)に
変換する。
The color conversion means 2 performs color conversion processing, which is a well-known technique, on the raster data string output from the image data input section 1 and having a set of R, G, and B values of each pixel.
Converted to a set of values of cyan (C), magenta (M), and yellow (Y), which are the three primary colors of subtractive color mixture, having an integer value from 0 "to" 255 "(hereinafter referred to as" color vector ") To do.

【0016】色平滑化手段3は色変換手段2から出力さ
れたC、M及びYの値の組をもつ色ベクトルデータの各
画素について、隣接画素との境界情報を境界判定手段6
に出力し、また、境界判定手段6が出力する境界フラグ
fを用いて後述する色平滑化処理を行い、150dpi
のCMY出力画像データを生成してプリントエンジン7
へ出力する。
The color smoothing means 3 determines the boundary information between adjacent pixels for each pixel of the color vector data having a set of C, M and Y values output from the color converting means 2 by the boundary determining means 6.
And the boundary flag f output from the boundary determining means 6 is used to perform the color smoothing processing described later,
The CMY output image data of the print engine 7
Output to

【0017】操作者は、キーボード4を通じて閾値決定
部5に対して”0”から”255”までの閾値kを設定
する。境界判定手段6は、後述するように閾値決定部5
からの閾値と色平滑化手段3からの境界情報とを大小比
較して境界フラグflを生成し、この境界フラグflを
色平滑化手段3出力する。プリントエンジン7は色平滑
化手段3の出力するCMY出力画像データより昇華型熱
転写方式によって画像記録媒体に対して画像形成する。
The operator sets a threshold value k from "0" to "255" in the threshold value determining section 5 through the keyboard 4. The boundary determining means 6 is provided with a threshold value determining unit 5 as described later.
And the boundary information from the color smoothing means 3 are compared to generate a boundary flag fl, and the boundary flag fl is output to the color smoothing means 3. The print engine 7 forms an image on the image recording medium by the sublimation thermal transfer method from the CMY output image data output by the color smoothing unit 3.

【0018】次に、色平滑化手段3の動作について、図
2のフローチャートと共に説明する。
Next, the operation of the color smoothing means 3 will be described with reference to the flowchart of FIG.

【0019】色変換手段2から取り出されたCMY画像
データは、色平滑化手段3においてまず、2バイト整数
型のC値、M値、Y値をもつベクトル変数A(x,y)
に代入される(ステップ21)。ここで、X以上X
max以下の範囲の整数xと、Y以上Ymax以下の
範囲の整数yは、ベクトル変数Aの表す画素の、それぞ
れ横方向、縦方向の位置を表し、(x,y)=(X
)は画像左上端、(x,y)=(Xmax ,Y
max)は画像右上端を示している。
The CMY image data extracted from the color conversion means 2 is first subjected to a vector variable A (x, y) having a 2-byte integer type C value, M value and Y value in the color smoothing means 3.
(Step 21). Where X 1 or more X
max and integer x of the range, the integer y of Y 1 or Y max the range represents the pixel represented by the vector variable A, the transverse direction, the vertical position, (x, y) = ( X 1 ,
Y 1 ) is the upper left corner of the image, (x, y) = (X max , Y
max ) indicates the upper right corner of the image.

【0020】次に、色平滑化手段3は、入力画像データ
の一画素分外側を表すベクトル変数A(X−1,
y)、A(Xmax+1,y)、A(x,Y−1)及
びA(x,Ymax+1)(ただし、xはX以上X
max以下の整数、yはY以上Ymax以下の整数)
のC値に対して、通常のC値の最大値である”255”
の2倍以上の”512”を代入する(ステップ22)。
Next, the color smoothing means 3, vector variable A (X 1 -1 representing the one pixel outside of the input image data,
y), A (X max +1, y), A (x, Y 1 −1) and A (x, Y max +1) (where x is X 1 or more and X
integer less than or equal to max , y is an integer greater than or equal to Y 1 and less than or equal to Y max )
"255" which is the maximum value of the normal C value for the C value of
Substituting "512" which is more than twice (step 22).

【0021】これは、画像内部の画素の色は、隣接する
画素の色との濃度差がある範囲内より大きければ、その
画素の影響を受けないという色平滑化アルゴリズムを用
いているので、入力画像データの一画素分外側の画素の
C値に対して非常に大きな値を代入することで、画像内
の画素が本来不定である画像外の画素と必ず大きな濃度
差を生じさせ、その影響を受けないようにするためであ
る。
This is because a color smoothing algorithm is used in which the color of the pixel inside the image is not affected by the pixel if the color difference between the color of the adjacent pixel is larger than a certain range. By substituting a very large value for the C value of the pixel outside one pixel of the image data, the pixel in the image always causes a large density difference with the pixel outside the image, which is originally indefinite, and the influence is exerted. This is to avoid receiving it.

【0022】続いて、色平滑化手段3は、出力画像の各
画素を表すベクトル変数F(x,y)(ただし、xは2
−1以上2Xmax以下の整数、yは2Y−1以
上2Ymax以下の整数)に、対応する位置の入力画像
のベクトル変数A(x,y)を代入する(ステップ2
3)。つまり、図5に示すように、解像度75dpiの
入力画素1画素に対し、解像度150dpiの出力画素
は4画素に対応するので、これら4画素すべてに入力画
素1画素の同じ値が代入される。
Subsequently, the color smoothing means 3 is a vector variable F (x, y) representing each pixel of the output image (where x is 2).
The vector variable A (x, y) of the input image at the corresponding position is substituted into an integer of X 1 -1 or more and 2X max or less, and y is an integer of 2Y 1 -1 or more and 2Y max or less (step 2
3). That is, as shown in FIG. 5, since one output pixel having a resolution of 150 dpi corresponds to four pixels for one input pixel having a resolution of 75 dpi, the same value of one input pixel is assigned to all four pixels.

【0023】そして、色平滑化手段3は入力画像データ
のすべての画素について、次に説明する色平滑化ルーチ
ンを呼び出して色平滑化処理を行うことにより、画像変
換を完了する(ステップ24)。
Then, the color smoothing means 3 completes the image conversion by calling a color smoothing routine, which will be described below, for all the pixels of the input image data to perform color smoothing processing (step 24).

【0024】次に、ステップ24で用いる色平滑化ルー
チンについて、図3のフローチャートと共に説明する。
まず、着目画素の色ベクトルA(m,n)と、その上部
に隣接する画素の色ベクトルA(m,n−1)との差分
ベクトルを、ベクトル変数Dに代入する(ステップ3
1)。
Next, the color smoothing routine used in step 24 will be described with reference to the flowchart of FIG.
First, the difference vector between the color vector A (m, n) of the pixel of interest and the color vector A (m, n−1) of the pixel adjacent to it is substituted into the vector variable D (step 3).
1).

【0025】これにより、境界情報を表すベクトル変数
Dが得られ、このベクトル変数Dを引数として、境界判
定ルーチンを呼び出し(ステップ32)、戻り値として
オン、あるいはオフである境界フラグの値を得る。
As a result, the vector variable D representing the boundary information is obtained, the boundary determination routine is called with this vector variable D as an argument (step 32), and the value of the boundary flag which is ON or OFF is obtained as the return value. .

【0026】ここで、上記の境界判定ルーチンは、図1
に示した境界判定手段6により実行されるルーチンで、
図4にそのフローチャートを示す如く、まず閾値設定部
(図1の5)から閾値kを読み込み(ステップ41)、
続いて引数であるベクトル変数DのC値と閾値kとの大
小比較を行い(ステップ42)、ベクトル変数DのC値
が閾値k以下のときには、ベクトル変数DのM値と閾値
kとの大小比較を行い(ステップ43)、ベクトル変数
DのM値が閾値k以下のときには、ベクトル変数DのY
値と閾値kとの大小比較を行う(ステップ44)。
Here, the above-described boundary determination routine is performed by the routine shown in FIG.
In the routine executed by the boundary determining means 6 shown in
As shown in the flowchart in FIG. 4, first, the threshold value k is read from the threshold value setting unit (5 in FIG. 1) (step 41),
Then, the C value of the vector variable D, which is an argument, is compared with the threshold value k (step 42). When the C value of the vector variable D is less than or equal to the threshold value k, the M value of the vector variable D and the threshold value k are compared. When the M value of the vector variable D is less than or equal to the threshold value k (step 43), Y of the vector variable D is compared.
The value is compared with the threshold value k (step 44).

【0027】ベクトル変数DのC値、M値及びY値のす
べてが閾値k以下の場合、すなわち注目画素と隣接画素
との間に急激な色変化がないときには境界フラグの値が
オフとされる(ステップ45)。一方、ベクトルDのC
値、M値及びY値のいずれか一つでも閾値kよりも大き
な場合、すなわち注目画素と隣接画素との間に急激な色
変化があるときには、境界フラグの値がオンとされる
(ステップ46)。この境界フラグは前記したように、
色平滑化手段3に入力される。
When all the C, M and Y values of the vector variable D are below the threshold value k, that is, when there is no abrupt color change between the pixel of interest and the adjacent pixel, the value of the boundary flag is turned off. (Step 45). On the other hand, C of vector D
If any one of the value, the M value, and the Y value is larger than the threshold value k, that is, when there is a rapid color change between the pixel of interest and the adjacent pixel, the value of the boundary flag is turned on (step 46). ). This boundary flag is, as described above,
It is input to the color smoothing means 3.

【0028】再び、図3に戻って説明するに、上記の境
界判定ルーチンによる境界フラグを受け、色平滑化手段
3の色平滑化ルーチンではこの境界フラグの値がオンで
あるか否か判定する(ステップ33)。境界フラグがオ
フであった場合には、次のステップ34において上部隣
接画素との色平滑化処理を行い、境界フラグがオンであ
った場合はステップ34をジャンプして後述のステップ
35へ進む。
Returning to FIG. 3 again, the boundary flag obtained by the boundary determining routine is received, and the color smoothing routine of the color smoothing means 3 determines whether or not the value of this boundary flag is ON. (Step 33). If the boundary flag is off, color smoothing processing with the upper adjacent pixel is performed in the next step 34, and if the boundary flag is on, step 34 is skipped and the process proceeds to step 35 described later.

【0029】すなわち、多くの画素がなだらかな色変化
をする滑らかな面の組み合わせで成り立っており、面と
面との境界では色変化は不連続であるという仮定に基づ
き、隣接画素との間に急激な色変化がないとき、つま
り、境界フラグがオフのときには注目画素と隣接画素と
は同一の面に属していると判断してステップ34による
色平滑化処理を行うが、隣接画素との間に急激な色変化
があるとき、つまり、境界フラグがオンのときには、面
と面との間であると判断してその境界を越えた色平滑化
処理は行わない。
In other words, many pixels are made up of a combination of smooth surfaces that undergo a smooth color change, and based on the assumption that the color changes are discontinuous at the boundaries between the surfaces, the distance between adjacent pixels is increased. When there is no abrupt color change, that is, when the boundary flag is off, it is determined that the target pixel and the adjacent pixel belong to the same plane, and the color smoothing process in step 34 is performed. When there is an abrupt color change, that is, when the boundary flag is on, it is determined that the area is between the surfaces, and the color smoothing processing beyond the boundary is not performed.

【0030】ステップ34の色平滑化処理においては、
出力画素と入力画素との位置関係から1次補間によって
出力画素の色を決定する。すなわち、出力画像の各画素
を表すベクトル変数F(2x−1,2y−1)に、注目
画素と上部隣接画素との差分ベクトルであるベクトル変
数Dを1/4倍した値を加算し、その加算結果を、F
(2x−1,2y−1)に代入する。また、ベクトル変
数F(2x,2y−1)に、ベクトル変数Dの1/4倍
の値を加算した加算結果を、F(2x,2y−1)に代
入する。
In the color smoothing process of step 34,
The color of the output pixel is determined by linear interpolation from the positional relationship between the output pixel and the input pixel. That is, the vector variable F (2x-1,2y-1) representing each pixel of the output image is added with a value obtained by multiplying the vector variable D, which is the difference vector between the pixel of interest and the upper adjacent pixel, by 1/4, and The addition result is F
Substitute for (2x-1, 2y-1). Further, the addition result obtained by adding the value of ¼ times the vector variable D to the vector variable F (2x, 2y−1) is substituted into F (2x, 2y−1).

【0031】この1次補間により例えば、図5におい
て、A、C、B、fをそれぞれの画素の色ベクトルとす
ると、明らかに f=C+{(A−C)/4}+{(B−C)/4} (1) と近似できる。上部隣接画素との間に境界が存在したと
きには、(1)式の右辺第2項が消え、左部隣接画素と
の間に境界が存在したときには、(1)式の右辺第3項
を消している。
By this primary interpolation, for example, in FIG. 5, assuming that A, C, B, and f are color vectors of respective pixels, it is clear that f = C + {(A−C) / 4} + {(B− C) / 4} (1) can be approximated. When there is a boundary with the upper adjacent pixel, the second term on the right side of equation (1) disappears, and when there is a boundary with the left adjacent pixel, the third term on the right side of equation (1) is deleted. ing.

【0032】図3のステップ34による色平滑化処理終
了後は、続いて、上記のステップ31〜34と同様の方
法で、着目画素の色ベクトルA(m,n)と、その下部
に隣接する画素の色ベクトルA(m,n+1)との差分
ベクトルを、ベクトル変数Dに代入した後、境界判定ル
ーチンを呼び出してベクトル変数Dと閾値kとの大小比
較により得られた境界フラグの値に基づいて色平滑化処
理を行うか行わずに次のステップに進む(ステップ3
5)。
After the color smoothing process in step 34 of FIG. 3 is completed, the color vector A (m, n) of the pixel of interest is adjacent to the color vector A (m, n) below the pixel in the same manner as in steps 31 to 34 described above. After substituting the difference vector with the pixel color vector A (m, n + 1) into the vector variable D, the boundary determination routine is called to determine the value of the boundary flag obtained by comparing the vector variable D and the threshold value k. Color smoothing process is performed or not and the process proceeds to the next step (step 3
5).

【0033】ステップ36、37もステップ31〜34
と同様の方法で、それぞれ着目画素の左部隣接画素、右
部隣接画素との色平滑化処理を行う(境界フラグによっ
ては行わないこともある)。
Steps 36 and 37 are also steps 31 to 34.
In the same manner as above, color smoothing processing is performed on the left adjacent pixel and the right adjacent pixel of the pixel of interest (may not be performed depending on the boundary flag).

【0034】以上の実施の形態によるグレースケール画
像の入力画像と出力画像の一例を図6に示す。ここで
は、閾値kを”64”としている。図6(A)の入力画
像は左上部に値”255”をもつ長方形部分を有し、ま
た、右部は値が単調的に変化するグラデーション部分を
有する、75dpiの解像度の画像である。この場合、
本実施の形態で得られる解像度150dpiの出力画像
は、図6(B)で示すように、入力画像の左上部に値”
255”をもつ長方形部分の縁部をよく保存しており、
また、入力画像の右部のグラデーション部分は、出力画
像ではより細かなグラデーション部分となっていること
がわかる。
FIG. 6 shows an example of the input image and the output image of the gray scale image according to the above embodiment. Here, the threshold value k is “64”. The input image in FIG. 6A is an image having a resolution of 75 dpi, which has a rectangular portion having a value “255” in the upper left portion and a gradation portion in which the value monotonously changes in the right portion. in this case,
The output image with a resolution of 150 dpi obtained in the present embodiment has a value "in the upper left part of the input image, as shown in FIG. 6 (B).
Well preserved the edge of the rectangle with 255 ",
Further, it can be seen that the gradation part on the right side of the input image is a finer gradation part in the output image.

【0035】[0035]

【発明の効果】以上説明したように、本発明によれば、
低解像度の入力画像データを高解像度の画像データとし
て出力するようにしたため、画像データが小さくて済
み、転送速度を高速化でき、扱いを簡便にできる。ま
た、本発明によれば、元々小さい解像度をもつ画像デー
タを高解像度で、色変化が滑らかで、文字縁部や物体輪
郭などの境界部がシャープな高品位な画像を形成するこ
とができる。
As described above, according to the present invention,
Since the low-resolution input image data is output as the high-resolution image data, the image data can be small, the transfer speed can be increased, and the handling can be simplified. Further, according to the present invention, it is possible to form a high-quality image of image data originally having a small resolution with a high resolution, a smooth color change, and a sharp boundary portion such as a character edge portion or an object contour.

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

【図1】本発明の一実施の形態を示すブロック図であ
る。
FIG. 1 is a block diagram showing an embodiment of the present invention.

【図2】色平滑化手段の動作説明用フローチャートであ
る。
FIG. 2 is a flowchart for explaining the operation of the color smoothing means.

【図3】図2の色平滑化ルーチンを示すフローチャート
である。
FIG. 3 is a flowchart showing the color smoothing routine of FIG.

【図4】図3の境界ルーチンを示すフローチャートであ
る。
FIG. 4 is a flowchart showing the boundary routine of FIG.

【図5】入力画像と出力画像の対応を示す模式図であ
る。
FIG. 5 is a schematic diagram showing correspondence between input images and output images.

【図6】入力画像と出力画像の一例を示す図である。FIG. 6 is a diagram showing an example of an input image and an output image.

【符号の説明】[Explanation of symbols]

1 画像データ入力部 2 色変換手段 3 色平滑化手段 4 キーボード 5 閾値設定部 6 境界判定手段 7 プリントエンジン 1 image data input unit 2 color conversion unit 3 color smoothing unit 4 keyboard 5 threshold value setting unit 6 boundary determination unit 7 print engine

───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.6 識別記号 庁内整理番号 FI 技術表示箇所 H04N 1/46 H04N 1/46 Z ──────────────────────────────────────────────────続 き Continued on the front page (51) Int.Cl. 6 Identification code Agency reference number FI Technical display location H04N 1/46 H04N 1/46 Z

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 各画素毎に加法混色の三原色の値の組を
もつ、第1の解像度の第1の画像データを入力する画像
データ入力部と、 前記画像データ入力部からの前記第1の画像データを減
法混色の三原色の値の組の第2の画像データに変換する
色変換手段と、 任意の閾値を設定する閾値設定部と、 出力画像の各画素について、前記色変換手段から入力さ
れた前記第2の画像データの対応する位置近傍の画素の
うち、境界フラグにより判別された境界によって隔てら
れていない画素の値を代入し、更に補間処理を行って、
前記第1の解像度の2倍の第2の解像度の出力画像デー
タを生成する色平滑化手段と、 前記色平滑化手段から入力される前記第2の画像データ
の各画素と隣接画素との差分情報を前記閾値設定部から
の前記閾値と比較し、該閾値よりも大きな色の差異があ
るときは境界があると判定した前記境界フラグを出力す
る境界判定手段と、 前記色平滑化手段の出力画像データを多階調にて媒体上
に印字する画像形成手段とを有することを特徴とする画
像形成装置。
1. An image data input unit for inputting first image data of a first resolution having a set of values of three primary colors of additive color mixture for each pixel, and the first image data input unit from the image data input unit. A color conversion unit that converts the image data into second image data of a set of three primary color values of the subtractive color mixture, a threshold value setting unit that sets an arbitrary threshold value, and each pixel of the output image is input from the color conversion unit. Of the pixels in the vicinity of the corresponding position of the second image data, the values of the pixels which are not separated by the boundary determined by the boundary flag are substituted, and further interpolation processing is performed,
A color smoothing unit that generates output image data having a second resolution twice the first resolution, and a difference between each pixel of the second image data input from the color smoothing unit and an adjacent pixel. Boundary determination means for comparing the information with the threshold value from the threshold value setting part and outputting the boundary flag for determining that there is a boundary when there is a color difference larger than the threshold value; and output of the color smoothing means. An image forming apparatus comprising: an image forming unit that prints image data on a medium in multiple gradations.
【請求項2】 前記色平滑化手段は、入力された前記第
2の画像データの一画素分外側を表す画素の三原色のう
ちの一の原色の値として、最大値の2倍以上の値を代入
した後、隣接画素との前記差分情報を算出して前記境界
判定手段へ出力し、前記色変換手段から入力される前記
第2の画像データの対応する位置近傍の画素のうち、前
記境界判定手段よりの前記境界フラグにより判別された
境界によって隔てられていない画素の値を代入し、更に
補間処理を行って、前記第1の解像度の2倍の第2の解
像度の出力画像データを生成することを特徴とする請求
項1記載の画像形成装置。
2. The color smoothing means sets a value that is at least twice the maximum value as the value of one of the three primary colors of the pixels that represent the outside of one pixel of the input second image data. After substituting, the difference information with respect to the adjacent pixel is calculated and output to the boundary determining means, and the boundary determining is performed among the pixels in the vicinity of the corresponding position of the second image data input from the color converting means. The value of the pixel which is not separated by the boundary determined by the boundary flag from the means is substituted, and the interpolation processing is further performed to generate the output image data of the second resolution twice the first resolution. The image forming apparatus according to claim 1, wherein:
【請求項3】 前記境界判定手段は、前記色平滑化手段
から入力される前記第2の画像データの各画素と隣接画
素との差分情報の前記減法混色の三原色のすべての値と
前記閾値とを大小比較し、前記三原色のうち一つでも値
が前記閾値より大きいときには前記境界があると判定し
た前記境界フラグを出力することを特徴とする請求項1
又は2記載の画像形成装置。
3. The boundary determining means sets all values of the subtractive primary colors of the difference information between each pixel of the second image data input from the color smoothing means and an adjacent pixel and the threshold value. 2. The boundary flag that determines that there is the boundary is output when at least one of the three primary colors has a value larger than the threshold value.
Or the image forming apparatus according to 2.
JP7194431A 1995-07-31 1995-07-31 Image forming device Pending JPH0946511A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP7194431A JPH0946511A (en) 1995-07-31 1995-07-31 Image forming device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7194431A JPH0946511A (en) 1995-07-31 1995-07-31 Image forming device

Publications (1)

Publication Number Publication Date
JPH0946511A true JPH0946511A (en) 1997-02-14

Family

ID=16324492

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7194431A Pending JPH0946511A (en) 1995-07-31 1995-07-31 Image forming device

Country Status (1)

Country Link
JP (1) JPH0946511A (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02185456A (en) * 1989-01-13 1990-07-19 Canon Inc Recording device
JPH0799570A (en) * 1993-06-04 1995-04-11 Canon Inc Method and device for forming image

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02185456A (en) * 1989-01-13 1990-07-19 Canon Inc Recording device
JPH0799570A (en) * 1993-06-04 1995-04-11 Canon Inc Method and device for forming image

Similar Documents

Publication Publication Date Title
EP1349371A2 (en) Image processing apparatus, image processing program and storage medium storing the program
JPH077619A (en) Document processing system
JP4498233B2 (en) Image processing apparatus and image processing method
EP1054350B1 (en) Image data interpolation method and device and medium recording image data interpolation program
US7692817B2 (en) Image processing method, image processing apparatus, image forming apparatus, computer program product and computer memory product for carrying out image processing by transforming image data to image data having spatial frequency components
JPH10112801A (en) Input image processing method
JP2004538673A (en) Method and system for enhancing an input digital image with color features
US7057764B1 (en) Color image processing apparatus and method, and storage medium
JP2004034327A (en) Image processor and processing method
EP0643528A2 (en) Image processing apparatus capable of performing marker editing
US7315400B2 (en) Image processing apparatus and image processing method
JPH115298A (en) Method and device for edge interpolation for image forming device
KR20080032638A (en) Image processing apparatus, image processing method and image processing program product
US6693731B1 (en) Image processing apparatus and method
JPH11298716A (en) Image processor
JP4164215B2 (en) Image processing method, apparatus, and recording medium
JP4127281B2 (en) Image processing apparatus and image processing method
JPH0946511A (en) Image forming device
JPH10229501A (en) Image processing device and method
JP5122507B2 (en) Image processing apparatus, image forming apparatus, image processing method, program, and recording medium
JPH07262351A (en) Image processor and control method for the same
JP3501533B2 (en) Color image forming equipment
JPH01252069A (en) Picture processing method in color picture forming device
JP2001245142A (en) Image processing apparatus and method
JP3143511B2 (en) Image processing device