JP4692683B2 - Image processing apparatus, image processing method, and medium on which image processing program is recorded - Google Patents

Image processing apparatus, image processing method, and medium on which image processing program is recorded Download PDF

Info

Publication number
JP4692683B2
JP4692683B2 JP2010028947A JP2010028947A JP4692683B2 JP 4692683 B2 JP4692683 B2 JP 4692683B2 JP 2010028947 A JP2010028947 A JP 2010028947A JP 2010028947 A JP2010028947 A JP 2010028947A JP 4692683 B2 JP4692683 B2 JP 4692683B2
Authority
JP
Japan
Prior art keywords
luminance
image
distribution
image processing
conversion
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2010028947A
Other languages
Japanese (ja)
Other versions
JP2010124493A (en
Inventor
直樹 鍬田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Seiko Epson Corp
Original Assignee
Seiko Epson Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP2010028947A priority Critical patent/JP4692683B2/en
Publication of JP2010124493A publication Critical patent/JP2010124493A/en
Application granted granted Critical
Publication of JP4692683B2 publication Critical patent/JP4692683B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Description

本発明は、画像処理装置、画像処理方法および画像処理プログラムを記録した媒体に関し、特に、画像データのコントラストを処理する画像処理装置、画像処理方法および画像処理プログラムを記録した媒体に関する。   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, an image processing method, and a medium on which an image processing program is recorded.

従来、この種の画像処理装置として、例えば特許文献1に開示されたものが知られている。   Conventionally, as this type of image processing apparatus, for example, an apparatus disclosed in Patent Document 1 is known.

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

y'=ay+b …(1)   y ′ = ay + b (1)

特公平7−66318号公報Japanese Examined Patent Publication No. 7-66318

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

また、コントラストの強弱はテレビジョンなどでも操作可能なものでありながら、各画像において最適な強調を実行するといった自動化ができなかった。   Further, although the contrast strength can be operated on a television or the like, it has not been possible to automate the execution of optimum enhancement on each image.

本発明は、上記課題にかんがみてなされたもので、コントラストの自動調整が可能な画像処理装置、画像処理方法および画像処理プログラムを記録した媒体の提供を目的とする。   SUMMARY An advantage of some aspects of the invention is that it provides an image processing apparatus capable of automatically adjusting contrast, an image processing method, and a medium on which an image processing program is recorded.

上記目的を達成するため、複数の画素からなる画像の画像データに対して所定の画像処理を行う画像処理装置であって、上記画像データに基づいて画像の全体的な特徴を示す輝度分布を一つ求めて当該輝度分布が当該画像データの取りうる有効な輝度範囲に広く分散するように上記画像データを変換するにあたり、上記輝度分布から最大分布輝度を求めるとともに、上記有効な輝度範囲内での同最大分布輝度の所属範囲に応じて上記画像データにおける各画素単位での明るさを補正する構成としてもよい。 To achieve the above object, an image processing apparatus for performing predetermined image processing on image data of an image consisting of multiple pixels, the luminance distribution that shows the overall characteristics of the image based on the image data When the image data is converted so that the luminance distribution is widely dispersed in the effective luminance range that can be taken by the image data, the maximum distribution luminance is obtained from the luminance distribution, and within the effective luminance range. The brightness of each pixel unit in the image data may be corrected according to the belonging range of the same maximum distribution luminance .

上記構成においては、画像データが画像をドットマトリクス状の画素に分解して各画素の情報を表している場合に、同画像データにおける輝度分布を求めることにより、画像データにおけるコントラストの幅というようなものをある程度数値化でき、数値化できた上で再現可能な範囲に対応して当該分布を拡大させる。また、コントラストを広げただけでは全体に明るかったり暗かったりするというような場合に対応できないこともあるので、画像データが全体的に明るいか否かを判定する。その手法として、変換元の輝度yの最大分布輝度を利用し、この最大分布輝度が明るい側にあればγ補正で全体的に暗めにし、最大分布輝度が暗い側にあればγ補正で全体的に明るめにするといったことでコントラストの強調だけでは得られない全体の明るさの自動補正が行われる。ここにおいて、変換元の輝度yの最大分布輝度はメジアンで求めても良いし、平均値で求めても良い。 In the above configuration , when the image data represents the information of each pixel by decomposing the image into dot matrix pixels, the brightness distribution in the image data is obtained to obtain the contrast width in the image data. Things can be quantified to some extent, and the distribution can be expanded corresponding to the reproducible range after quantification. Further, since it may not be possible to deal with cases where the entire image is bright or dark just by increasing the contrast, it is determined whether or not the image data is generally bright. As the method, the maximum distribution luminance of the conversion source luminance y is used, and if this maximum distribution luminance is on the bright side, the entire image is darkened by γ correction. By making it brighter, the entire brightness is automatically corrected, which cannot be obtained only by contrast enhancement. Here, the maximum distribution luminance of the luminance y of the conversion source may be obtained by median or may be obtained by an average value.

むろん数値化といっても必ずしも具体的な数値が必要なわけではなく、その処理過程において数値として扱っても良いし、信号の大きさとして扱うようなことも可能である。これをさらに具体的に表した一例として、複数の画素からなる画像の画像データに対して所定の画像処理を行う画像処理装置であって、上記画像データにおける画素単位での輝度分布を検出する輝度分布検出手段と、この検出された輝度分布が当該画像データの取りうる有効な輝度範囲に広く分散するように上記画像データを変換するにあたり、上記輝度分布から最大分布輝度を求めるとともに、上記有効な輝度範囲内での同最大分布輝度の所属範囲に応じてγ値を求め、当該γ値に基づいて上記画像データにおける各画素単位での輝度の情報をγ補正する画像データ変換手段を具備する構成としてもよい。   Needless to say, the numerical value is not necessarily a specific numerical value, and may be handled as a numerical value in the process, or may be handled as a signal magnitude. As an example that more specifically represents this, an image processing apparatus that performs predetermined image processing on image data of an image composed of a plurality of pixels, and that detects a luminance distribution in pixel units in the image data. In converting the image data so that the detected luminance distribution is widely dispersed in an effective luminance range that can be taken by the image data, a maximum distribution luminance is obtained from the luminance distribution and the effective luminance is calculated. A configuration comprising image data conversion means for obtaining a γ value according to the belonging range of the same maximum distribution luminance within the luminance range, and γ-correcting luminance information for each pixel in the image data based on the γ value It is good.

所定画像の画像データを扱う上でその輝度分布を求めるため、輝度分布検出手段は、上記画像データにおける画素単位での輝度分布を検出する。そして、画像データ変換手段は、この検出された輝度分布が当該画像データの取りうる有効な輝度範囲に広く分散するように上記画像データを変換するにあたり、上記輝度分布から最大分布輝度を求めるとともに、上記有効な輝度範囲内での同最大分布輝度の所属範囲に応じてγ値を求め、当該γ値に基づいて上記画像データにおける各画素単位での輝度の情報をγ補正する。   In order to obtain the luminance distribution in handling the image data of the predetermined image, the luminance distribution detecting means detects the luminance distribution in pixel units in the image data. Then, the image data conversion means obtains the maximum distribution luminance from the luminance distribution when converting the image data so that the detected luminance distribution is widely dispersed in an effective luminance range that the image data can take, A γ value is obtained in accordance with the belonging range of the maximum distribution luminance within the effective luminance range, and luminance information for each pixel in the image data is γ-corrected based on the γ value.

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

輝度分布を拡大する手法はいくつか可能であり、画像データの輝度分布が可能な範囲内で拡大されるようにすればよい。その要点を説明すれば、検出された輝度分布の統計的な幅と再現可能な輝度範囲の幅とを比較して拡大可能な程度を拡大率として求めるとともに、拡大された輝度分布の上端と下端がこの輝度範囲内に収まるようにするための調整値を求め、各画素の輝度を個別に修正するということである。この具体的な一例として、画像処理装置において、再現可能な輝度の範囲をyrange としたときに、変換前の輝度yと輝度の分布範囲の最大値ymax と最小値ymin から変換先の輝度Yを次式に基づいて求める構成としてもよい。 There are several methods for enlarging the luminance distribution, and the luminance distribution of the image data may be enlarged within a possible range. To explain the main point, the statistical width of the detected luminance distribution is compared with the width of the reproducible luminance range to obtain the degree of enlargement as the enlargement ratio, and the upper and lower ends of the enlarged luminance distribution. Is to obtain an adjustment value so as to be within the luminance range, and to individually correct the luminance of each pixel. As a specific example, the images processing apparatus, when the yrange the range of reproducible brightness, the brightness of the destination from the maximum value ymax and the minimum value ymin in the distribution range of the pre-conversion luminance y and luminance Y It is good also as a structure which calculates | requires based on following Formula .

Y=ay+b …(2)
ただし
a=yrange/(ymax−ymin) …(3)
b=−a・yminあるいはyrange−a・ymax …(4)
また、上記変換式にてY<0ならばY=0とし、Y>yrangeならばY=yrangeとする。
Y = ay + b (2)
However, a = yrange / (ymax−ymin) (3)
b = −a · ymin or yrange−a · ymax (4)
In the above conversion equation, if Y <0, Y = 0, and if Y> yrange, Y = yrange.

この変換はいわゆる線形の拡大であり、変換式自体は従来のものと同様であるものの、そのパラメータが画像データ変換手段によって選定されることに意義がある。bの選択に関わらず、y=yminの場合にY=0となり、y=ymaxの場合にY=yrangeとなる。そして、再現可能な輝度の範囲であるyrangeの範囲内で輝度分布が一様に広がることになる。   This conversion is so-called linear expansion, and although the conversion formula itself is the same as the conventional one, it is significant that the parameters are selected by the image data conversion means. Regardless of the selection of b, Y = 0 when y = ymin, and Y = yrange when y = ymax. Then, the luminance distribution is uniformly spread within a range of yrange which is a reproducible luminance range.

なお、この例においては、いわゆる狭義の線形変換であり、むろんこれに限られる必要はなく、広義の非線形変換を実施することも可能である。   In this example, it is a so-called narrow-sense linear transformation, and of course, it is not necessary to be limited to this, and a broad-sense nonlinear transformation can also be implemented.

また、当該変換式は一例に過ぎず同意義の変換式であっても適用可能であることはいうまでもない。   Further, it goes without saying that the conversion formula is merely an example and can be applied even if the conversion formula has the same meaning.

各種の手法で輝度を変換するにあたり、画像処理装置において、変換元の輝度yの取りうる範囲内で変換先の輝度Yを演算して記憶しておき、変換時には対応関係を呼び起こして変換する構成としてもよい。 Upon converting the luminance in various methods, in images processing device calculates the destination luminance Y in the range that can be taken of the conversion source luminance y and stores, converts evokes the relationship at the time of conversion It is good also as a structure .

変換式に基づいて輝度を毎回計算することも不可能ではないが、輝度分布のとりうる値の範囲は決まっている。このため、あらかじめ変換元の輝度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 conversion destination luminance Y is calculated and stored in advance based on the conversion source luminance y, it is possible to perform conversion only by invoking the correspondence at the time of conversion.

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

その意味では厳格な正確さが要求されるわけではないので、画像処理装置において、画像データが輝度に対応した複数の成分値で表される場合において、輝度の演算を同成分値の線形加算で求める構成としてもよい。 Since not strict accuracy is required in that sense, the images processing apparatus, when the image data is represented by a plurality of component values corresponding to brightness, linear addition of the component values of the calculation of the brightness It is good also as a structure calculated | required by .

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

各画素についての輝度が求められるものとして、画像としての輝度分布は必ずしも画像データの全画素について求める必要がなく、例えば、画像データについて所定の抽出率に対応した間引きを行って輝度分布を求める構成としてもよい。   The luminance distribution as an image does not necessarily have to be obtained for all the pixels of the image data as the luminance for each pixel is obtained. For example, the luminance distribution is obtained by thinning out the image data corresponding to a predetermined extraction rate. It is good.

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

ここにおいて、間引く手法も様々であるものの、縦方向と横方向の範囲での短い側において所定の抽出数が確保されるようにする構成としてもよい。   Here, although there are various thinning methods, a predetermined number of extractions may be secured on the short side in the vertical and horizontal ranges.

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

さらに、輝度分布を求める際に実際の端部から所定分布割合だけ内側部分を端部としてみなす構成としてもよい。   Furthermore, when obtaining the luminance distribution, a configuration may be adopted in which the inner portion is regarded as the end portion by a predetermined distribution ratio from the actual end portion.

画像データの輝度分布を統計的に考慮すれば、極めて少ないながらも再現可能な輝度の範囲での両端部位まで分布すると考えるのが妥当である。従って、現実の輝度分布の両端は常に再現可能な輝度の範囲での両端にあることになる。この両端を採用したとすれば拡大率は実質的に「1」となってしまうので、本来の効果を果たし得ない。   Considering the luminance distribution of the image data statistically, it is reasonable to consider that the distribution is up to both end portions within 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 both ends are employed, the enlargement ratio is substantially “1”, and thus the original effect cannot be achieved.

しかしながら、両端における所定分布割合を除いて考えれば極めて分布の少ない裾野の部分を統計的に見て適度に無視することになる。このため、この範囲をもって拡大の程度を判断する基準とする。   However, if the predetermined distribution ratios at both ends are excluded, the bottom portion having a very small distribution is statistically ignored and appropriately ignored. For this reason, this range is used as a reference for determining the degree of enlargement.

所定分布割合は、極めて分布の少ない裾野の部分を無視することができるものであればよく、総画素数の一定割合の画素数というものであっても良いし、一定数以下の分布となったときに端部と見なすようなものでも構わない。   The predetermined distribution ratio only needs to be capable of ignoring the bottom part with extremely small distribution, and may be a certain number of pixels of the total number of pixels, or the distribution is less than a certain number. Sometimes it can be considered as an end.

像処理装置において、拡大される輝度分布の範囲を実際の再現可能な範囲の端部よりも所定量だけ内側に設定する構成としてもよい。 In images processing device may be configured to set inwardly by a predetermined amount than the end of the actual reproducible range range of luminance distribution is expanded.

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

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

像処理装置において、輝度分布の拡大範囲に制限を設定する構成としてもよい。 In images processing device may be configured to set a limit on the expansion range of the luminance distribution.

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

像処理装置において、再現可能な範囲内での変換前の輝度分布範囲の対応位置と変換後の輝度分布範囲の対応位置とが保持される構成としてもよい。 In images processing device may be configured to the corresponding position of the luminance distribution range after conversion to the corresponding position of the luminance distribution range before transformation in a reproducible range is maintained.

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

かかる意味での画像の輝度分布の中心については各種の捉え方が可能であり、その一例として、画像処理装置において、変換前に輝度分布範囲の上端と下端とに残存していた拡大可能な範囲の割合が変換後にも保持されるように輝度分布を拡大する構成としてもよい。 Such means for the center of luminance distribution of the image in are possible how to catch various include, by way of example, the images processing apparatus, capable expansion remaining in the upper and lower ends of the luminance distribution range before transformation A configuration may be adopted in which the luminance distribution is expanded so that the ratio of the range is retained after the conversion .

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

像処理装置において、輝度分布に基づいて二値画像データを判定するとともに、二値画像データであれば輝度分布の拡大を行わない構成としてもよい。 In images processing device, along with determining the binary image data based on the luminance distribution may be configured not to perform the expansion of the luminance distribution when the binary image data.

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

二値画像データはある色を持ったものでもあり得るため、その色の有りと無しに対応する二つの輝度となりうる。その色の輝度か否かを判定することも可能であるが、それを示唆する情報がない場合においては、画像処理装置において、再現可能な範囲内の両端に輝度分布が集中しているときに白黒の二値画像データであると判断する構成としてもよい。 Since the binary image data can also have a certain color, it can have two luminance levels corresponding to the presence or absence of the color. Although it is possible to determine the color intensity of, in case where there is no information suggesting that, in images processing device, when the luminance distribution across in a reproducible range is concentrated Alternatively, it may be determined that the binary image data is black and white .

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

さらに、突出する輝度分布に基づいて画像データの枠部を判定するとともに、枠部があれば枠部のデータについて輝度分布の拡大に利用しない構成としてもよい。   Further, the frame portion of the image data may be determined based on the protruding luminance distribution, and if there is a frame portion, the frame data may not be used for expanding the luminance distribution.

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

さらに、その一例として、再現可能な範囲内での端部に集中している輝度分布が枠部であると判定する構成としてもよい。   Furthermore, as an example, a configuration may be adopted in which the luminance distribution concentrated at the end within the reproducible range is determined to be the frame portion.

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

像処理装置において、画像データが自然画でない場合に輝度分布の拡大を行わないように構成してもよい。 In images processing device, the image data may be configured so as not to expand the luminance distribution when not a natural picture.

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

自然画か否かの判断の一例として、画像処理装置において、輝度分布が線スペクトル状に存在する場合に上記画像データが自然画でないと判定する自然画判定手段を備えた構成としてもよい。 An example of a natural image determining whether or not, in the images processing device may be configured to the image data with a natural image determining means for determining a non-natural image when the luminance distribution is present in the line spectrum shape.

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

画像処理装置であって、輝度値の階調が0である画素と255である画素とを有する画像を取得する手段と、前記取得された画像内の輝度値を変換する変換手段と、前記輝度値の変換された画像を出力する出力手段とを備え、前記変換手段は、前記出力手段により出力される変換後の画像の輝度値の階調が0である画素と255である画素とを有さないように前記画像の輝度値を変換する構成としてもよい。
また、画像処理装置であって、輝度値の階調が取り得る範囲の最小値である画素と最大値である画素とを有する画像を取得する手段と、前記取得された画像内の輝度値を変換する変換手段と、前記輝度値の変換された画像を出力する出力手段とを備え、前記変換手段は、前記出力手段により出力される変換後の画像の輝度値の階調が前記最小値である画素と前記最大値である画素とを有さないように前記画像の輝度値を変換する構成としてもよい。
上述したようにして、画像データにおける輝度分布を求めて再現可能な範囲に対応して当該分布を拡大させるように画像データを変換する手法は、実体のある装置に限定される必要はなく、その方法としても機能することは容易に理解できる。
ここで、本発明は、画像処理装置であって、画像の輝度値を変換する手段を備え、前記変換は、前記画像における枠部を除く画像の輝度値に基づいて行われる、構成としてある。具体的には、前記手段は、前記画像の輝度分布の途中で線状に突出する部分を枠部とし 、当該枠部の両隣の輝度値の画素数の平均を当該枠部が対応する輝度値の画素数とした輝 度分布に基づいて前記変換を行なう。
また本発明は、画像処理方法であって、画像の輝度値を変換する工程を有し、前記変換は、前記画像における枠部を除く画像の輝度値に基づいて行われる、構成としてある。
また本発明は、コンピューターに画像処理を実行させる画像処理プログラムを記録した記録媒体であって、画像の輝度値を変換する機能を前記コンピューターに実行させ、前記変換は、前記画像における枠部を除く画像の輝度値に基づいて行われる、構成としてある。
また本発明は、前記枠部は、前記画像の輝度分布において、輝度値が取り得る範囲の両端あるいは当該範囲の途中で線スペクトル状に表れるものである、としてある。
An image processing apparatus, means for acquiring an image having a pixel whose luminance value has a gradation of 0 and a pixel whose luminance is 255, a conversion unit that converts a luminance value in the acquired image, and the luminance Output means for outputting an image whose value has been converted, the conversion means having a pixel whose gradation value of the luminance value of the image after conversion outputted by the output means is 0 and a pixel whose value is 255. It is good also as a structure which converts the luminance value of the said image so that it may not.
An image processing apparatus for obtaining an image having a pixel that is a minimum value and a pixel that is a maximum value in a range in which a gradation of luminance values can be obtained; and a luminance value in the acquired image Conversion means for converting, and output means for outputting the image having the luminance value converted, wherein the conversion means has a gradation of the luminance value of the converted image output by the output means at the minimum value. It is good also as a structure which converts the luminance value of the said image so that it may not have a pixel and the pixel which is the said maximum value.
As described above, the method for converting the image data so as to expand the distribution corresponding to the reproducible range by obtaining the luminance distribution in the image data is not necessarily limited to a substantial device, It can be easily understood that it also functions as a method.
Here, the present invention is an image processing apparatus including a means for converting the luminance value of an image, and the conversion is performed based on the luminance value of the image excluding the frame portion in the image. Specifically, the means uses a portion protruding linearly in the middle of the luminance distribution of the image as a frame portion, and a luminance value corresponding to the average of the number of pixels of luminance values on both sides of the frame portion corresponds to the frame portion. performing the conversion based number of pixels and the the bright distribution.
The present invention is also an image processing method including a step of converting a luminance value of an image, and the conversion is performed based on a luminance value of an image excluding a frame portion in the image.
The present invention is also a recording medium on which an image processing program for causing a computer to execute image processing is recorded, wherein the computer executes a function of converting a luminance value of an image, and the conversion excludes a frame portion in the image. The configuration is performed based on the luminance value of the image.
According to the present invention, the frame portion appears as a line spectrum in the luminance distribution of the image at both ends of a range where luminance values can be taken or in the middle of the range.

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

ところで、このような画像処理装置は単独で存在する場合もあるし、ある機器に組み込まれた状態で利用されることもあるなど、発明の思想としてはこれに限らず、各種の態様を含むものである。従って、ソフトウェアであったりハードウェアであったりするなど、適宜、変更可能である。   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. The idea of the invention is not limited to this, and includes various aspects. . Therefore, it can be changed as appropriate, such as software or hardware.

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

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

発明の思想の具現化例として画像処理装置のソフトウェアとなる場合には、かかるソフトウェアを記録した記録媒体上においても当然に存在し、利用される When the software of the image processing apparatus is embodied as an embodiment of the idea of the invention, it naturally exists and is used on a recording medium on which such software is recorded .

むろん、その記録媒体は、磁気記録媒体であってもよいし光磁気記録媒体であってもよいし、今後開発されるいかなるソフトウェア記録媒体においても全く同様に考えることができる。また、一次複製品、二次複製品などの複製段階については全く問う余地無く同等である。その他、供給方法として通信回線を利用して行う場合でも本発明が利用されていることには変わりないし、半導体チップに書き込まれたようなものであっても同様である。   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. In addition, the duplication stages such as the primary duplication product and the secondary duplication product are equivalent without any question. In addition, even when the communication method is used as a supply method, the present invention is not changed, and the same applies to the case where data is written on a semiconductor chip.

さらに、一部がソフトウェアであって、一部がハードウェアで実現されている場合においても発明の思想において全く異なるものはなく、一部を記録媒体上に記憶しておいて必要に応じて適宜読み込まれるような形態のものとしてあってもよい。さらには、カラーファクシミリ機、カラーコピー機、カラースキャナやディジタルカメラ、ディジタルビデオなどに内蔵する画像処理装置においても適用可能であることはいうまでもない。   Further, even when a part is software and a part is realized by hardware, there is nothing completely different in the idea of the invention, and a part is stored on a recording medium, and it is appropriately changed as necessary. It may be in the form of being read. Furthermore, it goes without saying that the present invention can also 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.

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

また、コントラストの強調だけでは直せない明るさの程度をも調整することができる。 Further, it is also possible to adjust the degree of brightness is not able to fix only enhancement of the contrast.

また、所定の範囲の階調内で有効に輝度分布を拡大することができる。 Further, it is possible to enlarge the effective luminance distribution in the gradation of Jo Tokoro range.

さらに、変換を容易にすることができる。 Furthermore, it is possible to facilitate the conversion.

さらに、必要十分な程度の正確さで輝度を容易に求めることができるようになる。 Furthermore, it is possible to determine easily the luminance required sufficient degree of accuracy.

さらに、処理量を減らすことができる。   Furthermore, the amount of processing can be reduced.

さらに、画像の抽出点の偏りを無くして輝度分布が正確になりやすくなる。   Furthermore, the bias of the image extraction point is eliminated, and the luminance distribution is likely to be accurate.

さらに、より判断に有効な輝度分布を得ることができる。   Furthermore, it is possible to obtain a luminance distribution that is more effective for judgment.

さらに、ハイライト部分やハイシャドウ部分をつぶさないようにすることができる。 In addition, it is possible to prevent crushed the highlight part and high shadows.

さらに、コントラストを強調しすぎて画像の雰囲気を変えてしまわないようにすることができる。 Moreover, it is be controlled so as not to change the atmosphere of the image too much emphasis on the contrast.

さらに、画像の明るさに表される雰囲気を保持することができる。 Further, Ru can retain an atmosphere represented in brightness of the image.

さらに、輝度分布の拡大の不要な条件を容易に判定して拡大を行わないようにすることができるし、さらに、頻度の多い白黒画像を効率よく判定することができる。 Furthermore, it can be prevented to perform expansion to determine the unwanted condition of expansion of the bright distribution easily, further, it is possible to determine more monochrome images how often efficiently.

さらに、画像に表れがちな枠部の輝度によって処理が不正確になるのを防止することができ、頻度の多い白黒の枠部を容易に判定することができる。   Furthermore, it is possible to prevent the processing from being inaccurate due to the brightness of the frame portion that tends to appear in the image, and it is possible to easily determine a frequently-used black and white frame portion.

さらに、輝度分布の拡大が必要な自然画の場合にだけ行うようにすることができ、さらに、自然画か否かを容易に判定することができる。 Furthermore, it is possible to perform in the case of natural images that require expansion of the bright distribution only, further, it is possible to easily determine natural fractionated.

そして、輝度分布を求めて画像のコントラストの幅のようなものを定量的に扱うことができ、コントラストの強調を自動化する画像処理方法および画像処理プログラムを記録した媒体を提供することが可能となる。 Then, it is possible to handle seeking Brightness distribution quantitatively things like the width of the image contrast, it is possible to provide a medium recording an image processing method and an image processing program to automate the contrast enhancement Become.

本発明の一実施形態にかかる画像処理装置が適用される画像処理システムのブロック図である。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. 同画像処理装置の具体的ハードウェア構成例を示すブロック図である。FIG. 2 is a block diagram illustrating a specific hardware configuration example of the image processing apparatus. 本発明の画像処理装置の他の適用例を示す概略ブロック図である。It is a schematic block diagram which shows the other application example of the image processing apparatus of this invention. 本発明の画像処理装置の他の適用例を示す概略ブロック図である。It is a schematic block diagram which shows the other application example of the image processing apparatus of this invention. 本発明の画像処理装置における輝度の分布抽出処理部分を示すフローチャートである。It is a flowchart which shows the luminance distribution extraction process part in the image processing apparatus of this invention. 本発明の画像処理装置における輝度変換処理部分を示すフローチャートである。It is a flowchart which shows the brightness | luminance conversion process part in the image processing apparatus of this invention. 変換元の画像における座標を示す図である。It is a figure which shows the coordinate in the image of the conversion origin. サンプリング周期を示す図である。It is a figure which shows a sampling period. サンプリング画素数を示す図である。It is a figure which shows the number of sampling pixels. 変換元の画像とサンプリングされる画素の関係を示す図である。It is a figure which shows the relationship between the image of the conversion origin, and the pixel sampled. 白黒の画像を示す図である。It is a figure which shows a monochrome image. 白黒の画像の輝度分布を示す図である。It is a figure which shows the luminance distribution of a monochrome image. 枠部のある画像を示す図である。It is a figure which shows an image with a frame part. 枠部のある画像の輝度分布を示す図である。It is a figure which shows the luminance distribution of the image with a frame part. 輝度分布の端部処理と端部処理にて得られる端部を示す図である。It is a figure which shows the edge part obtained by the edge part process and edge part process of luminance distribution. 輝度分布の拡大と再現可能な範囲を輝度の範囲を示す図である。It is a figure which shows the range of a brightness | luminance with the expansion of a luminance distribution, and the reproducible range. 輝度分布の拡大率に制限を与える場合を示す図である。It is a figure which shows the case where the restriction | limiting is given to the expansion rate of luminance distribution. 輝度分布を拡大する際の変換テーブルを示す図である。It is a figure which shows the conversion table at the time of enlarging luminance distribution. γ補正で明るくする概念を示す図である。It is a figure which shows the concept brightened by (gamma) correction. γ補正で暗くする概念を示す図である。It is a figure which shows the concept darkened by (gamma) correction. γ補正で変更される輝度の対応関係を示す図である。It is a figure which shows the correspondence of the brightness | luminance changed by (gamma) correction.

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

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

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

ここにおいて、画像入力装置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. Specific examples of the output device 30 include a printer 31, a display 32, and the like.

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

本画像処理装置20は、少なくとも、輝度の分布を抽出する輝度分布検出手段と、この検出された輝度分布に基づいて再現可能な範囲内での同輝度分布の拡大可能な程度を判別して画像データを変換する画像データ変換手段を構成する。むろん、本画像処理装置20は、この他にも機種毎による色の違いを補正する色変換手段であったり、機種毎に対応した解像度を変換する解像度変換手段などを構成していても構わない。この例では、コンピュータ21はRAMなどを使用しながら、内部のROMやハードディスク22に保存されている各画像処理のプログラムを実行していく。なお、このような画像処理のプログラムは、CD−ROM、フロッピーディスク、MOなどの各種の記録媒体を介して供給される他、モデムなどによって公衆通信回線を介して外部のネットワークに接続し、ソフトウェアやデータをダウンロードして導入することも行われている。   The image processing apparatus 20 determines at least a luminance distribution detecting unit that extracts a luminance distribution, and an extent that the luminance distribution can be expanded within a reproducible range based on the detected luminance distribution. Image data conversion means for converting data is configured. Of course, the image processing apparatus 20 may also be a color conversion unit that corrects a color difference for each model, or a resolution conversion unit that converts 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. Such an image processing program is supplied via various recording media such as a CD-ROM, floppy disk, and MO, and connected to an external network via a public communication line by a modem or the like. And downloading and installing data.

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

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

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

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

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

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

同図から明らかなように、サンプリングしないことになるサンプリング周期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 there is a width of 200 pixels or more, the number of samples is at least 100 pixels. Therefore, in the case of 200 pixels or more in the vertical direction and the horizontal direction, (100 pixels) × (100 pixels) = (10000 pixels) is secured, and the error can be reduced to 1% or less.

ここにおいてmin(width,height)を基準としているのは次のような理由による。例えば、図10(a)に示すビットマップ画像のように、width>>heightであるとすると、長い方のwidthでサンプリング周期ratioを決めてしまった場合には、同図(b)に示すように、縦方向には上端と下端の2ラインしか画素を抽出されないといったことが起こりかねない。しかしながら、min(width,height)として、小さい方に基づいてサンプリング周期ratioを決めるようにすれば同図(c)に示すように少ない方の縦方向においても中間部を含むような間引きを行うことができるようになる。   Here, the reason for using min (width, height) as a reference is as follows. For example, as shown in FIG. 10 (a), when width >> height is satisfied and the sampling period ratio is determined by the longer width, as shown in FIG. 10 (b). In addition, in the vertical direction, only two lines of the upper end and the lower end may be extracted. However, if the sampling period ratio is determined based on the smaller one as min (width, height), thinning is performed so as to include the intermediate portion in the smaller vertical direction as shown in FIG. Will be able to.

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

このように選択した画素についての画素データがその成分要素として輝度を持っていればその輝度値を用いて分布を求めることが可能である。しかしながら、輝度値が直接の成分値となっていない画像データの場合でも、間接的には輝度を表す成分値を備えている。従って、輝度値が直接の成分値となっていない表色空間から輝度値が直接の成分値となっている表色空間への変換を行えば輝度値を得ることができる。   If the pixel data for 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 in which the luminance value is not a direct component value, the component value that indirectly represents the luminance is provided. Accordingly, the luminance value can be obtained by performing conversion from the color space where the luminance value is not a direct component value to the color space where the luminance value is a direct component value.

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

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

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

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

間引き処理では、選択した画素についてRGBの画像データから同時に輝度を求めて分布をとる。最終的にはステップS116にてこの分布の幅を求めることになるが、その前に考慮しておく事項がある。   In the thinning-out process, the luminance is obtained from the RGB image data at the same time for the selected pixel, and the distribution is obtained. Eventually, the width of this distribution is obtained in step S116, but there are matters to consider before that.

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

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

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

二つ目は画像がビジネスグラフのようなものか写真のような自然画であるか否かを考慮する。自然画においてはコントラストの強調という処理が要求される場合があるものの、ビジネスグラフであるとか絵画のようなものではコントラストの強調を図らない方が好まれる場合が多い。従って、ステップS108では自然画か否かのチェックを行う。   Second, consider whether the image is like a business graph or a natural picture like a photograph. Although a process of enhancing contrast is sometimes required for natural images, it is often preferred that contrast is not enhanced for business graphs or paintings. Accordingly, in step S108, it is checked whether or not the image is a natural image.

自然画では陰影を含めて色数が極めて多いがビジネスグラフやある種の絵画では色数が限られていることが多い。従って、色数が少なければ自然画ではないと判断することが可能である。色数を正確に判断しようとすれば上述したように1670万色のうちの何色を使用しているかを判別する必要があるが、現実的ではない。一方、ビジネスグラフのような極めて色数が少ない場合には異なる色であって同じ輝度になる確率は低い。すなわち、輝度によって概ねの色数を判断できる。色数が少なければ輝度の分布もまばらであり、ビジネスグラフのようなものでは線スペクトル状に表れる。このようなことから、ステップS108では256階調の輝度のうち分布数が「0」でない輝度値がいくつ表れているかカウントする。そして、概ね一割となる「25」以下であれば自然画でないと判断し、二値データの場合と同様、ステップS106にて非拡大処理を実行する。むろん、しきい値となる「25」色以下か否かについては適宜変更可能である。   Natural images have a very large number of colors including shadows, but business graphs and certain types of paintings often have a limited number of colors. Therefore, if the number of colors is small, it can be determined that the image is not a natural image. In order to accurately determine the number of colors, it is necessary to determine how many of 16.7 million colors are used as described above, but this is not realistic. On the other hand, when the number of colors is extremely small as in the business graph, the probability that the colors are different and have 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 luminance distribution is sparse, and in a business graph, it appears as a line spectrum. For this reason, in step S108, the number of luminance values whose distribution number is not “0” among the luminances of 256 gradations is counted. If it is less than “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, it is possible to appropriately change whether or not the color is “25” or less as the threshold value.

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

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

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

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

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

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

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

実際の処理では処理対象となる画素数(間引き処理において選択した画素の総数、あるいは枠部に対応する画素数を削除した総数)に対する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 is deleted) is calculated, and the upper end of the reproducible luminance distribution is calculated. The number of distributions is accumulated in the order from the luminance value and the luminance value at the lower end in order to obtain a luminance value that is 0.5%. Hereinafter, this upper end side is called ymax, and the lower end side is called ymin.

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

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

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

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

ところで、このように再現可能な範囲を最大限に利用して輝度分布の拡大を図った場合、ハイライト部分が白く抜けてしまったり、ハイシャドウ部分が黒くつぶれてしまうことが起こる。これを防止するため本実施形態においては、再現可能な範囲を制限している。すなわち、再現可能な範囲の上端と下端に拡大しない範囲として輝度値で「5」だけ残している。この結果、変換式のパラメータは次式のようになる。   By the way, when the luminance distribution is expanded by making full use of the reproducible range in this way, the highlight part may be lost in white or the high shadow part may be lost in black. In order to prevent this, the reproducible range is limited in this embodiment. 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:

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, conversion is not performed in the range of y <ymin and y> ymax.

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

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

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

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

変換前の画像の輝度分布において、
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
here,
m1 + m2 = 255− (ymax−ymin)
Therefore, if ydif = ymax−ymin,
m1 + m2 = 255−ydif
In the luminance distribution of the converted image,
n1 = Ymin
n2 = 255-Ymax
Similarly,
n1 + n2 = 255- (Ymax-Ymin)
= 255-a (ymax-ymin)
= 255−a ・ ydif
It becomes.

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.
b = Ymin−a · ymin
= Ymin {(255−a · ydif) / (255−ydif) −a} (10)
It becomes. Moreover, when it calculates | requires using Ymax,
b = Ymax−a · ymax
= 255− (255−ymax) (255−a · ydif) / (255−ydif) −a · ymax (11)
The parameter b can be obtained as described above, and step S204 is ended.

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

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

各種の実験を行った結果、本実施形態においては、輝度分布におけるメジアンymedを求め、同メジアンymedが「85」未満である場合に暗い画像と判断して以下のγ値に対応するγ補正で明るくする。   As a result of various experiments, in the present 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 γ correction corresponding to the following γ values is performed. Brighten.

γ=ymed/85 …(12)
あるいは、
γ=(ymed/85)**(1/2) …(13)
とする。
γ = ymed / 85 (12)
Or
γ = (ymed / 85) ** (1/2) (13)
And

この場合、γ<0.7となっても、γ=0.7とする。このような限界を設けておかないと夜の画像が昼間のようになってしまうからである。なお、明るくしすぎると全体的に白っぽい画像になってコントラストが弱い画像になりやすいため、彩度を合わせて強調するなどの処理が好適である。   In this case, even if γ <0.7, γ = 0.7. This is because if such a limit is not set, the night image becomes like the daytime. Note that if the image is too bright, the overall image becomes whitish and the contrast tends to be low, so that processing such as enhancement of saturation is suitable.

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

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

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

最後に、ステップ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」〜階調「255」であるのに対応してRGBの各成分値(r,g,b),(R,G,B )も同じ範囲となっており、上述した輝度y,Yの変換テーブルをそのまま利用すればよいといえる。
Finally, image data is converted in step S210. Up to this point, the correspondence relationship for converting the luminance has been obtained, and for example, it was not the conversion relationship for the component values (Rp, Gp, Bp) on the RGB coordinate axes. However, the conversion formula (2) can also be applied in correspondence with the RGB component values (Rp, Gp, Bp). That is, the component values (R, G, B) after conversion with respect to the component values (r, g, b) before conversion are
R = a · r + b (16)
G = a · g + b (17)
B = a · b + b (18)
Can also be sought. This is clear from the fact that both the equations (2) and (4) show a linear correspondence. In addition, the RGB component values (r, g, b), (R, G, B) are also in the same range corresponding to the luminance y, Y ranging from “0” to “255”. Therefore, it can be said that the above-described conversion table of luminance y and Y may be used as it is.

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

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

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

まず、ステップS102では画像データを所定の誤差内となる範囲で間引き、選択した画素についての輝度yを求めて分布を取る。このままの分布を使用することはできず、まず、画像が白黒のような二値画像でないかステップS104にて判断するとともに、ステップS108では自然画か否かを判断する。二値画像である場合や自然画でない場合などを除き、ステップS110では画像データに枠部がないか判断し、枠部があれば除いて得られた輝度分布について上端と下端の0.5%の範囲を除去して分布の両端ymax ,ymin を取得する。   First, in step S102, the image data is thinned out within a predetermined error, and the luminance y for the selected pixel is obtained to obtain a distribution. The distribution as it is cannot be used. 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. Except when the image is a binary image or not a natural image, in step S110, it is determined whether the image data has a frame portion. If there is a frame portion, 0.5% of the upper and lower ends of the luminance distribution obtained by removing the frame portion is determined. To obtain the two ends ymax and ymin of the distribution.

輝度分布の両端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への変換関係をテーブルに記憶する。ステップS208では必要に応じてγ補正を実行し、完成した変換テーブルを参照してステップS210では全画素についての画像データを変換する。
If both ends ymax and ymin of the luminance distribution are obtained,
Y = ay + b (2)
a = 245 / (ymax−ymin) (8)
For b, either: b = 5-a · ymin or 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)
In step S204, parameters a and b are obtained from the following relational expression. In step S206, the conversion relationship from luminance y to luminance Y is stored in a table. In step S208, γ correction is performed as necessary, and in step S210, image data for all pixels is converted with reference to the completed conversion table.

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

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

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

なお、ビデオカメラ14の入力画像については、演算速度が間に合わないこともあり得る。従って、そのような場合には撮影のシーンごとに輝度の検出を行って輝度の分布を検知し、そのシーンにおいては同様の傾向であるものと想定して輝度の拡大テーブルを作成しておくとともに、フレームごとに同拡大テーブルに対応して輝度分布を拡大するようにすればよい。むろん、十分な演算速度があれば各フレームごとに変換するようにしても良い。むろん、同様の変換は受像機の側で行うことも可能である。   Note that the calculation speed of the input image of the video camera 14 may not be in time. Therefore, in such a case, the luminance is detected for each shooting scene to detect the luminance distribution, and the luminance enlargement table is created assuming that the scene has the same tendency. The luminance distribution may be enlarged corresponding to the enlargement table for each frame. 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.

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 (3)

画像処理装置であって、
画像の輝度値を変換する手段、を備え、
前記手段は、前記画像の輝度分布の途中で線状に突出する部分を枠部とし、当該枠部の 両隣の輝度値の画素数の平均を当該枠部が対応する輝度値の画素数とした輝度分布に基づいて前記変換を行なう
画像処理装置。
An image processing apparatus,
Means for converting the luminance value of the image,
The means uses a portion protruding linearly in the middle of the luminance distribution of the image as a frame portion, and an average of the number of pixels of luminance values on both sides of the frame portion is set as the number of pixels of the luminance value corresponding to the frame portion. Performing the conversion based on the luminance distribution ;
Image processing device.
画像処理方法であって、
画像の輝度値を変換する工程、を有し、
前記工程では、前記画像の輝度分布の途中で線状に突出する部分を枠部とし、当該枠部 の両隣の輝度値の画素数の平均を当該枠部が対応する輝度値の画素数とした輝度分布に基づいて前記変換を行なう
画像処理方法。
An image processing method comprising:
Converting the luminance value of the image,
In the step, a portion protruding linearly in the middle of the luminance distribution of the image is a frame portion, and the average of the number of pixels of the luminance value on both sides of the frame portion is the number of pixels of the luminance value corresponding to the frame portion. Performing the conversion based on the obtained luminance distribution ,
Image processing method.
コンピューターに画像処理を実行させる画像処理プログラムを記録した記録媒体であって、
画像の輝度値を変換する機能、を前記コンピューターに実行させ、
前記機能は、前記画像の輝度分布の途中で線状に突出する部分を枠部とし、当該枠部の 両隣の輝度値の画素数の平均を当該枠部が対応する輝度値の画素数とした輝度分布に基づいて前記変換を行なう
画像処理プログラムを記録した記録媒体。
A recording medium on which an image processing program for causing a computer to execute image processing is recorded,
Causing the computer to execute a function of converting the luminance value of the image;
The function is such that the portion protruding linearly in the middle of the luminance distribution of the image is a frame portion, and the average of the number of pixels of the luminance value on both sides of the frame portion is the number of pixels of the luminance value corresponding to the frame portion. Performing the conversion based on the luminance distribution ;
A recording medium on which an image processing program is recorded.
JP2010028947A 1996-11-13 2010-02-12 Image processing apparatus, image processing method, and medium on which image processing program is recorded Expired - Fee Related JP4692683B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2010028947A JP4692683B2 (en) 1996-11-13 2010-02-12 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
JP30222396 1996-11-13
JP1996302223 1996-11-13
JP2010028947A JP4692683B2 (en) 1996-11-13 2010-02-12 Image processing apparatus, image processing method, and medium on which image processing program is recorded

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2009173224A Division JP4506900B2 (en) 1996-11-13 2009-07-24 Image processing apparatus, image processing method, and medium on which image processing program is recorded

Related Child Applications (1)

Application Number Title Priority Date Filing Date
JP2010177913A Division JP4844686B2 (en) 1996-11-13 2010-08-06 Image processing apparatus, image processing method, and medium on which image processing program is recorded

Publications (2)

Publication Number Publication Date
JP2010124493A JP2010124493A (en) 2010-06-03
JP4692683B2 true JP4692683B2 (en) 2011-06-01

Family

ID=39783099

Family Applications (8)

Application Number Title Priority Date Filing Date
JP2008059721A Expired - Lifetime JP4240236B2 (en) 1996-11-13 2008-03-10 Image processing apparatus, image processing method, medium storing image processing program, and printing apparatus
JP2008129258A Expired - Lifetime JP4251235B2 (en) 1996-11-13 2008-05-16 Image processing apparatus, image processing method, and computer-readable recording medium recording program
JP2008182794A Expired - Fee Related JP4367668B2 (en) 1996-11-13 2008-07-14 Image processing apparatus, image output apparatus, image processing method, and medium on which image processing program is recorded
JP2009011426A Expired - Fee Related JP4396866B2 (en) 1996-11-13 2009-01-21 Image processing apparatus, image processing method, and medium on which image processing program is recorded
JP2009173224A Expired - Fee Related JP4506900B2 (en) 1996-11-13 2009-07-24 Image processing apparatus, image processing method, and medium on which image processing program is recorded
JP2010028947A Expired - Fee Related JP4692683B2 (en) 1996-11-13 2010-02-12 Image processing apparatus, image processing method, and medium on which image processing program is recorded
JP2010177913A Expired - Fee Related JP4844686B2 (en) 1996-11-13 2010-08-06 Image processing apparatus, image processing method, and medium on which image processing program is recorded
JP2011163453A Expired - Fee Related JP4993028B2 (en) 1996-11-13 2011-07-26 Image processing apparatus, image processing method, and medium on which image processing program is recorded

Family Applications Before (5)

Application Number Title Priority Date Filing Date
JP2008059721A Expired - Lifetime JP4240236B2 (en) 1996-11-13 2008-03-10 Image processing apparatus, image processing method, medium storing image processing program, and printing apparatus
JP2008129258A Expired - Lifetime JP4251235B2 (en) 1996-11-13 2008-05-16 Image processing apparatus, image processing method, and computer-readable recording medium recording program
JP2008182794A Expired - Fee Related JP4367668B2 (en) 1996-11-13 2008-07-14 Image processing apparatus, image output apparatus, image processing method, and medium on which image processing program is recorded
JP2009011426A Expired - Fee Related JP4396866B2 (en) 1996-11-13 2009-01-21 Image processing apparatus, image processing method, and medium on which image processing program is recorded
JP2009173224A Expired - Fee Related JP4506900B2 (en) 1996-11-13 2009-07-24 Image processing apparatus, image processing method, and medium on which image processing program is recorded

Family Applications After (2)

Application Number Title Priority Date Filing Date
JP2010177913A Expired - Fee Related JP4844686B2 (en) 1996-11-13 2010-08-06 Image processing apparatus, image processing method, and medium on which image processing program is recorded
JP2011163453A Expired - Fee Related JP4993028B2 (en) 1996-11-13 2011-07-26 Image processing apparatus, image processing method, and medium on which image processing program is recorded

Country Status (1)

Country Link
JP (8) JP4240236B2 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4240236B2 (en) * 1996-11-13 2009-03-18 セイコーエプソン株式会社 Image processing apparatus, image processing method, medium storing image processing program, and printing apparatus
JP2010211757A (en) * 2009-03-12 2010-09-24 Seiko Epson Corp Apparatus, method, and program for processing image
JP5672796B2 (en) * 2010-01-13 2015-02-18 株式会社ニコン Image processing apparatus and image processing method
JP6282156B2 (en) * 2014-03-31 2018-02-21 キヤノン株式会社 Image device, image processing method, control program, and storage medium

Family Cites Families (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6230473A (en) * 1985-07-31 1987-02-09 Mitsubishi Electric Corp Image printing device
JPS6412766A (en) * 1987-07-07 1989-01-17 Canon Kk Color image processing device
JPH02294786A (en) * 1989-05-09 1990-12-05 Hitachi Ltd Automatic normalizing method for image brightness level value
JP2964492B2 (en) * 1989-08-15 1999-10-18 ソニー株式会社 Image processing apparatus and image processing method
JP3011432B2 (en) * 1990-05-14 2000-02-21 株式会社東芝 Color image processing equipment
JP3253117B2 (en) * 1992-02-21 2002-02-04 キヤノン株式会社 Image processing apparatus and method
JP3189156B2 (en) * 1992-05-15 2001-07-16 キヤノン株式会社 Video printer and image processing method
JPH06178113A (en) * 1992-12-10 1994-06-24 Konica Corp Image data preservation and conversion device and device for calculating image representative value
JPH06197223A (en) * 1992-12-24 1994-07-15 Konica Corp Image reader
JPH0821079B2 (en) * 1993-07-15 1996-03-04 工業技術院長 Image quality improving method and apparatus
JP3238584B2 (en) * 1993-12-16 2001-12-17 松下電器産業株式会社 Multi-window device
JPH07236038A (en) * 1993-12-28 1995-09-05 Minolta Co Ltd Digital image forming device
JP3142108B2 (en) * 1994-11-07 2001-03-07 株式会社東芝 Image processing apparatus and image processing method
JP3333894B2 (en) * 1995-03-07 2002-10-15 ミノルタ株式会社 Image processing device
JP4240236B2 (en) * 1996-11-13 2009-03-18 セイコーエプソン株式会社 Image processing apparatus, image processing method, medium storing image processing program, and printing apparatus
JP3698205B2 (en) * 1996-11-13 2005-09-21 セイコーエプソン株式会社 Image processing apparatus, image processing method, and medium on which image processing program is recorded

Also Published As

Publication number Publication date
JP4506900B2 (en) 2010-07-21
JP2008206167A (en) 2008-09-04
JP2011239462A (en) 2011-11-24
JP2011010342A (en) 2011-01-13
JP2008243225A (en) 2008-10-09
JP4993028B2 (en) 2012-08-08
JP4396866B2 (en) 2010-01-13
JP4251235B2 (en) 2009-04-08
JP4844686B2 (en) 2011-12-28
JP4240236B2 (en) 2009-03-18
JP4367668B2 (en) 2009-11-18
JP2009124743A (en) 2009-06-04
JP2009015857A (en) 2009-01-22
JP2010009609A (en) 2010-01-14
JP2010124493A (en) 2010-06-03

Similar Documents

Publication Publication Date Title
JP4069333B2 (en) Image processing apparatus, image processing method, and medium on which image processing program is recorded
JP4993028B2 (en) Image processing apparatus, image processing method, and medium on which image processing program is recorded
JPH10208034A (en) Processor and method for image processing
JPH118768A (en) Image processor, image processing method and medium recording image processing control program
JP3693086B2 (en) Image processing apparatus, image processing method, and medium on which image processing program is recorded
JP3698205B2 (en) Image processing apparatus, image processing method, and medium on which image processing program is recorded
JP3972192B2 (en) Image processing apparatus and image processing method
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
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
JP4182365B2 (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
JP3596614B2 (en) Image processing apparatus, image processing method, and medium recording image processing program
JP2003051947A5 (en)
JP3664395B2 (en) Image processing apparatus, image processing method, and medium on which image processing program is recorded
JP3501151B2 (en) Image processing apparatus, image processing method, medium recording image processing control 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
JP2003085552A5 (en)
JP2003125213A5 (en)
JP3570416B2 (en) Image processing apparatus, image processing method, and medium recording image processing control program
JPH11136514A (en) Picture processor, picture processing method and medium recording picture processing control program
JP2003092687A5 (en)

Legal Events

Date Code Title Description
A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20100312

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20100312

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20100608

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20100806

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20100907

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20101207

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20101207

A911 Transfer to examiner for re-examination before appeal (zenchi)

Free format text: JAPANESE INTERMEDIATE CODE: A911

Effective date: 20101224

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

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20110207

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

Free format text: PAYMENT UNTIL: 20140304

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

LAPS Cancellation because of no payment of annual fees