Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP3045134B2 - Image data interpolation apparatus, image data interpolation method, and medium recording image data interpolation program - Google Patents
[go: Go Back, main page]

JP3045134B2 - Image data interpolation apparatus, image data interpolation method, and medium recording image data interpolation program - Google Patents

Image data interpolation apparatus, image data interpolation method, and medium recording image data interpolation program

Info

Publication number
JP3045134B2
JP3045134B2 JP10093741A JP9374198A JP3045134B2 JP 3045134 B2 JP3045134 B2 JP 3045134B2 JP 10093741 A JP10093741 A JP 10093741A JP 9374198 A JP9374198 A JP 9374198A JP 3045134 B2 JP3045134 B2 JP 3045134B2
Authority
JP
Japan
Prior art keywords
image data
pixel
change
degree
interpolation
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP10093741A
Other languages
Japanese (ja)
Other versions
JPH11298721A (en
Inventor
直樹 鍬田
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.)
Seiko Epson Corp
Original Assignee
Seiko Epson 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
Family has litigation
First worldwide family litigation filed litigation Critical https://patents.darts-ip.com/?family=14090851&utm_source=google_patent&utm_medium=platform_link&utm_campaign=public_patent_search&patent=JP3045134(B2) "Global patent litigation dataset” by Darts-ip is licensed under a Creative Commons Attribution 4.0 International License.
Application filed by Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP10093741A priority Critical patent/JP3045134B2/en
Priority to US09/280,704 priority patent/US6760489B1/en
Priority to EP03077727A priority patent/EP1369818A1/en
Priority to EP99302675A priority patent/EP0949585B1/en
Priority to DE69920791T priority patent/DE69920791T2/en
Priority to AT99302675T priority patent/ATE278994T1/en
Publication of JPH11298721A publication Critical patent/JPH11298721A/en
Publication of JP3045134B2 publication Critical patent/JP3045134B2/en
Application granted granted Critical
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformations in the plane of the image
    • G06T3/40Scaling of whole images or parts thereof, e.g. expanding or contracting
    • G06T3/4007Scaling of whole images or parts thereof, e.g. expanding or contracting based on interpolation, e.g. bilinear interpolation

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Image Processing (AREA)
  • Facsimiles In General (AREA)
  • Editing Of Facsimile Originals (AREA)

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、ドットマトリクス
状の画素からなる画像データを補間する画像データ補間
装置、画像データ補間方法および画像データ補間プログ
ラムを記録した媒体に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image data interpolation device, an image data interpolation method, and a medium on which an image data interpolation program is interpolated, for interpolating image data composed of dot matrix pixels.

【0002】[0002]

【従来の技術】コンピュータなどで画像を扱う際には、
画像をドットマトリクス状の画素で表現し、各画素を階
調値で表している。例えば、コンピュータの画面で水平
方向に640ドット、垂直方向に480ドットの画素で
写真やコンピュータグラフィックスを表示することが多
い。
2. Description of the Related Art When handling images on a computer or the like,
An image is represented by pixels in a dot matrix, and each pixel is represented by a gradation value. For example, photographs and computer graphics are often displayed on a computer screen with 640 dots in the horizontal direction and 480 dots in the vertical direction.

【0003】一方、カラープリンタの性能向上がめざま
しく、そのドット密度は720dpi(dot/inc
h)というように極めて高精度となっている。すると、
640×480ドットの画像をドット単位で対応させて
印刷させようとすると極めて小さくなってしまう。この
場合、階調値も異なる上、解像度の意味合い自体が異な
るのであるから、ドット間を補間して印刷用のデータに
変換しなければならない。
On the other hand, the performance of a color printer has been remarkably improved, and its dot density is 720 dpi (dot / inc.).
h), the accuracy is extremely high. Then
If an attempt is made to print an image of 640 × 480 dots corresponding to each dot, the size of the image becomes extremely small. In this case, since the tone value is different and the meaning of the resolution itself is different, it is necessary to interpolate between dots and convert the data into printing data.

【0004】従来、このような場合にドットを補間する
手法として、最近隣内挿法(ニアリストネイバ補間:以
下、ニアリスト法と呼ぶ)や、3次たたみ込み内挿法
(キュービックコンボリューション補間:以下、キュー
ビック法と呼ぶ)などの手法が知られている。また、特
開平6−225140号公報にはドットを補間したとき
の縁部のスムージングを行うにあたり、予め縁部がスム
ーズとなるような拡大形態となるようにドットパターン
を用意しておく技術が開示されている。
Conventionally, as a method of interpolating dots in such a case, a nearest neighbor interpolation method (hereinafter, referred to as a nearest neighbor method) or a cubic convolution interpolation method (a cubic convolution interpolation method) has been proposed. : Hereinafter referred to as the cubic method). Also, Japanese Patent Application Laid-Open No. 6-225140 discloses a technique of preparing a dot pattern in advance so as to have an enlarged form in which the edge is smoothed when smoothing the edge when the dots are interpolated. Have been.

【0005】[0005]

【発明が解決しようとする課題】上述した従来の補間技
術においては、次のような課題があった。ニアリスト法
においては処理量が少ない反面、補間倍率が大きくなる
と画像によっては画質の荒さが目立つようになるのが通
常である。しかしながら、画像によってはたとえニアリ
スト法であったとしても画質の荒さが殆ど気にならない
こともある。例えば、空のように画像に変化のないよう
なものであれば殆ど気にならない。
The conventional interpolation technique described above has the following problems. In the near-list method, the processing amount is small, but when the interpolation magnification is increased, the image quality is usually noticeable depending on the image. However, depending on the image, even if the near-list method is used, the roughness of the image quality is hardly noticeable. For example, if the image does not change, such as the sky, there is almost no concern.

【0006】一方、キュービック法は補間する画素をな
だらかに変化させるため、補間倍率が大きくなったとし
てもさほど画質は悪化しない。しかしながら、多次演算
を行う関係上、演算量は極めて多大となるし、もともと
画像に変化が少ない部分では殆ど意味のないこともあ
る。このように、ニアリスト法やキュービック法などの
各種の手法にはそれぞれに得失があるが、利用者がそれ
を選択するのは難しい。また、一つの画像の中でも部分
的に優劣が変化することもある。
On the other hand, in the cubic method, since the pixels to be interpolated change smoothly, the image quality does not deteriorate so much even if the interpolation magnification is increased. However, the amount of calculation becomes extremely large due to the multi-order calculation, and there may be little meaning in a portion where the image originally has little change. As described above, various methods such as the near-list method and the cubic method have their advantages and disadvantages, but it is difficult for the user to select them. In addition, the superiority may change partially in one image.

【0007】なお、特開平6−225140号公報に開
示された発明においては、予めパターンを要しておくこ
とから補間倍率が固定的にならざるを得ないし、カラー
の画像を前提とするとパターンの数が膨大となって予め
用意しておくこと自体が困難である。本発明は、上記課
題にかんがみてなされたもので、効率よく補間処理する
ことが可能な画像データ補間装置、画像データ補間方法
および画像データ補間プログラムを記録した媒体の提供
を目的とする。
In the invention disclosed in JP-A-6-225140, the interpolation magnification must be fixed because a pattern is required in advance. The number is huge and it is difficult to prepare in advance. The present invention has been made in view of the above problems, and has as its object to provide an image data interpolation apparatus, an image data interpolation method, and a medium on which an image data interpolation program is recorded, which can perform efficient interpolation processing.

【0008】[0008]

【課題を解決するための手段】上記目的を達成するた
め、請求項1にかかる発明は、画像をドットマトリクス
状の画素で表現した画像データを取得する画像データ取
得手段と、上記画像データに基づいて各画素の階調値の
変化度合いを評価するにあたり、当該画素の階調値の変
化度合いと近隣の画素の階調値の変化度合いのうちいず
れかが所定の条件に合致すると判断されれば、当該画素
については同条件が合致するものとして上記変化度合い
を評価する画素変化度合評価手段と、上記画像データに
おける構成画素数を増やす補間処理を行なうにあたり上
記所定の条件に対応した複数の補間処理を実行可能な画
素補間手段と、上記画素変化度合評価手段の評価に基づ
いて上記複数の補間処理から選択して上記画素補間手段
を実行させる補間処理選択手段とを具備する構成として
ある。
According to a first aspect of the present invention, there is provided an image data acquiring means for acquiring image data in which an image is represented by pixels in a dot matrix, and an image data acquiring means for acquiring the image data based on the image data. In evaluating the degree of change in the gradation value of each pixel, if it is determined that one of the degree of change in the gradation value of the pixel and the degree of change in the gradation value of a neighboring pixel matches a predetermined condition. A pixel change degree evaluation means for evaluating the degree of change assuming that the pixel satisfies the same condition; and a plurality of interpolation processes corresponding to the predetermined condition in performing an interpolation process for increasing the number of constituent pixels in the image data. And an interpolation process for executing the pixel interpolation unit by selecting from the plurality of interpolation processes based on the evaluation of the pixel change degree evaluation unit. It is constituted comprising a selection means.

【0009】上記のように構成した請求項1にかかる発
明においては、画像をドットマトリクス状の画素で表現
した画像データの構成画素数を増やす補間処理を行うに
あたり、画素補間手段は複数の補間処理の中からいずれ
かを選択して実行可能となっており、画像データ取得手
段が対象となる画像データを取得すると、上記画素変化
度合評価手段は同画像データに基づいて各画素の階調値
の変化度合いを評価する。ここで、画素変化度合評価手
段は当該画素の階調値の変化度合いのみならず周囲の画
素の階調値の変化度合いも考慮して評価している。より
具体的には、当該画素の階調値の変化度合いと近隣の画
素の階調値の変化度合いのうちいずれかが所定の条件に
合致すると判断されれば、当該画素については同条件が
合致するものとして上記変化度合いを評価する。
In the invention according to claim 1 configured as described above, when performing an interpolation process for increasing the number of constituent pixels of image data in which an image is represented by pixels in a dot matrix, a plurality of interpolation processes are performed by the pixel interpolation means. Can be selected and executed, and when the image data acquisition unit acquires the target image data, the pixel change degree evaluation unit determines the gradation value of each pixel based on the image data. Evaluate the degree of change. Here, the pixel change degree evaluation means evaluates not only the change degree of the gradation value of the pixel but also the change degree of the gradation value of the surrounding pixels. More specifically, if it is determined that one of the degree of change in the gradation value of the pixel and the degree of change in the gradation value of a neighboring pixel matches a predetermined condition, the condition is satisfied for the pixel. Then, the degree of change is evaluated.

【0010】そして、上記補間処理選択手段はこの画素
変化度合評価手段の評価に基づいて補間処理を選択して
上記画素補間手段に実行させる。この場合、予め各条件
に対して最適な補間結果を得ることができるような補間
処理を対応させておき、この対応関係に基づいて評価結
果から補間処理を選択する。すなわち、画素の階調値の
変化度合いは補間処理の具体的手法に密接に関連するの
で、画素の階調値の変化度合いを評価して積極的に補間
処理を変更することにより、無駄のない補間処理を実現
する。
The interpolation processing selection means selects an interpolation processing based on the evaluation by the pixel change degree evaluation means and causes the pixel interpolation means to execute the interpolation processing. In this case, an interpolation process that can obtain an optimal interpolation result is associated with each condition in advance, and the interpolation process is selected from the evaluation result based on the correspondence. That is, since the degree of change in the gradation value of a pixel is closely related to the specific method of the interpolation processing, the degree of change in the gradation value of the pixel is evaluated and the interpolation processing is actively changed, so that there is no waste. Implement interpolation processing.

【0011】一方、補間処理の処理内容によっては画素
の階調値の変化度合い次第で影響を及ぼす範囲が異なっ
てくる。例えば、補間処理を実行するにあたって必要と
する画素の数が一つであるものもあれば、複数の画素に
基づいて補間処理するものもある。後者の例であれば、
一つでも変化度合いが大きい画素があると補間処理を変
えるのか、あるいは一つでも変化度合いが小さい画素が
あると補間処理を変えるのかといったことが問題とな
る。そして、補間処理で要する画素が複数であり、その
うちの一つでも変化度合いが大きいときには、二つの態
様が考えられる。すなわち、補間処理で対象とする範囲
の残り画素については評価する必要が無くなるし、逆に
既に評価した画素について変化度合いが小さかったとし
ても当該評価は不要となる。すなわち、変化度合いが大
きい画素がある場合には他の画素における本来の評価に
関わらず変化度合いが大きい場合と同様の補間処理を実
行することになるので、本来の評価自体を修正する必要
がある。
On the other hand, the range of influence differs depending on the degree of change in the gradation value of the pixel depending on the processing content of the interpolation processing. For example, in some cases, the number of pixels required for executing the interpolation process is one, and in others, the interpolation process is performed based on a plurality of pixels. In the latter case,
The question is whether to change the interpolation processing if there is at least one pixel with a large degree of change, or whether to change the interpolation processing if there is at least one pixel with a small degree of change. When a plurality of pixels are required for the interpolation processing, and one of them has a large degree of change, two modes are conceivable. That is, it is not necessary to evaluate the remaining pixels in the target range in the interpolation processing, and conversely, even if the degree of change is small for the already evaluated pixels, the evaluation is unnecessary. That is, when there is a pixel having a large degree of change, the same interpolation processing as in the case where the degree of change is large is performed regardless of the original evaluation of the other pixels. Therefore, it is necessary to correct the original evaluation itself. .

【0012】本発明では、周囲の画素の階調値の変化度
合いも利用して当該画素の階調値の変化度合いを評価し
ているので、このような二方向の判断を簡素化すること
になる。ここで、画像データは画像をドットマトリクス
状の画素で表現したものであり、各画素についてデータ
で表したものであればよく、カラー画像であっても良い
し、モノクログレースケール画像であってもよい。画像
データ取得手段は、かかる画像データを取得するもので
あり、上記画素補間手段が構成画素を増やすための補間
処理を行うにあたり、対象となる画像データを保持する
ようなものであればよい。従って、その取得手法は特に
限定されるものではなく、各種のものを採用可能であ
る。例えば、インターフェイスを介して外部機器から取
得するものであってもよいし、撮像手段を備えて画像を
撮像するものであっても良い。また、コンピュータグラ
フィックアプリケーションを実行してマウスやキーボー
ドから入力するものであってもよい。
In the present invention, the degree of change in the gradation value of the pixel is evaluated by using the degree of change in the gradation value of the surrounding pixels. Become. Here, the image data is a representation of the image by dot matrix pixels, and may be represented by data for each pixel, and may be a color image or a monochrome grayscale image. Good. The image data obtaining means obtains the image data, and may be any as long as it holds the target image data when the pixel interpolating means performs the interpolation processing for increasing the number of constituent pixels. Therefore, the acquisition method is not particularly limited, and various methods can be adopted. For example, the information may be obtained from an external device via an interface, or may be an image capturing device provided with an image capturing unit. Alternatively, a computer graphic application may be executed to perform input from a mouse or a keyboard.

【0013】画素変化度合評価手段は、画素の階調値の
変化度合いが所定の条件に合致するかを判断するもので
あり、判断の手法や結果は特に限定されるものではな
い。例えば、階調値の変化度合いが大きいという条件で
あるとか、小さいという条件を設定可能である。また、
このように単に大きいか小さいかという択一的な判定だ
けでなく、階調値の変化度合いが所定の範囲に属するか
という条件でも良い。さらに、条件は一種類に限る必要
もなく、複数としても良い。例えば、階調値の変化度合
いにランク付けをして条件を設定しておき、どのランク
の条件が合致するかを判断するようにしても良い。むろ
ん、多段階の条件を設定することにより、多段階の補間
処理を対応させることができるようにもなる。一方、条
件に合致するか否かの判断は評価結果に基づいて行なう
必要はない。所定の条件に合致する画素の近隣では同条
件が合致するというように評価されているため、この評
価結果を利用するとさらにその近隣画素まで条件が成立
してしまうからである。むろん、判断の内容として条件
が合致する場合にその画素の近隣でどの範囲まで条件が
合致することにするのかという判断を含めることも可能
である。
The pixel change degree evaluation means determines whether or not the change degree of the gradation value of the pixel meets a predetermined condition, and the method and result of the determination are not particularly limited. For example, a condition that the degree of change in the gradation value is large or a condition that the gradation value is small can be set. Also,
As described above, not only the alternative determination of whether the value is large or small, but also the condition that the degree of change of the gradation value belongs to a predetermined range may be used. Further, the condition need not be limited to one kind, but may be plural. For example, a condition may be set by ranking the degree of change in the gradation value, and it may be determined which rank condition is met. Of course, by setting the multi-stage conditions, it is possible to support multi-stage interpolation processing. On the other hand, it is not necessary to determine whether the condition is met based on the evaluation result. This is because the neighborhood of a pixel that meets a predetermined condition is evaluated so that the same condition is met, and if this evaluation result is used, the condition is further satisfied up to the neighboring pixel. Of course, it is also possible to include a determination as to the extent to which the condition is to be met in the vicinity of the pixel when the condition is satisfied as the content of the determination.

【0014】また、画素の階調値の変化自体をどのよう
にして把握するかも適宜変更可能であり、その一例とし
て、請求項2にかかる発明は、請求項1に記載の画像デ
ータ補間装置において、上記画素変化度合評価手段は、
各画素の明るさの階調値を求めるとともに周囲の画素の
明るさの階調値との比較で上記変化度合いを算出する構
成としてある。上記のように構成した請求項2にかかる
発明においては、画素の評価の基準として当該画素の明
るさを利用するものとし、上記画素変化度合評価手段は
各画素の明るさの階調値を求め、当該画素とその周囲の
画素とで同階調値を比較し、比較結果を上記変化度合い
として算出する。
Also, how to grasp the change in the gradation value of the pixel itself can be changed as appropriate. As an example, the invention according to claim 2 is based on the image data interpolation apparatus according to claim 1. , The pixel change degree evaluation means includes:
The brightness gradation value of each pixel is obtained, and the degree of change is calculated by comparison with the brightness gradation values of surrounding pixels. In the invention according to claim 2 configured as described above, the brightness of the pixel is used as a criterion for evaluation of the pixel, and the pixel change degree evaluation means obtains a gradation value of the brightness of each pixel. Then, the same gradation value is compared between the pixel and the surrounding pixels, and the comparison result is calculated as the degree of change.

【0015】むろん、これ以外にも画素の階調値の変化
度合いを把握することは可能であるが、多要素のパラメ
ータで表される画素を一律に把握するにあたって明るさ
の階調値を利用するのは比較的容易である。請求項3に
かかる発明は、請求項1または請求項2のいずれかに記
載の画像データ補間装置において、画素変化度合評価手
段は、各画素の階調値の変化度合いと所定のしきい値と
を比較し、当該画素の階調値の変化度合いの方が大きい
と判断されるときに上記所定の条件に合致すると評価
し、上記補間処理選択手段は、補間される領域を取り囲
むすべての画素において上記変化度合いが大きいと評価
されているときに変化度合いの大きい画素に適用する補
間処理を選択する構成としてある。
Of course, it is possible to grasp the degree of change of the gradation value of the pixel in addition to this, but the gradation value of the brightness is used to uniformly grasp the pixel represented by the multi-element parameters. It is relatively easy to do. According to a third aspect of the present invention, in the image data interpolating apparatus according to any one of the first and second aspects, the pixel change degree estimating means includes the step of determining a change in the gradation value of each pixel and a predetermined threshold value. Are compared, and when it is determined that the degree of change in the gradation value of the pixel is larger, it is evaluated that the predetermined condition is satisfied, and the interpolation processing selecting means determines that all pixels surrounding the area to be interpolated When the degree of change is evaluated to be large, an interpolation process to be applied to pixels having a large degree of change is selected.

【0016】上記のように構成した請求項3にかかる発
明においては、エッジのような変化度合いが大きい画素
であるか否かを判断するが、その際にエッジ画素を取り
囲むすべての画素において画素の階調値の変化度合いが
大きいものと判定しておく。このように各画素毎に周囲
の画素の階調値の変化度合いをも含めて判定しているの
で、補間処理を行うときに各領域において周囲の画素が
すべて変化度合いが大きいものと判定されているかだけ
を判断し、その場合にのみ変化度合いの大きい画素に適
用する補間処理を実施する。
In the invention according to claim 3 configured as described above, it is determined whether or not a pixel has a large degree of change, such as an edge. It is determined that the degree of change in the gradation value is large. As described above, since the determination is made for each pixel including the degree of change in the gradation value of the surrounding pixels, it is determined that all surrounding pixels in each area have a large degree of change when performing the interpolation processing. Is determined, and only in that case, an interpolation process applied to pixels having a large degree of change is performed.

【0017】画素補間手段では、画素の階調値の変化度
合いに関連する複数の補間処理を実行可能であればよ
く、補間処理自体としては各種の処理が可能である。そ
の一例として、請求項4にかかる発明は、請求項1〜請
求項3のいずれかに記載の画像データ補間装置におい
て、上記画素補間手段は、変化度合いの小さい領域で適
用して好適な補間処理として、補間処理前の最近隣画素
の画像データを新たな構成画素の画像データに利用する
補間処理を実行可能な構成としてある。
The pixel interpolating means only needs to be able to execute a plurality of interpolation processes related to the degree of change in the gradation value of the pixel, and various processes can be performed as the interpolation process itself. As an example, the invention according to claim 4 is an image data interpolating apparatus according to any one of claims 1 to 3, wherein the pixel interpolating means is preferably applied to an area having a small degree of change. In this configuration, an interpolation process using the image data of the nearest neighbor pixel before the interpolation process as the image data of a new constituent pixel can be executed.

【0018】上記のように構成した請求項4にかかる発
明においては、一つの補間処理として補間処理前の最近
隣画素の画像データを新たな構成画素の画像データに利
用するが、同じ画素のデータが増えるとしても変化度合
いの小さい領域であれば何ら問題なく、処理量が少ない
点で好適である。また、他の一例として、請求項5にか
かる発明は、請求項1〜請求項4のいずれかに記載の画
像データ補間装置において、上記画素補間手段は、変化
度合いの大きい領域で適用して好適な補間処理として補
間する画素の階調値がなだらかに変化するように周囲の
画素の画像データから演算処理で補間画素の画像データ
を算出する補間処理を実行可能な構成としてある。
In the fourth aspect of the present invention, the image data of the nearest pixel before the interpolation processing is used as the image data of the new constituent pixel as one interpolation processing. Even if it increases, there is no problem as long as it is an area where the degree of change is small, and it is preferable in that the processing amount is small. As another example, the invention according to claim 5 is the image data interpolation device according to any one of claims 1 to 4, wherein the pixel interpolation means is preferably applied to an area having a large degree of change. As a simple interpolation process, an interpolation process of calculating the image data of the interpolated pixel from the image data of the surrounding pixels by an arithmetic process so that the gradation value of the pixel to be interpolated smoothly changes can be executed.

【0019】上記のように構成した請求項5にかかる発
明においては、周囲の画素の画像データを利用して演算
処理することにより、補間する画素の階調値はなだらか
に変化する。このように、なだらかに変化させると、変
化度合いの大きい画素の並びがあったとして、この間を
補間したとしても段差が目立たない。補間する画素の階
調値がなだらかに変化する演算手法は各種のものを採用
可能であるが、その変化態様は画質に影響を与える。従
って、ある意味では演算手法を変えることによって画質
を調整可能となるともいえる。画質を調整可能な一例と
して、請求項6にかかる発明は、請求項5に記載の画像
データ補間装置において、上記画素補間手段は、変化度
合いの大きい画素間で補間画素の画像データを算出する
にあたり、画像データの変化態様を略S字型としつつそ
の傾斜を調整するとともに、両端部位では低い側にアン
ダーシュートを発生させつつ高い側にオーバーシュート
を発生させて高低差を形成してその高低差を調整するこ
とにより、画像の変化度合いを最適なものとするように
調整する構成としてある。
In the invention according to claim 5 configured as described above, the gradation value of the pixel to be interpolated changes smoothly by performing arithmetic processing using the image data of the surrounding pixels. As described above, if the change is made gently, it is assumed that there is a row of pixels having a large change degree, and even if interpolation is performed between the pixels, the step is not conspicuous. Various calculation methods can be employed for the gradation value of the pixel to be interpolated to change gently, but the manner of change affects the image quality. Therefore, in a sense, the image quality can be adjusted by changing the calculation method. As an example in which the image quality can be adjusted, the invention according to claim 6 is the image data interpolation apparatus according to claim 5, wherein the pixel interpolating means calculates image data of an interpolated pixel between pixels having a large degree of change. In addition, the inclination of the image data is changed while the change mode of the image data is substantially S-shaped, and an undershoot is generated on the lower side and an overshoot is generated on the higher side at both ends to form a height difference. Is adjusted so that the degree of change of the image is optimized.

【0020】上記のように構成した請求項6にかかる発
明においては、補間する画素の階調値をなだらかに変化
させるにあたり、変化度合いの大きい画素間で画像デー
タの変化態様を略S字型とする。従って、なだらかには
変化するもののその変化態様は単に直線的に結ぶ勾配よ
りは急峻とさせることができ、その傾斜を調整して画像
の変化度合いを最適なものとすることが可能となる。ま
た、両端部位で低い側にアンダーシュートを発生させつ
つ高い側にオーバーシュートを発生させると高低差は大
きくなり、かつ、その高低差を調整することによっても
見かけ上の画像の変化度合いを最適なものとすることが
可能となる。このような演算処理の一例としては、多次
演算処理の3次たたみ込み内挿法などを使用可能である
し、かかる調整を可能とする演算処理はこれに限られ
ず、他の演算手法を採用することもできる。
According to the sixth aspect of the present invention, when the gradation value of the pixel to be interpolated is smoothly changed, the image data is changed in a substantially S-shaped manner between pixels having a large change degree. I do. Therefore, although the change is gradual, the change mode can be made steeper than a gradient that is merely linearly connected, and the gradient can be adjusted to optimize the degree of change of the image. In addition, if an overshoot is generated on the high side while an undershoot is generated on the low side at both ends, the height difference becomes large, and by adjusting the height difference, the degree of change of the apparent image is optimized. It becomes possible. As an example of such arithmetic processing, a cubic convolution interpolation method of multi-dimensional arithmetic processing can be used, and the arithmetic processing that enables such adjustment is not limited to this, and another arithmetic technique is adopted. You can also.

【0021】画素の階調値の変化度合いが画像全体にわ
たって一定であることはないため、補間処理選択手段
は、適宜、補間処理を選択して切り換えなければならな
い。そして、かかる切り換えの頻度も特に限定されるも
のでなく、各種の手法を採用可能である。その一例とし
て、請求項7にかかる発明は、請求項1〜請求項6のい
ずれかに記載の画像データ補間装置において、上記補間
処理選択手段は、上記画素変化度合評価手段によって評
価された画素の階調値の変化度合いに基づいて画素単位
で上記補間処理を選択して実行させる構成としてある。
Since the degree of change in the tone value of a pixel is not constant over the entire image, the interpolation processing selection means must select and switch the interpolation processing as appropriate. The frequency of such switching is not particularly limited, and various methods can be adopted. As an example thereof, the invention according to claim 7 is the image data interpolation device according to any one of claims 1 to 6, wherein the interpolation processing selecting means is configured to determine whether or not the pixel evaluated by the pixel change degree estimating means. The above-described interpolation processing is selected and executed in pixel units based on the degree of change in the gradation value.

【0022】上記のように構成した請求項7にかかる発
明においては、上記画素変化度合評価手段によって評価
された画素の階調値の変化度合いに基づき、上記補間処
理選択手段が画素単位で上記補間処理を選択して実行さ
せる。すなわち、変化度合いが画素単位で評価される以
上、これに対応して補間処理も変更する。また、他の一
例として、請求項8にかかる発明は、請求項1〜請求項
6のいずれかに記載の画像データ補間装置において、上
記補間処理選択手段は、上記画素変化度合評価手段によ
って評価された画素の階調値の変化度合いに基づいて複
数画素からなる所定の小領域毎に上記補間処理を選択し
て実行させる構成としてある。
In the invention according to claim 7 configured as described above, based on the degree of change of the gradation value of the pixel evaluated by the degree of pixel change evaluation, the interpolation processing selecting means performs the interpolation on a pixel-by-pixel basis. Select and execute a process. That is, since the degree of change is evaluated for each pixel, the interpolation processing is changed correspondingly. As another example, the invention according to claim 8 is the image data interpolation device according to any one of claims 1 to 6, wherein the interpolation processing selection unit is evaluated by the pixel change degree evaluation unit. The above-described interpolation processing is selected and executed for each predetermined small area including a plurality of pixels based on the degree of change in the gradation value of the pixel.

【0023】上記のように構成した請求項8にかかる発
明においては、上記画素変化度合評価手段によって評価
された画素の階調値の変化度合いに基づき、上記補間処
理選択手段が複数画素からなる所定の小領域毎に上記補
間処理を選択して実行させる。このように、画像の変化
度合いに応じて補間処理を選択する手法は必ずしも実体
のある装置に限られる必要はなく、その方法としても機
能することは容易に理解できる。このため、請求項9〜
請求項16にかかる発明は、上記画像データ補間装置が
実施する補間方法に対応した構成としてある。すなわ
ち、必ずしも実体のある装置に限らず、その方法として
も有効であることに相違はない。
[0023] In the invention according to claim 8 configured as described above, the interpolation processing selecting means includes a plurality of pixels based on the degree of change in the gradation value of the pixel evaluated by the pixel change degree evaluating means. The above-described interpolation processing is selected and executed for each small area. As described above, the method of selecting the interpolation processing according to the degree of change in the image is not necessarily limited to a substantial device, and it can be easily understood that the method also functions as the method. Therefore, claims 9 to
The invention according to claim 16 has a configuration corresponding to an interpolation method performed by the image data interpolation device. In other words, there is no difference in that the present invention is not necessarily limited to a substantial device and is also effective as a method.

【0024】ところで、このような画像データ補間装置
は単独で存在する場合もあるし、ある機器に組み込まれ
た状態で利用されることもあるなど、発明の思想として
はこれに限らず、各種の態様を含むものである。従っ
て、ソフトウェアであったりハードウェアであったりす
るなど、適宜、変更可能である。発明の思想の具現化例
として画像データ補間装置のソフトウェアとなる場合に
は、かかるソフトウェアを記録した記録媒体上において
も当然に存在し、利用されるといわざるをえない。その
意味で、請求項17〜請求項24にかかる発明は、上記
画像データ補間装置をコンピュータで実施させる各ステ
ップに対応した構成としてある。
By the way, such an image data interpolation device may exist alone or may be used in a state of being incorporated in a certain device. It includes embodiments. Therefore, it can be changed as appropriate, such as software or hardware. When the software of the image data interpolation device is realized as an example of realizing the idea of the present invention, the software naturally exists on a recording medium on which such software is recorded, and it must be said that the software is used. In that sense, the invention according to claims 17 to 24 has a configuration corresponding to each step of causing the computer to execute the image data interpolation device.

【0025】むろん、その記録媒体は、磁気記録媒体で
あってもよいし光磁気記録媒体であってもよいし、今後
開発されるいかなる記録媒体においても全く同様に考え
ることができる。また、一次複製品、二次複製品などの
複製段階については全く問う余地無く同等である。な
お、本請求項の媒体とは異なるが、供給方法として通信
回線を利用して行なう場合でも本発明が利用されている
ことにはかわりない。さらに、一部がソフトウェアであ
って、一部がハードウェアで実現されている場合におい
ても発明の思想において全く異なるものはなく、一部を
記録媒体上に記憶しておいて必要に応じて適宜読み込ま
れるような形態のものとしてあってもよい。
Of course, the recording medium may be a magnetic recording medium, a magneto-optical recording medium, or any recording medium to be developed in the future. Also, the duplication stages of the primary duplicated product, the secondary duplicated product, and the like are equivalent without any question. It should be noted that, although different from the medium of the present invention, the present invention is not limited to the case where the supply is performed using a communication line. Further, even when a part is implemented by software and a part is implemented by hardware, there is no difference in the concept of the invention, and a part is stored on a recording medium and appropriately It may be in a form that can be read.

【0026】また、本画像データ補間装置全体を組み入
れる対象の一つには画像出力装置なども当然に上げられ
る。例えば、ディジタルスチルカメラであるとかビデオ
カメラなどでは光学ズームに加えてディジタルズームも
利用されているが、このようなカメラに組み込んでズー
ムをする際に利用してもよい。また、高機能なテレビジ
ョンにおいても画面をズームすることが可能となってい
るものもあるが、このような場合にも画像の変化度合い
に応じた補間処理でズームするようにしても良い。すな
わち、アニメーションなどのように一定の範囲では同じ
色が塗られる場合においてはその変化度合いは低く、主
に境界部分でのみ変化度合いが大きくなるため、それぞ
れに応じた補間処理を適宜選択して実施すればよい。
An image output device or the like is naturally included as one of the objects into which the entire image data interpolation device is incorporated. For example, a digital still camera or a video camera uses a digital zoom in addition to an optical zoom. However, the digital zoom may be incorporated in such a camera and used for zooming. In addition, although there are some high-performance televisions that can zoom the screen, in such a case, the zoom may be performed by interpolation processing according to the degree of change in the image. In other words, when the same color is painted in a certain range such as animation, the degree of change is low, and the degree of change is large only at the boundary portion. Therefore, interpolation processing according to each is appropriately selected and executed. do it.

【0027】[0027]

【発明の効果】以上説明したように本発明は、画像の変
化度合いに応じて補間処理を変更するとともに、画像の
変化度合いを評価する時点で周囲の画素の階調値の変化
度合いをも考慮しているので補間処理の判定を煩雑にす
ることもなく、極めて簡易に最適な補間結果を得ること
が可能な画像データ補間装置、画像データ補間方法およ
び画像データ補間プログラムを記録した媒体を提供する
ことができる。
As described above, according to the present invention, the interpolation processing is changed in accordance with the degree of change in the image, and the degree of change in the gradation value of the surrounding pixels is considered when the degree of change in the image is evaluated. Therefore, the present invention provides an image data interpolation apparatus, an image data interpolation method, and a medium on which an image data interpolation program can be extremely easily obtained without complicating the determination of the interpolation processing. be able to.

【0028】また、請求項2、請求項10、請求項18
にかかる発明によれば、画像の変化度合いを明るさの階
調値に基づいて判断するため、比較的容易に同変化度合
いを求めることができる。さらに、請求項3、請求項1
1、請求項19にかかる発明によれば、変化度合いの大
きい画素の評価を予め周囲の画素に反映させておき、そ
の反映結果に基づいて各領域での補間処理を選択するた
め、選択の処理を簡易にして最適な補間結果を得ること
ができる。
[0028] Claims 2, 10, and 18 are also provided.
According to the invention, since the degree of change of the image is determined based on the gradation value of the brightness, the degree of change can be obtained relatively easily. Further, claim 3 and claim 1
According to the nineteenth aspect, the evaluation of pixels having a large degree of change is reflected in surrounding pixels in advance, and interpolation processing in each region is selected based on the reflection result. And an optimal interpolation result can be obtained.

【0029】さらに、請求項4、請求項12、請求項2
0にかかる発明によれば、変化度合いの小さい領域では
画質に影響することなく処理量を減らすことができる。
さらに、請求項5、請求項13、請求項21にかかる発
明によれば、変化度合いの大きい画素の並びについてこ
の間を補間したとしても段差が目立たたず画質の劣化を
防止することができる。さらに、請求項6、請求項1
4、請求項22にかかる発明によれば、S字カーブの傾
斜と、アンダーシュートとオーバーシュートによる高低
差とにより、画質の調整を比較的容易に実現できる。
Further, claim 4, claim 12, and claim 2
According to the aspect of the present invention, the processing amount can be reduced without affecting the image quality in an area where the degree of change is small.
Further, according to the fifth, thirteenth, and twenty-first aspects of the present invention, even if a pixel array having a large change degree is interpolated between the pixels, it is possible to prevent a step from being conspicuous and prevent deterioration in image quality. Further, claim 6 and claim 1
4. According to the invention according to claim 22, the image quality can be relatively easily adjusted by the inclination of the S-shaped curve and the height difference due to the undershoot and the overshoot.

【0030】さらに、請求項7、請求項15、請求項2
3にかかる発明によれば、画素単位で補間処理を選択す
るのできめ細かに補間結果を向上させることができる。
さらに、請求項8、請求項16、請求項24にかかる発
明によれば、小領域毎に補間処理を選択するので処理を
簡易化することができる。
Further, claim 7, claim 15, claim 2
According to the third aspect of the invention, the interpolation result can be finely improved by selecting the interpolation processing on a pixel-by-pixel basis.
Furthermore, according to the invention according to claims 8, 16, and 24, the interpolation processing is selected for each small area, so that the processing can be simplified.

【0031】[0031]

【発明の実施の形態】以下、図面にもとづいて本発明の
実施形態を説明する。図1は、本発明の画像データ補間
装置を表すクレーム対応図である。ディジタル処理を前
提とすると、画像はドットマトリクス状の画素で表現す
ることになり、各画素を表すデータの集まりで画像デー
タが構成される。そして、画素単位で処理する系におい
ては、画像の拡大縮小は画素単位で実施することにな
る。本画像データ補間装置はこのような画素単位での拡
大処理を実施するものであり、画像データ取得手段C1
は、このような画像データを取得し、画素補間手段C2
はこの画像データにおける構成画素数を増やす補間処理
を行う。ここで、画素補間手段C2は補間処理として画
素の階調値の変化度合いに対応する複数の補間処理を実
行可能となっており、画素変化度合評価手段C3が上記
画像データに基づいて画素ごとの変化度合いを評価す
る。ただし、このときには周囲の画素の階調値の変化度
合いの評価も利用した上で最終的に当該画素ごとの変化
度合いを評価する。すると、補間処理選択手段C4はそ
のようにして評価された画素の階調値の変化度合いに対
応して最適な補間結果を得ることが可能な補間処理を選
択し、上記画素補間手段C2に実行させる。
Embodiments of the present invention will be described below with reference to the drawings. FIG. 1 is a claim correspondence diagram showing the image data interpolation device of the present invention. Assuming digital processing, an image is represented by pixels in a dot matrix, and image data is composed of a group of data representing each pixel. In a system that performs processing in units of pixels, the image is scaled up or down in units of pixels. The image data interpolating apparatus performs such an enlarging process in units of pixels, and includes an image data acquiring unit C1.
Obtains such image data, and executes pixel interpolating means C2.
Performs an interpolation process to increase the number of constituent pixels in this image data. Here, the pixel interpolation means C2 can execute a plurality of interpolation processes corresponding to the degree of change of the gradation value of the pixel as the interpolation processing, and the pixel change degree evaluation means C3 performs the pixel-by-pixel evaluation based on the image data. Evaluate the degree of change. However, at this time, the evaluation of the degree of change of the gradation value of the surrounding pixels is also used, and finally the degree of change of each pixel is evaluated. Then, the interpolation processing selection means C4 selects an interpolation processing capable of obtaining an optimum interpolation result in accordance with the degree of change in the gradation value of the pixel evaluated in this way, and executes the interpolation processing on the pixel interpolation means C2. Let it.

【0032】本実施形態においてはこのような画像デー
タ補間装置を実現するハードウェアの一例としてコンピ
ュータシステム10を採用している。図2は、同コンピ
ュータシステム10をブロック図により示している。本
コンピュータシステム10は、画像入力デバイスとし
て、スキャナ11aとデジタルスチルカメラ11bとビ
デオカメラ11cとを備えており、コンピュータ本体1
2に接続されている。それぞれの入力デバイスは画像を
ドットマトリクス状の画素で表現した画像データを生成
してコンピュータ本体12に出力可能となっており、こ
こで同画像データはRGBの三原色においてそれぞれ2
56階調表示することにより、約1670万色を表現可
能となっている。
In the present embodiment, the computer system 10 is employed as an example of hardware for realizing such an image data interpolation device. FIG. 2 is a block diagram showing the computer system 10. The computer system 10 includes a scanner 11a, a digital still camera 11b, and a video camera 11c as image input devices.
2 are connected. Each input device is capable of generating image data representing an image with pixels in a dot matrix and outputting the image data to the computer main unit 12. Here, the image data is 2 in each of the three primary colors of RGB.
By displaying 56 gradations, about 16.7 million colors can be expressed.

【0033】コンピュータ本体12には、外部補助記憶
装置としてのフロッピーディスクドライブ13aとハー
ドディスク13bとCD−ROMドライブ13cとが接
続されており、ハードディスク13bにはシステム関連
の主要プログラムが記録されており、フロッピーディス
クやCD−ROMなどから適宜必要なプログラムなどを
読み込み可能となっている。また、コンピュータ本体1
2を外部のネットワークなどに接続するための通信デバ
イスとしてモデム14aが接続されており、外部のネッ
トワークに同公衆通信回線を介して接続し、ソフトウェ
アやデータをダウンロードして導入可能となっている。
この例ではモデム14aにて電話回線を介して外部にア
クセスするようにしているが、LANアダプタを介して
ネットワークに対してアクセスする構成とすることも可
能である。この他、コンピュータ本体12の操作用にキ
ーボード15aやマウス15bも接続されている。
The computer main body 12 is connected to a floppy disk drive 13a, a hard disk 13b, and a CD-ROM drive 13c as external auxiliary storage devices, and the hard disk 13b stores main system-related programs. Necessary programs and the like can be read from a floppy disk or a CD-ROM as needed. The computer body 1
A modem 14a is connected as a communication device for connecting 2 to an external network or the like. The modem 14a is connected to the external network via the public communication line, and software and data can be downloaded and introduced.
In this example, the modem 14a accesses the outside through a telephone line. However, a configuration in which a network is accessed through a LAN adapter is also possible. In addition, a keyboard 15a and a mouse 15b are connected for operating the computer body 12.

【0034】さらに、画像出力デバイスとして、ディス
プレイ17aとカラープリンタ17bとを備えている。
ディスプレイ17aについては水平方向に800画素と
垂直方向に600画素の表示エリアを備えており、各画
素毎に上述した1670万色の表示が可能となってい
る。むろん、この解像度は一例に過ぎず、640×48
0画素であったり、1024×720画素であるなど、
適宜、変更可能である。
Further, a display 17a and a color printer 17b are provided as image output devices.
The display 17a has a display area of 800 pixels in the horizontal direction and 600 pixels in the vertical direction, and each pixel can display the above-described 16.7 million colors. Of course, this resolution is only an example, 640x48
0 pixels, 1024 × 720 pixels, etc.
It can be changed as appropriate.

【0035】また、カラープリンタ17bはインクジェ
ットプリンタであり、CMYKの四色の色インクを用い
て記録媒体たる印刷用紙上にドットを付して画像を印刷
可能となっている。画像密度は360×360dpiや
720×720dpiといった高密度印刷が可能となっ
ているが、階調表限については色インクを付すか否かと
いった2階調表現となっている。一方、このような画像
入力デバイスを使用して画像を入力しつつ、画像出力デ
バイスに表示あるいは出力するため、コンピュータ本体
12内では所定のプログラムが実行されることになる。
そのうち、基本プログラムとして稼働しているのはオペ
レーティングシステム(OS)12aであり、このオペ
レーティングシステム12aにはディスプレイ17aで
の表示を行わせるディスプレイドライバ(DSP DR
V)12bとカラープリンタ17bに印刷出力を行わせ
るプリンタドライバ(PRT DRV)12cが組み込
まれている。これらのドライバ12b,12cの類はデ
ィスプレイ17aやカラープリンタ17bの機種に依存
しており、それぞれの機種に応じてオペレーティングシ
ステム12aに対して追加変更可能である。また、機種
に依存して標準処理以上の付加機能を実現することもで
きるようになっている。すなわち、オペレーティングシ
ステム12aという標準システム上で共通化した処理体
系を維持しつつ、許容される範囲内での各種の追加的処
理を実現できる。
The color printer 17b is an ink jet printer, and is capable of printing an image with dots on printing paper as a recording medium using four color inks of CMYK. The image density can be printed at a high density such as 360 × 360 dpi or 720 × 720 dpi, but the gradation table is expressed in two gradations such as whether or not to apply color ink. On the other hand, a predetermined program is executed in the computer main body 12 in order to display or output an image while inputting an image using such an image input device.
Among them, an operating system (OS) 12a is operating as a basic program, and the operating system 12a has a display driver (DSP DR) for performing display on the display 17a.
V) 12b and a printer driver (PRT DRV) 12c for causing the color printer 17b to perform print output are incorporated. These drivers 12b and 12c depend on the model of the display 17a and the color printer 17b, and can be additionally changed to the operating system 12a according to each model. Further, depending on the model, additional functions beyond the standard processing can be realized. That is, it is possible to realize various additional processes within an allowable range while maintaining a common processing system on the standard system of the operating system 12a.

【0036】この基本プログラムとしてのオペレーティ
ングシステム12a上でアプリケーション12dが実行
される。アプリケーション12dの処理内容は様々であ
り、操作デバイスとしてのキーボード15aやマウス1
5bの操作を監視し、操作された場合には各種の外部機
器を適切に制御して対応する演算処理などを実行し、さ
らには、処理結果をディスプレイ17aに表示したり、
カラープリンタ17bに出力したりすることになる。
The application 12d is executed on the operating system 12a as the basic program. The processing contents of the application 12d are various, and include a keyboard 15a and a mouse 1 as operation devices.
5b is monitored, and when it is operated, various external devices are appropriately controlled to execute corresponding arithmetic processing and the like. Further, the processing result is displayed on the display 17a,
For example, the data is output to the color printer 17b.

【0037】かかるコンピュータシステム10では、画
像入力デバイスであるスキャナ11aなどで画像データ
を取得し、アプリケーション12dによる所定の画像処
理を実行した後、画像出力デバイスとしてのディスプレ
イ17aやカラープリンタ17bに表示出力することが
可能である。この場合、単に画素同士の対応に着目する
と、カラープリンタ17bにおける画素密度とスキャナ
11aの画素密度が一致する場合にはスキャンした元画
像の大きさと印刷される画像の大きさとが一致するが、
両者にずれがあれば画像の大きさが異なることになる。
スキャナ11aの場合はカラープリンタ17bの画素密
度と近似するものも多いが、高画質化のために画素密度
の向上が図られているカラープリンタ17bの画素密度
の方が一般的な画像入力デバイスにおける画素密度より
も高密度であることが多い。特に、ディスプレイ17a
の表示密度と比較すると各段に高密度であり、ディスプ
レイ17a上での表示を画素単位で一致させて印刷させ
るとなると極めて小さな画像になりかねない。
In the computer system 10, image data is acquired by a scanner 11a or the like which is an image input device, a predetermined image processing is executed by an application 12d, and then output to a display 17a or a color printer 17b as an image output device. It is possible to In this case, focusing on the correspondence between pixels, if the pixel density of the color printer 17b and the pixel density of the scanner 11a match, the size of the scanned original image matches the size of the printed image.
If there is a difference between the two, the size of the image will be different.
In many cases, the pixel density of the scanner 11a is similar to the pixel density of the color printer 17b. However, the pixel density of the color printer 17b whose pixel density is improved for higher image quality is higher than that of a general image input device. It is often higher than the pixel density. In particular, the display 17a
The display density is higher in each stage as compared with the display density described above, and if the display on the display 17a is made to correspond to each pixel and printed, an extremely small image may result.

【0038】このため、オペレーティングシステム12
aで基準となる画素密度を決定しつつ実際のデバイスご
との画素密度の相違を解消するために解像度変換が実施
される。例えば、ディスプレイ17aの解像度が72d
piであるとするときに、オペレーティングシステム1
2aで360dpiを基準とするならば、ディスプレイ
ドライバ12bが両者の間の解像度変換を実施する。ま
た、同様の状況でカラープリンタ17bの解像度が72
0dpiであればプリンタドライバ12cが解像度変換
を実施する。
For this reason, the operating system 12
Resolution conversion is performed in order to eliminate the difference in the actual pixel density of each device while determining the reference pixel density in a. For example, if the resolution of the display 17a is 72d
pi, the operating system 1
If 2 dpi is based on 360 dpi, the display driver 12b performs resolution conversion between the two. In a similar situation, the resolution of the color printer 17b is 72
If it is 0 dpi, the printer driver 12c performs resolution conversion.

【0039】解像度変換は画像データにおける構成画素
数を増やす処理にあたるので補間処理に該当し、これら
のディスプレイドライバ12bやプリンタドライバ12
cがその機能の一つとして補間処理を実施する。ここに
おいて、ディスプレイドライバ12bやプリンタドライ
バ12cは上述した画素補間手段C2はもとより、以下
に述べるように画素変化度合評価手段C3や補間処理選
択手段C4を実行し、解像度変換において最もバランス
の良い補間結果を得ることができるようにしている。な
お、かかるディスプレイドライバ12bやプリンタドラ
イバ12cは、ハードディスク13bに記憶されてお
り、起動時にコンピュータ本体12にて読み込まれて稼
働する。また、導入時にはCD−ROMであるとかフロ
ッピーディスクなどの媒体に記録されてインストールさ
れる。従って、これらの媒体は画像データ補間プログラ
ムを記録した媒体を構成する。
Since the resolution conversion corresponds to a process for increasing the number of constituent pixels in image data, it corresponds to an interpolation process.
c implements interpolation as one of its functions. Here, the display driver 12b and the printer driver 12c execute not only the above-described pixel interpolating means C2 but also the pixel change degree evaluating means C3 and the interpolation processing selecting means C4, as described below, to obtain the most balanced interpolation result in the resolution conversion. So that you can get it. The display driver 12b and the printer driver 12c are stored in the hard disk 13b, and are read and operated by the computer main body 12 at the time of startup. At the time of introduction, the program is recorded on a medium such as a CD-ROM or a floppy disk and installed. Therefore, these media constitute a medium on which the image data interpolation program is recorded.

【0040】本実施形態においては、画像データ補間装
置をコンピュータシステム10として実現しているが、
必ずしもかかるコンピュータシステムを必要とするわけ
ではなく、同様の画像データに対して補間処理が必要な
システムであればよい。例えば、図3に示すようにデジ
タルスチルカメラ11b1内に補間処理する画像データ
補間装置を組み込み、補間処理した画像データを用いて
ディスプレイ17a1に表示させたりカラープリンタ1
7b1に印字させるようなシステムであっても良い。ま
た、図4に示すように、コンピュータシステムを介する
ことなく画像データを入力して印刷するカラープリンタ
17b2においては、スキャナ11a2やデジタルスチ
ルカメラ11b2あるいはモデム14a2等を介して入
力される画像データについて自動的に解像度変換を行っ
て印刷処理するように構成することも可能である。
In this embodiment, the image data interpolation device is realized as the computer system 10.
Such a computer system is not necessarily required, and any system that requires interpolation processing for similar image data may be used. For example, as shown in FIG. 3, a digital still camera 11b1 incorporates an image data interpolating device for performing interpolation processing, and displays the image data on the display 17a1 using the interpolated image data.
A system for printing on 7b1 may be used. As shown in FIG. 4, in a color printer 17b2 that inputs and prints image data without going through a computer system, image data input via a scanner 11a2, a digital still camera 11b2, a modem 14a2, or the like is automatically processed. It is also possible to adopt a configuration in which resolution conversion is performed and print processing is performed.

【0041】この他、図5に示すようなカラーファクシ
ミリ装置18aや図6に示すようなカラーコピー装置1
8bといった画像データを扱う各種の装置においても当
然に適用可能である。図7は、上述したプリンタドライ
バ12cが実行する解像度変換に関連するソフトウェア
フローを示している。ステップST102は元画像デー
タを入力する。アプリケーション12dにてスキャナ1
1aから画像を読み込み、所定の画像処理を行った後で
印刷処理すると、所定の解像度の印刷データがオペレー
ティングシステム12aを介してプリンタドライバ12
cに引き渡されるため、この引渡の段階が該当する。む
ろん、スキャナ11aにて画像を読み込むものであって
もよく、いずれにしても当該処理が画像データ取得手段
C1に該当する。
In addition, the color facsimile machine 18a as shown in FIG. 5 and the color copier 1 as shown in FIG.
It is naturally applicable to various devices that handle image data such as 8b. FIG. 7 shows a software flow relating to resolution conversion executed by the printer driver 12c described above. In step ST102, original image data is input. Scanner 1 with application 12d
When an image is read from the printer driver 1a and subjected to predetermined image processing and then subjected to print processing, print data of a predetermined resolution is transmitted to the printer driver 12 via the operating system 12a.
c), this stage of delivery corresponds. Of course, the image may be read by the scanner 11a, and in any case, the process corresponds to the image data acquisition unit C1.

【0042】ステップST104〜ST108は、読み
込んだ画像データにおける画素の階調値の変化度合いを
評価する処理である。画像データはRGB256階調で
表され、各要素色毎の変化をとるにしても三色分の変化
度合いが生じ、このままでは変化度合いを評価するのは
困難である。そこで、本実施形態においては、輝度にの
み着目し、輝度勾配をもって変化度合いと判断すること
とする。ここで、画像データがその成分要素として輝度
を持っていればその輝度値を用いて輝度勾配を算出する
ことが可能であるが、上述したようにRGBの各要素色
毎に階調表示する本画像データでは直接の成分値とはな
っていない。しかしながら、輝度値が直接の成分値とな
っていない画像データの場合でも、間接的には輝度を表
す成分値を備えており、輝度値が直接の成分値となって
いない表色空間から輝度値が直接の成分値となっている
表色空間への変換を行えば輝度値を得ることができる。
Steps ST104 to ST108 are processes for evaluating the degree of change in the gradation value of the pixel in the read image data. The image data is represented by 256 gradations of RGB, and even if a change is made for each element color, a change degree for three colors occurs, and it is difficult to evaluate the change degree as it is. Therefore, in the present embodiment, attention is paid only to the luminance, and the degree of change is determined based on the luminance gradient. Here, if the image data has luminance as its component element, it is possible to calculate a luminance gradient using the luminance value. However, as described above, a book that performs gradation display for each of the RGB element colors is used. The image data does not have a direct component value. However, even in the case of image data whose luminance value is not a direct component value, the image data has an indirect component value representing the luminance, and the luminance value is calculated from the color space in which the luminance value is not a direct component value. By performing conversion to a color space in which is a direct component value, a luminance value can be obtained.

【0043】異なる表色空間の間での色変換は変換式に
よって一義的に定まるものではなく、それぞれの成分値
を座標とする色空間について相互に対応関係を求めてお
き、この対応関係を記憶した色変換テーブルを参照して
逐次変換する必要がある。すると、厳密には1670万
個の要素の色変換テーブルを持たなければならない。効
率的な記憶資源の利用を考えた結果、すべての座標値に
ついての対応関係を用意しておくのではなく、通常は適
当なとびとびの格子点について対応関係を用意してお
き、補間演算を併用することが多い。しかし、かかる補
間演算はいくつかの乗算や加算を経て可能となるもので
あるため、演算処理量は膨大となってくる。
The color conversion between the different color spaces is not uniquely determined by the conversion formula. Relative correspondences are determined for the color spaces having their component values as coordinates, and the correspondences are stored. It is necessary to sequentially perform conversion with reference to the color conversion table obtained. Then, strictly speaking, it is necessary to have a color conversion table of 16.7 million elements. As a result of considering efficient use of storage resources, instead of preparing correspondences for all coordinate values, usually prepare correspondences for appropriate discrete grid points and use interpolation together Often do. However, since such an interpolation operation can be performed through several multiplications and additions, the amount of operation processing becomes enormous.

【0044】すなわち、フルサイズの色変換テーブルを
使用するのであれば処理量としては少なくなるもののテ
ーブルサイズが非現実的な問題となり、テーブルサイズ
を現実的なサイズにすれば演算処理量が非現実的となる
ことが多い。このような状況に鑑み、本実施形態におい
ては、テレビジョンなどの場合に利用されているよう
に、RGBの三原色から輝度を求める次式の変換式を採
用している。すなわち、P点での輝度yp についてはR
GBの成分値(Rp,Gp,Bp )から、 yp=0.30Rp+0.59Gp+0.11Bp とする。このようにすれば、三回の乗算と二回の加算だ
けで輝度値を求めることができるようになる。
That is, if a full-size color conversion table is used, the processing amount is reduced, but the table size becomes an unrealistic problem. If the table size is made to be a realistic size, the calculation processing amount becomes unrealistic. Often becomes the target. In view of such a situation, the present embodiment employs the following conversion formula for obtaining luminance from the three primary colors of RGB as used in a television or the like. That is, the luminance yp at the point P is R
From the GB component values (Rp, Gp, Bp), yp = 0.30Rp + 0.59Gp + 0.11Bp. In this way, a luminance value can be obtained only by three multiplications and two additions.

【0045】本実施形態においては、RGBの画像デー
タを対象としている結果、このような変換式を採用して
いるが、その背景には各成分値が色の明るさを示してい
るので、それぞれの成分値を単独で見た場合に輝度に線
形に対応しているという性質がある。従って、よりおお
ざっぱに言えばそれぞれの加算割合を考慮することなく
単に yp=(Rp+Gp+Bp)/3 というように簡略化することも不可能ではない。
In the present embodiment, as a result of targeting RGB image data, such a conversion formula is employed. However, since each component value indicates the color brightness in the background, Has a property that when viewed alone, the component value linearly corresponds to the luminance. Therefore, more simply, it is not impossible to simply simplify to yp = (Rp + Gp + Bp) / 3 without considering each addition ratio.

【0046】このようにして輝度を求めることとした上
で、図8と図9は、輝度勾配を算出するためのエッジ検
出フィルタを示している。画像データはドットマトリク
ス状の画素から構成されているので、注目画素を中心と
する近隣の八画素との間で画像の変化度合いを評価すべ
きである。そういった意味では図9に示すように、注目
画素に8倍の重み付けを与えつつ周囲の画素を均等に評
価してそれを合算することでフィルタを掛けることが好
ましい。しかしながら、経験的には必ずしも周囲の八画
素を評価しなくても図8に示すように注目画素と周囲の
四画素だけから評価可能である。むろん、四画素を利用
するか八画素を利用するかでは演算量の差が大きく、こ
のようにして評価対象を少なくすると処理時間を減らす
ことができる。
FIGS. 8 and 9 show an edge detection filter for calculating a luminance gradient after obtaining the luminance in this manner. Since the image data is composed of pixels in the form of a dot matrix, the degree of change of the image should be evaluated between the pixel of interest and eight neighboring pixels centered on the pixel of interest. In this sense, as shown in FIG. 9, it is preferable to apply a filter by equally evaluating surrounding pixels while adding eight times the weight to the pixel of interest and summing them. However, empirically, it is possible to evaluate only the target pixel and the four surrounding pixels as shown in FIG. 8 without necessarily evaluating the eight surrounding pixels. Of course, there is a large difference in the amount of calculation between using four pixels and eight pixels, and thus reducing the number of evaluation targets can reduce the processing time.

【0047】図8や図9に示すエッジ検出フィルタを利
用した結果を各画素のエッジ量Eと呼ぶと、その分布は
図10に示すように正規分布的となることが予想され、
画像の変化度合いが大きいエッジ部分であるか否かはし
きい値thと比較することによって判定できる。図8と
図9に示すエッジ検出フィルタはそれぞれしきい値とし
てth=32およびth=64というエッジ量のしきい
値が妥当する。従って、エッジの画素か否かは次式から
評価する。 (E<−th) or (th>E) この評価をドットマトリクス状の画素の全てに実施する
のがステップST106の処理であり、各画素単位でエ
ッジの画素のように画像の変化度合いが大きい画素であ
るか否かを評価する。
If the result of using the edge detection filters shown in FIGS. 8 and 9 is called an edge amount E of each pixel, it is expected that the distribution will be a normal distribution as shown in FIG.
Whether or not the edge portion has a large degree of change in the image can be determined by comparing with the threshold value th. In the edge detection filters shown in FIGS. 8 and 9, threshold values of th = 32 and th = 64 are appropriate as threshold values, respectively. Therefore, whether or not the pixel is an edge pixel is evaluated from the following equation. (E <-th) or (th> E) The process of step ST106 performs this evaluation for all the pixels in the dot matrix, and the degree of change of the image is large like an edge pixel in each pixel unit. Evaluate whether the pixel is a pixel.

【0048】ところで、各画素単位で画像の変化度合い
が大きいか否かを判定するとしても、補間処理は一定の
領域毎に画素を生成する処理であるから、その領域単位
で画像の変化度合いが大きいか否かを判定する必要があ
る。各領域ごとにこの変化度合いを判定するのは煩雑で
あるから、ステップST108であらかじめエッジ画素
であるか否かを判定してフラグを設定する。この場合、
図11に示すように、エッジ画素を取り囲む全ての画素
において画像の変化度合いが大きいものと判断する。よ
り具体的には、各画素の階調値の変化度合いが図12
(a)に示すようになっているとするときに、しきい値
が「32」であれば、しきい値を越える画素はxy座標
で示すところの(0,0)(3,0)(4,0)(1,
1)(2,1)であるとしても、エッジ画素の隣接画素
にはフラグを設定することになる。すると、同図(b)
に示すようにy=0,1の全画素と、(4,2)を除く
y=2の画素についてはフラグが設定されることにな
る。この結果、後の工程で各画素単位で注目ブロックを
移動させていくときにフラグだけを参照して補間処理を
適宜選択できるようになる。ここではしきい値を「3
2」と設定して画素の階調値の変化度合いがこれよりも
大きいという条件が設定されているのであり、変化度合
いをこのしきい値「32」と比較する判断を行なう。こ
れで大きいと判断されるのは、上述した(0,0)
(3,0)(4,0)(1,1)(2,1)という5つ
の画素であるが、各画素と隣接する画素のいずれかでも
条件が合致すれば条件が合致すると評価するのであるか
ら、これらの隣接画素でフラグが設定される。
By the way, even if it is determined whether or not the degree of change of the image is large in each pixel unit, since the interpolation process is a process of generating a pixel for each fixed area, the degree of change of the image in each area unit is small. It is necessary to determine whether it is large. Since it is complicated to determine the degree of change for each area, a flag is set in advance in step ST108 by determining whether or not the pixel is an edge pixel. in this case,
As shown in FIG. 11, it is determined that the degree of change in the image is large in all pixels surrounding the edge pixels. More specifically, the degree of change in the gradation value of each pixel is shown in FIG.
If the threshold value is "32" in the case shown in (a), pixels exceeding the threshold value are (0, 0) (3, 0) ( 4,0) (1,
1) Even if it is (2, 1), a flag is set for a pixel adjacent to the edge pixel. Then, FIG.
As shown in (1), a flag is set for all pixels at y = 0, 1 and pixels at y = 2 except (4, 2). As a result, the interpolation process can be appropriately selected by referring to only the flag when moving the target block in each pixel unit in a later step. Here, the threshold is set to "3
The condition that the degree of change of the gradation value of the pixel is larger than 2 is set, and a judgment is made to compare the degree of change with the threshold value “32”. It is determined that this is large because (0, 0) described above.
Although there are five pixels (3, 0) (4, 0) (1, 1) (2, 1), if any one of the pixels adjacent to the pixel satisfies the condition, it is evaluated that the condition is met. Therefore, a flag is set for these adjacent pixels.

【0049】むろん、本実施形態においては、これらの
ステップST104〜ST108の処理が画素変化度合
評価手段C3を構成することになる。以上のように設定
したフラグに基づき、ステップST110以下ではルー
プ処理で補間画素を生成していく。図13は既存の画素
に対して補間して生成される画素の配置を概略的に示し
ている。既存の画素について仮に座標を(X,Y)とし
て表示し、補間で生成される画素の座標を<X,Y>と
して表示している。
Of course, in the present embodiment, the processing of these steps ST104 to ST108 constitutes the pixel change degree evaluation means C3. Based on the flags set as described above, in step ST110 and subsequent steps, interpolation pixels are generated by loop processing. FIG. 13 schematically shows the arrangement of pixels generated by interpolating existing pixels. The coordinates of the existing pixels are temporarily displayed as (X, Y), and the coordinates of the pixels generated by the interpolation are displayed as <X, Y>.

【0050】既存の四つの画素で囲まれる一つの領域を
ブロックと呼び、各ブロックごとに補間する画素の補間
処理を選択する。ステップST108では各画素ごとに
周囲の画素の階調値の変化度合いも考慮してフラグを設
定しているので、各ブロックでは四つの画素(0,0)
(1,0)(0,1)(1,1)についていずれについ
てもフラグが設定されていれば変化度合いの大きい場合
の補間処理を選択することになり、どれか一つでもフラ
グが設定されていなければ変化度合いの小さい場合の補
間処理を選択することになる。ステップST110で
は、この条件に基づいて当該ブロック内部に適用する補
間処理を判断し、変化度合いが小さい場合にはステップ
ST112にてニアリスト法による補間処理で補間を実
行するし、変化度合いが大きい場合にはステップST1
14にてキュービック法による補間処理で補間を実行す
る。また、一つのブロックを補間処理した後、ステップ
ST116とステップST118にて処理対象となるブ
ロックを移動させ、全てのブロックが終了すればステッ
プST120にて補間された画像データを出力する。
One area surrounded by the existing four pixels is called a block, and an interpolation process of a pixel to be interpolated is selected for each block. In step ST108, since the flag is set for each pixel in consideration of the degree of change in the gradation value of the surrounding pixels, four pixels (0, 0) are used in each block.
If a flag is set for any of (1, 0), (0, 1), and (1, 1), an interpolation process in a case where the degree of change is large is selected, and any one of the flags is set. If not, an interpolation process in the case where the degree of change is small is selected. In step ST110, an interpolation process to be applied to the inside of the block is determined based on this condition. If the degree of change is small, the interpolation is executed by the near-list interpolation process in step ST112. Step ST1
At 14, interpolation is performed by an interpolation process using the cubic method. After one block is interpolated, the block to be processed is moved in steps ST116 and ST118, and when all blocks are completed, the interpolated image data is output in step ST120.

【0051】なお、図中にはステップST118の終了
後にステップST110に戻るような流れを実線で示し
ているが、破線で示すようにブロック毎にエッジ画素を
集計する処理を繰り返すようにしても良い。むろん、こ
のような意味でステップST110の処理を中心として
ステップST116,ST118の処理を含めて補間処
理選択手段C4を構成することになる。なお、プリンタ
ドライバ12cの場合、解像度変換だけで印刷データが
得られるわけではなく、色変換であるとか、ハーフトー
ン処理が必要になる。従って、ここで画像データを出力
するというのは、次の段階へのデータの受け渡しを意味
することになる。
Although the flow of returning to step ST110 after the end of step ST118 is shown by a solid line in the figure, the process of counting edge pixels for each block may be repeated as shown by a broken line. . Needless to say, in this sense, the interpolation processing selecting means C4 includes the processing of step ST110 and the processing of steps ST116 and ST118. In the case of the printer driver 12c, print data cannot be obtained only by resolution conversion, but requires color conversion or halftone processing. Therefore, outputting the image data here means transferring the data to the next stage.

【0052】本実施形態の場合は、四つの画素に囲まれ
る領域をブロックと呼んで補間処理を選択しているが、
補間処理を変更する基準は演算能力や補間処理などに応
じて適宜変更可能である。例えば、図14に示すよう
に、注目画素を中心とする領域を基準として補間処理す
る場合もある。このような場合は、かかる注目画素を矢
印のように走査させて移動させながら補間処理を適宜実
施していけばよい。ここで、注目画素を移動させていき
ながら補間処理を選択する手法について説明する。上述
した例ではブロック毎に変化度合いが大きいか否かを判
定するにあたり、当該領域に含まれる全てのフラグが
「1」となっている場合にだけ画像の変化度合いが大き
い領域と判断している。しかしながら、必ずしもこのよ
うに全てのフラグが「1」になっている必要もないとも
いえる。例えば、図15(a)に示すように4画素で囲
まれる領域に補間処理で画素を生成するものとする。こ
の場合、図11でエッジ画素の隣接画素にフラグを立て
る関係上、本来であれば上述したように4画素全てにフ
ラグが立っている場合だけが変化度合いの大きい領域と
判定することになりえる。しかしながら、このように判
断するとブロックを1画素分だ横に移動させた場合には
縦の辺が共通する関係で縦の二画素について毎回判断が
重複するし、縦方向に移動させれば横の辺が共通する関
係で横の二画素について毎回判断が重複する。このよう
な重複状況は演算処理において無駄である。一方、同図
(b)に示すように領域の隣接状況を考慮すれば、1領
域ごとに左上の1画素を代表させて関連づけることが可
能であるし、少なくともエッジ画素に同視しうる画素の
近辺で変化度合いが大きいと判断しても対して支障はな
いといえる。また、隣接画素同士に囲まれる領域という
のは実際には極めて微少な領域であることを鑑みても十
分であるといえる。そして、このようにして1画素に1
領域を対応させれば、ブロックを移動させる際に注目画
素を移動させていき、その注目画素のエッジ量だけで領
域の変化度合いを判定することが可能となるし、判定に
要する演算処理量も低減する。
In the case of the present embodiment, the area surrounded by four pixels is called a block and interpolation processing is selected.
The criterion for changing the interpolation processing can be changed as appropriate according to the computing capacity, the interpolation processing, and the like. For example, as shown in FIG. 14, interpolation processing may be performed with reference to an area centered on a target pixel. In such a case, the interpolation process may be appropriately performed while scanning and moving the target pixel as indicated by an arrow. Here, a method of selecting an interpolation process while moving the pixel of interest will be described. In the above-described example, when determining whether the degree of change is large for each block, it is determined that the image has a large degree of change only when all the flags included in the area are “1”. . However, it can be said that not all the flags need to be "1". For example, assume that pixels are generated by interpolation processing in a region surrounded by four pixels as shown in FIG. In this case, since a flag is set to a pixel adjacent to an edge pixel in FIG. 11, only a case where flags are set to all four pixels as described above may be determined to be a region with a large degree of change. . However, when judging in this way, when the block is moved horizontally by one pixel, the judgment is duplicated each time for two vertical pixels because of the common vertical side, and when the block is moved in the vertical direction, the horizontal The judgment is duplicated each time for two horizontal pixels because of the common side. Such an overlapping situation is useless in the arithmetic processing. On the other hand, as shown in FIG. 3B, considering the adjacent state of the region, it is possible to associate one region with one pixel on the upper left as a representative, and at least the vicinity of a pixel that can be identified as an edge pixel. It can be said that there is no problem even if it is determined that the degree of change is large. In addition, it can be said that an area surrounded by adjacent pixels is sufficient in view of the fact that it is actually an extremely small area. Then, in this way, one pixel
If the regions are made to correspond, the pixel of interest is moved when the block is moved, and the degree of change of the region can be determined only by the edge amount of the pixel of interest, and the amount of calculation processing required for the determination is also reduced. Reduce.

【0053】また、補間する画素の側でブロックを形成
するようにすることも可能である。図16はこの例を示
しており、図中、□の格子点が補間する画素を示し、○
の格子点が既存の画素を示している。いま、補間する画
素について5×5のブロックを一つとし、その中に含ま
れる既存の画素のエッジ量に基づいて当該領域が画像の
変化度合いの大きいものであるか否かを判断する。この
場合、一つのブロックを決めて当該ブロックに含まれる
既存の画素を抽出し、そのエッジ量の積算値を求め、当
該ブロック内では同一の補間処理で画素を生成すればよ
い。
It is also possible to form a block on the side of the pixel to be interpolated. FIG. 16 shows this example. In the figure, the grid points indicated by □ indicate the pixels to be interpolated.
Grid points indicate existing pixels. Now, it is assumed that one 5 × 5 block is used for the pixel to be interpolated, and it is determined whether or not the area has a large degree of change in the image based on the edge amount of the existing pixel included therein. In this case, one block is determined, existing pixels included in the block are extracted, the integrated value of the edge amount is obtained, and the pixel is generated by the same interpolation processing in the block.

【0054】むろん、以上の場合においてより大きな領
域毎にブロックを設定して補間処理を選択しても良く、
例えば、10×10画素毎をブロックとすることも可能
である。また、ブロックを設定せずに補間する画素毎に
それを取り囲む既存の画素についてのエッジ量を判断し
て補間処理を選択することも可能である。図16の例で
言えば内側に配列される3×3の□の格子点は、いずれ
も○で示す四つの既存の格子点の中に含まれ、それぞれ
の□の格子点を生成する際にこれを取り囲む○で示す四
つの既存の格子点についてのエッジ量に基づいて補間処
理を選択するということである。むろん、演算処理上、
このような処理の方が都合よい場合に実現すればよい。
すなわち、先に補間処理するブロックを特定して補間処
理を決めてからその内部に画素を補間するという手法で
あっても良いし、補間する画素毎にブロックの状況を判
定して補間処理を選択しても良い。
Of course, in the above case, the interpolation processing may be selected by setting a block for each larger area.
For example, every 10 × 10 pixels can be a block. Further, it is also possible to determine the edge amount of the existing pixels surrounding each pixel to be interpolated without setting a block, and to select the interpolation processing. In the example of FIG. 16, the 3 × 3 □ grid points arranged inside are all included in the four existing grid points indicated by ○, and when generating each □ grid point, This means that the interpolation processing is selected based on the edge amounts of the four existing grid points indicated by the circles surrounding this. Of course,
What is necessary is just to implement | achieve when such a process is more convenient.
In other words, a method may be used in which a block to be interpolated is specified first and interpolation processing is determined, and then pixels are interpolated therein. Alternatively, the state of the block is determined for each pixel to be interpolated and interpolation processing is selected. You may.

【0055】さらに、上述したフローではステップST
108にて予めエッジ画素に隣接する画素にフラグを設
定しておき、ブロック毎に同フラグを参照するようにし
ている。しかしながら、図7にて破線で示すようにブロ
ックを移動させるフローとすることも可能であり、この
場合には敢えてフラグを設定する必要もなく、当該ブロ
ックの周囲の画素のエッジ量を判断して補間処理を選択
するようにすれば良い。
Further, in the flow described above, step ST
At 108, a flag is set in advance for a pixel adjacent to the edge pixel, and the flag is referred to for each block. However, it is also possible to adopt a flow of moving a block as shown by a broken line in FIG. 7, and in this case, there is no need to set a flag, and the edge amount of pixels around the block is determined. What is necessary is just to select an interpolation process.

【0056】上述したように別々の補間処理を備えてい
るステップST112,ST114の処理は画素補間手
段C2を構成することになる。この場合、画素補間手段
C2はソフトウェアで実現されているが、その構成にオ
ペレーティングシステムは必須ではない。すなわち、オ
ペレーティングシステムの関数などを呼び出して所定の
機能を実施するようにもできるし、オペレーティングシ
ステムを呼び出すことなく所定の機能を実施するように
もできる。そして、媒体にプログラムが記録されて供給
される過程においても、単独で本発明を構成することは
いうまでもない。むろん、ソフトウェアで実現する他の
構成要素についても全く同様である。
As described above, the processing of steps ST112 and ST114 having separate interpolation processing constitutes the pixel interpolation means C2. In this case, the pixel interpolation means C2 is realized by software, but an operating system is not indispensable for its configuration. That is, a predetermined function can be performed by calling a function of the operating system, or a predetermined function can be performed without calling the operating system. It goes without saying that the present invention is constituted alone in the process of recording and supplying the program to the medium. Of course, the same applies to other components realized by software.

【0057】ここで、それぞれの補間処理について詳述
する。画像の変化度合いが小さい場合に適するとともに
演算処理量が極めて少ない補間処理として、ニアリスト
法の補間処理がある。ニアリスト法は図17に示すよう
に、周囲の四つの格子点Pij,Pi+1j,Pij+
1,Pi+1j+1と内挿したい点Puvとの距離を求
め、もっとも近い格子点のデータをそのまま移行させ
る。これを一般式で表すと、 Puv=Pij ここで、i=[u+0.5]、j=[v+0.5]であ
る。なお、[]はガウス記号で整数部分を取ることを示
している。
Here, each interpolation process will be described in detail. As an interpolation process suitable for a case where the degree of change of an image is small and having a very small amount of computation, there is an interpolation process of a near-list method. In the near list method, as shown in FIG. 17, four surrounding grid points Pij, Pi + 1j, Pij +
The distance between 1, Pi + 1j + 1 and the point Puv to be interpolated is obtained, and the data of the closest lattice point is transferred as it is. When this is represented by a general formula, Puv = Pij where i = [u + 0.5] and j = [v + 0.5]. [] Indicates that a Gaussian symbol takes an integer part.

【0058】図18は、ニアリスト法で画素数を縦横3
倍ずつに補間する状況を示している。補間される画素は
最初の四隅の画素のうちもっとも近い画素のデータをそ
のまま移行させることになる。従って、図19に示すよ
うに白い画素を背景として黒い画素が斜めに配置される
元画像は、図20に示すように黒の画素が縦横に3倍に
拡大されつつ斜め方向に配置される関係が保持される。
ニアリスト法においては、画像のエッジがそのまま保持
される特徴を有する。それ故に隣接する画素の差が大き
い場合には、拡大するとジャギーが目立つことになる。
しかし、背景の空のような部分では隣接する画素の並び
において両者の間にさほど変化がなく、拡大しても殆ど
ジャギーは目立たない。また、それ以上に演算量の少な
さは処理時間を短縮するうえで極めて効果が大きい。従
って、画像の変化度合いが小さい部分で積極的にニアリ
スト法を選択するメリットは大きい。
FIG. 18 shows that the number of pixels is 3 in the horizontal and vertical directions by the near-list method.
This shows a situation where interpolation is performed twice at a time. As the pixel to be interpolated, data of the closest pixel among the first four corner pixels is transferred as it is. Therefore, the original image in which black pixels are arranged obliquely with white pixels as the background as shown in FIG. 19 has a relationship in which black pixels are arranged in the oblique direction while being enlarged three times vertically and horizontally as shown in FIG. Is held.
The near-list method has a feature that an edge of an image is held as it is. Therefore, when the difference between adjacent pixels is large, jaggies become noticeable when enlarged.
However, in a portion such as the sky in the background, there is not much change in the arrangement of the adjacent pixels between them, and even when the image is enlarged, the jaggy is hardly noticeable. Further, if the amount of calculation is smaller than that, the effect is extremely large in reducing the processing time. Therefore, the merit of actively selecting the near-list method in a portion where the degree of change of the image is small is great.

【0059】一方、写真のような自然画に適する一方で
演算処理量が大きい補間処理として、キュービック法の
補間処理がある。キュービック法は図21に示すよう
に、内挿したい点Puvを取り囲む四つの格子点のみな
らず、その一周り外周の格子点を含む計16の格子点の
データを利用する。3次たたみ込み関数を用いた一般式
は次式のようになる。
On the other hand, there is a cubic interpolation process as an interpolation process which is suitable for a natural image such as a photograph while having a large amount of calculation processing. As shown in FIG. 21, the cubic method uses data of a total of 16 grid points including not only four grid points surrounding a point Puv to be interpolated but also grid points around one point. A general expression using a cubic convolution function is as follows.

【0060】[0060]

【数1】 また、ここで距離に応じた影響度合いを3次たたみ込み
関数で表すとすると、 f(t) = {sin(πt)}/πt となる。なお、上述した各距離x1〜x4,y1〜y4
は格子点Puvの座標値(u,v)について絶対値を利
用して次のように算出することになる。 x1 = 1+(u-|u|) y1 = 1+(v-|v|) x2 = (u-|u|) y2 = (v-|v|) x3 = 1-(u-|u|) y3 = 1-(v-|v|) x4 = 2-(u-|u|) y4 = 2-(v-|v|) 以上の前提のもとでPについて展開すると、
(Equation 1) If the degree of influence according to the distance is represented by a third-order convolution function, then f (t) = {sin (πt)} / πt. Note that the above-described distances x1 to x4, y1 to y4
Is calculated as follows using the absolute value of the coordinate value (u, v) of the grid point Puv. x1 = 1+ (u- | u |) y1 = 1+ (v- | v |) x2 = (u- | u |) y2 = (v- | v |) x3 = 1- (u- | u | ) y3 = 1- (v- | v |) x4 = 2- (u- | u |) y4 = 2- (v- | v |)

【0061】[0061]

【数2】 となる。なお、3次たたみ込み関数と呼ばれるように距
離に応じた影響度合いf(t)は次のような三次式で近
似される。
(Equation 2) Becomes The degree of influence f (t) according to the distance, which is called a third-order convolution function, is approximated by the following cubic expression.

【0062】[0062]

【数3】 このキュービック法では一方の格子点から他方の格子点
へと近づくにつれて徐々に変化していき、その変化具合
がいわゆる3次関数的になるという特徴を有している。
(Equation 3) The cubic method has a feature that the gradual change gradually proceeds from one grid point to the other grid point, and the degree of the change becomes a so-called cubic function.

【0063】図22と図23はキュービック法にて補間
される際の具体例を示している。理解を容易にするた
め、垂直方向についてのデータの変化はなく、水平方向
についてエッジが生じているモデルについて説明する。
また、補間する画素を3点とする。まず、図23の具体
的数値について説明する。補間前の画素の階調値を左列
に「Original」として示しており、階調値「6
4」の画素(P0、P1、P2、P3)が4点並び、階
調値「128」の画素(P4)を1点挟み、階調値「1
92」の画素(P5、P6、P7、P8、P9)が5点
並んでいる。この場合、エッジは階調値「128」の画
素の部分である。
FIG. 22 and FIG. 23 show specific examples when interpolation is performed by the cubic method. For ease of understanding, a model in which there is no change in data in the vertical direction and an edge occurs in the horizontal direction will be described.
The number of pixels to be interpolated is three. First, specific numerical values in FIG. 23 will be described. The gradation value of the pixel before interpolation is indicated as “Original” in the left column, and the gradation value “6” is displayed.
4 pixels (P0, P1, P2, P3) are arranged at four points, one pixel (P4) having a gradation value of "128" is interposed, and a gradation value of "1"
Five 92 pixels (P5, P6, P7, P8, P9) are arranged. In this case, the edge is a portion of the pixel having the gradation value “128”.

【0064】ここで各画素間に3点の画素(Pn1、P
n2、Pn3)を内挿することになると、内挿される画
素間の距離は「0.25」となり、上述したx1〜x4
は内挿点毎に表の中程の列の数値となる。x1〜x4に
対応してf(x1)〜f(x4)も一義的に計算される
ことになり、例えば、x1,x2,x3,x4が、それ
ぞれ「1.25」、「0.25」、「0.75」、
「1.75」となる場合、それに対するf(t)につい
ては、概略「−0.14」、「0.89」、「0.3
0」、「−0.05」となる。また、x1,x2,x
3,x4が、それぞれ「1.50」、「0.50」、
「0.50」、「1.50」となる場合、それに対する
f(t)については、「−0.125」、「0.62
5」、「0.625」、「−0.125」となる。ま
た、x1,x2,x3,x4が、それぞれ「1.7
5」、「0.75」、「0.25」、「1.25」とな
る場合、それに対するf(t)については、概略「−
0.05」、「0.30」、「0.89」、「−0.1
4」となる。以上の結果を用いて内挿点の階調値を演算
した結果を表の右列に示しているとともに、図22にお
いてグラフで示している。なお、このグラフの意味する
ところについて後に詳述する。
Here, three pixels (Pn1, Pn1) are located between each pixel.
n2, Pn3), the distance between the interpolated pixels is “0.25”, and the above-described x1 to x4
Is the value in the middle column of the table for each interpolation point. f (x1) to f (x4) are also uniquely calculated corresponding to x1 to x4. For example, x1, x2, x3, and x4 are "1.25" and "0.25", respectively. , "0.75",
When “1.75” is obtained, f (t) corresponding thereto is approximately “−0.14”, “0.89”, “0.3”
0 "and" -0.05 ". X1, x2, x
3, x4 are “1.50”, “0.50”,
When “0.50” and “1.50” are obtained, f (t) corresponding thereto is “−0.125” and “0.62”.
5 "," 0.625 ", and" -0.125 ". In addition, x1, x2, x3, and x4 are each "1.7.
5 "," 0.75 "," 0.25 ", and" 1.25 ", f (t) corresponding thereto is roughly expressed as"-
0.05 "," 0.30 "," 0.89 "," -0.1
4 ". The result of calculating the gradation value of the interpolation point using the above result is shown in the right column of the table, and is shown graphically in FIG. The meaning of this graph will be described later in detail.

【0065】垂直方向についてのデータの変化がないも
のとみなすと、演算は簡略化され、水平方向に並ぶ四つ
の格子点のデータ(P1,P2,P3,P4 )だけを参照しつつ、
内挿点から各格子点までの距離に応じた影響度合いf
(t)を利用して次のように算出できる。 P=P1・f(x1)+P21f(x2)+P3・f(x3)+P4・f(x4) 従って、内挿点P21について算出する場合には、 P21=64*f(1.25)+64*f(0.25)+64*f(0.75)+128*f(1.75) =64*(-0.14063)+64*(0.890625)+64*(0.296875)+128*(-
0.04688) =61 となる。
Assuming that there is no change in data in the vertical direction, the operation is simplified, and only data (P1, P2, P3, P4) of four grid points arranged in the horizontal direction are referred to.
Influence degree f according to distance from interpolation point to each grid point
Using (t), it can be calculated as follows. P = P1 ・ f (x1) + P21f (x2) + P3 ・ f (x3) + P4 ・ f (x4) Therefore, when calculating for the interpolation point P21, P21 = 64 * f (1.25) +64 * f (0.25) + 64 * f (0.75) + 128 * f (1.75) = 64 * (-0.14063) + 64 * (0.890625) + 64 * (0.296875) +128 * (-
0.04688) = 61.

【0066】キュービック法によれば3次関数的に表せ
る以上、そのカーブの形状を調整することによって補間
結果の品質を左右することができる。その調整の一例と
して、 0<t<0.5 f(t) = -(8/7)t**3-(4/7)t**2+1 0.5<t<1 f(t) = (1-t)(10/7) 1<t<1.5 f(t) = (8/7)(t-1)**3+(4/7)(t-1)**2-(t-1) 1.5<t<2 f(t) = (3/7)(t-2) としたものをMキュービック法と呼ぶことにする。
According to the cubic method, since it can be expressed as a cubic function, the quality of the interpolation result can be influenced by adjusting the shape of the curve. As an example of the adjustment, 0 <t <0.5 f (t) =-(8/7) t ** 3- (4/7) t ** 2 + 1 0.5 <t <1 f (t) = (1 -t) (10/7) 1 <t <1.5 f (t) = (8/7) (t-1) ** 3+ (4/7) (t-1) ** 2- (t-1 ) 1.5 <t <2 f (t) = (3/7) (t−2) is called an M cubic method.

【0067】図24はMキュービック法にて補間される
際の具体例を示しており、キュービック法の場合と同じ
仮定のモデルについて補間した結果を示している。ま
た、図22にもMキュービック法による補間処理結果を
示しており、この例では3次関数的なカーブがわずかに
急峻となり、画像全体のイメージがシャープとなる。上
述したニアリスト法やキュービック法やMキュービック
法の特性の理解のために他の補間手法である共1次内挿
法(バイリニア補間:以下、バイリニア法と呼ぶ)につ
いて説明する。
FIG. 24 shows a specific example when interpolation is performed by the M cubic method, and shows the result of interpolation for a model on the same assumption as in the case of the cubic method. FIG. 22 also shows the result of the interpolation processing by the M cubic method. In this example, the cubic function curve becomes slightly steep, and the entire image becomes sharp. In order to understand the characteristics of the above-described near-list method, cubic method, and M-cubic method, a bi-linear interpolation method (bilinear interpolation), which is another interpolation method, will be described.

【0068】バイリニア法は、図25に示すように、一
方の格子点から他方の格子点へと近づくにつれて徐々に
変化していく点でキュービック法に近いが、その変化が
両側の格子点のデータだけに依存する一次関数的である
点で異なる。すなわち、内挿したい点Puvを取り囲む
四つの格子点Pij,Pi+1j,Pij+1,Pi+
1j+1で区画される領域を当該内挿点Puvで四つの
区画に分割し、その面積比で対角位置のデータに重み付
けする。これを式で表すと、 P={(i+1)−u}{(j+1)−v}Pij +{(i+1)−u}{v−j}Pij+1 +{u−i }{(j+1)−v}Pi+1j +{u−i }{v−j}Pi+1j+1 となる。なお、i=[u]、j=[v]である。
The bilinear method is similar to the cubic method in that it gradually changes as one grid point approaches the other grid point as shown in FIG. 25, but the change is the data of the grid points on both sides. In that it is linear in that it only depends on That is, four lattice points Pij, Pi + 1j, Pij + 1, Pi + surrounding the point Puv to be interpolated
The area defined by 1j + 1 is divided into four sections by the interpolation point Puv, and the data at the diagonal positions is weighted by the area ratio. When this is represented by an equation, P = {(i + 1) -u} (j + 1) -v {Pij + {(i + 1) -u} v-j} Pij + 1 + {u-i} (j + 1) -v } Pi + 1j + {u-i} {v-j} Pi + 1j + 1. Note that i = [u] and j = [v].

【0069】二つのキュービック法とバイリニア法は一
方の格子点から他方の格子点へと近づくにつれて徐々に
変化していく点で共通するが、その変化状況が3次関数
的であるか1次関数的であるかが異なり、画像としてみ
たときの差異は大きい。図26はニアリスト法とキュー
ビック法とMキュービック法とバイリニア法における補
間結果の相違を理解しやすくするために二次元的に表し
た図である。同図において、横軸に位置を示し、縦軸に
補間関数を示している。むろん、この補間関数は上述し
た距離に応じた影響度合いに該当する。t=0、t=
1、t=2の位置に格子点が存在し、内挿点はt=0〜
1の位置となる。
The two cubic methods and the bilinear method are common in that they gradually change as one grid point approaches the other grid point, and the change state is a cubic function or a linear function. The difference is large when viewed as an image. FIG. 26 is a diagram represented two-dimensionally to make it easier to understand the difference between the interpolation results in the near-list method, the cubic method, the M-cubic method, and the bilinear method. In the figure, the horizontal axis indicates the position, and the vertical axis indicates the interpolation function. Of course, this interpolation function corresponds to the degree of influence according to the distance described above. t = 0, t =
1, a lattice point exists at the position of t = 2, and the interpolation point is t = 0 to t = 0.
1 position.

【0070】バイリニア法の場合、隣接する二点間(t
=0〜1)で直線的に変化するだけであるので境界をス
ムージングすることになり、画面の印象はぼやけてしま
う。すなわち、角部のスムージングと異なり、境界がス
ムージングされると、本来あるべき輪郭がなくなってし
まうし、写真においてはピントが甘くなってしまう。一
方、キュービックにおいては、隣接する二点間(t=0
〜1)においては山形の凸を描いて徐々に近接するのみ
ならず、さらに同二点間の外側(t=1〜2)において
下方に押し下げる効果をもつ。すなわち、エッジ部分は
段差が生じない程度に大きな高低差を有するように変化
され、写真においてはシャープさを増しつつ段差が生じ
ないという好適な影響を及ぼす。また、Mキュービック
ではよりシャープさを増す影響を及ぼす。なお、キュー
ビック法は演算処理量が大きく、補間倍率が大きくなっ
て補間すべき画素数が大きくなれば多大な演算処理量を
要することになる。
In the case of the bilinear method, between two adjacent points (t
= 0 to 1), the boundary is smoothed because it changes only linearly, and the impression of the screen is blurred. That is, unlike the smoothing of the corners, if the boundary is smoothed, the contour which should be originally lost disappears, and the focus becomes weak in a photograph. On the other hand, in cubic, between two adjacent points (t = 0
In (1) to (1), not only is it gradually approached by drawing a mountain-shaped protrusion, but also has the effect of pushing down downward on the outside (t = 1 to 2) between the two points. That is, the edge portion is changed so as to have a large difference in height so that no step is formed, and in a photograph, there is a favorable effect that no step is formed while increasing sharpness. In addition, M cubic has an effect of increasing sharpness. Note that the cubic method requires a large amount of arithmetic processing if the interpolation magnification is large and the number of pixels to be interpolated is large.

【0071】画質の面を重視すれば、キュービック法の
ような三次関数を選びそうであるが、コンピュータの処
理では速度と画質のバランスも大きい。すなわち、画質
の向上程度に応じて処理速度の低下具合の許容度が大き
くなるが、画質の向上が微量あるいは多少画質が向上落
ちるとしても処理速度が高速である方を好むという場合
もある。一方、以上のような補間関数の比較とともに具
体的な数値を示す図22、図23、図24を参照すると
より理解しやすい。図22の例を参照し、もともとのエ
ッジ部分である階調値「64」の画素(P3)と、階調
値「128」の画素(P4)と、階調値「192」の画
素(P5)という三点に注目してみると、単純に直線的
に連結する手法はバイリニア法に相当し、これに対して
キュービック法では具体的なS字カーブが形成されてい
るし、Mキュービック法ではそのS字カーブがより急峻
となっている。むろん、S字カーブの方向は画素の階調
値変化を急峻とするものであり、エッジが強調されてい
る。また、このエッジ画素に隣接する領域(P2〜P
3、P5〜P6)ではいわゆるアンダーシュートとオー
バーシュートが生じており、低い側に生じるアンダーシ
ュートと高い側に生じるオーバーシュートにより、エッ
ジ画素を挟む両側の高低差が大きくなる。従って、これ
らの二つの要因によってエッジが強調されることが理解
できる。
If emphasis is placed on the image quality, a cubic function like the cubic method is likely to be selected. However, in computer processing, the balance between speed and image quality is large. That is, although the degree of reduction in the processing speed increases with the degree of improvement in the image quality, there is a case where the higher processing speed is preferred even if the image quality is slightly or slightly reduced. On the other hand, it is easier to understand by referring to FIGS. 22, 23, and 24 showing specific numerical values along with the comparison of the interpolation functions as described above. Referring to the example of FIG. 22, a pixel (P3) having a gradation value of “64”, a pixel (P4) having a gradation value of “128”, and a pixel (P5) having a gradation value of “192”, which are the original edge portions. )), The simple linear connection method corresponds to the bilinear method, whereas the cubic method has a specific S-shaped curve, and the M cubic method The S-shaped curve is steeper. Needless to say, the direction of the S-shaped curve makes the gradation value change of the pixel sharp, and the edge is emphasized. Also, regions (P2 to P2) adjacent to the edge pixels
3, P5 to P6), so-called undershoots and overshoots occur. Due to the undershoots occurring on the lower side and the overshoots occurring on the higher side, the height difference on both sides sandwiching the edge pixel increases. Therefore, it can be understood that the edge is emphasized by these two factors.

【0072】画像がシャープに見えるか否かはこのS字
カーブにおける中央部分の傾斜角度が影響を与えること
も容易に理解できる。また、エッジの両側のアンダーシ
ュートとオーバーシュートによって生じる高低差も同様
に影響を与えるものといえる。すなわち、高次関数を利
用して画像データの変化態様を略S字型とし、画像デー
タの低い側から高い側に移行するときに一旦は最低値よ
りも減少してから上昇して最高値を超して再び減少させ
ている。そして、その際のアンダーシュートと傾斜度合
いとオーバーシュートとを上記高次関数のパラメータで
調整して画像の変化度合いを最適なものとさせている。
It can be easily understood that whether or not an image looks sharp depends on the inclination angle of the central portion of the S-shaped curve. In addition, it can be said that the height difference caused by the undershoot and the overshoot on both sides of the edge also has an effect. That is, using a higher-order function, the change mode of the image data is made substantially S-shaped, and when shifting from the lower side to the higher side of the image data, the image data temporarily decreases from the lowest value and then increases to increase the highest value. It is decreasing again. Then, the undershoot, the degree of inclination, and the overshoot at that time are adjusted by the parameters of the higher-order function to optimize the degree of change of the image.

【0073】一方、このような関係は図26に示す補間
関数においてt=0〜1の区間において傾斜が急となり
つつ、t=1〜2の区間において増加した重み分を打ち
消すように負の側へ引き寄せるカーブとなっている場合
に生じる。従って、シャープさを調整しようとする場合
には、補間関数においてシャープさの基準となる理想
的な傾斜を決定し、t=0〜1の区間において上記傾
斜を発生させるカーブを決定し、t=1〜2の区間に
おいてこのカーブによって増える重み付けを相殺するよ
うに負の側に引き寄せつつ、オーバーシュートとアンダ
ーシュートが生じやすいカーブを決定することによって
実現できる。むろん、この後の作業では特定されるカー
ブとなるように多次演算関数のパラメータを決定する
が、かかるパラメータの決定方法は極めて多様であるか
ら、実質的な意味でS字カーブにおける中央部分の傾斜
角度とアンダーシュート及びオーバーシュートを調整す
ることに他ならない。
On the other hand, in the interpolation function shown in FIG. 26, the slope becomes steeper in the interval from t = 0 to 1 and the negative side is increased so as to cancel the increased weight in the interval from t = 1 to 2. Occurs when the curve is drawn toward Therefore, when the sharpness is to be adjusted, an ideal slope serving as a reference for the sharpness is determined in the interpolation function, and a curve for generating the above slope is determined in a section from t = 0 to t = 1. This can be realized by determining a curve in which overshoot and undershoot are likely to occur while drawing to the negative side so as to offset the weighting increased by this curve in sections 1 and 2. Of course, in the subsequent work, the parameters of the multi-order operation function are determined so as to obtain the specified curve. However, since the determination methods of such parameters are extremely various, in a practical sense, the central portion of the S-shaped curve is determined. It is nothing less than adjusting the tilt angle and the undershoot and overshoot.

【0074】各補間処理には以上のような特性の違いが
あり、ステップST110にて画像の変化度合いが小さ
いと判断されたブロックでは、ステップST112にて
ニアリスト法の補間処理を実行するし、逆に変化度合い
が大きいと判断されたブロックでは、キュービック法や
Mキュービック法の補間処理を実行する。キュービック
法で補間処理をする場合には演算時間が多大となってし
まうものの、画像の変化度合いが小さいような部分では
ニアリスト法に切り替えるため、全体としての処理時間
は極めて低減する。特に、コンピュータグラフィックス
のように同色で一定領域を塗りつぶしてあるような場合
には一律にニアリスト法を実行しても全く問題ないの
で、処理時間は低減する。また、自然画であっても拡大
したときにジャギーが目立ちやすい部分というのは面積
比でいってもそれほど大きくないのが普通であるから、
このように画像の変化度合いを逐次切り替えることによ
って画質を劣化させることなく処理量を低減させること
ができる。
Each of the interpolation processes has the above-described difference in characteristics. In the block for which it is determined in step ST110 that the degree of change in the image is small, the interpolation process of the near-list method is executed in step ST112. Conversely, for a block determined to have a large degree of change, interpolation processing of the cubic method or the M cubic method is executed. When the interpolation process is performed by the cubic method, the calculation time is long. However, since the switching to the near-list method is performed in a portion where the degree of change of the image is small, the processing time as a whole is extremely reduced. In particular, when a certain area is painted in the same color as in computer graphics, there is no problem even if the near-list method is executed uniformly, so that the processing time is reduced. Also, even if it is a natural image, the part where the jaggy is conspicuous when enlarged is usually not so large even if it is the area ratio,
Thus, by sequentially switching the degree of change of the image, the processing amount can be reduced without deteriorating the image quality.

【0075】本実施形態においては、フラグによって二
種類ある補間処理のいずれかを実行するようにしている
が、画素の階調値の変化度合いに対して段階的に対応す
る複数の補間処理を実行するようにしても良い。また、
図27に示すように、二つの補間処理を重ねて実行する
こととしてその拡大倍率を画像の変化度合いに対応させ
るようにしても良い。例えば、補間倍率が5倍であると
して画像の変化度合いが小さめであればニアリスト法で
5倍に補間処理するし、画像の変化度合いが大きめであ
ればキュービック法で5倍の補間処理する。これらの場
合は上述した実施形態と同様であるが、画像の変化度合
いが中間的な値である場合にはキュービック法で2倍に
補間処理し、残りの2.5倍をニアリスト法で補間処理
する。このようにして二つの補間処理でありながら実質
的には画像の変化度合いに応じた複数の補間処理を選択
できることになる。
In the present embodiment, one of the two types of interpolation processing is executed according to the flag. However, a plurality of interpolation processing steps corresponding to the degree of change in the gradation value of the pixel are executed. You may do it. Also,
As shown in FIG. 27, the two interpolation processes may be performed in a superimposed manner, and the magnification may be made to correspond to the degree of change in the image. For example, assuming that the interpolation magnification is five times, if the degree of change of the image is small, the interpolation processing is performed five times by the nearlist method. If the degree of change of the image is large, the interpolation processing is performed five times by the cubic method. In these cases, it is the same as the above-described embodiment, but when the degree of change of the image is an intermediate value, the interpolation processing is performed twice by the cubic method, and the remaining 2.5 times is interpolated by the near-list method. To process. In this way, although two interpolation processes are performed, a plurality of interpolation processes can be substantially selected according to the degree of change of the image.

【0076】なお、キュービック法のように補間処理の
演算量が大きいものについては、あえて補間倍率を2倍
というような整数倍とするメリットがある。図28は水
平方向と垂直方向に2倍に補間する処理例を示してい
る。予め、補間後の画像データについての変数領域を確
保するとして、整数倍の補間処理であれば元画像の画像
データは整数倍した座標値に対応する画素の画像データ
となる。図に示す例で言えば、旧座標値(0,0)は新
座標値(0,0)に対応し、旧座標値(1,0)は新座
標値(2,0)に対応し、旧座標値(0,1)は新座標
値(0,2)に対応し、旧座標値(1,1)は新座標値
(2,2)に対応するということである。
In the case of the cubic method which requires a large amount of interpolation processing, there is a merit that the interpolation magnification is intentionally set to an integral multiple such as twice. FIG. 28 shows an example of processing for interpolating twice in the horizontal and vertical directions. Assuming that a variable area for the interpolated image data is secured in advance, if the interpolation processing is an integer multiple, the image data of the original image is the image data of the pixel corresponding to the coordinate value multiplied by the integer. In the example shown in the figure, the old coordinate value (0,0) corresponds to the new coordinate value (0,0), the old coordinate value (1,0) corresponds to the new coordinate value (2,0), The old coordinate value (0, 1) corresponds to the new coordinate value (0, 2), and the old coordinate value (1, 1) corresponds to the new coordinate value (2, 2).

【0077】すなわち、補間処理自体は任意の倍率で実
行可能であるにしても、整数倍の補間処理だけを実行す
るようにすると、補間すべき画素が減り、処理の高速化
を図ることができる。このように、画像入力デバイスを
有するとともに画像出力デバイスを有するコンピュータ
システム10において、プリンタドライバ12cはステ
ップST102にて元画像データを入力した後、ステッ
プST104〜108にて画像の変化度合いをその周囲
の画素の階調値の変化度合いの評価も利用しながら検出
してフラグを設定しておき、ステップST110にて同
フラグを参照することにより、画像の変化度合いの小さ
いブロックではステップST112にてニアリスト法に
よる補間処理を実行するし、画像の変化度合いの大きい
ブロックではステップST114にてキュービック法に
よる補間処理を実行するようにしたため、補間処理の判
定を煩雑にすることなく、画質を劣化させない範囲でで
きる限りニアリスト法を実行するように制御され、自動
的に最適な補間処理を選択しつつ演算処理量を低減させ
る。
That is, even though the interpolation processing itself can be executed at an arbitrary magnification, if only the integral multiple interpolation processing is executed, the number of pixels to be interpolated is reduced, and the processing can be sped up. . As described above, in the computer system 10 having both the image input device and the image output device, the printer driver 12c inputs the original image data in step ST102, and then, in steps ST104 to ST108, determines the degree of change in the image around the original image data. By detecting and setting a flag while using the evaluation of the degree of change in the gradation value of the pixel, and referring to the flag in step ST110, a block having a small degree of change in the image is referred to as a near-list in step ST112. Interpolation processing is performed, and the interpolation processing by the cubic method is performed in step ST114 for a block having a large degree of change in the image, so that the determination of the interpolation processing is not complicated and the image quality is not degraded. Implement near-list methods whenever possible It is your, reduces the amount of computation while automatically select the optimum interpolation process.

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

【図1】本発明の一実施形態にかかる画像データ補間装
置のクレーム対応図である。
FIG. 1 is a diagram corresponding to a claim of an image data interpolation device according to an embodiment of the present invention.

【図2】同画像データ補間装置の具体的ハードウェアの
ブロック図である。
FIG. 2 is a block diagram of specific hardware of the image data interpolation device.

【図3】本発明の画像データ補間装置の他の適用例を示
す概略図である。
FIG. 3 is a schematic diagram showing another application example of the image data interpolation device of the present invention.

【図4】本発明の画像データ補間装置の他の適用例を示
す概略図である。
FIG. 4 is a schematic diagram showing another application example of the image data interpolation device of the present invention.

【図5】本発明の画像データ補間装置の他の適用例を示
す概略図である。
FIG. 5 is a schematic diagram showing another application example of the image data interpolation device of the present invention.

【図6】本発明の画像データ補間装置の他の適用例を示
す概略図である。
FIG. 6 is a schematic diagram showing another application example of the image data interpolation device of the present invention.

【図7】本発明の画像データ補間装置におけるフローチ
ャートである。
FIG. 7 is a flowchart in the image data interpolation device of the present invention.

【図8】エッジ検出フィルタの一例を示す図である。FIG. 8 is a diagram illustrating an example of an edge detection filter.

【図9】エッジ検出フィルタの他の一例を示す図であ
る。
FIG. 9 is a diagram illustrating another example of the edge detection filter.

【図10】エッジ量の分布としきい値との関係を示す図
である。
FIG. 10 is a diagram illustrating a relationship between a distribution of an edge amount and a threshold.

【図11】注目画素とフラグの設定判断で対象とする画
素の関係を示す図である。
FIG. 11 is a diagram illustrating a relationship between a pixel of interest and a pixel targeted for flag setting determination.

【図12】エッジ量とフラグの設定状況を示す図であ
る。
FIG. 12 is a diagram illustrating a setting state of an edge amount and a flag.

【図13】既存の画素で形成されるブロックと補間する
画素との関係を示す図である。
FIG. 13 is a diagram illustrating a relationship between blocks formed by existing pixels and pixels to be interpolated.

【図14】注目画素を基準としてブロックを形成する場
合を示す図である。
FIG. 14 is a diagram illustrating a case where a block is formed based on a target pixel.

【図15】フラグの状況と領域の対応を示す図である。FIG. 15 is a diagram showing a correspondence between a flag status and an area.

【図16】補間する画素でブロックを形成する場合を示
す図である。
FIG. 16 is a diagram illustrating a case where a block is formed by pixels to be interpolated.

【図17】ニアリスト法の概念図である。FIG. 17 is a conceptual diagram of a near-list method.

【図18】ニアリスト法で各格子点のデータが移行され
る状況を示す図である。
FIG. 18 is a diagram showing a situation in which data of each grid point is transferred by the near list method.

【図19】ニアリスト法の補間前の状況を示す概略図で
ある。
FIG. 19 is a schematic diagram showing a situation before interpolation in a near-list method.

【図20】ニアリスト法の補間後の状況を示す概略図で
ある。
FIG. 20 is a schematic diagram showing a situation after interpolation in the near-list method.

【図21】キュービック法の概念図である。FIG. 21 is a conceptual diagram of the cubic method.

【図22】キュービック法の具体的適用時におけるデー
タの変化状況を示す図である。
FIG. 22 is a diagram showing a data change situation when the cubic method is specifically applied.

【図23】キュービック法の具体的適用例を示す図であ
る。
FIG. 23 is a diagram showing a specific application example of the cubic method.

【図24】Mキュービック法の具体的適用例を示す図で
ある。
FIG. 24 is a diagram showing a specific application example of the M cubic method.

【図25】バイリニア法の概念図である。FIG. 25 is a conceptual diagram of the bilinear method.

【図26】補間関数の変化状況を示す図である。FIG. 26 is a diagram illustrating a change situation of an interpolation function.

【図27】画像の変化度合いに応じて複数の補間処理の
補間倍率を分配する関係を示す図である。
FIG. 27 is a diagram illustrating a relationship in which interpolation magnifications of a plurality of interpolation processes are distributed according to a degree of change in an image.

【図28】整数倍の補間処理を示す概略図である。FIG. 28 is a schematic diagram showing an integer multiple interpolation process.

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

10…コンピュータシステム 11a…スキャナ 11a2…スキャナ 11b…デジタルスチルカメラ 11b1…デジタルスチルカメラ 11b2…デジタルスチルカメラ 11c…ビデオカメラ 12…コンピュータ本体 12a…オペレーティングシステム 12b…ディスプレイドライバ 12b…ドライバ 12c…プリンタドライバ 12d…アプリケーション 13a…フロッピーディスクドライブ 13b…ハードディスク 13c…CD−ROMドライブ 14a…モデム 14a2…モデム 15a…キーボード 15b…マウス 17a…ディスプレイ 17a1…ディスプレイ 17b…カラープリンタ 17b1…カラープリンタ 17b2…カラープリンタ 18a…カラーファクシミリ装置 18b…カラーコピー装置 10 Computer system 11a Scanner 11a2 Scanner 11b Digital still camera 11b1 Digital still camera 11b2 Digital still camera 11c Video camera 12 Computer body 12a Operating system 12b Display driver 12b Driver 12c Printer driver 12d Application 13a Floppy disk drive 13b Hard disk 13c CD-ROM drive 14a Modem 14a2 Modem 15a Keyboard 15b Mouse 17a Display 17a1 Display 17b Color printer 17b1 Color printer 17b2 Color printer 18a Color facsimile machine 18b: color copy machine

───────────────────────────────────────────────────── フロントページの続き (58)調査した分野(Int.Cl.7,DB名) H04N 1/387 - 1/393 G06T 3/40 ──────────────────────────────────────────────────続 き Continued on the front page (58) Field surveyed (Int.Cl. 7 , DB name) H04N 1/387-1/393 G06T 3/40

Claims (24)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 画像をドットマトリクス状の画素で表現
した画像データを取得する画像データ取得手段と、 上記画像データに基づいて各画素の階調値の変化度合い
を評価するにあたり、当該画素の階調値の変化度合いと
近隣の画素の階調値の変化度合いのうちいずれかが所定
の条件に合致すると判断されれば、当該画素については
同条件が合致するものとして上記変化度合いを評価する
画素変化度合評価手段と、 上記画像データにおける構成画素数を増やす補間処理を
行なうにあたり上記所定の条件に対応した複数の補間処
理を実行可能な画素補間手段と、 上記画素変化度合評価手段の評価に基づいて上記複数の
補間処理から選択して上記画素補間手段を実行させる補
間処理選択手段とを具備することを特徴とする画像デー
タ補間装置。
An image data acquisition unit for acquiring image data representing an image by pixels in a dot matrix; and evaluating a gradation level of each pixel based on the image data. If it is determined that any one of the degree of change in the tonal value and the degree of change in the gradation value of the neighboring pixel matches a predetermined condition, the pixel for which the above-mentioned degree of change is evaluated is determined as that the pixel meets the condition. A change degree estimating means, a pixel interpolating means capable of executing a plurality of interpolation processes corresponding to the predetermined condition in performing the interpolation processing for increasing the number of constituent pixels in the image data, and based on the evaluation of the pixel change degree estimating means. And an interpolation processing selecting means for executing the pixel interpolation means by selecting from the plurality of interpolation processing.
【請求項2】 上記請求項1に記載の画像データ補間装
置において、上記画素変化度合評価手段は、各画素の明
るさの階調値を求めるとともに周囲の画素の明るさの階
調値との比較で上記変化度合いを算出することを特徴と
する画像データ補間装置。
2. The image data interpolating apparatus according to claim 1, wherein said pixel change degree evaluation means obtains a gradation value of brightness of each pixel and calculates a gradation value of brightness of surrounding pixels. An image data interpolation apparatus, wherein the degree of change is calculated by comparison.
【請求項3】 上記請求項1または請求項2のいずれか
に記載の画像データ補間装置において、画素変化度合評
価手段は、各画素の階調値の変化度合いと所定のしきい
値とを比較し、当該画素の階調値の変化度合いの方が大
きいと判断されるときに上記所定の条件に合致すると評
価し、上記補間処理選択手段は、補間される領域を取り
囲むすべての画素において上記変化度合いが大きいと評
価されているときに変化度合いの大きい画素に適用する
補間処理を選択することを特徴とする画像データ補間装
置。
3. The image data interpolation device according to claim 1, wherein the pixel change degree evaluating means compares the change degree of the gradation value of each pixel with a predetermined threshold value. When it is determined that the degree of change in the gradation value of the pixel is larger, it is evaluated that the predetermined condition is satisfied, and the interpolation processing selecting means performs the above-described change in all pixels surrounding the area to be interpolated. An image data interpolating apparatus which selects an interpolation process to be applied to a pixel having a large change degree when the degree is evaluated to be large.
【請求項4】 上記請求項1〜請求項3のいずれかに記
載の画像データ補間装置において、上記画素補間手段
は、変化度合いの小さい領域で適用して好適な補間処理
として、補間処理前の最近隣画素の画像データを新たな
構成画素の画像データに利用する補間処理を実行可能で
あることを特徴とする画像データ補間装置。
4. The image data interpolating apparatus according to claim 1, wherein the pixel interpolating means performs a pre-interpolation process as an interpolation process suitable for an area having a small degree of change. An image data interpolation device capable of executing an interpolation process using image data of a nearest pixel as image data of a new constituent pixel.
【請求項5】 上記請求項1〜請求項4のいずれかに記
載の画像データ補間装置において、上記画素補間手段
は、変化度合いの大きい領域で適用して好適な補間処理
として補間する画素の階調値がなだらかに変化するよう
に周囲の画素の画像データから演算処理で補間画素の画
像データを算出する補間処理を実行可能であることを特
徴とする画像データ補間装置。
5. The image data interpolating apparatus according to claim 1, wherein said pixel interpolating means is applied to an area having a large degree of change to perform interpolation of a pixel to be interpolated as a suitable interpolation process. An image data interpolating apparatus capable of executing an interpolation process of calculating image data of an interpolated pixel by arithmetic processing from image data of surrounding pixels so that a tone value changes smoothly.
【請求項6】 上記請求項5に記載の画像データ補間装
置において、上記画素補間手段は、高次関数を利用して
画像データの変化態様を略S字型とし、画像データの低
い側から高い側に移行するときに一旦は最低値よりも減
少してから上昇して最高値を超して再び減少させ、その
際のアンダーシュートと傾斜度合いとオーバーシュート
とを上記高次関数のパラメータで調整して画像の変化度
合いを最適なものとさせることを特徴とする画像データ
補間装置。
6. The image data interpolating apparatus according to claim 5, wherein the pixel interpolating means uses a higher-order function to change the image data in a substantially S-shaped manner, and changes the image data from a lower side to a higher side. When moving to the side, once decrease below the minimum value, rise to exceed the maximum value and decrease again, and adjust the undershoot, inclination degree and overshoot at that time with the parameters of the higher-order function above An image data interpolating device that optimizes the degree of change of the image.
【請求項7】 上記請求項1〜請求項6のいずれかに記
載の画像データ補間装置において、上記補間処理選択手
段は、上記画素変化度合評価手段によって評価された画
素の階調値の変化度合いに基づいて画素単位で上記補間
処理を選択して実行させることを特徴とする画像データ
補間装置。
7. The image data interpolating apparatus according to claim 1, wherein said interpolation processing selecting means includes: a degree of change in a gradation value of a pixel evaluated by said pixel change degree evaluating means. An image data interpolating apparatus which selects and executes the above-mentioned interpolation processing in units of pixels based on.
【請求項8】 上記請求項1〜請求項6のいずれかに記
載の画像データ補間装置において、上記補間処理選択手
段は、上記画素変化度合評価手段によって評価された画
素の階調値の変化度合いに基づいて複数画素からなる所
定の小領域毎に上記補間処理を選択して実行させること
を特徴とする画像データ補間装置。
8. The image data interpolating apparatus according to claim 1, wherein said interpolation processing selecting means includes: a degree of change in a gradation value of a pixel evaluated by said pixel change degree evaluating means. An image data interpolating apparatus which selects and executes the above-mentioned interpolation processing for each predetermined small area composed of a plurality of pixels based on the image data.
【請求項9】 画像をドットマトリクス状の画素で表現
した画像データについてその構成画素数を増やす画像デ
ータ補間方法であって、 上記画像データを取得する工程と、 上記画像データに基づいて各画素の階調値の変化度合い
を評価するにあたり、当該画素の階調値の変化度合いと
近隣の画素の階調値の変化度合いのうちいずれかが所定
の条件に合致すると判断されれば、当該画素については
同条件が合致するものとして上記変化度合いを評価する
工程と、 上記評価に基づいて補間処理から選択する工程と、 選択された補間処理で上記画像データにおける構成画素
数を増やす工程とを具備することを特徴とする画像デー
タ補間方法。
9. An image data interpolation method for increasing the number of constituent pixels of image data in which an image is represented by pixels in a dot matrix, comprising: a step of acquiring the image data; In evaluating the degree of change in the gradation value, if it is determined that any of the degree of change in the gradation value of the pixel and the degree of change in the gradation value of a neighboring pixel matches a predetermined condition, Comprises a step of evaluating the degree of change assuming that the same condition is met, a step of selecting from interpolation processing based on the evaluation, and a step of increasing the number of constituent pixels in the image data by the selected interpolation processing. A method for interpolating image data, comprising:
【請求項10】 上記請求項9に記載の画像データ補間
方法において、画素の階調値の変化度合いを評価するに
あたり、各画素の明るさの階調値を求めるとともに周囲
の画素の明るさの階調値との比較で上記変化度合いを算
出することを特徴とする画像データ補間方法。
10. The image data interpolation method according to claim 9, wherein when evaluating the degree of change in the gradation value of a pixel, the gradation value of the brightness of each pixel is determined and the brightness of the surrounding pixels is determined. An image data interpolation method, wherein the degree of change is calculated by comparing with a gradation value.
【請求項11】 上記請求項9または請求項10のいず
れかに記載の画像データ補間方法において、各画素の階
調値の変化度合いと所定のしきい値とを比較し、当該画
素の階調値の変化度合いの方が大きいと判断されるとき
に上記所定の条件に合致すると評価し、補間される領域
を取り囲むすべての画素において上記変化度合いが大き
いと評価されているときに変化度合いの大きい画素に適
用する補間処理を選択することを特徴とする画像データ
補間方法。
11. The image data interpolation method according to claim 9, wherein the degree of change of the gradation value of each pixel is compared with a predetermined threshold value, and the gradation of the pixel is determined. When the degree of change of the value is determined to be larger, it is evaluated that the predetermined condition is met, and when the degree of change is evaluated to be larger in all pixels surrounding the region to be interpolated, the degree of change is larger. An image data interpolation method comprising selecting an interpolation process to be applied to pixels.
【請求項12】 上記請求項9〜請求項11のいずれか
に記載の画像データ補間方法において、補間処理前の最
近隣画素の画像データを新たな構成画素の画像データに
利用する補間処理を実行可能であることを特徴とする画
像データ補間方法。
12. The image data interpolation method according to any one of claims 9 to 11, wherein the image data of the nearest neighbor pixel before the interpolation processing is used as image data of a new constituent pixel. An image data interpolation method characterized by being possible.
【請求項13】 上記請求項9〜請求項12のいずれか
に記載の画像データ補間方法において、変化度合いの大
きい領域で適用して好適な補間処理として補間する画素
の階調値がなだらかに変化するように周囲の画素の画像
データから演算処理で補間画素の画像データを算出する
補間処理を実行可能であることを特徴とする画像データ
補間方法。
13. The image data interpolation method according to any one of claims 9 to 12, wherein a gradation value of a pixel to be interpolated as a suitable interpolation process applied to an area having a large degree of change gradually changes. An image data interpolation method, which can execute an interpolation process of calculating image data of an interpolated pixel from image data of peripheral pixels by arithmetic processing so as to perform image data interpolation.
【請求項14】 上記請求項13に記載の画像データ補
間方法において、高次関数を利用して画像データの変化
態様を略S字型とし、画像データの低い側から高い側に
移行するときに一旦は最低値よりも減少してから上昇し
て最高値を超して再び減少させ、その際のアンダーシュ
ートと傾斜度合いとオーバーシュートとを上記高次関数
のパラメータで調整して画像の変化度合いを最適なもの
とさせることを特徴とする画像データ補間方法。
14. The image data interpolation method according to claim 13, wherein the change mode of the image data is made substantially S-shaped using a higher-order function, and the image data is shifted from a lower side to a higher side of the image data. Once decreased from the lowest value, then increased to exceed the highest value and decreased again, and the degree of change in the image by adjusting the undershoot, the degree of inclination, and the overshoot at that time with the parameters of the higher-order function The image data interpolation method characterized in that:
【請求項15】 上記請求項9〜請求項14のいずれか
に記載の画像データ補間方法において、評価された画素
の階調値の変化度合いに基づいて画素単位で上記補間処
理を選択して実行させることを特徴とする画像データ補
間方法。
15. The image data interpolation method according to claim 9, wherein the interpolation processing is selected and executed in pixel units based on the degree of change in the gradation value of the evaluated pixel. An image data interpolation method characterized by performing the following.
【請求項16】 上記請求項9〜請求項14のいずれか
に記載の画像データ補間方法において、評価された画素
の階調値の変化度合いに基づいて複数画素からなる所定
の小領域毎に上記補間処理を選択して実行させることを
特徴とする画像データ補間方法。
16. The image data interpolation method according to any one of claims 9 to 14, wherein the image data interpolation method includes the steps of: An image data interpolation method characterized by selecting and executing an interpolation process.
【請求項17】 画像をドットマトリクス状の画素で表
現した画像データについてその構成画素数を増やすよう
にコンピュータに補間処理を実行させる画像データ補間
プログラムを記録した媒体であって、 上記画像データを取得するステップと、 上記画像データに基づいて各画素の階調値の変化度合い
を評価するにあたり、当該画素の階調値の変化度合いと
近隣の画素の階調値の変化度合いのうちいずれかが所定
の条件に合致すると判断されれば、当該画素については
同条件が合致するものとして上記変化度合いを評価する
ステップと、 上記評価に基づいて補間処理から選択するステップと、 選択された補間処理で上記画像データにおける構成画素
数を増やすステップとを具備することを特徴とする画像
データ補間プログラムを記録した媒体。
17. A medium recording an image data interpolation program for causing a computer to execute an interpolation process so as to increase the number of constituent pixels of image data in which an image is represented by pixels in a dot matrix. And evaluating the degree of change in the gradation value of each pixel based on the image data, wherein one of the degree of change in the gradation value of the pixel and the degree of change in the gradation value of a neighboring pixel is determined. If it is determined that the condition is satisfied, the step of evaluating the degree of change assuming that the pixel satisfies the same condition; a step of selecting from the interpolation processing based on the evaluation; Increasing the number of constituent pixels in the image data. .
【請求項18】 上記請求項17に記載の画像データ補
間プログラムを記録した媒体において、画素の階調値の
変化度合いを評価するにあたり、各画素の明るさの階調
値を求めるとともに周囲の画素の明るさの階調値との比
較で上記変化度合いを算出することを特徴とする画像デ
ータ補間プログラムを記録した媒体。
18. A medium in which the image data interpolation program according to claim 17 is recorded, when evaluating the degree of change in the gradation value of a pixel, the gradation value of the brightness of each pixel is determined and the surrounding pixels are evaluated. A medium for recording the image data interpolation program, wherein the degree of change is calculated by comparing the brightness with a gradation value of the brightness.
【請求項19】 上記請求項17または請求項18のい
ずれかに記載の画像データ補間プログラムを記録した媒
体において、各画素の階調値の変化度合いと所定のしき
い値とを比較し、当該画素の階調値の変化度合いの方が
大きいと判断されるときに上記所定の条件に合致すると
評価し、補間される領域を取り囲むすべての画素におい
て上記変化度合いが大きいと評価されているときに変化
度合いの大きい画素に適用する補間処理を選択すること
を特徴とする画像データ補間プログラムを記録した媒
体。
19. A medium in which the image data interpolation program according to claim 17 or 18 is recorded, wherein a degree of change of a gradation value of each pixel is compared with a predetermined threshold value. When it is determined that the degree of change in the gradation value of the pixel is larger, it is evaluated that the predetermined condition is met, and when it is evaluated that the degree of change is larger in all the pixels surrounding the area to be interpolated. A medium in which an image data interpolation program is recorded, wherein an interpolation process to be applied to pixels having a large degree of change is selected.
【請求項20】 上記請求項17〜請求項19のいずれ
かに記載の画像データ補間プログラムを記録した媒体に
おいて、補間処理前の最近隣画素の画像データを新たな
構成画素の画像データに利用する補間処理を実行可能で
あることを特徴とする画像データ補間プログラムを記録
した媒体。
20. A medium in which an image data interpolation program according to any one of claims 17 to 19 is recorded, wherein image data of a nearest pixel before interpolation processing is used as image data of a new constituent pixel. A medium recording an image data interpolation program, which is capable of executing an interpolation process.
【請求項21】 上記請求項17〜請求項20のいずれ
かに記載の画像データ補間プログラムを記録した媒体に
おいて、変化度合いの大きい領域で適用して好適な補間
処理として補間する画素の階調値がなだらかに変化する
ように周囲の画素の画像データから演算処理で補間画素
の画像データを算出する補間処理を実行可能であること
を特徴とする画像データ補間プログラムを記録した媒
体。
21. A gradation value of a pixel to be interpolated as a suitable interpolation process by applying the image data interpolation program according to any one of claims 17 to 20 to a medium having a large degree of change. A medium storing an image data interpolation program, which is capable of executing an interpolation process of calculating image data of an interpolated pixel by arithmetic processing from image data of surrounding pixels so that the image data changes smoothly.
【請求項22】 上記請求項21に記載の画像データ補
間プログラムを記録した媒体において、高次関数を利用
して画像データの変化態様を略S字型とし、画像データ
の低い側から高い側に移行するときに一旦は最低値より
も減少してから上昇して最高値を超して再び減少させ、
その際のアンダーシュートと傾斜度合いとオーバーシュ
ートとを上記高次関数のパラメータで調整して画像の変
化度合いを最適なものとさせることを特徴とする画像デ
ータ補間プログラムを記録した媒体。
22. A medium on which the image data interpolation program according to claim 21 is recorded, wherein a change mode of the image data is made substantially S-shaped by using a higher-order function, and the image data is changed from a lower side to a higher side of the image data. At the time of transition, once decrease from the lowest value, then rise and exceed the highest value, decrease again,
A medium in which an image data interpolation program is recorded, wherein the undershoot, the degree of inclination, and the overshoot are adjusted by the parameters of the higher-order function to optimize the degree of image change.
【請求項23】 上記請求項17〜請求項22のいずれ
かに記載の画像データ補間プログラムを記録した媒体に
おいて、評価された画素の階調値の変化度合いに基づい
て画素単位で上記補間処理を選択して実行させることを
特徴とする画像データ補間プログラムを記録した媒体。
23. A medium in which the image data interpolation program according to any one of claims 17 to 22 is recorded, wherein the interpolation processing is performed on a pixel-by-pixel basis based on the degree of change in the gradation value of the evaluated pixel. A medium storing an image data interpolation program characterized by being selectively executed.
【請求項24】 上記請求項17〜請求項22のいずれ
かに記載の画像データ補間プログラムを記録した媒体に
おいて、評価された画素の階調値の変化度合いに基づい
て複数画素からなる所定の小領域毎に上記補間処理を選
択して実行させることを特徴とする画像データ補間プロ
グラムを記録した媒体。
24. A medium on which the image data interpolation program according to any one of claims 17 to 22 is recorded, wherein a predetermined small pixel composed of a plurality of pixels is determined based on a degree of change in the gradation value of the evaluated pixel. A medium on which an image data interpolation program is recorded, wherein the interpolation processing is selected and executed for each area.
JP10093741A 1998-04-06 1998-04-06 Image data interpolation apparatus, image data interpolation method, and medium recording image data interpolation program Expired - Fee Related JP3045134B2 (en)

Priority Applications (6)

Application Number Priority Date Filing Date Title
JP10093741A JP3045134B2 (en) 1998-04-06 1998-04-06 Image data interpolation apparatus, image data interpolation method, and medium recording image data interpolation program
US09/280,704 US6760489B1 (en) 1998-04-06 1999-03-30 Apparatus and method for image data interpolation and medium on which image data interpolation program is recorded
DE69920791T DE69920791T2 (en) 1998-04-06 1999-04-06 Apparatus and method for interpolating image data
EP99302675A EP0949585B1 (en) 1998-04-06 1999-04-06 Apparatus and method for image data interpolation
EP03077727A EP1369818A1 (en) 1998-04-06 1999-04-06 Apparatus and method for image data interpolation
AT99302675T ATE278994T1 (en) 1998-04-06 1999-04-06 DEVICE AND METHOD FOR INTERPOLATION OF IMAGE DATA

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP10093741A JP3045134B2 (en) 1998-04-06 1998-04-06 Image data interpolation apparatus, image data interpolation method, and medium recording image data interpolation program

Related Child Applications (1)

Application Number Title Priority Date Filing Date
JP2000010232A Division JP4009805B2 (en) 1998-04-06 2000-01-14 Image data interpolation apparatus, image data interpolation method, and medium on which image data interpolation program is recorded

Publications (2)

Publication Number Publication Date
JPH11298721A JPH11298721A (en) 1999-10-29
JP3045134B2 true JP3045134B2 (en) 2000-05-29

Family

ID=14090851

Family Applications (1)

Application Number Title Priority Date Filing Date
JP10093741A Expired - Fee Related JP3045134B2 (en) 1998-04-06 1998-04-06 Image data interpolation apparatus, image data interpolation method, and medium recording image data interpolation program

Country Status (1)

Country Link
JP (1) JP3045134B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7466871B2 (en) 2003-12-16 2008-12-16 Seiko Epson Corporation Edge generation method, edge generation device, medium recording edge generation program, and image processing method
US7826686B2 (en) 2005-03-18 2010-11-02 Seiko Epson Corporation Pixel interpolation apparatus and pixel interpolation program product

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7088052B2 (en) * 2001-09-07 2006-08-08 Semiconductor Energy Laboratory Co., Ltd. Light emitting device and method of driving the same
JP4617825B2 (en) * 2003-10-22 2011-01-26 ソニー株式会社 Data processing apparatus, data processing method, program, and recording medium
JP5014514B2 (en) * 2009-07-17 2012-08-29 三菱電機株式会社 Image processing device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7466871B2 (en) 2003-12-16 2008-12-16 Seiko Epson Corporation Edge generation method, edge generation device, medium recording edge generation program, and image processing method
US7826686B2 (en) 2005-03-18 2010-11-02 Seiko Epson Corporation Pixel interpolation apparatus and pixel interpolation program product

Also Published As

Publication number Publication date
JPH11298721A (en) 1999-10-29

Similar Documents

Publication Publication Date Title
EP0949585B1 (en) Apparatus and method for image data interpolation
JP3882651B2 (en) Image processing apparatus and program
JP3075269B2 (en) Image data interpolation method, image data interpolation device, and medium recording image data interpolation program
JP4058583B2 (en) PRINT CONTROL DEVICE, PRINT CONTROL METHOD, AND MEDIUM RECORDING PRINT CONTROL PROGRAM
JP2009171560A (en) Image processing apparatus, image processing method, program for executing image processing method, and storage medium
JP3045134B2 (en) Image data interpolation apparatus, image data interpolation method, and medium recording image data interpolation program
JP2001169098A (en) A medium recording an output image data modification program, an output image data modification method, an output image data modification apparatus, a medium recording an image data reduction program, an image data reduction method, an image data reduction apparatus, and recording an image data modification program. Medium, image data retouching method and image data retouching device
JP4009805B2 (en) Image data interpolation apparatus, image data interpolation method, and medium on which image data interpolation program is recorded
JP3173496B2 (en) Image data interpolation apparatus, computer for image data interpolation processing, image data interpolation method, and medium recording image data interpolation program
JP3201338B2 (en) Image data interpolation apparatus, image data interpolation method, and medium recording image data interpolation program
JP3478498B2 (en) Object pixel determination device, object pixel determination method, medium recording object pixel determination program, and object pixel determination program
JP4450250B2 (en) Image data interpolation apparatus, computer for image data interpolation processing, image data interpolation method, and medium on which image data interpolation program is recorded
JP4171902B2 (en) Object pixel extraction device, object pixel extraction method, medium on which object pixel extraction program is recorded, and object pixel extraction program
JP3063754B2 (en) Image data interpolation device, image data interpolation method, medium recording image data interpolation program
JP2962310B1 (en) Image processing apparatus, image processing method, and medium recording image processing program
JP4115073B2 (en) Image processing apparatus and image processing method
JP2000076430A (en) Image data interpolation device, image data interpolation method, and medium recording image data interpolation program
JP3462423B2 (en) Medium recording print control program, print control device, and print control method
JP2000076430A5 (en)
JP3815514B2 (en) High-speed pixel interpolation method and image processing apparatus for enlarged image
JPH07262351A (en) Image processing apparatus and control method thereof
JP4081628B2 (en) Image data interpolation method, image data interpolation device, and computer readable recording medium recording image data interpolation program
JP2008059307A (en) Image processing apparatus and image processing program
JP2001186343A (en) IMAGE PROCESSING DEVICE, IMAGE PROCESSING METHOD, AND COMPUTER-READABLE RECORDING MEDIUM RECORDING PROGRAM FOR CAUSING COMPUTER TO EXECUTE THE METHOD
JP2008017526A (en) Interpolation of image data

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: 20000215

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080317

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090317

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090317

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100317

Year of fee payment: 10

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100317

Year of fee payment: 10

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110317

Year of fee payment: 11

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120317

Year of fee payment: 12

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120317

Year of fee payment: 12

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130317

Year of fee payment: 13

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20140317

Year of fee payment: 14

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

LAPS Cancellation because of no payment of annual fees