JP2001155149A - Method and device for correcting image, and computer- readable recording medium - Google Patents

Method and device for correcting image, and computer- readable recording medium

Info

Publication number
JP2001155149A
JP2001155149A JP33818299A JP33818299A JP2001155149A JP 2001155149 A JP2001155149 A JP 2001155149A JP 33818299 A JP33818299 A JP 33818299A JP 33818299 A JP33818299 A JP 33818299A JP 2001155149 A JP2001155149 A JP 2001155149A
Authority
JP
Japan
Prior art keywords
image
value
extreme value
data
data value
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP33818299A
Other languages
Japanese (ja)
Inventor
Koichi Watabe
康一 渡部
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.)
Fujifilm Holdings Corp
Original Assignee
Fuji Photo Film Co Ltd
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 Fuji Photo Film Co Ltd filed Critical Fuji Photo Film Co Ltd
Priority to JP33818299A priority Critical patent/JP2001155149A/en
Publication of JP2001155149A publication Critical patent/JP2001155149A/en
Pending legal-status Critical Current

Links

Landscapes

  • Image Processing (AREA)
  • Studio Circuits (AREA)
  • Processing Of Color Television Signals (AREA)
  • Facsimile Image Signal Circuits (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide an image correction technology which is natural, whose processing time is short and which does not need much memory capacity, especially a pseudo filter technology. SOLUTION: An image acquiring part 102 acquires a processing object image. An extreme value detecting part 104 scans the image and detects an extreme value of luminance, etc. A data correcting part 108 performs correction so as to make image data near the extreme value approach the extreme value. Thereby, a pseudo filter effect such as a cross filter is realized in the vicinity of the extreme value.

Description

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

【0001】[0001]

【発明の属する技術分野】この発明は、画像補正技術に
関する。この発明は特に、画像データを補正する画像補
正方法、及びその方法を利用することが可能な画像補正
装置に関する。
[0001] The present invention relates to an image correction technique. In particular, the present invention relates to an image correction method for correcting image data and an image correction apparatus capable of using the method.

【0002】[0002]

【従来の技術】カメラは一般に、被写体を忠実に写し出
すことを目的とする。しかしながら芸術性をねらう写真
や特殊な視覚効果を目的とする写真も存在する。そうし
た特殊効果のひとつに、クロスフィルタを用いて画像の
輝度が高い部分の光を放射状または十字状ににじませる
技術が知られている。従来一般的なカメラに用いられる
クロスフィルタは、フィルタのガラス面に物理的に傷が
付けられており、その傷による光の乱反射によって十字
状または放射状の光の広がりを得るものである。
2. Description of the Related Art A camera generally aims at faithfully shooting a subject. However, there are photographs that aim for artistic purposes and photographs that aim for special visual effects. As one of such special effects, a technique is known in which a cross filter is used to blur light in a high-luminance portion of an image radially or crosswise. 2. Description of the Related Art A cross filter used in a conventional general camera has a glass surface of a filter physically scratched, and diffused light is diffusely reflected by the scratch to obtain a cross-shaped or radial light spread.

【0003】最近、一般のユーザーが比較的手軽に画像
の編集を行うことができるソフトウェアが普及しつつあ
る。そうしたソフトウェア、特にフォトレタッチソフト
ウェア等では、画像の高輝度部を検出してその部分にあ
らかじめ用意した放射状または十字状のパターンを貼り
付け、クロスフィルタによる撮影を模する技術が知られ
ている。特開平6−30373号は、撮影時に比較的低
い露出で撮影を行い、そうして得られた画像の高輝度部
を検出し、その部分にパターンを貼り付けることによ
り、擬似的ではあるが良好なクロスフィルタ効果を実現
する技術が開示されている。
Recently, software that allows a general user to edit an image relatively easily has become widespread. For such software, particularly photo retouching software, there is known a technique of detecting a high-brightness portion of an image, pasting a radial or cross-shaped pattern prepared in advance on the portion, and simulating photographing with a cross filter. Japanese Patent Application Laid-Open No. Hei 6-30373 discloses a pseudo-although good image by photographing at a relatively low exposure at the time of photographing, detecting a high-brightness portion of the obtained image, and pasting a pattern on the portion. A technique for realizing a simple cross filter effect has been disclosed.

【0004】[0004]

【発明が解決しようとする課題】しかしながら、クロス
パターンを貼り付ける方法では、処理後の画像に、いか
にも切って貼ったような不自然な印象が残ることがあ
る。図1は、同図右下の花の高輝度部にクロスパターン
を貼り付けた写真画像を示す。この例でもわかるとお
り、最も輝度が高い部分を検出してその部分にパターン
を貼り付けるため、どうしても作為的な印象が残る。一
方、ある程度輝度が高い点を全て検出してこれら全てに
クロスパターンを貼り付けるためには、検出のために必
要な時間が長く、処理に必要なメモリの容量が大きくな
る。
However, in the method of pasting the cross pattern, an unnatural impression may appear on the processed image as if it were cut and pasted. FIG. 1 shows a photographic image in which a cross pattern is pasted on a high-brightness portion of a flower at the lower right of FIG. As can be seen from this example, since a portion having the highest luminance is detected and a pattern is pasted on that portion, an artificial impression remains. On the other hand, in order to detect all points having high luminance to some extent and paste the cross pattern on all of them, the time required for detection is long, and the memory capacity required for processing is large.

【0005】この発明は上述の課題に鑑みてなされたも
のであり、その目的は、比較的処理時間が短く、必要な
メモリの容量も少なく、かつ処理後により自然な画像を
得ることができる画像補正方法、及びその方法を利用す
ることが可能な画像補正装置を提供することにある。こ
の目的は特許請求の範囲における独立項に記載の特徴の
組合せにより達成される。また従属項は、本発明の具体
的かつ有用な形態を規定する。
SUMMARY OF THE INVENTION The present invention has been made in view of the above-mentioned problems, and has as its object to provide an image processing apparatus capable of obtaining a more natural image after processing with a relatively short processing time and a small memory capacity. An object of the present invention is to provide a correction method and an image correction device that can use the correction method. This object is achieved by a combination of features described in the independent claims. The dependent claims define specific and useful aspects of the present invention.

【0006】[0006]

【課題を解決するための手段】本発明のある形態は、画
像補正装置である。この装置は画像を読み込む画像取得
部と、前記画像を走査してそのデータ値の極値を検出す
る極値検出部と、前記極値近傍において前記データ値を
前記極値の方向に補正するデータ補正部とを含む。ここ
で「極値」は極大値または極小値であり、そのいずれで
あるかは前記データ値の定義による。たとえば、前記デ
ータ値から画像の明度が算出される場合は、極大値を考
えればよい。この構成によれば、まず画像が読み込ま
れ、その画像のデータ値の極値が検出される。極値が検
出されれば、その近傍または付近において画像のデータ
値が補正される。その際、データ値は極値に近づく方向
に補正される。
One embodiment of the present invention is an image correction device. The apparatus includes an image acquisition unit that reads an image, an extreme value detection unit that scans the image to detect an extreme value of the data value, and data that corrects the data value in the direction of the extreme value in the vicinity of the extreme value. And a correction unit. Here, the “extreme value” is a local maximum value or a local minimum value, and which one is defined by the definition of the data value. For example, when the brightness of an image is calculated from the data value, the maximum value may be considered. According to this configuration, first, an image is read, and an extreme value of a data value of the image is detected. If an extreme value is detected, the data value of the image is corrected in or near the extreme value. At that time, the data value is corrected in a direction approaching the extreme value.

【0007】前記データ値の補正量は、前記データ値と
前記極値の差分に応じて定められてもよい。たとえば、
その差分が大きいほど補正量を大きく取ることができ
る。
[0007] The correction amount of the data value may be determined according to a difference between the data value and the extreme value. For example,
The larger the difference is, the larger the correction amount can be.

【0008】この画像処理装置はまた、感度調整部を含
んでもよい。感度調整部は、前記データ値から前記極値
を検出する際、その検出感度を調整する。この画像処理
装置はまた、範囲取得部を備えてもよい。範囲取得部
は、前記極値を探索する範囲に関する指定、または前記
データ値を補正する範囲に関する指定の少なくとも一方
を取得する。その例として、前記データ値から得られる
色度または明度に関する範囲指定がある。範囲指定は、
領域に関するものであってもよく、たとえば画像の中で
極値を探索すべき領域の指定、または前記データ値を補
正すべき領域の指定であってもよい。この画像処理装置
はさらに、走査方向取得部を含んでもよい。その場合、
前記極値検出部は指示された方向について極値を探索す
る。
[0008] The image processing apparatus may further include a sensitivity adjustment unit. The sensitivity adjuster adjusts the detection sensitivity when detecting the extreme value from the data value. The image processing device may further include a range obtaining unit. The range obtaining unit obtains at least one of a specification regarding a range in which the extreme value is searched and a specification regarding a range in which the data value is corrected. As an example, there is a range specification regarding chromaticity or lightness obtained from the data value. The range specification is
It may be related to an area, for example, an area to be searched for an extreme value in an image, or an area to be corrected for the data value may be specified. The image processing device may further include a scanning direction acquisition unit. In that case,
The extremum detection unit searches for an extremum in a designated direction.

【0009】本発明の別の形態は画像補正方法である。
この方法は画像を読み込むステップと、その画像を走査
してそのデータ値の極値を探索するステップと、前記極
値近傍において前記データ値を前記極値の方向に補正す
るステップとを含む。また、これらの方法をコンピュー
タに実行させるプログラムを記録した、コンピュータで
読取可能な記録媒体を提供してもよい。なお以上の発明
の概要は、本発明に必要なすべての特徴を列挙したもの
ではなく、当然ながら、これらの特徴群のサブコンビネ
ーションもまた発明となりうる。
Another embodiment of the present invention is an image correction method.
The method includes the steps of reading an image, scanning the image for an extreme value of the data value, and correcting the data value in the direction of the extreme value near the extreme value. Further, a computer-readable recording medium that records a program for causing a computer to execute these methods may be provided. The above summary of the invention does not list all the features required for the present invention, and naturally, sub-combinations of these feature groups can also constitute the invention.

【0010】[0010]

【発明の実施の形態】以下の実施の形態は、特許請求の
範囲に記載された発明を限定するものではなく、また実
施の形態の中で説明されている特徴の組合せのすべてが
発明の解決手段に必須であるとは限らない。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS The following embodiments do not limit the invention described in the claims, and all combinations of features described in the embodiments are solutions of the invention. It is not always necessary for the means.

【0011】ここで実施の形態に係る画像処理装置を組
み込んだシステムの例として、カラー感熱プリンタを説
明する。そのための予備知識として、まずカラー感熱紙
の概要を述べる。
Here, a color thermal printer will be described as an example of a system incorporating the image processing apparatus according to the embodiment. First, an outline of color thermal paper will be described as preliminary knowledge.

【0012】カラー感熱紙は、例えば支持体のうえにシ
アン、マゼンタ、イエローの各感熱層、および透明保護
層が下からこの順に形成されている。各感熱層を発色さ
せるために加えるべき熱エネルギーは異なり、通常はい
ちばん下のシアン感熱層のエネルギーが最も高く、いち
ばん上のイエロー感熱層のエネルギーが最も低い。この
ため、熱エネルギーを調節して各感熱層を順に発色させ
ることができる。
The color thermosensitive paper has, for example, a thermosensitive layer of cyan, magenta, and yellow, and a transparent protective layer formed on a support in this order from the bottom. The thermal energy to be applied to each heat-sensitive layer to develop a color is different, and the energy of the lowermost cyan heat-sensitive layer is usually the highest, and the energy of the uppermost yellow heat-sensitive layer is usually the lowest. Therefore, the heat energy can be adjusted so that each heat-sensitive layer can be colored sequentially.

【0013】加熱後に得られたイエローとマゼンタの感
熱層の色は、異なる紫外線によって定着する。例えば、
イエロー、マゼンタの感熱層の最大吸収波長はそれぞれ
約420nmと約365nmで、これらの感熱層にそれ
ぞれ対応する最大吸収波長にエネルギーピークをもつ紫
外線を照射すると、色が定着する。定着により、記録済
みの感熱層が次の感熱層の記録中に再発色しなくなる。
The colors of the yellow and magenta heat-sensitive layers obtained after heating are fixed by different ultraviolet rays. For example,
The maximum absorption wavelengths of the yellow and magenta heat-sensitive layers are about 420 nm and about 365 nm, respectively. When the heat-sensitive layers are irradiated with ultraviolet light having an energy peak at the maximum absorption wavelength corresponding to each, the color is fixed. Fixing prevents the recorded thermosensitive layer from re-coloring during the recording of the next thermosensitive layer.

【0014】イエロー、マゼンタ、シアンを記録すると
き、それぞれの色についてバイアス熱エネルギーと階調
熱エネルギーのふたつの熱エネルギーが加えられる。
バイアス熱エネルギーは、各色の感熱層が発色するため
に必要な熱エネルギーより少し低く、記録に先立ちカラ
ー感熱紙に与えられる。バイアス熱エネルギーは、後述
のバイアスデータを参照して定められる。一方、階調熱
エネルギーは、記録すべき色の階調レベルによって定ま
り、バイアス加熱後に印加される。階調熱エネルギー
は、後述の画像データによって決まる。
When yellow, magenta, and cyan are recorded, two thermal energies, bias thermal energy and gradation thermal energy, are applied to each color.
The bias heat energy is slightly lower than the heat energy required for the heat-sensitive layer of each color to develop a color, and is applied to the color heat-sensitive paper prior to recording. The bias thermal energy is determined with reference to bias data described later. On the other hand, the gradation thermal energy is determined by the gradation level of the color to be recorded, and is applied after bias heating. The gradation heat energy is determined by image data described later.

【0015】図1はカラー感熱プリンタの概略構成であ
る。実施の形態に係る画像処理装置は、図2で示すごと
く、主にプリンタ10のコントローラ12とシステムメ
モリ14に格納された画像処理プログラムの協働により
実現される。
FIG. 1 is a schematic configuration of a color thermal printer. The image processing apparatus according to the embodiment is realized mainly by cooperation of the controller 12 of the printer 10 and an image processing program stored in the system memory 14, as shown in FIG.

【0016】プリンタ10は装置全体を制御するコント
ローラ12をもつ。コントローラ12は、例えば汎用の
マイクロプロセッサで構成できる。システムメモリ14
は、プリンタ10の制御プログラム、システムプログラ
ム、その他システム情報を格納する。システムメモリ1
4は、DRAMやSRAMなどで構成してもよいし、F
LASHメモリその他EEPROM(電気的消去および
プログラム可能メモリ)などの不揮発性メモリで構成し
てもよい。この実施の形態では、システムメモリ14の
中に、コントローラ12がサーマルヘッド32の制御の
ために適宜参照するLUT(ルックアップテーブル)が
設けられる。
The printer 10 has a controller 12 for controlling the entire apparatus. The controller 12 can be composed of, for example, a general-purpose microprocessor. System memory 14
Stores a control program of the printer 10, a system program, and other system information. System memory 1
4 may be composed of a DRAM, an SRAM, or the like.
It may be constituted by a nonvolatile memory such as a LASH memory or an EEPROM (electrically erasable and programmable memory). In this embodiment, the system memory 14 is provided with an LUT (lookup table) which the controller 12 refers to appropriately for controlling the thermal head 32.

【0017】コントローラ12は、プリンタ10の各部
と、データバス60およびコントロールバス62で処理
に必要なデータ、コマンド、ステータス等の信号の授受
を行う。コントローラ12は、通信I/F部52を介し
てPCなどの外部機器(図示せず)から印刷要求と印刷
すべき画像データを受け取る。印刷要求に従い、コント
ローラ12はサーマルヘッド32で発生すべき熱エネル
ギーの制御を行う。
The controller 12 sends and receives signals such as data, commands, and status necessary for processing via the data bus 60 and the control bus 62 to and from various parts of the printer 10. The controller 12 receives a print request and image data to be printed from an external device (not shown) such as a PC via the communication I / F unit 52. In accordance with the print request, the controller 12 controls the thermal energy to be generated by the thermal head 32.

【0018】外部装置制御部46は、画像が格納された
メモリカード、フロッピーディスク、ハードディスクな
どの任意の記憶装置や、種々のI/O機能を有するPC
MCIA準拠のカード等(以下総括的に「外部装置」と
いう)を制御する。プリンタ10は、外部装置から印刷
すべき画像データを取得してもよい。
The external device control unit 46 includes an arbitrary storage device such as a memory card, a floppy disk, and a hard disk in which images are stored, and a PC having various I / O functions.
It controls an MCIA-compliant card or the like (hereinafter, collectively referred to as “external device”). The printer 10 may acquire image data to be printed from an external device.

【0019】表示ユニット64は、例えばLCDとその
ドライバを含み、プリンタ10の動作状態や設定状態、
入力されたユーザーの指示等を表示する。操作ユニット
66は、プリンタ10にユーザーの指示を入力するため
のメニューボタン、選択ボタン、数値キー等を含む。タ
ッチパネルを用いる場合、表示ユニット64と操作ユニ
ット66は一体に成形される。
The display unit 64 includes, for example, an LCD and its driver.
Displays the input user's instructions and the like. The operation unit 66 includes a menu button, a selection button, a numerical key, and the like for inputting a user instruction to the printer 10. When a touch panel is used, the display unit 64 and the operation unit 66 are integrally formed.

【0020】画像メモリ16は、イエロー(Y)画像メ
モリ16a、マゼンタ(M)画像メモリ16b、シアン
(C)画像メモリ16cをもつ。各画像メモリ16a〜
16cはそれぞれ対応する色データを格納する。カラー
感熱紙30への記録の際、各色の画像データが画像メモ
リ16から1ラインずつ読み出され、画像ラインメモリ
18に書き込まれる。
The image memory 16 has a yellow (Y) image memory 16a, a magenta (M) image memory 16b, and a cyan (C) image memory 16c. Each image memory 16a-
16c stores corresponding color data. At the time of recording on the color thermal paper 30, image data of each color is read line by line from the image memory 16 and written to the image line memory 18.

【0021】バイアスラインメモリ20は1ライン分の
バイアスデータを保持する。バイアスデータは、例えば
多数存在する発熱素子(後述)の抵抗値のバラツキを補
正するために、発熱素子毎に設定される。
The bias line memory 20 holds one line of bias data. The bias data is set for each heating element, for example, in order to correct a variation in resistance values of a large number of heating elements (described later).

【0022】ストローブ回路24はコントローラ12の
指示に従い、所定のデューティ比をもつストローブパル
スを発生し、これをヘッド駆動部26に送る。セレクタ
22はまずバイアスラインメモリ20から1ライン分の
バイアスデータを読み出し、ヘッド駆動部26に送る。
つづいて画像ラインメモリ18から1ライン分の画像デ
ータを読み出し、ヘッド駆動部26に送る。
The strobe circuit 24 generates a strobe pulse having a predetermined duty ratio in accordance with an instruction from the controller 12, and sends the generated strobe pulse to the head drive unit 26. The selector 22 first reads one line of bias data from the bias line memory 20 and sends it to the head drive unit 26.
Subsequently, one line of image data is read from the image line memory 18 and sent to the head drive unit 26.

【0023】ヘッド駆動部26は、ライン毎にバイアス
データおよび画像データに対応する発熱を起因する駆動
データを発生する。駆動データと前述のストローブパル
スとの間で論理積がとられ、駆動パルスが出力される。
駆動データが「1」のとき駆動パルスも「1」となり、
サーマルヘッド32の各発熱素子について設けられたト
ランジスタを駆動する。これにより各発熱素子が発熱す
る。
The head drive unit 26 generates drive data due to heat generation corresponding to bias data and image data for each line. An AND operation is performed between the drive data and the above-described strobe pulse, and a drive pulse is output.
When the drive data is “1”, the drive pulse also becomes “1”,
A transistor provided for each heating element of the thermal head 32 is driven. As a result, each heating element generates heat.

【0024】ローラ対36はパルスモータ48によって
双方向に回転し、カラー感熱紙30を搬送路において往
復動作させる。このほかにも、図示しないローラ対によ
り、カラー感熱紙30の搬送路が形成されている。搬送
路の上面にはサーマルヘッド32が配され、これと対向
する搬送路下面にプラテンローラ44が設けられる。
The roller pair 36 is bidirectionally rotated by a pulse motor 48, and causes the color thermal paper 30 to reciprocate in the transport path. In addition, a transport path for the color thermal paper 30 is formed by a pair of rollers (not shown). A thermal head 32 is disposed on the upper surface of the transport path, and a platen roller 44 is provided on the lower surface of the transport path opposite to the thermal head 32.

【0025】サーマルヘッド32は、カラー感熱紙の幅
の方向にライン状に配された発熱素子アレイ32aをも
つ。このアレイは多数の発熱素子を含む。サーマルヘッ
ド32は、プラテンローラ44上のカラー感熱紙30に
発熱素子アレイ32aを圧接する第1の位置と、それら
の間隔をおく第2の位置を有する。サーマルヘッド32
は、カラー感熱紙30の搬送中にラインごとに1色ずつ
画像を記録し、カラー感熱紙30が3回往復するとカラ
ー画像が完成する。なお、色毎にサーマルヘッドを設け
てもよく、その場合、1回の往復でカラー画像が完成す
る。
The thermal head 32 has a heating element array 32a arranged linearly in the width direction of the color thermal paper. This array includes a number of heating elements. The thermal head 32 has a first position at which the heating element array 32a is pressed against the color thermal paper 30 on the platen roller 44, and a second position at which a space is provided between them. Thermal head 32
Prints an image for each color for each line while the color thermal paper 30 is being conveyed, and when the color thermal paper 30 reciprocates three times, a color image is completed. Note that a thermal head may be provided for each color, in which case a color image is completed by one reciprocation.

【0026】ローラ対36から見て搬送路の先にイエロ
ー定着部40とマゼンタ定着部42が設けられる。イエ
ロー定着部40とマゼンタ定着部42は、それぞれ前述
のエネルギーピークを有する紫外線を放射する紫外線ラ
ンプ40a、42aをもつ。ランプ駆動部28は、イエ
ローの記録時はイエロー用の紫外線ランプ40aのみ、
またマゼンタの記録時はマゼンタ用の紫外線ランプ42
bのみをそれぞれ点灯させる。
A yellow fixing section 40 and a magenta fixing section 42 are provided at the end of the conveying path when viewed from the roller pair 36. The yellow fixing unit 40 and the magenta fixing unit 42 respectively have ultraviolet lamps 40a and 42a that emit ultraviolet light having the above-described energy peak. The lamp driving unit 28 is configured such that at the time of yellow recording, only the ultraviolet lamp 40a for yellow is used.
When recording magenta, an ultraviolet lamp 42 for magenta is used.
Only b is turned on.

【0027】イエロー定着部40には、紫外線強度を測
定する照度センサ50が設けられている。照度センサ5
0の測定信号は、コントローラ12に送られ、必要な照
度補正が行われる。なお、感熱層の積層の順番が異なる
ときでも、最も上の層を定着する紫外線の照射量に基づ
いて、次に記録する中間層の発色熱エネルギーを調節す
ればよい。
The yellow fixing section 40 is provided with an illuminance sensor 50 for measuring the intensity of ultraviolet rays. Illuminance sensor 5
The measurement signal of 0 is sent to the controller 12, where necessary illuminance correction is performed. Even when the order of lamination of the heat-sensitive layers is different, the coloring heat energy of the intermediate layer to be recorded next may be adjusted based on the irradiation amount of the ultraviolet ray for fixing the uppermost layer.

【0028】図2は、プリンタ10に組み込まれた画像
補正装置100の概略構成を示す。この装置は、たとえ
ばデジタルカメラで撮影されたデジタル画像に適用でき
る。その場合、デジタル画像の高輝度部を検出し、その
周囲の輝度を検出された高輝度部の輝度に近づけること
により、擬似的にクロスフィルタ効果を発生させること
ができる。
FIG. 2 shows a schematic configuration of the image correction apparatus 100 incorporated in the printer 10. This device can be applied, for example, to digital images taken by a digital camera. In that case, a high-luminance portion of the digital image is detected, and the luminance around the high-luminance portion is approximated to the luminance of the detected high-luminance portion, whereby a pseudo cross filter effect can be generated.

【0029】画像補正装置100は、データバス60か
ら画像データを取得する画像取得部102と、取得され
た画像データを走査することにより、そのデータ値の極
値を検出する極値検出部104と、検出された極値の近
傍において画像データ値を極値の方向に補正するデータ
補正部108と、極値を検出する際にその検出感度を調
整する感度調整部106と、極値の検出またはデータの
補正にユーザーの範囲指定を反映させる範囲指定部11
0と、極値を検出する際に画像データを走査する方向を
取得する走査方向取得部112を含む。感度調整部10
6、範囲指定部110及び走査方向取得部112はとも
に、ユーザーの指示を操作ユニット66を介して取得す
る。補正後の画像データはデータ補正部108から再び
データバス60へ出力される。画像補正装置110の各
構成要素は、ソフトウェアモジュールで構成されてもよ
く、ハードウェアデバイスで構成されてもよく、それら
の任意の組合せで構成されてもよい。また、画像の走査
を極値検出部104ではなく画像取得部102で行って
もよく、検出感度の調整を感度調整部106ではなく極
値検出部104の中で一体的に行ってもよい。同様のこ
とはデータの補正についてもいえ、この処理を極値検出
部104の中で行ってもよい。そうした構成の方法は、
たとえばソフトウェアの設計に依存するものであり、設
計の自由度の高さは当業者には容易に理解されるところ
である。
The image correction apparatus 100 includes an image acquisition unit 102 that acquires image data from the data bus 60, an extreme value detection unit 104 that scans the acquired image data, and detects an extreme value of the data value. A data correction unit 108 for correcting the image data value in the direction of the extreme value in the vicinity of the detected extreme value, a sensitivity adjusting unit 106 for adjusting the detection sensitivity when detecting the extreme value, and detecting or detecting the extreme value. Range specification unit 11 for reflecting the user's range specification in data correction
0 and a scanning direction acquisition unit 112 for acquiring a direction in which image data is scanned when an extreme value is detected. Sensitivity adjuster 10
6. The range designation unit 110 and the scanning direction acquisition unit 112 both acquire the user's instruction via the operation unit 66. The corrected image data is output from the data correction unit 108 to the data bus 60 again. Each component of the image correction apparatus 110 may be configured by a software module, may be configured by a hardware device, or may be configured by an arbitrary combination thereof. Further, the scanning of the image may be performed by the image acquisition unit 102 instead of the extreme value detection unit 104, and the adjustment of the detection sensitivity may be integrally performed by the extreme value detection unit 104 instead of the sensitivity adjustment unit 106. The same applies to the correction of data, and this processing may be performed in the extreme value detection unit 104. The method of such a configuration is
For example, it depends on software design, and the degree of freedom in design is easily understood by those skilled in the art.

【0030】図4は、画像補正装置110によるデータ
補正の手順を示すフローチャートである。図3の各構成
要素と図4の処理の対応関係の概略を示せば、画像取得
部102は図4の処理S10を行う。極値検出部104
は、図4の処理S12、S14、S18、S24、S2
8、及びS30を行う。感度調整部106は、図4の処
理S16及びS26を行う。範囲指定部110及び走査
方向取得部112はともに極値検出部104に作用し、
図4の処理S28及びS30に影響する。
FIG. 4 is a flowchart showing the procedure of data correction by the image correction device 110. If the outline of the correspondence relationship between each component in FIG. 3 and the processing in FIG. 4 is shown, the image acquisition unit 102 performs the processing S10 in FIG. Extreme value detection unit 104
Correspond to the processes S12, S14, S18, S24, S2 in FIG.
8 and S30. The sensitivity adjustment unit 106 performs the processing S16 and S26 of FIG. Both the range designation unit 110 and the scanning direction acquisition unit 112 act on the extreme value detection unit 104,
This affects the processes S28 and S30 in FIG.

【0031】図4のごとく、まず画像処理部102がデ
ータバス60から処理すべき画像データを取得する(S
10)。極値検出部104は、極値の検出及びデータの
補正に関与するパラメータmaxを0に初期設定する
(S12)。つづいて極値検出部104は、取得された
画像データの最初の画素についてその輝度Yの読込を行
う(S14)。
As shown in FIG. 4, first, the image processing unit 102 acquires image data to be processed from the data bus 60 (S
10). The extreme value detection unit 104 initializes a parameter max related to the detection of the extreme value and the correction of the data to 0 (S12). Next, the extreme value detection unit 104 reads the luminance Y of the first pixel of the acquired image data (S14).

【0032】図5は、画像120において極値を検出す
るための走査方向122を示す。この例では、x軸の方
向に2回の走査が行われる。これら2回の走査の方向は
180°異なっている。
FIG. 5 shows a scanning direction 122 for detecting extrema in an image 120. In this example, two scans are performed in the direction of the x-axis. The directions of these two scans differ by 180 °.

【0033】図6は、図5の走査方向で得られるべき画
像の特殊効果を示す。ここでは高輝度部130が図5の
走査方向にしたがってふたつの光の帯132を持つよう
補正される。すなわち、この光の帯132が疑似フィル
タによる光のにじみであり、後述するごとく四つの方向
に走査を行えば擬似的なクロスフィルタの効果を得るこ
とができる。
FIG. 6 shows the special effects of the image to be obtained in the scanning direction of FIG. Here, the correction is performed so that the high luminance portion 130 has two light bands 132 in the scanning direction in FIG. In other words, this light band 132 is the light bleeding by the pseudo filter, and the effect of the pseudo cross filter can be obtained by scanning in four directions as described later.

【0034】図7は、画像データの最初の数画素の輝度
Yを示す。ここでは画素のアドレスとしてa0〜a9を
挙げている。アドレスa4の画素の輝度Y4は他の全て
のアドレスの画素の輝度Y0に比べ突出しているとす
る。図4の処理S14により、極値検出部104は最初
の画素であるアドレスa0の画素の輝度Y0を読み込
む。
FIG. 7 shows the luminance Y of the first few pixels of the image data. Here, a0 to a9 are listed as pixel addresses. It is assumed that the luminance Y4 of the pixel at the address a4 is higher than the luminance Y0 of the pixels at all other addresses. By the process S14 in FIG. 4, the extreme value detection unit 104 reads the luminance Y0 of the pixel at the address a0, which is the first pixel.

【0035】つづいて感度調整部106により、パラメ
ータmaxに感度パラメータαを掛け、これを新たなパ
ラメータmaxとする(S16)。最初の画素a0につ
いては、S12においてパラメータmaxを0としたた
め、S16によって得られる新たなパラメータmaxも
0である。ここでαは、α=2/3と仮定する。
Subsequently, the sensitivity adjusting unit 106 multiplies the parameter max by the sensitivity parameter α, and sets this as a new parameter max (S16). For the first pixel a0, since the parameter max is set to 0 in S12, the new parameter max obtained in S16 is also 0. Here, α is assumed to be α = 2.

【0036】次に極値検出部104により、現在の画素
の輝度Yとパラメータmaxの値が比較される(S1
8)。いま、Y>maxであるから処理はS24に進
み、アドレスa0の画素の輝度Y0が新たなパラメータ
maxの値として格納される。つづいて感度調整部10
6により、感度パラメータαが調整される。次に感度調
整部106により、感度パラメータαの調整がなされる
(S26)。ただしここでは、αは2/3のままとし、
αを変動させる例は後述する。
Next, the extreme value detecting unit 104 compares the current luminance Y of the pixel with the value of the parameter max (S1).
8). Now, since Y> max, the process proceeds to S24, and the luminance Y0 of the pixel at the address a0 is stored as a new value of the parameter max. Subsequently, the sensitivity adjustment unit 10
6, the sensitivity parameter α is adjusted. Next, the sensitivity parameter α is adjusted by the sensitivity adjustment unit 106 (S26). However, here, α is kept at 2/3,
An example of changing α will be described later.

【0037】つづいて極値検出部104により、いま処
理した画素が処理すべき最後の画素であるかどうか判定
する(S30)。処理すべき画素はまだ存在するため、
処理はS28に移る。ここで画素のアドレスがインクリ
メントされ、S14に戻り、次の画素であるアドレスa
1の輝度Yが読み込まれる。S16において、現在パラ
メータmaxはY0であるから、新たなパラメータma
xはY0×2/3となる。一方現在の画素の輝度YはY
0であるから、S18において処理は再びS24に分岐
し、以下S26、S30、S28の処理を経てS14に
戻る。
Subsequently, the extremum detector 104 determines whether the pixel just processed is the last pixel to be processed (S30). Since there are still pixels to process,
The process proceeds to S28. Here, the address of the pixel is incremented, and the process returns to S14, where the address a of the next pixel is
The luminance Y of 1 is read. In S16, since the current parameter max is Y0, a new parameter ma is set.
x becomes Y0 × 2/3. On the other hand, the luminance Y of the current pixel is Y
Since it is 0, the process branches to S24 again in S18, and returns to S14 through the processes of S26, S30, and S28.

【0038】同様の処理はアドレスa4までつづく。ア
ドレスa4に関する処理S24において、パラメータm
axの値はY4となる。つづくアドレスa5の画素の読
込がなされた後、S18の処理は初めてS20へ分岐す
る。S20では、データ補正部108により現在の画素
a5の輝度Y5が補正される。ここでは、Y5+β(m
ax−Y5)を新たなY5とする。すなわち、極値に関
するパラメータmaxと現在の輝度Yの差分に応じた補
正量が現在の輝度に加えられる。βはいろいろな値を取
りうるが、ここではたとえば1/2とする。この後、デ
ータ補正部108はY5の値を新たなY5の値に更新す
る(S22)。
The same processing is continued up to the address a4. In the processing S24 relating to the address a4, the parameter m
The value of ax is Y4. After the subsequent reading of the pixel at the address a5, the process of S18 branches to S20 for the first time. In S20, the data correction unit 108 corrects the current luminance Y5 of the pixel a5. Here, Y5 + β (m
ax-Y5) is set as a new Y5. That is, a correction amount according to the difference between the parameter max regarding the extremum and the current luminance Y is added to the current luminance. β can take various values, but here, for example, is set to 2. Thereafter, the data correction unit 108 updates the value of Y5 to a new value of Y5 (S22).

【0039】図8は、一点鎖線で示されるパラメータm
axの軌跡140と、データの補正の関係を示す。アド
レスa5の画素の輝度Y5(=Y0)は、S20の処理
によりY’5へ引き上げられている。同様の処理はアド
レスa6およびa7の画素についても行われ、それぞれ
Y’6、Y’7へ輝度が引き上げられている。パラメー
タmaxの値は画素のアドレスがインクリメントされる
たびにS16の処理により、2/3に減少していく。図
8の例では、S16の処理によって得られる新たなパラ
メータmaxの値がY0を下回り、その結果、アドレス
a8及びa9の画素に関する処理がアドレスa0、a1
等の処理と同様になる。以上で、ひとつの走査方向に関
する処理が終了する。
FIG. 8 shows a parameter m indicated by a dashed line.
The relationship between the locus 140 of ax and data correction is shown. The luminance Y5 (= Y0) of the pixel at the address a5 has been raised to Y'5 by the processing in S20. Similar processing is performed for the pixels at addresses a6 and a7, and the luminance is increased to Y'6 and Y'7, respectively. The value of the parameter max is reduced to 2/3 by the processing of S16 every time the address of the pixel is incremented. In the example of FIG. 8, the value of the new parameter max obtained by the processing of S16 falls below Y0, and as a result, the processing for the pixels at addresses a8 and a9 is performed at addresses a0 and a1.
And so on. Thus, the processing for one scanning direction is completed.

【0040】図9は、ひとつの走査方向に関するデータ
補正が終了したときの各画素の輝度を表す。同図のごと
く、アドレスa4の画素の輝度Yが極大値を取るため、
それ以降のアドレスa5、a6、a7の画素の輝度Yが
それぞれ引き上げられている。アドレスa4に近いほど
パラメータmaxの値が大きいため、アドレスa4に近
い画素、すなわちアドレスa5に対してより大きなデー
タの補正が行われている。
FIG. 9 shows the luminance of each pixel when data correction in one scanning direction is completed. As shown in the figure, since the luminance Y of the pixel at the address a4 takes a maximum value,
The luminance Y of the pixels at the subsequent addresses a5, a6, and a7 is increased. Since the value of the parameter max is larger as the address is closer to the address a4, a larger data is corrected for a pixel closer to the address a4, that is, the address a5.

【0041】つづいて図4の処理は逆向きの走査方向に
ついて行われる。図10は、走査方向を逆にしたときの
パラメータmaxの軌跡140とデータの補正の関係を
示す。いま回、図4の処理はアドレスa9から順にアド
レスa0まで行われる。アドレスa9からアドレスa4
に至る間、S16の処理によって得られる新たなパラメ
ータmaxよりも、それぞれのアドレスにおける画素の
輝度Yの方が大きいため、パラメータmaxの軌跡14
0は現在の画素の輝度Yを結んだ線となる。
Subsequently, the processing of FIG. 4 is performed for the reverse scanning direction. FIG. 10 shows the relationship between the locus 140 of the parameter max and the data correction when the scanning direction is reversed. This time, the processing of FIG. 4 is performed sequentially from the address a9 to the address a0. Address a9 to address a4
, The luminance Y of the pixel at each address is greater than the new parameter max obtained by the processing of S16, so the locus 14 of the parameter max
0 is a line connecting the luminance Y of the current pixel.

【0042】一方処理がアドレスa3に進んだとき、パ
ラメータmaxの値がアドレスa3の輝度Y3(=Y
0)よりも大きくなる。このため、S20の処理によっ
てアドレスa3の輝度Y3がY’3へ引き上げられる。
この補正量は、図8においてアドレスa5の画素に対し
て与えられた補正量と同じである。同様に、アドレスa
2に対してアドレスa6と同じ補正量が与えられ、アド
レスa1の画素に対してアドレスa7と同じ補正量が与
えられる。アドレスa0においてパラメータmaxの値
はY0に落ち着くため、アドレスa0に対するデータの
補正は行われず、一連の補正処理が完了する。
On the other hand, when the processing proceeds to the address a3, the value of the parameter max is changed to the luminance Y3 (= Y
0). Therefore, the luminance Y3 of the address a3 is raised to Y'3 by the processing of S20.
This correction amount is the same as the correction amount given to the pixel at address a5 in FIG. Similarly, address a
2, the same correction amount as the address a6 is given, and the pixel at the address a1 is given the same correction amount as the address a7. Since the value of the parameter max is settled at Y0 at the address a0, the data correction for the address a0 is not performed, and a series of correction processing is completed.

【0043】図11は、ふたつの走査方向に対するデー
タ補正が完了した結果得られた各画素の輝度Yを示す。
同図のごとく、アドレスa4の画素値、すなわち輝度の
極大値を中心にその近傍の画素の輝度が前記極大値の方
向へ補正されていることがわかる。
FIG. 11 shows the luminance Y of each pixel obtained as a result of completing the data correction in the two scanning directions.
As shown in the figure, it can be seen that the pixel value at the address a4, that is, the luminance of the neighboring pixels centered on the maximum value of the luminance is corrected in the direction of the maximum value.

【0044】図12(a)(b)(c)は、それぞれ異
なる走査方向150、152、154について得られる
擬似的なフィルタ効果を示す。図12(a)では、上か
ら下および下から上のふたつの方向に走査が行われ、そ
の結果、画像の高輝度部130の光の帯132が上下ふ
たつの方向へ形成されている。図12(b)では、右方
向のひとつの走査により、高輝度部130の光の帯13
2が右方向のみに形成されている。図12(c)では、
斜めの四つの方向に走査が行われ、高輝度部130の光
の帯132が走査方向にしたがって四つの方向にのびて
いる。このようにユーザが光の帯132をのばしたい方
向にしたがって走査方向を定めることにより、所望の特
殊効果を得ることが容易となる。この実施形態によれ
ば、画像を走査するというきわめて単純な処理に伴って
擬似的なフィルタ効果を得ることができるため、処理速
度及び処理に要するメモリ容量の両面できわめて有利で
ある。また、もともと画像に含まれていた輝度の極大値
を中心になめらかなデータ補正が実現するため、きわめ
て自然なデータ補正が実現する。
FIGS. 12A, 12B and 12C show pseudo filter effects obtained for different scanning directions 150, 152 and 154, respectively. In FIG. 12A, scanning is performed in two directions from the top to the bottom and from the bottom to the top, and as a result, light bands 132 of the high-luminance portion 130 of the image are formed in the two directions. In FIG. 12B, one scan in the right direction causes the light band 13
2 is formed only in the right direction. In FIG. 12C,
Scanning is performed in four oblique directions, and a light band 132 of the high-luminance part 130 extends in four directions according to the scanning direction. As described above, by setting the scanning direction according to the direction in which the user wants to extend the light band 132, it is easy to obtain a desired special effect. According to this embodiment, a pseudo filter effect can be obtained in conjunction with the very simple process of scanning an image, which is extremely advantageous in both processing speed and memory capacity required for processing. Also, since smooth data correction is realized centering on the maximum value of luminance originally included in the image, extremely natural data correction is realized.

【0045】以上の処理において、ユーザーは範囲指定
部110を介してデータの補正をより詳細に指定するこ
とができる。たとえば、画像の一部の領域を指定するこ
とにより、その領域内に含まれる画素のみを走査してデ
ータを補正することができる。その場合、図1の画像に
おいて、たとえば花畑の部分のみを指定することによ
り、たとえば木の間から射し込む光についてフィルタ処
理を施さないことができる。別の例として、画像の走査
は画像全体に行うものの、実際にデータを補正すべき画
像領域だけを指定する場合が考えられる。その場合、ユ
ーザーはいろいろな領域を指定しながらデータ補正の効
果を確認することができる。
In the above processing, the user can specify data correction in more detail via the range specifying section 110. For example, by designating a partial area of an image, data can be corrected by scanning only pixels included in that area. In this case, for example, by designating only the flower garden portion in the image of FIG. 1, it is possible not to perform the filtering process on the light radiated from between the trees, for example. As another example, it is conceivable that scanning of an image is performed on the entire image, but only an image area where data is to be actually corrected is specified. In that case, the user can confirm the effect of the data correction while designating various regions.

【0046】範囲指定部110によるさらに別の例とし
て、補正すべき画素の明度の範囲の指定がある。たとえ
ば、ある画素の輝度がその近傍において極大値をとって
も、その値自身が非常に小さな場合その近傍の画素につ
いてデータの補正をスキップしてもよい。その場合、あ
まり輝度が高くない画素について過度にフィルタ効果が
施されなくなり、画像全体の鮮明度を保つことが可能に
なる。さらに別の例として、色度に関する範囲指定も可
能である。
As another example of the range designating section 110, there is designating a range of brightness of pixels to be corrected. For example, even if the luminance of a certain pixel has a local maximum value in the vicinity thereof, if the value itself is extremely small, the correction of data for the pixels in the vicinity may be skipped. In that case, the filter effect is not excessively applied to the pixels whose luminance is not so high, and the sharpness of the entire image can be maintained. As yet another example, a range can be specified for chromaticity.

【0047】図13は、感度パラメータαを調整する規
則を示す。ここでは、パラメータmaxが8ビットのデ
ータであり、0〜255の値を取るとする。感度パラメ
ータαは、パラメータmaxが0〜128にあるとき一
定値160/256となり、パラメータmaxが128
〜240にあるとき160/256から250/256
へ一定の割合で上昇し、パラメータmaxが240〜2
55にあるとき一定値250/256を取るとする。し
たがって、現在処理中の画素の輝度が大きいほど感度パ
ラメータαの値は大きくなり(S16)、データの補正
量も大きく取ることができる(S20)。
FIG. 13 shows a rule for adjusting the sensitivity parameter α. Here, it is assumed that the parameter max is 8-bit data and takes a value of 0 to 255. The sensitivity parameter α has a constant value of 160/256 when the parameter max is in the range of 0 to 128, and the parameter max is 128.
160/256 to 250/256 when at ~ 240
And the parameter max is 240 to 2
When it is at 55, it is assumed that a constant value of 250/256 is taken. Therefore, the value of the sensitivity parameter α increases as the luminance of the pixel currently being processed increases (S16), and the data correction amount can be increased (S20).

【0048】図14は、図4のS26の処理において感
度パラメータαが図13にしたがって調整された場合に
得られるパラメータmaxの軌跡140を示す。ここ
で、アドレスa4の画素の輝度Y4は十分に大きな値で
あるとする。この場合、アドレスa4付近では感度パラ
メータαは比較的「1」に近いため、パラメータmax
の下降量が少ない。しかし、パラメータmaxの値が下
がるに従い、S26及びS16の処理により、パラメー
タmaxの下降量が次第に大きくなる。図14では、ア
ドレスa0及びa8においてパラメータmaxの値がY
0に戻る例を示している。
FIG. 14 shows a locus 140 of the parameter max obtained when the sensitivity parameter α is adjusted according to FIG. 13 in the process of S26 in FIG. Here, it is assumed that the luminance Y4 of the pixel at the address a4 is a sufficiently large value. In this case, since the sensitivity parameter α is relatively close to “1” near the address a4, the parameter max is
Is small. However, as the value of the parameter max decreases, the amount of decrease of the parameter max gradually increases due to the processing of S26 and S16. In FIG. 14, the value of the parameter max is Y at addresses a0 and a8.
The example which returns to 0 is shown.

【0049】図15は、図14のパラメータmaxの値
にしたがって補正された各画素の輝度を示す。同図のご
とく、アドレスa4に近い画素ほど図11の処理に比べ
てより大きな補正量が与えられており、全体に擬似的な
フィルタ効果を大きく取ることができる。この方法のメ
リットは、より大きな極大値を持つ画素の近傍のデータ
補正量を大きく取ることができ、さほど大きくない極値
を持つ画素の近傍におけるデータ補正量を小さく取るこ
とができる点にある。すなわち、画像においてより輝き
が大きな部分に大きなフィルタ効果、つまりより長い光
の帯を与えることができる。この結果、さらにめりはり
のある特殊効果が実現する。
FIG. 15 shows the luminance of each pixel corrected according to the value of the parameter max in FIG. As shown in the figure, a pixel closer to the address a4 is given a larger correction amount than the processing in FIG. 11, and a large pseudo filter effect can be obtained as a whole. The merit of this method is that a large amount of data correction can be taken in the vicinity of a pixel having a larger maximum value, and a small amount of data correction can be taken in the vicinity of a pixel having a not-so-large extreme value. That is, a large filter effect, that is, a longer band of light can be given to a portion where the brightness is larger in the image. As a result, a more special effect is realized.

【0050】図16は、色相も考慮したデータ補正の手
順を示すフローチャートである。同図において図3と同
じ処理には同じ符号を与え適宜その説明を省略する。図
16における新たな処理は、極値検出部104における
色相の判断(S40)である。この処理は、画像の持つ
局所的近似性に着目して、非常に簡潔な手順でありなが
ら高い効果を生むものである。すなわち、S18におい
て現在処理中の画素の輝度がパラメータmaxより大き
い場合であっても(S18のN)、その色相が目的の色
相でなければ(S40のN)、処理をスキップして次の
アドレスへ移動する点にある。この場合、パラメータm
axの値は更新されずに比較的小さな値にとどまるた
め、次の画素についてS18で輝度Yがパラメータma
xを下回る(S18のY)ことが少なくなり、その結果
データの補正(S20)が発生しにくくなる。一方S4
0において処理中の画素が目的の色相を持っていると判
断されたとき(S40のY)、パラメータmaxの値が
増加される(S24)。このため、次の画素についてS
18からS20へ分岐する確率が高くなり、データの補
正が発生しやすくなる。画像を局所的に調べると、一般
に隣接し合う画素のデータ値は一般に近似性が高いた
め、図16の処理により高い輝度を有し、かつ目的の色
相に入る画素を中心にフィルタ効果を実現することがで
きる。
FIG. 16 is a flowchart showing the procedure of data correction taking into account hue. In this figure, the same processes as those in FIG. The new process in FIG. 16 is the determination of the hue by the extreme value detection unit 104 (S40). This process focuses on the local approximation of the image, and is a very simple procedure that produces a high effect. That is, even if the luminance of the pixel currently being processed is larger than the parameter max in S18 (N in S18), if the hue is not the target hue (N in S40), the processing is skipped and the next address is skipped. To move to the point. In this case, the parameter m
Since the value of ax remains relatively small without being updated, the luminance Y is set to the parameter ma in S18 for the next pixel.
x (Y in S18) is reduced, and as a result, data correction (S20) is less likely to occur. Meanwhile S4
When it is determined that the pixel being processed has the target hue at 0 (Y in S40), the value of the parameter max is increased (S24). Therefore, for the next pixel, S
The probability of branching from S18 to S20 is increased, and data correction is more likely to occur. When an image is locally examined, generally, data values of adjacent pixels generally have a high degree of similarity. Therefore, the processing of FIG. 16 realizes a filtering effect centering on pixels having higher luminance and entering a target hue. be able to.

【0051】いま、目的の色相をおおよそ緑として説明
する。このため、まず色相の角度表示を定義する。いま
画像データがそれぞれ8ビットの輝度および色差Y、C
r、Cbで表されているとする。これらのパラメータと
RGBの変換式は一般に、
Now, description will be made assuming that the target hue is approximately green. Therefore, first, the hue angle display is defined. Now, the image data is 8-bit luminance and color difference Y, C respectively.
It is assumed that they are represented by r and Cb. These parameters and RGB conversion equations are generally

【0052】Y=0.2990R+0.5870G+0.1140B Cr=0.5000R−0.4187G−0.0813B+128 Cb=−0.1687R−0.3313G−0.5000B+128 である。ここでCrとCbの「128」は、データを8
ビットの0〜255で表す便宜のために足されている。
したがって本実施形態で用いる色相の座標軸の例とし
て、 cr=Cr−128 cb=Cb−128 をとることができ、色相の角度表示φは、 φ=tan−1(cr/cb) と定義できる。一方、輝度rrは、 rr=(cr+cb1/2 と記述できる。ここで、たとえば190°<φ<260
°かつrr>15の時、目的の色相であると判断するこ
とができる。この方法によれば、ある特定の色の画素に
ついてのみ擬似的なフィルタ効果を加えることができ、
ユーザーの特殊効果に対する多様な要望を満たすことが
できる。
Y = 0.2990R + 0.5870G + 0.1140B Cr = 0.5000R−0.4187G−0.0813B + 128 Cb = −0.1687R−0.3313G−0.5000B + 128 Here, “128” of Cr and Cb indicates that the data is 8
It is added for convenience represented by bits 0 to 255.
Therefore, cr = Cr-128 cb = Cb-128 can be taken as an example of the hue coordinate axes used in the present embodiment, and the hue angle indication φ can be defined as φ = tan −1 (cr / cb). On the other hand, the luminance rr can be described as rr = (cr 2 + cb 2 ) 1/2 . Here, for example, 190 ° <φ <260
When ° and rr> 15, it can be determined that the target hue is obtained. According to this method, it is possible to add a pseudo filter effect only to pixels of a specific color,
It can satisfy various demands of users for special effects.

【0053】以上、実施の形態を説明したが、本発明の
技術的な範囲はこれらの記載には限定されない。これら
の実施の形態に多様な変更または改良を加えうることは
当業者には理解されるところである。
Although the embodiments have been described above, the technical scope of the present invention is not limited to these descriptions. It is understood by those skilled in the art that various changes or improvements can be made to these embodiments.

【0054】第一の変形例として、実施の形態では画素
の輝度に着目した。しかしこれは画素の色度、明度、そ
の他いろいろな属性であってもよい。いろいろな属性を
選択することにより、様々な特殊効果を得ることができ
る。また、データ補正する単位も画素である必要がな
く、たとえばある程度広がりのある画像領域やブロック
であっても差し支えはない。
As a first modification, the embodiment focuses on the luminance of pixels. However, this may be the chromaticity, brightness, or other various attributes of the pixel. By selecting various attributes, various special effects can be obtained. Further, the unit for data correction does not need to be a pixel, and may be, for example, an image area or a block having a certain extent.

【0055】第二の変形例として、色相の判断のために
色相の角度表示φ及びCr、Cbのテーブルをあらかじ
め作成し、計算時間の短縮をはかってもよい。
As a second modification, a table of hue angle display φ, Cr, and Cb may be created in advance for hue determination to shorten the calculation time.

【0056】第三の変形例として、図4においてデータ
補正(S20)の際に用いたパラメータβの値も可変と
してもよい。この場合も、たとえばパラメータmaxと
現在の輝度Yの差分が大きいほど、パラメータβの値を
大きくするなど、任意の設定が可能である。
As a third modification, the value of the parameter β used at the time of data correction (S20) in FIG. 4 may be variable. Also in this case, any setting can be made, such as increasing the value of the parameter β as the difference between the parameter max and the current luminance Y increases.

【0057】第四の変形例として、実施の形態はカラー
感熱プリンタへの適用を考えたが、これは当然他のタイ
プのプリンタでもよいし、プリンタ以外のデジタルカメ
ラ等の画像関連機器や、広くコンピュータ一般であって
もよい。たとえば、パーソナルコンピュータに実施の形
態の処理を行うプログラムをインプリメントして実現す
ることもできる。このプログラムはフロッピーディスク
等の記憶媒体で提供することができる。デジタルカメラ
に適用する場合、本実施の形態のデータ補正は、デジタ
ルカメラで撮影した画像の他、デジタルカメラにメモリ
カード等から読み込まれた画像について適用してもよ
い。
As a fourth modification, the embodiment has been considered for application to a color thermal printer. However, this may naturally be another type of printer, an image-related device such as a digital camera other than a printer, or a wide variety of devices. It may be a general computer. For example, the present invention can also be realized by implementing a program for performing the processing of the embodiment on a personal computer. This program can be provided on a storage medium such as a floppy disk. When applied to a digital camera, the data correction of the present embodiment may be applied to an image read from a memory card or the like into the digital camera, in addition to an image captured by the digital camera.

【0058】[0058]

【実施例】図17は、本実施の形態によるデータ補正を
図1に示した画像のオリジナル画像に施した結果を示
す。同図のごとく、非常に自然かつ効果的な画像を得る
ことができた。
FIG. 17 shows the result of applying the data correction according to the present embodiment to the original image of the image shown in FIG. As shown in the figure, a very natural and effective image was obtained.

【0059】[0059]

【発明の効果】本発明によれば、比較的処理時間が短
く、比較的少ないメモリ量で、自然かつ効果的な画像補
正技術が実現する。
According to the present invention, a natural and effective image correction technique can be realized with a relatively short processing time and a relatively small memory amount.

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

【図1】従来のデータ補正技術によって補正された画像
をディスプレイ上に表示した中間調画像を示す写真であ
る。
FIG. 1 is a photograph showing a halftone image in which an image corrected by a conventional data correction technique is displayed on a display.

【図2】実施の形態に係るカラー感熱プリンタの構成図
である。
FIG. 2 is a configuration diagram of a color thermal printer according to the embodiment.

【図3】実施の形態に係る画像補正装置の構成図であ
る。
FIG. 3 is a configuration diagram of an image correction device according to an embodiment.

【図4】実施の形態に係る画像補正装置によるデータ補
正の処理手順を示すフローチャートである。
FIG. 4 is a flowchart illustrating a data correction processing procedure performed by the image correction apparatus according to the embodiment;

【図5】実施の形態において、極値を探索する走査方向
を示す図である。
FIG. 5 is a diagram showing a scanning direction for searching for an extremum in the embodiment.

【図6】高輝度部に対し水平方向に擬似的なフィルタ効
果を施した例を示す図である。
FIG. 6 is a diagram illustrating an example in which a pseudo filtering effect is applied to a high-luminance portion in the horizontal direction.

【図7】アドレスa0〜a9の画素の輝度Yを示す図で
ある。
FIG. 7 is a diagram illustrating luminance Y of pixels at addresses a0 to a9.

【図8】画素を左から右に走査したときに行われるデー
タ補正を示す図である。
FIG. 8 is a diagram illustrating data correction performed when pixels are scanned from left to right.

【図9】画素を左から右に走査した結果行われたデータ
補正により得られた画素の輝度を示す図である。
FIG. 9 is a diagram illustrating luminance of a pixel obtained by data correction performed as a result of scanning the pixel from left to right.

【図10】画素を右から左へ走査する際に行われるデー
タ補正を示す図である。
FIG. 10 is a diagram illustrating data correction performed when a pixel is scanned from right to left.

【図11】画素を左右ふたつの方向から走査した結果最
終的に得られた補正後の画素の輝度を示す図である。
FIG. 11 is a diagram showing corrected pixel luminance finally obtained as a result of scanning a pixel from two directions.

【図12】様々な走査方向に対応して得られるべき擬似
的なフィルタ効果を示す図である。
FIG. 12 is a diagram illustrating a pseudo filter effect to be obtained corresponding to various scanning directions.

【図13】極値に関するパラメータmaxと感度パラメ
ータαの関係を示す図である。
FIG. 13 is a diagram showing a relationship between a parameter max relating to an extreme value and a sensitivity parameter α.

【図14】図13の関係のもと、得られたパラメータm
axと画素の輝度の関係を示す図である。
FIG. 14 shows a parameter m obtained based on the relationship shown in FIG.
FIG. 4 is a diagram illustrating a relationship between ax and luminance of a pixel.

【図15】図14のパラメータmaxについて最終的に
得られた補正後の画素の輝度を示す図である。
FIG. 15 is a diagram illustrating luminance of a pixel after correction finally obtained with respect to a parameter max in FIG. 14;

【図16】目的の色相の画素のみをデータ補正する手順
を示すフローチャートである。
FIG. 16 is a flowchart illustrating a procedure for correcting data of only a pixel of a target hue.

【図17】実施の形態のデータ補正によって得られた画
像をディスプレイ上に表示した中間調画像を示す写真で
ある。
FIG. 17 is a photograph showing a halftone image in which an image obtained by the data correction according to the embodiment is displayed on a display.

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

10 プリンタ 12 コントローラ 14 システムメモリ 16 画像メモリ 64 表示ユニット 66 操作ユニット 100 画像補正装置 102 画像取得部 104 極値検出部 106 感度調整部 108 データ補正部 110 範囲指定部 112 走査方向取得部 120 画像 122 走査方向 130 高輝度部 132 光の帯 140 パラメータ
maxの軌跡
REFERENCE SIGNS LIST 10 printer 12 controller 14 system memory 16 image memory 64 display unit 66 operation unit 100 image correction device 102 image acquisition unit 104 extreme value detection unit 106 sensitivity adjustment unit 108 data correction unit 110 range designation unit 112 scanning direction acquisition unit 120 image 122 scanning Direction 130 High-intensity part 132 Band of light 140 Locus of parameter max

───────────────────────────────────────────────────── フロントページの続き Fターム(参考) 5B057 BA24 CA01 CA16 CB01 CB16 CE11 CE20 DC22 5C023 AA08 AA31 AA38 AA40 BA03 CA02 CA09 EA03 EA05 5C066 AA05 BA20 CA21 DA01 DC01 EA07 EA11 ED12 GA04 GA05 GB01 HA04 JA03 KD07 KE02 5C077 MP08 PP10 PP52  ──────────────────────────────────────────────────続 き Continued on the front page F-term (reference) 5B057 BA24 CA01 CA16 CB01 CB16 CE11 CE20 DC22 5C023 AA08 AA31 AA38 AA40 BA03 CA02 CA09 EA03 EA05 5C066 AA05 BA20 CA21 DA01 DC01 EA07 EA11 ED12 GA04 GA05 GB07 HA04 MP03 KD07 PP52

Claims (10)

【特許請求の範囲】[Claims] 【請求項1】 画像を読み込む画像取得部と、 前記画像を走査してそのデータ値の極値を検出する極値
検出部と、 前記極値近傍において前記データ値を前記極値の方向に
補正するデータ補正部と、 を含むことを特徴とする画像補正装置。
An image acquisition unit that reads an image; an extreme value detection unit that scans the image to detect an extreme value of a data value; and corrects the data value in the vicinity of the extreme value in the direction of the extreme value. An image correction device, comprising:
【請求項2】 前記極値は、前記データ値から得られる
明度の極大値であることを特徴とする請求項1に記載の
画像補正装置。
2. The image correction apparatus according to claim 1, wherein the extreme value is a maximum value of brightness obtained from the data value.
【請求項3】 前記データ値と前記極値の差分に応じて
前記データ値の補正量が定められることを特徴とする請
求項1、2のいずれかに記載の画像補正装置。
3. The image correction apparatus according to claim 1, wherein a correction amount of the data value is determined according to a difference between the data value and the extreme value.
【請求項4】 前記データ値から前記極値を検出する
際、その検出感度を調整する感度調整部をさらに含むこ
とを特徴とする請求項1から3のいずれかに記載の画像
補正装置。
4. The image correction apparatus according to claim 1, further comprising a sensitivity adjustment unit that adjusts the detection sensitivity when detecting the extremum from the data value.
【請求項5】 前記極値を探索する範囲、または前記デ
ータ値を補正する範囲の少なくとも一方を取得する範囲
取得部をさらに有することを特徴とする請求項1から4
のいずれかに記載の画像補正装置。
5. The apparatus according to claim 1, further comprising a range obtaining unit configured to obtain at least one of a range for searching for the extremum and a range for correcting the data value.
The image correction device according to any one of the above.
【請求項6】 前記範囲取得部は、前記データ値から得
られる色度に関する範囲指定を取得することを特徴とす
る請求項5に記載の画像補正装置。
6. The image correction apparatus according to claim 5, wherein the range obtaining unit obtains a range specification regarding chromaticity obtained from the data value.
【請求項7】 前記範囲取得部は、前記データ値から得
られる明度に関する範囲指定を取得することを特徴とす
る請求項5に記載の画像補正装置。
7. The image correction apparatus according to claim 5, wherein the range obtaining unit obtains a range specification related to lightness obtained from the data value.
【請求項8】 前記走査の方向の指示を取得する走査方
向取得部をさらに含み、前記極値検出部は、前記指示さ
れた方向について前記極値を探索することを特徴とする
請求項1から7のいずれかに記載の画像補正装置。
8. The apparatus according to claim 1, further comprising a scanning direction acquisition unit for acquiring an instruction of the scanning direction, wherein the extreme value detection unit searches for the extreme value in the designated direction. 8. The image correction device according to any one of 7.
【請求項9】 画像を読み込むステップと、 前記画像を走査してそのデータ値の極値を探索するステ
ップと、 前記極値近傍において前記データ値を前記極値の方向に
補正するステップと、を含むことを特徴とする画像補正
方法。
9. A step of reading an image, scanning the image to search for an extreme value of the data value, and correcting the data value in the direction of the extreme value in the vicinity of the extreme value. An image correction method comprising:
【請求項10】 コンピュータで読取可能な記録媒体で
あって、 画像を読み込むステップと、 前記画像を走査してそのデータ値の極値を探索するステ
ップと、 前記極値近傍において前記データ値を前記極値の方向に
補正するステップと、 をコンピュータに実行させるプログラムを記録したこと
を特徴とする記録媒体。
10. A computer-readable recording medium, comprising: reading an image; scanning the image to find an extreme value of the data value; and reading the data value in the vicinity of the extreme value. A recording medium characterized by recording a program for causing a computer to execute the following steps:
JP33818299A 1999-11-29 1999-11-29 Method and device for correcting image, and computer- readable recording medium Pending JP2001155149A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP33818299A JP2001155149A (en) 1999-11-29 1999-11-29 Method and device for correcting image, and computer- readable recording medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP33818299A JP2001155149A (en) 1999-11-29 1999-11-29 Method and device for correcting image, and computer- readable recording medium

Publications (1)

Publication Number Publication Date
JP2001155149A true JP2001155149A (en) 2001-06-08

Family

ID=18315707

Family Applications (1)

Application Number Title Priority Date Filing Date
JP33818299A Pending JP2001155149A (en) 1999-11-29 1999-11-29 Method and device for correcting image, and computer- readable recording medium

Country Status (1)

Country Link
JP (1) JP2001155149A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7457480B2 (en) 2003-09-19 2008-11-25 Noritsu Koki Co., Ltd. Bright line plot processing method and computer program product for bright line plot processing
JP2009152780A (en) * 2007-12-19 2009-07-09 Nikon Corp Imaging apparatus, and program for imparting image effect
WO2013179931A1 (en) * 2012-05-28 2013-12-05 ソニー株式会社 Image processing device, image processing method, and program

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7457480B2 (en) 2003-09-19 2008-11-25 Noritsu Koki Co., Ltd. Bright line plot processing method and computer program product for bright line plot processing
JP2009152780A (en) * 2007-12-19 2009-07-09 Nikon Corp Imaging apparatus, and program for imparting image effect
WO2013179931A1 (en) * 2012-05-28 2013-12-05 ソニー株式会社 Image processing device, image processing method, and program

Similar Documents

Publication Publication Date Title
US7196818B2 (en) Printer having image correcting capability
US5652663A (en) Preview buffer for electronic scanner
JP3839067B2 (en) Image color adjustment method
CN101513035A (en) Color correction method
JP2005079843A (en) Apparatus, method and program for processing image
JP2009010893A (en) Image processing method and image processor
JP4629226B2 (en) Method and apparatus for calibrating an imaging device having a plurality of imaging output devices
US9860426B2 (en) Multi-mode image capture systems and methods
JP2001155149A (en) Method and device for correcting image, and computer- readable recording medium
US7215825B2 (en) Image-generating method and image-generating system
CN107018277A (en) The image processing apparatus of the image of original paper is read when launching light to original paper
US20020140992A1 (en) Image scanner
JP4017797B2 (en) Image processing method, apparatus, and computer-readable recording medium
JP4431980B2 (en) Gradation correction method and color printing apparatus using the method
JP4057939B2 (en) Image correction apparatus, method, and program
JP2000081964A (en) Printer device
JP2605011B2 (en) Color image processing method
JP4402041B2 (en) Image processing method and apparatus, and storage medium
JPH11346303A (en) Image processing method
JP7307402B2 (en) Image processing device, program, image processing method
JP3938818B2 (en) Image processing apparatus and method
JP2002281250A (en) Image signal processing apparatus and method therefor, image reading system, and program and medium
JP3281652B2 (en) Image recording device
JP2000118072A (en) Method for printing and printer
JP2006059162A (en) Tooth image correction method and device