JPH10198802A - Image processor, image processing method, and medium recording image processing program - Google Patents

Image processor, image processing method, and medium recording image processing program

Info

Publication number
JPH10198802A
JPH10198802A JP9307437A JP30743797A JPH10198802A JP H10198802 A JPH10198802 A JP H10198802A JP 9307437 A JP9307437 A JP 9307437A JP 30743797 A JP30743797 A JP 30743797A JP H10198802 A JPH10198802 A JP H10198802A
Authority
JP
Japan
Prior art keywords
luminance
image
image processing
luminance distribution
processing apparatus
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.)
Granted
Application number
JP9307437A
Other languages
Japanese (ja)
Other versions
JP4069333B2 (en
Inventor
Naoki Kuwata
直樹 鍬田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Seiko Epson Corp
Original Assignee
Seiko Epson Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP30743797A priority Critical patent/JP4069333B2/en
Publication of JPH10198802A publication Critical patent/JPH10198802A/en
Application granted granted Critical
Publication of JP4069333B2 publication Critical patent/JP4069333B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To provide an image processor, in which contrast is automatically adjustable, by finding luminance distribution in image data and converting the image data so as to expand the distribution corresponding to a reproducible range. SOLUTION: In the image processing system, an image input device 10 outputs image data to an image processor 20 by picking up images or the like, this image processor 20 performs prescribed image processing such as contrast emphasis and outputs images to an image output device 30 and this image output device 30 displays the contrast emphasizes images. The image processor 20 is composed of a luminance distribution detecting means and the image data conversion means, at least. In order to find the contrast distribution for handling prescribed image data, the luminance distribution detecting means detects the luminance distribution of these image data for the unit of a pixel. While using this detected luminance distribution, the image data conversion means converts the image data by distributing the quantity of this luminance distribution to be expanded within the reproducible range.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、画像処理装置、画
像処理方法および画像処理プログラムを記録した媒体に
関し、特に、画像データのコントラストを処理する画像
処理装置、画像処理方法および画像処理プログラムを記
録した媒体に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image processing apparatus, an image processing method, and a medium on which an image processing program is recorded, and more particularly, to an image processing apparatus for processing contrast of image data, an image processing method, and an image processing program. Related media.

【0002】[0002]

【従来の技術】従来、この種の画像処理装置として、特
公平7−66318号公報に開示されたものが知られて
いる。
2. Description of the Related Art Conventionally, an image processing apparatus of this type is disclosed in Japanese Patent Publication No. 7-66318.

【0003】同公報に示す画像処理装置では、変換元の
輝度yに対して変換後の輝度y’の関係を(1)式のよ
うに対応付け、操作者が選択したパラメータaあるいは
パラメータbに基づいて画像データの輝度を変換してい
る。これにより、コントラストの弱い画像データについ
てコントラストを強調した画像が得られる。
In the image processing apparatus disclosed in the publication, the relationship between the converted luminance y 'and the converted luminance y' is associated as shown in equation (1), and the relation is set to the parameter a or parameter b selected by the operator. The luminance of the image data is converted based on this. As a result, an image in which contrast is enhanced for image data having low contrast is obtained.

【0004】 y’=ay+b …(1)Y ′ = ay + b (1)

【0005】[0005]

【発明が解決しようとする課題】上述した従来の画像処
理装置においては、予めコントラストの強弱の程度を変
えた複数の設定を用意しておき、これを切り換えてい
る。従って、現実の画像データに対応した最も好適なも
のを自動的に適用するということはできなかった。特
に、(1)式に基づいて変化させる場合には全体が明る
い画像であれば明るさが強調されるだけの結果となった
り、全体が暗い画像であれば暗さが強調されるだけの結
果となったりすることもあった。
In the above-described conventional image processing apparatus, a plurality of settings in which the degree of contrast is changed are prepared in advance and are switched. Therefore, it has not been possible to automatically apply the most suitable data corresponding to actual image data. In particular, when changing based on the expression (1), if the whole image is a bright image, only the brightness is enhanced, or if the whole image is dark, the darkness is only enhanced. Sometimes it was.

【0006】また、コントラストの強弱はテレビジョン
などでも操作可能なものでありながら、各画像において
最適な強調を実行するといった自動化ができなかった。
[0006] Further, while the contrast level can be operated even on a television or the like, it has not been possible to perform automation such as executing optimum emphasis on each image.

【0007】本発明は、上記課題にかんがみてなされた
もので、コントラストの自動調整が可能な画像処理装
置、画像処理方法および画像処理プログラムを記録した
媒体の提供を目的とする。
SUMMARY OF THE INVENTION The present invention has been made in view of the above problems, and has as its object to provide an image processing apparatus, an image processing method, and a medium on which an image processing program is recorded, which can automatically adjust contrast.

【0008】[0008]

【課題を解決するための手段】上記目的を達成するた
め、請求項1にかかる発明は、画像をドットマトリクス
状の画素に分解して各画素の情報を表す画像データに対
して所定の画像処理を行う画像処理装置であって、画像
データにおける輝度分布を求めて再現可能な範囲に対応
して当該分布を拡大させるように画像データを変換する
構成としてある。
According to a first aspect of the present invention, an image is divided into dot matrix pixels, and a predetermined image processing is performed on image data representing information of each pixel. And converts the image data so as to obtain a luminance distribution in the image data and expand the distribution according to a reproducible range.

【0009】上記のように構成した請求項1にかかる発
明においては、画像データが画像をドットマトリクス状
の画素に分解して各画素の情報を表している場合に、同
画像データにおける輝度分布を求めることにより、画像
データにおけるコントラストの幅というようなものをあ
る程度数値化でき、数値化できた上で再現可能な範囲に
対応して当該分布を拡大させる。
According to the first aspect of the present invention, when the image data represents information of each pixel by decomposing the image into pixels of a dot matrix, the luminance distribution in the image data is determined. By obtaining the value, the width of the contrast in the image data can be quantified to some extent, and the distribution can be enlarged corresponding to the reproducible range after being quantified.

【0010】むろん数値化といっても必ずしも具体的な
数値が必要なわけではなく、その処理過程において数値
として扱っても良いし、信号の大きさとして扱うような
ことも可能である。これをさらに具体的に表した一例と
して、請求項2にかかる発明は、請求項1に記載の画像
処理装置において、所定画像における画素単位での画像
データの輝度分布を検出する輝度分布検出手段と、この
検出された輝度分布に基づいて再現可能な範囲内での同
輝度分布の拡大可能な程度を判別して画像データを変換
する画像データ変換手段を具備する構成としてある。
[0010] Of course, the digitization does not necessarily require a specific numerical value, and may be treated as a numerical value in the processing process, or may be treated as a signal magnitude. As a more specific example, the invention according to claim 2 is the image processing apparatus according to claim 1, wherein the image processing apparatus includes a luminance distribution detecting unit that detects a luminance distribution of image data in a pixel unit in a predetermined image. The image processing apparatus further includes image data conversion means for determining the extent to which the luminance distribution can be expanded within a reproducible range based on the detected luminance distribution and converting the image data.

【0011】所定画像の画像データを扱う上でその輝度
分布を求めるため、輝度分布検出手段は画素単位での同
画像データの輝度分布を検出する。そして、この検出さ
れた輝度分布を利用して画像データ変換手段は再現可能
な範囲内での同輝度分布の拡大量を判別し、画像データ
を変換する。
In order to determine the luminance distribution when handling image data of a predetermined image, the luminance distribution detecting means detects the luminance distribution of the same image data in pixel units. Then, using the detected luminance distribution, the image data conversion means determines the amount of enlargement of the same luminance distribution within a reproducible range, and converts the image data.

【0012】すなわち、画素単位での画像データの輝度
分布を求めれば最も明るい輝度から最も暗い輝度までの
いわゆるコントラストの幅が判別でき、再現可能な輝度
の幅の範囲と対比すればコントラストの拡大率が判定で
きるので、後はその拡大率となるようにして輝度分布を
拡大させれば良くなる。例えば、各画素での輝度に基づ
いて全体としての輝度分布を集計した後、集計された輝
度分布が当該画像データの取りうる有効な輝度範囲に広
く分散していない場合に、上記輝度分布が同輝度範囲に
広く分散するように上記画像データにおける各画素の輝
度の情報を変換する。
That is, if the luminance distribution of image data in pixel units is obtained, the width of the so-called contrast from the brightest luminance to the darkest luminance can be determined, and the contrast expansion ratio can be determined by comparing the range of the reproducible luminance width. Can be determined, and thereafter, it is sufficient to expand the luminance distribution so as to have the enlargement ratio. For example, after summing the luminance distribution as a whole based on the luminance at each pixel, if the totaled luminance distribution is not widely distributed over the valid luminance range that the image data can take, the luminance distribution is the same. The luminance information of each pixel in the image data is converted so as to be widely distributed in the luminance range.

【0013】輝度分布を拡大する手法はいくつが可能で
あり、画像データの輝度分布が可能な範囲内で拡大され
るようにすればよい。その要点を説明すれば、検出され
た輝度分布の統計的な幅と再現可能な輝度範囲の幅とを
比較して拡大可能な程度を拡大率として求めるととも
に、拡大された輝度分布の上端と下端がこの輝度範囲内
に収まるようにするための調整値を求め、各画素の輝度
を個別に修正するということである。この具体的な一例
として、請求項3にかかる発明は、請求項2に記載の画
像処理装置において、上記画像データ変換手段は、再現
可能な輝度の範囲をyrange としたときに、変換前の輝
度yと輝度の分布範囲の最大値ymax と最小値ymin か
ら変換先の輝度Yを次式に基づいて求める構成としてあ
る。
Any number of methods are available for expanding the luminance distribution, and the luminance distribution of the image data may be expanded within a possible range. The point is that the statistical width of the detected luminance distribution and the width of the reproducible luminance range are compared to determine the degree of enlargement as an enlargement ratio, and the upper and lower ends of the enlarged luminance distribution are calculated. Is to determine an adjustment value to fall within this luminance range, and individually correct the luminance of each pixel. As a specific example, the invention according to claim 3 is the image processing apparatus according to claim 2, wherein the image data conversion means sets the luminance before conversion when the range of reproducible luminance is yrange. The conversion destination luminance Y is obtained from the maximum value ymax and the minimum value ymin of the distribution range of y and luminance based on the following equation.

【0014】 Y=ay+b …(2) ただし a=yrange/(ymax−ymin) …(3) b=−a・yminあるいはyrange−a・ymax …(4) また、上記変換式にてY<0ならばY=0とし、Y>y
rangeならばY=yrangeとする。
Y = ay + b (2) where a = yrange / (ymax−ymin) (3) b = −a · ymin or yrange−a · ymax (4) In the above conversion formula, Y <0 Then, Y = 0 and Y> y
If it is range, Y = yrange.

【0015】この変換はいわゆる線形の拡大であり、変
換式自体は従来のものと同様であるものの、そのパラメ
ータが画像データ変換手段によって選定されることに意
義がある。bの選択に関わらず、y=yminの場合にY
=0となり、y=ymaxの場合にY=yrangeとなる。そ
して、再現可能な輝度の範囲であるyrangeの範囲内で
輝度分布が一様に広がることになる。なお、この例にお
いては、いわゆる狭義の線形変換であり、むろんこれに
限られる必要はなく、広義の非線形変換を実施すること
も可能である。また、当該変換式は一例に過ぎず同意義
の変換式であっても適用可能であることはいうまでもな
い。
This conversion is a so-called linear expansion, and although the conversion formula itself is the same as the conventional one, it is significant that its parameters are selected by the image data conversion means. Regardless of the selection of b, if y = ymin, Y
= 0, and if y = ymax, then Y = yrange. Then, the luminance distribution spreads uniformly within the range of yrange, which is the range of reproducible luminance. In this example, it is a so-called linear conversion in a narrow sense, and needless to say, it is not limited to this, and a non-linear conversion in a broad sense can be performed. Further, it is needless to say that the conversion formula is merely an example, and that a conversion formula having the same meaning can be applied.

【0016】また、コントラストを広げただけでは全体
に明るかったり暗かったりするというような場合に対応
できないこともあり、請求項4にかかる発明は、請求項
2または請求項3のいずれかに記載の画像処理装置にお
いて、上記輝度分布拡大手段は、変換元の輝度yの最大
分布輝度を求めるとともに、同最大分布輝度の所属範囲
に基づくγ補正で変換先の輝度Yを求める構成としてあ
る。
Further, it may not be possible to cope with the case where the entire image becomes bright or dark simply by increasing the contrast, and the invention according to claim 4 is the invention according to claim 2 or 3. In the image processing apparatus, the luminance distribution enlarging means obtains the maximum distribution luminance of the conversion source luminance y and obtains the conversion destination luminance Y by γ correction based on the belonging range of the maximum distribution luminance.

【0017】画像データが全体的に明るいか否かを判定
する手法として、変換元の輝度yの最大分布輝度を利用
し、この最大分布輝度が明るい側にあればγ補正で全体
的に暗めにし、最大分布輝度が暗い側にあればγ補正で
全体的に明るめにするといったことでコントラストの強
調だけでは得られない全体の明るさの自動補正が行われ
る。ここにおいて、変換元の輝度yの最大分布輝度はメ
ジアンで求めても良いし、平均値で求めても良い。
As a method for judging whether or not the image data is bright as a whole, the maximum distribution luminance of the conversion source luminance y is used, and if the maximum distribution luminance is on the bright side, it is entirely darkened by γ correction. If the maximum distribution luminance is on the dark side, the overall brightness is automatically corrected which cannot be obtained only by enhancing the contrast, for example, by making the whole image brighter by γ correction. Here, the maximum distribution luminance of the conversion source luminance y may be obtained by a median or an average value.

【0018】各種の手法で輝度を変換するにあたり、請
求項5にかかる発明は、請求項2〜請求項4のいずれか
に記載の画像処理装置において、変換元の輝度yの取り
うる範囲内で変換先の輝度Yを演算して記憶しておき、
変換時には対応関係を呼び起こして変換する構成として
ある。
In converting the luminance by various methods, the invention according to claim 5 is an image processing apparatus according to any one of claims 2 to 4, wherein the conversion is performed within a range where the luminance y of the conversion source can take. Calculate and store the luminance Y of the conversion destination,
At the time of conversion, the correspondence is revoked and converted.

【0019】変換式に基づいて輝度を毎回計算すること
も不可能ではないが、輝度分布のとりうる値の範囲は決
まっている。このため、あらかじめ変換元の輝度yに基
づいて変換先の輝度Yを演算して記憶しておけば、変換
時に対応関係を呼び起こすだけで変換することが可能と
なる。
Although it is not impossible to calculate the luminance every time based on the conversion formula, the range of values that the luminance distribution can take is determined. For this reason, if the luminance Y of the conversion destination is calculated and stored in advance based on the luminance y of the conversion source, the conversion can be performed only by invoking the correspondence at the time of conversion.

【0020】輝度を変換するにあたっては画像データが
輝度のデータとして含んでいる場合もあるし、間接的で
しか輝度のデータを含んでいない場合もある。むろん、
直接の輝度のデータを含んでいればそれを変換すればよ
いし、間接的な輝度のデータである場合でも輝度のデー
タに変換してから所定の輝度変換を行えばよい。しかし
ながら、輝度の変換は極めて正確でなければならないわ
けではなく、大まかに分かれば良いともいえる。
In converting the luminance, the image data may include the luminance data in some cases, or may include the luminance data only indirectly. Of course,
If it includes direct luminance data, it may be converted, or even if it is indirect luminance data, it may be converted into luminance data and then subjected to predetermined luminance conversion. However, the conversion of the luminance does not have to be extremely accurate, and it can be said that it is only necessary to roughly know.

【0021】その意味では厳格な正確さが要求されるわ
けではないので、請求項6にかかる発明は、請求項1〜
請求項5のいずれかに記載の画像処理装置において、画
像データが輝度に対応した複数の成分値で表される場合
において、輝度の演算を同成分値の線形加算で求める構
成としてある。
Since strict accuracy is not required in that sense, the invention according to claim 6 is based on claims 1 to 5.
The image processing apparatus according to claim 5, wherein when the image data is represented by a plurality of component values corresponding to the luminance, the calculation of the luminance is obtained by linear addition of the same component value.

【0022】画像データがいわゆるRGB(赤緑青)の
階調データで表されている場合、赤緑青についての各成
分値はそれぞれが輝度に対応しているといえる。このた
め、同成分値の線形加算は十分に輝度を表すものとい
え、極めて容易な変換方法となりうる。
When image data is represented by so-called RGB (red, green, blue) gradation data, it can be said that each component value for red, green, and blue corresponds to luminance. For this reason, it can be said that linear addition of the same component value sufficiently represents luminance, and can be a very easy conversion method.

【0023】各画素についての輝度が求められるものと
して、画像としての輝度分布は必ずしも画像データの全
画素について求める必要がなく、例えば、請求項7にか
かる発明は、請求項1〜請求項6のいずれかに記載の画
像処理装置において、画像データについて所定の抽出率
に対応した間引きを行って輝度分布を求める構成として
ある。
Assuming that the luminance for each pixel is determined, the luminance distribution as an image does not necessarily need to be determined for all the pixels of the image data. For example, the invention according to claim 7 is based on claims 1 to 6 In any one of the image processing apparatuses described above, the image data is thinned in accordance with a predetermined extraction rate to obtain a luminance distribution.

【0024】分布を求めることを目的とすれば、全画素
に対して輝度を求めることなく、所定の抽出率で間引き
を行なったとしても抽出率に応じた程度の確かさの輝度
分布を得ることができる。
In order to obtain the distribution, it is possible to obtain a luminance distribution having a certain degree of accuracy according to the extraction rate even if thinning is performed at a predetermined extraction rate without obtaining the luminance for all the pixels. Can be.

【0025】ここにおいて、間引く手法も様々であるも
のの、請求項8にかかる発明は、請求項7に記載の画像
処理装置において、縦方向と横方向の範囲での短い側に
おいて所定の抽出数が確保されるようにする構成として
ある。
Here, although there are various methods of thinning out, the invention according to claim 8 is the image processing apparatus according to claim 7, wherein the predetermined number of extractions is shorter on the shorter side in the vertical and horizontal directions. It is configured to be secured.

【0026】画像は平面的であるが故、自ずからその画
像データも縦方向と横方向とに分布するが、ある抽出率
を決定するにあたっては、少なくとも短い側においてあ
る抽出数を確保することにより、抽出率に応じた確かさ
を保持することになる。
Since an image is planar, its image data is naturally distributed in the vertical and horizontal directions. To determine a certain extraction rate, at least a certain number of extractions must be secured on the short side. The certainty corresponding to the extraction rate is maintained.

【0027】さらに、請求項9にかかる発明は、請求項
1〜請求項8のいずれかに記載の画像処理装置におい
て、輝度分布を求める際に実際の端部から所定分布割合
だけ内側部分を端部としてみなす構成としてある。
According to a ninth aspect of the present invention, in the image processing apparatus according to any one of the first to eighth aspects, when a luminance distribution is obtained, an inner portion is separated from an actual end by a predetermined distribution ratio. It is configured to be regarded as a unit.

【0028】画像データの輝度分布を統計的に考慮すれ
ば、極めて少ないながらも再現可能な輝度の範囲での両
端部位まで分布すると考えるのが妥当である。従って、
現実の輝度分布の両端は常に再現可能な輝度の範囲での
両端にあることになる。この両端を採用したとすれば拡
大率は実質的に「1」となってしまうので、本来の効果
を果たし得ない。
If the luminance distribution of the image data is considered statistically, it is reasonable to consider that the distribution is to the both end portions in a reproducible luminance range although it is extremely small. Therefore,
Both ends of the actual luminance distribution are always at both ends in a reproducible luminance range. If these two ends are adopted, the enlargement ratio becomes substantially "1", and the original effect cannot be achieved.

【0029】しかしながら、両端における所定分布割合
を除いて考えれば極めて分布の少ない裾野の部分を統計
的に見て適度に無視することになる。このため、この範
囲をもって拡大の程度を判断する基準とする。
However, considering the distribution ratio except for the predetermined distribution ratio at both ends, the tail portion with extremely small distribution is appropriately ignored statistically. Therefore, this range is used as a criterion for judging the degree of enlargement.

【0030】所定分布割合は、極めて分布の少ない裾野
の部分を無視することができるものであればよく、総画
素数の一定割合の画素数というものであっても良いし、
一定数以下の分布となったときに端部と見なすようなも
のでも構わない。
The predetermined distribution ratio may be any value as long as the tail portion with extremely small distribution can be neglected, and may be a fixed number of pixels of the total number of pixels.
When the distribution becomes smaller than a certain number, the distribution may be regarded as an end.

【0031】さらに、請求項10にかかる発明は、請求
項1〜請求項9のいずれかに記載の画像処理装置におい
て、拡大される輝度分布の範囲を実際の再現可能な範囲
の端部よりも所定量だけ内側に設定する構成としてあ
る。
Further, according to a tenth aspect of the present invention, in the image processing apparatus according to any one of the first to ninth aspects, the range of the luminance distribution to be enlarged is larger than the end of the actual reproducible range. It is configured to be set inside by a predetermined amount.

【0032】実際の画像においてはハイライト部分とハ
イシャドウ部分とがあり、これらの部分について人間の
目が微妙な違いを悟りやすい。従って、いわゆる再現可
能な輝度範囲の端部にかかる作為的な拡大を行うとハイ
ライト部分では白く抜けた感じとなるし、ハイシャドウ
部分では黒くつぶれた感じで表れてしまう。
In an actual image, there are a highlight portion and a high shadow portion, and it is easy for human eyes to realize a subtle difference between these portions. Therefore, if an artificial enlargement is applied to the end of the so-called reproducible luminance range, the highlight portion will appear white and the high shadow portion will appear black.

【0033】しかるに、拡大される輝度分布の範囲を実
際の再現可能な範囲の端部よりも所定量だけ内側に設定
することにより、両端部分で作為的な拡大が行なわれな
くなる。
However, by setting the range of the luminance distribution to be enlarged inside by a predetermined amount from the end of the actual reproducible range, artificial enlargement is not performed at both ends.

【0034】さらに、請求項11にかかる発明は、請求
項1〜請求項10のいずれかに記載の画像処理装置にお
いて、輝度分布の拡大範囲に制限を設定する構成として
ある。
Further, the invention according to claim 11 is the image processing apparatus according to any one of claims 1 to 10, wherein a limit is set to an expansion range of the luminance distribution.

【0035】コントラストが狭いことが当然の場合があ
る。例えば、夕方の風景であれば輝度分布の幅が狭いの
は自然であり、これを必要以上に拡大してしまうと昼の
風景となってしまう。同様の例は他の場合においてもあ
り得ることで、輝度分布の拡大範囲に制限を設定するこ
とにより、かかる現象を回避する。
In some cases, the contrast is narrow. For example, it is natural that the width of the luminance distribution is narrow in the evening scene, and if it is expanded beyond necessity, it becomes a day scene. A similar example is possible in other cases, and such a phenomenon is avoided by setting a limit on the enlarged range of the luminance distribution.

【0036】さらに、請求項12にかかる発明は、請求
項11に記載の画像処理装置において、再現可能な範囲
内での変換前の輝度分布範囲の対応位置と変換後の輝度
分布範囲の対応位置とが保持される構成としてある。
According to a twelfth aspect of the present invention, in the image processing apparatus according to the eleventh aspect, a corresponding position of a luminance distribution range before conversion and a corresponding position of a luminance distribution range after conversion within a reproducible range. Are held.

【0037】輝度分布を再現可能な範囲内で最大限に使
用するとすれば輝度分布を拡大可能な残余の範囲はなく
なる。しかしながら、拡大範囲に制限を加えるとすれ
ば、輝度分布を拡大可能な残余の範囲が残る。言い換え
ればどの範囲を中心に拡大するかの自由度が残ることに
なり、その中心によっては画像の雰囲気が変わりかねな
い。従って、再現可能な範囲内での変換前の輝度分布範
囲の対応位置と変換後の輝度分布範囲の対応位置とを保
持し、その中心が変わらないようにする。
If the maximum luminance distribution is used within a reproducible range, there is no remaining range in which the luminance distribution can be expanded. However, if the enlargement range is limited, a remaining range where the luminance distribution can be enlarged remains. In other words, there remains a degree of freedom as to which area is to be enlarged at the center, and the atmosphere of the image may change depending on the center. Therefore, the corresponding position of the luminance distribution range before the conversion and the corresponding position of the luminance distribution range after the conversion within the reproducible range are maintained so that their centers do not change.

【0038】かかる意味での画像の輝度分布の中心につ
いては各種の捉え方が可能であり、その一例として、請
求項13にかかる発明は、請求項12に記載の画像処理
装置において、変換前に輝度分布範囲の上端と下端とに
残存していた拡大可能な範囲の割合が変換後にも保持さ
れるように輝度分布を拡大する構成としてある。
The center of the luminance distribution of an image in this sense can be interpreted in various ways. As an example, the invention according to claim 13 is based on the image processing apparatus according to claim The configuration is such that the luminance distribution is expanded so that the ratio of the expandable range remaining at the upper end and the lower end of the luminance distribution range is maintained after the conversion.

【0039】すなわち、実質的に中心が保持されればよ
いので、必ずしも同中心を直接的にとらえて保持する必
要はないといえ、逆に変換前に輝度分布範囲の上端と下
端とに残存していた拡大可能な範囲をとらえ、この範囲
の割合が変換後にも保持されるように輝度分布を拡大し
て実質的に中心を保持する。
That is, since the center only needs to be held substantially, it is not always necessary to directly capture and hold the same center. Conversely, the center remains at the upper and lower ends of the luminance distribution range before conversion. The range which can be expanded is captured, and the luminance distribution is expanded so that the ratio of this range is maintained even after the conversion, and the center is substantially held.

【0040】さらに、請求項14にかかる発明は、請求
項1〜請求項13のいずれかに記載の画像処理装置にお
いて、輝度分布に基づいて二値画像データを判定すると
ともに、二値画像データであれば輝度分布の拡大を行わ
ない構成としてある。
According to a fourteenth aspect of the present invention, in the image processing apparatus according to any one of the first to thirteenth aspects, the binary image data is determined based on the luminance distribution and the binary image data is determined. If so, the brightness distribution is not expanded.

【0041】二値画像については実質的な意味での輝度
分布はないといえるので、輝度分布から二値画像データ
を判定したら輝度分布の拡大は行わないようにしてい
る。
Since it can be said that there is substantially no luminance distribution in a binary image, when the binary image data is determined from the luminance distribution, the luminance distribution is not expanded.

【0042】二値画像データはある色を持ったものでも
あり得るため、その色の有りと無しに対応する二つの輝
度となりうる。その色の輝度か否かを判定することも可
能であるが、それを示唆する情報がない場合において
は、請求項15にかかる発明は、請求項14に記載の画
像処理装置において、再現可能な範囲内の両端に輝度分
布が集中しているときに白黒の二値画像データであると
判断する構成としてある。
Since the binary image data can have a certain color, it can have two luminances corresponding to the presence or absence of the color. Although it is possible to determine whether or not the color has the luminance, if there is no information indicating the same, the invention according to claim 15 can be reproduced by the image processing apparatus according to claim 14. When the luminance distribution is concentrated at both ends of the range, the image data is determined to be monochrome binary image data.

【0043】すなわち、白黒画像については再現可能な
範囲内の両端に輝度分布が集中しているといえ、判断可
能となる。
That is, for a monochrome image, it can be said that the luminance distribution is concentrated at both ends within the reproducible range, and the determination can be made.

【0044】さらに、請求項16にかかる発明は、請求
項1〜請求項13のいずれかに記載の画像処理装置にお
いて、突出する輝度分布に基づいて画像データの枠部を
判定するとともに、枠部があれば枠部のデータについて
輝度分布の拡大に利用しない構成としてある。
According to a sixteenth aspect of the present invention, in the image processing apparatus according to any one of the first to thirteenth aspects, the frame part of the image data is determined based on the prominent luminance distribution. If there is, the configuration is such that the data in the frame portion is not used for expanding the luminance distribution.

【0045】画像を処理する場合に頻繁に起こり得るの
は枠を持っていることであり、単色の枠として存在すれ
ば当然にその色に対応する輝度分布だけが突出する。従
って、かかる突出した輝度分布をもってして拡大の判断
の基準とすれば有効な判断ができなくなり得るから、枠
部と判断して輝度分布の拡大に利用しない。
When an image is processed, what often happens is that the image has a frame. If the image exists as a single color frame, only the luminance distribution corresponding to the color naturally protrudes. Therefore, if such a prominent luminance distribution is used as a reference for judging the enlargement, it may not be possible to make an effective judgment.

【0046】さらに、その一例として、請求項17にか
かる発明は、請求項16に記載の画像処理装置におい
て、再現可能な範囲内での端部に集中している輝度分布
が枠部であると判定する構成としてある。
Further, as an example, the invention according to claim 17 is the image processing apparatus according to claim 16, wherein the luminance distribution concentrated at the end within the reproducible range is the frame portion. There is a configuration for determination.

【0047】白枠あるいは黒枠は頻繁にあり採用される
し、トリミングの結果によっても生じ得るものであり、
再現可能な範囲内での端部に該当する。従って、この端
部に集中している輝度分布を枠部と判定する。
A white frame or a black frame is frequently used and employed, and may also be generated as a result of trimming.
It corresponds to the end within the reproducible range. Therefore, the luminance distribution concentrated at this end is determined as the frame.

【0048】ところで、請求項18にかかる発明は、請
求項1〜請求項17のいずれかに記載の画像処理装置に
おいて、画像データが自然画でない場合に輝度分布の拡
大を行わないように構成してある。
The invention according to claim 18 is the image processing apparatus according to any one of claims 1 to 17, wherein the luminance distribution is not expanded when the image data is not a natural image. It is.

【0049】コントラストの幅の狭さが問題となりやす
いのは写真のような自然画であり、ビジネスグラフのよ
うなものでは殆ど必要が無いとも言える。逆に、ビジネ
スグラフのようなものについて手を加えることが作り手
のイメージと異ならせる結果になりかねない。従って、
このような自然画の場合にだけ輝度分布を拡大するよう
にしている。
It is natural images such as photographs that narrow contrast is likely to cause a problem, and it can be said that such images are hardly necessary in business graphs. Conversely, tweaking things like business graphs can result in a different image from the creator. Therefore,
The luminance distribution is expanded only in the case of such a natural image.

【0050】自然画か否かの判断の一例として、請求項
19にかかる発明は、請求項18に記載の画像処理装置
において、輝度分布が線スペクトル状に存在する場合に
上記画像データが自然画でないと判定する自然画判定手
段を備えた構成としてある。
As an example of the determination as to whether or not the image data is a natural image, in the image processing apparatus according to the present invention, when the luminance distribution exists in a linear spectrum, the image data It is configured to include a natural image determination unit that determines that the image is not the same.

【0051】自然画の特徴として輝度分布が滑らかに幅
を持つことが言える。従って、輝度分布が線スペクトル
状に表れていれば自然画でないと判断して概ね差し支え
ない。上記のように構成した請求項19にかかる発明に
おいては、自然画判定手段が輝度分布の状態を判定し、
線スペクトル状に存在する場合に画像データが自然画で
ないと判定し、これにより輝度分布の拡大が行われなく
なる。
As a feature of the natural image, it can be said that the luminance distribution has a smooth width. Therefore, if the luminance distribution appears in the form of a line spectrum, it is generally safe to judge that the image is not a natural image. In the invention according to claim 19 configured as described above, the natural image determining unit determines the state of the luminance distribution,
If the image data exists in the form of a line spectrum, it is determined that the image data is not a natural image, so that the luminance distribution is not enlarged.

【0052】上述したようにして、画像データにおける
輝度分布を求めて再現可能な範囲に対応して当該分布を
拡大させるように画像データを変換する手法は、実体の
ある装置に限定される必要はなく、その方法としても機
能することは容易に理解できる。このため、請求項20
にかかる発明は、画像をドットマトリクス状の画素に分
解して各画素の情報を表す画像データに対して所定の画
像処理を行う画像処理方法であって、各画素での輝度に
基づいて全体としての輝度分布を集計し、集計された輝
度分布が当該画像データの取りうる有効な輝度範囲に広
く分散していない場合に、上記輝度分布が同輝度範囲に
広く分散するように上記画像データにおける各画素の輝
度の情報を変換する構成としてある。
As described above, the method of obtaining the luminance distribution in the image data and converting the image data so as to expand the distribution in accordance with the reproducible range need not be limited to a substantial device. However, it can be easily understood that it also functions as the method. Therefore, claim 20
The present invention relates to an image processing method for performing predetermined image processing on image data representing information of each pixel by decomposing an image into dot matrix pixels, and as a whole based on the luminance at each pixel. Tabulated luminance distribution, and if the tabulated luminance distribution is not widely distributed over the effective luminance range that the image data can take, each of the image data is distributed so that the luminance distribution is widely distributed over the same luminance range. The configuration is such that the information on the luminance of the pixel is converted.

【0053】すなわち、必ずしも実体のある装置に限ら
ず、その方法としても有効であることに相違はない。
That is, there is no difference in that the present invention is not necessarily limited to a substantial device and is also effective as a method.

【0054】ところで、このような画像処理装置は単独
で存在する場合もあるし、ある機器に組み込まれた状態
で利用されることもあるなど、発明の思想としてはこれ
に限らず、各種の態様を含むものである。従って、ソフ
トウェアであったりハードウェアであったりするなど、
適宜、変更可能である。
By the way, such an image processing apparatus may exist alone, or may be used in a state of being incorporated in a certain device. Is included. Therefore, it may be software or hardware,
It can be changed as appropriate.

【0055】その一例として、入力される画像データに
基づいて印刷インクに対応した画像データに変換し、所
定のカラープリンタに印刷せしめるプリンタドライバに
おいても、画像データにおける輝度分布を求めて再現可
能な範囲に対応して当該分布を拡大させるように画像デ
ータを変換するように構成することができる。
As one example, a printer driver that converts input image data into image data corresponding to printing ink and prints the image data on a predetermined color printer also obtains a luminance distribution in the image data and reproduces the image data. , The image data can be converted so as to expand the distribution.

【0056】すなわち、プリンタドライバは印刷インク
に対応して入力された画像データを変換するが、このと
きに同入力画像データの輝度分布を求め、再現可能な範
囲に対応して当該分布を拡大させ、拡大された分布とな
るように入力画像を変換し、印刷させる。
That is, the printer driver converts the input image data corresponding to the printing ink. At this time, the printer driver obtains the luminance distribution of the input image data and expands the distribution according to the reproducible range. The input image is converted so as to have an enlarged distribution and printed.

【0057】発明の思想の具現化例として画像処理装置
のソフトウェアとなる場合には、かかるソフトウェアを
記録した記録媒体上においても当然に存在し、利用され
るといわざるをえない。その一例として、請求項21に
かかる発明は、画像をドットマトリクス状の画素に分解
して各画素の情報を表す画像データをコンピュータにて
入力し、所定の画像処理を行う画像処理プログラムを記
録した媒体であって、上記画像データを入力し、各画素
での輝度に基づいて全体としての輝度分布を集計するス
テップと、集計された輝度分布が当該画像データの取り
うる有効な輝度範囲に広く分散していない場合に、上記
輝度分布が同輝度範囲に広く分散するように上記画像デ
ータにおける各画素の輝度の情報を変換するステップと
を具備する構成としてある。
When the software of the image processing apparatus is realized as an example of realizing the idea of the present invention, the software naturally exists on a recording medium on which such software is recorded, and it must be said that the software is used. As one example, the invention according to claim 21 records an image processing program for decomposing an image into dot matrix pixels, inputting image data representing information of each pixel by a computer, and performing predetermined image processing. A medium, inputting the image data, and totalizing the luminance distribution as a whole based on the luminance at each pixel; and distributing the totaled luminance distribution widely over an effective luminance range that the image data can take. If not, converting the luminance information of each pixel in the image data so that the luminance distribution is widely dispersed in the same luminance range.

【0058】むろん、その記録媒体は、磁気記録媒体で
あってもよいし光磁気記録媒体であってもよいし、今後
開発されるいかなるソフトウェア記録媒体においても全
く同様に考えることができる。また、一次複製品、二次
複製品などの複製段階については全く問う余地無く同等
である。その他、供給方法として通信回線を利用して行
う場合でも本発明が利用されていることには変わりない
し、半導体チップに書き込まれたようなものであっても
同様である。
Of course, the recording medium may be a magnetic recording medium, a magneto-optical recording medium, or any software recording medium to be developed in the future. Also, the duplication stages of the primary duplicated product, the secondary duplicated product, and the like are equivalent without any question. In addition, the present invention is still used even when the supply method is performed using a communication line, and the same applies to a case where the information is written on a semiconductor chip.

【0059】さらに、一部がソフトウェアであって、一
部がハードウェアで実現されている場合においても発明
の思想において全く異なるものはなく、一部を記録媒体
上に記憶しておいて必要に応じて適宜読み込まれるよう
な形態のものとしてあってもよい。さらには、カラーフ
ァクシミリ機、カラーコピー機、カラースキャナやディ
ジタルカメラ、ディジタルビデオなどに内蔵する画像処
理装置においても適用可能であることはいうまでもな
い。
Further, even when a part is realized by software and a part is realized by hardware, there is no difference in the concept of the present invention. It may be in a form that is appropriately read in accordance with it. Further, it is needless to say that the present invention can be applied to an image processing apparatus built in a color facsimile machine, a color copier, a color scanner, a digital camera, a digital video, or the like.

【0060】[0060]

【発明の効果】以上説明したように本発明は、輝度分布
を求めることにより、その画像のコントラストの幅のよ
うなものを定量的に扱うことが可能となり、再現可能な
範囲内での拡大程度を求めることができるので、コント
ラストの強調を自動化することが可能な画像処理装置を
提供することができる。
As described above, according to the present invention, by obtaining the luminance distribution, it is possible to quantitatively handle the image such as the width of the contrast, and the degree of enlargement within the reproducible range is obtained. Therefore, it is possible to provide an image processing apparatus capable of automating contrast enhancement.

【0061】また、請求項3にかかる発明によれば、所
定の範囲の階調内で有効に輝度分布を拡大することがで
きる。
According to the third aspect of the present invention, the luminance distribution can be effectively expanded within a predetermined range of gradations.

【0062】さらに、請求項4にかかる発明によれば、
コントラストの強調だけでは直せない明るさの程度をも
調整することができる。
Further, according to the invention of claim 4,
It is possible to adjust the degree of brightness that cannot be corrected only by enhancing the contrast.

【0063】さらに、請求項5にかかる発明によれば、
変換を容易にすることができる。
Further, according to the invention of claim 5,
Conversion can be facilitated.

【0064】さらに、請求項6にかかる発明によれば、
必要十分な程度の正確さで輝度を容易に求めることがで
きるようになる。
Further, according to the invention of claim 6,
The luminance can be easily obtained with a necessary and sufficient degree of accuracy.

【0065】さらに、請求項7にかかる発明によれば、
処理量を減らすことができる。
Further, according to the seventh aspect of the present invention,
The processing amount can be reduced.

【0066】さらに、請求項8にかかる発明によれば、
画像の抽出点の偏りを無くして輝度分布が正確になりや
すくなる。
Further, according to the invention of claim 8,
The bias of the extraction points of the image is eliminated, and the luminance distribution is likely to be accurate.

【0067】さらに、請求項9にかかる発明によれば、
より判断に有効な輝度分布を得ることができる。
Further, according to the ninth aspect of the present invention,
A more effective luminance distribution can be obtained.

【0068】さらに、請求項10にかかる発明によれ
ば、ハイライト部分やハイシャドウ部分をつぶさないよ
うにすることができる。
Further, according to the tenth aspect of the present invention, it is possible to prevent a highlight portion and a high shadow portion from being crushed.

【0069】さらに、請求項11にかかる発明によれ
ば、コントラストを強調しすぎて画像の雰囲気を変えて
しまわないようにすることができる。
Further, according to the eleventh aspect, it is possible to prevent the contrast of the image from being excessively emphasized and changing the atmosphere of the image.

【0070】さらに、請求項12にかかる発明によれ
ば、画像の明るさに表される雰囲気を保持することがで
き、さらに、請求項13にかかる発明によれば、それを
容易に実行することができる。
Further, according to the twelfth aspect of the present invention, it is possible to maintain the atmosphere represented by the brightness of the image, and according to the thirteenth aspect of the present invention, it is possible to easily execute it. Can be.

【0071】さらに、請求項14にかかる発明によれ
ば、輝度分布の拡大の不要な条件を容易に判定して拡大
を行わないようにすることができるし、さらに、請求項
15にかかる発明によれば、頻度の多い白黒画像を効率
よく判定することができる。
Further, according to the fourteenth aspect of the present invention, it is possible to easily determine an unnecessary condition for expanding the luminance distribution so as not to perform the expansion. According to this, it is possible to efficiently determine a frequent black and white image.

【0072】さらに、請求項16にかかる発明によれ
ば、画像に表れがちな枠部の輝度によって処理が不正確
になるのを防止することができ、さらに、請求項17に
かかる発明によれば、頻度の多い白黒の枠部を容易に判
定することができる。
Further, according to the sixteenth aspect of the present invention, it is possible to prevent the processing from becoming inaccurate due to the brightness of the frame portion that tends to appear in the image. The frequently used black and white frame portion can be easily determined.

【0073】さらに、請求項18にかかる発明によれ
ば、輝度分布の拡大が必要な自然画の場合にだけ行うよ
うにすることができ、さらに、請求項19にかかる発明
によれば、自然画か否かを容易に判定することができ
る。
Further, according to the eighteenth aspect of the present invention, it is possible to perform the processing only in the case of a natural image that requires an enlargement of the luminance distribution. Can be easily determined.

【0074】そして、請求項20にかかる発明によれ
ば、輝度分布を求めて画像のコントラストの幅のような
ものを定量的に扱うことができ、コントラストの強調を
自動化する画像処理方法を提供することができ、請求項
21にかかる発明によれば、同様にしてコントラストの
強調を自動化する画像処理プログラムを記録した媒体を
提供することが可能となる。
According to the twentieth aspect of the present invention, there is provided an image processing method capable of calculating a luminance distribution and quantitatively treating an image such as the width of a contrast, and automating the enhancement of the contrast. According to the invention according to claim 21, it is possible to provide a medium in which an image processing program for automatically enhancing contrast is recorded.

【0075】[0075]

【発明の実施の形態】以下、図面にもとづいて本発明の
実施形態を説明する。
Embodiments of the present invention will be described below with reference to the drawings.

【0076】図1は、本発明の一実施形態にかかる画像
処理システムをブロック図により示しており、図2は具
体的ハードウェア構成例をブロック図により示してい
る。
FIG. 1 is a block diagram showing an image processing system according to an embodiment of the present invention, and FIG. 2 is a block diagram showing an example of a specific hardware configuration.

【0077】同図において、画像入力装置10は画像を
撮像するなどして画像データを画像処理装置20へ出力
し、同画像処理装置20は所定のコントラスト強調など
の画像処理を行なって画像出力装置30に出力し、同画
像出力装置30はコントラストを強調された画像を表示
する。
In the figure, an image input device 10 outputs image data to an image processing device 20 by taking an image or the like, and the image processing device 20 performs image processing such as predetermined contrast enhancement and performs image processing. 30 and the image output device 30 displays an image with enhanced contrast.

【0078】ここにおいて、画像入力装置10の具体例
はスキャナ11やデジタルスチルカメラ12あるいはビ
デオカメラ14などが該当し、画像処理装置20の具体
例はコンピュータ21とハードディスク22などからな
るコンピュータシステムが該当し、画像出力装置30の
具体例はプリンタ31やディスプレイ32等が該当す
る。
Here, a specific example of the image input device 10 corresponds to the scanner 11, the digital still camera 12, or the video camera 14, and a specific example of the image processing device 20 corresponds to a computer system including the computer 21 and the hard disk 22. A specific example of the image output device 30 corresponds to the printer 31, the display 32, or the like.

【0079】本画像処理システムにおいては、コントラ
ストの弱い画像に対して最適なコントラストを与えよう
としているものであるから、画像入力装置10としての
スキャナ11で写真を撮像した画像データであるとか、
デジタルスチルカメラ12で撮影したコントラストの弱
い画像データなどが処理の対象となり、画像処理装置2
0としてのコンピュータシステムに入力される。
In the present image processing system, an image having low contrast is provided with an optimum contrast. Therefore, image data obtained by taking a photograph with the scanner 11 as the image input device 10 may be used.
Image data with a low contrast captured by the digital still camera 12 is processed, and the image processing device 2
0 is input to the computer system.

【0080】本画像処理装置20は、少なくとも、輝度
の分布を抽出する輝度分布検出手段と、この検出された
輝度分布に基づいて再現可能な範囲内での同輝度分布の
拡大可能な程度を判別して画像データを変換する画像デ
ータ変換手段を構成する。むろん、本画像処理装置20
は、この他にも機種毎による色の違いを補正する色変換
手段であったり、機種毎に対応した解像度を変換する解
像度変換手段などを構成していても構わない。この例で
は、コンピュータ21はRAMなどを使用しながら、内
部のROMやハードディスク22に保存されている各画
像処理のプログラムを実行していく。なお、このような
画像処理のプログラムは、CD−ROM、フロッピーデ
ィスク、MOなどの各種の記録媒体を介して供給される
他、モデムなどによって公衆通信回線を介して外部のネ
ットワークに接続し、ソフトウェアやデータをダウンロ
ードして導入することも行われている。
The image processing apparatus 20 includes at least a luminance distribution detecting means for extracting a luminance distribution and a degree of expansion of the luminance distribution within a reproducible range based on the detected luminance distribution. To convert the image data. Of course, the image processing apparatus 20
May be a color conversion means for correcting a color difference depending on each model, or a resolution conversion means for converting a resolution corresponding to each model. In this example, the computer 21 executes each image processing program stored in the internal ROM or the hard disk 22 while using a RAM or the like. Note that such an image processing program is supplied via various recording media such as a CD-ROM, a floppy disk, and an MO, and is connected to an external network via a public communication line using a modem or the like, and is connected to a software. Downloading and introducing data is also being carried out.

【0081】この画像処理のプログラムの実行結果は後
述するようにコントラストを強調した画像データとして
得られ、得られた画像データに基づいて画像出力装置3
0であるプリンタ31で印刷したり、同じ画像出力装置
30であるディスプレイ32に表示する。なお、この画
像データは、より具体的にはRGB(緑、青、赤)の階
調データとなっており、また、画像は縦方向(heig
ht)と横方向(wideth)に格子状に並ぶドット
マトリクスデータとして構成されている。すなわち、当
該画像データは画像をドットマトリクス状の画素に分解
して各画素の情報を表したものとなっている。
The execution result of this image processing program is obtained as image data with enhanced contrast as described later, and the image output device 3 is executed based on the obtained image data.
The image is printed by the printer 31 which is 0 or displayed on the display 32 which is the same image output device 30. This image data is more specifically RGB (green, blue, red) gradation data, and the image is displayed in the vertical direction (heig).
ht) and dot matrix data arranged in a grid in the horizontal direction (width). That is, the image data represents the information of each pixel by decomposing the image into dot matrix pixels.

【0082】本実施形態においては、画像の入出力装置
の間にコンピュータシステムを組み込んで画像処理を行
うようにしているが、必ずしもかかるコンピュータシス
テムを必要とする訳ではなく、図3に示すようにデジタ
ルスチルカメラ12a内にコントラストを強調する意味
での画像処理装置を組み込み、変換した画像データを用
いてディスプレイ32aに表示させたりプリンタ31a
に印字させるようなシステムであっても良い。また、図
4に示すように、コンピュータシステムを介することな
く画像データを入力して印刷するプリンタ31bにおい
ては、スキャナ11bやデジタルスチルカメラ12bあ
るいはモデム13b等を介して入力される画像データを
自動的にコントラスト強調するように構成することも可
能である。
In this embodiment, a computer system is incorporated between image input / output devices to perform image processing. However, such a computer system is not always required, and as shown in FIG. An image processing device for enhancing contrast is incorporated in the digital still camera 12a, and the digital still camera 12a displays the converted image data on the display 32a or the printer 31a.
May be a system that prints the data. As shown in FIG. 4, in a printer 31b that inputs and prints image data without using a computer system, image data input via a scanner 11b, a digital still camera 12b, a modem 13b, or the like is automatically converted. It is also possible to configure so that contrast is enhanced.

【0083】コンピュータ21にて実行する画像処理の
内、輝度分布検出手段に相当する輝度の分布検出処理と
画像データ変換手段に相当する輝度変換処理とをそれぞ
れ図5及び図6に示している。
Among the image processing executed by the computer 21, a luminance distribution detecting process corresponding to the luminance distribution detecting means and a luminance converting process corresponding to the image data converting means are shown in FIGS. 5 and 6, respectively.

【0084】図5は主に輝度の分布検出処理に該当して
おり、まず、この輝度の分布検出処理について説明す
る。
FIG. 5 mainly corresponds to the luminance distribution detection processing. First, the luminance distribution detection processing will be described.

【0085】輝度をいかにして表すかについて説明する
前に、分布対象となる画素について説明する。図5のス
テップS102で示すように対象となる画素を間引く間
引き処理を実行する。図7に示すように、ビットマップ
の画像であれば、縦方向に所定ドットと横方向に所定ド
ットからなる二次元のドットマトリクスとして成り立っ
ており、正確な輝度の分布を求めるのであれば全画素に
ついて輝度を調べる必要がある。しかしながら、この分
布抽出処理は分布の幅を求めることを目的としており、
必ずしも正確である必要はない。従って、ある誤差の範
囲内となる程度に間引きを行うことが可能である。統計
的誤差によれば、サンプル数Nに対する誤差は概ね1/
(N**(1/2))と表せる。ただし、**は累乗を表し
ている。従って、1%程度の誤差で処理を行うためには
N=10000となる。
Before explaining how to represent luminance, pixels to be distributed will be described. As shown in step S102 of FIG. 5, a thinning process for thinning out target pixels is executed. As shown in FIG. 7, in the case of a bitmap image, a two-dimensional dot matrix including predetermined dots in the vertical direction and predetermined dots in the horizontal direction is established. It is necessary to check the brightness for. However, this distribution extraction process is aimed at finding the width of the distribution,
It does not have to be accurate. Therefore, it is possible to perform the thinning to the extent that it falls within a certain error range. According to the statistical error, the error with respect to the number of samples N is approximately 1 /
(N ** (1/2)). Here, ** indicates a power. Therefore, in order to perform processing with an error of about 1%, N = 10000.

【0086】ここにおいて、図7に示すビットマップ画
面は(width)×(height)の画素数とな
り、サンプリング周期ratioは、 ratio=min(width,height)/A+1 …(5) とする。ここにおいて、min(width,heig
ht)はwidthとheightのいずれか小さい方
であり、Aは定数とする。また、ここでいうサンプリン
グ周期ratioは何画素ごとにサンプリングするかを
表しており、図8の○印の画素はサンプリング周期ra
tio=2の場合を示している。すなわち、縦方向及び
横方向に二画素ごとに一画素のサンプリングであり、一
画素おきにサンプリングしている。A=200としたと
きの1ライン中のサンプリング画素数は図9に示すよう
になる。
Here, the number of pixels of the bitmap screen shown in FIG. 7 is (width) × (height), and the sampling period ratio is ratio = min (width, height) / A + 1 (5). Here, min (width, height)
ht) is the smaller of width and height, and A is a constant. The sampling period ratio here indicates how many pixels are sampled. Pixels marked with a circle in FIG.
The case where tio = 2 is shown. In other words, one pixel is sampled every two pixels in the vertical direction and the horizontal direction, and sampling is performed every other pixel. When A = 200, the number of sampling pixels in one line is as shown in FIG.

【0087】同図から明らかなように、サンプリングし
ないことになるサンプリング周期ratio=1の場合
を除いて、200画素以上の幅があるときには最低でも
サンプル数は100画素以上となることが分かる。従っ
て、縦方向と横方向について200画素以上の場合には
(100画素)×(100画素)=(10000画素)
が確保され、誤差を1%以下にできる。
As can be seen from the figure, except for the case where the sampling period ratio = 1 in which sampling is not performed, when the width is 200 pixels or more, the number of samples is at least 100 pixels or more. Therefore, when the number of pixels is 200 or more in the vertical and horizontal directions, (100 pixels) × (100 pixels) = (10000 pixels)
Is ensured, and the error can be reduced to 1% or less.

【0088】ここにおいてmin(width,hei
ght)を基準としているのは次のような理由による。
例えば、図10(a)に示すビットマップ画像のよう
に、width>>heightであるとすると、長い
方のwidthでサンプリング周期ratioを決めて
しまった場合には、同図(b)に示すように、縦方向に
は上端と下端の2ラインしか画素を抽出されないといっ
たことが起こりかねない。しかしながら、min(wi
dth,height)として、小さい方に基づいてサ
ンプリング周期ratioを決めるようにすれば同図
(c)に示すように少ない方の縦方向においても中間部
を含むような間引きを行うことができるようになる。
Here, min (width, hei)
(ght) is based on the following reason.
For example, assuming width >> height as in the bitmap image shown in FIG. 10A, if the sampling cycle ratio is determined by the longer width, as shown in FIG. In addition, it may happen that only two lines, the upper and lower lines, are extracted in the vertical direction. However, min (wi
(dth, height), if the sampling period ratio is determined based on the smaller one, it is possible to perform the thinning including the intermediate part even in the smaller vertical direction as shown in FIG. Become.

【0089】なお、この例では、縦方向と横方向の画素
について正確なサンプリング周期で間引きを行うように
している。これは、逐次入力される画素について間引き
しながら処理する場合に好適である。しかし、全画素が
入力されている場合には縦方向や横方向についてランダ
ムに座標を指定して画素を選択するようにしても良い。
このようにすれば、10000画素というような必要最
低限の画素数が決まっている場合に10000画素とな
るまでランダムに抽出する処理を繰り返し、10000
画素となった時点で抽出を止めればよくなる。
In this example, thinning is performed at an accurate sampling cycle for pixels in the vertical and horizontal directions. This is suitable when processing is performed while thinning out sequentially input pixels. However, when all pixels have been input, pixels may be selected by randomly designating coordinates in the vertical direction and the horizontal direction.
In this way, when the minimum required number of pixels, such as 10,000 pixels, is determined, the process of randomly extracting until 10,000 pixels is repeated is repeated.
It suffices to stop the extraction at the time of the pixel.

【0090】このように選択した画素についての画素デ
ータがその成分要素として輝度を持っていればその輝度
値を用いて分布を求めることが可能である。しかしなが
ら、輝度値が直接の成分値となっていない画像データの
場合でも、間接的には輝度を表す成分値を備えている。
従って、輝度値が直接の成分値となっていない表色空間
から輝度値が直接の成分値となっている表色空間への変
換を行えば輝度値を得ることができる。
If the pixel data of the selected pixel has luminance as its component element, the distribution can be obtained using the luminance value. However, even in the case of image data whose luminance value is not a direct component value, the image data has a component value representing luminance indirectly.
Therefore, a luminance value can be obtained by converting from a color space in which the luminance value is not a direct component value to a color space in which the luminance value is a direct component value.

【0091】このような異なる表色空間の間での色変換
は変換式によって一義的に定まるものではなく、それぞ
れの成分値を座標とする色空間について相互に対応関係
を求めておき、この対応関係を記憶した色変換テーブル
を参照して逐次変換する必要がある。テーブルとする関
係上、成分値は階調値として表され、三次元の座標軸を
備えている256階調の場合には、約1670万個(2
56×256×256)の要素の色変換テーブルを持た
なければならない。効率的な記憶資源の利用を考えた結
果、すべての座標値についての対応関係を用意しておく
のではなく、通常は適当なとびとびの格子点について対
応関係を用意しておき、補間演算を併用するようにして
いる。この補間演算はいくつかの乗算や加算を経て可能
となるものであるため、演算処理量は膨大となってく
る。
The color conversion between these different color spaces is not uniquely determined by the conversion formula, but a mutual correspondence is obtained for the color spaces having the respective component values as coordinates. It is necessary to sequentially perform conversion by referring to a color conversion table that stores the relationship. In relation to a table, the component values are represented as gradation values. In the case of 256 gradations having three-dimensional coordinate axes, about 16.7 million (2
It must have a color conversion table of 56 × 256 × 256) elements. As a result of considering efficient use of storage resources, instead of preparing correspondences for all coordinate values, usually prepare correspondences for appropriate discrete grid points and use interpolation together I am trying to do it. Since this interpolation calculation can be performed through several multiplications and additions, the amount of calculation processing becomes enormous.

【0092】すなわち、フルサイズの色変換テーブルを
使用するのであれば処理量としては少なくなるもののテ
ーブルサイズが非現実的となり、テーブルサイズを現実
的なサイズにすれば演算処理量が非現実的となることが
多い。
That is, if a full-size color conversion table is used, the processing amount is reduced, but the table size becomes impractical. If the table size is set to a realistic size, the calculation processing amount is impractical. Often become.

【0093】このような状況に鑑み、本実施形態におい
ては、テレビジョンなどの場合に利用されているよう
に、RGBの三原色から輝度を求める次式の変換式を採
用している。すなわち、P点での輝度yp についてはR
GBの成分値(Rp,Gp,Bp )から、 yp=0.30Rp+0.59Gp+0.11Bp …(6) とする。このようにすれば、三回の乗算と二回の加算だ
けで輝度値を求めることができるようになる。
In view of such a situation, the present embodiment employs the following conversion formula for obtaining luminance from the three primary colors of RGB as used in a television or the like. That is, the luminance yp at the point P is R
From the GB component values (Rp, Gp, Bp), yp = 0.30Rp + 0.59Gp + 0.11Bp (6) In this way, a luminance value can be obtained only by three multiplications and two additions.

【0094】本実施形態においては、RGBの表色空間
を対象としている結果、このような変換式を採用してい
るが、その背景には各成分値が色の明るさを示している
ので、それぞれの成分値を単独で見た場合に輝度に線形
に対応しているという性質がある。従って、よりおおざ
っぱに言えばそれぞれの加算割合を考慮することなく単
に yp=(Rp+Gp+Bp)/3 …(7) というように簡略化することも不可能ではないし、さら
には、 yp=Gp …(7)’ というように、(6)式においても最も割合の大きい緑
の成分値を輝度値としてしまうことも可能である。
In the present embodiment, such a conversion formula is adopted as a result of targeting the RGB color space. However, since each component value indicates the color brightness on the background, There is a property that when each component value is viewed independently, it linearly corresponds to luminance. Therefore, more simply, it is not impossible to simply simplify to yp = (Rp + Gp + Bp) / 3 (7) without considering each addition ratio, and furthermore, yp = Gp (7) ) ', It is also possible to use the green component value having the largest ratio in the equation (6) as the luminance value.

【0095】間引き処理では、選択した画素についてR
GBの画像データから同時に輝度を求めて分布をとる。
最終的にはステップS116にてこの分布の幅を求める
ことになるが、その前に考慮しておく事項がある。
In the thinning-out process, R
The luminance is simultaneously obtained from the GB image data to obtain a distribution.
Eventually, the width of this distribution will be determined in step S116, but there are matters to be considered before that.

【0096】一つ目は画像が白黒画像のような二値画像
である場合である。白黒画像を含めて二値画像であれば
コントラストの強調という概念は不適切である。図11
に示すような白黒画像があったとすると、この画像に対
する輝度分布は図12に示すように再現可能な範囲にお
ける両端に集中する。それも、基本的には階調「0」と
階調「255」に集中する。
The first case is when the image is a binary image such as a black and white image. For a binary image including a black-and-white image, the concept of enhancing contrast is inappropriate. FIG.
As shown in FIG. 12, the luminance distribution for this image is concentrated at both ends in the reproducible range as shown in FIG. It also basically concentrates on the gradation “0” and the gradation “255”.

【0097】従って、ステップS104で白黒チェック
を行う場合には、階調「0」と階調「255」の画素数
の和が、間引いて選択した画素数と一致するか否かで判
断できる。そして、白黒画像の場合であれば以下の処理
を実行することなく処理を中断するためにステップS1
06にて非拡大処理を実行する。本実施形態においては
分布抽出処理と輝度変換処理とを大きく分けているの
で、この非拡大処理では後段の輝度変換処理も実行しな
いようなフラグを立てて当該分布抽出処理を終了してい
る。
Therefore, when performing a black-and-white check in step S104, it can be determined whether or not the sum of the number of pixels of the gradation "0" and the gradation "255" matches the number of pixels selected by thinning. Then, in the case of a monochrome image, step S1 is executed to interrupt the processing without executing the following processing.
At 06, non-enlargement processing is executed. In the present embodiment, since the distribution extraction processing and the luminance conversion processing are largely divided, in the non-enlargement processing, a flag is set so that the subsequent luminance conversion processing is not executed, and the distribution extraction processing ends.

【0098】二値データは白黒だけに限らず、色の付い
た二値データもあり得る。このような場合も同様にコン
トラストの強調を図る処理は不要であり、分布状態を調
べて二つの値(一方は概ね「0」)にしか分布が集中し
ていなければ二値データとして処理の中断を図ればよ
い。
The binary data is not limited to black and white, but may be colored binary data. In such a case as well, it is not necessary to perform processing for enhancing the contrast. If the distribution state is examined and the distribution is concentrated only on two values (one is approximately “0”), the processing is interrupted as binary data. What should I do?

【0099】二つ目は画像がビジネスグラフのようなも
のか写真のような自然画であるか否かを考慮する。自然
画においてはコントラストの強調という処理が要求され
る場合があるものの、ビジネスグラフであるとか絵画の
ようなものではコントラストの強調を図らない方が好ま
れる場合が多い。従って、ステップS108では自然画
か否かのチェックを行う。
The second consideration is whether the image is like a business graph or a natural image such as a photograph. Although a process of enhancing contrast may be required in a natural image, it is often preferred not to enhance contrast in a business graph or a painting. Therefore, in step S108, it is checked whether the image is a natural image.

【0100】自然画では陰影を含めて色数が極めて多い
がビジネスグラフやある種の絵画では色数が限られてい
ることが多い。従って、色数が少なければ自然画ではな
いと判断することが可能である。色数を正確に判断しよ
うとすれば上述したように1670万色のうちの何色を
使用しているかを判別する必要があるが、現実的ではな
い。一方、ビジネスグラフのような極めて色数が少ない
場合には異なる色であって同じ輝度になる確率は低い。
すなわち、輝度によって概ねの色数を判断できる。色数
が少なければ輝度の分布もまばらであり、ビジネスグラ
フのようなものでは線スペクトル状に表れる。このよう
なことから、ステップS108では256階調の輝度の
うち分布数が「0」でない輝度値がいくつ表れているか
カウントする。そして、概ね一割となる「25」以下で
あれば自然画でないと判断し、二値データの場合と同
様、ステップS106にて非拡大処理を実行する。むろ
ん、しきい値となる「25」色以下か否かについては適
宜変更可能である。
The number of colors in a natural image is extremely large, including shadows, but the number of colors is often limited in a business graph or a certain kind of painting. Therefore, if the number of colors is small, it can be determined that the image is not a natural image. To accurately determine the number of colors, it is necessary to determine how many of the 16.7 million colors are used as described above, but this is not practical. On the other hand, when the number of colors is extremely small, as in a business graph, the probability of different colors and the same luminance is low.
That is, the approximate number of colors can be determined based on the luminance. If the number of colors is small, the distribution of luminance is sparse, and in a business graph, it appears in a linear spectrum. For this reason, in step S108, the number of luminance values whose distribution number is not “0” among the 256 gradation luminances is counted. If it is less than or equal to about 25, which is approximately 10%, it is determined that the image is not a natural image, and the non-enlargement process is executed in step S106, as in the case of binary data. Of course, whether or not the color is equal to or less than the “25” color that is the threshold can be changed as appropriate.

【0101】また、分布が線スペクトル状か否かは分布
数が「0」でない輝度値の隣接割合で判断することも可
能である。すなわち、分布数が「0」でない輝度値であ
って隣接する輝度値に分布数があるか否かを判断する。
隣接する二つの輝度値のうち少なくとも一方で隣接して
いれば何もせず、両方で隣接していない場合にカウント
を行い、その結果、「0」でない輝度値の数とカウント
値との割合で判断すればよい。例えば、「0」でない輝
度値の数が「20」であって、隣接しないものの数が
「20」であれば線スペクトル状に分布していることが
分かる。
It is also possible to determine whether or not the distribution is in the form of a linear spectrum based on the adjacent ratio of luminance values whose distribution number is not "0". That is, it is determined whether or not the number of distributions is a luminance value other than “0” and the number of distributions is adjacent luminance values.
If at least one of the two adjacent luminance values is adjacent, nothing is performed, and if both are not adjacent, counting is performed, and as a result, the ratio between the number of non-zero luminance values and the count value Judge it. For example, if the number of luminance values other than “0” is “20” and the number of non-adjacent luminance values is “20”, it is understood that the luminance values are distributed in a linear spectrum.

【0102】さらに、オペレーティングシステムを介し
て画像処理プログラムが実行されているような場合に
は、画像ファイルの拡張子で判断することも可能であ
る。ビットマップファイルのうち、特に写真画像などで
はファイル圧縮がなされ、その圧縮方法を表すために暗
示の拡張子が利用されることが多い。例えば、「JP
G」という拡張子であれば、JPEGフォーマットで圧
縮されていることが分かる。オペレーティングシステム
がファイル名を管理していることから、プリンタドライ
バなどの側からオペレーティングシステムに問い合わせ
を出せば、同ファイルの拡張子が回答されることになる
ため、その拡張子に基づいて自然画であると判断してコ
ントラストの強調を行うようにすればよい。また、「X
LS」というようなビジネスグラフに特有の拡張子であ
ればコントラストの強調を行わないと判断することもで
きる。
Further, when the image processing program is executed via the operating system, it is possible to determine the extension by the extension of the image file. Of the bitmap files, especially for photographic images and the like, file compression is performed, and an implied extension is often used to indicate the compression method. For example, "JP
If the extension is "G", it is understood that the file is compressed in the JPEG format. Since the operating system manages the file name, if the printer driver etc. sends an inquiry to the operating system, the extension of the file will be answered. It may be determined that there is, and the contrast may be enhanced. Also, "X
If the extension is unique to the business graph such as “LS”, it can be determined that contrast enhancement is not performed.

【0103】三つ目に考慮することは、図13に示すよ
うに画像の周りに枠部があるか否かである。このような
枠部が白色または黒色であれば、その輝度分布は図14
に示すように、その影響が再現可能な範囲における両端
に線スペクトル状に表れるとともに、内部の自然画に対
応して両端以外の内側に滑らかな輝度分布としても表れ
る。
The third consideration is whether there is a frame around the image as shown in FIG. If such a frame portion is white or black, the luminance distribution is as shown in FIG.
As shown in (1), the effect appears in a linear spectrum shape at both ends in a reproducible range, and also as a smooth luminance distribution inside other than both ends corresponding to the internal natural image.

【0104】むろん、枠部を輝度分布の考慮に入れない
方が適切であるため、ステップS108の枠部のチェッ
クでは階調「0」と階調「255」の画素数の和が十分
に大きく、かつ、間引いて選択した画素数とは一致しな
いかを判断し、肯定的ならば枠部があると判定してステ
ップS112にて枠処理を実施する。この枠処理では、
枠部を無視するために輝度分布のうち階調「0」と階調
「255」の画素数を「0」にセットする。これによ
り、以下の処理では枠部がないものと同様に扱うことが
できる。
Of course, since it is more appropriate not to take the frame into consideration of the luminance distribution, the sum of the number of pixels of the gradation “0” and the gradation “255” is sufficiently large in the check of the frame in step S108. Then, it is determined whether the number of pixels does not match the number of pixels selected by thinning out, and if affirmative, it is determined that there is a frame portion, and frame processing is performed in step S112. In this frame processing,
In order to ignore the frame part, the number of pixels of the gradation “0” and the gradation “255” in the luminance distribution is set to “0”. As a result, in the following processing, it can be handled in the same manner as the case without the frame portion.

【0105】この例では白色または黒色の枠部を対象と
しているが、特定の色の枠がある場合も考えられる。こ
のような場合、輝度分布が描く本来の滑らかなカーブの
中で突出する線スペクトル状のものが表れる。従って、
隣接する輝度値の間で大きく差が生じている線スペクト
ル状のものについては枠部として考えて輝度分布の対象
としないようにすればよい。この場合、枠部以外でその
色を使用していることがあり得るので、両隣の輝度値の
平均を割り当てるようにしても良い。
In this example, a white or black frame portion is targeted, but there may be a case where there is a frame of a specific color. In such a case, a line spectrum shape protruding from the original smooth curve drawn by the luminance distribution appears. Therefore,
A line spectrum having a large difference between adjacent luminance values may be considered as a frame part and not subjected to luminance distribution. In this case, since the color may be used in a portion other than the frame portion, the average of the brightness values on both sides may be assigned.

【0106】以上のような考慮を経た上で、輝度分布の
拡大を行う場合にはステップS116で輝度分布の両端
を求める。自然画における輝度分布は図15に示すよう
に概ね山形に表れる。むろん、その位置、形状について
はさまざまである。輝度分布の幅はこの両端をどこに決
めるかによって決定されるが、単に裾野が延びて分布数
が「0」となる点を両端とすることはできない。裾野部
分では分布数が「0」付近で変移する場合があるし、統
計的に見れば限りなく「0」に近づきながら推移してい
くからである。
When the luminance distribution is expanded in consideration of the above considerations, both ends of the luminance distribution are obtained in step S116. As shown in FIG. 15, the luminance distribution in a natural image generally appears in a mountain shape. Of course, the position and shape are various. The width of the luminance distribution is determined depending on where the both ends are determined. However, the point where the number of distributions becomes “0” by extending the base cannot be set as the both ends. This is because the number of distributions may change around “0” in the tail part, and the number of distributions changes while approaching “0” without limit statistically.

【0107】このため、分布範囲において最も輝度の大
きい側と小さい側からある分布割合だけ内側に経た部分
を分布の両端とする。本実施形態においては、図15に
示すように、この分布割合を0.5%に設定している。
むろん、この割合については、適宜、変更することが可
能である。このように、ある分布割合だけ上端と下端を
カットすることにより、ノイズなどに起因して生じてい
る白点や黒点を無視することもできる。すなわち、この
ような処理をしなければ一点でも白点や黒点があればそ
れが輝度分布の両端となってしまうので、多くの場合に
おいて最下端は階調「0」であるし、最上端は階調「2
55」となってしまうが、上端部分から0.5%の画素
数だけ内側に入った部分を端部とすることにより、この
ようなことが無くなる。
For this reason, in the distribution range, the portions extending from the side with the highest luminance to the side with the lowest luminance by a certain distribution ratio are set as both ends of the distribution. In the present embodiment, as shown in FIG. 15, the distribution ratio is set to 0.5%.
Of course, this ratio can be changed as appropriate. In this manner, by cutting the upper and lower ends by a certain distribution ratio, white points and black points caused by noise or the like can be ignored. That is, if such a process is not performed, even if there is even one point, a white point or a black point will be at both ends of the luminance distribution. Therefore, in many cases, the lowermost end is gradation “0”, and the uppermost end is Gradation "2
55 ". However, such a problem is eliminated by setting the end portion to be inside by 0.5% of the number of pixels from the upper end portion.

【0108】実際の処理では処理対象となる画素数(間
引き処理において選択した画素の総数、あるいは枠部に
対応する画素数を削除した総数)に対する0.5%を演
算し、再現可能な輝度分布における上端の輝度値及び下
端の輝度値から順番に内側に向かいながらそれぞれの分
布数を累積し、0.5%の値となった輝度値を求める。
以後、この上端側をymaxと呼び、下端側をymin
と呼ぶ。
In the actual processing, 0.5% of the number of pixels to be processed (the total number of pixels selected in the thinning process or the total number of pixels corresponding to the frame portion deleted) is calculated, and a reproducible luminance distribution is calculated. , The respective distribution numbers are accumulated in order from the upper-end luminance value and the lower-end luminance value inward to obtain a luminance value having a value of 0.5%.
Hereinafter, this upper end is referred to as ymax, and the lower end is referred to as ymin.
Call.

【0109】本実施形態においては、輝度分布に対して
このような処理を経て上端と下端とを求めているが、統
計的処理のもとで両端を求めることも可能である。例え
ば、輝度値の平均値に対して何%以下となったところを
端部とするといった手法を採用することも可能である。
In the present embodiment, the upper end and the lower end of the luminance distribution are obtained through such processing. However, it is also possible to obtain both ends under statistical processing. For example, it is also possible to adopt a method in which what percentage or less of the average luminance value is set as an end.

【0110】以上の処理が分布検出処理に該当し、次
に、このようにして求めた輝度値ymax,yminに基
づいて画像データの変換を行なう輝度変換処理について
説明する。なお、上述したようにステップS106にて
非拡大処理を実行した場合には、ステップS202にて
所定のフラグを参照してそれを検知し、以下の処理を行
うことなく当該画像処理を終了する。
The above processing corresponds to the distribution detection processing. Next, the luminance conversion processing for converting the image data based on the luminance values ymax and ymin thus obtained will be described. When the non-enlargement process is performed in step S106 as described above, the process refers to a predetermined flag in step S202, detects the flag, and ends the image processing without performing the following process.

【0111】輝度の基本的な変換は、再現可能な輝度の
範囲を「0」〜「255」としたときに、変換前の輝度
yと輝度の分布範囲の最大値ymax と最小値ymin から
変換先の輝度Yを次式に基づいて求める。
The basic conversion of luminance is as follows. When the range of reproducible luminance is "0" to "255", the luminance y before conversion and the maximum value ymax and minimum value ymin of the luminance distribution range are converted. The luminance Y is obtained based on the following equation.

【0112】 Y=ay+b …(2) ただし a=255/(ymax−ymin) …(3)’ b=−a・yminあるいは255−a・ymax …(4)’ また、上記変換式にてY<0ならばY=0とし、Y>2
55ならばY=255とする。ここにおける、aは傾き
であり、bはオフセットといえる。この変換式によれ
ば、図16に示すように、あるせまい幅を持った輝度分
布を再現可能な範囲まで広げることができる。なお、基
本的に輝度の分布範囲の拡大においては、画素数が変化
するわけではないので、ヒストグラムの面積は一致す
る。
Y = ay + b (2) where a = 255 / (ymax−ymin) (3) ′ b = −a · ymin or 255−a · ymax (4) ′ If <0, Y = 0, Y> 2
If 55, Y = 255. Here, “a” is a slope, and “b” is an offset. According to this conversion formula, as shown in FIG. 16, a luminance distribution having a certain narrow width can be expanded to a reproducible range. Basically, in expanding the distribution range of luminance, the number of pixels does not change, and the areas of the histograms match.

【0113】ところで、このように再現可能な範囲を最
大限に利用して輝度分布の拡大を図った場合、ハイライ
ト部分が白く抜けてしまったり、ハイシャドウ部分が黒
くつぶれてしまうことが起こる。これを防止するため本
実施形態においては、再現可能な範囲を制限している。
すなわち、再現可能な範囲の上端と下端に拡大しない範
囲として輝度値で「5」だけ残している。この結果、変
換式のパラメータは次式のようになる。
When the luminance distribution is expanded by making the most of the reproducible range as described above, a highlight portion may be lost in white and a high shadow portion may be lost in black. In order to prevent this, in the present embodiment, the reproducible range is limited.
That is, the luminance value “5” is left as a range that does not expand to the upper and lower ends of the reproducible range. As a result, the parameters of the conversion equation are as follows.

【0114】 a=245/(ymax−ymin) …(8) b=5−a・yminあるいは250−a・ymax …(9) そして、この場合にはy<yminと、y>ymaxの範囲に
おいては変換を行わないようにする。
A = 245 / (ymax−ymin) (8) b = 5−a · ymin or 250−a · ymax (9) In this case, in the range of y <ymin and y> ymax Causes no conversion.

【0115】なお、本実施形態においては、ハイライト
部分とハイシャドウ部分とを保持するために一律に端部
から輝度値にして「5」の範囲を非拡大領域としている
が、ハイライト部分やハイシャドウ部分を比較的再現し
やすいような画像出力装置であればその範囲を狭くして
も良いし、再現力がさらに弱い場合にはより範囲を大き
くするようにしても良い。また、一律に拡大しないので
はなく、ボーダー領域で徐々に拡大率を制限するように
していっても良い。
In this embodiment, in order to hold the highlight portion and the high shadow portion, the range of “5” is uniformly set as the luminance value from the end to the non-enlarged region. The range may be narrowed if the image output device is such that the high shadow portion can be relatively easily reproduced, or the range may be expanded if the reproducibility is weaker. Further, the enlargement ratio may not be uniformly enlarged, but may be gradually limited in the border area.

【0116】また、図17(a)には画像の輝度分布が
狭い場合を示しているが、これまで述べたようにして輝
度分布の拡大率(aに対応)を適用してしまうと、再現
可能な範囲に合わせて非常に大きな拡大率が得られる場
合も生じてくる。すると、夕方のような薄暮の状態では
最も明るい部分から暗い部分までのコントラストの幅が
狭くて当然であるのに、この画像についてコントラスト
を大きく拡大しようとする結果、昼間の画像のように変
換されてしまいかねない。このような変換は希望されな
いので、拡大率には制限を設けていおき、aが1.5
(〜2)以上とはならないように制限する。これによ
り、薄暮は薄暮なりに表現されるようになる。
FIG. 17A shows a case where the luminance distribution of the image is narrow. However, if the enlargement ratio (corresponding to a) of the luminance distribution is applied as described above, the reproduction is not performed. In some cases, a very large magnification can be obtained according to the possible range. Then, in a twilight state such as in the evening, it is natural that the contrast range from the brightest part to the dark part is narrow. I could end up. Since such conversion is not desired, a limit is set for the enlargement ratio, and a is set to 1.5.
(〜2) Limit so as not to exceed the above. Thereby, twilight comes to be expressed as twilight.

【0117】拡大率に制限を設けない場合を図17
(a)の一点鎖線に示しており、変換後には再現可能な
範囲で余分な部分は残っていない。しかしながら、拡大
範囲を制限する場合には、同図(b)の二点鎖線で示す
ように、変換後の分布をどこに持ってくるかの自由度が
生じてしまい、場合によっては全体的に明るくなりすぎ
たり、暗くなり過ぎたりしかねない。
FIG. 17 shows a case where no limit is imposed on the enlargement ratio.
(A) is indicated by a dashed line, and no extra portion remains within a reproducible range after the conversion. However, when the enlargement range is limited, as shown by the two-dot chain line in FIG. 3B, there is a degree of freedom in where the converted distribution is to be obtained, and in some cases, the entire distribution is bright. It can be too dark or too dark.

【0118】このため、本実施形態においては、変換前
における輝度分布が再現可能な範囲内において上端側と
下端側に残っている残余の領域の割合(m1:m2)
が、変換後において上端側と下端側に残っている残余の
領域の割合(n1:n2)と一致するように変換する。
以下、このようにする場合のパラメータbの求め方につ
いて説明する。
For this reason, in the present embodiment, the ratio (m1: m2) of the remaining area remaining at the upper end and the lower end within the range in which the luminance distribution before conversion can be reproduced.
Is converted so as to match the ratio (n1: n2) of the remaining area remaining on the upper end side and the lower end side after the conversion.
Hereinafter, a method of obtaining the parameter b in such a case will be described.

【0119】変換前の画像の輝度分布において、 m1=ymin m2=255−ymax ここで、 m1+m2=255−(ymax−ymin) 従って、ydif=ymax−yminとすると、 m1+m2=255−ydif 変換後の画像の輝度分布において、 n1=Ymin n2=255−Ymax 同様に、 n1+n2=255−(Ymax−Ymin) =255−a(ymax−ymin) =255−a・ydif となる。In the luminance distribution of the image before conversion, m1 = ymin m2 = 255-ymax where m1 + m2 = 255- (ymax-ymin) Therefore, if ydif = ymax-ymin, then m1 + m2 = 255-ydif In the luminance distribution of the image, n1 = Ymin n2 = 255−Ymax Similarly, n1 + n2 = 255− (Ymax−Ymin) = 255−a (ymax−ymin) = 255−a · dif.

【0120】m1:m2=n1:n2であるから、 n1=m1(n1+n2)/(m1+m2) =ymin(255−a・ydif)/(255−ydif) 一方、Y=ay+bであるから、b=Y−ayとなり、
よって、 b=Ymin−a・ymin =ymin{(255−a・ydif)/(255−ydif)−a} …(10) となる。また、Ymax を用いて求めると、 b=Ymax−a・ymax =255−(255−ymax)(255−a・ydif)/(255−ydif)−a・ymax …( 11) 以上のようにしてパラメータbを得ることができ、ステ
ップS204を終了する。
Since m1: m2 = n1: n2, n1 = m1 (n1 + n2) / (m1 + m2) = ymin (255−a · ydif) / (255−ydif) On the other hand, since Y = ay + b, b = Y-ay,
Therefore, b = Ymin−a · ymin = ymin {(255−a · dif) / (255−ydif) −a} (10) Further, when it is determined using Ymax, b = Ymax−a · ymax = 255− (255−ymax) (255−a · ydif) / (255−ydif) −a · ymax (11) The parameter b can be obtained, and step S204 ends.

【0121】ところで、輝度の変換時に、毎回、上記変
換式(Y=ay+b)を実行するのは非合理的である。
というのは、輝度yの取りうる範囲が「0」〜「25
5」でしかあり得ないため、予め輝度yが取りうる全て
の値に対応して変換後の輝度Yを求めておくことも可能
である。従って、ステップS206にてこの対応関係を
求め、図18に示すようなテーブルとして記憶してお
く。
By the way, it is irrational to execute the above conversion formula (Y = ay + b) every time luminance is converted.
That is, the possible range of the luminance y is “0” to “25”.
Since it can be only 5 ", the converted luminance Y can be obtained in advance for all possible values of the luminance y. Accordingly, this correspondence is obtained in step S206 and stored as a table as shown in FIG.

【0122】このような変換テーブルが形成されたとこ
ろで画像データを変更することが可能になる。しかし、
このような輝度の範囲の拡大によってコントラストを強
調するだけでなく、合わせて明るさを調整することも極
めて有効である。例えば、図19にて実線で示すように
輝度分布の山が全体的に暗い側に寄っている場合には鎖
線で示すように全体的に明るい側に山を移動させると良
いし、逆に、図20にて実線で示すように輝度分布の山
が全体的に明るい側に寄っている場合には鎖線で示すよ
うに全体的に暗い側に山を移動させると良い。
The image data can be changed when such a conversion table is formed. But,
It is extremely effective not only to enhance the contrast by expanding the range of the luminance but also to adjust the brightness accordingly. For example, when the peaks of the luminance distribution are shifted to the dark side as a whole as shown by a solid line in FIG. 19, it is better to move the peaks to the lighter side as a whole as shown by a chain line. In the case where the peaks of the luminance distribution are generally shifted toward the bright side as shown by the solid line in FIG. 20, it is preferable to move the peaks to the dark side as a whole as indicated by the chain line.

【0123】各種の実験を行った結果、本実施形態にお
いては、輝度分布におけるメジアンymedを求め、同
メジアンymedが「85」未満である場合に暗い画像
と判断して以下のγ値に対応するγ補正で明るくする。
As a result of conducting various experiments, in this embodiment, the median ymed in the luminance distribution is obtained, and when the median ymed is less than “85”, the image is determined to be a dark image and corresponds to the following γ value. Brighten with gamma correction.

【0124】 γ=ymed/85 …(12) あるいは、 γ=(ymed/85)**(1/2) …(13) とする。Γ = ymed / 85 (12) Alternatively, γ = (ymed / 85) ** (1/2) (13)

【0125】この場合、γ<0.7となっても、γ=
0.7とする。このような限界を設けておかないと夜の
画像が昼間のようになってしまうからである。なお、明
るくしすぎると全体的に白っぽい画像になってコントラ
ストが弱い画像になりやすいため、彩度を合わせて強調
するなどの処理が好適である。
In this case, even if γ <0.7, γ =
0.7. Unless such a limit is set, a night image looks like daytime. If the image is made too bright, the image becomes whitish as a whole and the image tends to have a low contrast. Therefore, a process such as emphasizing with saturation is preferable.

【0126】一方、メジアンymedが「128」より
大きい場合に明るい画像と判断して以下のγ値に対応す
るγ補正で暗くする。
On the other hand, when the median ymed is larger than “128”, the image is determined to be a bright image, and is darkened by γ correction corresponding to the following γ value.

【0127】 γ=ymed/128 …(14) あるいは、 γ=(ymed/128)**(1/2) …(15) とする。この場合、γ>1.3となっても、γ=1.3
として暗くなり過ぎないように限界を設けておく。な
お、暗くしすぎると色が乗りすぎて濃い画像になるの
で、合わせて彩度強調を弱くするなどの処理が好適であ
る。ただし、明るい背景の中の被写体に対してはこのよ
うな暗くする処理はかえって悪影響を及ぼす場合もあ
る。例えば、空が画像の半分をしめるような風景画像や
晴れた日の記念写真などでは、ただでさえ逆光で顔が暗
くつぶれ気味であることが多いからである。これらの画
像の場合は暗い部分と明るい部分とが混じっているので
輝度の標準偏差ystdを求めると比較的高い値となっ
ていることが多い。従って、輝度の標準偏差ystd>
70の場合には暗くするためのγ補正を行わないように
する。
Γ = ymed / 128 (14) Alternatively, γ = (ymed / 128) ** (1/2) (15) In this case, even if γ> 1.3, γ = 1.3.
A limit is set so as not to be too dark. It should be noted that if the color is too dark, the color will be too high and the image will be dark, and accordingly, a process such as weakening the saturation emphasis is preferable. However, such a darkening process may adversely affect a subject in a bright background. For example, in a landscape image in which the sky occupies half of the image or a commemorative photo on a sunny day, the face is often backlit and the face tends to be dark and crushed. In the case of these images, a dark portion and a bright portion are mixed, so that the standard deviation ystd of the luminance is often a relatively high value. Therefore, the standard deviation of the luminance ystd>
In the case of 70, the gamma correction for darkening is not performed.

【0128】なお、このγ補正は変換前の輝度分布に対
して行っても良いし、変換後の輝度分布に対して行って
も良い。γ補正をした場合における対応関係を図21に
示しており、γ<1であれば上方に膨らむカーブとな
り、γ>1であれば下方に膨らむカーブとなる。むろ
ん、かかるγ補正の結果も図18に示すテーブル内に反
映させておけばよく、ステップS208にてテーブルデ
ータに対して同補正を行っておく。
Note that this γ correction may be performed on the luminance distribution before conversion or on the luminance distribution after conversion. FIG. 21 shows a correspondence relationship when γ correction is performed. If γ <1, the curve expands upward, and if γ> 1, the curve expands downward. Of course, the result of the γ correction may be reflected in the table shown in FIG. 18, and the correction is performed on the table data in step S208.

【0129】最後に、ステップS210にて画像データ
の変換を行う。ここまでは輝度を変換するための対応関
係を求めてきており、例えば、RGB座標軸における成
分値(Rp,Gp,Bp )についての変換関係ではなかっ
た。しかしながら、(2)式の変換式は、このRGBの
成分値(Rp,Gp,Bp )との対応関係においても当ては
めることができる。すなわち、変換前の成分値(r,
g,b)に対して変換後の成分値(R,G,B)は、 R=a・r+b …(16) G=a・g+b …(17) B=a・b+b …(18) として求めることもできる。これは(2)式と(4)式
とがともに線形の対応関係を示していることから明らか
である。また、輝度y,Yが階調「0」〜階調「25
5」であるのに対応してRGBの各成分値(r,g,
b),(R,G,B )も同じ範囲となっており、上述し
た輝度y,Yの変換テーブルをそのまま利用すればよい
といえる。
Lastly, the image data is converted in step S210. Up to this point, the correspondence relationship for converting the luminance has been obtained, and for example, the conversion relationship is not the component value (Rp, Gp, Bp) on the RGB coordinate axis. However, the conversion equation of equation (2) can also be applied in the correspondence relationship with the RGB component values (Rp, Gp, Bp). That is, the component values (r,
The component values (R, G, B) after the conversion for g, b) are obtained as follows: R = a · r + b (16) G = a · g + b (17) B = ab · b + b (18) You can also. This is apparent from the fact that both the equations (2) and (4) show a linear correspondence. Further, the luminances y and Y are from gradation “0” to gradation “25”.
5 ”, the RGB component values (r, g,
b) and (R, G, B) are also in the same range, and it can be said that the conversion table of the luminance y and Y described above may be used as it is.

【0130】従って、ステップS210では全画素の画
像データ(r,g,b)について(16)〜(18)式
に対応する変換テーブルを参照し、変換後の画像データ
(R,G,B )を得るという処理を繰り返すことにな
る。
Therefore, in step S210, the conversion table corresponding to the equations (16) to (18) is referred to for the image data (r, g, b) of all pixels, and the converted image data (R, G, B) is obtained. Is repeated.

【0131】次に、上記構成からなる本実施形態の動作
を順を追って説明する。
Next, the operation of the present embodiment having the above configuration will be described step by step.

【0132】スキャナ11などで写真を撮像したとする
と、同写真をRGBの階調データで表した画像データが
コンピュータ21に取り込まれ、CPUは図5及び図6
に示す画像処理のプログラムを実行して画像データのコ
ントラストを強調する処理を実行する。
Assuming that a photograph is taken by the scanner 11 or the like, image data representing the photograph in the form of RGB gradation data is taken into the computer 21, and the CPU operates as shown in FIGS.
Is executed to enhance the contrast of the image data.

【0133】まず、ステップS102では画像データを
所定の誤差内となる範囲で間引き、選択した画素につい
ての輝度yを求めて分布を取る。このままの分布を使用
することはできず、まず、画像が白黒のような二値画像
でないかステップS104にて判断するとともに、ステ
ップS108では自然画か否かを判断する。二値画像で
ある場合や自然画でない場合などを除き、ステップS1
10では画像データに枠部がないか判断し、枠部があれ
ば除いて得られた輝度分布について上端と下端の0.5
%の範囲を除去して分布の両端ymax ,ymin を取得す
る。
First, in step S102, the image data is thinned out within a predetermined error range, and the luminance y of the selected pixel is obtained to obtain a distribution. The distribution cannot be used as it is. First, it is determined in step S104 whether the image is a binary image such as black and white, and in step S108, it is determined whether the image is a natural image. Unless the image is a binary image or a non-natural image, step S1
In step 10, it is determined whether or not there is a frame in the image data.
The range of% is removed to obtain both ends ymax and ymin of the distribution.

【0134】輝度分布の両端ymax ,ymin が得られた
ら、 Y=ay+b …(2) a=245/(ymax−ymin) …(8) bについては、以下のいずれか b=5−a・yminあるいは250−a・ymax …(9) b=ymin{(255−a・ydif)/(255−ydif)−a} …(10) b=255−(255−ymax)(255−a・ydif)/(255−ydif)−a・ymax … (11) なる関係式より、ステップS204にてパラメータa,
bを求めるとともに、ステップS206では輝度yから
輝度Yへの変換関係をテーブルに記憶する。ステップS
208では必要に応じてγ補正を実行し、完成した変換
テーブルを参照してステップS210では全画素につい
ての画像データを変換する。
When both ends ymax and ymin of the luminance distribution are obtained, Y = ay + b (2) a = 245 / (ymax-ymin) (8) For b, one of the following: b = 5-a · ymin Or 250−a · ymax (9) b = ymin {(255−a · dif) / (255−ydif) −a} (10) b = 255− (255−ymax) (255−a · ydif) / (255−ydif) −a · ymax (11) From the relational expression, the parameters a,
In step S206, the conversion relationship from the luminance y to the luminance Y is stored in a table. Step S
In step 208, gamma correction is performed as necessary, and in step S210, image data for all pixels is converted with reference to the completed conversion table.

【0135】むろん、上述したように二値画像や自然画
でない場合においてはかかる画像処理は行われないが、
本発明の画像処理が行われた場合には、写真の状態では
非常にコントラストが弱かったにもかかわらず、輝度の
範囲を広げるように補正することにより、明暗がはっき
りして鮮明な画像を得られるようになる。
Of course, when the image is not a binary image or a natural image as described above, such image processing is not performed.
When the image processing of the present invention is performed, a bright and dark image is obtained by correcting the brightness so as to be widened even though the contrast is very low in the state of the photograph. Will be able to

【0136】なお、上述した実施形態においては、拡大
率の制限などを一定としているが、コンピュータ21上
では所定のGUIを介してユーザーが選択できるように
しても良い。また、ユーザーが画像データの一部を指定
して当該範囲内でのみかかるコントラストの強調処理を
実行するようにすることも可能である。
In the above-described embodiment, the limitation of the enlargement ratio and the like are fixed. However, the computer 21 may be configured so that the user can select it via a predetermined GUI. Further, it is also possible for the user to designate a part of the image data and execute the contrast enhancement processing only within the range.

【0137】このように、ステップS102で間引きす
るなどしながら画像データの画素について輝度yを求め
た後、上端と下端において所定の分布割合だけ内側に入
った端部を当該輝度分布の端部をみなすことにより(ス
テップS116)、輝度の再現可能な範囲内での拡大率
に対応するパラメータaと、オフセット量に対応するパ
ラメータbとを得ることができるようになるため、変換
元の輝度yに対して変換先輝度YをY=ay+bなる関
係式などを利用して自動的に変換可能となる。
As described above, after obtaining the luminance y for the pixels of the image data while thinning out in step S102, for example, the ends inside the upper end and the lower end by a predetermined distribution ratio are set to the ends of the luminance distribution. By taking this into account (step S116), it becomes possible to obtain a parameter a corresponding to the enlargement ratio and a parameter b corresponding to the offset amount within the reproducible range of the luminance. On the other hand, the conversion destination luminance Y can be automatically converted by using a relational expression such as Y = ay + b.

【0138】なお、ビデオカメラ14の入力画像につい
ては、演算速度が間に合わないこともあり得る。従っ
て、そのような場合には撮影のシーンごとに輝度の検出
を行って輝度の分布を検知し、そのシーンにおいては同
様の傾向であるものと想定して輝度の拡大テーブルを作
成しておくとともに、フレームごとに同拡大テーブルに
対応して輝度分布を拡大するようにすればよい。むろ
ん、十分な演算速度があれば各フレームごとに変換する
ようにしても良い。むろん、同様の変換は受像機の側で
行うことも可能である。
It should be noted that the calculation speed of the input image of the video camera 14 may not be enough. Therefore, in such a case, the luminance distribution is detected by detecting the luminance for each shooting scene, and a luminance expansion table is created by assuming that there is a similar tendency in the scene. The luminance distribution may be enlarged for each frame in accordance with the enlargement table. Of course, if there is a sufficient calculation speed, conversion may be performed for each frame. Of course, the same conversion can be performed on the receiver side.

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

【図1】本発明の一実施形態にかかる画像処理装置が適
用される画像処理システムのブロック図である。
FIG. 1 is a block diagram of an image processing system to which an image processing apparatus according to an embodiment of the present invention is applied.

【図2】同画像処理装置の具体的ハードウェア構成例を
示すブロック図である。
FIG. 2 is a block diagram illustrating a specific hardware configuration example of the image processing apparatus.

【図3】本発明の画像処理装置の他の適用例を示す概略
ブロック図である。
FIG. 3 is a schematic block diagram illustrating another application example of the image processing apparatus of the present invention.

【図4】本発明の画像処理装置の他の適用例を示す概略
ブロック図である。
FIG. 4 is a schematic block diagram illustrating another application example of the image processing apparatus of the present invention.

【図5】本発明の画像処理装置における輝度の分布抽出
処理部分を示すフローチャートである。
FIG. 5 is a flowchart showing a luminance distribution extraction processing portion in the image processing apparatus of the present invention.

【図6】本発明の画像処理装置における輝度変換処理部
分を示すフローチャートである。
FIG. 6 is a flowchart showing a luminance conversion processing part in the image processing apparatus of the present invention.

【図7】変換元の画像における座標を示す図である。FIG. 7 is a diagram illustrating coordinates in a conversion source image.

【図8】サンプリング周期を示す図である。FIG. 8 is a diagram showing a sampling cycle.

【図9】サンプリング画素数を示す図である。FIG. 9 is a diagram showing the number of sampling pixels.

【図10】変換元の画像とサンプリングされる画素の関
係を示す図である。
FIG. 10 is a diagram illustrating a relationship between a conversion source image and pixels to be sampled.

【図11】白黒の画像を示す図である。FIG. 11 is a diagram showing a black and white image.

【図12】白黒の画像の輝度分布を示す図である。FIG. 12 is a diagram illustrating a luminance distribution of a black-and-white image.

【図13】枠部のある画像を示す図である。FIG. 13 is a diagram showing an image having a frame portion.

【図14】枠部のある画像の輝度分布を示す図である。FIG. 14 is a diagram illustrating a luminance distribution of an image having a frame portion.

【図15】輝度分布の端部処理と端部処理にて得られる
端部を示す図である。
FIG. 15 is a diagram showing edge processing of a luminance distribution and an edge obtained by the edge processing.

【図16】輝度分布の拡大と再現可能な範囲を輝度の範
囲を示す図である。
FIG. 16 is a diagram showing a range of luminance in which a luminance distribution can be expanded and reproduced.

【図17】輝度分布の拡大率に制限を与える場合を示す
図である。
FIG. 17 is a diagram illustrating a case in which the enlargement ratio of the luminance distribution is limited.

【図18】輝度分布を拡大する際の変換テーブルを示す
図である。
FIG. 18 is a diagram showing a conversion table for expanding a luminance distribution.

【図19】γ補正で明るくする概念を示す図である。FIG. 19 is a diagram showing the concept of brightening by γ correction.

【図20】γ補正で暗くする概念を示す図である。FIG. 20 is a diagram showing the concept of darkening by γ correction.

【図21】γ補正で変更される輝度の対応関係を示す図
である。
FIG. 21 is a diagram illustrating a correspondence relationship of luminance changed by γ correction.

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

10…画像入力装置 11…スキャナ 11b…スキャナ 12…デジタルスチルカメラ 12a…デジタルスチルカメラ 12b…デジタルスチルカメラ 13b…モデム 20…画像処理装置 21…コンピュータ 22…ハードディスク 30…画像出力装置 31…プリンタ 31a…プリンタ 31b…プリンタ 32…ディスプレイ 32a…ディスプレイ DESCRIPTION OF SYMBOLS 10 ... Image input device 11 ... Scanner 11b ... Scanner 12 ... Digital still camera 12a ... Digital still camera 12b ... Digital still camera 13b ... Modem 20 ... Image processing device 21 ... Computer 22 ... Hard disk 30 ... Image output device 31 ... Printer 31a ... Printer 31b ... Printer 32 ... Display 32a ... Display

Claims (21)

【特許請求の範囲】[Claims] 【請求項1】 画像をドットマトリクス状の画素に分解
して各画素の情報を表す画像データに対して所定の画像
処理を行う画像処理装置であって、上記画像データにお
ける輝度分布を求めて再現可能な範囲に対応して当該分
布を拡大させるように画像データを変換することを特徴
とする画像処理装置。
An image processing apparatus for decomposing an image into pixels in a dot matrix form and performing predetermined image processing on image data representing information of each pixel, wherein the image processing apparatus obtains a luminance distribution in the image data and reproduces the luminance distribution. An image processing apparatus for converting image data so as to expand the distribution according to a possible range.
【請求項2】 上記請求項1に記載の画像処理装置にお
いて、 所定画像における画素単位での画像データの輝度分布を
検出する輝度分布検出手段と、 この検出された輝度分布に基づいて再現可能な範囲内で
の同輝度分布の拡大可能な程度を判別して画像データを
変換する画像データ変換手段を具備することを特徴とす
る画像処理装置。
2. The image processing apparatus according to claim 1, wherein: a luminance distribution detecting means for detecting a luminance distribution of image data in a pixel unit in the predetermined image; and a reproducible image based on the detected luminance distribution. An image processing apparatus comprising: an image data conversion unit that determines an expandable degree of the same luminance distribution within a range and converts image data.
【請求項3】 上記請求項2に記載の画像処理装置にお
いて、上記画像データ変換手段は、再現可能な輝度の範
囲をyrange としたときに、変換前の輝度yと輝度の分
布範囲の最大値ymaxと最小値yminから変換先の輝度Y
を次式に基づいて求めることを特徴とする画像処理装
置。 Y=ay+b ただし a=yrange/(ymax−ymin) b=−a・yminあるいはyrange−a・ymax また、上記変換式にてY<0ならばY=0とし、Y>ra
ngeならばY=yrangeとする。
3. The image processing apparatus according to claim 2, wherein the image data converting means sets the luminance y before the conversion and the maximum value of the luminance distribution range when the reproducible luminance range is yrange. The luminance Y of the conversion destination from ymax and the minimum value ymin
Is calculated based on the following equation: Y = ay + b where a = yrange / (ymax−ymin) b = −a · ymin or yrange−a · ymax In the above conversion formula, if Y <0, then Y = 0 and Y> ra
If nge, Y = yrange.
【請求項4】 上記請求項2または請求項3のいずれか
に記載の画像処理装置において、上記輝度分布拡大手段
は、変換元の輝度yの最大分布輝度を求めるとともに、
同最大分布輝度の所属範囲に基づくγ補正で変換先の輝
度Yを求めることを特徴とする画像処理装置。
4. The image processing apparatus according to claim 2, wherein the luminance distribution enlarging means obtains a maximum distribution luminance of the conversion source luminance y,
An image processing apparatus, wherein a luminance Y of a conversion destination is obtained by γ correction based on a belonging range of the maximum distribution luminance.
【請求項5】 上記請求項2〜請求項4のいずれかに記
載の画像処理装置において、変換元の輝度yの取りうる
範囲内で変換先の輝度yを演算して記憶しておき、変換
時には対応関係を呼び起こして変換することを特徴とす
る画像処理装置。
5. The image processing apparatus according to claim 2, wherein the conversion destination luminance y is calculated and stored within a range of the conversion source luminance y, and the conversion is performed. An image processing apparatus characterized by occasionally invoking and converting a correspondence.
【請求項6】 上記請求項1〜請求項5のいずれかに記
載の画像処理装置において、画像データが輝度に対応し
た複数の成分値で表される場合において、輝度の演算を
同成分値の線形加算で求めることを特徴とする画像処理
装置。
6. The image processing apparatus according to claim 1, wherein when the image data is represented by a plurality of component values corresponding to the luminance, the calculation of the luminance is performed by using the same component value. An image processing device characterized by being obtained by linear addition.
【請求項7】 上記請求項1〜請求項6のいずれかに記
載の画像処理装置において、画像データについて所定の
抽出率に対応した間引きを行って輝度分布を求めること
を特徴とする画像処理装置。
7. The image processing apparatus according to claim 1, wherein a luminance distribution is obtained by performing thinning-out corresponding to a predetermined extraction rate on the image data. .
【請求項8】 上記請求項7に記載の画像処理装置にお
いて、縦方向と横方向の範囲での短い側において所定の
抽出数が確保されるようにすることを特徴とする画像処
理装置。
8. The image processing apparatus according to claim 7, wherein a predetermined number of extractions is secured on a shorter side in the vertical and horizontal directions.
【請求項9】 上記請求項1〜請求項8のいずれかに記
載の画像処理装置において、輝度分布を求める際に実際
の端部から所定分布割合だけ内側部分を端部としてみな
すことを特徴とする画像処理装置。
9. The image processing apparatus according to any one of claims 1 to 8, wherein, when calculating a luminance distribution, an inner portion by a predetermined distribution ratio from an actual end is regarded as an end. Image processing device.
【請求項10】 上記請求項1〜請求項9のいずれかに
記載の画像処理装置において、拡大される輝度分布の範
囲を実際の再現可能な範囲の端部よりも所定量だけ内側
に設定することを特徴とする画像処理装置。
10. The image processing apparatus according to claim 1, wherein a range of the luminance distribution to be enlarged is set inside by a predetermined amount from an end of an actual reproducible range. An image processing apparatus characterized by the above-mentioned.
【請求項11】 上記請求項1〜請求項10のいずれか
に記載の画像処理装置において、輝度分布の拡大範囲に
制限を設定することを特徴とする画像処理装置。
11. The image processing apparatus according to claim 1, wherein a limit is set for an enlarged range of the luminance distribution.
【請求項12】 上記請求項11に記載の画像処理装置
において、再現可能な範囲内での変換前の輝度分布範囲
の対応位置と変換後の輝度分布範囲の対応位置とが保持
されることを特徴とする画像処理装置。
12. The image processing apparatus according to claim 11, wherein a corresponding position of a luminance distribution range before conversion and a corresponding position of a luminance distribution range after conversion within a reproducible range are held. Characteristic image processing device.
【請求項13】 上記請求項12に記載の画像処理装置
において、変換前に輝度分布範囲の上端と下端とに残存
していた拡大可能な範囲の割合が変換後にも保持される
ように輝度分布を拡大することを特徴とする画像処理装
置。
13. The image processing apparatus according to claim 12, wherein the ratio of the expandable range remaining at the upper end and the lower end of the luminance distribution range before the conversion is maintained even after the conversion. An image processing apparatus characterized by enlarging the image.
【請求項14】 上記請求項1〜請求項13のいずれか
に記載の画像処理装置において、輝度分布に基づいて二
値画像データを判定するとともに、二値画像データであ
れば輝度分布の拡大を行わないことを特徴とする画像処
理装置。
14. The image processing apparatus according to claim 1, wherein the binary image data is determined based on the luminance distribution, and if the binary image data is used, the luminance distribution is expanded. An image processing apparatus characterized in that the processing is not performed.
【請求項15】 上記請求項14に記載の画像処理装置
において、再現可能な範囲内の両端に輝度分布が集中し
ているときに白黒の二値画像データであると判断するこ
とを特徴とする画像処理装置。
15. The image processing apparatus according to claim 14, wherein when the luminance distribution is concentrated at both ends within a reproducible range, the image is determined to be monochrome binary image data. Image processing device.
【請求項16】 上記請求項1〜請求項13のいずれか
に記載の画像処理装置において、突出する輝度分布に基
づいて画像データの枠部を判定するとともに、枠部があ
れば枠部のデータについて輝度分布の拡大に利用しない
ことを特徴とする画像処理装置。
16. The image processing apparatus according to claim 1, wherein a frame portion of the image data is determined based on the projected luminance distribution, and if there is a frame portion, the data of the frame portion is determined. An image processing apparatus characterized in that the image processing apparatus is not used for expanding a luminance distribution.
【請求項17】 上記請求項16に記載の画像処理装置
において、再現可能な範囲内での端部に集中している輝
度分布が枠部であると判定することを特徴とする画像処
理装置。
17. The image processing apparatus according to claim 16, wherein a luminance distribution concentrated on an end portion within a reproducible range is determined to be a frame portion.
【請求項18】 上記請求項1〜請求項17のいずれか
に記載の画像処理装置において、画像データが自然画で
ない場合に輝度分布の拡大を行わないことを特徴とする
画像処理装置。
18. The image processing apparatus according to claim 1, wherein the luminance distribution is not expanded when the image data is not a natural image.
【請求項19】 上記請求項18に記載の画像処理装置
において、輝度分布がスペクトル状に存在する場合に上
記画像データが自然画でないと判定する自然画判定手段
を備えることを特徴とする画像処理装置。
19. The image processing apparatus according to claim 18, further comprising a natural image determining unit that determines that the image data is not a natural image when the luminance distribution exists in a spectrum. apparatus.
【請求項20】 画像をドットマトリクス状の画素に分
解して各画素の情報を表す画像データに対して所定の画
像処理を行う画像処理方法であって、各画素での輝度に
基づいて全体としての輝度分布を集計し、集計された輝
度分布が当該画像データの取りうる有効な輝度範囲に広
く分散していない場合に、上記輝度分布が同輝度範囲に
広く分散するように上記画像データにおける各画素の輝
度の情報を変換することを特徴とする画像処理方法。
20. An image processing method for performing predetermined image processing on image data representing information of each pixel by decomposing an image into pixels in a dot matrix form, and as a whole based on luminance at each pixel. Tabulated luminance distribution, and if the tabulated luminance distribution is not widely distributed over the effective luminance range that the image data can take, each of the image data is distributed so that the luminance distribution is widely distributed over the same luminance range. An image processing method characterized by converting information on luminance of a pixel.
【請求項21】 画像をドットマトリクス状の画素に分
解して各画素の情報を表す画像データをコンピュータに
て入力し、所定の画像処理を行う画像処理プログラムを
記録した媒体であって、 上記画像データを入力し、各画素での輝度に基づいて全
体としての輝度分布を集計するステップと、 集計された輝度分布が当該画像データの取りうる有効な
輝度範囲に広く分散していない場合に、上記輝度分布が
同輝度範囲に広く分散するように上記画像データにおけ
る各画素の輝度の情報を変換するステップとを具備する
ことを特徴とする画像処理プログラムを記録した媒体。
21. A medium storing an image processing program for decomposing an image into dot matrix pixels, inputting image data representing information of each pixel by a computer, and performing predetermined image processing. Inputting the data and summing the overall brightness distribution based on the brightness at each pixel; and, if the summed brightness distribution is not widely distributed over the effective brightness range that the image data can take, Converting the luminance information of each pixel in the image data so that the luminance distribution is widely dispersed in the same luminance range.
JP30743797A 1996-11-13 1997-11-10 Image processing apparatus, image processing method, and medium on which image processing program is recorded Expired - Lifetime JP4069333B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP30743797A JP4069333B2 (en) 1996-11-13 1997-11-10 Image processing apparatus, image processing method, and medium on which image processing program is recorded

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP8-302223 1996-11-13
JP30222396 1996-11-13
JP30743797A JP4069333B2 (en) 1996-11-13 1997-11-10 Image processing apparatus, image processing method, and medium on which image processing program is recorded

Related Child Applications (5)

Application Number Title Priority Date Filing Date
JP2002178181A Division JP3698205B2 (en) 1996-11-13 2002-06-19 Image processing apparatus, image processing method, and medium on which image processing program is recorded
JP2002178180A Division JP3596614B2 (en) 1996-11-13 2002-06-19 Image processing apparatus, image processing method, and medium recording image processing program
JP2002178178A Division JP3985147B2 (en) 1996-11-13 2002-06-19 Image processing apparatus, image processing method, and medium on which image processing program is recorded
JP2002178179A Division JP3682872B2 (en) 1996-11-13 2002-06-19 Image processing apparatus, image processing method, and medium on which image processing program is recorded
JP2007253853A Division JP4228243B2 (en) 1996-11-13 2007-09-28 Image processing apparatus, image processing method, and computer-readable recording medium recording program

Publications (2)

Publication Number Publication Date
JPH10198802A true JPH10198802A (en) 1998-07-31
JP4069333B2 JP4069333B2 (en) 2008-04-02

Family

ID=26563026

Family Applications (1)

Application Number Title Priority Date Filing Date
JP30743797A Expired - Lifetime JP4069333B2 (en) 1996-11-13 1997-11-10 Image processing apparatus, image processing method, and medium on which image processing program is recorded

Country Status (1)

Country Link
JP (1) JP4069333B2 (en)

Cited By (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002158894A (en) * 2000-11-16 2002-05-31 Sharp Corp Dynamic gamma correction device
WO2003010957A1 (en) * 2001-07-26 2003-02-06 Seiko Epson Corporation Image processing system, projector, information storage medium, and white/black expansion method
WO2005002205A1 (en) * 2003-06-25 2005-01-06 Nikon Corporation Image processing device and image correction program
WO2005039884A1 (en) * 2003-10-22 2005-05-06 Brother Kogyo Kabushiki Kaisha Image processing device, image processing method, recording medium, and program
WO2005081516A1 (en) * 2004-02-19 2005-09-01 Omron Co., Ltd. Image data conversion device and camera device
WO2006011687A3 (en) * 2004-07-30 2006-03-30 Casio Computer Co Ltd Image pickup device with brightness correcting function and method of correcting brightness of image
JP2006308632A (en) * 2005-04-26 2006-11-09 Seiko Epson Corp Device, method and program for image display, and recording medium with image display program recorded
JP2006331445A (en) * 2006-07-20 2006-12-07 Matsushita Electric Ind Co Ltd Image processing apparatus and image processing method
US7167597B2 (en) 2001-11-29 2007-01-23 Ricoh Company, Ltd. Image processing apparatus, image processing method, computer program and storage medium
KR100743758B1 (en) 2005-09-05 2007-07-30 엘지전자 주식회사 Apparatus and Method for controlling dynamic contrast ratio using peak level
WO2007142134A1 (en) 2006-06-02 2007-12-13 Rohm Co., Ltd. Image processing circuit, semiconductor device, and image processing device
JP2008011286A (en) * 2006-06-30 2008-01-17 Brother Ind Ltd Image processing program and image processor
JP2009118297A (en) * 2007-11-08 2009-05-28 Dainippon Printing Co Ltd Quantization method and quantization device for specimen value
JP2009124578A (en) * 2007-11-16 2009-06-04 Casio Hitachi Mobile Communications Co Ltd Video signal processing apparatus, contrast control method and program
JP2009182599A (en) * 2008-01-30 2009-08-13 Ricoh Co Ltd Image processor, image processing method, image processing program, and imaging device
JP2010515319A (en) * 2006-12-27 2010-05-06 コンチネンタル オートモーティヴ ゲゼルシャフト ミット ベシュレンクテル ハフツング Lighting adjustment for HDR cameras
US7746392B2 (en) 2004-06-09 2010-06-29 Seiko Epson Corporation Image data processing technique for images taken by imaging unit
US7932930B2 (en) 2003-05-16 2011-04-26 Seiko Epson Corporation Brightness correction for image
JP2013055712A (en) * 2005-12-21 2013-03-21 Nec Corp Gradation correction method, gradation correction device, gradation correction program and image apparatus
JP2018014635A (en) * 2016-07-21 2018-01-25 三菱電機ビルテクノサービス株式会社 Image processing apparatus and program

Cited By (29)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002158894A (en) * 2000-11-16 2002-05-31 Sharp Corp Dynamic gamma correction device
WO2003010957A1 (en) * 2001-07-26 2003-02-06 Seiko Epson Corporation Image processing system, projector, information storage medium, and white/black expansion method
US7095451B2 (en) 2001-07-26 2006-08-22 Seiko Epson Corporation Image processing system, projector, information storage medium and black and white extension processing method
US7315657B2 (en) 2001-11-29 2008-01-01 Ricoh Company, Ltd. Image processing apparatus, image processing method, computer program and storage medium
US7167597B2 (en) 2001-11-29 2007-01-23 Ricoh Company, Ltd. Image processing apparatus, image processing method, computer program and storage medium
US7932930B2 (en) 2003-05-16 2011-04-26 Seiko Epson Corporation Brightness correction for image
WO2005002205A1 (en) * 2003-06-25 2005-01-06 Nikon Corporation Image processing device and image correction program
WO2005039884A1 (en) * 2003-10-22 2005-05-06 Brother Kogyo Kabushiki Kaisha Image processing device, image processing method, recording medium, and program
WO2005081516A1 (en) * 2004-02-19 2005-09-01 Omron Co., Ltd. Image data conversion device and camera device
US7746392B2 (en) 2004-06-09 2010-06-29 Seiko Epson Corporation Image data processing technique for images taken by imaging unit
KR100809181B1 (en) 2004-07-30 2008-03-03 가시오게산키 가부시키가이샤 Image pickup device with brightness correcting function and method of correcting brightness of image
WO2006011687A3 (en) * 2004-07-30 2006-03-30 Casio Computer Co Ltd Image pickup device with brightness correcting function and method of correcting brightness of image
US7486836B2 (en) 2004-07-30 2009-02-03 Casio Computer Co., Ltd. Image pickup device with brightness correcting function and method of correcting brightness of image
JP2006308632A (en) * 2005-04-26 2006-11-09 Seiko Epson Corp Device, method and program for image display, and recording medium with image display program recorded
KR100743758B1 (en) 2005-09-05 2007-07-30 엘지전자 주식회사 Apparatus and Method for controlling dynamic contrast ratio using peak level
JP2013055712A (en) * 2005-12-21 2013-03-21 Nec Corp Gradation correction method, gradation correction device, gradation correction program and image apparatus
JPWO2007142134A1 (en) * 2006-06-02 2009-10-22 ローム株式会社 Image processing circuit, semiconductor device, and image processing device
WO2007142134A1 (en) 2006-06-02 2007-12-13 Rohm Co., Ltd. Image processing circuit, semiconductor device, and image processing device
US8159558B2 (en) 2006-06-02 2012-04-17 Rohm Co., Ltd. Image processing circuit, semiconductor device and image processing device
JP4997237B2 (en) * 2006-06-02 2012-08-08 ローム株式会社 Image processing circuit, semiconductor device, and image processing device
US8180172B2 (en) 2006-06-30 2012-05-15 Brother Kogyo Kabushiki Kaisha Image processing method
JP2008011286A (en) * 2006-06-30 2008-01-17 Brother Ind Ltd Image processing program and image processor
JP2006331445A (en) * 2006-07-20 2006-12-07 Matsushita Electric Ind Co Ltd Image processing apparatus and image processing method
JP2010515319A (en) * 2006-12-27 2010-05-06 コンチネンタル オートモーティヴ ゲゼルシャフト ミット ベシュレンクテル ハフツング Lighting adjustment for HDR cameras
JP4922409B2 (en) * 2006-12-27 2012-04-25 コンチネンタル オートモーティヴ ゲゼルシャフト ミット ベシュレンクテル ハフツング Lighting adjustment for HDR cameras
JP2009118297A (en) * 2007-11-08 2009-05-28 Dainippon Printing Co Ltd Quantization method and quantization device for specimen value
JP2009124578A (en) * 2007-11-16 2009-06-04 Casio Hitachi Mobile Communications Co Ltd Video signal processing apparatus, contrast control method and program
JP2009182599A (en) * 2008-01-30 2009-08-13 Ricoh Co Ltd Image processor, image processing method, image processing program, and imaging device
JP2018014635A (en) * 2016-07-21 2018-01-25 三菱電機ビルテクノサービス株式会社 Image processing apparatus and program

Also Published As

Publication number Publication date
JP4069333B2 (en) 2008-04-02

Similar Documents

Publication Publication Date Title
JPH10198802A (en) Image processor, image processing method, and medium recording image processing program
JPH10208034A (en) Processor and method for image processing
JP4993028B2 (en) Image processing apparatus, image processing method, and medium on which image processing program is recorded
JPH118768A (en) Image processor, image processing method and medium recording image processing control program
JPH11120325A (en) Image evaluating method, medium where image evaluating program is recorded, and image evaluating device
JPH10271524A (en) Image processor, image processing method, and medium recorded with image processing program
JP3972192B2 (en) Image processing apparatus and image processing method
JP3698205B2 (en) Image processing apparatus, image processing method, and medium on which image processing program is recorded
JP3596614B2 (en) Image processing apparatus, image processing method, and medium recording image processing program
JP2003051947A5 (en)
JP4123387B2 (en) Image processing apparatus, image processing method, and medium on which image processing program is recorded
JP3682872B2 (en) Image processing apparatus, image processing method, and medium on which image processing program is recorded
JP3985147B2 (en) Image processing apparatus, image processing method, and medium on which image processing program is recorded
JP4182365B2 (en) Image processing apparatus, image processing method, and medium on which image processing program is recorded
JP4123385B2 (en) Image processing apparatus, image processing method, and medium on which image processing program is recorded
JP4228243B2 (en) Image processing apparatus, image processing method, and computer-readable recording medium recording program
JP3573143B2 (en) Image processing apparatus, image processing method, medium recording image processing control program
JP3664394B2 (en) Image processing apparatus, image processing method, and medium on which image processing program is recorded
JP2003125213A5 (en)
JP2003085552A5 (en)
JPH11136514A (en) Picture processor, picture processing method and medium recording picture processing control program
JP2003092687A5 (en)
JP2003091723A (en) Image processor, image processing method and medium with image processing control program recorded thereon
JP2003051002A (en) Device and method for processing image and medium recording image processing control program
JP2003050997A (en) Device and method for image processing, and medium with recorded image processing program

Legal Events

Date Code Title Description
A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20041108

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20041108

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20070801

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20070928

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20071219

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20080101

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20110125

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20110125

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20120125

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20120125

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20130125

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20130125

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20140125

Year of fee payment: 6

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

EXPY Cancellation because of completion of term