JPH01288087A - Limited color picture processor - Google Patents

Limited color picture processor

Info

Publication number
JPH01288087A
JPH01288087A JP63117380A JP11738088A JPH01288087A JP H01288087 A JPH01288087 A JP H01288087A JP 63117380 A JP63117380 A JP 63117380A JP 11738088 A JP11738088 A JP 11738088A JP H01288087 A JPH01288087 A JP H01288087A
Authority
JP
Japan
Prior art keywords
pixel
interpolation
color
image
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.)
Pending
Application number
JP63117380A
Other languages
Japanese (ja)
Inventor
Hiroyuki Kumazawa
宏之 熊沢
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP63117380A priority Critical patent/JPH01288087A/en
Publication of JPH01288087A publication Critical patent/JPH01288087A/en
Pending legal-status Critical Current

Links

Classifications

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

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Image Processing (AREA)
  • Color Television Systems (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

PURPOSE:To interpolate even a picture not entirely depending on a brightness to be displayed with excellent picture quality by counting the frequency of occurrence of each representative color of a real surrounding picture element corresponding to an interpolated picture element, extracting the representative color with the maximum frequency of occurrence and using it as the pixel for the interpolated pixel. CONSTITUTION:A pixel interpolation means 17 is provided with a picture segmentation means 14 reading each pixel of a real surrounding pixel comprising plural real picture elements located around the interpolated pixel to decide a representative color code of the pixel of the interpolated pixel, a frequency count means 15 counting the frequency of occurrence of each representative color of the real surrounding pixel and a maximum frequency of occurrence pixel extracting means 16 extracting a representative color having the maximum frequency of occurrence from the representative color of the real surrounding pixel and using its code as the pixel of the interpolated pixel. Thus, the pixel interpolation means 17 outputs selectively the representative color suitable for the pixel of the interpolated picture element based on the statistic property. Thus, the interpolation with excellent picture quality is attained even for a picture whose pixel is entirely independent of the brightness displayed actually such as a limited color pixel.

Description

【発明の詳細な説明】 [産業上の利用分野コ 本発明は限定色画像処理装置、特に複数の画素からなり
、画素値としてRGB値ではなく代表色を示すコード情
報を有する限定色画像であるカラー画像処理装置に関し
、画素補間処理の改良に関するものである。
DETAILED DESCRIPTION OF THE INVENTION [Industrial Field of Application] The present invention relates to a limited color image processing device, particularly a limited color image that is composed of a plurality of pixels and has code information indicating a representative color instead of an RGB value as a pixel value. This invention relates to an improvement in pixel interpolation processing in a color image processing device.

[従来の技術] 近年、各種の画像処理装置が、遠隔監視、更にはテレビ
電話として実用化されている。そして、この様な画像処
理装置においては、伝送するデータ量をできるだけ減ら
すこと、伝送される画像の内容が伝送の早い段階で判別
できることが要求される。
[Background Art] In recent years, various image processing devices have been put into practical use as remote monitoring and even videophones. In such an image processing apparatus, it is required to reduce the amount of data to be transmitted as much as possible, and to be able to determine the content of the transmitted image at an early stage of transmission.

そのために、画像情報の圧縮方法として、各種の高能率
符号化方式や階層的伝送方式が実用化され、この様な方
式の一つに、送信側であらかじめ送信画素数を減らして
伝送し、受信側では伝送されてきた画素値を用いて画素
補間を行う方式がある。
To this end, various high-efficiency encoding methods and hierarchical transmission methods have been put into practical use as methods for compressing image information. On the other hand, there is a method of performing pixel interpolation using the transmitted pixel values.

そして、上述のような画素補間方式は、画素数を1/2
に間引いて伝送すればそれだけでデータ量を半減できる
という効果を有する。
The pixel interpolation method described above reduces the number of pixels by half.
If the data is thinned out and transmitted, it has the effect of halving the amount of data.

しかも、画素を間引く際には、人間の視覚特性を考慮し
て視覚的にあまり敏感ではない斜め方向の解像度のみを
低下させる様なサンプリングパターンにしたがって画素
を間引く用に構成すれば、視覚的違和感が少なく、使用
者に画質劣化を感じさせない画像を再生できる。
Furthermore, if pixels are thinned out according to a sampling pattern that takes into account the human visual characteristics and reduces only the resolution in diagonal directions, which are not visually sensitive, it is possible to eliminate visual discomfort. It is possible to reproduce images without causing the user to notice any deterioration in image quality.

以下、従来の画像補間処理を図面に基づいて説明する。Hereinafter, conventional image interpolation processing will be explained based on the drawings.

第5図には「画像の情報処理」 (コロナ社、榎本肇編
著pp、131−133)に開示された画像補間装置の
概略構成が示されており、第6図には画素のサンプリン
グパターンが示されている。
Figure 5 shows the schematic configuration of the image interpolation device disclosed in "Image Information Processing" (Corona Publishing, pp. 131-133, edited by Hajime Enomoto), and Figure 6 shows the pixel sampling pattern. It is shown.

第5図に示されるように、該装置は、第4図に示された
サンプリングパターンにしたがって画素サンプリングさ
れた画素値を装置内に人力する画像入力手段(11)と
、該入力した画素値を記憶する画像記憶手段(以下、画
像メモリ)(12)と、3本分の水平映像ラインの我草
を記憶するラインメモリ (31)と、前記サンプリン
グパターンに対応した補間フィルタ(32)と、内挿画
素の画素値を計算するたたみ込み演算部(33)と、補
間した画像情報の表示を行うデイスプレィ(18)と、
からなっている。
As shown in FIG. 5, the device includes an image input means (11) for manually inputting pixel values sampled according to the sampling pattern shown in FIG. an image storage means (hereinafter referred to as image memory) (12) for storing images, a line memory (31) for storing the image of three horizontal video lines, an interpolation filter (32) corresponding to the sampling pattern; a convolution calculation unit (33) that calculates the pixel value of the inserted pixel; a display (18) that displays interpolated image information;
It consists of

次に、本装置の動作に付いて説明する。Next, the operation of this device will be explained.

まず、画像入力手段(11)より、サンプリングされた
画素値を入力する。このとき、第4図に示されるO印(
bs Cs ds e等)は画素値が入力された実画素
であり、X印(a等)は間引かれた内挿画素である。
First, sampled pixel values are input from the image input means (11). At this time, mark O (
bs Cs ds e, etc.) are actual pixels whose pixel values have been input, and the X marks (a, etc.) are interpolated pixels that have been thinned out.

そして、入力した画素値を画像メモリ(12)に書き込
む。このとき、該画像メモリ(12)には内挿画素の位
置には0が書き込まれる。
Then, the input pixel values are written into the image memory (12). At this time, 0 is written in the image memory (12) at the position of the interpolated pixel.

そして、補間処理、すなわち、前記内挿画素の画素値を
算出するために、ラインメモリ(31)に、前記画像メ
モリ(12)の3ライン分毎に画像メモリ(12)の内
容が読み込まれる。
Then, in order to perform interpolation processing, that is, to calculate the pixel value of the interpolated pixel, the contents of the image memory (12) are read into the line memory (31) every three lines of the image memory (12).

次に、ラインメモリ(31)にて読み出された実画素の
画素値に基づき、該画素値と補間フィルタ(32)との
たたみ込み演算がたたみ込み演算装置(33)によって
実行される。
Next, based on the pixel value of the actual pixel read out in the line memory (31), a convolution operation between the pixel value and the interpolation filter (32) is executed by the convolution operation device (33).

そして、その結果は画像メモリ(12)に書き込まれる
The result is then written to the image memory (12).

すなわち、たたみ込み演算装置(33)にて、補間フィ
ルタ(32)を用いて、内挿画素aの画素値は(1)式
のように求められる。
That is, the pixel value of the interpolation pixel a is determined by the convolution calculation device (33) using the interpolation filter (32) as shown in equation (1).

a= (b+c+d+e)/4        (1)
また、実画素画素(b%C%d、e)の値は変更されな
い。
a= (b+c+d+e)/4 (1)
Furthermore, the values of the actual pixels (b%C%d, e) are not changed.

そして、上述のようなのたたみ込み演算が画像全体につ
いて実行された結果、即ち補間された画像は、サブサン
プリングされる前の画像に近似した画像となり、デイス
プレィ(18)によって表示される。
The result of the convolution operation as described above being performed on the entire image, that is, the interpolated image, is an image that approximates the image before being subsampled, and is displayed on the display (18).

従来の画像補間装置は上記の様に構成され、間引かれた
画素が実画素から補間される様になっている。
A conventional image interpolation device is configured as described above, and thinned out pixels are interpolated from actual pixels.

また、カラー画像の場合にはRGB3枚の画像について
上記の補間処理を実行することによりカラー画像補間装
置が構成できる。
Further, in the case of a color image, a color image interpolation device can be configured by performing the above interpolation processing on three RGB images.

[発明が解決しようとする課題] 上記のように従来の画像補間装置は、画素値の相関性を
利用しているものである。
[Problems to be Solved by the Invention] As described above, the conventional image interpolation device utilizes the correlation of pixel values.

すなわち、画素値が輝度レベルを表しており、局所的に
はその値は大きく変化しないことを利用して、内挿画素
(a)、をその周囲にある実画素(b%c、d、e等)
によりたたみ込み演算、すなわち、 a−conv (b、c、d%e−旧・−>    (
2)によって線形補間(例えば、前記(1)のような補
間)することにより、求めている。
That is, using the fact that the pixel value represents the brightness level and that the value does not change significantly locally, the interpolated pixel (a) is converted to the surrounding real pixels (b%c, d, e etc)
By the convolution operation, i.e., a-conv (b, c, d%e-old -> (
2) by performing linear interpolation (for example, interpolation as in (1) above).

しかしながら、従来の画素補間装置においては、画素値
として輝度ではなく代表色を示すコード情報を持つ限定
色画像では、画素間引きされた画像の画素補間に前述の
ような線形補間を適用することができないという問題点
があった。
However, with conventional pixel interpolation devices, it is not possible to apply linear interpolation as described above to pixel interpolation of pixel-thinned images for limited color images that have code information indicating representative colors rather than brightness as pixel values. There was a problem.

本発明は、上記問題点を解決することを課題として成さ
れたものであり、所望のサンプリングパターンにしたが
って画素間引きされた限定色画像の画素補間を行うこと
ができる限定色画像処理装置を提供することを目的とす
る。
The present invention has been made to solve the above problems, and provides a limited color image processing device that can perform pixel interpolation of a limited color image whose pixels have been thinned out according to a desired sampling pattern. The purpose is to

[課題を解決するための手段] 第1請求項係る限定色画像処理装置は、限定色サンプリ
ング画像の実画素間に間引かれた画素を内挿する画素補
間手段であって、内挿画素の周囲に位置する複数の実画
素からなる実周辺画素の各代表色の発生頻度を計数し、
内挿画素の画素値を前記実周辺画素の最大発生開度を有
する代表色コードとする画素補間手段を設け、サンプリ
ングされた限定色画像の画素補間を行うものである。
[Means for Solving the Problems] The limited color image processing device according to the first claim is a pixel interpolation means for interpolating thinned out pixels between actual pixels of a limited color sampling image, Count the frequency of occurrence of each representative color of real peripheral pixels consisting of multiple real pixels located in the surrounding area,
A pixel interpolation means is provided which uses the pixel value of the interpolation pixel as a representative color code having the maximum occurrence degree of the actual surrounding pixels, and performs pixel interpolation of the sampled limited color image.

第2請求項係る限定色画像処理装置は、限定色サンプリ
ング画像の実画素間に間引かれた画素を内挿する画素補
間手段であって、内挿画素と該内挿画素の周囲に位置す
る各実画素との距離によって各代表色を重み付けして、
内挿画素の画素値である補間色を算出し、該補間色と最
も近似する代表色を内挿画素の画素値とする画素補間手
段を設け、サンプリングされた限定色画像の画素補間を
行うものである。
The limited color image processing device according to the second claim is a pixel interpolation means for interpolating pixels thinned out between real pixels of a limited color sampling image, the pixel interpolation means interpolating pixels thinned out between actual pixels of a limited color sampling image, and comprising interpolating pixels and pixels located around the interpolating pixels. Each representative color is weighted according to the distance from each actual pixel,
A pixel interpolation unit that calculates an interpolation color that is a pixel value of an interpolation pixel, and sets a representative color that is most similar to the interpolation color as the pixel value of the interpolation pixel, and performs pixel interpolation of a sampled limited color image. It is.

[作用] 請求項1の発明によれば、内挿画素の周辺の実画素の画
素値の統計的性質を測定し、該統計的性質に基づいて周
辺の画素値(代表色)から内挿画素の画素値を選択出力
することにより、限定色画像の画素補間を行う。
[Operation] According to the invention of claim 1, the statistical properties of the pixel values of real pixels around the interpolated pixel are measured, and the interpolated pixel is determined from the surrounding pixel values (representative color) based on the statistical properties. By selectively outputting the pixel values of , pixel interpolation of the limited color image is performed.

次に、第2請求項の発明によれば、内挿画素と該内挿画
素の周囲に位置する各実画素との距離によって各代表色
を重み付けして、内挿画素の画素値である補間色を算出
し、該補間色と最も近似する代表色を内挿画素の画素値
として出力することにより、限定色画像の画素補間を行
う。
Next, according to the invention of claim 2, each representative color is weighted according to the distance between the interpolation pixel and each real pixel located around the interpolation pixel, and the interpolation that is the pixel value of the interpolation pixel is Pixel interpolation of a limited color image is performed by calculating a color and outputting a representative color that is most similar to the interpolated color as a pixel value of an interpolated pixel.

[実施例] 以下、本発明に係る限定画像処理装置の好適な実施例を
図面に基づいて説明する。
[Embodiments] Hereinafter, preferred embodiments of the limited image processing device according to the present invention will be described based on the drawings.

第1図には第1請求項の発明に係る限定色画像処理装置
の好適なの実施例が示すされている。
FIG. 1 shows a preferred embodiment of a limited color image processing apparatus according to the first aspect of the invention.

なお、図中、第5図従来例と同一部分には同一符号を付
し、説明を省略する。
In the figure, the same parts as those in the conventional example shown in FIG.

そして、第1図に示されるように、本実施例による限定
色画像処理装置は、あらかじめ定められたサンプリング
パターン(例えば第6図に示されるようなサンプリング
パターン)にしたがってサンプリングされた限定色サン
プリング画像情報を装置内に入力する画像入力手段(1
1)と、入力した画像情報を記憶する画像メモリ(12
)と、前記限定色サンプリング画像に適用された代表色
コードと該代表色コードに対応した代表色のRGB信号
を記憶する代表色メモリ(13)と、前記限定色サンプ
リング画像の実画素間に間引がれた画素を内挿する画素
捕間手段(17)と、該画素補間手段(17)にて画素
補間された限定色画像を表示するデイスプレィ(18)
と、がらなっている。
As shown in FIG. 1, the limited color image processing device according to the present embodiment processes a limited color sampling image sampled according to a predetermined sampling pattern (for example, a sampling pattern as shown in FIG. 6). Image input means (1) for inputting information into the device
1) and an image memory (12) that stores input image information.
), a representative color memory (13) that stores the representative color code applied to the limited color sampling image and the RGB signal of the representative color corresponding to the representative color code, and a space between the actual pixels of the limited color sampling image. A pixel interpolation means (17) for interpolating the subtracted pixels, and a display (18) for displaying the limited color image interpolated by the pixel interpolation means (17).
It's empty.

そして、本発明の特徴事項は前記画素補間手段(17)
であって、該画素補間手段(17)は、内挿画素の画素
値(代表色コード)を決定するために、内挿画素の周囲
に位置する複数の実画素からなる実周辺画素の各画素値
(代表色コード)を読み出す画像切り出し手段(14)
と、前記実周辺画素の各代表色の発生頻度を計数する頻
度計数手段(15)と、前記実周辺画素の代表色がら最
大発生頻度を有する代表色を抽出して内挿画素の画素値
とする最大頻度画素抽出手段(16)と、からなってい
る。
The feature of the present invention is that the pixel interpolation means (17)
In order to determine the pixel value (representative color code) of the interpolation pixel, the pixel interpolation means (17) calculates each pixel of real peripheral pixels consisting of a plurality of real pixels located around the interpolation pixel. Image cutting means (14) for reading values (representative color code)
a frequency counting means (15) for counting the frequency of occurrence of each representative color of the actual surrounding pixels; and a frequency counting means (15) for counting the frequency of occurrence of each representative color of the actual surrounding pixels; and maximum frequency pixel extraction means (16).

したがって、該画素補間手段(17)によれば、実周辺
画素の各代表色の中から、統計的性質に基づいた内挿画
素の画素値に相応しい代表色が選択出力される。
Therefore, the pixel interpolation means (17) selects and outputs a representative color suitable for the pixel value of the interpolated pixel based on statistical properties from among the representative colors of the actual surrounding pixels.

次に、該限定色画像処理装置の動作について説明する。Next, the operation of the limited color image processing device will be explained.

まず、前記画像入力手段(11)は、限定サンプリング
画像を入力し、該入力した画像情報を前記画像メモリ(
12)に出力する。
First, the image input means (11) inputs a limited sampling image and stores the input image information in the image memory (11).
12).

そして、前記画像メモリ(12)は、画素値が人力され
た実画素の位置には入力した画素値を記憶し、間引かれ
た画素の位置には内挿画素を示すコード、例えば“0”
を書き込み記憶する。このとき、前記画像メモリ(12
)に記憶されることにより、実画素間に画素が内挿され
ることになる。
The image memory (12) stores the input pixel value at the position of the actual pixel whose pixel value has been entered manually, and stores a code indicating an interpolated pixel at the position of the thinned out pixel, for example, "0".
Write and memorize. At this time, the image memory (12
), pixels are interpolated between actual pixels.

次に、画像切り出し手段(14)は、内挿画素の周辺の
複数の実画素のからなる画像を切り出す。
Next, the image cutting means (14) cuts out an image made up of a plurality of real pixels around the interpolated pixel.

すなわち、第5図のサンプリングパターンの場合には実
画素す、、C5ds eが切り出されることになる。
That is, in the case of the sampling pattern shown in FIG. 5, the actual pixels S, C5dse, and C5dse are extracted.

そして、頻度計数手段(15)にて、前記切り出された
実画素の画素値から、実周辺画素中の各代表色の発生開
度を計数し、前記最大頻度画素抽出手段(16)に出力
する。
Then, the frequency counting means (15) counts the degree of occurrence of each representative color in the real peripheral pixels from the pixel value of the cut out real pixel, and outputs it to the maximum frequency pixel extracting means (16). .

次に、最大頻度画素抽出手段(16)は、前記頻度計数
手段の出力に基づいて実周辺画素中の発生頻度が最大で
ある画素値(代表色)を抽出し、該抽出された画素値を
内挿画素の画素値として前記画像メモリ(12)へ出力
する。
Next, maximum frequency pixel extraction means (16) extracts a pixel value (representative color) with the highest frequency of occurrence among the actual surrounding pixels based on the output of the frequency counting means, and converts the extracted pixel value into It is output to the image memory (12) as a pixel value of the interpolated pixel.

そして、画素補間手段(17)は、画像メモリ(12)
の内挿画素全てに対して、上記のような一画素補間処理
を行う。
The pixel interpolation means (17) then uses the image memory (12)
The above-described one-pixel interpolation process is performed for all interpolated pixels.

一方、前記画像人力手段(11)は、人力した限定色サ
ンプリング画像を構成する代表色コードと、該代表色コ
ードに対応したRGB信号で示された代表色と、を代表
色格納手段(13)に格納する。
On the other hand, the image human input means (11) stores a representative color code constituting the manually generated limited color sampling image and a representative color indicated by an RGB signal corresponding to the representative color code into a representative color storage means (13). Store in.

そして、画素補間終了後、前記デイスプレィ(18)は
、画像メモリ(12)に記憶された各画素値を順に、前
記代表色格納手段(13)を介してRGB信号で読出し
、該読出したRGB信号に基づいて画像表示を行う。
After the pixel interpolation is completed, the display (18) sequentially reads each pixel value stored in the image memory (12) as an RGB signal via the representative color storage means (13), and uses the read RGB signal. Image display is performed based on.

なお、本実施例においては、内挿画素の実周辺画素の画
素値の読出し手段としてに画像切り出し手段(14)を
用いた例を示したが、従来例で示されたラインメモリ(
31)を用いても同様の効果を奏する。
In this embodiment, an example is shown in which the image cutting means (14) is used as a means for reading out the pixel values of the real peripheral pixels of the interpolation pixel, but the line memory (14) shown in the conventional example is used.
31) can also produce similar effects.

また、内挿画素の実周辺画素の画素値の読出し手段は、
実際には特別なハードウェアを必要とせず、間引かれた
画素の周辺に位置する実画素の画素値を読み出す手段で
あれば、本実施例と同様の効果を奏する。
Further, the means for reading out the pixel values of the real peripheral pixels of the interpolated pixel is as follows:
Actually, no special hardware is required, and any means for reading out the pixel values of real pixels located around the thinned out pixels can produce the same effects as the present embodiment.

次に、第1請求項の発明による他の実施例を説明する。Next, another embodiment according to the invention of claim 1 will be described.

第2図には他の実施例による限定色画像処理装置のシス
テム構成が示されている。
FIG. 2 shows a system configuration of a limited color image processing apparatus according to another embodiment.

第2図に示されるように、該装置は、第1図実施例に示
された画像人力手段として通信ポート(21)を適用し
、代表色格納手段(13)として、代表色を格納すると
ともに画像メモリ(12)より読み出された代表色コー
ドをRGB信号に変換出力するカラーマツプ(22)を
適用したものである。
As shown in FIG. 2, the apparatus applies the communication port (21) as the image input means shown in the embodiment of FIG. 1, and stores the representative color as the representative color storage means (13). A color map (22) for converting and outputting representative color codes read from an image memory (12) into RGB signals is applied.

更に、該装置は、前記補間手段(17)として、CPU
(23)を適用しており、該CPU(23)は、メモリ
(24)に格納された制御プログラムにしたがって上述
の測索補間処理、すなわち内挿画素周辺の実画素の代表
色を計数する頻度計数、最大開度画素値の抽出とその画
素値の画像メモリ(12)への書き込みを実行するとと
もに、各種装置の制御を行う。
Furthermore, the device uses a CPU as the interpolation means (17).
(23) is applied, and the CPU (23) performs the above-mentioned search interpolation process according to the control program stored in the memory (24), that is, the frequency of counting the representative colors of real pixels around the interpolated pixel. It performs counting, extracts the maximum opening degree pixel value, and writes the pixel value to the image memory (12), and also controls various devices.

したがって、第2図のように装置を構成しても、第1図
実施例と同様の効果を得る。
Therefore, even if the apparatus is constructed as shown in FIG. 2, the same effects as in the embodiment shown in FIG. 1 can be obtained.

すなわち、第1図及び第2図実施例によれば、内挿画素
の画素値を実周辺画素の頻度分布に基づいて補間するの
で、該内挿画素値は画像の局所的な相関性からみて極め
てふされしい値になる。
That is, according to the embodiments of FIGS. 1 and 2, the pixel value of the interpolated pixel is interpolated based on the frequency distribution of the actual surrounding pixels, so the interpolated pixel value is determined based on the local correlation of the image. This is a very appropriate value.

次に、第2請求項に示された発明の詳細な説明する。Next, the invention shown in the second claim will be explained in detail.

第3図には第2請求項の発明による限定色画像処理装置
の一実施例が示されている。
FIG. 3 shows an embodiment of a limited color image processing apparatus according to the second aspect of the invention.

同図に示されるように、本実施例の特徴事項は、画像メ
モリ(12)と、画像切り出し手段(14)と、補間色
算出手段(15a)と、補間代表色抽出手段(16a)
と、画素補間手段(17)と、を設け、内挿画素と該内
挿画素の周囲に位置する各実画素との距離によって各代
表色を重み付けして、内挿画素の画素値である補間色を
算出し、該補間色と最も近似する代表色を内挿画素の画
素値とすることである。
As shown in the figure, the features of this embodiment include an image memory (12), an image cutting means (14), an interpolation color calculation means (15a), and an interpolation representative color extraction means (16a).
and a pixel interpolation means (17), which weights each representative color according to the distance between the interpolation pixel and each real pixel located around the interpolation pixel, and calculates the interpolation value that is the pixel value of the interpolation pixel. The method is to calculate the color and set the representative color that is most similar to the interpolated color as the pixel value of the interpolated pixel.

そして、前記画像切り出し手段(14)は、内挿画素の
周囲に位置する各実画素の画素値を読み出す手段である
The image cutting means (14) is means for reading out the pixel values of each real pixel located around the interpolated pixel.

前記補間色算出手段(15a)は、前記画像切り出し手
段にて読み出された実周辺画素の各代表色をRGB信号
に変換した後、各代表色を内挿画素と各実画素との距離
によって、重み付けして、内挿画素の画素値である補間
色を算出する手段である。
The interpolation color calculation means (15a) converts each representative color of the real peripheral pixels read out by the image cutting means into an RGB signal, and then converts each representative color according to the distance between the interpolation pixel and each real pixel. , weighting, and calculating an interpolation color which is a pixel value of an interpolation pixel.

そして、補間色代表色抽出手段(16a)は、前記算出
された補間色と最も近似する代表色を抽出する。
Then, the interpolation color representative color extraction means (16a) extracts the representative color that is most similar to the calculated interpolation color.

また、前記画素補間手段(17)は、前記補間色抽出手
段(16a)の出力結果を内挿画素の画素値として画像
メモリ(12)に書き込む手段である。
Further, the pixel interpolation means (17) is means for writing the output result of the interpolation color extraction means (16a) into the image memory (12) as a pixel value of an interpolation pixel.

次に、本実施例の動作について説明する。Next, the operation of this embodiment will be explained.

まず、前記画像人力手段(11)は、限定サンプリング
画像を入力し、該入力した画像情報を前記画像メモリ(
12)に出力する。
First, the image manual means (11) inputs a limited sampling image and stores the input image information in the image memory (11).
12).

そして、前記画像メモリ(12)は、画素値が人力され
た実画素の位置には入力した画素値を記憶し、間引かれ
た画素の位置には内挿画素を示すコード、例えば“0”
を書き込み記憶する。このとき、前記画像メモリ(12
)に記憶されることにより、実画素間に画素が内挿され
ることになる。
The image memory (12) stores the input pixel value at the position of the actual pixel whose pixel value has been entered manually, and stores a code indicating an interpolated pixel at the position of the thinned out pixel, for example, "0".
Write and memorize. At this time, the image memory (12
), pixels are interpolated between actual pixels.

次に、画像切り出し手段(14)は、内挿画素の周辺の
複数の実画素のからなる画像を切り出す。
Next, the image cutting means (14) cuts out an image made up of a plurality of real pixels around the interpolated pixel.

すなわち、第4図のサンプリングパターンの場合には実
画素bSc、d、eが切り出されることになる。
That is, in the case of the sampling pattern shown in FIG. 4, real pixels bSc, d, and e are extracted.

そして、補間色算出手段(15a)は、前記画像切り出
し手段(14)にて読み出された画素の周辺に位置する
実画素の画素値が示す代表色から、内挿画素の画素値を
次のように算出する。
Then, the interpolation color calculating means (15a) calculates the pixel value of the interpolation pixel from the representative color indicated by the pixel value of the actual pixel located around the pixel read out by the image cutting means (14) as follows. Calculate as follows.

まず、第6図に示されるようなサンプリングパターンで
画素間引きされた限定色サンプリング画像の場合、実画
素す、c、d、eの画素値が示す代表色をC,、Co、
C,、、C8とじ、内挿画素aの補間色Cをとするとき
、補間色Cは−a                 
      a旦8−(見、+9゜+9.+9゜)/4
  (3)で与えられる。但し、旦ユ、C,、C0、見
6、Cは3次元色空間上の色を表す3次元ベクトル、−
〇 すなわち、RGBを用いて現された色の値であるである
First, in the case of a limited color sampling image whose pixels have been thinned out according to the sampling pattern shown in FIG.
C, , , C8 binding, when the interpolation color C of the interpolation pixel a is, the interpolation color C is -a
adan 8-(see, +9°+9.+9°)/4
It is given by (3). However, Danyu, C,, C0, Mi6, C are three-dimensional vectors representing colors in the three-dimensional color space, -
In other words, it is a color value expressed using RGB.

また、サンプリングパターンは第6図に限られたもので
はなく、例えば第4図の様なパターンも用いることがで
きる。
Further, the sampling pattern is not limited to that shown in FIG. 6, and a pattern such as that shown in FIG. 4, for example, can also be used.

そして、内挿画素aの補間色を実画素す、c、dSeの
値が示す代表色を用いて求める場合は、以下のようにな
る。
When the interpolation color of the interpolation pixel a is determined using the representative color indicated by the values of the actual pixel c, dSe, the following procedure is performed.

即ち、該補間色算出手段(15a)は補間に用いる各画
素に対する重みW6等を決定してC” (wbCb +
 VV oC、+ W dQ d+wC)/4 −e (wb’+wo+wd十w。)     (4)によっ
て補間色を算出する。
That is, the interpolation color calculation means (15a) determines the weight W6 etc. for each pixel used for interpolation, and calculates C'' (wbCb +
VV oC, +W dQ d+wC)/4 -e (wb'+wo+wd 10w.) Calculate the interpolated color using (4).

このとき、各画素に対する重みは、一般に内挿画素と補
間に用いた実画素との画素平面上での距離の逆数 Wb−1/db w −1/do           (5)wd−1
/dd w −1l11/d。
At this time, the weight for each pixel is generally the reciprocal of the distance between the interpolated pixel and the actual pixel used for interpolation on the pixel plane Wb-1/db w-1/do (5) wd-1
/dd w -1l11/d.

を用いる。Use.

すなわち、−膜内には、補間に用いる画素の値が示す代
表色をCs  (i−0,1,2・・・)、各画素に対
する重みをW [(t−0,1,2・・・)とすると、 C−ΣwC/Σw 1(6) によって、補間色を算出する。
That is, in the - film, the representative color indicated by the pixel value used for interpolation is Cs (i-0, 1, 2...), and the weight for each pixel is W [(t-0, 1, 2...). ), then the interpolated color is calculated by C-ΣwC/Σw 1 (6).

次に、前記捕間色算出手段(15a)にて算出された前
記補間色9は、必ずしも代表色には一致していないため
、前記補間代表色抽出手段(16a)にて、前記捕間色
Cと各代表色との距離(3次元ベクトル上の距#t)、
すなわち差をを計算し、最も距離の近い(最も近似する
)代表色を抽出する。
Next, since the interpolation color 9 calculated by the interpolation color calculation means (15a) does not necessarily match the representative color, the interpolation color 9 is calculated by the interpolation representative color extraction means (16a). The distance between C and each representative color (distance #t on the three-dimensional vector),
That is, the difference is calculated and the closest (most similar) representative color is extracted.

そして、画素補間手段(17)は、補間代表色抽出手段
(16a)によって抽出された代表色のコード情報を画
像メモリ(12)の内挿画素の位置に書き込む。
Then, the pixel interpolation means (17) writes the code information of the representative color extracted by the interpolation representative color extraction means (16a) into the position of the interpolation pixel in the image memory (12).

上記画素補間処理がすべての内挿画素について実行され
ると補間画像が完成し、その結果が代表色格納手段(1
3)を通してデイスプレィ(18)にカラー画像として
表示される。このとき、代表色格納手段(13)は画像
メモリ(12)に格納されている代表色の番号をRGB
値に変換する役割を果す。
When the above pixel interpolation process is executed for all interpolated pixels, an interpolated image is completed, and the result is stored in the representative color storage means (1
3), the image is displayed as a color image on the display (18). At this time, the representative color storage means (13) stores the number of the representative color stored in the image memory (12) in RGB.
It plays the role of converting into a value.

本実施例によれば、内挿画素と該内挿画素の周囲に位置
する各実画素との距離によって各代表色を重み付けして
、内挿画素の画素値である補間色を算出し、該補間色と
最も近似する代表色を内挿画素の画素値とするので、サ
ンプリングパターンはどの様なものでも良く、又、補間
に用いる画素の位置も特に制限されることはない。
According to this embodiment, each representative color is weighted according to the distance between the interpolation pixel and each real pixel located around the interpolation pixel, and the interpolation color that is the pixel value of the interpolation pixel is calculated. Since the representative color most similar to the interpolation color is used as the pixel value of the interpolation pixel, any sampling pattern may be used, and the position of the pixel used for interpolation is not particularly limited.

なお、本実施例においては、内挿画素の実周辺画素の画
素値の読出し手段とじてに画像切り出し手段(14)を
用いた例を示したが、従来例で示されたラインメモリ(
31)を用いても同様の効果を奏する。
In this embodiment, an example is shown in which the image cutting means (14) is used as a means for reading out the pixel values of the real peripheral pixels of the interpolation pixel, but the line memory (14) shown in the conventional example is used.
31) can also produce similar effects.

また、第2請求この発明の装置を第2図実施例に示され
るように構成し、CPU (23)にて、上記のような
画素補間を行うように構成しても、第3図実施例と同様
の効果を奏する。
Furthermore, even if the apparatus of the second claim of the present invention is constructed as shown in the embodiment of FIG. 2, and the CPU (23) is configured to perform the pixel interpolation as described above, It has the same effect as.

すなわち、CPU(23)は、メモリ(24)に格納さ
れた制御プログラムにしたがって、内挿画素周辺の実画
素から補間色の算出、補間色に最も近似する近い代表色
の抽出、そして前記代表色コード情報の画像メモリ(1
2)への書き込みを実行するとともに、各種装置の制御
を行う用に構成すれば良い。
That is, the CPU (23) calculates an interpolated color from real pixels around the interpolated pixel, extracts a representative color that is most similar to the interpolated color, and extracts the representative color from the actual pixels surrounding the interpolated pixel, according to the control program stored in the memory (24). Image memory of code information (1
2) may be configured to execute writing to and control various devices.

したがって、第2請求項の発明による実施例によれば、
内挿画素と各実画素との距離によって各代表色を重み付
けして、内挿画素の画素値である補間色を算出し、該補
間色と最も近似する代表色を内挿画素の画素値とするの
で、補間された値は画像の局所的な相関性からみて極め
てふされしい値になる。
Therefore, according to the embodiment according to the second claim of the invention,
Each representative color is weighted according to the distance between the interpolation pixel and each actual pixel, an interpolation color that is the pixel value of the interpolation pixel is calculated, and the representative color that is most similar to the interpolation color is determined as the pixel value of the interpolation pixel. Therefore, the interpolated value becomes a very appropriate value in view of the local correlation of the image.

[発明の効果コ 以上説明したように、第1請求項による発明によれば、
サブサンプルされた限定色画像において、内挿画素に対
応する実周辺画素の各代表色の発生頻度を計数し、最大
頻度の代表色を抽出し、内挿画素の画素値にすることに
より、限定色画像の様に画素値が実際に表示される輝度
値と全く関係がない画像においても良好な画質での補間
を可能にするという効果がある。
[Effects of the Invention As explained above, according to the invention according to the first claim,
In the subsampled limited color image, the occurrence frequency of each representative color of the real surrounding pixels corresponding to the interpolated pixel is counted, and the representative color with the maximum frequency is extracted and used as the pixel value of the interpolated pixel. This has the effect of enabling interpolation with good image quality even for images such as color images where pixel values are completely unrelated to actually displayed luminance values.

また、第2請求項の発明によれば、この発明は以上説明
したとおり、サブサンプルされた限定色画像において、
画素補間処理を実行する手段として捕間色算出手段、補
間代表色抽出手段、画素補間手段とを設けることにより
、内挿画素に対応する実周辺画素から算出される補間色
に最も近似する代表色で内挿画素を補間する様にしてい
るので、限定色画像の様に画素値が実際に表示される輝
度値と全く関係がない画像においても良好な画質での補
間を可能にするという効果がある。
Further, according to the invention of claim 2, as explained above, in the subsampled limited color image,
By providing an interpolation color calculation means, an interpolation representative color extraction means, and a pixel interpolation means as a means for executing pixel interpolation processing, a representative color that is most similar to the interpolation color calculated from the actual surrounding pixels corresponding to the interpolation pixel can be obtained. Since the interpolated pixels are interpolated with , the effect is that it is possible to interpolate with good image quality even in images where pixel values have no relation to the actually displayed brightness values, such as limited color images. be.

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

第1図は第1請求項の発明に係る限定画像処理装置の一
実施例を示すブロック構成図、第2図は第1請求項及び
第2請求項の発明の他の実施例のシステム構成図、第3
図は第2請求項の発明による実施例のブロック構成図、
第4図はサンプリングパターンの説明図、第5図は従来
例のブロック構成図、第6図はサンプリングパターンの
説明図である。 図において、(12)は画像メモリ、(13)は代表色
格納手段、(14)は画像切り出し手段、(15)は願
文計数手段、(16)は最大頻度画素抽出手段、(17
)は画素補間手段、(15a)は捕間色算出手段、(1
6a)は補間代表色算出手段である。 なお、図中、同一符号は同一、又は相当部分を示す。 代理人 弁理士 大 岩 増 雄 (他 2名) 第1図 第3図 XXXX:XXXXX xxxx4xxxx oxxx6xxx。 xxxxxxxxx 第4図 ○  xoxox  ○ e xoxoxox oxoxox。 第6図 手続補正書(自発)
FIG. 1 is a block configuration diagram showing one embodiment of the limited image processing device according to the invention of the first claim, and FIG. 2 is a system configuration diagram of another embodiment of the invention of the first and second claims. , 3rd
The figure is a block configuration diagram of an embodiment according to the invention of claim 2,
FIG. 4 is an explanatory diagram of the sampling pattern, FIG. 5 is a block diagram of a conventional example, and FIG. 6 is an explanatory diagram of the sampling pattern. In the figure, (12) is image memory, (13) is representative color storage means, (14) is image cutting means, (15) is application text counting means, (16) is maximum frequency pixel extraction means, (17) is
) is a pixel interpolation means, (15a) is an interpolation color calculation means, (1
6a) is an interpolation representative color calculation means. In addition, in the figures, the same reference numerals indicate the same or equivalent parts. Agent: Patent attorney Masuo Oiwa (and 2 others) Figure 1 Figure 3 XXXX: XXXXX xxxx4xxxx oxxx6xxx. xxxxxxxxxx Figure 4 ○ xoxox ○ e xoxoxox oxoxox. Figure 6 Procedural amendment (voluntary)

Claims (2)

【特許請求の範囲】[Claims] (1)複数の画素からなり、画素値として代表色を示す
コード情報を有する限定色画像の画像処理を行う限定色
画像処理装置において、 あらかじめ定められたサンプリングパターンにしたがっ
て画素サンプリングされた限定色サンプリング画像の画
素値を装置内に入力する画像入力手段と、 該入力した限定色サンプリング画像の画素値を記憶する
画像記憶手段と、 前記限定色サンプリング画像の実画素間に間引かれた画
素を内挿する画素補間手段であって、内挿画素の周囲に
位置する複数の実画素からなる実周辺画素の各代表色の
発生頻度を計数し、内挿画素の画素値を前記実周辺画素
の最大発生頻度を有する代表色コードとする画素補間手
段と、 を含み、サンプリングされた限定色画像の画素補間を行
うことを特徴とする限定色画像処理装置。
(1) In a limited color image processing device that performs image processing of a limited color image consisting of a plurality of pixels and having code information indicating a representative color as a pixel value, limited color sampling is performed in which pixels are sampled according to a predetermined sampling pattern. image input means for inputting pixel values of an image into the apparatus; image storage means for storing the input pixel values of the limited color sampling image; A pixel interpolation means for interpolation, which counts the frequency of occurrence of each representative color of real peripheral pixels consisting of a plurality of real pixels located around the interpolated pixel, and sets the pixel value of the interpolated pixel to the maximum of the real peripheral pixels. What is claimed is: 1. A limited color image processing device, comprising: pixel interpolation means that uses a representative color code having a frequency of occurrence, and performs pixel interpolation of a sampled limited color image.
(2)限定色画像処理装置において、 あらかじめ定められたサンプリングパターンにしたがっ
て画素サンプリングされた限定色サンプリング画像の画
素値を装置内に入力する画像入力手段と、 該入力した限定色サンプリング画像の画素値を記憶する
画像記憶手段と、 前記限定色サンプリング画像の実画素間に間引かれた画
素を内挿する画素補間手段であって、内挿画素と該内挿
画素の周囲に位置する各実画素との距離によって各代表
色を重み付けして、内挿画素の画素値である補間色を算
出し、該補間色と最も近似する代表色を内挿画素の画素
値とする画素補間手段と、 を含み、サンプリングされた限定色画像の画素補間を行
うことを特徴とする限定色画像処理装置。
(2) In a limited color image processing device, an image input means for inputting into the device a pixel value of a limited color sampling image whose pixels have been sampled according to a predetermined sampling pattern; and a pixel value of the input limited color sampling image. and pixel interpolation means for interpolating the thinned out pixels between the real pixels of the limited color sampling image, the interpolation pixel and each real pixel located around the interpolation pixel. pixel interpolation means that calculates an interpolation color that is a pixel value of an interpolation pixel by weighting each representative color according to the distance from the interpolation pixel, and sets the representative color that is most similar to the interpolation color as the pixel value of the interpolation pixel; What is claimed is: 1. A limited color image processing device that performs pixel interpolation of a sampled limited color image.
JP63117380A 1988-05-13 1988-05-13 Limited color picture processor Pending JPH01288087A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63117380A JPH01288087A (en) 1988-05-13 1988-05-13 Limited color picture processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63117380A JPH01288087A (en) 1988-05-13 1988-05-13 Limited color picture processor

Publications (1)

Publication Number Publication Date
JPH01288087A true JPH01288087A (en) 1989-11-20

Family

ID=14710218

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63117380A Pending JPH01288087A (en) 1988-05-13 1988-05-13 Limited color picture processor

Country Status (1)

Country Link
JP (1) JPH01288087A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008136221A (en) * 2007-12-14 2008-06-12 Sony Corp Learning apparatus and method, and image processor and image processing method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008136221A (en) * 2007-12-14 2008-06-12 Sony Corp Learning apparatus and method, and image processor and image processing method

Similar Documents

Publication Publication Date Title
JP4295340B2 (en) Enlarge and pinch 2D images
CN110490896B (en) Video frame image processing method and device
US7499108B2 (en) Image synthesis apparatus, electrical apparatus, image synthesis method, control program and computer-readable recording medium
CN112288665B (en) Image fusion method and device, storage medium and electronic equipment
CN104134435B (en) Image processing equipment and image processing method
US8218025B2 (en) Image capturing apparatus, image capturing method, and computer program product
EP0358498A2 (en) Method and apparatus for generating animated images
CN107621932B (en) Local amplification method and device for display image
KR100935173B1 (en) Perspective transformation of two-dimensional images
JP2003521163A (en) Text improvements
CA2129092A1 (en) Image Interpolation Apparatus
KR101613762B1 (en) Apparatus and method for providing image
US5844567A (en) Computer graphics system and method for texture mapping using triangular interpolation
CN112149647B (en) Image processing method, device, equipment and storage medium
US6232978B1 (en) Image processing apparatus, and method of controlling same, using a combination of enlargement and fixed ratio reduction processing
EP1481632A1 (en) Ophtalmologic image processing apparatus
JPH01288087A (en) Limited color picture processor
CN115880461A (en) Augmented reality image generation method, device, equipment and storage medium
JP2882754B2 (en) Soft chroma key processing method
CN113544701A (en) Method and device for detecting associated object
JP2973432B2 (en) Image processing method and apparatus
JP2002015327A (en) Image type discrimination device, image processor using the same, and image type discrimination method
US6429866B1 (en) Three-dimensional graphics drawing apparatus calculating tone of pixel based on tones of pixels at prescribed intervals, method thereof and medium recorded with program therefor
US20040091173A1 (en) Method, apparatus and system for the spatial interpolation of color images and video sequences in real time
KR100463552B1 (en) Cubic convolution interpolation apparatus and method