JPH01219967A - Image processing method - Google Patents

Image processing method

Info

Publication number
JPH01219967A
JPH01219967A JP63044457A JP4445788A JPH01219967A JP H01219967 A JPH01219967 A JP H01219967A JP 63044457 A JP63044457 A JP 63044457A JP 4445788 A JP4445788 A JP 4445788A JP H01219967 A JPH01219967 A JP H01219967A
Authority
JP
Japan
Prior art keywords
gradation
image
output
input
divided
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP63044457A
Other languages
Japanese (ja)
Other versions
JP2746897B2 (en
Inventor
Shunichi Tamai
玉井 俊一
Makoto Katsuma
眞 勝間
Takeshi Kobayashi
剛 小林
Hiroyuki Kimura
木村 裕行
Toshihiro Kojima
敏裕 小島
Shigeki Yamada
茂樹 山田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Canon Inc
Original Assignee
Canon Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Canon Inc filed Critical Canon Inc
Priority to JP63044457A priority Critical patent/JP2746897B2/en
Publication of JPH01219967A publication Critical patent/JPH01219967A/en
Application granted granted Critical
Publication of JP2746897B2 publication Critical patent/JP2746897B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Image Processing (AREA)
  • Studio Circuits (AREA)
  • Facsimile Image Signal Circuits (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

PURPOSE:To decrease the gradation without causing a sense of incongruity by dividing the gradation at every prescribed cumulative frequency, based on the number of divisions of the gradation from the gradation histogram of input image data and outputting the representative value of the divided gradation areas as output image data. CONSTITUTION:An original image is inputted from an image input part 1, and the histogram of an input image is generated by a histogram operating part 2. By a dividing part 3, the histogram is divided at every prescribed frequency, and from within the range of values of each gradation of this divided histograms, a representative value is calculated by an output gradation operating part 5. By how much output gradation an image is outputted against an input gradation is designated by an output gradation designating part 4. The processed image is outputted from an image output part 7.

Description

【発明の詳細な説明】 [a業上の利用分野] 本発明は画像処理方法、特にオリジナル画像の@調を減
して特殊な効果をもった画像に変換する画像処理方法に
関するものである。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to an image processing method, and particularly to an image processing method for reducing the @ tone of an original image and converting it into an image with a special effect.

[従来の技術] デジタル画像処理に関しては、各分野において種々の機
器や種々の方法が開発されており、写真等の自然画像も
デジタル画像データとして入力することにより、何らか
の処理を施してクリエイティブな画像を作り出すことが
可能となっている。この処理の一つに階調変換がある。
[Prior Art] Regarding digital image processing, various devices and methods have been developed in various fields, and natural images such as photographs can be input as digital image data and processed to create creative images. It is possible to create. One of these processes is gradation conversion.

従来この階調変換は、オリジナル画像の階調をある割合
で分割し、分割された各階調内のすべてのデータを1代
表値で置き換える方法(一般にボスタリゼーションと呼
ばれる)がある。
Conventionally, this tone conversion has a method (generally called bossarization) in which the tone of the original image is divided into a certain ratio and all data in each divided tone is replaced with one representative value.

また、入力階調の頻度に対応して、入力頻度の高い階調
部分を多く、入力頻度の低い階調部分を少ない出力階調
にする出力階調の正規化の方法は公知であり、全体的に
豊かな階調表現が可能となることが知られている。
In addition, there is a known method for normalizing output gradations in which, in response to the frequency of input gradations, the gradation areas with high input frequency are increased and the gradation areas with low input frequency are reduced in output gradation. It is known that it is possible to express rich gradations.

[発明が解決しようとする課題] しかしながら、上記従来例にあるボスタリゼーションの
方法では階調を均等に分割するという手法から、入力階
調のある部分が非常に多い。
[Problems to be Solved by the Invention] However, since the conventional bossarization method described above divides the gradations evenly, there are a large number of parts with input gradations.

換言すれば、同じような色が多い、あるいは、同じよう
な明るさの部分が多い。従って、入力画像に対しては階
調が変化する領域が小さく本来の目的である階調を落と
すことによる特殊効果がうすれてしまうという問題点が
あった。すなわち、所定階調の頻度が高い場合、階調の
変化する部分が少なくなり、ボスタリゼーションの効果
が見られなくなってしまう。
In other words, there are many parts with similar colors or similar brightness. Therefore, there is a problem in that the area in which the gradation changes is small for the input image, and the special effect of reducing the gradation, which is the original purpose, is lost. That is, if the frequency of a predetermined gradation is high, the portion where the gradation changes will be small, and the effect of bossarization will not be seen.

また、異積頻度分布を用いて、各入力階調に対応する異
積頻度値を正規化した場合、入力頻度の高い部分に対す
る出力階調は細分化され、頻度の低い部分は逆に大きく
分割されることにより、前述の問題点はないが、入力階
調が集中しているデータが出力階調では広げられてしま
うため、入力画像の本来持つ色及び明るさが変化してし
まい、入力画像と出力画像の違いが、大きすぎてしまう
という問題点が発生する。
In addition, when the heterogeneous frequency value corresponding to each input gradation is normalized using the heterogeneous frequency distribution, the output gradation for the part with high input frequency is divided into small parts, and conversely, the part with low frequency is divided into large parts. By doing so, the above-mentioned problem does not occur, but data whose input gradation is concentrated is spread out in the output gradation, which changes the original color and brightness of the input image. A problem arises in that the difference between the output image and the output image is too large.

本発明は、従来技術では解決できなかった、どんなシー
ンのオリジナル画像に対しても、違和感のないボスタリ
ゼーション画像を出力できる画像処理方法を提供する。
The present invention provides an image processing method capable of outputting a natural bossarized image for any original image of any scene, which has not been possible with conventional techniques.

又、オリジナル画像の特徴を保存したボスタリゼーショ
ン画像を出力できる画像処理方法を提供する。
The present invention also provides an image processing method that can output a bossarized image that preserves the characteristics of the original image.

又、オリジナル画像に依存しないボスタリゼーション画
像を出力できる画像処理方法を提供する。
Furthermore, the present invention provides an image processing method capable of outputting a bossarized image that does not depend on the original image.

[課題を解決するための手段及び作用]この課題を解決
するために、本発明の画像処理方法は、画像データの階
調を落とす画像処理方法において、 入力画像データの階調ヒストグラムから、階調の分割数
に基づいて、所定累積頻度毎に階調を分割し、該分割さ
れた階調領域の代表値を出力画像データとして出力する
[Means and effects for solving the problem] In order to solve this problem, the image processing method of the present invention is an image processing method for reducing the gradation of image data. The gradation is divided at every predetermined cumulative frequency based on the number of divisions, and the representative value of the divided gradation area is output as output image data.

又、画像データの階調を落とす画像処理方法において、 入力画像データの階調ヒストグラムから、頻度が所定値
以下の連続する階調領域を1つの階調として分割し、該
分割された階調領域の代表値を出力画像データとして出
力する。
Further, in an image processing method for reducing the gradation of image data, continuous gradation areas whose frequency is less than or equal to a predetermined value are divided as one gradation from the gradation histogram of input image data, and the divided gradation areas are The representative value of is output as output image data.

又、画像データの階調を落とす画像処理方法において、 入力画像データの階調ヒストグラムから、頻度が所定値
以上の連続する階調領域を1つの階調として分割し、該
分割された階調領域の内、累積頻度が所定値以下の階調
領域を無視し、前記分割された階調領域の代表値を出力
画像データとして出力する。
In addition, in an image processing method for reducing the gradation of image data, from the gradation histogram of input image data, continuous gradation areas whose frequency is more than a predetermined value are divided as one gradation, and the divided gradation areas are Among them, tone areas whose cumulative frequency is less than a predetermined value are ignored, and representative values of the divided tone areas are output as output image data.

[実施例] まず、本実施例の特徴を明確にするため、従来例による
ボスタリゼーションを詳細に述べる。
[Example] First, in order to clarify the characteristics of this example, bossarization according to a conventional example will be described in detail.

第6図、第7図に従来のボスタリゼーション手法の一例
を図示する。図の横軸に入力階調。
FIGS. 6 and 7 illustrate an example of a conventional bossarization method. Input gradation is shown on the horizontal axis of the figure.

縦軸に出力階調を示す。第6図は入力された画像をその
まま出力する通常の場合であり、第7図は入力が32階
調(0〜31)のとき、出力を4階調にした図である。
The vertical axis shows the output gradation. FIG. 6 shows the normal case where the input image is output as is, and FIG. 7 shows the case where the input is 32 gradations (0 to 31) and the output is 4 gradations.

入力値(0〜7)に対して出力値は09入力値(8〜1
5)に対して出力値は8という具合に代表値に置き替え
ることを意味している。これが−膜内なボスタリゼーシ
ョンの方法である。
The output value is 09 input value (8 to 1) for the input value (0 to 7).
This means that the output value for 5) is replaced with a representative value such as 8. This is the method of - intramembrane bossarization.

例えば、画像を256階調(0〜255)で入力し8階
調で出力する場合を考える。第12図は入力された画像
のヒストグラムを示しており、入力階調を均等に8分割
した図である。各々の分割されたヒストグラムの面積の
割合が、出力画像の各階調ごとの面積割合に等しい。従
って、入力階調値160から191の部分が、例えば代
表値160とすると、出力画像の大半が階調値160に
なってしまい、階調の変化する部分が;少なくなり、ボ
スタリゼーションの効果が見られなくなってしまう。
For example, consider a case where an image is input with 256 gradations (0 to 255) and outputted with 8 gradations. FIG. 12 shows a histogram of the input image, in which the input gradation is equally divided into eight parts. The area ratio of each divided histogram is equal to the area ratio for each gradation of the output image. Therefore, if the input gradation values 160 to 191 are set to a typical value of 160, for example, most of the output image will have a gradation value of 160, and the areas where the gradation changes will be small, resulting in the effect of bossarization. can no longer be seen.

第8図、第9図、第10図、第11図には、入力階調の
頻度に対応して出力階調を正規化する手法の一例を示す
。第8図は横軸に階調、縦軸に頻度をとり、あるデータ
の各階調ごとの頻度を示している。第9図は第8図と同
一データの入力階調及び出力階調を示す図で、第8図の
ヒストグラムから、入力階調値a、からC2の間にデー
タが集中していることが読み取れる。これは、第9図に
於いて出力階調値す、からb2の間にデータが集中して
いることになり、階調が豊かに表現されていない。そこ
で、第10図に示すように異積頻度を求め、各入力階調
値に対応する異積頻度値をそのまま第11図のように出
力階調値に置き替えることにより、入力頻度の高いal
からC2の間の入力階調部分は、C8からC3までの出
力階調に変換される。
FIG. 8, FIG. 9, FIG. 10, and FIG. 11 show an example of a method for normalizing the output gradation in accordance with the frequency of the input gradation. In FIG. 8, the horizontal axis represents gradation and the vertical axis represents frequency, and shows the frequency of each gradation of certain data. FIG. 9 is a diagram showing the input and output gradations of the same data as in FIG. 8. From the histogram in FIG. 8, it can be seen that the data is concentrated between input gradation values a and C2. . This means that the data is concentrated between the output gradation values a and b2 in FIG. 9, and the gradation is not expressed richly. Therefore, by calculating the cross-product frequency as shown in FIG. 10 and directly replacing the cross-product frequency value corresponding to each input gradation value with the output gradation value as shown in FIG.
The input gradation part between C2 and C2 is converted into the output gradation part from C8 to C3.

また、異積頻度分布を用いて、各入力階調に対応する異
積頻度値を0〜255に正規化し、その値を8等分し各
分割領域の代表値として分割域内の最小の階調値を用い
た場合の入力階調と出力階調の関係図が第13図である
。入力頻度の高い部分に対する出力階調は細分化され、
頻度の低い部分は逆に大きく分割されることにより、前
述の問題点はないが、入力階調が160から191の周
辺に集中していたデータが出力階調では64から223
の間に広げられているため、入力画像の木来持つ色及び
明るさが変化してしまい、入力画像と出力画像の違いが
、大きすぎてしまうという問題点が発生する。
In addition, using the heterogeneous frequency distribution, the heterogeneous frequency value corresponding to each input gradation is normalized to 0 to 255, the value is divided into 8 equal parts, and the minimum gradation within the divided area is used as the representative value of each divided area. FIG. 13 is a diagram showing the relationship between input gradation and output gradation when using values. The output gradation for parts with high input frequency is subdivided,
On the contrary, the low-frequency parts are divided into large parts, so there is no problem mentioned above, but the data that was concentrated around the input gradation range of 160 to 191 is now concentrated around the output gradation range of 64 to 223.
As a result, the inherent color and brightness of the input image change, resulting in a problem that the difference between the input image and the output image becomes too large.

〈第1実施例〉 以下本発明の第1実施例について詳細に説明する。<First example> A first embodiment of the present invention will be described in detail below.

第1図は本発明の画像処理方法を実現する本実施例の画
像処理装置のブロック図である。
FIG. 1 is a block diagram of an image processing apparatus of this embodiment that implements the image processing method of the present invention.

又、第2図は本実施例の画像処理装置のハードウェアの
構成図である。
Further, FIG. 2 is a hardware configuration diagram of the image processing apparatus of this embodiment.

1はオリジナル画像を入力する画像入力部で、第2図に
於ては画像入力装置11(例えば、カラースキャナ、T
Vカメラ等)及びA/D変換器12に相当する。2はヒ
ストグラム演算部で入力画像のヒストグラムを作成する
。3は除算部で一定の累積頻度ごとにヒストグラムを分
割する。4は出力階調指定部で入力階調に対してどのく
らいの出力階調で画像出力するか指定する部分で、第2
図に於て文字数値入力方法16に相当する。5は出力階
調演算部で分割されたヒストグラムの各階調の値の範囲
内から代表値を演算する。7は処理された画像を出力す
る画像出力部で、第2図に於てはD/A変換器17及び
画像出力装置(例えばカラーCRT、フォトプリンタ等
)に相当する。8,9.10は画像データの信号線を意
味しており、入力された画像データをRGBの輝度デー
タとして扱っていることを示している。
1 is an image input unit for inputting an original image, and in FIG. 2, an image input device 11 (for example, a color scanner,
V camera, etc.) and the A/D converter 12. 2 is a histogram calculation unit that creates a histogram of the input image. 3 is a division unit that divides the histogram into parts according to a certain cumulative frequency. 4 is the output gradation specification section, which specifies how much output gradation to output the image with respect to the input gradation;
This corresponds to character/numeric input method 16 in the figure. 5 calculates a representative value from within the range of values of each gradation of the divided histogram in an output gradation calculation section. Reference numeral 7 denotes an image output unit that outputs a processed image, which in FIG. 2 corresponds to the D/A converter 17 and an image output device (eg, color CRT, photo printer, etc.). 8, 9, and 10 mean image data signal lines, indicating that the input image data is treated as RGB luminance data.

また、ヒストグラム演算部2.除算部3.比出力調演算
部5は第2図中のCPU14がメモリ15内のROM1
5b11:r4納されたプログラムに従って実行し、入
力された画像データは画像メモリ13に格納される。C
PU 14内には、RAM15aとROM15bとから
成るメモリ15があり、RAM15aには文字数値入力
装置16(例えば、キーボード、デジタイザ等)から入
力される情報が格納され、ROM15bにはCPU14
の処理プログラムが格納されている。
Also, the histogram calculation unit 2. Division part 3. In the specific power key calculation section 5, the CPU 14 in FIG.
5b11:r4 The stored program is executed and the input image data is stored in the image memory 13. C
Inside the PU 14, there is a memory 15 consisting of a RAM 15a and a ROM 15b.The RAM 15a stores information input from a character/numeric input device 16 (e.g., keyboard, digitizer, etc.), and the ROM 15b stores information input from the CPU 14.
processing programs are stored.

次に処理の内容を具体的に説明する。Next, the contents of the process will be specifically explained.

画像入力装置11よりA/D変換器12を通して画像メ
モリ13に入力されたRGBの画像データは、ヒストグ
ラム演算部2によってRGB各々のヒストグラムを作成
する。第3図(a)〜(C)に作成されたヒストグラム
の一例を示す。
RGB image data input from the image input device 11 to the image memory 13 through the A/D converter 12 is used to create RGB histograms by the histogram calculation unit 2. Examples of created histograms are shown in FIGS. 3(a) to 3(C).

横軸は階調を示しており、縦軸は頻度である。The horizontal axis shows the gradation, and the vertical axis shows the frequency.

ここで、出力階調指定部4より出力画像の希望階調数を
入力し、除算部3によって、 (総顕度)÷(階調数) ごとにヒストグラムを分割する。頻度の高い部分を多く
の輝度(階調)値を使用して表現することにより、出力
画像上に不快な色変化がないように、スムーズにオリジ
ナル画像の色及び明度に似て見える効果をねらったもの
である。第4図(a)〜(C)に等分割した状態を示す
Here, the desired number of gradations of the output image is input from the output gradation specifying section 4, and the dividing section 3 divides the histogram by (total intensity)/(number of gradations). By expressing high-frequency parts using many brightness (gradation) values, we aim to create an effect that smoothly resembles the color and brightness of the original image, so that there are no unpleasant color changes on the output image. It is something that FIGS. 4(a) to 4(C) show the state of equal division.

ここで、出力階調演算部5によって各分割された入力階
調値の範囲内で出力階調の代表値を算出する。本実施例
では平均値を分割された領域の代表値としたが、最小値
、最大値等を用いても同様の結果が得られる。例えば第
4図(a)で見れば、ある分割領域(図斜線部)に於て
代表値は(a+b)÷2とした。以上のようにして、入
力画像に対して希望の階調の出力画像を得ることができ
る。第5図(a)〜(C)は入力画像のヒストグラムが
第3図に示されるもので出力画像を8階調としたときの
入力画像と出力画像の階調関係を図示する。
Here, the output gradation calculating section 5 calculates a representative value of the output gradation within the range of each divided input gradation value. In this embodiment, the average value is used as the representative value of the divided regions, but similar results can be obtained by using the minimum value, maximum value, etc. For example, in FIG. 4(a), the representative value in a certain divided area (shaded area in the figure) is (a+b)÷2. In the manner described above, an output image with a desired gradation can be obtained for the input image. FIGS. 5(a) to 5(C) illustrate the gradation relationship between the input image and the output image when the histogram of the input image is shown in FIG. 3 and the output image has 8 gradations.

〈第2実施例〉 次に、第2実施例を示す。第1図の実施例と同様に画像
入力部1より画像を入力し、ヒストグラム演算部2によ
りヒストグラムを作成し、出力階調指定部4で指定され
た階調数に応じて、除算部3に於いて、 (総画素数)÷(指定階調) ごとにヒストグラムを分割する。
<Second Example> Next, a second example will be shown. As in the embodiment shown in FIG. Then, divide the histogram by (total number of pixels) ÷ (specified gradation).

ここで、閾値発生部(不図示)から閾値を得る。本実施
例では、あらかじめ設定した値をCPU14内のメモリ
15に書き込んでおき、その値を呼び出すようにしたが
、出力画像の状況を見て、文字数値入力装置16を介し
て、対話的に閾値を決定することも可能である。この閾
値とは、ヒストグラム中の特徴を示す部分の抽出に使用
するもので、頻度の値で表す。
Here, a threshold value is obtained from a threshold value generation unit (not shown). In this embodiment, a preset value is written in the memory 15 in the CPU 14 and the value is called up. It is also possible to determine. This threshold value is used to extract a portion of the histogram that indicates a feature, and is expressed as a frequency value.

第14図に示すように、ヒストグラム中の閾値以上の部
分に着目して、各分割された値の範囲内で、出力階調の
代表値を以下に示すように出力階調演算部5により算出
する。
As shown in FIG. 14, the representative value of the output gradation is calculated by the output gradation calculation unit 5 as shown below, focusing on the portion of the histogram that is equal to or higher than the threshold value, within the range of each divided value. do.

入力階調値      出力階調値 0〜(d+  IL  (d+  1)/2d1〜(d
2−1)   (d1+d2−1)/2d5〜(da 
 1)   (ds +da−1)/2d6〜255 
  (d、+255−1)/2以下同様に各分割領域の
出力階調の代表値を決定する。第14図からもわかるよ
うに、除算部3で分割した領域は8つであるが、閾値を
用いることにより出力階調の代表値は7つに減少してい
る。又、第15図のようなヒストグラムが算出された場
合には、代表値は10になる。
Input gradation value Output gradation value 0~(d+ IL (d+ 1)/2d1~(d
2-1) (d1+d2-1)/2d5~(da
1) (ds +da-1)/2d6~255
Below (d, +255-1)/2, the representative value of the output gradation of each divided area is similarly determined. As can be seen from FIG. 14, the number of regions divided by the divider 3 is eight, but by using the threshold, the representative values of the output gradations are reduced to seven. Further, when a histogram as shown in FIG. 15 is calculated, the representative value is 10.

このように入力画像のシーンによって出力階調を自動的
に変更して、より好ましいボスタリゼーションの処理を
行なうことが可能である。なお、代表値は各入力階調値
間の平均値を用いたが、第1実施例と同様に最大値、最
小値などを用いても同等の効果が得られる。
In this way, it is possible to automatically change the output gradation depending on the scene of the input image to perform more preferable bossarization processing. Although the average value between the input gradation values is used as the representative value, the same effect can be obtained by using the maximum value, minimum value, etc. as in the first embodiment.

〈第3実施例〉 次に、第3実施例を示す。第1実施例と同様に画像入力
部1より画像を入力し、出力階調指定部4より希望階調
数を入力し、ヒストグラム演算部2によりヒストグラム
を作成する。ここで、閾値発生部(不図示)から閾値を
得る。本実施例では第2実施例と同様にあらかじめ設定
した値をメモリから呼び出すようにしたが、出力画像の
状況を見て、文字数値入力装置16を介して対話的に閾
値を決定することも可能である。閾値は第2実施例と同
じく頻度の値である。
<Third Example> Next, a third example will be shown. As in the first embodiment, an image is input from the image input section 1, a desired number of gradations is input from the output gradation specifying section 4, and a histogram is created by the histogram calculation section 2. Here, a threshold value is obtained from a threshold value generation unit (not shown). In this embodiment, a preset value is called from the memory as in the second embodiment, but it is also possible to determine the threshold value interactively via the character/numeric input device 16 by looking at the situation of the output image. It is. The threshold value is a frequency value as in the second embodiment.

第16図は本実施例を説明する図であり、希望出力階調
数を8としたものである。横軸に入力階調、縦軸に頻度
を示す。ヒストグラム中の閾値以上の部分に着目して、
まず閾値以下の値が連続する部分をカウントする。第1
6図では(φ〜e l)+(64〜ea )+(eo 
〜es )+(er 〜255)の4区画である。次に
、閾値以上の頻度の総数をカウントする。閾値を越える
部分の分割数は指定された希望出力階調数から、上記の
閾値以下の値が連続する部分のカウント数を減じたもの
であり、分割数は4である。
FIG. 16 is a diagram illustrating this embodiment, in which the desired number of output gradations is eight. The horizontal axis shows the input gradation, and the vertical axis shows the frequency. Focusing on the part of the histogram that is above the threshold,
First, the number of consecutive values below the threshold is counted. 1st
In Figure 6, (φ~e l) + (64~ea) + (eo
There are four sections: ~es)+(er~255). Next, count the total number of frequencies greater than or equal to the threshold. The number of divisions for the portion exceeding the threshold value is the specified number of desired output gradations minus the count number of the portions where the values below the threshold value are continuous, and the number of divisions is four.

次に、閾値以上の総頭度を分割数で割った値から、閾値
以上の値が存在する各部分(et〜e4)、(ea〜8
9)、(e5〜ey)の内で、その部分の頻度の和が所
定値より小さいものを取り除く。これは、第16図で点
線丸印で囲んだ部分Xのような微かな部分を無視するた
めである。
Next, from the value obtained by dividing the total head degree above the threshold by the number of divisions, each part (et~e4), (ea~8
9), among (e5 to ey), remove those whose sum of frequencies is smaller than a predetermined value. This is to ignore a faint portion such as the portion X surrounded by a dotted circle in FIG.

以上のことを反復することによって、ヒストグラムは閾
値以上の部分が大まかないくつかの山になり、この山を
希望出力階調(8)から谷の部分の数(3)を減じた数
(5)で分割すると、第17図のようになる。このとき
% (eI 0−84 )と(es〜e’a)のように
、本来1つの領域であるべき部分が分かれてしまうこと
が生ずる。
By repeating the above steps, the histogram will have several rough peaks where the areas above the threshold are divided into 5 peaks, which are calculated by subtracting the number of valleys (3) from the desired output gradation level (8). ), the result will be as shown in Figure 17. At this time, parts that should originally be one area may become separated, such as % (eI 0-84 ) and (es~e'a).

本実施例では、分かれた部分の頻度総数の多い方を残し
て少ない方は無視した。従って、分割された入力階調値
は、(φ〜e1)、(e+〜e2)。
In this embodiment, the part with the highest total frequency of the divided parts was retained, and the part with the lowest frequency was ignored. Therefore, the divided input tone values are (φ~e1) and (e+~e2).

(e 2 ””’ e 3 ) + (83〜el O
) 、(el O〜e !i ) +(es〜ea )
、(ea〜ey )、(et〜255)となり、各入力
階調値の範囲内で出力階調の代表値を出力階調演算部5
により算出する。このようにして、希望の出力階調で入
力画像のシーンに依存しないボスタリゼーションの出力
画像を得ることができる。
(e 2 ””' e 3 ) + (83~el O
), (el O~e!i) + (es~ea)
, (ea~ey), (et~255), and the output gradation calculation unit 5 calculates the representative value of the output gradation within the range of each input gradation value.
Calculated by In this way, it is possible to obtain a bossarized output image with a desired output gradation and independent of the scene of the input image.

なお、第1実施例、第2実施例、第3実施例ともに入力
画像及び出力画像を輝度データとしていたが、濃度デー
タであってもさしつかえない。
In addition, although the input image and the output image are brightness data in the first, second, and third embodiments, density data may also be used.

以上説明したように、ヒストグラムを利用して、オリジ
ナル画像の階調数を変更することにより、オリジナル画
像のシーンに左右されないで希望の階調画像を得ること
ができ、オリジナル画像に対して違和感のない階調変換
画像を得ることができる。
As explained above, by using the histogram to change the number of gradations in the original image, it is possible to obtain the desired gradation image without being affected by the scene of the original image, and it is possible to obtain a desired gradation image without being affected by the scene of the original image. It is possible to obtain a tone-converted image without any gradation conversion.

[発明の効果] 本発明により、どんなシーンのオリジナル画像に対して
も、違和感のないボスタリゼーション画像を出力できる
画像処理方法を提供できる。
[Effects of the Invention] According to the present invention, it is possible to provide an image processing method that can output a normalized bossarized image for any original image of any scene.

又、オリジナル画像の特徴を保存したボスタリゼーショ
ン画像を出力できる画像処理方法を提供できる。
Furthermore, it is possible to provide an image processing method that can output a bossarized image that preserves the characteristics of the original image.

又、オリジナル画像に依存しないボスタリゼーション画
像を出力できる画像処理方法を提供できる。
Furthermore, it is possible to provide an image processing method that can output a bossarized image that does not depend on the original image.

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

第1図は本発明の画像処理方法を実現した本実施例の画
像処理装置のブロック図、第2図は本実施例の画像処理
装置のハードウェアの構成図、 第3図(a)〜(c)は入力された画像のヒストグラム
の一例を示した図、 第4図(a)〜(c)は頻度によって階調を8分割にし
た図、 第5図(a)〜(e)は第3図に用いたデータを処理し
たときの人出力の階調関係を示した図、第6図は通常の
画像人出方の階調関係を示した図、 第7図は従来例における階調変換を示した図、第8図〜
第11図は従来の入力階調の頻度に対応して出力階調を
正規化する手法を示す図、第12図、第13図は従来の
入力階調の頻度に対応して出力階調を正規化する手法の
問題点を示す図、 第14図、第15図は第2実施例を説明する図、 第16図、第17図は第3実施例を説明する図である。 図中、1・・・画像入力部、2・・・ヒストグラム演算
部、3・・・除算部、4・・・出力階調指定部、5・・
・出力階調演算部、7・・・画像出力部、11・・・画
像入力装置、12・・・A/D変換器、13・・・画像
メモリ、14・CP U、  15・・・メモリ、15
a−RAM、15b・・・ROM、16・・・文字数値
入力装置、17・・・D/A変換器、18・・・画像出
力装置である。 第1図 第6図    第7図 第8図    第9図 第10図    第11図 第12図 第14図 第15図 第16図
FIG. 1 is a block diagram of an image processing apparatus according to this embodiment that implements the image processing method of the present invention, FIG. 2 is a hardware configuration diagram of the image processing apparatus according to this embodiment, and FIGS. c) is a diagram showing an example of the histogram of the input image, Figures 4(a) to (c) are diagrams in which the gradation is divided into eight parts depending on the frequency, and Figures 5(a) to (e) are diagrams showing the histogram of the input image. Figure 3 shows the gradation relationship of the human output when processing the data used, Figure 6 shows the gradation relationship of the normal image appearance, and Figure 7 shows the gradation in the conventional example. Diagram showing the conversion, Figure 8~
Fig. 11 is a diagram showing a conventional method for normalizing output gradations in accordance with the frequency of input gradations, and Figs. 14 and 15 are diagrams illustrating the second embodiment, and FIGS. 16 and 17 are diagrams illustrating the third embodiment. In the figure, 1... image input section, 2... histogram calculation section, 3... division section, 4... output gradation specification section, 5...
- Output gradation calculation unit, 7... Image output unit, 11... Image input device, 12... A/D converter, 13... Image memory, 14... CPU, 15... Memory , 15
a-RAM, 15b... ROM, 16... character/numeric input device, 17... D/A converter, 18... image output device. Figure 1 Figure 6 Figure 7 Figure 8 Figure 9 Figure 10 Figure 11 Figure 12 Figure 14 Figure 15 Figure 16

Claims (3)

【特許請求の範囲】[Claims] (1)画像データの階調を落とす画像処理方法において
、 入力画像データの階調ヒストグラムから、階調の分割数
に基づいて、所定累積頻度毎に階調を分割し、 該分割された階調領域の代表値を出力画像 データとして出力することを特徴とする画像処理方法。
(1) In an image processing method for reducing the gradation of image data, from the gradation histogram of input image data, the gradation is divided at each predetermined cumulative frequency based on the number of divisions of the gradation, and the divided gradation is An image processing method characterized by outputting a representative value of a region as output image data.
(2)画像データの階調を落とす画像処理方法において
、 入力画像データの階調ヒストグラムから、頻度が所定値
以下の連続する階調領域を1つの階調として分割し、 該分割された階調領域の代表値を出力画像 データとして出力することを特徴とする画像処理方法。
(2) In an image processing method for reducing the gradation of image data, from the gradation histogram of input image data, continuous gradation areas whose frequency is less than a predetermined value are divided as one gradation, and the divided gradation is An image processing method characterized by outputting a representative value of a region as output image data.
(3)画像データの階調を落とす画像処理方法において
、 入力画像データの階調ヒストグラムから、頻度が所定値
以上の連続する階調領域を1つの階調として分割し、 該分割された階調領域の内、累積頻度が所定値以下の階
調領域を無視し、 前記分割された階調領域の代表値を出力画像データとし
て出力することを特徴とする画像処理方法。
(3) In an image processing method for reducing the gradation of image data, from the gradation histogram of the input image data, continuous gradation areas whose frequency is equal to or higher than a predetermined value are divided into one gradation, and the divided gradation is An image processing method characterized in that, among the regions, tone regions whose cumulative frequency is less than or equal to a predetermined value are ignored, and representative values of the divided tone regions are output as output image data.
JP63044457A 1988-02-29 1988-02-29 Image processing method Expired - Fee Related JP2746897B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63044457A JP2746897B2 (en) 1988-02-29 1988-02-29 Image processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63044457A JP2746897B2 (en) 1988-02-29 1988-02-29 Image processing method

Publications (2)

Publication Number Publication Date
JPH01219967A true JPH01219967A (en) 1989-09-01
JP2746897B2 JP2746897B2 (en) 1998-05-06

Family

ID=12692018

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63044457A Expired - Fee Related JP2746897B2 (en) 1988-02-29 1988-02-29 Image processing method

Country Status (1)

Country Link
JP (1) JP2746897B2 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100559354B1 (en) * 1998-04-03 2006-03-15 텍트로닉스 인코포레이티드 Bits-per-pixel reduction from variable intensity rasterizer to variable intensity or color display
JP2008287605A (en) * 2007-05-18 2008-11-27 Yokogawa Electric Corp Histogram creation device and gradation setting device
US9781308B2 (en) 2015-03-31 2017-10-03 Brother Kogyo Kabushiki Kaisha Non-transitory computer-readable medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100559354B1 (en) * 1998-04-03 2006-03-15 텍트로닉스 인코포레이티드 Bits-per-pixel reduction from variable intensity rasterizer to variable intensity or color display
JP2008287605A (en) * 2007-05-18 2008-11-27 Yokogawa Electric Corp Histogram creation device and gradation setting device
US9781308B2 (en) 2015-03-31 2017-10-03 Brother Kogyo Kabushiki Kaisha Non-transitory computer-readable medium

Also Published As

Publication number Publication date
JP2746897B2 (en) 1998-05-06

Similar Documents

Publication Publication Date Title
JP2675966B2 (en) Image display method and computer system
Duan et al. Novel histogram processing for colour image enhancement
US7876474B2 (en) Image processing device capable of suppressing over-correction in Retinex process
JP2004030670A (en) Enhancement method for color tone feature of digital image
JPH11313202A (en) Image processing unit and image processing method
CN117496254A (en) Intelligent identification method, device and equipment for black tea fermentation state and storage medium
JPH10134178A (en) Method and device for image processing, and storage medium
JP2001034748A (en) Method and device for correcting image, recording medium with the method recorded thereon, image photographing device including the device and image display device including the device
JPH01219967A (en) Image processing method
KR100791374B1 (en) Method and apparatus for image adaptive color adjustment of pixel in color gamut
JPH04248681A (en) Color picture emphasis/deemphasis processing method
JP2006237657A (en) Image processing apparatus, image correction program, and recording medium
CN113112422B (en) Image processing method, device, electronic equipment and computer readable medium
JP3482106B2 (en) Luminance image generation method and apparatus, and recording medium recording this method
US5502642A (en) HSL neighborhoods in CMY color space
JP2004318461A (en) Image processing for making tone jump inconspicuous
JPH05244444A (en) Irregular color correction method in color picture
JP3557673B2 (en) Image processing device
JPH1032712A (en) Picture processor
JPH11167633A (en) Method and device for analyzing image
JPH06175633A (en) Image data processor
JPH11120343A (en) Image processor
JPH096962A (en) Evaluating method for sharpness
JPS6366557A (en) Generating method for mask with pattern
JP2001169127A (en) Image processing method and image processor

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees