JP3939091B2 - Image data interpolation apparatus, method and recording medium - Google Patents

Image data interpolation apparatus, method and recording medium Download PDF

Info

Publication number
JP3939091B2
JP3939091B2 JP2000396434A JP2000396434A JP3939091B2 JP 3939091 B2 JP3939091 B2 JP 3939091B2 JP 2000396434 A JP2000396434 A JP 2000396434A JP 2000396434 A JP2000396434 A JP 2000396434A JP 3939091 B2 JP3939091 B2 JP 3939091B2
Authority
JP
Japan
Prior art keywords
range
interpolation method
interpolation
pixel
pixels
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
JP2000396434A
Other languages
Japanese (ja)
Other versions
JP2002199207A (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.)
Ricoh Co Ltd
Original Assignee
Ricoh Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP2000396434A priority Critical patent/JP3939091B2/en
Priority to US10/015,688 priority patent/US7006695B2/en
Publication of JP2002199207A publication Critical patent/JP2002199207A/en
Priority to US11/313,810 priority patent/US7231092B2/en
Application granted granted Critical
Publication of JP3939091B2 publication Critical patent/JP3939091B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformations in the plane of the image
    • G06T3/10Selection of transformation methods according to the characteristics of the input images

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Facsimile Image Signal Circuits (AREA)
  • Color Image Communication Systems (AREA)
  • Compression Of Band Width Or Redundancy In Fax (AREA)
  • Image Processing (AREA)
  • Television Systems (AREA)
  • Editing Of Facsimile Originals (AREA)

Description

【0001】
【発明の属する技術分野】
本発明は、カラー画像における画像データの補間装置、方法、及び記録媒体に関し、アプリケーションプログラムや、プリンタドライバ等のデバイスドライバ、その他カラー画像を扱う機器に応用できる画像補間技術に関する。
【0002】
【従来の技術】
画像データの圧縮/伸張においては、一般には、例えば、特開平7−221993号公報の「カラー画像データの間引き方法及び装置、並びにカラー画像データの圧縮方法」にあるように、画像データを圧縮する時に間引きを行い、その圧縮データを伸張する時に、単一の補間方法によって補間する技術が知られている。しかし、このような方法においては、間引きの程度が大きく補間するエリアの広い場合には画質が落ちてしまうという問題が生じる。
【0003】
【発明が解決しようとする課題】
本発明は、上述のごとき実情に鑑みてなされたものであり、画像データを補間する際、複数の補間法(例えば、「コンピュータ画像処理入門」著者田村秀行;総研出版、に記載されている3つの補間法(最近傍法・線形補間法・3次補間法))を組み合わせることにより、高速かつ高画質なカラー画像の圧縮/伸張を行うことができるカラー画像における画像データの補間装置、方法及び記録媒体を提供することを目的とする。以下に各請求項に対応する目的を説明する。
【0004】
請求項1,1及び27に係る発明は、カラー画像データについて、第1の範囲の画素群から補間によって第2の範囲の画素群を生成するものであり、第1の範囲の画素群に隣接する画素の少なくとも1つを第1の補間方法で復元し、かつ他の画素を少なくとも第1の補間方法以外の方法で復元するもので、補間を組み合わせて行うことで、高速かつ高画質にすることを目的とするものである。
【0005】
請求項2,1及び28に係る発明は、第1の範囲の画素群からの最短距離に応じて第1及び第1以外の補間方法が決定されるようにすることにより、第1の範囲の画素群からの距離によって補間方法を変えることにより画質を維持することを目的とするものである。
【0006】
請求項3,1及び29に係る発明は、補間後第2の画素群が画素数変換をうける場合、変換率によって、単一の補間法を用いるか、複数の補間法を用いるかが決定されるようにすることにより、変換率に合った補間方法により画質を維持することを目的とするものである。
【0007】
請求項4,1及び3に係る発明は、第1の範囲の画素群をx×y画素とし、第2の範囲の画素群をm×n画素としたとき、x<m、y<nとするもので、補間の処理単位を矩形とすることによって、簡易な形態であるため高速に補間することを目的とするものである。
【0008】
請求項5,18及び3に係る発明は、少なくとも1つの隣接する画素を第1の補間方法、他の画素を少なくとも第1の補間方法以外の方法で復元するもので、1つの方法で補間するよりも圧縮データの復元において画質を維持できるようにすることを目的とするものである。
【0009】
請求項6,19及び3に係る発明は、x×y画素の2辺に隣接する画素を第1の補間方法で復元し、かつ他の画素を少なくとも第1の補間方法以外の方法で復元するもので、1つの方法で補間するよりも高速かつ画質を維持して補間することを目的とするものである。
【0010】
請求項7,2及び3に係る発明は、x×y画素の4辺に隣接する画素を第1の方法で復元し、かつ他の画素を少なくとも第1の補間方法以外の方法で復元するもので、x×y画素の2辺に隣接する画素を第1の補間方法で復元することにより、高速かつ非エッジ部分での画質を維持することを目的とするものである。
【0011】
請求項8,2及び3に係る発明は、第1の補間方法として最近傍法を用い、第1の補間方法以外の方法として線形補間法を用いることにより、簡易な形態で、高速かつ画質を維持して補間することを目的とするものである。
【0012】
請求項9,2及び3に係る発明は、第1の補間方法として最近傍法を用い、第1の補間方法以外の方法として3次補間法を用いることにより、線形補間法よりも速度は落ちるが、画質を向上させることを目的とするものである。
【0013】
請求項10,2及び36に係る発明は、2x<m、2y<nであり、少なくとも2つ以上の補間方法を使うことで画質を維持することを目的とするものである。
【0016】
請求項1,2及び37に係る発明は、m−x≧3、n−y≧3とし、画素の幅が空いたときにより大きな効果を発現させることを目的とするものである。
【0017】
請求項1,2及び38に係る発明は、x×y画素の2辺に隣接する画素で、x×y画素との距離が最も離れている画素を除いた画素を第1の方法で復元し、かつ他の画素を少なくとも第1以外の方法で復元するもので、x×y画素の2辺に隣接する画素を第1の方法で復元するよりも高画質に維持することを目的とするものである。
【0018】
請求項126及び39に係る発明は、x×y画素の4辺に隣接する画素で、x×y画素との距離が最も離れている画素を除いた画素を第1の補間方法で復元し、かつ他の画素を少なくとも第1の補間方法以外の方法で復元するもので、x×y画素の4辺に隣接する画素を第1の補間方法で復元するよりも高画質を維持できるようにすることを目的とするものである。
【0019】
【課題を解決するための手段】
請求項1の発明は、カラー画像データについて、第1の範囲の画素群の画素データに基づく補間によって、該第1の範囲を含む第2の範囲の画素群の画素データを生成する画像データ補間装置であって、前記第2の画素群において補間によって画像データを生成すべき画素のうち、前記第1の範囲の画素群に隣接する画素の少なくとも1つの画素の画素データを第1の補間方法を用いて生成し、該第1の補間方法を用いた画素以外の画素の画素データを第1の補間方法とは異なる補間方法で生成する手段を有することを特徴としたものである。
【0020】
請求項2の発明は、カラー画像データについて、第1の範囲の画素群の画素データに基づく補間によって、該第1の範囲を含む第2の範囲の画素群の画素データを生成する画像データ補間装置であって、前記第2の範囲の補間すべき画素群は少なくとも2種類以上の補間方法を用いて補間され、前記第2の範囲の画素群における各画素の補間方法が、補間すべき各画素の中心と、前記第1の範囲の画素群の各画素の中心との距離における最短の距離に応じて決定されるようにした手段を有することを特徴としたものである。
【0021】
請求項3の発明は、カラー画像データについて、第1の範囲の画素群の画素データに基づく補間によって、該第1の範囲を含む第2の範囲の画素群の画素データを生成する画像データ補間装置であって、前記補間を経て画素データを生成された第2の画素群が画素数変換を受ける場合、該画素数変換の変換率によって、前記第2の画素群における補間すべき全ての画素に対し単一の補間方法を用いて補間を行うか、該補間すべき画素のそれぞれについて複数の補間方法を使い分けて補間を行うかを決定する手段を有することを特徴としたものである。
【0022】
請求項4の発明は、請求項1ないし3のいずれか1の発明において、前記第1の範囲をx×y画素による矩形範囲とし、前記第2の範囲をm×n画素による矩形範囲とし、x<m、かつy<nであることを特徴としたものである。
【0023】
請求項5の発明は、請求項1の発明において、前記第2の範囲の画素群における補間すべき各画素の補間方法は、該補間すべき各画素の中心と、前記第1の範囲の画素群の各画素の中心との距離における最短の距離に応じて決定されることを特徴としたものである。
【0024】
請求項6の発明は、請求項5の発明において、前記第1の範囲の画素群がx×yの矩形領域で設定されているとき、前記矩形領域の2辺のいずれかに隣接する前記第2の画素群の補間すべき画素を第1の補間方法で補間し、前記第1の補間方法で補間を行った以外の補間すべき画素を、前記第1の補間方法とは異なる補間方法で補間することを特徴としたものである。
【0025】
請求項7の発明は、請求項5の発明において、前記第1の範囲の画素群がx×yの矩形領域で設定されているとき、前記矩形領域の4辺のいずれかに隣接する前記第2の画素群の補間すべき画素を第1の補間方法で補間し、前記第1の補間方法で補間を行った以外の補間すべき画素を、前記第1の補間方法とは異なる補間方法で補間することを特徴としたものである。
【0026】
請求項8の発明は、請求項5ないし7のいずれか1の発明において、前記第1の補間方法として最近傍法を用い、前記第1の補間方法とは異なる補間方法として線形補間法を用いることを特徴としたものである。
【0027】
請求項9の発明は、請求項5ないし7のいずれか1の発明において、前記第1の補間方法として最近傍法を用い、前記第1の補間方法とは異なる補間方法として3次補間法を用いることを特徴としたものである。
【0028】
請求項10の発明は、請求項6または7の発明において、前記第1の範囲をx×y画素による矩形範囲とし、前記第2の範囲をm×n画素による矩形範囲とし、2x<m、かつ2y<nとしたことを特徴としたものである。
【0031】
請求項1の発明は、請求項6の発明において、前記第1の範囲をx×y画素による矩形範囲とし、前記第2の範囲をm×n画素による矩形範囲とし、m−x≧3、n−y≧3としたことを特徴としたものである。
【0032】
請求項1の発明は、請求項1に記載の画像データ補間装置において、前記第1の範囲の画素群がx×yの矩形領域で設定されているとき、前記矩形領域の所定の2辺のいずれかに隣接する前記第2の範囲の補間すべき画素であって、前記第2の範囲の補間すべき画素の中心と前記第1の範囲の各画素の中心との距離の中で、最も長い距離である画素を除いた前記第2の範囲の補間すべき画素を第1の補間方法で補間し、前記第1の補間方法で補間を行った以外の補間すべき画素を、前記第1の補間方法とは異なる補間方法で補間することを特徴としたものである。
【0033】
請求項1の発明は、請求項1に記載の画像データ補間装置において、前記第1の範囲の画素群がx×yの矩形領域で設定されているとき、前記矩形領域の所定の4辺のいずれかに隣接する前記第2の範囲の補間すべき画素であって、前記第2の範囲の補間すべき画像の中心と前記第1の範囲の各画素の中心との距離の中で、最も長い距離である画素を除いた前記第2の範囲の補間すべき画素を第1の補間方法で補間し、前記第1の補間方法で補間を行った以外の補間すべき画素を、前記第1の補間方法とは異なる補間方法で補間することを特徴としたものである。
【0034】
請求項1の発明は、カラー画像データについて、第1の範囲の画素群の画素データに基づく補間によって、該第1の範囲を含む第2の範囲の画素群の画素データを生成する画像データ補間方法であって、前記第2の画素群において補間によって画像データを生成すべき画素のうち、前記第1の範囲の画素群に隣接する画素の少なくとも1つの画素の画素データを第1の補間方法を用いて生成し、該第1の補間方法を用いた画素以外の画素の画素データを第1の補間方法とは異なる補間方法で生成することを特徴としたものである。
【0035】
請求項1の発明は、カラー画像データについて、第1の範囲の画素群の画素データに基づく補間によって、該第1の範囲を含む第2の範囲の画素群の画素データを生成する画像データ補間方法であって、前記第2の範囲の補間すべき画素群は少なくとも2種類以上の補間方法を用いて補間され、前記第2の範囲の画素群における各画素の補間方法が、補間すべき各画素の中心と、前記第1の範囲の画素群の各画素の中心との距離における最短の距離に応じて決定されることを特徴としたものである。
【0036】
請求項1の発明は、カラー画像データについて、第1の範囲の画素群の画素データに基づく補間によって、該第1の範囲を含む第2の範囲の画素群の画素データを生成する画像データ補間方法であって、前記補間を経て画素データを生成された第2の画素群が画素数変換を受ける場合、該画素数変換の変換率によって、前記第2の画素群における補間すべき全ての画素に対し単一の補間方法を用いて補間を行うか、該補間すべき画素のそれぞれについて複数の補間方法を使い分けて補間を行うかを決定することを特徴としたものである。
【0037】
請求項1の発明は、請求項1ないし1のいずれか1の発明において、前記第1の範囲をx×y画素による矩形範囲とし、前記第2の範囲をm×n画素による矩形範囲とし、x<m、かつy<nであることを特徴としたものである。
【0038】
請求項18の発明は、請求項1の発明において、前記第2の範囲の画素群における補間すべき各画素の補間方法は、該補間すべき各画素の中心と、前記第1の範囲の画素群の各画素の中心との距離における最短の距離に応じて決定されることを特徴としたものである。
【0039】
請求項19の発明は、請求項18の発明において、前記第1の範囲の画素群がx×yの矩形領域で設定されているとき、前記矩形領域の2辺のいずれかに隣接する前記第2の画素群の補間すべき画素を第1の補間方法で補間し、前記第1の補間方法で補間を行った以外の補間すべき画素を、前記第1の補間方法とは異なる補間方法で補間することを特徴としたものである。
【0040】
請求項2の発明は、請求項18の発明において、前記第1の範囲の画素群がx×yの矩形領域で設定されているとき、前記矩形領域の4辺のいずれかに隣接する前記第2の画素群の補間すべき画素を第1の補間方法で補間し、前記第1の補間方法で補間を行った以外の補間すべき画素を、前記第1の補間方法とは異なる補間方法で補間することを特徴としたものである。
【0041】
請求項2の発明は、請求項18ないし2のいずれか1の発明において、前記第1の補間方法として最近傍法を用い、前記第1の補間方法とは異なる補間方法として線形補間法を用いることを特徴としたものである。
【0042】
請求項2の発明は、請求項18ないし2のいずれか1の発明において、前記第1の補間方法として最近傍法を用い、前記第1の補間方法とは異なる補間方法として3次補間法を用いることを特徴としたものである。
【0043】
請求項2の発明は、請求項19または2の発明において、前記第1の範囲をx×y画素による矩形範囲とし、前記第2の範囲をm×n画素による矩形範囲とし、2x<m、かつ2y<nとしたことを特徴としたものである。
【0046】
請求項2の発明は、請求項19の発明において、前記第1の範囲をx×y画素による矩形範囲とし、前記第2の範囲をm×n画素による矩形範囲とし、m−x≧3、n−y≧3としたことを特徴としたものである。
【0047】
請求項2の発明は、請求項1の発明において、前記第1の範囲の画素群がx×yの矩形領域で設定されているとき、前記矩形領域の所定の2辺のいずれかに隣接する前記第2の範囲の補間すべき画素であって、前記第2の範囲の補間すべき画素の中心と前記第1の範囲の各画素の中心との距離の中で、最も長い距離である画素を除いた前記第2の範囲の補間すべき画素を第1の補間方法で補間し、前記第1の補間方法で補間を行った以外の補間すべき画素を、前記第1の補間方法とは異なる補間方法で補間することを特徴としたものである。
【0048】
請求項26の発明は、請求項1の発明において、前記第1の範囲の画素群がx×yの矩形領域で設定されているとき、前記矩形領域の所定の4辺のいずれかに隣接する前記第2の範囲の補間すべき画素であって、前記第2の範囲の補間すべき画素の中心と前記第1の範囲の各画素の中心との距離の中で、最も長い距離である画素を除いた前記第2の範囲の補間すべき画素を第1の補間方法で補間し、前記第1の補間方法で補間を行った以外の補間すべき画素を、前記第1の補間方法とは異なる補間方法で補間することを特徴としたものである。
【0049】
請求項27の発明は、カラー画像データについて、第1の範囲の画素群の画素データに基づく補間によって、該第1の範囲を含む第2の範囲の画素群の画素データを生成する画像データ補間方法を実行するためのプログラムを記録したコンピュータ読みとり可能な記録媒体であって、前記第2の画素群において補間によって画像データを生成すべき画素のうち、前記第1の範囲の画素群に隣接する画素の少なくとも1つの画素の画素データを第1の補間方法を用いて生成し、該第1の補間方法を用いた画素以外の画素の画素データを第1の補間方法とは異なる補間方法で生成することを特徴とする画像データ補間方法を実行するためのプログラムを記録したコンピュータ読みとり可能な記録媒体である。
【0050】
請求項28の発明は、カラー画像データについて、第1の範囲の画素群の画素データに基づく補間によって、該第1の範囲を含む第2の範囲の画素群の画素データを生成する画像データ補間方法を実行するためのプログラムを記録したコンピュータ読みとり可能な記録媒体であって、前記第2の範囲の画素群は少なくとも2種類以上の補間方法を用いて補間され、前記第2の範囲の画素群における各画素の補間方法は、該補間すべき各画素の中心と、前記第1の範囲の画素群の各画素の中心との距離における最短の距離に応じて決定されることを特徴とする画像データ補間方法を実行するためのプログラムを記録したコンピュータ読みとり可能な記録媒体である。
【0051】
請求項29の発明は、カラー画像データについて、第1の範囲の画素群の画素データに基づく補間によって、該第1の範囲を含む第2の範囲の画素群の画素データを生成する画像データ補間方法を実行するためのプログラムを記録したコンピュータ読みとり可能な記録媒体であって、前記補間を経て画素データを生成された第2の画素群が画素数変換を受ける場合、該画素数変換の変換率によって、前記第2の画素群における補間すべき全ての画素に対し単一の補間方法を用いて補間を行うか、該補間すべき画素のそれぞれについて複数の補間方法を使い分けて補間を行うかを決定することを特徴とする画像データ補間方法を実行するためのプログラムを記録したコンピュータ読みとり可能な記録媒体である。
【0052】
請求項3の発明は、請求項27ないし29のいずれか1の発明において、前記第1の範囲をx×y画素による矩形範囲とし、前記第2の範囲をm×n画素による矩形範囲とし、x<m、かつy<nであることを特徴とする画像データ補間方法を実行するためのプログラムを記録したコンピュータ読みとり可能な記録媒体である。
【0053】
請求項3の発明は、請求項27の発明において、前記第2の範囲の画素群における補間すべき各画素の補間方法を実行するためのプログラムを記録したコンピュータ読みとり可能な記録媒体は、該補間すべき各画素の中心と、前記第1の範囲の画素群の各画素の中心との距離における最短の距離に応じて決定されることを特徴とする画像データ補間方法を実行するためのプログラムを記録したコンピュータ読みとり可能な記録媒体である。
【0054】
請求項3の発明は、請求項3の発明において、前記第1の範囲の画素群がx×yの矩形領域で設定されているとき、前記矩形領域の2辺のいずれかに隣接する前記第2の画素群の補間すべき画素を第1の補間方法で補間し、前記第1の補間方法で補間を行った以外の補間すべき画素を、前記第1の補間方法とは異なる補間方法で補間することを特徴とする画像データ補間方法を実行するためのプログラムを記録したコンピュータ読みとり可能な記録媒体である。
【0055】
請求項3の発明は、請求項3の発明において、前記第1の範囲の画素群がx×yの矩形領域で設定されているとき、前記矩形領域の4辺のいずれかに隣接する前記第2の画素群の補間すべき画素を第1の補間方法で補間し、前記第1の補間方法で補間を行った以外の補間すべき画素を、前記第1の補間方法とは異なる補間方法で補間することを特徴とする画像データ補間方法を実行するためのプログラムを記録したコンピュータ読みとり可能な記録媒体である。
【0056】
請求項3の発明は、請求項3ないし3のいずれか1の発明において、前記第1の補間方法として最近傍法を用い、前記第1の補間方法とは異なる補間方法として線形補間法を用いることを特徴とする画像データ補間方法を実行するためのプログラムを記録したコンピュータ読みとり可能な記録媒体である。
【0057】
請求項3の発明は、請求項3ないし3のいずれか1の発明において、前記第1の補間方法として最近傍法を用い、前記第1の補間方法とは異なる補間方法として3次補間法を用いることを特徴とする画像データ補間方法を実行するためのプログラムを記録したコンピュータ読みとり可能な記録媒体である。
【0058】
請求項36の発明は、請求項3または3の発明において、前記第1の範囲をx×y画素による矩形範囲とし、前記第2の範囲をm×n画素による矩形範囲とし、2x<m、かつ2y<nとしたことを特徴とする画像データ補間方法を実行するためのプログラムを記録したコンピュータ読みとり可能な記録媒体である。
【0061】
請求項37の発明は、請求項3の発明において、前記第1の範囲をx×y画素による矩形範囲とし、前記第2の範囲をm×n画素による矩形範囲とし、m−x≧3、n−y≧3としたことを特徴とする画像データ補間方法を実行するためのプログラムを記録したコンピュータ読みとり可能な記録媒体である。
【0062】
請求項38の発明は、請求項27の発明において、前記第1の範囲の画素群がx×yの矩形領域で設定されているとき、前記矩形領域の所定の2辺のいずれかに隣接する前記第2の範囲の補間すべき画素であって、前記第2の範囲の補間すべき画素の中心と前記第1の範囲の各画素の中心との距離の中で、最も長い距離である画素を除いた前記第2の範囲の補間すべき画素を第1の補間方法で補間し、前記第1の補間方法で補間を行った以外の補間すべき画素を、前記第1の補間方法とは異なる補間方法で補間することを特徴とする画像データ補間方法を実行するためのプログラムを記録したコンピュータ読みとり可能な記録媒体である。
【0063】
請求項39の発明は、請求項27の発明において、前記第1の範囲の画素群がx×yの矩形領域で設定されているとき、前記矩形領域の所定の4辺のいずれかに隣接する前記第2の範囲の補間すべき画素であって、かつ該画素のなかから、該画素の中心と前記第1の範囲の各画素の中心との最短の距離が最も長い画素を除いた前記第2の範囲の補間すべき画素を第1の補間方法で補間し、前記第1の補間方法で補間を行った以外の補間すべき画素を、前記第1の補間方法とは異なる補間方法で補間することを特徴とする画像データ補間方法を実行するためのプログラムを記録したコンピュータ読みとり可能な記録媒体である。
【0064】
【発明の実施の形態】
(実施例1)
図1は、本発明に係わる画像補間方法における基本的な補間パターンの一例を説明するための図で、カラー画像データについて、5×5画素を1単位とし、黒色部分である2×2画素(第1の範囲の画素群x×y)から5×5画素(第2の範囲の画素群m×n)を生成するとき、黒色部分以外の画素については、2種類以上の補間方法を併用して補間を行うものである。例えば、黒色部分の2辺に隣接している画素を灰色部分とする場合、灰色部分(網掛け表示部分;以下同様)は第1の補間方法によって補間を行い、白色部分は第1の補間方法とは異なる補間方法で補間を行う。
【0065】
ここで図12を参照して、本発明における“隣接する画素”の定義に付いて説明する。図12において、黒色部分の画素領域に対する隣接画素を灰色部分(網かけ表示部分)として示す。図12(A)に示すごとくに、隣接画素は、対象の黒色画素に対して1辺または頂点を共有する画素として定義される。なお、この“共有”は概念的なものであり、実際の製品において各画素間に距離ある場合もこの概念に基づいて隣接画素を定義する。次に黒色部分が矩形であるときに、その2辺(p,q)に隣接する画素として図12(B)に示す部分が定義される。さらに同様に矩形の黒色部分の4辺(p,q,r,s)に隣接する画素は図12(C)のごとくとなる。また、本明細書において示される“画素群”は、1つの画素のみを対象とする場合も含んだ概念とする。
【0066】
図2は、図1のパターンに基づく具体的な画像補間の一例を説明するための図で、灰色部分は最近傍法を用い、白色部分を線形補間法を用いた例を示すものである。すなわち、図2に示すように、灰色部分は隣接している黒色部分のデータをそのまま用いて補間し、白色部分は、(9)=((1)+(2))/2,(10)=((5)+(7))/2,(11)=((3)+(4))/2,(12)=((5)+(6))/2,(13)=((7)+(8))/2,(14)=((6)+(8))/2,(15)=((12)+(13))/2として補間する。
【0067】
図3は、図1のパターンに基づく具体的な画像補間の他の例を説明するための図で、灰色部分は最近傍法を用いて補間し、白色部分は3次補間法を用いて補間する。すなわち、灰色部分は隣接している黒色部分のデータをそのまま用いて補間する。
【0068】
原イメージの座標系をXY、変換後のイメージの座標系をX’Y’とし、両座標系間が線形変換の関係にあるとすると、両者の関係は以下のようになる。
x=ax’+by’+c …(I)
y=dx’+ey’+f …(II)
【0069】
従って両座標間の関係は、対応する6点の座標値を用いて上記のa〜fを計算すれば求められる。なお、a〜fを計算する上では、これら6点は必ずしも格子点(整数座標点)である必要はない。
【0070】
上記の式(I)及び式(II)により、変換後のイメージの全ての点について、対応する原イメージ上の点を求め、原イメージ上の点の色情報を変換後のイメージの点の色情報とする。ただし、対応する原イメージ上のすべて格子点になるとは限らないため、周囲の格子点の色情報を用いて所望の色情報を補間することになる。
【0071】
ここで3次補間法を用いる。図3での(1)〜(16)をそれぞれ点G〜Vとし、(17)を点Zとする。点Zの周囲の16点G〜Vを用い、以下の式2によって(17)に補間する。
f(Z)=f(G)C(xG―xZ)C(yG―yZ)+f(H)C(xH―xZ)C(yH―yZ)+…f(V)C(xV―xZ)C(yV―yZ)…(III)
C(t)= 1−2t2+|t|3(0≦|t|<1) …(IV)
C(t)= 4−8|t|+5t2―|t|3(1≦|t|<2)…(V)
C(t)= 0(2≦|t|) …(VI)
【0072】
ここでC(t)は、サンプリング定理を構成する関数sinπx/πxの近似式であり、式(III)ないし式(VI)は、R、G、Bの各成分ごとに使用される。この方法では、16点の情報を用いて補間するため線形補間法を用いるよりも速度は落ちるが高画質となる。
【0073】
このとき、m−x≧3、n−y≧3もしくは2x<m、2y<nの場合、2つ以上の補間法を用いる。これは、m−x、n−yの幅によって補間方法を組み合わせる必要があるからである。また、灰色部分の画素の幅は1画素である。これは、黒色部分の画素の情報をそのまま補間しているため、灰色部分の画素が黒色部分と比べて広くなってしまうと画質が落ちてしまうからである。
【0074】
図4は、本発明に係わる画像補間方法における基本的な補間パターンの他の例を説明するための図で、図1の例と同様に、カラー画像データについて5×5画素を1単位とし、黒色部分である2×2画素(第1の範囲の画素群)から5×5画素(第2の範囲の画素群)を生成するとき、黒色部分以外の補間を1つ以上の方法で補間するが、図4の例においては、黒色部分の画素の中心部から、それら黒色部分の画素に隣接している灰色部分の画素の中心部までの距離(例えばα、β、γ)の中で、もっとも長い距離であるβの画素を白色部分とする場合、灰色部分を第1の補間方法で補間し、白色部分を第1の補間方法以外の補間方法で補間する。
【0075】
図5は、図4のパターンに基づく具体的な画像補間の一例を説明するための図で、ここでは、灰色部分を最近傍法、白色部分を線形補間法を用いた。灰色部分は隣接している黒色部分のデータをそのまま補間し、白色部分は(9)=((1)+(2))/2,(10)=((5)+(7))/2,(11)=((3)+(4))/2,(12)=((5)+(6))/2,(13)=((7)+(8))/2,(14)=((6)+(8))/2,(15)=1/4×((7)+3×(5)),(16)=1/3×((7)+2×(15)),(17)=1/2×((7)+(16)),(18)=1/4×((13)+3×(12)),(19)=1/3×((13)+2×(18)),(20)=1/2×((13)+(19))として補間する。このとき、m−x≧3、n−y≧3もしくは2x<m、2y<nの場合、2つ以上の補間法を用いる。これは、m−x、n−yの幅によって補間方法を組み合わせる必要があるからである。また、灰色部分の画素の幅は1画素である。これは、黒色部分の画素の情報をそのまま補間しているため、灰色部分の画素が黒色部分と比べて広くなってしまうと画質が落ちてしまうからである。
【0076】
図6は、本発明に係わる画像補間方法における基本的な補間パターンの更に他の例を説明するための図で、図1の例と同様にカラー画像データについて5×5画素を1単位とし、黒色部分である2×2画素(第1の範囲の画素群)から5×5画素(第2の範囲の画素群)を生成するとき、黒色部分以外の補間を1つ以上の補間方法で補間するが、ここでは黒色部分の4辺に隣接している画素を灰色部分とする場合、灰色部分を第1の方法で補間し、白色部分を第1の補間方法以外の補間方法で補間する。
【0077】
図7は、図6のパターンに基づく具体的な画像補間の一例を説明するための図で、灰色部分を最近傍法、白色部分を線形補間法を用いた。灰色部分は隣接している黒色部分のデータをそのまま補間し、白色部分は、(7)=((2)+(5))/2,(8)=((4)+(6))/2として補間する。このとき、m−x≧3、n−y≧3もしくは2x<m、2y<nの場合、2つ以上の補間法を用いる。これは、m−x、n−yの幅によって補間方法を組み合わせる必要があるからである。また、灰色部分の画素の幅は2画素である。これは、黒色部分の画素の情報をそのまま用いて補間しているため、灰色部分の画素が黒色部分と比べて広くなってしまうと画質が落ちてしまうからである。
【0078】
図8は、本発明に係わる画像補間方法における基本的な補間パターンの更に他の例を説明するための図で、前述の例と同様にカラー画像データについて5×5画素を1単位とし、黒色部分である2×2画素(第1の範囲の画素群)から5×5画素(第2の範囲の画素群)を生成するとき、黒色部分以外の補間を1つ以上の補間方法で補間するが、図4に示す例と同様に黒色部分の4辺に隣接する画素かつ黒色部分との距離がもっとも離れている画素を除いた画素を灰色部分とする場合、灰色部分を第1の補間方法で補間し、白色部分を第1の補間方法以外の補間方法で補間する。
【0079】
図9は、図8のパターンに基づく具体的な画像補間の一例を説明するための図で、ここでは、灰色部分を最近傍法を用いて補間し、白色部分を線形補間法を用いて補間した。灰色部分は隣接している黒色部分のデータをそのまま用いて補間し、白色部分は、(9)=((2)+(5))/2,(10)=((4)+(7))/2,(11)=1/4×((5)+3×(2)),(12)=1/3×((5)+2×(11)),(13)=1/2((5)+(12)),(14)=1/4×((7)+3×(4)),(15)=1/3×((7)+2×(14)),(16)=1/2×((7)+(15))として補間する。このとき、m−x≧3、n−y≧3もしくは2x<m、2y<nの場合、2つ以上の補間方法を用いる。これは、m−x、n−yの幅によって補間方法を組み合わせる必要があるからである。また、灰色部分の画素の幅は2画素である。これは、黒色部分の画素の情報をそのまま用いて補間しているため、灰色部分の画素が黒色部分と比べて広くなってしまうと画質が落ちてしまうからである。
【0080】
図13は、上記図1ないし図9に示した本発明の画像データ補間装置の処理の概略をまとめたフローチャートである。まず5×5画素を1単位としたとき2×2画素の圧縮画素データを伸張して復元する(ステップS1)。次に上記の2×2画素に隣接する画素、もしくは隣接する画素でかつ上記の2×2画素との距離が最も離れている画素を除いた画素を第1の補間方法で補間して画素データを生成して復元する(ステップS2)。次いで、他の画素を第1の補間方法以外の方法で補間して画素データを生成して復元する(ステップS3)。
【0081】
図10及び図11は、本発明に係わる画像補間方法における基本的な補間パターンの更に他の例を説明するための図で、補間後生成された画素群がさらに画素変換を受けて例えば拡大されるようなケースを想定したときに、その変換率に応じて補間方法を設定する例について説明するためのものである。
【0082】
ここでは2×2画素を1単位とし、黒色部分である1×1画素から2×2画素を生成する際、白色部分の補間について、一つの補間方法にて補間を行うか、複数の補間方法を組み合わせて用いるかどうかを後の画素変換の変換率に応じて決定する。ここでは、変換率2倍の画素変換を行って、元の2×2画素を4×4画素としたものを図11に示す。このとき、図10に示す黒色部分である1×1画素から2×2画素を生成する際、変換率に応じて補間方法を決定し、複数の補間方法を用いる場合に、白色部分の補間を例えば最近傍法で行うか、もしくは例えば最近傍法と線形補間法を組み合わせて補間を行うかを決定する。
【0083】
図14は、上記図10及び図11に示した本発明の画像データ補間装置の処理における複数補間方法を用いる処理の概略を示すフローチャートである。まず2×2画素を1単位としたとき、1×1画素を復元し(ステップS11)、復元した1×1画素に隣接する画素の少なくとも一部を第1の補間方法で補間して画素データを生成して復元し(ステップS12)、そして他の画素を少なくとも第1の補間方法以外の方法で補間して画素データを生成し(ステップS13)、生成画素群に対して画素変換を実施する(ステップS14)。
【0084】
次いで、本願の各請求項に対応した画素データの補間方法処理例について説明する。図15は、請求項16に対応する画像補間処理例について説明するためのフローチャートである。まず第1の範囲の画素群を復元し(ステップS21)、第1の範囲に隣接する画素を第1の補間方法で補間し(ステップS22)、他の画素を第1以外の補間方法で補間して(ステップS23)、目的の画像データを生成する。
【0085】
図16は、請求項17に対応する画像補間処理例について説明するためのフローチャートである。まず、第1の範囲の画素群を復元し(ステップS31)、次いで、第2の範囲の補間対象画素と第1の範囲の画素との中心間の距離に応じて、補間対象画素を複数の補間方法で補間する(ステップS32)。
【0086】
図17は、請求項18に対応する画像補間処理例について説明するためのフローチャートである。まず、第1の範囲の画素群を復元し(ステップS41)、画素変換率に応じて適用する補間方法を決定し(ステップS42)、このとき決定した補間方法が複数の補間方法を用いるものであれば、該当する補間条件に従って第1の補間方法で対象画素を補間し(ステップS43〜S44)、他の画素を第1の補間方法以外の方法で補間する(ステップS45)。また、ステップS43で単一の補間方法のみを用いるのであれば、該当する補間条件に従って対象画素を補間する(ステップS46)。
【0087】
請求項19に対応する処理は、上記図15ないし図17に示す処理において、第1の範囲を矩形として第2の範囲をそれよりも大きい矩形範囲として処理するものである。
【0088】
図18は、請求項20に対応する画像補間処理例について説明するためのフローチャートである。まず、第1の範囲の画素群を復元し(ステップS51)、第1の範囲に隣接する第2の範囲の対象画素のうち、第1の範囲の画素との中心間距離に応じて決められた画素を第1の補間方法で補間し(ステップS52)、次いで他の画素を第1以外の補間方法で補間する(ステップS53)。
【0089】
図19は、請求項21に対応する画像補間処理例について説明するためのフローチャートである。まず、矩形の第1の範囲の画素群を復元し(ステップS61)、第1の範囲の2辺への隣接画素を第1の補間方法で補間し(ステップS62)、次いで他の画素を第1の補間方法以外の方法で補間する(ステップS63)。
【0090】
図20は、請求項22に対応する画像補間処理例について説明するためのフローチャートである。まず、矩形の第1の範囲の画素群を復元し(ステップS71)、第1の範囲の4辺への隣接画素を第1の補間方法で補間し(ステップS72)、次いで他の画素を第1の補間方法以外の方法で補間する(ステップS73)。
【0091】
請求項23に対応する処理は、上記各フローにおいて、第1の補間方法として最近傍法を用い、第2の補間方法として線形補間法を用いる。また請求項24に対応する処理は、上記の各フローにおいて、第1の補間方法として最近傍法を用い、第2の補間方法として3次補間法を用いる。
【0092】
請求項25に対応する処理は、上記図19または図20に示す処理において、第1の範囲をx×yの矩形範囲として、第2の範囲をm×nの矩形範囲として、2x<m、かつ2y<nとするものである。また請求項26に対応する処理は、上記図19に示す処理において、第1の補間方法で補間する画素の幅をx/2画素以下とし、また請求項27に対応する処理は、上記図20に示す処理において、第1の補間方法で補間する画素の幅をx画素以下とするものである。さらに請求項28に対応する処理は、図19に示す処理において、第1の範囲をx×y画素による矩形範囲とし、第2の範囲をm×n画素による矩形範囲とし、m−x≧3、n−y≧3とするものである。
【0093】
図21は、請求項29に対応する画像補間処理例について説明するためのフローチャートである。まず、矩形の第1の範囲の画素群を復元し(ステップS81)、次いで第1の範囲画素群の2辺に隣接する補間対象画素のうち、第1の範囲の画素との中心間距離に応じて決められた画素を第1の補間方法で補間し(ステップS82)、次いで他の画素を第1の補間方法以外の方法で補間して(ステップS83)、目的の画像データを生成する。
【0094】
図22は、請求項30に対応する画像補間処理例について説明するためのフローチャートである。まず、矩形の第1の範囲の画素群を復元し(ステップS91)、次いで第1の範囲画素群の4辺に隣接する補間対象画素のうち、第1の範囲の画素との中心間距離に応じて決められた画素を第1の補間方法で補間し(ステップS92)、次いで他の画素を第1の補間方法以外の方法で補間して(ステップS93)、目的の画像データを生成する。
【0095】
次いで、本発明の画像データ補間装置の構成例について説明する。図23は、本発明の画像補間方法を実現する装置構成及び周辺システムの構成の一例を説明するための図である。図23において、本発明の画像補間装置は、画像処理を行うCPU4a、処理を行うプログラムやデータを記憶するRAM4b、及びデータ入出力のためのインターフェース類を少なくとも有して構成され、図23に示す例では、圧縮画像データを入力してこれを伸張して生成画像のプリントを行うプリンタ4に適用されて構成されている。
【0096】
圧縮データの生成から本発明によるデータ伸張までの流れの概略を説明する。図23に示すシステムは、データバス5を介して、HDD1、CPU3、RAM2、及びプリンタ4が接続されている。オリジナル画像のプリントアウトに際し、画像圧縮がなされ、圧縮後のデータがプリンタに送信される。すなわち、HDD1上に記録されたオリジナル画像は、CPU3からの命令により、RAM2上に読み込まれる(ア)。読み込まれたオリジナル画像をP1とする。CPU3は、RAM2上の画像を部分的に読み込み(イ)、所定の量子化法を適用して圧縮を行ってRAM2に再び記録する(ウ)。RAM2に書き込まれた圧縮後の画像をP2とする。
【0097】
そしてCPU3からの命令によって、圧縮後のデータがプリンタ4内のRAM4b上に記録される(エ)。プリンタ4内のCPU4aは、圧縮後のデータを読み込み(オ)、本発明による画像補間法を適用して復号値を得、画像の伸張を行う。CPU4aは、伸張後のデータをRAM4b上に書き込む(カ)。伸張された画像をP3とする。そしてプリンタ4は、伸張されたデータを所定の手順でプリントアウトする。
【0098】
次に、本発明による画像データ補間装置の機能を実現するためのプログラムやデータを記憶した記録媒体の実施形態を説明する。記録媒体としては、具体的には、CD−ROM、光磁気ディスク、DVD−ROM、フロッピーディスク、フラッシュメモリ、及びその他各種ROMやRAM等が想定でき、これら記録媒体に上述した本発明の各実施形態の機能をコンピュータに実行させて流通させることにより、当該機能の実現を容易にする。そしてコンピュータ等の情報処理装置に上記のごとくの記録媒体を装着して情報処理装置によりプログラムを読み出すか、もしくは情報処理装置が備えている記憶媒体に当該プログラムを記憶させておき、必要に応じて読み出すことにより、本発明に係わる画像データ補間装置の機能を実行することができる。このような記録媒体は、上記実施例を元に容易に実施できることは明らかである。
【0099】
【発明の効果】
請求項1,1及び27の発明によれば、補間を組み合わせて行うことで、高速かつ高画質にすることができる。
請求項2,1及び28の発明によれば、第1の範囲の画素群からの中心間距離によって補間方法を変えることにより圧縮データの復元後の画質を維持することができる。
請求項3,1及び29の発明によれば、変換率に合った補間方法を選択することにより、圧縮データの復元後の画質を維持することができる。
【0100】
請求項4,1及び3の発明によれば、補間の処理単位を簡易な形態の矩形にすることによって、高速に補間することができる。
請求項5,18及び3の発明によれば、1つの補間方法で補間するよりも圧縮データの復元後の画質を維持することができる。
請求項6,19及び3の発明によれば、x×y画素の2辺に隣接する画素を第1の方法で復元することにより、1つの補間方法で補間するよりも高速に補間を行うことができ、かつ圧縮データの復元後の画質を維持することができる。
【0101】
請求項7,2及び3の発明によれば、x×y画素の4辺に隣接する画素を第1の方法で復元することにより高速な補間を行うことができ、かつ非エッジ部分での画質を維持することができる。
請求項8,2及び3の発明によれば、簡易な形態で、高速かつ画質を維持して補間することができる。
請求項9,2及び3の発明によれば、線形補間法よりも速度がある程度落ちるが、画質圧縮データの復元後の画質を向上させることができる。
【0102】
請求項10,2及び36の発明によれば、少なくとも2つ以上の補間方法を使うことで、圧縮データの復元後の画質を維持することができる
【0103】
請求項1,2及び37の発明によれば、画素の幅が空いたときにより効果を発揮することができる。
請求項1,2及び38の発明によれば、x×y画素の2辺に隣接する画素を第1の補間方法のみで復元するよりも圧縮データの復元後の画質を維持することができる。
請求項126及び39の発明によれば、x×y画素の4辺に隣接する画素を第1の補間方法のみで復元するよりも圧縮データの復元後の画質を維持することができる。
【図面の簡単な説明】
【図1】 本発明に係わる画像補間方法における基本的な補間パターンの一例を説明するための図である。
【図2】 図1の基本的なパターンに基づく画像補間の一例を説明するための図である。
【図3】 図1の基本的なパターンに基づく画像補間の他の例を説明するための図である。
【図4】 本発明に係わる画像補間方法における基本的な補間パターンの他の例を説明するための図である。
【図5】 図4の基本的なパターンに基づく画像補間の一例を説明するための図である。
【図6】 本発明に係わる画像補間方法における基本的な補間パターンの更に他の例を説明するための図である。
【図7】 図6の基本的なパターンに基づく画像補間の一例を説明するための図である。
【図8】 本発明に係わる画像補間方法における基本的な補間パターンの更に他の例を説明するための図である。
【図9】 図8の基本的なパターンに基づく画像補間の一例を説明するための図である。
【図10】 本発明に係わる画像補間方法における基本的な補間パターンの更に他の例を説明するための図である。
【図11】 本発明に係わる画像補間方法における基本的な補間パターンの更に他の例を説明するための図である。
【図12】 本発明における“隣接する画素”の定義に付いて説明するための図である。
【図13】 図1ないし図9に示した本発明の画像データ補間装置の処理の概略をまとめたフローチャートである。
【図14】 図10及び図11に示した本発明の画像データ補間装置の処理の概略をまとめたフローチャートである。
【図15】 請求項16に対応する画像補間処理例について説明するためのフローチャートである。
【図16】 請求項17に対応する画像補間処理例について説明するためのフローチャートである。
【図17】 請求項18に対応する画像補間処理例について説明するためのフローチャートである。
【図18】 請求項20に対応する画像補間処理例について説明するためのフローチャートである。
【図19】 請求項21に対応する画像補間処理例について説明するためのフローチャートである。
【図20】 請求項22に対応する画像補間処理例について説明するためのフローチャートである。
【図21】 請求項29に対応する画像補間処理例について説明するためのフローチャートである。
【図22】 請求項30に対応する画像補間処理例について説明するためのフローチャートである。
【図23】 本発明の画像補間方法を実現する装置構成及び周辺システムの構成の一例を説明するための図である。
【符号の説明】
1…HDD、2,4b…RAM、3,4a…CPU、4…プリンタ、5…データバス。
[0001]
BACKGROUND OF THE INVENTION
The present invention relates to an image data interpolation apparatus, method, and recording medium for color images, and to an image interpolation technique that can be applied to application programs, device drivers such as printer drivers, and other devices that handle color images.
[0002]
[Prior art]
In compression / decompression of image data, generally, for example, as described in “Color image data thinning method and apparatus and color image data compression method” of Japanese Patent Laid-Open No. 7-221993, the image data is compressed. A technique is known in which thinning is sometimes performed and the compressed data is expanded by a single interpolation method. However, in such a method, there arises a problem that the image quality deteriorates when the degree of thinning is large and the area to be interpolated is wide.
[0003]
[Problems to be solved by the invention]
The present invention has been made in view of the above circumstances, and is described in a plurality of interpolation methods (for example, “Introduction to Computer Image Processing”, author Hideyuki Tamura; Image data interpolation apparatus, method, and method for color image that can compress / decompress color image with high speed and high image quality by combining two interpolation methods (nearest neighbor method, linear interpolation method, cubic interpolation method) An object is to provide a recording medium. The object corresponding to each claim will be described below.
[0004]
  Claims 1, 14as well as27According to the invention, for color image data, a pixel group in the second range is generated from the pixel group in the first range by interpolation, and at least one pixel adjacent to the pixel group in the first range is selected. The restoration is performed by the first interpolation method, and other pixels are restored by at least a method other than the first interpolation method. The purpose is to achieve high speed and high image quality by combining the interpolation. is there.
[0005]
  Claims 2, 15as well as28In the invention according to the present invention, the interpolation method other than the first and first is determined according to the shortest distance from the pixel group in the first range, so that the interpolation is performed based on the distance from the pixel group in the first range. The object is to maintain image quality by changing the method.
[0006]
  Claims 3, 16as well as29In the invention according to the present invention, when the second pixel group after interpolation undergoes pixel number conversion, whether to use a single interpolation method or a plurality of interpolation methods is determined by the conversion rate, The object is to maintain the image quality by an interpolation method suitable for the conversion rate.
[0007]
  Claims 4, 17And 30According to the invention, when the pixel group in the first range is x × y pixels and the pixel group in the second range is m × n pixels, x <m and y <n. Since the unit is a rectangle, it is a simple form and is intended for high-speed interpolation.
[0008]
  Claim 518And 31According to the invention, at least one adjacent pixel is restored by a first interpolation method, and other pixels are restored by a method other than at least the first interpolation method. The purpose is to maintain the image quality.
[0009]
  Claim 6,19And 32In the invention according to, pixels adjacent to two sides of the x × y pixel are restored by the first interpolation method, and other pixels are restored by at least a method other than the first interpolation method. The purpose is to perform interpolation while maintaining image quality at a higher speed than interpolation.
[0010]
  Claims 7 and 20And 33In the invention according to the present invention, the pixels adjacent to the four sides of the x × y pixel are restored by the first method, and the other pixels are restored by at least a method other than the first interpolation method. An object of the present invention is to maintain the image quality at a high speed and at a non-edge portion by restoring the pixels adjacent to the two sides by the first interpolation method.
[0011]
  Claims 8 and 21And 34According to the present invention, the nearest neighbor method is used as the first interpolation method, and the linear interpolation method is used as a method other than the first interpolation method, so that interpolation can be performed in a simple form while maintaining high image quality. It is the purpose.
[0012]
  Claims 9 and 22And 35According to the invention, the nearest neighbor method is used as the first interpolation method, and the cubic interpolation method is used as a method other than the first interpolation method. It is intended.
[0013]
  Claims 10 and 23as well as36The present invention relates to 2x <m and 2y <n, and aims to maintain image quality by using at least two interpolation methods.
[0016]
  Claim 11, 24as well as37An object of the present invention is to make mx ≧ 3 and ny ≧ 3, and to produce a greater effect when the width of the pixel is free.
[0017]
  Claim 12, 25as well as38In the invention according to, the pixels excluding the pixels that are adjacent to the two sides of the x × y pixel, except for the pixel that is the most distant from the x × y pixel, are restored by the first method, and at least other pixels are The restoration is performed by a method other than the first method, and the purpose is to maintain the pixels adjacent to the two sides of the x × y pixel with higher image quality than the restoration by the first method.
[0018]
  Claim 13,26as well as39In the invention according to, the pixels excluding the pixels that are adjacent to the four sides of the x × y pixel, except for the pixel that is the most distant from the x × y pixel, are restored by the first interpolation method, and other pixels are The object is to restore at least a method other than the first interpolation method, and to maintain higher image quality than to restore the pixels adjacent to the four sides of the x × y pixel by the first interpolation method. Is.
[0019]
[Means for Solving the Problems]
According to the first aspect of the present invention, image data interpolation for generating color pixel data of a pixel group in the second range including the first range is performed on the color image data by interpolation based on the pixel data of the pixel group in the first range. A first interpolation method for pixel data of at least one pixel of pixels adjacent to the pixel group in the first range among pixels in which image data is to be generated by interpolation in the second pixel group. And means for generating pixel data of pixels other than the pixels using the first interpolation method by an interpolation method different from the first interpolation method.
[0020]
According to a second aspect of the present invention, image data interpolation for generating color pixel data of a pixel group of a second range including the first range is performed on the color image data by interpolation based on the pixel data of the pixel group of the first range. In the apparatus, the pixel group to be interpolated in the second range is interpolated using at least two kinds of interpolation methods, and the interpolation method for each pixel in the pixel group in the second range is to be interpolated. And a unit that is determined according to a shortest distance between a center of the pixel and a center of each pixel of the pixel group in the first range.
[0021]
According to a third aspect of the present invention, image data interpolation for generating pixel data of a pixel group in a second range including the first range is performed on the color image data by interpolation based on the pixel data of the pixel group in the first range. When the second pixel group for which pixel data is generated through the interpolation is subjected to pixel number conversion, all pixels to be interpolated in the second pixel group according to the conversion rate of the pixel number conversion On the other hand, there is provided a means for determining whether to perform interpolation using a single interpolation method or to use different interpolation methods for each pixel to be interpolated.
[0022]
The invention of claim 4 is the invention of any one of claims 1 to 3, wherein the first range is a rectangular range by x × y pixels, and the second range is a rectangular range by m × n pixels, x <m and y <n.
[0023]
According to a fifth aspect of the present invention, in the first aspect of the invention, the interpolation method for each pixel to be interpolated in the pixel group in the second range is the center of each pixel to be interpolated and the pixels in the first range. It is determined according to the shortest distance in the distance from the center of each pixel of the group.
[0024]
According to a sixth aspect of the invention, in the fifth aspect of the invention, when the pixel group in the first range is set as an x × y rectangular area, the first area adjacent to one of the two sides of the rectangular area. The pixels to be interpolated in the two pixel groups are interpolated by the first interpolation method, and the pixels to be interpolated other than the interpolation by the first interpolation method are performed by an interpolation method different from the first interpolation method. It is characterized by interpolation.
[0025]
According to a seventh aspect of the invention, in the fifth aspect of the invention, when the pixel group in the first range is set as an x × y rectangular area, the first area adjacent to any one of the four sides of the rectangular area. The pixels to be interpolated in the two pixel groups are interpolated by the first interpolation method, and the pixels to be interpolated other than the interpolation by the first interpolation method are performed by an interpolation method different from the first interpolation method. It is characterized by interpolation.
[0026]
The invention of claim 8 uses the nearest neighbor method as the first interpolation method in the invention of any one of claims 5 to 7 and uses a linear interpolation method as an interpolation method different from the first interpolation method. It is characterized by that.
[0027]
The invention of claim 9 uses the nearest neighbor method as the first interpolation method in the invention of any one of claims 5 to 7, and uses a cubic interpolation method as an interpolation method different from the first interpolation method. It is characterized by using.
[0028]
The invention of claim 10 is the invention of claim 6 or 7, wherein the first range is a rectangular range of x × y pixels, the second range is a rectangular range of m × n pixels, and 2x <m, And 2y <n.
[0031]
  Claim 11In the invention of claim 6, in the invention of claim 6, the first range is a rectangular range by x × y pixels, the second range is a rectangular range by m × n pixels, and mx ≧ 3, ny It is characterized in that ≧ 3.
[0032]
  Claim 12In the image data interpolating apparatus according to claim 1, when the pixel group in the first range is set as an x × y rectangular area, the image data interpolating apparatus is set to any one of predetermined two sides of the rectangular area. Adjacent pixels in the second range to be interpolated,The second range should be interpolatedPixelThe center ofWith the center of each pixel in the first rangeIn the distanceLongestDistanceThe pixels to be interpolated in the second range excluding the pixels are interpolated by the first interpolation method, and the pixels to be interpolated other than the interpolation by the first interpolation method are the first interpolation method and Is characterized by interpolating with different interpolation methods.
[0033]
  Claim 13In the image data interpolating apparatus according to claim 1, when the pixel group in the first range is set as an x × y rectangular area, the image data interpolating apparatus is set to any one of predetermined four sides of the rectangular area. Adjacent pixels in the second range to be interpolated,The center of the image to be interpolated in the second range;With the center of each pixel in the first rangeIn the distanceLongestDistancePixels to be interpolated in the second range excluding pixels are interpolated by the first interpolation method, and pixels to be interpolated other than those interpolated by the first interpolation method are the first interpolation method and Is characterized by interpolating with different interpolation methods.
[0034]
  Claim 14The present invention is an image data interpolation method for generating pixel data of a pixel group in a second range including the first range by interpolation based on the pixel data of the pixel group in the first range for color image data. The pixel data of at least one of the pixels adjacent to the pixel group in the first range among the pixels for which the image data should be generated by interpolation in the second pixel group using the first interpolation method. The pixel data of the pixels other than the pixels using the first interpolation method are generated by an interpolation method different from the first interpolation method.
[0035]
  Claim 15The present invention is an image data interpolation method for generating pixel data of a pixel group in a second range including the first range by interpolation based on the pixel data of the pixel group in the first range for color image data. The pixel group to be interpolated in the second range is interpolated using at least two kinds of interpolation methods, and the interpolation method of each pixel in the pixel group in the second range is the center of each pixel to be interpolated. And the shortest distance in the distance from the center of each pixel of the pixel group in the first range.
[0036]
  Claim 16The present invention is an image data interpolation method for generating pixel data of a pixel group in a second range including the first range by interpolation based on the pixel data of the pixel group in the first range for color image data. Thus, when the second pixel group for which pixel data has been generated through the interpolation is subjected to pixel number conversion, all the pixels to be interpolated in the second pixel group are simply converted according to the conversion rate of the pixel number conversion. It is characterized in that it is determined whether to perform interpolation using one interpolation method or to use different interpolation methods for each pixel to be interpolated.
[0037]
  Claim 17The invention of claim 1416In any one of the inventions, the first range is a rectangular range of x × y pixels, the second range is a rectangular range of m × n pixels, and x <m and y <n. It is a feature.
[0038]
  Claim18The invention of claim 14In the invention, the interpolation method of each pixel to be interpolated in the pixel group in the second range is the distance between the center of each pixel to be interpolated and the center of each pixel in the pixel group in the first range. It is determined according to the shortest distance.
[0039]
  Claim19The invention of claim18In the invention, when the pixel group in the first range is set in an x × y rectangular area, the pixel to be interpolated in the second pixel group adjacent to one of the two sides of the rectangular area is determined. Interpolation is performed using a first interpolation method, and pixels to be interpolated other than the interpolation performed using the first interpolation method are interpolated using an interpolation method different from the first interpolation method. .
[0040]
  Claim 20The invention of claim18In the invention, when the pixel group in the first range is set in an x × y rectangular area, the pixel to be interpolated in the second pixel group adjacent to any one of the four sides of the rectangular area is determined. Interpolation is performed using a first interpolation method, and pixels to be interpolated other than the interpolation performed using the first interpolation method are interpolated using an interpolation method different from the first interpolation method. .
[0041]
  Claim 21The invention of claim1820In any one of the inventions, a nearest neighbor method is used as the first interpolation method, and a linear interpolation method is used as an interpolation method different from the first interpolation method.
[0042]
  Claim 22The invention of claim1820In any one of the inventions, a nearest neighbor method is used as the first interpolation method, and a cubic interpolation method is used as an interpolation method different from the first interpolation method.
[0043]
  Claim 23The invention of claim19Or 20In the invention, the first range is a rectangular range with x × y pixels, the second range is a rectangular range with m × n pixels, and 2x <m and 2y <n. It is.
[0046]
  Claim 24The invention of claim19In the invention, the first range is a rectangular range by x × y pixels, the second range is a rectangular range by m × n pixels, and mx ≧ 3 and ny ≧ 3. It is what.
[0047]
  Claim 25The invention of claim 14In the invention described above, when the pixel group in the first range is set in an x × y rectangular area, pixels to be interpolated in the second range adjacent to one of the two predetermined sides of the rectangular area BecauseThe center of the pixel to be interpolated in the second range;With the center of each pixel in the first rangeIn the distanceLongestDistancePixels to be interpolated in the second range excluding pixels are interpolated by the first interpolation method, and pixels to be interpolated other than those interpolated by the first interpolation method are the first interpolation method and Is characterized by interpolating with different interpolation methods.
[0048]
  Claim26The invention of claim 14In the invention, when the pixel group in the first range is set in an x × y rectangular region, the pixels to be interpolated in the second range adjacent to any of the predetermined four sides of the rectangular region BecauseThe center of the pixel to be interpolated in the second range;With the center of each pixel in the first rangeIn the distanceThe longestDistancePixels to be interpolated in the second range excluding pixels are interpolated by the first interpolation method, and pixels to be interpolated other than those interpolated by the first interpolation method are the first interpolation method and Is characterized by interpolating with different interpolation methods.
[0049]
  Claim27The present invention executes an image data interpolation method for generating pixel data of a pixel group of a second range including the first range by interpolation based on the pixel data of the pixel group of the first range for color image data. A computer-readable recording medium storing a program for performing at least one of pixels adjacent to the pixel group in the first range among pixels in which image data is to be generated by interpolation in the second pixel group Generating pixel data of one pixel using the first interpolation method, and generating pixel data of pixels other than the pixel using the first interpolation method by an interpolation method different from the first interpolation method. A computer-readable recording medium on which a program for executing a characteristic image data interpolation method is recorded.
[0050]
  Claim28The present invention executes an image data interpolation method for generating pixel data of a pixel group of a second range including the first range by interpolation based on the pixel data of the pixel group of the first range for color image data. A computer-readable recording medium on which a program for recording is recorded, wherein the pixel group in the second range is interpolated using at least two types of interpolation methods, and each pixel in the pixel group in the second range The interpolation method is determined according to the shortest distance in the distance between the center of each pixel to be interpolated and the center of each pixel of the pixel group in the first range. It is a computer-readable recording medium which recorded the program for performing this.
[0051]
  Claim29The present invention executes an image data interpolation method for generating pixel data of a pixel group of a second range including the first range by interpolation based on the pixel data of the pixel group of the first range for color image data. A computer-readable recording medium in which a program for recording is recorded, and when the second pixel group in which pixel data is generated through the interpolation is subjected to pixel number conversion, the conversion rate of the pixel number conversion Deciding whether to perform interpolation using a single interpolation method for all the pixels to be interpolated in the second pixel group or to use different interpolation methods for each of the pixels to be interpolated The computer-readable recording medium which recorded the program for performing the image data interpolation method characterized by these.
[0052]
  Claim 30The invention of claim27Or29In any one of the inventions, the first range is a rectangular range of x × y pixels, the second range is a rectangular range of m × n pixels, and x <m and y <n. A computer-readable recording medium on which a program for executing a characteristic image data interpolation method is recorded.
[0053]
  Claim 31The invention of claim27In the invention, a computer-readable recording medium recording a program for executing an interpolation method for each pixel to be interpolated in the pixel group in the second range includes a center of each pixel to be interpolated, A computer-readable recording medium storing a program for executing an image data interpolation method, characterized in that it is determined according to the shortest distance in the distance from the center of each pixel of a pixel group in one range. .
[0054]
  Claim 32The invention of claim 31In the invention, when the pixel group in the first range is set in an x × y rectangular area, the pixel to be interpolated in the second pixel group adjacent to one of the two sides of the rectangular area is determined. Image data interpolation characterized by interpolating with a first interpolation method and interpolating pixels to be interpolated other than those interpolated with said first interpolation method by an interpolation method different from said first interpolation method A computer-readable recording medium recording a program for executing the method.
[0055]
  Claim 33The invention of claim 31In the invention, when the pixel group in the first range is set in an x × y rectangular area, the pixel to be interpolated in the second pixel group adjacent to any one of the four sides of the rectangular area is determined. Image data interpolation characterized by interpolating with a first interpolation method and interpolating pixels to be interpolated other than those interpolated with said first interpolation method by an interpolation method different from said first interpolation method A computer-readable recording medium recording a program for executing the method.
[0056]
  Claim 34The invention of claim 3133In any one of the inventions, an image data interpolation method is performed, wherein a nearest neighbor method is used as the first interpolation method, and a linear interpolation method is used as an interpolation method different from the first interpolation method. The computer-readable recording medium which recorded the program for this.
[0057]
  Claim 35The invention of claim 3133In any one of the inventions, an image data interpolation method is performed, wherein a nearest neighbor method is used as the first interpolation method, and a cubic interpolation method is used as an interpolation method different from the first interpolation method. This is a computer-readable recording medium on which a program for recording is recorded.
[0058]
  Claim36The invention of claim 32Or 33In the invention, the first range is a rectangular range of x × y pixels, the second range is a rectangular range of m × n pixels, and 2x <m and 2y <n. A computer-readable recording medium recording a program for executing a data interpolation method.
[0061]
  Claim37The invention of claim 32In the invention, the first range is a rectangular range by x × y pixels, the second range is a rectangular range by m × n pixels, and mx ≧ 3 and ny ≧ 3. And a computer-readable recording medium on which a program for executing the image data interpolation method is recorded.
[0062]
  Claim38The invention of claim27In the invention described above, when the pixel group in the first range is set in an x × y rectangular area, pixels to be interpolated in the second range adjacent to one of the two predetermined sides of the rectangular area BecauseThe center of the pixel to be interpolated in the second range;For each pixel in the first rangeWithin the distance from the centerLongestDistancePixels to be interpolated in the second range excluding pixels are interpolated by the first interpolation method, and pixels to be interpolated other than those interpolated by the first interpolation method are the first interpolation method and Is a computer-readable recording medium recording a program for executing an image data interpolation method characterized by performing interpolation using different interpolation methods.
[0063]
  Claim39The invention of claim27In the invention, when the pixel group in the first range is set in an x × y rectangular region, the pixels to be interpolated in the second range adjacent to any of the predetermined four sides of the rectangular region And the pixels to be interpolated in the second range excluding the pixels having the longest shortest distance between the center of the pixel and the center of each pixel in the first range from among the pixels. An image data interpolation method characterized by interpolating pixels other than those interpolated by the first interpolation method and interpolating by the first interpolation method by an interpolation method different from the first interpolation method. It is a computer-readable recording medium which recorded the program for performing this.
[0064]
DETAILED DESCRIPTION OF THE INVENTION
Example 1
FIG. 1 is a diagram for explaining an example of a basic interpolation pattern in an image interpolation method according to the present invention. In color image data, 5 × 5 pixels are taken as one unit, and 2 × 2 pixels (black portion) ( When generating 5 × 5 pixels (second range pixel group m × n) from the first range pixel group x × y), two or more interpolation methods are used in combination for pixels other than the black portion. Interpolation. For example, when a pixel adjacent to two sides of a black portion is a gray portion, the gray portion (shaded display portion; the same applies hereinafter) is interpolated by the first interpolation method, and the white portion is the first interpolation method. Interpolation is performed using a different interpolation method.
[0065]
Here, with reference to FIG. 12, the definition of “adjacent pixels” in the present invention will be described. In FIG. 12, the adjacent pixels for the black region are shown as gray portions (shaded display portions). As shown in FIG. 12A, an adjacent pixel is defined as a pixel sharing one side or vertex with respect to the target black pixel. This “sharing” is conceptual and adjacent pixels are defined based on this concept even when there is a distance between the pixels in an actual product. Next, when the black portion is rectangular, the portion shown in FIG. 12B is defined as a pixel adjacent to the two sides (p, q). Further, similarly, the pixels adjacent to the four sides (p, q, r, s) of the rectangular black portion are as shown in FIG. Further, the “pixel group” shown in the present specification is a concept including a case where only one pixel is targeted.
[0066]
FIG. 2 is a diagram for explaining an example of specific image interpolation based on the pattern shown in FIG. 1, and shows an example in which the gray portion uses the nearest neighbor method and the white portion uses the linear interpolation method. That is, as shown in FIG. 2, the gray portion is interpolated using the data of the adjacent black portion as it is, and the white portion is (9) = ((1) + (2)) / 2, (10) = ((5) + (7)) / 2, (11) = ((3) + (4)) / 2, (12) = ((5) + (6)) / 2, (13) = ( Interpolate as (7) + (8)) / 2, (14) = ((6) + (8)) / 2, (15) = ((12) + (13)) / 2.
[0067]
FIG. 3 is a diagram for explaining another example of specific image interpolation based on the pattern of FIG. 1, in which the gray portion is interpolated using the nearest neighbor method and the white portion is interpolated using a cubic interpolation method. To do. That is, the gray part is interpolated using the data of the adjacent black part as it is.
[0068]
Assuming that the coordinate system of the original image is XY, the coordinate system of the converted image is X′Y ′, and there is a linear transformation relationship between the two coordinate systems, the relationship between them is as follows.
x = ax ′ + by ′ + c (I)
y = dx '+ ey' + f (II)
[0069]
Therefore, the relationship between the two coordinates can be obtained by calculating the above a to f using the coordinate values of the corresponding six points. In calculating af, these six points do not necessarily need to be grid points (integer coordinate points).
[0070]
Using the above formula (I) and formula (II), for all the points of the converted image, the corresponding points on the original image are obtained, and the color information of the points on the original image is converted to the color of the points of the converted image Information. However, since not all the corresponding grid points on the original image correspond, the desired color information is interpolated using the color information of the surrounding grid points.
[0071]
Here, a cubic interpolation method is used. In FIG. 3, (1) to (16) are points G to V, and (17) is a point Z. Using the 16 points G to V around the point Z, the following equation 2 is used to interpolate to (17).
f (Z) = f (G) C (xG-xZ) C (yG-yZ) + f (H) C (xH-xZ) C (yH-yZ) +... f (V) C (xV-xZ) C (YV-yZ) (III)
C (t) = 1-2t2 + | t | 3 (0 ≦ | t | <1) (IV)
C (t) = 4-8 | t | + 5t2− | t | 3 (1 ≦ | t | <2) (V)
C (t) = 0 (2 ≦ | t |) (VI)
[0072]
Here, C (t) is an approximate expression of the function sin πx / πx that constitutes the sampling theorem, and expressions (III) to (VI) are used for each of R, G, and B components. In this method, since interpolation is performed using 16 points of information, the speed is lower than in the case of using the linear interpolation method, but the image quality is improved.
[0073]
At this time, if mx ≧ 3, ny ≧ 3, or 2x <m, 2y <n, two or more interpolation methods are used. This is because it is necessary to combine interpolation methods depending on the widths of mx and ny. Further, the width of the gray pixel is 1 pixel. This is because the information of the pixels in the black part is interpolated as it is, and the image quality is deteriorated if the pixels in the gray part become wider than the black part.
[0074]
FIG. 4 is a diagram for explaining another example of the basic interpolation pattern in the image interpolation method according to the present invention. Like the example of FIG. 1, the color image data has 5 × 5 pixels as one unit, When generating 5 × 5 pixels (second range pixel group) from 2 × 2 pixels (first range pixel group) which are black portions, interpolation other than the black portion is interpolated by one or more methods. However, in the example of FIG. 4, within the distance (for example, α, β, γ) from the central part of the black part pixel to the central part of the gray part pixel adjacent to the black part pixel, When the pixel having the longest distance β is a white portion, the gray portion is interpolated by the first interpolation method, and the white portion is interpolated by an interpolation method other than the first interpolation method.
[0075]
FIG. 5 is a diagram for explaining an example of a specific image interpolation based on the pattern of FIG. 4. In this example, the nearest neighbor method is used for the gray portion and the linear interpolation method is used for the white portion. The gray part interpolates the data of the adjacent black part as it is, and the white part is (9) = ((1) + (2)) / 2, (10) = ((5) + (7)) / 2 , (11) = ((3) + (4)) / 2, (12) = ((5) + (6)) / 2, (13) = ((7) + (8)) / 2, ( 14) = ((6) + (8)) / 2, (15) = 1/4 × ((7) + 3 × (5)), (16) = 1/3 × ((7) + 2 × (15 )), (17) = 1/2 × ((7) + (16)), (18) = 1/4 × ((13) + 3 × (12)), (19) = 1/3 × (( 13) + 2 × (18)), (20) = ½ × ((13) + (19)). At this time, if mx ≧ 3, ny ≧ 3, or 2x <m, 2y <n, two or more interpolation methods are used. This is because it is necessary to combine interpolation methods depending on the widths of mx and ny. Further, the width of the gray pixel is 1 pixel. This is because the information of the pixels in the black part is interpolated as it is, and the image quality is deteriorated if the pixels in the gray part become wider than the black part.
[0076]
FIG. 6 is a diagram for explaining still another example of a basic interpolation pattern in the image interpolation method according to the present invention. Like the example of FIG. 1, 5 × 5 pixels are used as one unit for color image data, When generating 5 x 5 pixels (second range pixel group) from 2 x 2 pixels (first range pixel group) that are black parts, interpolation other than black part is interpolated by one or more interpolation methods However, here, when the pixels adjacent to the four sides of the black portion are gray portions, the gray portion is interpolated by the first method, and the white portion is interpolated by an interpolation method other than the first interpolation method.
[0077]
FIG. 7 is a diagram for explaining an example of specific image interpolation based on the pattern of FIG. 6, and the gray portion uses the nearest neighbor method and the white portion uses the linear interpolation method. The gray part interpolates the data of the adjacent black part as it is, and the white part is (7) = ((2) + (5)) / 2, (8) = ((4) + (6)) / Interpolate as 2. At this time, if mx ≧ 3, ny ≧ 3, or 2x <m, 2y <n, two or more interpolation methods are used. This is because it is necessary to combine interpolation methods depending on the widths of mx and ny. Further, the width of the gray portion is 2 pixels. This is because the information on the pixels in the black portion is used for interpolation, and the image quality is deteriorated if the pixels in the gray portion become wider than the black portion.
[0078]
FIG. 8 is a diagram for explaining still another example of the basic interpolation pattern in the image interpolation method according to the present invention, and in the same manner as in the above example, 5 × 5 pixels are used as one unit for color image data. When generating 5 × 5 pixels (second range pixel group) from 2 × 2 pixels (first range pixel group), which is a portion, interpolation other than the black portion is interpolated by one or more interpolation methods. However, in the same way as in the example shown in FIG. 4, when the pixel excluding the pixels adjacent to the four sides of the black portion and the pixel farthest from the black portion is the gray portion, the gray portion is the first interpolation method. The white portion is interpolated by an interpolation method other than the first interpolation method.
[0079]
FIG. 9 is a diagram for explaining an example of specific image interpolation based on the pattern of FIG. 8, in which the gray portion is interpolated using the nearest neighbor method and the white portion is interpolated using the linear interpolation method. did. The gray part is interpolated using the data of the adjacent black part as it is, and the white part is (9) = ((2) + (5)) / 2, (10) = ((4) + (7) ) / 2, (11) = 1/4 × ((5) + 3 × (2)), (12) = 1/3 × ((5) + 2 × (11)), (13) = 1/2 ( (5) + (12)), (14) = 1/4 × ((7) + 3 × (4)), (15) = 1/3 × ((7) + 2 × (14)), (16) = 1/2 × ((7) + (15)). At this time, if m−x ≧ 3, ny ≧ 3, or 2x <m, 2y <n, two or more interpolation methods are used. This is because it is necessary to combine interpolation methods depending on the widths of mx and ny. Further, the width of the gray portion is 2 pixels. This is because the information on the pixels in the black portion is used for interpolation, and the image quality is deteriorated if the pixels in the gray portion become wider than the black portion.
[0080]
FIG. 13 is a flowchart summarizing the processing of the image data interpolation apparatus of the present invention shown in FIGS. First, when 5 × 5 pixels are taken as one unit, compressed pixel data of 2 × 2 pixels is decompressed and restored (step S1). Next, pixel data obtained by interpolating the pixels adjacent to the 2 × 2 pixels or pixels adjacent to the 2 × 2 pixels and excluding the pixels farthest from the 2 × 2 pixels by the first interpolation method is used. Is generated and restored (step S2). Next, other pixel is interpolated by a method other than the first interpolation method to generate and restore pixel data (step S3).
[0081]
10 and 11 are diagrams for explaining still another example of the basic interpolation pattern in the image interpolation method according to the present invention. The pixel group generated after the interpolation is further subjected to pixel conversion and enlarged, for example. This is for explaining an example in which an interpolation method is set according to the conversion rate when such a case is assumed.
[0082]
Here, 2 × 2 pixels are used as one unit, and when generating 2 × 2 pixels from 1 × 1 pixels that are black portions, interpolation of a white portion is performed by one interpolation method or a plurality of interpolation methods. Is used in accordance with the conversion rate of the subsequent pixel conversion. Here, FIG. 11 shows a case where the original 2 × 2 pixels are converted to 4 × 4 pixels by performing pixel conversion with a conversion rate of twice. At this time, when generating 2 × 2 pixels from 1 × 1 pixels, which are black portions shown in FIG. 10, the interpolation method is determined according to the conversion rate, and when a plurality of interpolation methods are used, interpolation of the white portion is performed. For example, it is determined whether to perform the nearest neighbor method or to perform the interpolation by combining the nearest neighbor method and the linear interpolation method, for example.
[0083]
FIG. 14 is a flowchart showing an outline of processing using a plurality of interpolation methods in the processing of the image data interpolation apparatus of the present invention shown in FIGS. First, when 2 × 2 pixels are taken as one unit, 1 × 1 pixel is restored (step S11), and at least a part of pixels adjacent to the restored 1 × 1 pixel is interpolated by the first interpolation method to obtain pixel data. Is generated and restored (step S12), and other pixel is interpolated by a method other than at least the first interpolation method to generate pixel data (step S13), and pixel conversion is performed on the generated pixel group. (Step S14).
[0084]
Next, an example of pixel data interpolation method processing corresponding to each claim of the present application will be described. FIG. 15 is a flowchart for explaining an example of image interpolation processing corresponding to claim 16. First, the pixel group in the first range is restored (step S21), pixels adjacent to the first range are interpolated by the first interpolation method (step S22), and other pixels are interpolated by an interpolation method other than the first. (Step S23), the target image data is generated.
[0085]
FIG. 16 is a flowchart for explaining an example of image interpolation processing corresponding to claim 17. First, the pixel group in the first range is restored (step S31), and then a plurality of interpolation target pixels are selected according to the distance between the centers of the interpolation target pixels in the second range and the pixels in the first range. Interpolation is performed by an interpolation method (step S32).
[0086]
FIG. 17 is a flowchart for explaining an example of image interpolation processing corresponding to claim 18. First, the pixel group in the first range is restored (step S41), an interpolation method to be applied is determined according to the pixel conversion rate (step S42), and the interpolation method determined at this time uses a plurality of interpolation methods. If there is, the target pixel is interpolated by the first interpolation method according to the corresponding interpolation condition (steps S43 to S44), and other pixels are interpolated by a method other than the first interpolation method (step S45). If only a single interpolation method is used in step S43, the target pixel is interpolated according to the corresponding interpolation condition (step S46).
[0087]
The processing corresponding to claim 19 is the processing shown in FIGS. 15 to 17 in which the first range is processed as a rectangle and the second range is processed as a larger rectangular range.
[0088]
FIG. 18 is a flowchart for explaining an example of image interpolation processing corresponding to claim 20. First, the pixel group in the first range is restored (step S51), and is determined according to the center-to-center distance with the pixels in the first range among the target pixels in the second range adjacent to the first range. The interpolated pixels are interpolated by the first interpolation method (step S52), and then the other pixels are interpolated by an interpolation method other than the first (step S53).
[0089]
FIG. 19 is a flowchart for explaining an example of image interpolation processing corresponding to claim 21. First, a rectangular pixel group in the first range is restored (step S61), adjacent pixels to two sides of the first range are interpolated by the first interpolation method (step S62), and then other pixels are changed to the first range. Interpolation is performed by a method other than the interpolation method 1 (step S63).
[0090]
FIG. 20 is a flowchart for explaining an example of image interpolation processing corresponding to claim 22. First, the rectangular pixel group in the first range is restored (step S71), adjacent pixels to the four sides of the first range are interpolated by the first interpolation method (step S72), and then the other pixels are Interpolation is performed by a method other than the interpolation method 1 (step S73).
[0091]
The processing corresponding to claim 23 uses the nearest neighbor method as the first interpolation method and the linear interpolation method as the second interpolation method in each of the above flows. In the processing corresponding to claim 24, in each of the above flows, the nearest neighbor method is used as the first interpolation method, and the cubic interpolation method is used as the second interpolation method.
[0092]
The processing corresponding to claim 25 is the processing shown in FIG. 19 or FIG. 20, wherein the first range is an x × y rectangular range, the second range is an m × n rectangular range, 2x <m, And 2y <n. The processing corresponding to claim 26 is the processing shown in FIG. 19 in which the width of the pixel to be interpolated by the first interpolation method is x / 2 pixels or less, and the processing corresponding to claim 27 is the processing shown in FIG. In the processing shown in (1), the width of pixels to be interpolated by the first interpolation method is set to x pixels or less. Furthermore, in the processing corresponding to claim 28, in the processing shown in FIG. 19, the first range is a rectangular range of x × y pixels, the second range is a rectangular range of m × n pixels, and mx ≧ 3. , N−y ≧ 3.
[0093]
FIG. 21 is a flowchart for explaining an example of image interpolation processing corresponding to claim 29. First, the rectangular pixel group in the first range is restored (step S81), and then, among the interpolation target pixels adjacent to the two sides of the first range pixel group, the distance between the centers of the pixels in the first range is set. The pixels determined accordingly are interpolated by the first interpolation method (step S82), and then other pixels are interpolated by a method other than the first interpolation method (step S83) to generate target image data.
[0094]
FIG. 22 is a flowchart for explaining an example of image interpolation processing corresponding to claim 30. First, a rectangular pixel group in the first range is restored (step S91), and then, among the interpolation target pixels adjacent to the four sides of the first range pixel group, the distance between the centers of the pixels in the first range is set. The pixels determined accordingly are interpolated by the first interpolation method (step S92), and then other pixels are interpolated by a method other than the first interpolation method (step S93) to generate target image data.
[0095]
Next, a configuration example of the image data interpolation apparatus of the present invention will be described. FIG. 23 is a diagram for explaining an example of a device configuration and a peripheral system configuration for realizing the image interpolation method of the present invention. 23, the image interpolation apparatus of the present invention is configured to have at least a CPU 4a for performing image processing, a RAM 4b for storing programs and data for processing, and interfaces for data input / output, as shown in FIG. In the example, it is configured to be applied to a printer 4 that inputs compressed image data, decompresses it, and prints a generated image.
[0096]
An outline of a flow from generation of compressed data to data expansion according to the present invention will be described. In the system shown in FIG. 23, HDD 1, CPU 3, RAM 2, and printer 4 are connected via a data bus 5. When the original image is printed out, the image is compressed, and the compressed data is transmitted to the printer. That is, the original image recorded on the HDD 1 is read onto the RAM 2 in accordance with a command from the CPU 3 (A). P read the original image1And The CPU 3 partially reads an image on the RAM 2 (A), applies a predetermined quantization method to perform compression, and records it again in the RAM 2 (C). The compressed image written in RAM 2 is P2And
[0097]
Then, the compressed data is recorded on the RAM 4b in the printer 4 according to a command from the CPU 3 (D). The CPU 4a in the printer 4 reads the compressed data (e), obtains a decoded value by applying the image interpolation method according to the present invention, and decompresses the image. The CPU 4a writes the decompressed data on the RAM 4b (f). P for the expanded imageThreeAnd The printer 4 prints out the decompressed data according to a predetermined procedure.
[0098]
Next, an embodiment of a recording medium storing a program and data for realizing the function of the image data interpolation apparatus according to the present invention will be described. As the recording medium, specifically, a CD-ROM, a magneto-optical disk, a DVD-ROM, a floppy disk, a flash memory, and other various ROMs and RAMs can be assumed. The function of the form is executed by a computer and distributed, thereby facilitating the realization of the function. Then, load the recording medium as described above into an information processing apparatus such as a computer and read the program by the information processing apparatus, or store the program in a storage medium provided in the information processing apparatus, and if necessary By reading, the function of the image data interpolation apparatus according to the present invention can be executed. Obviously, such a recording medium can be easily implemented based on the above-described embodiment.
[0099]
【The invention's effect】
  Claims 1, 14as well as27According to this invention, it is possible to achieve high speed and high image quality by performing a combination of interpolation.
  Claims 2, 15as well as28According to the invention, the image quality after decompression of the compressed data can be maintained by changing the interpolation method according to the distance between the centers from the pixel group in the first range.
  Claims 3, 16as well as29According to this invention, the image quality after decompression of the compressed data can be maintained by selecting an interpolation method suitable for the conversion rate.
[0100]
  Claims 4, 17And 30According to this invention, interpolation can be performed at high speed by making the interpolation processing unit a simple form rectangle.
  Claim 518And 31According to this invention, it is possible to maintain the image quality after decompression of compressed data, rather than performing interpolation by one interpolation method.
  Claim 6,19And 32According to the invention, by restoring the pixels adjacent to the two sides of the x × y pixel by the first method, the interpolation can be performed at a higher speed than the case of performing the interpolation by one interpolation method, and the compressed data Image quality after restoration can be maintained.
[0101]
  Claims 7 and 20And 33According to the invention, it is possible to perform high-speed interpolation by restoring the pixels adjacent to the four sides of the x × y pixel by the first method, and it is possible to maintain the image quality in the non-edge portion.
  Claims 8 and 21And 34According to this invention, interpolation can be performed in a simple form while maintaining high image quality.
  Claims 9 and 22And 35According to the invention, the image quality after decompression of the image quality compressed data can be improved, although the speed is somewhat lower than that of the linear interpolation method.
[0102]
  Claims 10 and 23as well as36According to the invention, the image quality after decompression of the compressed data can be maintained by using at least two interpolation methods..
[0103]
  Claim 11, 24as well as37According to this invention, the effect can be exhibited more when the width of the pixel is vacant.
  Claim 12, 25as well as38According to the invention, it is possible to maintain the image quality after restoring the compressed data, rather than restoring the pixels adjacent to the two sides of the x × y pixel only by the first interpolation method.
  Claim 13,26as well as39According to the invention, it is possible to maintain the image quality after restoring the compressed data, rather than restoring the pixels adjacent to the four sides of the x × y pixel only by the first interpolation method.
[Brief description of the drawings]
FIG. 1 is a diagram for explaining an example of a basic interpolation pattern in an image interpolation method according to the present invention.
FIG. 2 is a diagram for explaining an example of image interpolation based on the basic pattern of FIG. 1;
FIG. 3 is a diagram for explaining another example of image interpolation based on the basic pattern of FIG. 1;
FIG. 4 is a diagram for explaining another example of a basic interpolation pattern in the image interpolation method according to the present invention.
5 is a diagram for explaining an example of image interpolation based on the basic pattern of FIG. 4; FIG.
FIG. 6 is a diagram for explaining still another example of a basic interpolation pattern in the image interpolation method according to the present invention.
7 is a diagram for explaining an example of image interpolation based on the basic pattern of FIG. 6; FIG.
FIG. 8 is a diagram for explaining still another example of a basic interpolation pattern in the image interpolation method according to the present invention.
9 is a diagram for explaining an example of image interpolation based on the basic pattern of FIG. 8. FIG.
FIG. 10 is a diagram for explaining still another example of a basic interpolation pattern in the image interpolation method according to the present invention.
FIG. 11 is a diagram for explaining still another example of a basic interpolation pattern in the image interpolation method according to the present invention.
FIG. 12 is a diagram for explaining the definition of “adjacent pixels” in the present invention.
13 is a flowchart summarizing the processing of the image data interpolation apparatus of the present invention shown in FIGS. 1 to 9; FIG.
14 is a flowchart summarizing the processing of the image data interpolation apparatus of the present invention shown in FIGS. 10 and 11. FIG.
FIG. 15 is a flowchart for explaining an example of image interpolation processing corresponding to claim 16;
FIG. 16 is a flowchart for explaining an example of image interpolation processing corresponding to claim 17;
FIG. 17 is a flowchart for explaining an example of image interpolation processing corresponding to claim 18;
FIG. 18 is a flowchart for explaining an example of image interpolation processing corresponding to claim 20;
FIG. 19 is a flowchart for explaining an example of image interpolation processing corresponding to claim 21;
FIG. 20 is a flowchart for explaining an example of image interpolation processing corresponding to claim 22;
FIG. 21 is a flowchart for explaining an example of image interpolation processing corresponding to claim 29;
FIG. 22 is a flowchart for explaining an example of image interpolation processing corresponding to claim 30;
FIG. 23 is a diagram for explaining an example of a device configuration and a peripheral system configuration for realizing the image interpolation method of the present invention.
[Explanation of symbols]
DESCRIPTION OF SYMBOLS 1 ... HDD, 2, 4b ... RAM, 3, 4a ... CPU, 4 ... Printer, 5 ... Data bus.

Claims (39)

カラー画像データについて、第1の範囲の画素群の画素データに基づく補間によって、該第1の範囲を含む第2の範囲の画素群の画素データを生成する画像データ補間装置であって、前記第2の画素群において補間によって画像データを生成すべき画素のうち、前記第1の範囲の画素群に隣接する画素の少なくとも1つの画素の画素データを第1の補間方法を用いて生成し、該第1の補間方法を用いた画素以外の画素の画素データを第1の補間方法とは異なる補間方法で生成する手段を有することを特徴とする画像データ補間装置。  An image data interpolation device that generates pixel data of a pixel group in a second range including the first range by interpolation based on pixel data of a pixel group in the first range for color image data, Generating pixel data of at least one pixel of pixels adjacent to the pixel group in the first range among the pixels in which image data should be generated by interpolation in the two pixel groups, and using the first interpolation method, An image data interpolation device comprising means for generating pixel data of pixels other than pixels using the first interpolation method by an interpolation method different from the first interpolation method. カラー画像データについて、第1の範囲の画素群の画素データに基づく補間によって、該第1の範囲を含む第2の範囲の画素群の画素データを生成する画像データ補間装置であって、前記第2の範囲の補間すべき画素群は少なくとも2種類以上の補間方法を用いて補間され、前記第2の範囲の画素群における各画素の補間方法が、補間すべき各画素の中心と、前記第1の範囲の画素群の各画素の中心との距離における最短の距離に応じて決定されるようにした手段を有することを特徴とする画像データ補間装置。  An image data interpolation device that generates pixel data of a pixel group in a second range including the first range by interpolation based on pixel data of a pixel group in the first range for color image data, The pixel group to be interpolated in the range 2 is interpolated using at least two or more types of interpolation methods, and the interpolation method for each pixel in the pixel group in the second range includes the center of each pixel to be interpolated, An image data interpolating apparatus comprising means for determining in accordance with the shortest distance in the distance from the center of each pixel of a pixel group in one range. カラー画像データについて、第1の範囲の画素群の画素データに基づく補間によって、該第1の範囲を含む第2の範囲の画素群の画素データを生成する画像データ補間装置であって、前記補間を経て画素データを生成された第2の画素群が画素数変換を受ける場合、該画素数変換の変換率によって、前記第2の画素群における補間すべき全ての画素に対し単一の補間方法を用いて補間を行うか、該補間すべき画素のそれぞれについて複数の補間方法を使い分けて補間を行うかを決定する手段を有することを特徴とする画像データ補間装置。  An image data interpolation device that generates pixel data of a pixel group in a second range including the first range by interpolation based on pixel data of a pixel group in the first range for color image data, the interpolation When the second pixel group for which pixel data has been generated through the process undergoes pixel number conversion, a single interpolation method for all the pixels to be interpolated in the second pixel group according to the conversion rate of the pixel number conversion An image data interpolating apparatus comprising means for determining whether to perform interpolation using a plurality of interpolation methods or to use different interpolation methods for each pixel to be interpolated. 請求項1ないし3のいずれか1に記載の画像データ補間装置において、前記第1の範囲をx×y画素による矩形範囲とし、前記第2の範囲をm×n画素による矩形範囲とし、x<m、かつy<nであることを特徴とする画像データ補間装置。  4. The image data interpolation apparatus according to claim 1, wherein the first range is a rectangular range of x × y pixels, the second range is a rectangular range of m × n pixels, and x < An image data interpolation apparatus, wherein m and y <n. 請求項1に記載の画像データ補間装置において、前記第2の範囲の画素群における補間すべき各画素の補間方法は、該補間すべき各画素の中心と、前記第1の範囲の画素群の各画素の中心との距離における最短の距離に応じて決定されることを特徴とする画像データ補間装置。  The image data interpolation apparatus according to claim 1, wherein an interpolation method of each pixel to be interpolated in the pixel group in the second range includes a center of each pixel to be interpolated and a pixel group in the first range. An image data interpolating apparatus characterized by being determined according to the shortest distance in the distance from the center of each pixel. 請求項5に記載の画像データ補間装置において、前記第1の範囲の画素群がx×yの矩形領域で設定されているとき、前記矩形領域の2辺のいずれかに隣接する前記第2の画素群の補間すべき画素を第1の補間方法で補間し、前記第1の補間方法で補間を行った以外の補間すべき画素を、前記第1の補間方法とは異なる補間方法で補間することを特徴とする画像データ補間装置。  6. The image data interpolation apparatus according to claim 5, wherein when the pixel group in the first range is set as an x × y rectangular area, the second area adjacent to one of two sides of the rectangular area. The pixels to be interpolated in the pixel group are interpolated by the first interpolation method, and the pixels to be interpolated other than the interpolation by the first interpolation method are interpolated by an interpolation method different from the first interpolation method. An image data interpolating apparatus characterized by that. 請求項5に記載の画像データの補間装置において、前記第1の範囲の画素群がx×yの矩形領域で設定されているとき、前記矩形領域の4辺のいずれかに隣接する前記第2の画素群の補間すべき画素を第1の補間方法で補間し、前記第1の補間方法で補間を行った以外の補間すべき画素を、前記第1の補間方法とは異なる補間方法で補間することを特徴とする画像データ補間装置。  6. The image data interpolating apparatus according to claim 5, wherein when the pixel group in the first range is set as an x × y rectangular area, the second adjacent to any one of four sides of the rectangular area. The pixels to be interpolated in the pixel group are interpolated by the first interpolation method, and the pixels to be interpolated other than the interpolation by the first interpolation method are interpolated by an interpolation method different from the first interpolation method. An image data interpolation apparatus characterized by: 請求項5ないし7のいずれか1に記載の画像データ補間装置において、前記第1の補間方法として最近傍法を用い、前記第1の補間方法とは異なる補間方法として線形補間法を用いることを特徴とする画像データ補間装置。  8. The image data interpolation apparatus according to claim 5, wherein a nearest neighbor method is used as the first interpolation method, and a linear interpolation method is used as an interpolation method different from the first interpolation method. A featured image data interpolation device. 請求項5ないし7のいずれか1に記載の画像データ補間装置において、前記第1の補間方法として最近傍法を用い、前記第1の補間方法とは異なる補間方法として3次補間法を用いることを特徴とする画像データ補間装置。  8. The image data interpolation apparatus according to claim 5, wherein a nearest neighbor method is used as the first interpolation method, and a cubic interpolation method is used as an interpolation method different from the first interpolation method. An image data interpolation device characterized by the above. 請求項6または7に記載の画像データ補間装置において、前記第1の範囲をx×y画素による矩形範囲とし、前記第2の範囲をm×n画素による矩形範囲とし、2x<m、かつ2y<nとしたことを特徴とする画像データ補間装置。  8. The image data interpolation apparatus according to claim 6, wherein the first range is a rectangular range of x × y pixels, the second range is a rectangular range of m × n pixels, and 2x <m and 2y. An image data interpolating device characterized in that <n. 請求項6に記載の画像データ補間装置において、前記第1の範囲をx×y画素による矩形範囲とし、前記第2の範囲をm×n画素による矩形範囲とし、m−x≧3、n−y≧3としたことを特徴とする画像データ補間装置。  7. The image data interpolating apparatus according to claim 6, wherein the first range is a rectangular range of x × y pixels, the second range is a rectangular range of m × n pixels, and mx ≧ 3, n−. An image data interpolating apparatus characterized in that y ≧ 3. 請求項1に記載の画像データ補間装置において、前記第1の範囲の画素群がx×yの矩形領域で設定されているとき、前記矩形領域の所定の2辺のいずれかに隣接する前記第2の範囲の補間すべき画素であって、前記第2の範囲の補間すべき画素の中心と前記第1の範囲の各画素の中心との距離の中で、最も長い距離である画素を除いた前記第2の範囲の補間すべき画素を第1の補間方法で補間し、前記第1の補間方法で補間を行った以外の補間すべき画素を、前記第1の補間方法とは異なる補間方法で補間することを特徴とする画像データ補間装置。2. The image data interpolation device according to claim 1, wherein when the pixel group in the first range is set in an x × y rectangular area, the first adjacent to either one of the two predetermined sides of the rectangular area. Pixels to be interpolated in a range of 2 except for the pixel having the longest distance among the centers of the pixels to be interpolated in the second range and the centers of the pixels in the first range In addition, the pixels to be interpolated in the second range are interpolated by the first interpolation method, and the pixels to be interpolated other than the interpolation by the first interpolation method are different from the first interpolation method. An image data interpolating apparatus characterized by interpolating by a method. 請求項1に記載の画像データ補間装置において、前記第1の範囲の画素群がx×yの矩形領域で設定されているとき、前記矩形領域の所定の4辺のいずれかに隣接する前記第2の範囲の補間すべき画素であって、前記第2の範囲の補間すべき画像の中心と前記第1の範囲の各画素の中心との距離の中で、最も長い距離である画素を除いた前記第2の範囲の補間すべき画素を第1の補間方法で補間し、前記第1の補間方法で補間を行った以外の補間すべき画素を、前記第1の補間方法とは異なる補間方法で補間することを特徴とする画像データ補間装置。2. The image data interpolation device according to claim 1, wherein when the pixel group in the first range is set in an x × y rectangular area, the first adjacent to any one of predetermined four sides of the rectangular area. Pixels to be interpolated in the range of 2 except for the pixel having the longest distance among the centers of the images to be interpolated in the second range and the centers of the pixels in the first range In addition, the pixels to be interpolated in the second range are interpolated by the first interpolation method, and the pixels to be interpolated other than the interpolation by the first interpolation method are different from the first interpolation method. An image data interpolating apparatus characterized by interpolating by a method. カラー画像データについて、第1の範囲の画素群の画素データに基づく補間によって、該第1の範囲を含む第2の範囲の画素群の画素データを生成する画像データ補間方法であって、前記第2の画素群において補間によって画像データを生成すべき画素のうち、前記第1の範囲の画素群に隣接する画素の少なくとも1つの画素の画素データを第1の補間方法を用いて生成し、該第1の補間方法を用いた画素以外の画素の画素データを第1の補間方法とは異なる補間方法で生成することを特徴とする画像データ補間方法。  An image data interpolation method for generating pixel data of a pixel group in a second range including the first range by interpolation based on pixel data of a pixel group in a first range for color image data, Generating pixel data of at least one pixel of pixels adjacent to the pixel group in the first range among the pixels in which image data should be generated by interpolation in the two pixel groups, and using the first interpolation method, An image data interpolation method, wherein pixel data of pixels other than pixels using the first interpolation method is generated by an interpolation method different from the first interpolation method. カラー画像データについて、第1の範囲の画素群の画素データに基づく補間によって、該第1の範囲を含む第2の範囲の画素群の画素データを生成する画像データ補間方法であって、前記第2の範囲の補間すべき画素群は少なくとも2種類以上の補間方法を用いて補間され、前記第2の範囲の画素群における各画素の補間方法が、補間すべき各画素の中心と、前記第1の範囲の画素群の各画素の中心との距離における最短の距離に応じて決定されることを特徴とする画像データ補間方法。  An image data interpolation method for generating pixel data of a pixel group in a second range including the first range by interpolation based on pixel data of a pixel group in a first range for color image data, The pixel group to be interpolated in the range 2 is interpolated using at least two or more types of interpolation methods, and the interpolation method for each pixel in the pixel group in the second range includes the center of each pixel to be interpolated, An image data interpolation method, wherein the image data interpolation method is determined according to a shortest distance in a distance from a center of each pixel of a pixel group in a range of one. カラー画像データについて、第1の範囲の画素群の画素データに基づく補間によって、該第1の範囲を含む第2の範囲の画素群の画素データを生成する画像データ補間方法であって、前記補間を経て画素データを生成された第2の画素群が画素数変換を受ける場合、該画素数変換の変換率によって、前記第2の画素群における補間すべき全ての画素に対し単一の補間方法を用いて補間を行うか、該補間すべき画素のそれぞれについて複数の補間方法を使い分けて補間を行うかを決定することを特徴とする画像データ補間方法。  An image data interpolation method for generating pixel data of a pixel group in a second range including the first range by interpolation based on pixel data of a pixel group in the first range for color image data, the interpolation When the second pixel group for which the pixel data is generated through the pixel number undergoes pixel number conversion, a single interpolation method for all the pixels to be interpolated in the second pixel group according to the conversion rate of the pixel number conversion A method for interpolating image data, wherein it is determined whether to perform interpolation using a plurality of interpolation methods for each pixel to be interpolated. 請求項1ないし1のいずれか1に記載の画像データ補間方法において、前記第1の範囲をx×y画素による矩形範囲とし、前記第2の範囲をm×n画素による矩形範囲とし、x<m、かつy<nであることを特徴とする画像データ補間方法。An image data interpolation method according to any one of claims 1 4 to 1 6, the first range is a rectangular range by x × y pixels, the second range is a rectangular range of the m × n pixels, An image data interpolation method, wherein x <m and y <n. 請求項1に記載の画像データ補間方法において、前記第2の範囲の画素群における補間すべき各画素の補間方法は、該補間すべき各画素の中心と、前記第1の範囲の画素群の各画素の中心との距離における最短の距離に応じて決定されることを特徴とする画像データ補間方法。An image data interpolation method according to claim 1 4, interpolation method for each pixel to be interpolated in the pixel group of the second range, the center of each pixel to be between該補, pixel groups of the first range An image data interpolation method characterized by being determined according to the shortest distance in the distance from the center of each pixel. 請求項18に記載の画像データ補間方法において、前記第1の範囲の画素群がx×yの矩形領域で設定されているとき、前記矩形領域の2辺のいずれかに隣接する前記第2の画素群の補間すべき画素を第1の補間方法で補間し、前記第1の補間方法で補間を行った以外の補間すべき画素を、前記第1の補間方法とは異なる補間方法で補間することを特徴とする画像データ補間方法。19. The image data interpolation method according to claim 18 , wherein when the pixel group in the first range is set as an x × y rectangular area, the second area adjacent to one of two sides of the rectangular area. The pixels to be interpolated in the pixel group are interpolated by the first interpolation method, and the pixels to be interpolated other than the interpolation by the first interpolation method are interpolated by an interpolation method different from the first interpolation method. An image data interpolation method characterized by the above. 請求項18に記載の画像データ補間方法において、前記第1の範囲の画素群がx×yの矩形領域で設定されているとき、前記矩形領域の4辺のいずれかに隣接する前記第2の画素群の補間すべき画素を第1の補間方法で補間し、前記第1の補間方法で補間を行った以外の補間すべき画素を、前記第1の補間方法とは異なる補間方法で補間することを特徴とする画像データ補間方法。19. The image data interpolation method according to claim 18 , wherein when the pixel group in the first range is set in an x × y rectangular area, the second area adjacent to any one of four sides of the rectangular area. The pixels to be interpolated in the pixel group are interpolated by the first interpolation method, and the pixels to be interpolated other than the interpolation by the first interpolation method are interpolated by an interpolation method different from the first interpolation method. An image data interpolation method characterized by the above. 請求項18ないし2のいずれか1に記載の画像データ補間方法において、前記第1の補間方法として最近傍法を用い、前記第1の補間方法とは異なる補間方法として線形補間法を用いることを特徴とする画像データ補間方法。An image data interpolation method according to any one of claims 18 to 2 0, using the nearest neighbor method as the first interpolation method, the use of linear interpolation as different interpolation method from the first interpolation method A method for interpolating image data. 請求項18ないし2のいずれか1に記載の画像データ補間方法において、前記第1の補間方法として最近傍法を用い、前記第1の補間方法とは異なる補間方法として3次補間法を用いることを特徴とする画像データ補間方法。An image data interpolation method according to any one of claims 18 to 2 0, using the nearest neighbor method as the first interpolation method, using a cubic interpolation method as different interpolation method from the first interpolation method An image data interpolation method characterized by the above. 請求項19または2に記載の画像データの補間方法において、前記第1の範囲をx×y画素による矩形範囲とし、前記第2の範囲をm×n画素による矩形範囲とし、2x<m、かつ2y<nとしたことを特徴とする画像データ補間方法。In the interpolation method of the image data according to claim 19 or 2 0, the first range is a rectangular range by x × y pixels, the second range is a rectangular range of the m × n pixels, 2x <m, An image data interpolation method characterized in that 2y <n. 請求項19に記載の画像データ補間方法において、前記第1の範囲をx×y画素による矩形範囲とし、前記第2の範囲をm×n画素による矩形範囲とし、m−x≧3、n−y≧3としたことを特徴とする画像データ補間方法。20. The image data interpolation method according to claim 19 , wherein the first range is a rectangular range of x × y pixels, the second range is a rectangular range of m × n pixels, and mx ≧ 3, n−. An image data interpolation method characterized in that y ≧ 3. 請求項1に記載の画像データ補間方法において、前記第1の範囲の画素群がx×yの矩形領域で設定されているとき、前記矩形領域の所定の2辺のいずれかに隣接する前記第2の範囲の補間すべき画素であって、前記第2の範囲の補間すべき画素の中心と前記第1の範囲の各画素の中心との距離の中で、最も長い距離である画素を除いた前記第2の範囲の補間すべき画素を第1の補間方法で補間し、前記第1の補間方法で補間を行った以外の補間すべき画素を、前記第1の補間方法とは異なる補間方法で補間することを特徴とする画像データ補間方法。An image data interpolation method according to claim 1 4, pixel group of the first range when it is set in a rectangular area of x × y, adjacent to one of two predetermined sides of the rectangular region and the A pixel that is to be interpolated in the second range, and that is the longest distance among the distances between the center of the pixel to be interpolated in the second range and the center of each pixel in the first range. The pixels to be interpolated in the second range excluded are interpolated by the first interpolation method, and the pixels to be interpolated other than those interpolated by the first interpolation method are different from the first interpolation method. An image data interpolation method characterized by interpolating with an interpolation method. 請求項1に記載の画像データ補間方法において、前記第1の範囲の画素群がx×yの矩形領域で設定されているとき、前記矩形領域の所定の4辺のいずれかに隣接する前記第2の範囲の補間すべき画素であって、前記第2の範囲の補間すべき画素の中心と前記第1の範囲の各画素の中心との距離の中で、最も長い距離である画素を除いた前記第2の範囲の補間すべき画素を第1の補間方法で補間し、前記第1の補間方法で補間を行った以外の補間すべき画素を、前記第1の補間方法とは異なる補間方法で補間することを特徴とする画像データ補間方法。An image data interpolation method according to claim 1 4, pixel group of the first range when it is set in a rectangular area of x × y, adjacent to one of the predetermined four sides of the rectangular region and the A pixel that is to be interpolated in the second range, and that is the longest distance among the distances between the center of the pixel to be interpolated in the second range and the center of each pixel in the first range. The pixels to be interpolated in the second range excluded are interpolated by the first interpolation method, and the pixels to be interpolated other than those interpolated by the first interpolation method are different from the first interpolation method. An image data interpolation method characterized by interpolating with an interpolation method. カラー画像データについて、第1の範囲の画素群の画素データに基づく補間によって、該第1の範囲を含む第2の範囲の画素群の画素データを生成する画像データ補間方法を実行するためのプログラムを記録したコンピュータ読みとり可能な記録媒体であって、前記第2の画素群において補間によって画像データを生成すべき画素のうち、前記第1の範囲の画素群に隣接する画素の少なくとも1つの画素の画素データを第1の補間方法を用いて生成し、該第1の補間方法を用いた画素以外の画素の画素データを第1の補間方法とは異なる補間方法で生成することを特徴とする画像データ補間方法を実行するためのプログラムを記録したコンピュータ読みとり可能な記録媒体。  A program for executing an image data interpolation method for generating pixel data of a pixel group of a second range including the first range by interpolation based on the pixel data of the pixel group of the first range for color image data A computer-readable recording medium on which at least one pixel of pixels adjacent to the pixel group in the first range is selected from among pixels in which image data is to be generated by interpolation in the second pixel group. An image characterized in that pixel data is generated using a first interpolation method, and pixel data of pixels other than the pixels using the first interpolation method is generated by an interpolation method different from the first interpolation method. A computer-readable recording medium recording a program for executing a data interpolation method. カラー画像データについて、第1の範囲の画素群の画素データに基づく補間によって、該第1の範囲を含む第2の範囲の画素群の画素データを生成する画像データ補間方法を実行するためのプログラムを記録したコンピュータ読みとり可能な記録媒体であって、前記第2の範囲の画素群は少なくとも2種類以上の補間方法を用いて補間され、前記第2の範囲の画素群における各画素の補間方法は、該補間すべき各画素の中心と、前記第1の範囲の画素群の各画素の中心との距離における最短の距離に応じて決定されることを特徴とする画像データ補間方法を実行するためのプログラムを記録したコンピュータ読みとり可能な記録媒体。  A program for executing an image data interpolation method for generating pixel data of a pixel group of a second range including the first range by interpolation based on the pixel data of the pixel group of the first range for color image data The pixel group in the second range is interpolated using at least two kinds of interpolation methods, and the interpolation method for each pixel in the pixel group in the second range is: In order to execute the image data interpolation method, the distance is determined according to the shortest distance in the distance between the center of each pixel to be interpolated and the center of each pixel of the pixel group in the first range. A computer-readable recording medium on which the program is recorded. カラー画像データについて、第1の範囲の画素群の画素データに基づく補間によって、該第1の範囲を含む第2の範囲の画素群の画素データを生成する画像データ補間方法を実行するためのプログラムを記録したコンピュータ読みとり可能な記録媒体であって、前記補間を経て画素データを生成された第2の画素群が画素数変換を受ける場合、該画素数変換の変換率によって、前記第2の画素群における補間すべき全ての画素に対し単一の補間方法を用いて補間を行うか、該補間すべき画素のそれぞれについて複数の補間方法を使い分けて補間を行うかを決定することを特徴とする画像データ補間方法を実行するためのプログラムを記録したコンピュータ読みとり可能な記録媒体。  A program for executing an image data interpolation method for generating pixel data of a pixel group of a second range including the first range by interpolation based on the pixel data of the pixel group of the first range for color image data And when the second pixel group in which pixel data is generated through interpolation undergoes pixel number conversion, the second pixel is converted according to the conversion rate of the pixel number conversion. It is determined whether to perform interpolation using a single interpolation method for all pixels to be interpolated in a group or to use different interpolation methods for each of the pixels to be interpolated. A computer-readable recording medium storing a program for executing an image data interpolation method. 請求項27ないし29のいずれか1に記載の記録媒体において、前記第1の範囲をx×y画素による矩形範囲とし、前記第2の範囲をm×n画素による矩形範囲とし、x<m、かつy<nであることを特徴とする画像データ補間方法を実行するためのプログラムを記録したコンピュータ読みとり可能な記録媒体。In the recording medium according to any one of claims 27 to 29, the first range is a rectangular range by x × y pixels, the second range is a rectangular range of the m × n pixels, x <m, A computer-readable recording medium storing a program for executing an image data interpolation method characterized by y <n. 請求項27に記載の記録媒体において、前記第2の範囲の画素群における補間すべき各画素の補間方法を実行するためのプログラムを記録したコンピュータ読みとり可能な記録媒体は、該補間すべき各画素の中心と、前記第1の範囲の画素群の各画素の中心との距離における最短の距離に応じて決定されることを特徴とする画像データ補間方法を実行するためのプログラムを記録したコンピュータ読みとり可能な記録媒体。28. The recording medium according to claim 27 , wherein a computer-readable recording medium recording a program for executing an interpolation method for each pixel to be interpolated in the pixel group in the second range includes each pixel to be interpolated. A computer-readable recording medium storing a program for executing an image data interpolation method, wherein the distance is determined according to the shortest distance between the center of the first group of pixels and the center of each pixel of the pixel group in the first range Possible recording media. 請求項31に記載の記録媒体において、前記第1の範囲の画素群がx×yの矩形領域で設定されているとき、前記矩形領域の2辺のいずれかに隣接する前記第2の画素群の補間すべき画素を第1の補間方法で補間し、前記第1の補間方法で補間を行った以外の補間すべき画素を、前記第1の補間方法とは異なる補間方法で補間することを特徴とする画像データ補間方法を実行するためのプログラムを記録したコンピュータ読みとり可能な記録媒体。  32. The recording medium according to claim 31, wherein when the pixel group in the first range is set in an x × y rectangular area, the second pixel group adjacent to one of two sides of the rectangular area. The pixel to be interpolated is interpolated by the first interpolation method, and the pixel to be interpolated other than the interpolation performed by the first interpolation method is interpolated by an interpolation method different from the first interpolation method. A computer-readable recording medium on which a program for executing a characteristic image data interpolation method is recorded. 請求項3に記載の記録媒体において、前記第1の範囲の画素群がx×yの矩形領域で設定されているとき、前記矩形領域の4辺のいずれかに隣接する前記第2の画素群の補間すべき画素を第1の補間方法で補間し、前記第1の補間方法で補間を行った以外の補間すべき画素を、前記第1の補間方法とは異なる補間方法で補間することを特徴とする画像データ補間方法を実行するためのプログラムを記録したコンピュータ読みとり可能な記録媒体。The recording medium according to claim 3 1, wherein when a pixel group of the first range is set in a rectangular area of x × y, the second pixel adjacent to any of the four sides of the rectangular region Interpolating a group of pixels to be interpolated by the first interpolation method, and interpolating pixels to be interpolated other than the interpolation by the first interpolation method by an interpolation method different from the first interpolation method A computer-readable recording medium on which a program for executing the image data interpolation method is recorded. 請求項3ないし3のいずれか1に記載の記録媒体において、前記第1の補間方法として最近傍法を用い、前記第1の補間方法とは異なる補間方法として線形補間法を用いることを特徴とする画像データ補間方法を実行するためのプログラムを記録したコンピュータ読みとり可能な記録媒体。In the recording medium according to any one of claims 3 1 to 3 3, using the nearest neighbor method as the first interpolation method, the use of linear interpolation as different interpolation method from the first interpolation method A computer-readable recording medium on which a program for executing a characteristic image data interpolation method is recorded. 請求項3ないし3のいずれか1に記載の記録媒体において、前記第1の補間方法として最近傍法を用い、前記第1の補間方法とは異なる補間方法として3次補間法を用いることを特徴とする画像データ補間方法を実行するためのプログラムを記録したコンピュータ読みとり可能な記録媒体。In the recording medium according to any one of claims 3 1 to 3 3, using the nearest neighbor method as the first interpolation method, the use of the cubic interpolation as different interpolation method from the first interpolation method A computer-readable recording medium on which a program for executing the image data interpolation method is recorded. 請求項3または3に記載の記録媒体において、前記第1の範囲をx×y画素による矩形範囲とし、前記第2の範囲をm×n画素による矩形範囲とし、2x<m、かつ2y<nとしたことを特徴とする画像データ補間方法を実行するためのプログラムを記録したコンピュータ読みとり可能な記録媒体。In the recording medium according to claim 3 2 or 3 3, wherein the first range is a rectangular range by x × y pixels, the second range is a rectangular range of the m × n pixels, 2x <m, and 2y A computer-readable recording medium on which a program for executing an image data interpolation method characterized by <n is recorded. 請求項3に記載の記録媒体において、前記第1の範囲をx×y画素による矩形範囲とし、前記第2の範囲をm×n画素による矩形範囲とし、m−x≧3、n−y≧3としたことを特徴とする画像データ補間方法を実行するためのプログラムを記録したコンピュータ読みとり可能な記録媒体。In the recording medium according to claim 3 2, the first range is a rectangular range by x × y pixels, the second range is a rectangular range of the m × n pixels, m-x ≧ 3, n -y A computer-readable recording medium having recorded thereon a program for executing an image data interpolation method characterized in that ≧ 3. 請求項27に記載の記録媒体において、前記第1の範囲の画素群がx×yの矩形領域で設定されているとき、前記矩形領域の所定の2辺のいずれかに隣接する前記第2の範囲の補間すべき画素であって、前記第2の範囲の補間すべき画素の中心と前記第1の範囲の各画素の中心との距離の中で、最も長い距離である画素を除いた前記第2の範囲の補間すべき画素を第1の補間方法で補間し、前記第1の補間方法で補間を行った以外の補間すべき画素を、前記第1の補間方法とは異なる補間方法で補間することを特徴とする画像データ補間方法を実行するためのプログラムを記録したコンピュータ読みとり可能な記録媒体。28. The recording medium according to claim 27 , wherein when the pixel group in the first range is set in an x × y rectangular area, the second area adjacent to one of two predetermined sides of the rectangular area. The pixels to be interpolated in the range , except for the pixel having the longest distance among the centers of the pixels to be interpolated in the second range and the centers of the pixels in the first range The pixels to be interpolated in the second range are interpolated by the first interpolation method, and the pixels to be interpolated other than the interpolation by the first interpolation method are performed by an interpolation method different from the first interpolation method. A computer-readable recording medium having recorded thereon a program for executing an image data interpolation method characterized by interpolation. 請求項27に記載の記録媒体において、前記第1の範囲の画素群がx×yの矩形領域で設定されているとき、前記矩形領域の所定の4辺のいずれかに隣接する前記第2の範囲の補間すべき画素であって、前記第2の範囲の補間すべき画素の中心と前記第1の範囲の各画素の中心との距離の中で、最も長い距離である画素を除いた前記第2の範囲の補間すべき画素を第1の補間方法で補間し、前記第1の補間方法で補間を行った以外の補間すべき画素を、前記第1の補間方法とは異なる補間方法で補間することを特徴とする画像データ補間方法を実行するためのプログラムを記録したコンピュータ読みとり可能な記録媒体。28. The recording medium according to claim 27 , wherein when the pixel group in the first range is set in an x × y rectangular area, the second area adjacent to any one of predetermined four sides of the rectangular area. The pixels to be interpolated in the range , except for the pixel having the longest distance among the centers of the pixels to be interpolated in the second range and the centers of the pixels in the first range The pixels to be interpolated in the second range are interpolated by the first interpolation method, and the pixels to be interpolated other than the interpolation by the first interpolation method are performed by an interpolation method different from the first interpolation method. A computer-readable recording medium having recorded thereon a program for executing an image data interpolation method characterized by interpolation.
JP2000396434A 2000-12-27 2000-12-27 Image data interpolation apparatus, method and recording medium Expired - Fee Related JP3939091B2 (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
JP2000396434A JP3939091B2 (en) 2000-12-27 2000-12-27 Image data interpolation apparatus, method and recording medium
US10/015,688 US7006695B2 (en) 2000-12-27 2001-12-17 Image compression/decompression system employing pixel thinning-out and interpolation scheme
US11/313,810 US7231092B2 (en) 2000-12-27 2005-12-22 Image compression/decompression system employing pixel thinning-out and interpolation scheme

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2000396434A JP3939091B2 (en) 2000-12-27 2000-12-27 Image data interpolation apparatus, method and recording medium

Publications (2)

Publication Number Publication Date
JP2002199207A JP2002199207A (en) 2002-07-12
JP3939091B2 true JP3939091B2 (en) 2007-06-27

Family

ID=18861726

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000396434A Expired - Fee Related JP3939091B2 (en) 2000-12-27 2000-12-27 Image data interpolation apparatus, method and recording medium

Country Status (1)

Country Link
JP (1) JP3939091B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8594465B2 (en) * 2007-11-14 2013-11-26 Microsoft Corporation Adaptive filtering for image transform processes

Also Published As

Publication number Publication date
JP2002199207A (en) 2002-07-12

Similar Documents

Publication Publication Date Title
JP2922680B2 (en) Compressed image storage method for high-resolution computer graphics
JP2656897B2 (en) Image data compression and decompression device
US7231092B2 (en) Image compression/decompression system employing pixel thinning-out and interpolation scheme
EP0607696B1 (en) Image processing apparatus
JP3990045B2 (en) Information processing method, information processing apparatus, and recording medium
JP4575370B2 (en) Biased motion vector interpolation to reduce video artifacts
JP5316385B2 (en) Image processing apparatus and image processing program
JP3939091B2 (en) Image data interpolation apparatus, method and recording medium
JP2008263465A (en) Image processing system and image processing program
US6526178B1 (en) Picture mapping apparatus and picture mapping method, and picture generation apparatus and picture generation method
JPH0457570A (en) Picture processor
JP3822512B2 (en) Image data compression apparatus, image data compression method, recording medium, and program
JPH10191090A (en) Apparatus and method for manufacturing color conversion table, and recording medium
JPH09289584A (en) Method for processing picture and its device
JP4288253B2 (en) Image distribution processing system, image distribution processing method, and image distribution processing program
JP4266512B2 (en) Data processing device
JP4345609B2 (en) Image processing apparatus and program
JP4662325B2 (en) Image processing apparatus and image processing method
JPH1098620A (en) Picture processor
JP4118030B2 (en) Image compression apparatus / image expansion apparatus, image compression method / image expansion method, and information recording medium for realizing the method
JP4696738B2 (en) Image data compression method and apparatus, and pseudo gradation image restoration method
JP2807231B2 (en) Pixel density conversion method and device
JP4423812B2 (en) Drawing processing apparatus and drawing processing method
JPH07262361A (en) Method and device for image processing
JP2998689B2 (en) How to map image data

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20050128

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20060728

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20060912

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20061106

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20070327

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20070327

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20100406

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20110406

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20120406

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20130406

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20140406

Year of fee payment: 7

LAPS Cancellation because of no payment of annual fees