JP3026706B2 - Image processing device - Google Patents

Image processing device

Info

Publication number
JP3026706B2
JP3026706B2 JP5239993A JP23999393A JP3026706B2 JP 3026706 B2 JP3026706 B2 JP 3026706B2 JP 5239993 A JP5239993 A JP 5239993A JP 23999393 A JP23999393 A JP 23999393A JP 3026706 B2 JP3026706 B2 JP 3026706B2
Authority
JP
Japan
Prior art keywords
pixels
maximum value
pixel
resolution
edge
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
JP5239993A
Other languages
Japanese (ja)
Other versions
JPH0793531A (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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP5239993A priority Critical patent/JP3026706B2/en
Priority to EP94306991A priority patent/EP0645736B1/en
Priority to DE69432093T priority patent/DE69432093T2/en
Publication of JPH0793531A publication Critical patent/JPH0793531A/en
Priority to US08/792,119 priority patent/US5875268A/en
Application granted granted Critical
Publication of JP3026706B2 publication Critical patent/JP3026706B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformation in the plane of the image
    • G06T3/40Scaling the whole image or part thereof
    • G06T3/403Edge-driven scaling

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、例えば入力した画像情
報を拡大変倍して出力するプリンタ等の画像出力装置
や、解像度の異なる機種間通信で、低解像情報から高解
像情報に解像度を変換する画像処理装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image output apparatus such as a printer which enlarges and resizes input image information and outputs the image information, and communication between models having different resolutions to convert low-resolution information to high-resolution information. The present invention relates to an image processing device for converting resolution.

【0002】[0002]

【従来の技術】従来より、入力した低解像情報を高解像
情報に解像度を変換する方法として、様々な方法が提案
されている。これらの方法は、対象となる画像の種類
(例えば、各画素毎に階調情報を持つ多値画像、疑似中
間調により2値化された2値画像、固定閾値により2値
化された2値画像、文字画像等)によって、その変換処
理方法が異なっている。本発明で対象としている画像は
各画素事に階調情報を持つ自然画像等の多値画像である
が、従来の内挿方法は図17に示すような内挿点に最も
近い同じ画素値を配列する最近接内挿方法や、図18に
示すような内挿点を囲む4点(4点の画素値をA,B,
C,Dとする)の距離により、以下の演算によって画素
値Eを決定する共1次内挿等が一般的に用いられてい
る。
2. Description of the Related Art Conventionally, various methods have been proposed as a method of converting resolution of inputted low-resolution information into high-resolution information. These methods are based on the type of the target image (for example, a multi-valued image having gradation information for each pixel, a binary image binarized by pseudo halftone, a binary image binarized by a fixed threshold). Image, character image, etc.). The image targeted by the present invention is a multi-valued image such as a natural image having gradation information for each pixel, but the conventional interpolation method uses the same pixel value closest to the interpolation point as shown in FIG. The closest interpolation method of arranging, and the four points surrounding the interpolation points as shown in FIG.
In general, bilinear interpolation or the like for determining the pixel value E by the following calculation based on the distances C and D) is used.

【0003】E=(1−i)(1−j)A+i(1−
j)B+j(1−i)C+ijD 但し、画素間距離を1とした場合に、Aから横方向に
i、縦方向にjの距離があるとする(i≦1,j≦
1)。また、他の方法として、特開昭55- 112076号に記
載されている高密度画素復元方法があり、この方法によ
り低解像度情報から高解像度情報に適応的な補間処理が
可能である。
E = (1-i) (1-j) A + i (1-
j) B + j (1-i) C + ijD However, when the distance between pixels is 1, it is assumed that there is a distance i from the A in the horizontal direction and j in the vertical direction (i ≦ 1, j ≦
1). As another method, there is a high-density pixel restoration method described in Japanese Patent Application Laid-Open No. 55-112076, and this method enables adaptive interpolation processing from low-resolution information to high-resolution information.

【0004】[0004]

【発明が解決しようとしている課題】しかしながら、上
記従来例では、以下に示すような欠点があった。即ち、
図17の方法では、構成が簡単であるという利点はある
が、対象画像を自然画像等に用いた場合、拡大するブロ
ック毎に画素値が決定されるため、視覚的にブロックが
目立ってしまい画質的に劣悪である。
However, the above-mentioned prior art has the following drawbacks. That is,
The method of FIG. 17 has an advantage that the configuration is simple, but when the target image is used for a natural image or the like, the pixel value is determined for each block to be enlarged, so that the blocks are visually conspicuous and the image quality is low. Poor.

【0005】また図18の方法は、自然画素の拡大には
一般的に良く用いられている方法である。この方法で
は、平均化され、スムージングかかった画質になるが、
エッジ部やシャープな画質が要求される部分には、ぼけ
た画質になってしまう。更に、地図等をスキャンした画
像や、文字部を含む自然画像のような場合には、補間に
よるぼけのために、大切な情報が受け手に伝わらないこ
ともある。
The method shown in FIG. 18 is a commonly used method for enlarging natural pixels. With this method, the image quality is averaged and smoothed,
The image quality becomes blurred at the edge portion or at the portion where sharp image quality is required. Furthermore, in the case of an image obtained by scanning a map or the like or a natural image including a character portion, important information may not be transmitted to a recipient due to blurring due to interpolation.

【0006】また、前述した特開昭55- 112076号におい
ては、拡大する倍率が3倍に固定であり、更に処理後の
画像情報が白、黒の2値情報になってしまうため、適応
的なディザパターンによる2値化と等価である。本発明
は、上記課題を解決するために成されたもので、低解像
度の画像を容易に高解像度に変換できると共に高品位な
画質が得られる画像処理装置を提供することを目的とす
る。
In the above-mentioned Japanese Patent Application Laid-Open No. 55-112076, the enlargement magnification is fixed to three times, and the processed image information becomes binary information of white and black. This is equivalent to binarization using a simple dither pattern. SUMMARY An advantage of some aspects of the invention is to provide an image processing apparatus that can easily convert a low-resolution image into a high-resolution image and obtain high-quality image quality.

【0007】[0007]

【課題を解決するための手段】上記目的を達成するため
に、本発明の画像処理装置は以下の構成を有する。低解
像度の注目画素を(N×M)画素のブロックに拡大し、
低解像度の画像を高解像度の画像に変換する画像処理装
置であって、低解像度の注目画素及びその周囲画素から
最大値及び最小値を検出する検出手段と、前記検出手段
により検出された最大値及び最小値を前記ブロック内に
配置する配分比率を決定する決定手段と、前記決定手段
により決定された配分比率に応じて前記最大値及び最小
を配置する配置手段とを有する。
To achieve the above object, an image processing apparatus according to the present invention has the following arrangement. The low resolution target pixel is enlarged to a block of (N × M) pixels,
An image processing apparatus for converting low-resolution image to a high resolution image, the surrounding pixels of the low resolution pixel of interest and its
Detecting means for detecting a maximum value and a minimum value ; determining means for determining a distribution ratio for arranging the maximum value and the minimum value detected by the detecting means in the block; and a distribution ratio determined by the determining means. Depending on the maximum and minimum
Arrangement means for arranging values .

【0008】また好ましくは、前記決定手段は、注目画
素の濃度を保存するようにブロック内に配置すべき最大
値及び最小値の面積率、及び画素数を決定することを特
徴とする。また好ましくは、更に、低解像度の画素を補
間する補間手段と、前記補間手段により補間された画素
をソートするソート手段とを有し、前記配置手段は、前
記面積率、及び画素数に応じて、前記ソート手段でソー
トされた画素に前記最大値及び最小値を配置することを
特徴とする。
Preferably, the determining means includes a maximum value to be arranged in the block so as to preserve the density of the pixel of interest.
It is characterized in that the area ratio of the value and the minimum value and the number of pixels are determined. Further preferably, further comprising an interpolation means for interpolating low-resolution pixels, and a sorting means for sorting the pixels interpolated by the interpolation means, wherein the arranging means, according to the area ratio, and the number of pixels And arranging the maximum value and the minimum value on the pixels sorted by the sorting means.

【0009】更に好ましくは、前記配置手段は、前記周
囲画素同士の大小関係、及び比率により、ブロック内に
最大値及び最小値を配置することを特徴とする。更に好
ましくは、前記配置手段は、前記注目画素の周囲4角の
うち、最大の値をとる角を算出し、該角を挟む辺に隣接
する画素間の比率により、ブロック内に最大値及び最小
を配置することを特徴とする。
[0009] More preferably, the arranging means is arranged in a block according to a magnitude relationship between the surrounding pixels and a ratio.
It is characterized in that a maximum value and a minimum value are arranged. More preferably, the arranging means calculates a corner having a maximum value among four corners around the pixel of interest, and calculates a maximum value and a minimum value in a block according to a ratio between pixels adjacent to sides sandwiching the corner.
It is characterized by arranging values .

【0010】更に好ましくは、前記配置手段は、前記注
目画素の上下、又は左右の画素間の比率により、ブロッ
ク内に最大値及び最小値を配置することを特徴とする。
また、配置後に平滑化を施すことを特徴とする。
More preferably, the arranging means arranges a maximum value and a minimum value in a block according to a ratio between upper and lower or left and right pixels of the target pixel.
In addition, smoothing is performed after the arrangement.

【0011】[0011]

【作用】かかる構成において、低解像度の注目画素を
(N×M)画素のブロックに拡大し、低解像度の画像を
高解像度の画像に変換する際に、低解像度の注目画素
びその周囲画素から最大値及び最小値を検出し、検出さ
れた最大値及び最小値をブロック内に配置する配分比率
を決定し、決定された配分比率に応じて最大値及び最小
を配置するように動作する。
In such a configuration, when the low-resolution target pixel is enlarged into a block of (N × M) pixels and the low-resolution image is converted into a high-resolution image, the low-resolution target pixel and the low-resolution target pixel are converted to a high-resolution image.
Detecting the maximum and minimum values from the surrounding pixels patron, the maximum value and the minimum in accordance with the detected maximum value and the minimum value determines the distribution ratio to place in the block, the determined distribution ratio
Acts like placing a value .

【0012】[0012]

【実施例】以下、図面を参照して本発明に係る好適な一
実施例を詳細に説明する。尚、本発明に係る画像処理装
置は、主としてプリンタ等の画像出力装置内部に具備す
ることが効率的であるが、画像出力装置以外の画像処理
装置、ホストコンピュータ内のアプリケーションソフト
として内蔵することも可能である。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS A preferred embodiment according to the present invention will be described below in detail with reference to the drawings. It is efficient that the image processing apparatus according to the present invention is mainly provided inside an image output apparatus such as a printer. However, the image processing apparatus other than the image output apparatus may be incorporated as application software in a host computer. It is possible.

【0013】<第1の実施例>図1は、第1の実施例に
おける画像処理装置の構成を示すブロック図である。図
中、100は入力端子を示し、低解像の画像情報(低解
像情報)が入力される。この低解像情報は、線形補間手
段101に送信され、線形補間(共1次補間)処理によ
り、元のサンプリング間の画素が埋められ、縦N倍、横
M倍の補間情報が作成される。線形補間については図1
7に示した従来例で説明したため、省略する。102は
エッジ作成手段を示し、低解像情報の注目画素(Ixy
する)を中心とするN画素×M画素の補間情報のブロッ
ク毎にエッジを作成する。エッジ作成の詳細については
後述する。
<First Embodiment> FIG. 1 is a block diagram showing a configuration of an image processing apparatus according to a first embodiment. In the figure, reference numeral 100 denotes an input terminal to which low-resolution image information (low-resolution information) is input. This low-resolution information is transmitted to the linear interpolation means 101, and the pixels between the original samplings are buried by the linear interpolation (bilinear interpolation) processing to create interpolation information N times vertically and M times horizontally. . Figure 1 for linear interpolation
7, the description is omitted. Reference numeral 102 denotes an edge creating unit, which creates an edge for each block of interpolation information of N pixels × M pixels centering on a target pixel ( Ixy ) of low resolution information. The details of the edge creation will be described later.

【0014】103は配分比率決定手段を示し、作成さ
れた線形補間情報とエッジ情報との合成において、その
配分比率(aとおく。但し、0≦a≦1)を算出する。
この配分比率もN画素×M画素のブロック単位で決定さ
れる。この配分比率の決定についても詳細は後述する。
その後、求めた配分比率(a)を用いて乗算器104に
てエッジ情報がa倍され、乗算器105にて線形補間情
報が(1−a)倍された後、加算器106にて合成され
る。107は出力端子を示し、入力された画像情報がN
×M倍の情報に変換されて出力される。
Reference numeral 103 denotes an allocation ratio determining means for calculating the allocation ratio (a, where 0 ≦ a ≦ 1) in the synthesis of the created linear interpolation information and edge information.
This distribution ratio is also determined for each block of N pixels × M pixels. Details of the determination of the distribution ratio will be described later.
Thereafter, using the obtained distribution ratio (a), the edge information is multiplied by a in the multiplier 104, the linear interpolation information is multiplied by (1−a) in the multiplier 105, and then synthesized by the adder 106. You. Reference numeral 107 denotes an output terminal whose input image information is N
It is converted into information of × M times and output.

【0015】図2は、図1に示したエッジ作成手段10
2の詳細な構成を表した図である。このエッジ作成手段
102は第1の実施例での特徴である。破線で囲んだ部
分がエッジ作成手段102に相当する。図中、110は
低解像情報の入力端子であり、111に示した情報が入
力される。111において、Eの画素が注目画素に相当
し、一点鎖線で囲んだ部分が注目画素の近傍画素に対す
るウインドウである。112は線形補間手段101から
の入力端子を示し、113に示した情報が入力される。
113において、破線は各低解像情報の画素を中心とし
たブロック境界を示し、実線で囲まれた部分が、注目画
素Eに対するブロックとなる。また、〇印は低解像情報
の画素を、Χ印は補間画素を示している。
FIG. 2 shows the edge creating means 10 shown in FIG.
2 is a diagram showing a detailed configuration of FIG. This edge creating means 102 is a feature of the first embodiment. A portion surrounded by a broken line corresponds to the edge creating means 102. In the figure, reference numeral 110 denotes an input terminal for low resolution information, to which information indicated by 111 is input. At 111, the pixel of E corresponds to the pixel of interest, and the portion surrounded by the dashed line is the window for the neighboring pixels of the pixel of interest. Reference numeral 112 denotes an input terminal from the linear interpolation means 101, to which information shown in 113 is input.
In 113, a broken line indicates a block boundary centered on each pixel of low-resolution information, and a portion surrounded by a solid line is a block for the target pixel E. In addition, a triangle indicates a pixel of low resolution information, and a triangle indicates an interpolation pixel.

【0016】入力端子110から入力された低解像情報
111は、MAX、MIN検出手段114によりウイン
ドウ内の最大値(MAX)、最小値(MIN)が検出さ
れる。検出されたMAX及びMINは配置画素算出手段
115に送出され、エッジを作成する2値の代表値のそ
れぞれの画素数が算出される。MAXの代表値を配置す
る画素数をDOTMAX 、MINの代表値を配置する画素
数をDOTMIN とおくと、それぞれの画素数は以下の式
により決定される。
With respect to the low resolution information 111 input from the input terminal 110, the maximum value (MAX) and the minimum value (MIN) in the window are detected by the MAX / MIN detecting means 114. The detected MAX and MIN are sent to the arrangement pixel calculation means 115, and the number of pixels of each of the binary representative values for forming the edge is calculated. Assuming that the number of pixels for arranging the representative value of MAX is DOT MAX and the number of pixels for arranging the representative value of MIN is DOT MIN , the number of pixels is determined by the following equation.

【0017】DOTMAX =(Ixy−MIN)×N×M/
(MAX−MIN) DOTMIN =N×M−DOTMAX 決定されたそれぞれのDOTと、MAX及びMINはド
ット配置手段116に送出される。一方、入力端子11
2から入力された線形補間の施された注目画素Eを中心
とするブロック113はソート手段117に送られ、ブ
ロック内の線形補間画素が画素値の大きな順にソーティ
ングされる。尚、ソートのアルゴリズム自体はここでは
限定しない。
DOT MAX = (I xy −MIN) × N × M /
(MAX-MIN) DOT MIN = N × M-DOT MAX The determined DOT, MAX and MIN are sent to the dot arrangement means 116. On the other hand, the input terminal 11
The block 113 centered on the target pixel E subjected to the linear interpolation input from 2 is sent to the sorting means 117, and the linearly interpolated pixels in the block are sorted in descending order of the pixel value. The sorting algorithm itself is not limited here.

【0018】ソーティングの施されたEを含むブロック
内の画素は、ドット配置手段116により画素値の大き
な順にDOTMAX 画素分だけ、MAXが代入され、ブロ
ック内のその他の画素にはMINが代入される。118
は出力端子を示し、119に示したように2値化代表値
をMAX、MINで割り当てたブロックの情報が出力さ
れる。
MAX is assigned to the pixels in the block including the sorted E by the dot arrangement means 116 by DOT MAX pixels in descending order of the pixel value, and MIN is assigned to the other pixels in the block. You. 118
Denotes an output terminal, and as shown in 119, information of a block in which the binarized representative value is assigned by MAX and MIN is output.

【0019】図3は、上述の線形補間及びエッジ作成の
様子を示した図である。説明を簡単にするため、一次元
方向で示してある。図中、〇印は低解像度上のサンプリ
ング点の画素値を示し、X印はその間を内挿する補間点
の画素値を示す。また中央に位置する〇印の点を注目画
素とする。図3の(a)に示すように、隣接画素からM
AX、MINをそれぞれ検出し、前述した式により、D
OTMAX を算出する。いま、注目画素を中心とする拡大
した画素ブロックを5画素分とし、DOTMAXが4画素
分だとすると、同(b)に示すように、画素値の大きな
4画素はMAXと等しくなり、画素値の小さい1画素は
MINと等しくなる。
FIG. 3 is a diagram showing the above-described linear interpolation and edge creation. For simplicity, it is shown in a one-dimensional direction. In the figure, the symbol 〇 indicates the pixel value of a sampling point on a low resolution, and the symbol X indicates the pixel value of an interpolation point interpolating between them. In addition, a point indicated by a triangle located at the center is set as a target pixel. As shown in FIG. 3A, M
AX and MIN are detected respectively, and D
Calculate OT MAX . Now, assuming that the enlarged pixel block centered on the target pixel is 5 pixels and DOT MAX is 4 pixels, as shown in FIG. 2B, the 4 pixels having a large pixel value are equal to MAX, and the pixel value is One small pixel is equal to MIN.

【0020】図4は、エッジ情報を作成する例を示した
図である。ここで、前述したDOT算出の計算式につい
て説明する。図4の例では、低解像情報を縦N倍、横M
倍の高解像情報に変換するものとする。いま、N=M=
8の場合を例にする。また図4の(a)に示すように、
注目画素が中央に配した“80”の画素値であったとす
る。この“80”の低解像画素は、高解像情報で考えた
場合、同(b)に示すように、200の画素と20の画
素の2値が、ある比率で含まれているエッジ部であり、
低解像にしたために80の値に丸められたものと想定す
る。即ち、濃度保存を考えた場合、低解像80の画素に
含まれる高解像200の比率をA、20の比率をBと想
定すると、200×A+20×B=80になる。
FIG. 4 is a diagram showing an example of creating edge information. Here, the calculation formula of the above-described DOT calculation will be described. In the example shown in FIG.
It shall be converted to double high resolution information. Now, N = M =
8 is taken as an example. Also, as shown in FIG.
It is assumed that the target pixel has a pixel value of “80” arranged in the center. When the low-resolution pixel “80” is considered in terms of the high-resolution information, as shown in (b), the edge portion in which two values of 200 pixels and 20 pixels are included in a certain ratio And
It is assumed that the value has been rounded to a value of 80 for low resolution. That is, when density preservation is considered, assuming that the ratio of the high resolution 200 included in the pixels of the low resolution 80 is A and the ratio of 20 is B, 200 × A + 20 × B = 80.

【0021】ここで、Ixy、MAX、MINの変数を用
いると、 MAX×A+MIN×B=Ixy いま、A+B=1と想定するため、 MAX×A+MIN×(1−A)=Ixy 即ち、A=(Ixy−MIN)/(MAX−MIN)とな
る。
Here, if the variables I xy , MAX, and MIN are used, MAX × A + MIN × B = I xy Since A + B = 1 is assumed, MAX × A + MIN × (1-A) = I xy a = a (I xy -MIN) / (MAX -MIN).

【0022】いま、低解像の1画素を(N×M)画素分
に拡大するため、MAXの配置する画素数は、 DOTMAX =(Ixy−MIN)×N×M/(MAX×M
IN) で表される。この例では、Ixy=80、MAX=20
0、MIN=20、N=M=8であるため、前述した式
に代入すると、MAX値を配置する画素数DOTMAX
は、21画素分となる。即ち、8倍×8倍にした64画
素分の内、画素値の大きい順から21画素分にMAXで
ある200の値が代入され、残りの43画素分にMIN
である20の値が代入されることになる。
Now, in order to enlarge one low-resolution pixel to (N × M) pixels, the number of pixels for MAX is: DOT MAX = (I xy −MIN) × N × M / (MAX × M
IN). In this example, I xy = 80, MAX = 20
Since 0, MIN = 20, and N = M = 8, when substituted into the above equation, the number of pixels DOT MAX at which the MAX value is arranged
Is equivalent to 21 pixels. That is, of the 64 pixels of 8 × 8 times, the value of MAX of 200 is assigned to 21 pixels in descending order of pixel value, and MIN is assigned to the remaining 43 pixels.
Is substituted.

【0023】このように、注目画素に対応するブロック
内にエッジを作成している。以上説明したエッジ作成処
理により、拡大されたブロック内で高解像度方向に滑ら
かなエッジ、即ち、高解像情報を作成することが可能に
なる。図5は、配分比率決定手段103の詳細な構成を
示した図である。図中、破線で囲まれた部分が配分比率
決定手段103に相当する。図中、121は入力端子を
示し、122に示した低解像情報が入力される。図2で
説明したように、Eの画素を注目画素とする。上述のエ
ッジ作成手段102と同様に、MAX、MIN検出手段
123により、ウインドウ内のMAX、MINが検出さ
れる。この検出手段はエッジ作成手段102の中のもの
と共有できることは勿論である。
As described above, an edge is created in a block corresponding to a target pixel. By the edge creation processing described above, it is possible to create a smooth edge in the high resolution direction, that is, high resolution information, within the enlarged block. FIG. 5 is a diagram showing a detailed configuration of the distribution ratio determining means 103. In the figure, a portion surrounded by a broken line corresponds to the distribution ratio determining means 103. In the figure, reference numeral 121 denotes an input terminal, to which the low-resolution information shown by 122 is input. As described with reference to FIG. 2, the pixel E is set as a target pixel. Similarly to the above-described edge creating means 102, the MAX and MIN detecting means 123 detects MAX and MIN in the window. Of course, this detection means can be shared with that in the edge creation means 102.

【0024】124は減算器を示し、(MAX−MI
N)の演算が行われる。即ち、このウインドウ内のダイ
ナミックレンジを求めることに相当する。125は重み
付け手段を示し、配分比率(a)を求める時のエッジ情
報をより重要視するか、或いは軽視するかを決定するた
めに設けた係数の乗算器である。この係数は、システム
に最適化するために実験的に求めても良いし、対象画像
に応じて決定しても良い。
Reference numeral 124 denotes a subtractor, which is (MAX-MI
N) is performed. That is, it corresponds to obtaining the dynamic range in this window. Reference numeral 125 denotes a weighting unit, which is a coefficient multiplier provided to determine whether the edge information at the time of obtaining the distribution ratio (a) is to be regarded as more important or less important. This coefficient may be obtained experimentally to optimize the system, or may be determined according to the target image.

【0025】126はクリップ手段であり、係数の乗算
による値のオーバーフローをクリップする。こうして算
出された配分比率(a)は出力端子127により出力さ
れ、エッジ情報と線形補間情報との合成の配分を司る。
以上の処理により、エッジの急峻な部分では作成したエ
ッジ情報が大きく依存し、平坦部では線形補間情報が大
きく依存するようになる。
Reference numeral 126 denotes a clip unit which clips a value overflow caused by multiplication of coefficients. The distribution ratio (a) calculated in this way is output from the output terminal 127, and controls distribution of the combination of the edge information and the linear interpolation information.
By the above processing, the created edge information largely depends on the steep edge portion, and the linear interpolation information greatly depends on the flat portion.

【0026】<第1の実施例の変形例1>図6は、第1
の実施例によるエッジ作成手段102の変形例1を示す
ブロック図である。この変形例1では、図2に示したエ
ッジ作成手段102のソート手段117を簡略化してい
る点が異なっている。図6において、図2と同一部分に
は同一番号を付して説明する。図中、115は配置画素
数算出手段を示し、第1の実施例と同様、MAXを配置
する画素数と、MINを配置する画素数を算出する手段
を示している。変形例1の特徴は、配置画素数算出手段
115にて算出した画素数をソート手段131に送信す
る点にある。
<Modification 1 of First Embodiment> FIG.
FIG. 14 is a block diagram showing a first modification of the edge creating means 102 according to the embodiment. The modification 1 is different from the first modification in that the sorting unit 117 of the edge creating unit 102 shown in FIG. 2 is simplified. In FIG. 6, the same parts as those in FIG. In the figure, reference numeral 115 denotes an arrangement pixel number calculating means, which is a means for calculating the number of pixels for arranging MAX and the number of pixels for arranging MIN, as in the first embodiment. The feature of the first modification is that the number of pixels calculated by the arrangement pixel number calculation unit 115 is transmitted to the sorting unit 131.

【0027】ソート手段131では、送信されてきたど
ちらかの画素数により、そのソート打ち切りを決定す
る。例えば、ここでDOTMAX が21画素だったと仮定
すると(ブロックはN=M=8で、64画素分)、ソー
ト手段115では、21画素という値を入力し、線形補
間情報113の各画素を値の大きな順に21画素分限定
できれば良く、それより値の低い画素についてはソーテ
ィングする必要はない。上位21画素分にドット配置手
段116によりMAXが配置され、その他の43画素分
にMINが配置されるのは、前述した実施例と同様であ
る。このように、ソート手段を簡略化することにより、
より高速に処理が実行できる。
The sort unit 131 determines whether to end the sort based on the number of transmitted pixels. For example, if it is assumed here that DOT MAX is 21 pixels (the block is N = M = 8, 64 pixels), the sorting means 115 inputs a value of 21 pixels and sets each pixel of the linear interpolation information 113 to a value. It is sufficient that only 21 pixels can be limited in the descending order of the pixels, and it is not necessary to sort pixels having lower values. MAX is arranged by the dot arrangement means 116 for the upper 21 pixels, and MIN is arranged for the other 43 pixels as in the above-described embodiment. Thus, by simplifying the sorting means,
Processing can be executed at higher speed.

【0028】<第1の実施例の変形例2>図7は、第1
の実施例によるエッジ作成手段102の変形例2を示す
ブロック図である。この変形例2では、図6に示した変
形例1よりも一段とソート手段を簡略化している点が異
なっている。図7において、図6と同一部分には同一番
号を付して説明する。115は配置画素数算出手段を示
し、第1の実施例と同様、MAXを配置する画素数と、
MINを配置する画素数を算出する手段を示している。
変形例2の特徴は、配置画素数算出手段115にて算出
した画素数をDOT MAX 、DOTMIN 比較器132にお
いて、どちらの画素数が小さいかを比較する手段を有し
ている点である。
<Modification 2 of the first embodiment> FIG.
14 shows a second modification of the edge creating means 102 according to the embodiment.
It is a block diagram. In the second modification, the modification shown in FIG.
The difference is that the sorting means is much simpler than in Example 1.
Has become. 7, the same parts as those in FIG.
A description will be given with numbers. Reference numeral 115 denotes an arrangement pixel number calculation unit.
Then, as in the first embodiment, the number of pixels for arranging MAX is
A means for calculating the number of pixels for arranging the MIN is shown.
The feature of the second modification is calculated by the arrangement pixel number calculation unit 115.
DOT MAX , DOTMIN The comparator 132
And has a means to compare which pixel number is smaller
That is the point.

【0029】DOTMAX 、DOTMIN 比較器132で
は、送信されてきたそれぞれの画素数を、どちらかの画
素数が小さいかを比較して、その小さい値をとる画素数
の方をソート手段131に送出する。この比較は画素数
同士を比較しても良いし、またどちらかの画素数、例え
ばDOTMAX だけを算出し、DOTMAX が、ブロックの
画素数(N×M)の1/2より大か小かを比較しても良
い。例えば、1/2より大ならDOTMIN を、小ならD
OTMAX をソート手段131に送出する。これにより、
ソート手段131では、最大でも(N×M/2)画素分
の順位付けで済むことになる。このように、ソート手段
を簡略化することにより、より高速に処理が実行でき
る。
The DOT MAX and DOT MIN comparators 132 compare the number of transmitted pixels with each other to determine whether the number of pixels is smaller. The number of pixels having the smaller value is sent to the sorting means 131. Send out. In this comparison, the number of pixels may be compared with each other, or only one of the number of pixels, for example, DOT MAX is calculated, and DOT MAX is larger or smaller than 1/2 of the number of pixels (N × M) of the block. May be compared. For example, if it is larger than 1/2, DOT MIN ;
OT MAX is sent to the sorting means 131. This allows
In the sorting means 131, the order of (N × M / 2) pixels can be set at the maximum. Thus, by simplifying the sorting means, processing can be executed at higher speed.

【0030】以上説明したように、第1の実施例によれ
ば、入力した低解像情報の注目画素に相当する高解像情
報のブロック内の画素値を、注目画素値が保存できる面
積率で、周囲画素値を配置することによって、エッジ情
報を推測作成することに相当し、エッジのシャープな高
解像の情報を作成することができる。また、線形補間し
た画素値のソーティングに基づいて、エッジ作成を行う
ため、良好なエッジが作成できる。更に、作成したエッ
ジ情報と、線形補間情報との合成比率を適応的に変化さ
せることにより、入力が自然画像の場合には特に、人工
的なエッジ作成による絵画調な画像になることを回避す
ることができる。
As described above, according to the first embodiment, the pixel value in the block of the high resolution information corresponding to the target pixel of the input low resolution information is determined by the area ratio at which the target pixel value can be stored. By arranging the peripheral pixel values, this corresponds to estimating and creating edge information, and it is possible to create high-resolution information with sharp edges. In addition, since edges are created based on the sorting of the linearly interpolated pixel values, good edges can be created. Furthermore, by adaptively changing the synthesis ratio between the created edge information and the linear interpolation information, especially when the input is a natural image, it is possible to avoid a painting-like image due to artificial edge creation. be able to.

【0031】<第2の実施例>次に、本発明に係る第2
の実施例を図面を参照しながら詳細に説明する。図8
は、第2の実施例における画像処理装置の構成を示すブ
ロック図である。図示するように、前述した第1の実施
例と同一部分には同一番号を付し、説明は省略する。図
中、201は第2の実施例によるエッジ作成手段を示
し、低解像の画像情報(低解像情報)の注目画素(Ixy
とする)を中心とするN画素×M画素のブロック毎にエ
ッジを作成する。
<Second Embodiment> Next, a second embodiment according to the present invention will be described.
Will be described in detail with reference to the drawings. FIG.
FIG. 9 is a block diagram illustrating a configuration of an image processing apparatus according to a second embodiment. As shown, the same parts as those in the above-described first embodiment are denoted by the same reference numerals, and description thereof is omitted. In the figure, reference numeral 201 denotes an edge creating unit according to the second embodiment, which is a target pixel (I xy ) of low-resolution image information (low-resolution information).
) Is created for each block of N pixels × M pixels around the center.

【0032】図9は、図8に示したエッジ作成手段20
1の詳細な構成を表した図である。このエッジ作成手段
201は第2の実施例での特徴である。破線で囲んだ部
分がエッジ作成手段201に相当する。図中、210は
低解像情報の入力端子であり、211に示した情報が入
力される。211において、Eの画素が注目画素に相当
し、一点鎖線で囲んだ部分が注目画素の近傍画素に対す
るウインドウである。
FIG. 9 shows the edge creating means 20 shown in FIG.
1 is a diagram showing a detailed configuration of FIG. This edge creating means 201 is a feature of the second embodiment. A portion surrounded by a broken line corresponds to the edge creating means 201. In the figure, reference numeral 210 denotes an input terminal for low resolution information, to which information indicated by 211 is input. In 211, the pixel of E corresponds to the pixel of interest, and the portion surrounded by the dashed line is the window for the neighboring pixels of the pixel of interest.

【0033】入力端子210から入力された低解像情報
211は、MAX、MIN検出手段212によりウイン
ドウ内の最大値(MAX)、最小値(MIN)が検出さ
れる。検出されたMAX及びMINは配置画素算出手段
213に送出され、エッジを作成する2値の代表値のそ
れぞれの画素数が算出される。MAXの代表値を配置す
る画素数をDOTMAX 、MINの代表値を配置する画素
数をDOTMIN とおくと、それぞれの画素数は以下の式
により決定される。
With respect to the low resolution information 211 input from the input terminal 210, the maximum value (MAX) and the minimum value (MIN) in the window are detected by the MAX / MIN detecting means 212. The detected MAX and MIN are sent to the arrangement pixel calculation means 213, and the number of pixels of each of the binary representative values for forming the edge is calculated. Assuming that the number of pixels for arranging the representative value of MAX is DOT MAX and the number of pixels for arranging the representative value of MIN is DOT MIN , the number of pixels is determined by the following equation.

【0034】DOTMAX =(Ixy−MIN)×N×M/
(MAX−MIN) DOTMIN =N×M−DOTMAX 一方、隣接画素群算出手段214にて、ウインドウの情
報により注目画素Eの隣接画素群の画素値が算出され
る。この隣接画素群の算出とは、注目画素の4角の値を
概算する処理である。4角の値は、以下のように算出さ
れる。
DOT MAX = (I xy −MIN) × N × M /
(MAX-MIN) DOT MIN = N × M-DOT MAX On the other hand, the neighboring pixel group calculating means 214 calculates the pixel value of the neighboring pixel group of the target pixel E based on the window information. The calculation of the adjacent pixel group is a process of roughly calculating the values of the four corners of the target pixel. The values of the four corners are calculated as follows.

【0035】左上の角 : a=αA+βB+βD 右上の角 : c=αC+βB+βF 左下の角 : g=αG+βD+βH 右下の角 : i=αI+βF+βH (α,βは係数) 算出された4角の画素群値は、MAX(a,c,g,i)算出手
段215に送出され、4角のうちで最も値の大きい角が
選定される。この選定された角が上述のDOT MAX とみ
なされる。続いて、比率演算手段216により、最大値
の角と、その角を挟む辺に隣接する画素同士の比率が算
出される。例えば、最大値の画素群の角がiであったと
すると、このiの角を挟む辺に隣接する画素であるFと
Hの値の比率が算出され、この算出された比率、及び配
置画素数算出手段213において算出された画素数によ
り、MAXとMINのドットが配置される。218は出
力端子を示し、219に示したようなブロック内にエッ
ジを作成したブロック情報が出力される。
Upper left corner: a = αA + βB + βD Upper right corner: c = αC + βB + βF Lower left corner: g = αG + βD + βH Lower right corner: i = αI + βF + βH (α and β are coefficients) The calculated pixel group values of the four corners are: MAX (a, c, g, i) calculator
Sent to the stage 215, and the corner having the largest value among the four corners is
Selected. The selected angle is the above-mentioned DOT. MAX Tomi
Done. Subsequently, the maximum value is calculated by the ratio calculating means 216.
Corner and the ratio of pixels adjacent to the side sandwiching the corner are calculated.
Will be issued. For example, if the angle of the pixel group having the maximum value is i
Then, F, which is a pixel adjacent to the side sandwiching the corner of i,
The ratio of the value of H is calculated, and the calculated ratio and distribution are calculated.
According to the number of pixels calculated by the placement pixel number calculating means 213,
MAX and MIN dots are arranged. 218 is out
Input terminal, and an edge inside the block as shown at 219.
The block information that created the page is output.

【0036】図10は、比率によりドット配置を決定す
る例を示した図である。いま、図10の(a)に示すよ
うに、低解像情報の注目画素が中央に配された“60”
の画素値であったとする。この注目画素の1画素分を縦
5倍、横5倍の25画素分に拡大するものとする。Ixy
=60,N=M=5,MAX=180,MIN=20に
より、配置画素数算出手段213にて算出された画素数
(DOT MAX )は6画素分となる。即ち、同(b)に示
すように、拡大する25画素中の6画素分にMAXであ
る“180”の値が配置され、19画素分にMINであ
る“20”の値が配置される。従って、この6画素を2
5画素中のどの画素に当てはめるかが第2の実施例での
ポイントとなる。
FIG. 10 shows the dot arrangement determined by the ratio.
FIG. Now, as shown in FIG.
Thus, the target pixel of the low-resolution information is "60"
It is assumed that the pixel value is One pixel of this pixel of interest is
It is assumed that the image is enlarged five times and five times horizontally to 25 pixels. Ixy
= 60, N = M = 5, MAX = 180, MIN = 20
The number of pixels calculated by the arrangement pixel number calculation unit 213
(DOT MAX ) Is for six pixels. That is, as shown in FIG.
As shown in FIG.
The value of “180” is placed, and the MIN is
The value of “20” is arranged. Therefore, these six pixels are calculated as 2
In the second embodiment, it is determined which of the five pixels is to be applied.
Points.

【0037】ここで、最大の画素群値をとる値は、上述
した比較手段により注目画素右下の角になり、この角を
中心にしてMAXのドットを配置していくことになる。
この角を挟む2辺の隣接する画素はそれぞれ“160”
と“80”であり、図10の(b)に示すx,yの比率
としては2:1となる。即ち、x:yの比率が2:1の
比率を保ちつつ、ドット数が6画素になるようにx,y
の値を算出する。算出されたx,yにより斜線を引き、
斜線よりも角側に位置している画素に、MAX(この場
合、“180”)のドットが配置される。ブロック内の
残り19画素分にMIN(この場合、“20”)のドッ
トが配置される。つまり、この斜線が、予想するエッジ
の形状に相当する。
Here, the value that takes the maximum pixel group value is the lower right corner of the pixel of interest by the above-described comparing means, and MAX dots are arranged around this corner.
The adjacent pixels on two sides sandwiching this corner are each “160”
And “80”, and the ratio of x and y shown in FIG. 10B is 2: 1. That is, while maintaining the ratio of x: y of 2: 1, the x and y are adjusted so that the number of dots becomes 6 pixels.
Is calculated. A diagonal line is drawn using the calculated x and y,
MAX (in this case, “180”) dot is arranged at a pixel located on the corner side of the oblique line. In the remaining 19 pixels in the block, MIN (in this case, “20”) dots are arranged. That is, the oblique lines correspond to the expected edge shapes.

【0038】このように、注目画素に対するブロック内
にエッジが作成される。また、図10の例では、MAX
を配置するエッジの形状がブロック内で三角形になりえ
たが、ドット数によっては三角形になりえないことがあ
る。図11は、ブロック内でエッジが四角形になる例を
示した図である。例えば、x>yの時に、x=Nにおい
ても三角形の面積がドット数に満たない場合がある(x
<yの時にはy=M)。その場合、x=Nの時に引かれ
た斜線の角度を保ったまま、図11の(a)に示したα
の距離分だけ平行移動して、同(b)に示す四角形の面
積がMAXのドット数に適合するようにx(この場合x
=N),y,αの値を算出し、同(c)のように、四角
形内の画素をMAXの値で埋めるように配置し、その他
の画素をMINの値で配置する。
As described above, an edge is created in the block corresponding to the target pixel. In the example of FIG.
May be triangular in the block, but may not be triangular depending on the number of dots. FIG. 11 is a diagram illustrating an example in which edges are square in a block. For example, when x> y, the area of the triangle may be less than the number of dots even when x = N (x
<Y when y = M). In this case, while maintaining the angle of the oblique line drawn when x = N, α shown in FIG.
Is moved in parallel by a distance of x (in this case, x (in this case, x) so that the area of the square shown in FIG.
= N), y, α are calculated, and as shown in (c), the pixels in the rectangle are arranged so as to be filled with MAX values, and the other pixels are arranged with MIN values.

【0039】また、エッジ形状がブロック内で五角形に
なる場合も同様に、斜線の平行移動により面積がMAX
のドット数に適合するように斜線の位置を算出する。以
上説明したエッジ作成処理により、拡大されたブロック
内で高解像度方向に滑らかなエッジ、即ち、高解像情報
を作成することが可能となる。 <第2の実施例の変形例1>図12は、第1の実施例に
よるエッジ作成手段201の変形例1を示すブロック図
である。この変形例1では、複数のエッジ作成手段を有
し、ウインドウ内の画素値の相互比較に基づいてエッジ
作成手段を選択するものである。
Similarly, when the edge shape becomes a pentagon in the block, the area is MAX due to the parallel movement of the oblique lines.
The position of the oblique line is calculated so as to conform to the dot number of. By the edge creation processing described above, it is possible to create a smooth edge in the high resolution direction, that is, high resolution information, within the enlarged block. <First Modification of Second Embodiment> FIG. 12 is a block diagram showing a first modification of the edge creating means 201 according to the first embodiment. In the first modification, a plurality of edge creating means are provided, and the edge creating means is selected based on the mutual comparison of the pixel values in the window.

【0040】図12において、図9と同一ブロックには
同一番号を付して説明する。図中、215は第2の実施
例と同様に、注目画素4角の画素群の値の最大値を算出
するMAX(a,c,g,i)算出手段である。比較手段220
では、この画素群値の最大値の信号を基に、最大値をと
る角と隣接する角との加算と、対向する2角の加算との
比較を行う。例えば、最大値をとる角が、前述した(a,
c,g,i)の4角のうち、iであったとすると、比較手段2
20では、 (i+c)−(g+a)>th1 … (1) (i+g)−(c+a)>th1 … (2) (th1は予め設定した閾値) か否かの比較判断が行われる。即ち、図9で示したよう
なブロック内、一つの角を中心にした斜め方向のエッジ
であるのか、また縦方向、横方向に伸びたエッジである
のかをおおまかに判断するものである。上記(1)式に
適合した場合には(i+c)が(g+a)よりもかけ離
れていることで、縦方向のエッジであると予測できる。
また、(2)式に適合した場合においては、(i+g)
が(c+a)よりもかけ離れているため、横方向のエッ
ジであると推測される。
In FIG. 12, the same blocks as those in FIG. 9 are described with the same numbers. In the figure, reference numeral 215 denotes MAX (a, c, g, i) calculating means for calculating the maximum value of the pixel group at the four corners of the pixel of interest, as in the second embodiment. Comparison means 220
Then, based on the signal of the maximum value of the pixel group value, a comparison is made between the addition of the corner having the maximum value and the adjacent corner and the addition of two opposing corners. For example, the angle that takes the maximum value is (a,
c, g, i), if it is i, the comparison means 2
At 20, it is determined whether or not (i + c)-(g + a)> th1 (1) (i + g)-(c + a)> th1 (2) (th1 is a preset threshold). That is, in the block as shown in FIG. 9, it is roughly determined whether the edge is a diagonal edge centering on one corner or an edge extending in the vertical and horizontal directions. In the case where the above equation (1) is satisfied, since (i + c) is farther than (g + a), it can be predicted that the edge is a vertical edge.
In addition, when the expression (2) is satisfied, (i + g)
Is farther than (c + a), it is presumed to be a horizontal edge.

【0041】尚、縦方向のエッジであると判断する場合
には、式(1)に加えて、 i−c<th2 … (3) (th2は予め設定した閾値) の式を、また横方向のエッジであると判断する場合に
は、式(2)に加えて、 i−g<th2 … (4) の条件式を付加しても良い。
When it is determined that the edge is a vertical edge, in addition to the equation (1), the following equation is used: ic <th2 (3) (th2 is a preset threshold value). When it is determined that the edge is an edge, a conditional expression of ig <th2 (4) may be added to the expression (2).

【0042】図12のエッジ作成方法決定手段221で
は、上述した比較結果を受けエッジが斜め方向なのか、
縦方向なのか、横方向なのかにより、エッジ作成方向を
決定する。上述した条件に適合しない場合には、斜め方
向のエッジと判断して、比率演算手段216において前
述した第2の実施例と同様に、最大値の角を挟む辺に隣
接する画素同士の比率によりエッジが作成される。ま
た、縦方向、又は横方向のエッジと判断された場合に
は、比率演算手段216にて、縦方向エッジは注目画素
の上下の画素同士の比率(この場合、B:H)、横方向
エッジは注目画素の左右の画素同士の比率(この場合、
D:F)を求め、最大値をとる角を含むようにエッジが
作成される。
The edge creation method determining means 221 shown in FIG. 12 determines whether the edge is oblique based on the above-described comparison result.
The edge creation direction is determined depending on whether the direction is vertical or horizontal. If the above condition is not met, it is determined that the edge is in the oblique direction, and the ratio calculating means 216 calculates the ratio of the pixels adjacent to the side sandwiching the maximum value corner in the same manner as in the second embodiment described above. An edge is created. If it is determined that the edge is a vertical edge or a horizontal edge, the ratio calculating means 216 determines the vertical edge as the ratio between the upper and lower pixels of the target pixel (in this case, B: H) and the horizontal edge. Is the ratio between the left and right pixels of the pixel of interest (in this case,
D: F) is obtained, and an edge is created so as to include the corner having the maximum value.

【0043】図13は、縦方向のエッジ作成の例を示し
た図である。図13の(a)に示すように、ウインドウ
中央に位置する“100”の画素を注目画素とする。こ
こで、この注目画素を縦、横8倍に解像度変換するもの
とする。いま、上記式(1)、及び式(3)に適合し
て、縦方向のエッジと判断されたとする。そこで、注目
画素上下の“100”、“120”の画素値に基づい
て、x,yが1:1.2になるように、また図13の
(c)に示した四角形の面積がMAXのドット数に適合
するようにxとyの値を算出する。
FIG. 13 is a diagram showing an example of creating a vertical edge. As shown in FIG. 13A, a pixel “100” located at the center of the window is set as a target pixel. Here, it is assumed that the resolution of the pixel of interest is vertically and horizontally 8 times. Now, it is assumed that a vertical edge is determined in conformity with the above equations (1) and (3). Therefore, based on the pixel values of “100” and “120” above and below the target pixel, x and y are set to 1: 1.2, and the square area shown in FIG. The values of x and y are calculated so as to match the number of dots.

【0044】この例では、Ixy=100,N=M=8,
MAX=180,MIN=40により、配置画素数算出
手段213において算出された画素数(DOTMAX )は
27画素分となる。即ち、ブロック内の64画素中、2
7画素分に“180”の値を配置し、その他の37画素
分に“40”の値を配置する。4角のうちで最大値を示
すのは右下の角のため、右方向から、求めたx,yの値
に基づき、斜線を引き、四角形内部をDOTMAX で埋め
るようにする。こうして図13の(b)に示すように、
縦方向のエッジが作成される。また、横方向のエッジ作
成手順も同様である。
In this example, I xy = 100, N = M = 8,
With MAX = 180 and MIN = 40, the number of pixels (DOT MAX ) calculated by the arrangement pixel number calculation unit 213 is 27 pixels. That is, 2 out of 64 pixels in the block
A value of “180” is arranged for seven pixels, and a value of “40” is arranged for the other 37 pixels. Since the maximum value is the lower right corner among the four corners, a diagonal line is drawn from the right based on the obtained values of x and y, and the inside of the rectangle is filled with DOT MAX . Thus, as shown in FIG.
A vertical edge is created. The same applies to the procedure for creating edges in the horizontal direction.

【0045】<第2の実施例の変形例2>図14は、第
1の実施例によるエッジ作成手段201の変形例2を示
すブロック図である。この変形例2では、第2の実施例
及びその変形例1でのエッジ作成手段よりも簡易的なエ
ッジ作成手段を提供するものであり、主に低倍率時に有
効である。
<Modification 2 of Second Embodiment> FIG. 14 is a block diagram showing a modification 2 of the edge creating means 201 according to the first embodiment. The second modification provides a simpler edge creating means than the edge creating means of the second embodiment and the first modification thereof, and is effective mainly at a low magnification.

【0046】図14において、図9と同一ブロックには
同一番号を付して説明する。図中、230はソート手段
を示し、隣接画素群算出手段214において設定された
画素群値を大きい順にソートする。4角のうち、簡易的
には大きい順に2番目までをソートできれば良い。この
変形例2では、算出したソート情報を基に、最も大きな
値を有する角から、2番目に大きな角に向けてDOT
MAX を配置していくことを特徴とする。
In FIG. 14, the same blocks as those in FIG. In the figure, reference numeral 230 denotes a sorting unit which sorts pixel group values set by the adjacent pixel group calculating unit 214 in descending order. Of the four corners, it suffices to be able to sort up to the second from the largest in a simplified manner. In the second modification, based on the calculated sort information, DOT is shifted from the corner having the largest value to the second largest corner.
The feature is to arrange MAX .

【0047】ここで、図15を参照して変形例2におけ
るエッジ作成を説明する。図15の(a)において、中
央の“80”の画素を注目画素とする。いま、4角の画
素群値を大きい順にソートすると、同(b)に示すよう
になる。最も大きいのは右下であり、続いて右上であ
る。ここで、Ixy=80,N=M=4,MAX=18
0,MIN=20により、配置画素数算出手段213に
おいて算出された画素数(DOTMAX )は、6画素分と
なる。即ち、ブロック内の6画素分に“180”が配置
され、その他の10画素分に“20”が配置される。こ
の6画素を配置する方法であるが、図15の(c)のよ
うに、ソート情報で示された右下から右上に向けて6画
素分を配置して行く。これにより、容易にブロック内の
エッジを作成することが可能となる。また、4角中、ソ
ート手段230により、最も大きい角と2番目に大きな
角が対角になった場合には、単純なエッジではないと判
断し、エッジ作成処理を行わないようにしても良い。
Here, the creation of an edge in the second modification will be described with reference to FIG. In FIG. 15A, the central pixel “80” is set as a target pixel. Now, when the pixel group values of the four corners are sorted in the descending order, the result is as shown in FIG. The largest is in the lower right, followed by the upper right. Here, I xy = 80, N = M = 4, MAX = 18
With 0 and MIN = 20, the number of pixels (DOT MAX ) calculated by the arrangement pixel number calculation means 213 is equivalent to six pixels. That is, “180” is arranged for six pixels in the block, and “20” is arranged for the other ten pixels. In this method of arranging six pixels, as shown in FIG. 15C, six pixels are arranged from the lower right to the upper right indicated by the sort information. Thereby, it is possible to easily create an edge in the block. When the largest corner and the second largest corner are diagonal among the four corners, it is determined that the edge is not a simple edge, and the edge creation processing may not be performed. .

【0048】以上、幾つかのエッジ作成手段を述べた
が、これらの手段を適応的に切り換えることも可能であ
る。また、注目画素の近傍画素の状態や、それぞれの画
素値の比率により、エッジを作成する手段は、これまで
に述べた方法に限定されるものではない。更に、本処理
を行うブロックを画像のエッジ部の中心に限定する方法
も有効である。また、ウインドウサイズ、ウインドウ形
状も前述した実施例に限定されるものではない。
Although several edge creating means have been described above, it is also possible to switch these means adaptively. Further, the means for creating an edge based on the state of neighboring pixels of the target pixel and the ratio of each pixel value is not limited to the method described above. Further, a method of limiting the block for performing the processing to the center of the edge portion of the image is also effective. Further, the window size and the window shape are not limited to the above-described embodiment.

【0049】以上説明したように、第2の実施例によれ
ば、入力した低解像情報からエッジの向き、方向性、形
状等を推測し、その情報を基にするため、エッジのシャ
ープな高解像情報を作成することができる。また、エッ
ジ作成手段が、周囲画素間の大小関係や、比率を基にし
ているため、簡便に良好なエッジを作成することが可能
である。
As described above, according to the second embodiment, the direction, directionality, shape, and the like of the edge are estimated from the input low-resolution information, and based on the information, the sharpness of the edge is reduced. High resolution information can be created. Further, since the edge creating means is based on the magnitude relationship between the surrounding pixels and the ratio, it is possible to easily create a good edge.

【0050】<第3の実施例>図16は、本発明第3の
実施例を示す要部ブロック図である。図1と同一部には
同一番号を付して説明する。図中100は入力端子を示
し、低解像の画像情報(低解像情報)が入力される。自
然画像等の中間調を有する画像の場合、ホストコンピュ
ータ等で作成した文字、線画像等とは異なり、画像作成
時に何らかのLPF(ローパスフィルタ)がかかってい
ると考えられる。ここで、入力画像情報の解像度依存性
を考える。ホストコンピュータ等で作成した文字、線画
像等では、低解像度に生じているエッジは、原解像度に
依存している為、解像度変換には邪魔な周波数成分が含
まれている。その為、邪魔な周波数成分を消してから
(エッジを崩してから)解像度変換して、新たな解像度
に見合ったエッジ(高周波成分の情報)を作成する必要
がある。
<Third Embodiment> FIG. 16 is a main block diagram showing a third embodiment of the present invention. 1 will be described with the same reference numerals. In the figure, reference numeral 100 denotes an input terminal to which low-resolution image information (low-resolution information) is input. In the case of an image having a halftone, such as a natural image, unlike a character or line image created by a host computer or the like, it is considered that some LPF (low-pass filter) is applied when the image is created. Here, the resolution dependency of the input image information is considered. In a character, a line image, or the like created by a host computer or the like, an edge generated at a low resolution depends on the original resolution, and therefore, the resolution conversion includes an obstructive frequency component. Therefore, it is necessary to convert the resolution after disturbing the disturbing frequency components (after breaking the edges) and create edges (information of high-frequency components) corresponding to the new resolution.

【0051】それに対して自然画像では、前述したよう
にLPFがかかっている為に、低解像時でも解像度フリ
ーの状態に近い。すなわち、入力状態からエッジが崩さ
れた状態であるために、邪魔になる周波数成分が少な
く、画素数を増やした状態で、新たな高解像エッジを作
成する。さて、入力した画像情報は、線形補間手段10
1に送信され、前述の実施例同様に、注目画素の1画素
分が(M×N)画素分に補間される。エッジ作成手段2
40は(M×N)画素内にエッジを作成する手段を示
し、図2に示した実施例の様に、ウインドウ内のMAX
値、MIN値から、注目画素に配置する配分比率を算出
して、ソートを用いて配置するエッジの作成手段でも良
いし、また、容易な構成では、MAX値、MIN値から
閾値(例えばTH=(MAX+MIN)/2)を算出し
て、(M×N)画素の線形補間情報を、算出した閾値に
より2値化してエッジを作成する手段でもよい。エッジ
を作成したあとのブロック内はMAX、MINの値が代
入される。
On the other hand, a natural image is close to a resolution-free state even at a low resolution because the LPF is applied as described above. That is, since the edge is distorted from the input state, a new high-resolution edge is created in a state where the number of pixels is increased and the frequency components that interfere are small. Now, the input image information is input to the linear interpolation means 10.
1, and one pixel of the pixel of interest is interpolated into (M × N) pixels as in the above-described embodiment. Edge creation means 2
Numeral 40 denotes a means for creating an edge in an (M × N) pixel, as in the embodiment shown in FIG.
The distribution ratio to be allocated to the pixel of interest is calculated from the value and the MIN value, and an edge creation unit may be used to arrange the pixels using sorting. In an easy configuration, a threshold (for example, TH = Means for calculating (MAX + MIN) / 2) and binarizing the linear interpolation information of the (M × N) pixels with the calculated threshold value to create an edge may be used. MAX and MIN values are substituted in the block after the edge is created.

【0052】さて、このエッジ情報は、新たな解像度に
見合った新しいエッジである。自然画像では、このエッ
ジ情報をそのまま出力してしまっては、エッジだらけの
階調のない絵画調な画像になってしまうので、このエッ
ジ情報を知覚的に自然画像らしく見えるように新たな解
像度上で平滑化手段241により平滑化を施す。平滑化
は、フィルタにより実現できる。
Now, this edge information is a new edge corresponding to the new resolution. In the case of a natural image, if this edge information is output as it is, it will be a pictorial image with no gradation full of edges. Then, smoothing is performed by the smoothing means 241. Smoothing can be realized by a filter.

【0053】前述した実施例では、エッジ情報と線形補
間情報との加算合成により、自然画像らしく見せていた
が、エッジ途中の中間調の画素値はLPFの為に発生し
た値、いわば、原解像度に依存している値(あまり信用
できない値)と想定できる。そのため、線形補間情報と
の加算合成のない本実施例では、より解像度依存性を失
くした状態の画像の作成ができる。
In the above-described embodiment, a natural image is displayed by adding and synthesizing the edge information and the linear interpolation information. However, the halftone pixel value in the middle of the edge is a value generated for the LPF, that is, the original resolution. (A value that is not very reliable). Therefore, in the present embodiment that does not perform addition and synthesis with the linear interpolation information, it is possible to create an image in a state where the resolution dependency is further lost.

【0054】従って、第1、第2、及び第3の実施例に
よれば、低解像度の画像を高解像度に容易に変換できる
ため、解像度の異なる機種間通信や拡大変倍して高画質
な画像を出力するプリンタ、或いは複写機を提供でき
る。尚、本発明は、複数の機器から構成されるシステム
に適用しても、1つの機器から成る装置に適用しても良
い。
Therefore, according to the first, second, and third embodiments, a low-resolution image can be easily converted to a high-resolution image. A printer or a copying machine that outputs an image can be provided. The present invention may be applied to a system including a plurality of devices or to an apparatus including a single device.

【0055】また、本発明はシステム或いは装置にプロ
グラムを供給することによって達成される場合にも適用
できることはいうまでもない。
It is needless to say that the present invention can be applied to a case where the present invention is achieved by supplying a program to a system or an apparatus.

【0056】[0056]

【発明の効果】以上説明したように、本発明によれば、
低解像度の画像を容易に高解像度に変換できると共に、
高品位な画質が得られる画像処理装置を提供することが
可能となる。
As described above, according to the present invention,
You can easily convert low resolution images to high resolution,
It is possible to provide an image processing device capable of obtaining high-quality image quality.

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

【図1】第1の実施例における画像処理装置の構成を示
すブロック図である。
FIG. 1 is a block diagram illustrating a configuration of an image processing apparatus according to a first embodiment.

【図2】図1に示したエッジ作成手段102の詳細な構
成を表した図である。
FIG. 2 is a diagram showing a detailed configuration of an edge creating unit 102 shown in FIG.

【図3】線形補間及びエッジ作成の様子を示した図であ
る。
FIG. 3 is a diagram showing a state of linear interpolation and edge creation.

【図4】エッジ情報を作成する例を示した図である。FIG. 4 is a diagram showing an example of creating edge information.

【図5】配分比率決定手段103の詳細な構成を示した
図である。
FIG. 5 is a diagram showing a detailed configuration of a distribution ratio determining unit 103.

【図6】図1に示したエッジ作成手段102の変形例1
を示すブロック図である。
FIG. 6 is a modification example 1 of the edge creating unit 102 shown in FIG.
FIG.

【図7】図1に示したエッジ作成手段102の変形例2
を示すブロック図である。
FIG. 7 is a second modification of the edge creating unit 102 shown in FIG.
FIG.

【図8】第1の実施例における画像処理装置の構成を示
すブロック図である。
FIG. 8 is a block diagram illustrating a configuration of an image processing apparatus according to the first embodiment.

【図9】図8に示したエッジ作成手段201の詳細な構
成を表した図である。
FIG. 9 is a diagram showing a detailed configuration of an edge creating unit 201 shown in FIG.

【図10】比率によりドット配置を決定する例を示した
図である。
FIG. 10 is a diagram illustrating an example in which dot arrangement is determined based on a ratio.

【図11】ブロック内でエッジが四角形になる例を示し
た図である。
FIG. 11 is a diagram showing an example in which an edge is rectangular in a block.

【図12】図8に示したエッジ作成手段201の変形例
1を示すブロック図である。
FIG. 12 is a block diagram showing a first modification of the edge creating means 201 shown in FIG. 8;

【図13】縦方向のエッジ作成の例を示した図である。FIG. 13 is a diagram illustrating an example of creating a vertical edge.

【図14】図8に示したエッジ作成手段201の変形例
2を示すブロック図である。
FIG. 14 is a block diagram showing a second modification of the edge creating unit 201 shown in FIG. 8;

【図15】変形例2におけるエッジ作成の例を示した図
である。
FIG. 15 is a diagram illustrating an example of edge creation in a second modification.

【図16】第3の実施例における画像処理装置の構成を
示すブロック図である。
FIG. 16 is a block diagram illustrating a configuration of an image processing apparatus according to a third embodiment.

【図17】従来例である最接近内挿法である。FIG. 17 shows a conventional closest interpolation method.

【図18】従来例である共1次内挿法である。FIG. 18 shows a conventional bilinear interpolation method.

Claims (7)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 低解像度の注目画素を(N×M)画素の
ブロックに拡大し、低解像度の画像を高解像度の画像に
変換する画像処理装置であって、低解像度の 注目画素及びその周囲画素から最大値及び最
小値を検出する検出手段と、 前記検出手段により検出された最大値及び最小値を前記
ブロック内に配置する配分比率を決定する決定手段と、 前記決定手段により決定された配分比率に応じて前記
大値及び最小値を配置する配置手段とを有することを特
徴とする画像処理装置。
1. A target pixel of the low resolution magnified (N × M) blocks of pixels, an image processing apparatus for converting low-resolution image to a high resolution image, the low-resolution target pixel and its of Maximum value and maximum value from surrounding pixels
Detecting means for detecting a small value ; determining means for allocating the maximum value and the minimum value detected by the detecting means in the block; and determining the allocation ratio according to the allocation ratio determined by the determining means. Most
An image processing apparatus comprising: an arrangement unit that arranges a maximum value and a minimum value .
【請求項2】 前記決定手段は、注目画素の濃度を保存
するようにブロック内に配置すべき最大値及び最小値
面積率、及び画素数を決定することを特徴とする請求項
1記載の画像処理装置。
2. The apparatus according to claim 1, wherein said determining means determines an area ratio of a maximum value and a minimum value to be arranged in the block and a number of pixels so as to preserve the density of the pixel of interest. Image processing device.
【請求項3】 更に、低解像度の画素を補間する補間手
段と、 前記補間手段により補間された画素をソートするソート
手段とを有し、 前記配置手段は、前記面積率、及び画素数に応じて、前
記ソート手段でソートされた画素に前記最大値及び最小
を配置することを特徴とする請求項記載の画像処理
装置。
3. An interpolating means for interpolating low-resolution pixels, and a sorting means for sorting pixels interpolated by the interpolating means, wherein the arranging means according to the area ratio and the number of pixels. The maximum value and the minimum value are assigned to the pixels sorted by the sorting means.
3. The image processing apparatus according to claim 2, wherein values are arranged.
【請求項4】 前記配置手段は、前記周囲画素同士の大
小関係、及び比率により、ブロック内に最大値及び最小
を配置することを特徴とする請求項1記載の画像処理
装置。
4. The arrangement means includes a maximum value and a minimum value in a block according to a magnitude relationship and a ratio between the surrounding pixels.
The image processing apparatus according to claim 1, wherein values are arranged.
【請求項5】 前記配置手段は、前記注目画素の周囲4
角のうち、最大の値をとる角を算出し、該角を挟む辺に
隣接する画素間の比率により、ブロック内に最大値及び
最小値を配置することを特徴とする請求項1記載の画像
処理装置。
5. The arrangement means according to claim 4, wherein said arranging means comprises a plurality of pixels arranged around said pixel of interest.
Among the corners, the corner having the maximum value is calculated, and the maximum value and the maximum value in the block are calculated based on the ratio between pixels adjacent to the side sandwiching the corner.
The image processing apparatus according to claim 1, wherein a minimum value is arranged.
【請求項6】 前記配置手段は、前記注目画素の上下、
又は左右の画素間の比率により、ブロック内に最大値及
び最小値を配置することを特徴とする請求項1記載の画
像処理装置。
6. The method according to claim 1, wherein the arranging means includes:
Or, depending on the ratio between the left and right pixels, the maximum value
2. The image processing apparatus according to claim 1, wherein a minimum value and a minimum value are arranged.
【請求項7】 低解像度の注目画素を(M×N)画素の
ブロックに拡大し、低解像度の画像を高解像度の画像に
変換する画像処理装置であって、低解像度の 注目画素及びその周囲画素から最大値及び最
小値を検出する検出手段と、最大値及び最小値 を前記ブロック内に配置する配置手段
と、 配置後の情報に平滑化を施す平滑化手段とを有すること
を特徴とする画像処理装置。
7. enlarged target pixel of the low resolution (M × N) blocks of pixels, an image processing apparatus for converting low-resolution image to a high resolution image, the low-resolution target pixel and its of Maximum value and maximum value from surrounding pixels
An image processing apparatus comprising: a detecting unit that detects a small value ; an arranging unit that arranges a maximum value and a minimum value in the block; and a smoothing unit that smoothes information after the arrangement.
JP5239993A 1993-09-27 1993-09-27 Image processing device Expired - Fee Related JP3026706B2 (en)

Priority Applications (4)

Application Number Priority Date Filing Date Title
JP5239993A JP3026706B2 (en) 1993-09-27 1993-09-27 Image processing device
EP94306991A EP0645736B1 (en) 1993-09-27 1994-09-26 Image processing apparatus
DE69432093T DE69432093T2 (en) 1993-09-27 1994-09-26 Image processing device
US08/792,119 US5875268A (en) 1993-09-27 1997-01-31 Image processing with low-resolution to high-resolution conversion

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5239993A JP3026706B2 (en) 1993-09-27 1993-09-27 Image processing device

Related Child Applications (1)

Application Number Title Priority Date Filing Date
JP11301515A Division JP2000149009A (en) 1999-01-01 1999-10-22 Image processor

Publications (2)

Publication Number Publication Date
JPH0793531A JPH0793531A (en) 1995-04-07
JP3026706B2 true JP3026706B2 (en) 2000-03-27

Family

ID=17052881

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5239993A Expired - Fee Related JP3026706B2 (en) 1993-09-27 1993-09-27 Image processing device

Country Status (1)

Country Link
JP (1) JP3026706B2 (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3210248B2 (en) * 1996-04-25 2001-09-17 キヤノン株式会社 Image processing apparatus and method
JP4065462B2 (en) 1997-12-26 2008-03-26 キヤノン株式会社 Image processing apparatus and image processing method
US6510254B1 (en) 1998-04-06 2003-01-21 Seiko Epson Corporation Apparatus and method for image data interpolation and medium on which image data interpolation program is recorded
US6760489B1 (en) 1998-04-06 2004-07-06 Seiko Epson Corporation Apparatus and method for image data interpolation and medium on which image data interpolation program is recorded
JP3419352B2 (en) 1999-07-15 2003-06-23 松下電器産業株式会社 Image processing apparatus, image processing method, and image processing program recording medium
JP3458080B2 (en) 1999-10-19 2003-10-20 松下電器産業株式会社 Color imaging device
JP2001338288A (en) * 2000-05-25 2001-12-07 Nec Corp Method and system for processing image, and image display controller
JP3991061B1 (en) * 2006-05-10 2007-10-17 5digistar株式会社 Image processing system
JP5597028B2 (en) * 2010-05-17 2014-10-01 キヤノン株式会社 Image decoding apparatus, control method therefor, program, and computer-readable storage medium

Also Published As

Publication number Publication date
JPH0793531A (en) 1995-04-07

Similar Documents

Publication Publication Date Title
EP0645736B1 (en) Image processing apparatus
US7149355B2 (en) Image processing apparatus, image processing method, image processing program, and computer-readable record medium storing image processing program
JP3143209B2 (en) Image magnification device
EP0650287B1 (en) Image processing method and apparatus
JP3210248B2 (en) Image processing apparatus and method
JP3176195B2 (en) Image processing device
JP3167120B2 (en) Image processing apparatus and method
JP3026706B2 (en) Image processing device
US6289136B1 (en) Image processing method and apparatus
JPH09149241A (en) Method and device for enlarging picture
JP3210264B2 (en) Image processing apparatus and method
JP3092769B2 (en) Image processing device
JP3262425B2 (en) Image processing device
JP2784278B2 (en) Image scaling processor
JP2001127999A (en) Device and method for processing image
JP3624153B2 (en) Image processing apparatus and image processing method
JP3703180B2 (en) Image processing apparatus and image processing method
JP3200351B2 (en) Image processing apparatus and method
JP2000149009A (en) Image processor
JP3581460B2 (en) Image processing method and apparatus
JP3059287B2 (en) Binary image scaling device
JP2001177719A (en) Image processor and print system and image display system
JP3972625B2 (en) Image processing apparatus and image processing method
JP3054338B2 (en) Image processing apparatus and method
JP3054315B2 (en) Image processing method and apparatus

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 19991217

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

Free format text: PAYMENT UNTIL: 20090128

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20090128

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20100128

Year of fee payment: 10

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

Free format text: PAYMENT UNTIL: 20110128

Year of fee payment: 11

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

Free format text: PAYMENT UNTIL: 20120128

Year of fee payment: 12

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

Free format text: PAYMENT UNTIL: 20130128

Year of fee payment: 13

LAPS Cancellation because of no payment of annual fees