JP2002185793A - Image forming device, image data processing method and recording medium for recording image data processing program - Google Patents

Image forming device, image data processing method and recording medium for recording image data processing program

Info

Publication number
JP2002185793A
JP2002185793A JP2000380912A JP2000380912A JP2002185793A JP 2002185793 A JP2002185793 A JP 2002185793A JP 2000380912 A JP2000380912 A JP 2000380912A JP 2000380912 A JP2000380912 A JP 2000380912A JP 2002185793 A JP2002185793 A JP 2002185793A
Authority
JP
Japan
Prior art keywords
pixel data
image
luminance
image data
backlight
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
JP2000380912A
Other languages
Japanese (ja)
Other versions
JP4415488B2 (en
Inventor
Ikuko Yoshida
伊公子 吉田
Noriyuki Nishi
規之 西
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.)
Noritsu Koki Co Ltd
Original Assignee
Noritsu Koki 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 Noritsu Koki Co Ltd filed Critical Noritsu Koki Co Ltd
Priority to JP2000380912A priority Critical patent/JP4415488B2/en
Publication of JP2002185793A publication Critical patent/JP2002185793A/en
Application granted granted Critical
Publication of JP4415488B2 publication Critical patent/JP4415488B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To provide an image forming device such as a digital printer that corrects luminance of image data so as to make the lightness (density) of a part of a major object such as a skin part of a person proper when the device prints out an image photographed by a digital camera or the like. SOLUTION: The image photographed by the digital camera or the like is displayed on a monitor screen by using data of the image to be corrected and using a mouse or the like identifies the skin part of the person being the major object and whether or not the photographed scene is a back light scene is set. Then pixel data included in a range selected among the image data are extracted. On the occurrence of the back light scene, a mean value of the luminance of the selected range is calculated by using the pixel data at a prescribed ratio (e.g. 2/3) from the lower luminance, and when the scene is not the back light scene, the mean value of the luminance of the selected range is calculated by using the pixel data at a prescribed ratio from the higher luminance, and the luminance correction amount is calculated so that the calculated mean value of the luminance becomes a prescribed proper luminance value. Using the obtained luminance correction value corrects the entire image data and employing the corrected image data forms the image.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、スキャナやディジ
タルカメラにより得られたディジタル画像データを、特
にその主要被写体が適正な濃度になるように補正する技
術に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a technique for correcting digital image data obtained by a scanner or a digital camera so that a main subject has an appropriate density.

【0002】[0002]

【従来の技術】カラーディジタル画像データの濃度補正
方法として、RGB各色についての全画像データの色
(濃度)を平均したときにグレー(灰色)となるよう
に、RGB各色成分のヒストグラムを補正する方法が知
られている。この方法は、「一般的な戸外の風景を撮影
した場合に、その画像に記録されている色を全て混ぜ合
わせると灰色に近くなる」というエバンスの定理に基づ
いている。
2. Description of the Related Art As a method of correcting the density of color digital image data, a method of correcting a histogram of each color component of RGB so that the average of the colors (densities) of all image data for each color of RGB becomes gray (gray). It has been known. This method is based on Evans's theorem that "when shooting a general outdoor scenery, mixing all the colors recorded in the image will make it close to gray".

【0003】[0003]

【発明が解決しようとする課題】しかしながらこの従来
のカラーディジタル画像データの濃度補正方法では、例
えば、明るい背景に対してフラッシュを用いずに人物を
撮影した画像や、暗い背景に対してフラッシュを用いて
人物を撮影した画像など、画面全体で濃度に偏りがある
画像データを上記方法により濃度補正した場合、背景の
影響を受けて主要被写体である人物が適正に補正されな
いと言う問題点を有していた。
However, in the conventional color digital image data density correction method, for example, an image of a person photographed without using a flash against a bright background or a flash against a dark background is used. When image data having a bias in density over the entire screen, such as an image of a person photographed, is subjected to the density correction by the above method, there is a problem that the person who is the main subject is not properly corrected due to the influence of the background. I was

【0004】そこで、カラーディジタル画像データの中
から主要被写体である人物の顔の色に対応する画像デー
タを抽出し、抽出した画像データのみを用いて主要被写
体の部分が適正濃度となるように補正する方法も考えら
れる。しかしながら、木造建築物の室内で撮影した場
合、画像中に人の肌色に類似した色彩の部分が多く含ま
れるため、必ずしも主要被写体である人物が適正な濃度
に補正されない可能性がある。同様に、髪の毛の色が茶
色などのように肌色に近い場合も。髪の毛の部分も含め
て濃度補正され、人物の顔の部分の濃度が適正に補正さ
れない可能性がある。
Therefore, image data corresponding to the color of the face of a person who is the main subject is extracted from the color digital image data, and only the extracted image data is used to correct the main subject to have an appropriate density. There is also a way to do this. However, when a photograph is taken indoors of a wooden building, since the image contains many color portions similar to the skin color of a person, the person who is the main subject may not always be corrected to an appropriate density. Similarly, when the color of the hair is close to skin color such as brown. There is a possibility that the density is corrected including the hair part, and the density of the face part of the person is not properly corrected.

【0005】本発明は、上記従来例の問題点を解決する
ためになされたものであり、画像中の主要被写体の濃度
を適正に補正することが可能な画像形成装置、画像デー
タ処理方法及び画像データ処理プログラムを記録した記
録媒体を提供することを目的としている。
SUMMARY OF THE INVENTION The present invention has been made to solve the above-mentioned problems of the prior art, and an image forming apparatus, an image data processing method, and an image processing method capable of appropriately correcting the density of a main subject in an image. It is an object to provide a recording medium on which a data processing program is recorded.

【0006】[0006]

【課題を解決するための手段】上記目的を達成するた
め、本発明の第1の画像形成装置は、複数の画素データ
で構成された画像データを用いてモニタ画面上に画像を
再生する画像再生手段と、モニタ画面上に再生された画
像のうち特定の範囲を選択する範囲選択手段と、モニタ
画面上に再生された画像が逆光又は逆光に近い状態であ
る場合に逆光条件を設定する逆光設定手段と、逆光条件
が設定された場合に、選択された範囲に含まれる画素デ
ータのうち輝度の低い方から所定の割合の画素データを
抽出し、逆光条件が設定されていない場合に、選択され
た範囲に含まれる画素データのうち輝度の高い方から所
定の割合の画素データを抽出する画素データ抽出手段
と、前記画素データ抽出手段により抽出された画素デー
タを用いて、選択された範囲の輝度の平均値を演算する
平均輝度演算手段と、求められた輝度の平均値をあらか
じめ設定された所定の輝度値に補正するための補正量を
演算により求める補正量演算手段と、求められた補正量
を用いて全画素データを補正する画像データ補正手段
と、補正された画像データを用いて画像を形成する画像
形成手段とを具備することを特徴とする。
In order to achieve the above object, a first image forming apparatus according to the present invention provides an image reproducing apparatus for reproducing an image on a monitor screen using image data composed of a plurality of pixel data. Means, a range selecting means for selecting a specific range among the images reproduced on the monitor screen, and a backlight setting for setting a backlight condition when the image reproduced on the monitor screen is in backlight or near backlight. Means, when a backlight condition is set, a predetermined ratio of pixel data is extracted from a pixel having a lower luminance among the pixel data included in the selected range, and the pixel data is selected when the backlight condition is not set. Pixel data extraction means for extracting a predetermined percentage of pixel data from the higher luminance of the pixel data included in the range, and using the pixel data extracted by the pixel data extraction means, Average brightness calculating means for calculating an average value of the brightness of the range; and correction amount calculating means for calculating a correction amount for correcting the calculated average value of the brightness to a predetermined brightness value. Image data correcting means for correcting all pixel data using the corrected correction amount, and image forming means for forming an image using the corrected image data.

【0007】本発明の第2の画像形成装置は、複数の画
素データで構成された画像データを用いてモニタ画面上
に画像を再生する画像再生手段と、モニタ画面上に再生
された画像が逆光又は逆光に近い状態である場合に逆光
条件を設定する逆光設定手段と、前記画像データに含ま
れる各画素データからその画素の色を特定する色特定手
段と、特定された各画素の色の中に所定の色が含まれて
いるか否かを判別し、所定の色を有する画素データを抽
出する第1画素データ抽出手段と、逆光条件が設定され
た場合に、選択された範囲に含まれる画素データのうち
輝度の低い方から所定の割合の画素データを抽出し、逆
光条件が設定されていない場合に、選択された範囲に含
まれる画素データのうち輝度の高い方から所定の割合の
画素データを抽出する第2画素データ抽出手段と、第2
画素データ抽出手段により抽出された画素データを用い
てその輝度の平均値を求める平均輝度演算手段と、求め
られた輝度の平均値をあらかじめ設定された所定の輝度
値に補正するための補正量を演算により求める補正量演
算手段と、求められた補正量を用いて全画素データを補
正する画像データ補正手段と、補正された画像データを
用いて画像を形成する画像形成手段とを具備することを
特徴とする。
[0007] A second image forming apparatus according to the present invention comprises an image reproducing means for reproducing an image on a monitor screen using image data composed of a plurality of pixel data, and an image reproduced on the monitor screen being backlit. Or, backlight setting means for setting a backlight condition in a state close to backlight, color specifying means for specifying the color of the pixel from each pixel data included in the image data, and A first pixel data extracting unit that determines whether a predetermined color is included in the pixel data and extracts pixel data having a predetermined color; and a pixel included in the selected range when a backlight condition is set. A predetermined percentage of pixel data is extracted from data having a lower luminance, and a predetermined percentage of pixel data having a higher luminance is selected from pixel data included in a selected range when a backlight condition is not set. Extract And the second pixel data extracting means that, second
An average luminance calculating means for calculating an average value of the luminance using the pixel data extracted by the pixel data extracting means, and a correction amount for correcting the calculated average value of the luminance to a predetermined luminance value. A correction amount calculating unit that calculates by calculation, an image data correcting unit that corrects all pixel data using the obtained correction amount, and an image forming unit that forms an image using the corrected image data. Features.

【0008】上記各構成において、前記補正量は、前記
所定の輝度値と前記輝度の平均値との差に所定の係数を
掛けた値であることが好ましい。
In each of the above structures, it is preferable that the correction amount is a value obtained by multiplying a difference between the predetermined luminance value and the average luminance value by a predetermined coefficient.

【0009】さらに、前記所定の色は人間の皮膚に関す
る色であることが好ましい。
Further, it is preferable that the predetermined color is a color relating to human skin.

【0010】本発明の第1の画像データ処理方法は、複
数の画素データで構成された画像データを用いてモニタ
画面上に画像を再生する画像再生ステップと、モニタ画
面上に再生された画像のうち特定の範囲を選択する範囲
選択ステップと、モニタ画面上に再生された画像が逆光
又は逆光に近い状態である場合に逆光条件を設定する逆
光設定ステップと、逆光条件が設定された場合に、選択
された範囲に含まれる画素データのうち輝度の低い方か
ら所定の割合の画素データを抽出し、逆光条件が設定さ
れていない場合に、選択された範囲に含まれる画素デー
タのうち輝度の高い方から所定の割合の画素データを抽
出する画素データ抽出ステップと、前記画素データ抽出
手段により抽出された画素データを用いて、選択された
範囲の輝度の平均値を演算する平均輝度演算ステップ
と、求められた輝度の平均値をあらかじめ設定された所
定の輝度値に補正するための補正量を演算により求める
補正量演算ステップと、求められた補正量を用いて全画
素データを補正する画像データ補正ステップと、補正さ
れた画像データを出力する補正画像データ出力ステップ
とを具備することを特徴とする。
According to a first image data processing method of the present invention, there is provided an image reproducing step of reproducing an image on a monitor screen using image data composed of a plurality of pixel data, and an image reproducing step of reproducing the image reproduced on the monitor screen. A range selection step of selecting a specific range, a backlight setting step of setting a backlight condition when the image reproduced on the monitor screen is in a state of backlight or close to backlight, and when a backlight condition is set, A predetermined percentage of pixel data is extracted from the pixel data having the lower luminance among the pixel data included in the selected range, and when the backlight condition is not set, the pixel data having the higher luminance is extracted from the pixel data included in the selected range. A pixel data extraction step of extracting a predetermined percentage of pixel data from the pixel data, and using the pixel data extracted by the pixel data extraction means, averaging the luminance of the selected range. An average brightness calculation step of calculating the calculated brightness, a correction amount calculation step of calculating a correction amount for correcting the average value of the obtained brightness to a predetermined brightness value, and a correction amount calculation step of using the obtained correction amount. An image data correcting step of correcting all pixel data and a corrected image data outputting step of outputting corrected image data are provided.

【0011】本発明の第2の画像データ処理方法は、複
数の画素データで構成された画像データを用いてモニタ
画面上に画像を再生する画像再生ステップと、モニタ画
面上に再生された画像が逆光又は逆光に近い状態である
場合に逆光条件を設定する逆光設定ステップと、前記画
像データに含まれる各画素データからその画素の色を特
定する色特定ステップと、特定された各画素の色の中に
所定の色が含まれているか否かを判別し、所定の色を有
する画素データを抽出する第1画素データ抽出ステップ
と、逆光条件が設定された場合に、選択された範囲に含
まれる画素データのうち輝度の低い方から所定の割合の
画素データを抽出し、逆光条件が設定されていない場合
に、選択された範囲に含まれる画素データのうち輝度の
高い方から所定の割合の画素データを抽出する第2画素
データ抽出ステップと、第2画素データ抽出ステップで
抽出された画素データを用いてその輝度の平均値を求め
る平均輝度演算ステップと、求められた輝度の平均値を
あらかじめ設定された所定の輝度値に補正するための補
正量を演算により求める補正量演算ステップと、求めら
れた補正量を用いて全画素データを補正する画像データ
補正ステップと、補正された画像データを出力する補正
画像データ出力ステップとを具備することを特徴とす
る。
According to a second image data processing method of the present invention, an image reproducing step of reproducing an image on a monitor screen using image data composed of a plurality of pixel data; A backlight setting step of setting a backlight condition in a state of backlight or near backlight, a color identification step of identifying a color of the pixel from each pixel data included in the image data, and a color identification of each pixel. A first pixel data extraction step of determining whether or not a predetermined color is included therein, and extracting pixel data having a predetermined color; and, if a backlight condition is set, the pixel data is included in the selected range. A predetermined ratio of pixel data is extracted from the pixel data having the lower luminance, and when the backlight condition is not set, the pixel data included in the selected range is extracted from the pixel data having the higher luminance with the predetermined ratio. A second pixel data extracting step of extracting the combined pixel data, an average luminance calculating step of calculating an average value of the luminance using the pixel data extracted in the second pixel data extracting step, and an average value of the calculated luminance A correction amount calculation step of calculating a correction amount for correcting the pixel value to a predetermined luminance value set in advance, an image data correction step of correcting all pixel data using the obtained correction amount, and a corrected image Outputting a corrected image data for outputting data.

【0012】上記各方法において、前記補正量は、前記
所定の輝度値と前記輝度の平均値との差に所定の係数を
掛けた値であることが好ましい。
In each of the above methods, it is preferable that the correction amount is a value obtained by multiplying a difference between the predetermined luminance value and the average value of the luminance by a predetermined coefficient.

【0013】さらに、前記所定の色は人間の皮膚に関す
る色であることが好ましい。
Further, it is preferable that the predetermined color is a color relating to human skin.

【0014】本発明の第1の画像データ処理プログラム
を記録した記録媒体は、複数の画素データで構成された
画像データを用いてモニタ画面上に画像を再生する画像
再生処理と、モニタ画面上に再生された画像のうち特定
の範囲を選択する範囲選択処理と、モニタ画面上に再生
された画像が逆光又は逆光に近い状態である場合に逆光
条件を設定する逆光設定処理と、逆光条件が設定された
場合に、選択された範囲に含まれる画素データのうち輝
度の低い方から所定の割合の画素データを抽出し、逆光
条件が設定されていない場合に、選択された範囲に含ま
れる画素データのうち輝度の高い方から所定の割合の画
素データを抽出する画素データ抽出処理と、前記画素デ
ータ抽出手段により抽出された画素データを用いて、選
択された範囲の輝度の平均値を演算する平均輝度演算処
理と、求められた輝度の平均値をあらかじめ設定された
所定の輝度値に補正するための補正量を演算により求め
る補正量演算処理と、求められた補正量を用いて全画素
データを補正する画像データ補正処理と、補正された画
像データを出力する補正画像データ出力処理とをコンピ
ュータに実行させるように記録されている。
A recording medium on which the first image data processing program of the present invention is recorded is provided with an image reproducing process for reproducing an image on a monitor screen using image data composed of a plurality of pixel data, A range selection process for selecting a specific range from among the reproduced images, a backlight setting process for setting a backlight condition when the image reproduced on the monitor screen is in backlight or near backlight, and a backlight condition setting. When the backlight condition is not set, the pixel data included in the selected range is extracted from the pixel data included in the selected range in a predetermined ratio from the lower luminance. A pixel data extraction process of extracting a predetermined percentage of pixel data from a pixel having a higher luminance, and using the pixel data extracted by the pixel data extraction means to select a luminance of a selected range. Average brightness calculation processing for calculating the average value of the above, a correction amount calculation processing for calculating a correction amount for correcting the calculated average brightness value to a predetermined brightness value, and a calculated correction amount Are recorded so as to cause a computer to execute an image data correction process of correcting all pixel data by using a computer and a corrected image data output process of outputting corrected image data.

【0015】本発明の第2の画像データ処理プログラム
を記録した記録媒体は、複数の画素データで構成された
画像データを用いてモニタ画面上に画像を再生する画像
再生処理と、モニタ画面上に再生された画像が逆光又は
逆光に近い状態である場合に逆光条件を設定する逆光設
定処理と、複数の画素データで構成された画像データに
含まれる各画素データからその画素の色を特定する色特
定処理と、特定された各画素の色の中に所定の色が含ま
れているか否かを判別し、所定の色を有する画素データ
を抽出する第1画素データ抽出処理と、逆光条件が設定
された場合に、選択された範囲に含まれる画素データの
うち輝度の低い方から所定の割合の画素データを抽出
し、逆光条件が設定されていない場合に、選択された範
囲に含まれる画素データのうち輝度の高い方から所定の
割合の画素データを抽出する第2画素データ抽出処理
と、第2画素データ抽出処理で抽出された全画素データ
を用いてその輝度の平均値を求める平均輝度演算手段
と、求められた輝度の平均値をあらかじめ設定された所
定の輝度値に補正するための補正量を演算により求める
補正量演算処理と、求められた補正量を用いて全画素デ
ータを補正する画像データ補正処理と、補正された画像
データを出力する補正画像データ出力処理とをコンピュ
ータに実行させるように記録されている。
[0015] A recording medium on which the second image data processing program of the present invention is recorded includes an image reproducing process for reproducing an image on a monitor screen by using image data composed of a plurality of pixel data, A backlight setting process for setting a backlight condition when the reproduced image is in backlight or near backlight, and a color for specifying the color of the pixel from each pixel data included in the image data composed of a plurality of pixel data A specific process, a first pixel data extraction process of determining whether a predetermined color is included in the specified color of each pixel and extracting pixel data having a predetermined color, and setting of a backlight condition In this case, a predetermined percentage of the pixel data included in the selected range is extracted from the pixel data having the lower luminance, and if no backlight condition is set, the pixel data included in the selected range is extracted. A second pixel data extraction process for extracting a predetermined ratio of pixel data from the higher brightness of the pixel data, and an average brightness for obtaining an average value of the brightness using all the pixel data extracted in the second pixel data extraction process. Calculating means, a correction amount calculation process for calculating a correction amount for correcting the average value of the obtained luminance to a predetermined luminance value set in advance, and correcting all pixel data using the obtained correction amount This is recorded so that the computer executes the image data correction processing to be performed and the corrected image data output processing to output the corrected image data.

【0016】[0016]

【発明の実施の形態】第1実施形態 本発明の第1実施形態について、ディジタルプリンタを
例にして説明する。本実施形態に係るディジタルプリン
タ(ディジタル式写真処理装置)の外観構成を図1に示
す。なお、後述する第2実施形態の場合も同様である。
DESCRIPTION OF THE PREFERRED EMBODIMENTS First Embodiment A first embodiment of the present invention will be described using a digital printer as an example. FIG. 1 shows an external configuration of a digital printer (digital photographic processing apparatus) according to the present embodiment. The same applies to a second embodiment described later.

【0017】ディジタルプリンタとは、ディジタルカメ
ラで撮像した画像を直接印画紙片上にプリントしたり、
銀塩フィルム上に形成された画像を一旦スキャナで読み
込み、印画紙片上にプリントするためのものである。図
1に示すように、ディジタルプリンタは、ディジタルカ
メラやスキャナの撮像素子の各画素に対応する印画紙上
の微小領域をR(赤)、G(緑)及びB(青)又はY
(黄)、M(マゼンタ)及びC(シアン)の三原色のい
ずれかの光で露光し、露光された印画紙を現像処理する
ことによって画像を形成する画像形成部100と、入力
されたディジタル画像データに所定の処理を施して画像
形成部100に出力する画像データ処理部200で構成
されている。
A digital printer prints an image taken by a digital camera directly on a piece of photographic paper,
The image formed on the silver halide film is once read by a scanner and printed on a piece of photographic paper. As shown in FIG. 1, a digital printer uses R (red), G (green), B (blue), or Y (red) to define a minute area on photographic paper corresponding to each pixel of an image sensor of a digital camera or a scanner.
An image forming unit 100 that forms an image by exposing to light of any of the three primary colors (yellow), M (magenta), and C (cyan), and developing the exposed photographic paper; An image data processing unit 200 performs predetermined processing on data and outputs the processed data to the image forming unit 100.

【0018】画像形成部100は、それぞれ幅の異なる
複数種類(例えば2種類)の長尺印画紙を巻回収納した
マガジン101,102と、マガジン101又は102
から引き出した印画紙を所定サイズに切断し、切断され
た印画紙片上に画像データ処理部200から送信された
画像を露光する露光部103と、露光された印画紙片を
現像、漂白、定着及び安定化処理する現像処理部104
と、現像された印画紙片を乾燥する乾燥部105と、乾
燥された印画紙片を例えばフィルム単位に仕分けるソー
タ部106等で構成されている。なお、画像形成部10
0は、従来のアナログ式の写真処理装置におけるフィル
ム上の画像を印画紙片上に拡大露光するための光源、レ
ンズ及びシャッタ等は具備していない。
The image forming section 100 includes magazines 101 and 102 in which a plurality of types (for example, two types) of long photographic papers having different widths are wound and stored, and the magazines 101 and 102 are stored.
The photographic paper pulled out of the photographic paper is cut into a predetermined size, the exposing unit 103 exposing the image transmitted from the image data processing unit 200 on the cut photographic paper piece, and the exposed photographic paper piece is developed, bleached, fixed and stabilized. Development processing unit 104
And a drying section 105 for drying the developed photographic paper pieces, and a sorter section 106 for sorting the dried photographic paper pieces into, for example, a film unit. The image forming unit 10
Reference numeral 0 does not include a light source, a lens, a shutter, and the like for enlarging and exposing an image on a film on a piece of photographic paper in a conventional analog photographic processing apparatus.

【0019】画像データ処理部200は、メモリカード
やCD−R等の記録媒体に記録されている画像データを
読み込んだり、あるいは補正後の画像データをこれらの
記録媒体に記録するためのデータ記録読み出し装置20
1と、フィルムや印画紙上に形成された画像を直接読み
込むためのスキャナ202と、読み込んだ画像をモニタ
表示するためのディスプレイ203と、逆光条件の設
定、所定の画像処理、プリント処理の指示などを入力す
るためのキーボード204と、プリントする画像データ
に所定の処理を施し、露光ユニットを制御するための制
御データに変換し、画像形成部100に出力するための
制御回路(図示せず)等で構成されている。また、モデ
ムやLANボード及び通信回線などを介して、他の装置
との間で直接画像データの送受信が可能なように構成し
てもよい。
The image data processing unit 200 reads image data recorded on a recording medium such as a memory card or a CD-R, or reads / records data after correction on the recording medium. Device 20
1, a scanner 202 for directly reading an image formed on a film or photographic paper, a display 203 for displaying the read image on a monitor, and setting of backlight conditions, predetermined image processing, instructions for print processing, and the like. A keyboard 204 for input and a control circuit (not shown) for performing predetermined processing on image data to be printed, converting the data into control data for controlling the exposure unit, and outputting the control data to the image forming unit 100. It is configured. Further, the image data may be directly transmitted / received to / from another device via a modem, a LAN board, a communication line, or the like.

【0020】次に、第1実施形態のディジタルプリンタ
の機能を説明するためのブロック構成を図2に示す。
Next, FIG. 2 shows a block configuration for explaining the functions of the digital printer according to the first embodiment.

【0021】画像データ入力部210は、例えば入出力
インタフェース、CPU、ROM、RAMなどで構成さ
れ、データ記録読み出し装置201やスキャナ202か
ら出力されたディジタル画像データを取り込み、RAM
などに一時的に記憶し、保存する。ここで、ディジタル
画像データは、その画像データを撮像したディジタルカ
メラやスキャナなどの撮像素子の各画素からのR
(赤)、G(緑)及びB(青)の各色成分ごとの輝度に
関する出力信号(RGBデータ)をシリアルに配列した
ものであり、インタフェースを介してシリアルに入出力
される。
The image data input unit 210 is constituted by, for example, an input / output interface, a CPU, a ROM, a RAM, etc., and takes in digital image data output from the data recording / reading device 201 or the scanner 202, and
Store and save it temporarily. Here, the digital image data is the R value from each pixel of an image sensor such as a digital camera or a scanner that has captured the image data.
An output signal (RGB data) relating to luminance for each of the color components (red), G (green) and B (blue) is serially arranged, and is serially input / output via an interface.

【0022】画像再生部211は、ディスプレイ20
3、CPU、ROM、RAMなどで構成され、入力され
た画像データを用いてディスプレイ203のモニタ画面
上にプレスキャン画像を再生する。
The image reproducing section 211 is provided on the display 20.
3. Reproduce a pre-scan image on the monitor screen of the display 203 using the input image data, which is constituted by a CPU, a ROM, a RAM, and the like.

【0023】範囲選択部212は、マウスやキーボード
204、CPU、ROM、RAMなどで構成され、ディ
スプレイ203上に再生されているプレスキャン画像の
うち、オペレータやユーザが主要被写体(例えば人物の
顔の部分)であると認識する範囲を特定する。
The range selection unit 212 is composed of a mouse, a keyboard 204, a CPU, a ROM, a RAM, and the like. In the pre-scan image reproduced on the display 203, an operator or a user selects a main subject (for example, a face of a person). Part) is identified.

【0024】逆光設定部213は、マウスやキーボード
204、CPU、ROM、RAMなどで構成され、ディ
スプレイ203上に再生されているプレスキャン画像が
逆光又は逆光に近い状態であるとオペレータやユーザが
判断した場合に、マウスやキーボード204を操作し
て、逆光状態に対応する所定の信号を入力する。
The backlight setting section 213 is composed of a mouse, a keyboard 204, a CPU, a ROM, a RAM, and the like. The operator or the user determines that the pre-scan image reproduced on the display 203 is in a backlight or near backlight state. In this case, the user operates the mouse or the keyboard 204 to input a predetermined signal corresponding to the backlight state.

【0025】画素データ抽出部214は、CPU、RO
M、RAMなどで構成され、最初に範囲選択部212に
より特定された範囲に含まれる画素データを画像データ
中から抽出し(第1画素データ抽出)、抽出した画素デ
ータについてそれぞれ所定の処理を施し、各画素にそれ
ぞれ対応する輝度を演算し、輝度ヒストグラムを作成す
る。次に、逆光設定部213により逆光設定された場合
には、画素データのうち輝度の低い方から、抽出した画
素データ数に対する所定の割合(例えば2/3)に相当
する画素データをさらに抽出する(第2画素データ抽
出)。また、逆光設定部213により逆光設定されてい
ない場合には、画素データのうち輝度の高い方から、抽
出した画素データ数の所定の割合(2/3)に相当する
画素データをさらに抽出する(第2画素データ抽出)。
The pixel data extraction unit 214 includes a CPU, RO
M, RAM, etc., first, pixel data included in the range specified by the range selection unit 212 is extracted from the image data (first pixel data extraction), and a predetermined process is performed on each of the extracted pixel data. Then, the luminance corresponding to each pixel is calculated, and a luminance histogram is created. Next, when the backlight is set by the backlight setting unit 213, pixel data corresponding to a predetermined ratio (for example, 2/3) to the number of extracted pixel data is further extracted from the pixel data having the lower luminance. (Extraction of second pixel data). If the backlight is not set by the backlight setting unit 213, pixel data corresponding to a predetermined ratio (2/3) of the number of extracted pixel data is further extracted from the pixel data having higher luminance (see FIG. 4). Second pixel data extraction).

【0026】上記RGBデータは、色と輝度(明るさ)
に関する情報であり、RGBデータに対して以下の(数
1)に示す演算処理を行い、輝度情報と色差情報を表す
YCCデータ(C2,YY,C1)に変換する。YYは
輝度情報を表し、C1及びC2は色差情報を表す。この
変換によりRGBデータから輝度に関する情報だけを取
り出すことができる。
The RGB data includes color and luminance (brightness).
The RGB data is subjected to arithmetic processing shown in the following (Equation 1), and is converted into YCC data (C2, YY, C1) representing luminance information and color difference information. YY represents luminance information, and C1 and C2 represent color difference information. By this conversion, only information relating to luminance can be extracted from the RGB data.

【0027】[0027]

【数1】 (Equation 1)

【0028】平均輝度演算部215は、CPU、RO
M、RAMなどで構成され、画素データ抽出部214に
より抽出された画素データ及びその輝度情報を用いて、
選択された範囲の輝度の平均値を演算する。
The average luminance calculation unit 215 includes a CPU, an RO,
M, RAM, etc., using the pixel data extracted by the pixel data extraction unit 214 and its luminance information,
The average value of the luminance in the selected range is calculated.

【0029】補正量演算部216は、CPU、ROM、
RAMなどで構成され、演算された主要被写体部分の輝
度の平均値とあらかじめ設定されている適正輝度に相当
する所定の輝度値と比較し、主要被写体の部分を適正輝
度(適正濃度)にするために、輝度の平均値を所定の輝
度値に一致させるために必要な補正量を演算し、RAM
などに記憶する。
The correction amount calculation unit 216 includes a CPU, a ROM,
Comparing the calculated average value of the luminance of the main subject portion with a predetermined luminance value corresponding to a preset proper luminance, the main subject portion is made to have proper luminance (appropriate density). In addition, a correction amount necessary for matching the average value of the luminance with a predetermined luminance value is calculated,
And memorize it.

【0030】画像データ補正部217は、CPU、RO
M、RAMなどで構成され、演算された補正量を用いて
全ての画素に関する画像データの輝度(RGBデータ)
を補正する。
The image data correction unit 217 includes a CPU, an RO,
M, RAM, etc., and luminance (RGB data) of image data for all pixels using the calculated correction amount
Is corrected.

【0031】補正画像データ出力部218は、画像デー
タ入力部210と同様に入出力インタフェース、CP
U、ROM、RAMなどで構成され、画像形成部100
に補正された画像データを出力する。
The corrected image data output unit 218 has an input / output interface and a CP as in the image data input unit 210.
U, ROM, RAM, etc.
And outputs the corrected image data.

【0032】画像形成部100は、補正後の画像データ
を用いて印画紙上に画像を形成する。なお、上記CP
U、ROM、RAMはそれぞれ同一のものを兼用しても
良いし、各部の構成に応じて適宜別のものを用いても良
い。
The image forming section 100 forms an image on photographic paper using the corrected image data. The above CP
U, ROM, and RAM may be the same as each other, or may be different depending on the configuration of each unit.

【0033】次に、第1実施形態における画像データ処
理のフローチャートを図3〜図4に示す。まず、画像デ
ータ入力部により画像データが読み込まれると(ステッ
プS1)、画像再生部211は、画像データ入力部21
0のRAMから画像データを読み出し、ディスプレイ2
03上にプレスキャン画像を表示する(ステップS
3)。この状態で、ユーザ又はオペレータは、表示され
ているプレスキャン画像に関して輝度補正が必要か否か
を判断し(ステップS5)、輝度補正が必要ない場合
は、マウスやキーボードなどを用いてステップS1に戻
り、次のプレスキャン画像を表示させる。
Next, flowcharts of image data processing in the first embodiment are shown in FIGS. First, when image data is read by the image data input unit (step S1), the image reproduction unit 211
0 from the RAM of the display 2
03 (step S)
3). In this state, the user or the operator determines whether or not luminance correction is necessary for the displayed pre-scanned image (step S5). When luminance correction is not required, the user or operator proceeds to step S1 using a mouse or a keyboard. Return and display the next prescan image.

【0034】一方、輝度補正が必要な場合、範囲選択部
212のマウスやキーボードなどを用いて、ディスプレ
イ203上に表示されているプレスキャン画像のうち、
ユーザやオペレータが主要被写体と認識する範囲、例え
ば人物の顔の部分などを主要被写体領域を選択する(ス
テップS7)。
On the other hand, when the luminance correction is necessary, the pre-scan image displayed on the display 203 is displayed using the mouse or keyboard of the range selection unit 212.
The main subject area is selected by the user or the operator in a range that is recognized as the main subject, for example, a face portion of a person (step S7).

【0035】主要被写体領域を選択すると、逆光設定部
213は、例えばディスプレイ203上に所定のメッセ
ージを表示し、ユーザやオペレータにプレスキャン画像
が逆光又は逆光に近い状態であるか否かを問い、ユーザ
やオペレータによる入力結果を記憶する(ステップS
9)。
When the main subject area is selected, the backlight setting unit 213 displays a predetermined message on, for example, the display 203, and asks the user or the operator whether the pre-scan image is in a backlight or a state close to the backlight. The result of input by the user or operator is stored (step S
9).

【0036】主要被写体領域の選択及び逆光設定がなさ
れると、画素データ抽出部214は、画像データ入力部
210のRAMから選択された範囲に含まれる画像デー
タを読み出し(ステップS11)、上記(数1)に従っ
て、各画素ごとの輝度情報YYを抽出する(ステップS
13)。さらに、選択された範囲に含まれる各画素の輝
度ヒストグラムを作成する(ステップS15)。
After the selection of the main subject area and the setting of the backlight, the pixel data extraction unit 214 reads out the image data included in the selected range from the RAM of the image data input unit 210 (step S11). According to 1), luminance information YY for each pixel is extracted (step S).
13). Further, a luminance histogram of each pixel included in the selected range is created (Step S15).

【0037】次に、画素データ抽出部214は、ステッ
プS9で入力された結果を判断し(ステップS17)、
逆光条件が設定された場合に(ステップS17でYE
S)、選択された範囲に含まれる画素データのうち輝度
の低い方から所定の割合(第1画素データ抽出により抽
出した画素データの2/3)の画素データを抽出し(第
2画素データ抽出)(ステップS19)、逆光条件が設
定されていない場合に、選択された範囲に含まれる画素
データのうち輝度の高い方から所定の割合(2/3)の
画素データを抽出する(ステップS21)。画素データ
を抽出すると、平均輝度演算部215は、抽出した画素
データ及びその輝度情報を用いて、選択された範囲の輝
度の平均値を演算する(ステップS23)。
Next, the pixel data extraction unit 214 determines the result input in step S9 (step S17),
When the backlight condition is set (YE in step S17)
S) Extracting a predetermined ratio (2/3 of the pixel data extracted by extracting the first pixel data) of pixel data included in the selected range from the one with the lowest luminance (second pixel data extraction) (Step S19), when the backlight condition is not set, a predetermined ratio (2/3) of pixel data is extracted from the pixel having the higher luminance among the pixel data included in the selected range (Step S21). . When the pixel data is extracted, the average luminance calculation unit 215 calculates an average value of the luminance in the selected range using the extracted pixel data and the luminance information (step S23).

【0038】補正量演算部216は、演算された輝度の
平均値とあらかじめ設定されている適正輝度に相当する
所定の輝度値を比較し、輝度補正量を演算する(ステッ
プS25)。輝度補正量が演算されると、その画像デー
タを特定するための、例えばフィルムのコマ番号などと
共に、輝度補正量を画像データ入力部210のRAMな
どに保存する(ステップS27)。
The correction amount calculating section 216 compares the calculated average value of the luminance with a predetermined luminance value corresponding to a preset appropriate luminance, and calculates a luminance correction amount (step S25). When the brightness correction amount is calculated, the brightness correction amount is stored in a RAM or the like of the image data input unit 210 together with, for example, a frame number of the film for specifying the image data (step S27).

【0039】輝度補正量を保存すると、画像再生部21
1は、画像データ入力部210のRAMに記憶されてい
る全ての画像データについて、ディスプレイ203上に
プレスキャン画像を表示したか否かを判断し(ステップ
S29)、プレスキャンが終了していない場合はステッ
プS1からS29までを繰り返す。
When the luminance correction amount is stored, the image reproducing unit 21
1 determines whether or not a pre-scan image has been displayed on the display 203 for all image data stored in the RAM of the image data input unit 210 (step S29). Repeats steps S1 to S29.

【0040】全ての画像データについてプレスキャンを
終了すると(ステップS29でYES)、画像データ補
正部217は、各画像データ及びその画像データに関す
る輝度補正量を順に読み出し(ステップS31)、輝度
補正量を用いて各画像データを補正し(ステップS3
3)、RAMなどに補正した画像データを保存する(ス
テップS35)。さらに、画像データ補正部217は、
輝度補正の対象となっている全ての画像データについて
輝度補正を行ったか否かを判断し(ステップS37)、
補正が完了していない場合はステップS31からS37
を繰り返す。
When the pre-scan has been completed for all the image data (YES in step S29), the image data correction unit 217 sequentially reads out the image data and the luminance correction amount for the image data (step S31), and sets the luminance correction amount. Is used to correct each image data (step S3
3) The corrected image data is stored in a RAM or the like (step S35). Further, the image data correction unit 217
It is determined whether or not the luminance correction has been performed on all the image data to be subjected to the luminance correction (step S37).
If the correction has not been completed, steps S31 to S37
repeat.

【0041】全ての画像データの補正が完了すると、補
正画像データ出力部218は、補正した画像データを画
像形成部100に出力するか否かを判断する(ステップ
S39)。すなわち、補正した画像データを用いて画像
を形成する場合、補正画像データ出力部218は、補正
した画像データを画像形成部100に出力する(ステッ
プS41)。そして、画像形成部100は、画像データ
処理部200から出力された補正された画像データを用
いて印画紙片上に画像を形成し(ステップS43)、こ
のフローを終了する。
When the correction of all the image data is completed, the corrected image data output section 218 determines whether or not to output the corrected image data to the image forming section 100 (Step S39). That is, when an image is formed using the corrected image data, the corrected image data output unit 218 outputs the corrected image data to the image forming unit 100 (Step S41). Then, the image forming unit 100 forms an image on the printing paper piece using the corrected image data output from the image data processing unit 200 (step S43), and ends this flow.

【0042】次に、第1実施形態による画像データの補
正の効果について図5を参照しつつ説明する。ディジタ
ルカメラなどにより撮像された画像が、例えば図5
(b)に示すように、背景の輝度が高く(濃度が低く明
るく)主要被写体の輝度が低い(濃度が高く暗い)「逆
光シーン」であるとする。
Next, the effect of correcting image data according to the first embodiment will be described with reference to FIG. An image captured by a digital camera or the like is shown in FIG.
As shown in (b), it is assumed that the scene is a “backlit scene” in which the luminance of the background is high (the density is low and bright) and the luminance of the main subject is low (the density is high and dark).

【0043】この画像データを補正せずにそのまま用い
て画像を形成すると、図5(b)に示すように逆光シー
ンの画像が得られる。一方、エバンスの定理に従い、R
GB各色についての全画像データの色を平均したときに
灰色となるように、RGB各色成分を補正すると、図5
(c)に示すように、背景が灰色になるように暗く補正
され、元々輝度の低い(濃度が高く暗い)主要被写体で
ある人物はさらに暗く補正され、そのディテールがほぼ
完全につぶれてしまう。
When an image is formed by using this image data without correction, an image of a backlight scene is obtained as shown in FIG. On the other hand, according to Evans's theorem, R
When the RGB color components are corrected so that the color of all the image data for each of the GBs becomes gray when the colors are averaged, FIG.
As shown in (c), the background is darkened so as to become gray, and the person who is the main subject having originally low luminance (high density and dark) is further darkened, and the details thereof are almost completely lost.

【0044】これに対して、本実施形態のように、主要
被写体の部分を抽出し、さらに選択された主要被写体部
分に含まれる画素データのうち輝度の低い方(暗い方)
から所定の割合(2/3)の画素データを再抽出し、再
抽出した画素データ及びその輝度情報を用いて主要被写
体の部分の輝度(濃度)が適正となるように全画像デー
タを補正すると、人の肌の色と同じ又は類似した色彩で
あって、主要被写体以外の部分(例えば背景の部分の木
製の壁など)の影響を少なくすることができ、図5
(a)に示すように、元々輝度の高い(濃度が低く明る
い)背景はさらに明るく補正されるものの、主要被写体
である人物は、そのディテールが明確に判別できるよう
に適正輝度(適正濃度)に補正される。その結果、逆光
シーンのように濃度に偏りのある画像であっても、適切
な補正を行うことができる。
On the other hand, as in the present embodiment, the main subject portion is extracted, and the lower luminance (darker) pixel data included in the selected main subject portion is further extracted.
, A predetermined ratio (2/3) of the pixel data is re-extracted, and all the image data is corrected using the re-extracted pixel data and its luminance information so that the luminance (density) of the main subject portion becomes appropriate. 5, the influence of a part other than the main subject (for example, a wooden wall in the background) which is the same or similar to the color of the human skin can be reduced.
As shown in (a), the background having originally high luminance (low density and bright) is corrected to be even brighter, but the person who is the main subject is adjusted to the appropriate luminance (appropriate density) so that the details can be clearly identified. Will be corrected. As a result, appropriate correction can be performed even for an image having a bias in density such as a backlight scene.

【0045】なお、図5に示す例とは逆に、暗い場所で
フラッシュ撮影をした場合のように、主要被写体の輝度
が高く背景の輝度が低い場合、すなわち、逆光条件が設
定されていない場合には、上記逆光シーンとは逆に、人
の肌の色と同じ又は類似した色彩であって、主要被写体
以外の部分(例えば背景の部分の木製の壁など)の方が
主要被写体部分(例えば人物の顔の部分)よりも輝度が
低いので、選択された主要被写体部分に含まれる画素デ
ータのうち輝度の高い方(明るい方)から所定の割合
(2/3)の画素データを再抽出し、再抽出した画素デ
ータ及びその輝度情報を用いて主要被写体の部分の輝度
(濃度)が適正となるように全画像データを補正すれば
よい。
Contrary to the example shown in FIG. 5, when the luminance of the main subject is high and the luminance of the background is low, such as when flash photography is performed in a dark place, that is, when the backlight condition is not set. Contrary to the backlight scene, a part other than the main subject (for example, a wooden wall in the background) having the same or similar color to the skin color of the person is the main subject part (for example, Since the luminance is lower than that of the person's face, a predetermined ratio (2/3) of pixel data is re-extracted from the higher luminance (brighter) of the pixel data included in the selected main subject portion. The entire image data may be corrected using the re-extracted pixel data and its luminance information so that the luminance (density) of the main subject portion becomes appropriate.

【0046】第2実施形態 次に、本発明の第2実施形態について説明する。上記第
1実施形態では、入力された画像データを用いてプレス
キャン画像を一旦ディスプレイ203上に表示し、ユー
ザ又はオペレータが輝度補正の対象となる主要被写体の
範囲を特定するように構成したが、第2実施形態では、
画像データの色情報を分析して、色情報を用いて主要被
写体と思われる部分を自動的に認識する。
Second Embodiment Next, a second embodiment of the present invention will be described. In the first embodiment, the pre-scanned image is temporarily displayed on the display 203 using the input image data, and the user or the operator specifies the range of the main subject to be subjected to the luminance correction. In the second embodiment,
The color information of the image data is analyzed, and the part considered to be the main subject is automatically recognized using the color information.

【0047】第2実施形態のディジタルプリンタの機能
を説明するためのブロック構成を図6に示す。
FIG. 6 shows a block configuration for explaining the function of the digital printer of the second embodiment.

【0048】画像データ入力部220は、第1実施形態
の場合と同様に、例えば入出力インタフェース、CP
U、ROM、RAMなどで構成され、データ記録読み出
し装置201やスキャナ202から出力されたディジタ
ル画像データを取り込み、RAMなどに一時的に記憶
し、保存する。
As in the case of the first embodiment, the image data input unit 220 includes, for example, an input / output interface, a CP
A digital image data output from the data recording / reading device 201 or the scanner 202 is fetched and temporarily stored and stored in the RAM or the like.

【0049】画像再生部221は、ディスプレイ20
3、CPU、ROM、RAMなどで構成され、入力され
た画像データを用いてディスプレイ203のモニタ画面
上にプレスキャン画像を再生する。
The image reproducing section 221 is connected to the display 20.
3. Reproduce a pre-scan image on the monitor screen of the display 203 using the input image data, which is constituted by a CPU, a ROM, a RAM, and the like.

【0050】逆光設定部222は、マウスやキーボード
204、CPU、ROM、RAMなどで構成され、ディ
スプレイ203上に再生されているプレスキャン画像が
逆光又は逆光に近い状態であるとオペレータやユーザが
判断した場合に、マウスやキーボード204を操作し
て、逆光状態に対応する所定の信号を入力する。
The backlight setting section 222 is composed of a mouse, a keyboard 204, a CPU, a ROM, a RAM, and the like. An operator or a user determines that the pre-scan image reproduced on the display 203 is in a backlight or near backlight state. In this case, the user operates the mouse or the keyboard 204 to input a predetermined signal corresponding to the backlight state.

【0051】色特定部223は、CPU、ROM、RA
Mなどで構成され、入力された画像データに対して所定
の処理を施し、各画素にそれぞれ対応する部分の色(以
下、単に「画素の色」とする)を特定する。上記RGB
データは、色と輝度(明るさ)に関する情報であり、R
GBデータに対して上記(数1)に示す演算処理を行
い、輝度情報と色差情報を表すYCCデータ(C2,Y
Y,C1)に変換すると、RGBデータから色に関する
情報だけを取り出すことができる。
The color specifying section 223 includes a CPU, ROM, RA
M and the like, and performs predetermined processing on the input image data to specify a color of a portion corresponding to each pixel (hereinafter, simply referred to as “pixel color”). The above RGB
The data is information on color and luminance (brightness).
The arithmetic processing shown in the above (Equation 1) is performed on the GB data, and YCC data (C2, Y
Y, C1), it is possible to extract only the information on the color from the RGB data.

【0052】図7は、上記C1を縦軸、C2を横軸とし
て、色情報を2次元的に表したものである。図7中ハッ
チングで示した領域は、主要被写体として人物を撮影し
た場合における日本人の平均的な肌の色の範囲を表す。
FIG. 7 shows color information two-dimensionally, with C1 as the vertical axis and C2 as the horizontal axis. The hatched area in FIG. 7 represents the average range of Japanese skin color when a person is photographed as a main subject.

【0053】画素データ抽出部224は、CPU、RO
M、RAMなどで構成され、第1実施形態と同様に第1
画素データ抽出と第2画素データ抽出の2つの機能を行
う。
The pixel data extraction unit 224 includes a CPU, an RO,
M, RAM, and the like.
It performs two functions of pixel data extraction and second pixel data extraction.

【0054】第1画素データ抽出の場合、色特定部22
3により特定された各画素の色をあらかじめ設定されて
いる主要被写体を代表する所定の色、例えば人物の肌の
色などと比較し、主要被写体に対応し、所定の色又は所
定範囲に含まれる色を有する画素に対応する画像データ
を全て抽出し、RAMなどに記憶する。具体的には、全
ての画素について、色特定部223により演算されたC
1及びC2の値を、あらかじめROMなどに記憶されて
いるLUT(ルックアップテーブル)の値と比較し、C
1及びC2の値が上記所定の値と一致するか否か又は所
定の範囲内に含まれるか否かを判断する。これにより、
全画素データの中から主要被写体に関する画素データが
抽出される。
In the case of extracting the first pixel data, the color specifying unit 22
The color of each pixel specified by 3 is compared with a predetermined color representing a main subject set in advance, for example, a skin color of a person, and corresponds to the main subject and is included in a predetermined color or a predetermined range. All the image data corresponding to the pixels having the color are extracted and stored in a RAM or the like. Specifically, for all pixels, C calculated by the color specifying unit 223 is used.
The values of 1 and C2 are compared with the values of an LUT (look-up table) stored in a ROM or the like in advance, and
It is determined whether the values of 1 and C2 match the above-mentioned predetermined value or whether or not they are within a predetermined range. This allows
Pixel data relating to the main subject is extracted from all the pixel data.

【0055】第2画素データ抽出の場合、第1画素デー
タ抽出処理により抽出した画素データについてそれぞれ
所定の処理を施し、各画素にそれぞれ対応する輝度を演
算し、輝度ヒストグラムを作成する。次に、逆光設定部
222により逆光設定された場合には、画素データのう
ち輝度の低い方から、抽出した画素データ数に対する所
定の割合(例えば2/3)に相当する画素データをさら
に抽出する(第2画素データ抽出)。また、逆光設定部
222により逆光設定されていない場合には、画素デー
タのうち輝度の高い方から、抽出した画素データ数の所
定の割合(2/3)に相当する画素データをさらに抽出
する(第2画素データ抽出)。
In the case of the second pixel data extraction, predetermined processing is applied to the pixel data extracted by the first pixel data extraction processing, and the luminance corresponding to each pixel is calculated to create a luminance histogram. Next, when backlight is set by the backlight setting unit 222, pixel data corresponding to a predetermined ratio (for example, 2) to the number of extracted pixel data is further extracted from the pixel data having the lower luminance. (Extraction of second pixel data). If the backlight is not set by the backlight setting unit 222, pixel data corresponding to a predetermined ratio (2/3) of the number of extracted pixel data is further extracted from the pixel data having the higher luminance (see FIG. 4). Second pixel data extraction).

【0056】平均輝度演算部225は、CPU、RO
M、RAMなどで構成され、第2画素データ抽出処理に
より抽出された全ての画像データを用いて、主要被写体
に対応する部分の輝度の平均値を演算する。本実施形態
では、画像中の主要被写体を、背景などのその他の部分
の輝度の影響を受けることなく適正な輝度(濃度)に補
正することを目的としており、上記各処理を経ることに
より、主要被写体の部分のみの輝度情報が得られる。
The average luminance calculation section 225 includes a CPU, an RO,
An average value of the luminance of a portion corresponding to the main subject is calculated using all the image data extracted by the second pixel data extraction processing. The present embodiment aims at correcting a main subject in an image to an appropriate luminance (density) without being affected by the luminance of other parts such as a background. Luminance information of only the part of the subject can be obtained.

【0057】補正量演算部226は、CPU、ROM、
RAMなどで構成され、演算された主要被写体部分の輝
度の平均値とあらかじめ設定されている適正輝度に相当
する所定の輝度値と比較し、主要被写体の部分を適正輝
度(適正濃度)にするために、輝度の平均値を所定の輝
度値に一致させるために必要な補正量を演算し、RAM
などに記憶する。
The correction amount calculation unit 226 includes a CPU, a ROM,
Comparing the calculated average value of the luminance of the main subject portion with a predetermined luminance value corresponding to a preset proper luminance, the main subject portion is made to have proper luminance (appropriate density). In addition, a correction amount necessary for matching the average value of the luminance with a predetermined luminance value is calculated,
And memorize it.

【0058】画像データ補正部227は、CPU、RO
M、RAMなどで構成され、演算された補正量を用いて
全ての画素に関する画像データの輝度(RGBデータ)
を補正する。
The image data correction unit 227 includes a CPU, an RO,
M, RAM, etc., and luminance (RGB data) of image data for all pixels using the calculated correction amount
Is corrected.

【0059】補正画像データ出力部228は、画像デー
タ入力部220と同様に入出力インタフェース、CP
U、ROM、RAMなどで構成され、画像形成部100
に補正された画像データを出力する。
The corrected image data output unit 228 has an input / output interface and a CP as in the image data input unit 220.
U, ROM, RAM, etc.
And outputs the corrected image data.

【0060】次に、第2実施形態における画像データ処
理のフローチャートを図8〜図10に示す。第1実施形
態と同様に、画像データ入力部により画像データが読み
込まれると(ステップS51)、画像再生部221は、
画像データ入力部220のRAMから画像データを読み
出し、ディスプレイ203上にプレスキャン画像を表示
する(ステップS53)。この状態で、ユーザ又はオペ
レータは、表示されているプレスキャン画像に関して輝
度補正が必要か否かを判断し(ステップS55)、輝度
補正が必要ない場合は、マウスやキーボードなどを用い
てステップS51に戻り、次のプレスキャン画像を表示
させる。
Next, flowcharts of image data processing in the second embodiment are shown in FIGS. As in the first embodiment, when image data is read by the image data input unit (step S51), the image reproduction unit 221
The image data is read from the RAM of the image data input unit 220, and a pre-scan image is displayed on the display 203 (step S53). In this state, the user or the operator determines whether or not luminance correction is necessary for the displayed pre-scanned image (step S55). If luminance correction is not required, the user or operator proceeds to step S51 using a mouse or a keyboard. Return and display the next prescan image.

【0061】一方、輝度補正が必要な場合、逆光設定部
222は、例えばディスプレイ203上に所定のメッセ
ージを表示し、ユーザやオペレータにプレスキャン画像
が逆光又は逆光に近い状態であるか否かを問い、ユーザ
やオペレータによる入力結果を記憶する(ステップS5
7)。次に、色特定部223は、ディスプレイ上にカラ
ーチャートなどを一覧表示し、ユーザ又はオペレータ
に、マウスやキーボード等を用いて主要被写体領域を特
定するための色情報、例えば人物の肌の色などを選択さ
せ、選択結果を色特定情報として設定する(ステップS
59)。さらに、色特定部223は、画像データ入力部
210のRAMから画像データを読み出し、上記(数
1)に従って、各画素ごとの色情報C1及びC2を抽出
し(ステップS61)、各画素ごとにその画素の色を特
定する。
On the other hand, when the luminance correction is necessary, the backlight setting section 222 displays a predetermined message on the display 203, for example, and asks the user or the operator whether the pre-scanned image is in the state of backlight or close to backlight. The result of input by the user or the operator is stored (step S5).
7). Next, the color specifying unit 223 displays a list of color charts and the like on a display, and provides a user or an operator with color information for specifying a main subject region using a mouse, a keyboard, or the like, for example, a person's skin color or the like. Is selected, and the selection result is set as color identification information (step S
59). Further, the color specifying unit 223 reads the image data from the RAM of the image data input unit 210, extracts the color information C1 and C2 for each pixel according to the above (Equation 1) (step S61), and for each pixel, Specify the color of the pixel.

【0062】主要被写体領域の色が特定されると、画素
データ抽出部224は、特定した各画素の色と上記ステ
ップS59で設定した主要被写体の色とを比較し(ステ
ップS63)、主要被写体の色と同じ色を有する画素の
画素データ又は輝度情報YYのみを抽出し、RAMなど
に記憶する(第1画素データ抽出:ステップS65)。
さらに、画素データ抽出部224は、全ての画素につい
て画素の色の特定、比較及び画素データの抽出が完了し
たか否かを判断し(ステップS67)、全ての画素につ
いて完了するまで上記ステップS61からS67を繰り
返す。
When the color of the main subject area is specified, the pixel data extraction unit 224 compares the specified color of each pixel with the color of the main subject set in step S59 (step S63), and Only the pixel data of the pixel having the same color as the color or the luminance information YY is extracted and stored in the RAM or the like (first pixel data extraction: step S65).
Further, the pixel data extracting unit 224 determines whether or not the pixel color identification, comparison, and pixel data extraction have been completed for all pixels (step S67). S67 is repeated.

【0063】全ての画素について画素の色の特定、比較
及び画素データの抽出が完了すると、平均輝度演算部2
25は、ステップS65で抽出した画素データ又は輝度
情報YYを用いて主要被写体の色と同じ色を有する全画
素の輝度のヒストグラムを作成する(ステップS6
9)。
When the specification and comparison of the pixel colors and the extraction of the pixel data are completed for all the pixels, the average luminance calculation unit 2
25, a histogram of the luminance of all pixels having the same color as the color of the main subject is created using the pixel data or luminance information YY extracted in step S65 (step S6).
9).

【0064】次に、画素データ抽出部224は、ステッ
プS57で入力された結果を判断し(ステップS7
1)、逆光条件が設定された場合に(ステップS71で
YES)、抽出された画素データのうち輝度の低い方か
ら所定の割合(第1画素データ抽出により抽出した画素
データの2/3)の画素データを抽出し(第2画素デー
タ抽出)(ステップS73)、逆光条件が設定されてい
ない場合に、選択された範囲に含まれる画素データのう
ち輝度の高い方から所定の割合(2/3)の画素データ
を抽出する(ステップS75)。画素データを抽出する
と、平均輝度演算部225は、抽出した画素データ及び
その輝度情報を用いて、主要被写体領域の輝度の平均値
を演算する(ステップS77)。
Next, the pixel data extraction unit 224 determines the result input in step S57 (step S7).
1) When the backlight condition is set (YES in step S71), a predetermined ratio (2/3 of the pixel data extracted by the first pixel data extraction) from the lower luminance of the extracted pixel data. Pixel data is extracted (second pixel data extraction) (step S73), and when the backlight condition is not set, a predetermined ratio (2/3) of the pixel data included in the selected range from the one with the higher luminance is selected. ) Is extracted (step S75). When the pixel data is extracted, the average luminance calculation unit 225 calculates an average value of the luminance of the main subject area using the extracted pixel data and the luminance information (step S77).

【0065】補正量演算部226は、演算された輝度の
平均値とあらかじめ設定されている適正輝度に相当する
所定の輝度値を比較し、輝度補正量を演算する(ステッ
プS79)。輝度補正量が演算されると、その画像デー
タを特定するための、例えばフィルムのコマ番号などと
共に、輝度補正量を画像データ入力部210のRAMな
どに保存する(ステップS81)。
The correction amount calculating section 226 compares the calculated average value of the luminance with a predetermined luminance value corresponding to a preset appropriate luminance, and calculates a luminance correction amount (step S79). When the luminance correction amount is calculated, the luminance correction amount is stored in a RAM or the like of the image data input unit 210 together with, for example, a frame number of the film for specifying the image data (step S81).

【0066】輝度補正量を保存すると、例えば補正量演
算部226は、全ての画像データについて輝度補正量を
演算したか否かを判断し(ステップS83)、全画像デ
ータについて輝度補正量の演算が終了していない場合は
ステップS57からS83までを繰り返す。
When the luminance correction amount is stored, for example, the correction amount calculating section 226 determines whether or not the luminance correction amount has been calculated for all the image data (step S83). If not completed, steps S57 to S83 are repeated.

【0067】全ての画像データについて輝度補正量を演
算すると(ステップS83でYES)、画像データ補正
部227は、各画像データ及びその画像データに関する
輝度補正量を順に読み出し(ステップS85)、輝度補
正量を用いて各画像データを補正し(ステップS8
7)、RAMなどに補正した画像データを保存する(ス
テップS89)。さらに、画像データ補正部227は、
輝度補正の対象となっている全ての画像データについて
輝度補正を行ったか否かを判断し(ステップS91)、
補正が完了していない場合はステップS51からS91
を繰り返す。
When the brightness correction amount is calculated for all the image data (YES in step S83), the image data correction unit 227 sequentially reads out each image data and the brightness correction amount for the image data (step S85), Is used to correct each image data (step S8).
7) The corrected image data is stored in a RAM or the like (step S89). Further, the image data correction unit 227
It is determined whether or not the brightness correction has been performed for all the image data to be subjected to the brightness correction (step S91).
If the correction has not been completed, steps S51 to S91 are performed.
repeat.

【0068】全ての画像データの補正が完了すると、補
正画像データ出力部228は、補正した画像データを画
像形成部100に出力するか否かを判断する(ステップ
S93)。すなわち、補正した画像データを用いて画像
を形成する場合、補正画像データ出力部228は、補正
した画像データを画像形成部100に出力する(ステッ
プS95)。そして、画像形成部100は、画像データ
処理部200から出力された補正された画像データを用
いて印画紙片上に画像を形成し(ステップS97)、こ
のフローを終了する。
When the correction of all the image data is completed, the corrected image data output section 228 determines whether or not to output the corrected image data to the image forming section 100 (Step S93). That is, when an image is formed using the corrected image data, the corrected image data output unit 228 outputs the corrected image data to the image forming unit 100 (Step S95). Then, the image forming unit 100 forms an image on the printing paper piece using the corrected image data output from the image data processing unit 200 (step S97), and ends this flow.

【0069】その他の実施形態 上記各実施形態では、主要被写体領域を特定し、主要被
写体領域の輝度の平均値が適正輝度に相当する所定の輝
度値になるように輝度補正量を決定するように構成した
が、これに限定されるものではなく、輝度の平均値と所
定の輝度値の差に対して、さらに所定の係数(例えば6
0〜80%の間の任意の値)を掛けた値を輝度補正量と
して用いても良い。すなわち、図7に示すように、主要
被写体の色として人物の肌の色を例にしても、主要被写
体の色は単一ではなく一定の色の範囲を有する場合もあ
ることから、特定の色(例えば人物の肌の色)を有する
領域のみを対象にして輝度を補正すると、その色に類似
する他の色の領域に対して補正過剰となり、かえって補
正後の画質が低下することも考えられる。また、補正前
の主要被写体の輝度が適正輝度に対して極端に高い場合
や逆に低い場合に、主要被写体領域の輝度を完全に適正
輝度にまで補正すると、主要被写体以外の部分の輝度が
異常に低くなったり又は高くなるおそれがある。従っ
て、これらの場合には、主要被写体領域の輝度を完全に
適正輝度にまで補正するのではなく、適正輝度に近い程
度の補正でとどめておく方が好ましい。さらに、上記各
実施形態では、主要被写体領域の色を専ら単色として扱
ったが、これに限定されるものではなく、所定の範囲に
含まれる複数の色としても良い。
Other Embodiments In the above embodiments, the main subject region is specified, and the luminance correction amount is determined so that the average value of the luminance of the main subject region becomes a predetermined luminance value corresponding to the proper luminance. However, the present invention is not limited to this, and a predetermined coefficient (for example, 6
A value multiplied by an arbitrary value between 0 and 80%) may be used as the luminance correction amount. That is, as shown in FIG. 7, even if the main subject color is a person's skin color as an example, the main subject color may have a certain color range instead of a single color. If the luminance is corrected only for an area having (for example, the skin color of a person), the correction is excessive for the area of another color similar to that color, and the image quality after correction may be reduced. . Also, if the brightness of the main subject before correction is extremely high or low relative to the proper brightness, and the brightness of the main subject area is completely corrected to the proper brightness, the brightness of the parts other than the main subject will be abnormal. May be lower or higher. Therefore, in these cases, it is preferable that the luminance of the main subject region is not completely corrected to the proper luminance, but is corrected to a degree close to the proper luminance. Furthermore, in each of the above embodiments, the color of the main subject area is treated as a single color, but is not limited thereto, and may be a plurality of colors included in a predetermined range.

【0070】また、上記各実施形態では、補正前の画像
をプレスキャン画像としてディスプレイ203のモニタ
画面上に表示するように構成したが、さらに補正後の画
像データを用いてプリント用の画像をディスプレイ20
3のモニタ画面上に表示しても良い。さらに、ディスプ
レイ203のモニタ画面上にプレスキャン画像を表示す
る場合及び主要被写体領域の輝度補正量を演算する場合
に、画像データの画素数を間引いて使用しても良い。
In each of the above embodiments, the image before correction is displayed as a pre-scan image on the monitor screen of the display 203. However, the image for printing is further displayed using the image data after correction. 20
3 may be displayed on the monitor screen. Furthermore, when displaying a pre-scan image on the monitor screen of the display 203 and when calculating the luminance correction amount of the main subject area, the number of pixels of the image data may be reduced and used.

【0071】さらに、上記各実施形態では、画像形成装
置としてディジタルプリンタを例にして説明したが、こ
れに限定されるものではなく、パーソナルコンピュータ
及びそれに接続されたカラープリンタ、例えば熱転写式
カラープリンタ、インクジェット式カラープリンタ及び
レーザ式カラープリンタなどであっても良い。
Furthermore, in each of the above embodiments, a digital printer has been described as an example of an image forming apparatus. However, the present invention is not limited to this, and a personal computer and a color printer connected thereto, such as a thermal transfer type color printer, An inkjet color printer, a laser color printer, or the like may be used.

【0072】さらに、本発明は画像形成装置に限定され
ず、パーソナルコンピュータで実行される画像データ補
正方法及びその方法を実行するためのプログラムを記録
した記録媒体も含む。
Further, the present invention is not limited to the image forming apparatus, but also includes a method for correcting image data executed by a personal computer and a recording medium on which a program for executing the method is recorded.

【0073】[0073]

【発明の効果】以上説明したように、本発明の第1の画
像形成装置によれば、複数の画素データで構成された画
像データを用いてモニタ画面上に画像を再生する画像再
生手段と、モニタ画面上に再生された画像のうち特定の
範囲を選択する範囲選択手段と、モニタ画面上に再生さ
れた画像が逆光又は逆光に近い状態である場合に逆光条
件を設定する逆光設定手段と、逆光条件が設定された場
合に、選択された範囲に含まれる画素データのうち輝度
の低い方から所定の割合の画素データを抽出し、逆光条
件が設定されていない場合に、選択された範囲に含まれ
る画素データのうち輝度の高い方から所定の割合の画素
データを抽出する画素データ抽出手段と、前記画素デー
タ抽出手段により抽出された画素データを用いて、選択
された範囲の輝度の平均値を演算する平均輝度演算手段
と、求められた輝度の平均値をあらかじめ設定された所
定の輝度値に補正するための補正量を演算により求める
補正量演算手段と、求められた補正量を用いて全画素デ
ータを補正する画像データ補正手段と、補正された画像
データを用いて画像を形成する画像形成手段とを具備す
る。
As described above, according to the first image forming apparatus of the present invention, an image reproducing means for reproducing an image on a monitor screen using image data composed of a plurality of pixel data, Range selection means for selecting a specific range among the images reproduced on the monitor screen, and backlight setting means for setting a backlight condition when the image reproduced on the monitor screen is in a state of backlight or close to backlight, When the backlight condition is set, a predetermined ratio of pixel data is extracted from the lower luminance pixel data included in the selected range, and when the backlight condition is not set, the pixel data is extracted to the selected range. A pixel data extraction unit that extracts a predetermined percentage of pixel data from the pixel data having the highest luminance among the pixel data included, and a luminance in a selected range using the pixel data extracted by the pixel data extraction unit. Average brightness calculating means for calculating an average value, correction amount calculating means for calculating a correction amount for correcting the average value of the obtained brightness to a predetermined brightness value set in advance, and calculating the obtained correction amount. Image data correcting means for correcting all pixel data using the image data; and image forming means for forming an image using the corrected image data.

【0074】また、本発明の第1の画像データ処理方法
によれば、複数の画素データで構成された画像データを
用いてモニタ画面上に画像を再生する画像再生ステップ
と、モニタ画面上に再生された画像のうち特定の範囲を
選択する範囲選択ステップと、モニタ画面上に再生され
た画像が逆光又は逆光に近い状態である場合に逆光条件
を設定する逆光設定ステップと、逆光条件が設定された
場合に、選択された範囲に含まれる画素データのうち輝
度の低い方から所定の割合の画素データを抽出し、逆光
条件が設定されていない場合に、選択された範囲に含ま
れる画素データのうち輝度の高い方から所定の割合の画
素データを抽出する画素データ抽出ステップと、前記画
素データ抽出手段により抽出された画素データを用い
て、選択された範囲の輝度の平均値を演算する平均輝度
演算ステップと、求められた輝度の平均値をあらかじめ
設定された所定の輝度値に補正するための補正量を演算
により求める補正量演算ステップと、求められた補正量
を用いて全画素データを補正する画像データ補正ステッ
プと、補正された画像データを出力する補正画像データ
出力ステップとを具備する。
According to the first image data processing method of the present invention, an image reproducing step of reproducing an image on a monitor screen using image data composed of a plurality of pixel data, A range selection step of selecting a specific range from among the displayed images, a backlight setting step of setting a backlight condition when the image reproduced on the monitor screen is in backlight or close to backlight, and a backlight condition is set. When the backlight condition is not set, the pixel data included in the selected range is extracted from the pixel data included in the selected range. A pixel data extraction step of extracting a predetermined percentage of pixel data from a pixel having a higher luminance, and a selected area using the pixel data extracted by the pixel data extraction means. An average luminance calculating step of calculating an average luminance value, a correction amount calculating step of calculating a correction amount for correcting the calculated average luminance value to a predetermined luminance value, and a calculated correction amount An image data correction step of correcting all pixel data using the amount and a corrected image data output step of outputting corrected image data are provided.

【0075】さらに、本発明の第1の画像データ処理プ
ログラムを記録した記録媒体によれば、複数の画素デー
タで構成された画像データを用いてモニタ画面上に画像
を再生する画像再生処理と、モニタ画面上に再生された
画像のうち特定の範囲を選択する範囲選択処理と、モニ
タ画面上に再生された画像が逆光又は逆光に近い状態で
ある場合に逆光条件を設定する逆光設定処理と、逆光条
件が設定された場合に、選択された範囲に含まれる画素
データのうち輝度の低い方から所定の割合の画素データ
を抽出し、逆光条件が設定されていない場合に、選択さ
れた範囲に含まれる画素データのうち輝度の高い方から
所定の割合の画素データを抽出する画素データ抽出処理
と、前記画素データ抽出手段により抽出された画素デー
タを用いて、選択された範囲の輝度の平均値を演算する
平均輝度演算処理と、求められた輝度の平均値をあらか
じめ設定された所定の輝度値に補正するための補正量を
演算により求める補正量演算処理と、求められた補正量
を用いて全画素データを補正する画像データ補正処理
と、補正された画像データを出力する補正画像データ出
力処理とをコンピュータに実行させるように記録されて
いる。
Further, according to the recording medium on which the first image data processing program of the present invention is recorded, an image reproducing process for reproducing an image on a monitor screen using image data composed of a plurality of pixel data; A range selection process of selecting a specific range among images reproduced on the monitor screen, and a backlight setting process of setting a backlight condition when the image reproduced on the monitor screen is in a state of backlight or close to backlight, When the backlight condition is set, a predetermined ratio of pixel data is extracted from the lower luminance pixel data included in the selected range, and when the backlight condition is not set, the pixel data is extracted to the selected range. A pixel data extraction process of extracting a predetermined percentage of pixel data from the higher luminance among the included pixel data, and selecting the pixel data using the pixel data extracted by the pixel data extraction means. Average brightness calculation processing for calculating the average value of the brightness of the selected range, and correction amount calculation processing for calculating the correction amount for correcting the calculated average value of the brightness to a predetermined brightness value, An image data correction process for correcting all pixel data using the obtained correction amount and a corrected image data output process for outputting the corrected image data are recorded to be executed by a computer.

【0076】すなわち、これらの発明によれば、ユーザ
又はオペレータが主要被写体であると認識し、モニタ画
面上で特定した範囲の画素データを用いて、その特定し
た範囲の輝度が適正となるように画像データ全体を補正
するので、例えば逆光シーンやフラッシュ撮影などの場
合であっても、画面の主要被写体である人物の顔の部分
が適正な明るさ(濃度)に補正された画像を得ることが
できる。また、ユーザ又はオペレータにより逆光シーン
と判断された場合は、主要被写体領域のうち、暗い方か
ら所定の割合(例えば2/3)の画素データを用い、逆
光シーンでないと判断された場合は、主要被写体領域の
うち、明るい方から所定の割合(例えば2/3)の画素
データを用いるので、背景に主要被写体の色(例えば人
物の肌の色)と同じ又は同系統の色の領域が含まれる場
合であっても、背景部分による影響を少なくして、主要
被写体の濃度をより適正に補正することができる。さら
に、画像の主要被写体の範囲をユーザ又はオペレータが
指定するので、輝度補正に用いる画素データの数を少な
くすることができ、輝度補正量の演算に要する時間を短
くすることができる。
That is, according to these inventions, the user or the operator recognizes the main subject and uses the pixel data of the specified range on the monitor screen so that the brightness of the specified range becomes appropriate. Since the entire image data is corrected, it is possible to obtain an image in which the face portion of a person who is the main subject on the screen is corrected to an appropriate brightness (density) even in a backlight scene or flash photography, for example. it can. If the user or the operator determines that the scene is a backlight scene, a predetermined ratio (for example, 2/3) of pixel data from the darker one of the main subject areas is used. Since a predetermined ratio (for example, 2/3) of pixel data is used from the brightest one in the subject region, the background includes a region of the same or similar color as the color of the main subject (for example, the skin color of a person). Even in this case, the influence of the background portion can be reduced, and the density of the main subject can be corrected more appropriately. Further, since the range of the main subject of the image is specified by the user or the operator, the number of pixel data used for the luminance correction can be reduced, and the time required for calculating the luminance correction amount can be shortened.

【0077】また、本発明の第2の画像形成装置によれ
ば、複数の画素データで構成された画像データを用いて
モニタ画面上に画像を再生する画像再生手段と、モニタ
画面上に再生された画像が逆光又は逆光に近い状態であ
る場合に逆光条件を設定する逆光設定手段と、前記画像
データに含まれる各画素データからその画素の色を特定
する色特定手段と、特定された各画素の色の中に所定の
色が含まれているか否かを判別し、所定の色を有する画
素データを抽出する第1画素データ抽出手段と、逆光条
件が設定された場合に、選択された範囲に含まれる画素
データのうち輝度の低い方から所定の割合の画素データ
を抽出し、逆光条件が設定されていない場合に、選択さ
れた範囲に含まれる画素データのうち輝度の高い方から
所定の割合の画素データを抽出する第2画素データ抽出
手段と、第2画素データ抽出手段により抽出された画素
データを用いてその輝度の平均値を求める平均輝度演算
手段と、求められた輝度の平均値をあらかじめ設定され
た所定の輝度値に補正するための補正量を演算により求
める補正量演算手段と、求められた補正量を用いて全画
素データを補正する画像データ補正手段と、補正された
画像データを用いて画像を形成する画像形成手段とを具
備する。
According to the second image forming apparatus of the present invention, an image reproducing means for reproducing an image on a monitor screen using image data composed of a plurality of pixel data, and an image reproducing means for reproducing an image on the monitor screen. Backlight setting means for setting a backlight condition when the image is in backlight or near backlight, color specifying means for specifying the color of the pixel from each pixel data included in the image data, and each specified pixel A first pixel data extracting means for determining whether or not a predetermined color is included in the colors, and extracting pixel data having a predetermined color; and selecting a selected range when a backlight condition is set. A predetermined percentage of pixel data is extracted from the lower luminance one of the pixel data included in the pixel data, and when the backlight condition is not set, a predetermined percentage is selected from the higher luminance one of the pixel data included in the selected range. Percentage of pixels A second pixel data extracting means for extracting data, an average luminance calculating means for calculating an average value of the luminance using the pixel data extracted by the second pixel data extracting means, and an average luminance value calculated in advance. Correction amount calculating means for calculating a correction amount for correcting to a set predetermined brightness value, image data correcting means for correcting all pixel data using the obtained correction amount, and correcting the corrected image data. Image forming means for forming an image by using the image forming means.

【0078】また、本発明の第2の画像データ処理方法
によれば、複数の画素データで構成された画像データを
用いてモニタ画面上に画像を再生する画像再生ステップ
と、モニタ画面上に再生された画像が逆光又は逆光に近
い状態である場合に逆光条件を設定する逆光設定ステッ
プと、前記画像データに含まれる各画素データからその
画素の色を特定する色特定ステップと、特定された各画
素の色の中に所定の色が含まれているか否かを判別し、
所定の色を有する画素データを抽出する第1画素データ
抽出ステップと、逆光条件が設定された場合に、選択さ
れた範囲に含まれる画素データのうち輝度の低い方から
所定の割合の画素データを抽出し、逆光条件が設定され
ていない場合に、選択された範囲に含まれる画素データ
のうち輝度の高い方から所定の割合の画素データを抽出
する第2画素データ抽出ステップと、第2画素データ抽
出ステップで抽出された画素データを用いてその輝度の
平均値を求める平均輝度演算ステップと、求められた輝
度の平均値をあらかじめ設定された所定の輝度値に補正
するための補正量を演算により求める補正量演算ステッ
プと、求められた補正量を用いて全画素データを補正す
る画像データ補正ステップと、補正された画像データを
出力する補正画像データ出力ステップとを具備する。
According to the second image data processing method of the present invention, an image reproducing step of reproducing an image on a monitor screen using image data composed of a plurality of pixel data, A backlight setting step of setting a backlight condition when the image is in a state of backlight or close to backlight, a color identification step of identifying the color of the pixel from each pixel data included in the image data, Determine whether a predetermined color is included in the color of the pixel,
A first pixel data extraction step of extracting pixel data having a predetermined color, and, when a backlight condition is set, a predetermined ratio of pixel data having a lower luminance among pixel data included in the selected range. A second pixel data extraction step of extracting a predetermined percentage of pixel data from a pixel having higher luminance out of pixel data included in the selected range when the backlight condition is not set; An average brightness calculation step of calculating an average value of the brightness using the pixel data extracted in the extraction step, and a correction amount for correcting the calculated average value of the brightness to a predetermined brightness value by calculation. A correction amount calculation step to be obtained, an image data correction step to correct all pixel data using the obtained correction amount, and a corrected image to output the corrected image data Comprising an over data output step.

【0079】さらに、本発明の第2の画像データ処理プ
ログラムを記録した記録媒体によれば、複数の画素デー
タで構成された画像データを用いてモニタ画面上に画像
を再生する画像再生処理と、モニタ画面上に再生された
画像が逆光又は逆光に近い状態である場合に逆光条件を
設定する逆光設定処理と、複数の画素データで構成され
た画像データに含まれる各画素データからその画素の色
を特定する色特定処理と、特定された各画素の色の中に
所定の色が含まれているか否かを判別し、所定の色を有
する画素データを抽出する第1画素データ抽出処理と、
逆光条件が設定された場合に、選択された範囲に含まれ
る画素データのうち輝度の低い方から所定の割合の画素
データを抽出し、逆光条件が設定されていない場合に、
選択された範囲に含まれる画素データのうち輝度の高い
方から所定の割合の画素データを抽出する第2画素デー
タ抽出処理と、第2画素データ抽出処理で抽出された全
画素データを用いてその輝度の平均値を求める平均輝度
演算手段と、求められた輝度の平均値をあらかじめ設定
された所定の輝度値に補正するための補正量を演算によ
り求める補正量演算処理と、求められた補正量を用いて
全画素データを補正する画像データ補正処理と、補正さ
れた画像データを出力する補正画像データ出力処理とを
コンピュータに実行させるように記録されている。
Further, according to the recording medium in which the second image data processing program of the present invention is recorded, an image reproducing process for reproducing an image on a monitor screen using image data composed of a plurality of pixel data; A backlight setting process for setting a backlight condition when an image reproduced on the monitor screen is in backlight or near backlight, and a color of the pixel from each pixel data included in the image data composed of a plurality of pixel data A first pixel data extraction process of determining whether a predetermined color is included in the specified color of each pixel and extracting pixel data having a predetermined color;
When a backlight condition is set, a predetermined ratio of pixel data is extracted from the lower luminance among the pixel data included in the selected range, and if the backlight condition is not set,
A second pixel data extraction process for extracting a predetermined ratio of pixel data from a pixel having a higher luminance among the pixel data included in the selected range, and using the all pixel data extracted in the second pixel data extraction process Average luminance calculating means for calculating an average luminance value, a correction amount calculating process for calculating a correction amount for correcting the obtained average luminance value to a predetermined luminance value, and a calculated correction amount Are recorded so as to cause a computer to execute an image data correction process of correcting all pixel data by using a computer and a corrected image data output process of outputting corrected image data.

【0080】すなわち、これらの発明によれば、ユーザ
又はオペレータが入力した主要被写体領域の色、例えば
人物の肌色の領域を自動的に検出して画像データの輝度
補正を行うので、各画像データについて輝度補正量の演
算に用いる画素データ数は上記第1の場合よりも多くな
るが、各画像ごとの主要被写体領域の選択処理が不要と
なり、例えば1枚の記録媒体に複数の画像データが記録
されており、全ての画像をプリントする場合などでは、
トータルの処理時間を短くすることが可能である。
That is, according to these inventions, the color of the main subject area input by the user or the operator, for example, the skin color area of a person is automatically detected and the brightness correction of the image data is performed. Although the number of pixel data used for calculating the luminance correction amount is larger than that in the first case, it is not necessary to select a main subject area for each image. For example, a plurality of image data are recorded on one recording medium. When printing all images,
It is possible to shorten the total processing time.

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

【図1】 本発明の一実施形態に係るディジタルプリン
タの外観構成を示す図である。
FIG. 1 is a diagram illustrating an external configuration of a digital printer according to an embodiment of the present invention.

【図2】 本発明の第1実施形態におけるディジタルプ
リンタのブロック構成を示す図である。
FIG. 2 is a diagram illustrating a block configuration of a digital printer according to the first embodiment of the present invention.

【図3】 第1実施形態における画像データ処理のフロ
ーチャートである。
FIG. 3 is a flowchart of image data processing according to the first embodiment.

【図4】 図3のフローチャートの続きである。FIG. 4 is a continuation of the flowchart in FIG. 3;

【図5】 本発明による画像データの輝度補正の効果を
説明するための図である。
FIG. 5 is a diagram for explaining an effect of luminance correction of image data according to the present invention.

【図6】 本発明の第2実施形態におけるディジタルプ
リンタのブロック構成を示す図である。
FIG. 6 is a diagram illustrating a block configuration of a digital printer according to a second embodiment of the present invention.

【図7】 色情報を2次元的に表した図である。FIG. 7 is a diagram showing color information two-dimensionally.

【図8】 第2実施形態における画像データ処理のフロ
ーチャートである。
FIG. 8 is a flowchart of image data processing according to the second embodiment.

【図9】 図8のフローチャートの続きである。FIG. 9 is a continuation of the flowchart in FIG. 8;

【図10】 図7及び図8のフローチャートの続きであ
る。
FIG. 10 is a continuation of the flowcharts of FIGS. 7 and 8;

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

100:画像形成部 200:画像データ処理部 210:画像データ入力部 211:画像再生部 212:範囲選択部 213:逆光設定部 214:画素データ抽出部 215:平均輝度演算部 216:補正量演算部 217:画像データ補正部 218:補正画像データ出力部 220:画像データ入力部 221:画像再生部 222:逆光設定部 223:色特定部 224:画素データ抽出部 225:平均輝度演算部 226:補正量演算部 227:画像データ補正部 228:補正画像データ出力部 100: Image forming unit 200: Image data processing unit 210: Image data input unit 211: Image reproduction unit 212: Range selection unit 213: Backlight setting unit 214: Pixel data extraction unit 215: Average luminance calculation unit 216: Correction amount calculation unit 217: Image data correction unit 218: Corrected image data output unit 220: Image data input unit 221: Image reproduction unit 222: Backlight setting unit 223: Color specification unit 224: Pixel data extraction unit 225: Average luminance calculation unit 226: Correction amount Operation unit 227: Image data correction unit 228: Corrected image data output unit

───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.7 識別記号 FI テーマコート゛(参考) H04N 1/46 H04N 1/40 101E 5C077 5/20 D 5C079 9/64 1/46 Z Fターム(参考) 2H106 AA62 AA72 AA80 BH00 2H110 BA07 BA13 BA17 BA18 CE08 5B057 AA11 BA02 BA24 BA25 CA01 CA08 CA12 CA16 CB01 CB08 CB12 CB16 CC03 CE11 CE17 CE18 CH08 CH18 DA08 DA16 DA17 5C021 PA17 PA52 PA72 RB03 XA13 XA35 5C066 AA11 CA11 EA07 GA01 GA05 GB02 GB03 KD01 KD06 KE01 KE09 KM11 5C077 LL04 LL19 MM20 MP08 PP15 PP32 PP34 PP37 PP46 PQ08 PQ19 PQ22 SS05 TT09 5C079 HB01 HB04 JA04 LA02 LA12 LA31 MA11 MA17 MA20 NA05 NA11 PA08 ──────────────────────────────────────────────────の Continued on the front page (51) Int.Cl. 7 Identification symbol FI Theme coat ゛ (Reference) H04N 1/46 H04N 1/40 101E 5C077 5/20 D 5C079 9/64 1/46 Z F term (Reference) 2H106 AA62 AA72 AA80 BH00 2H110 BA07 BA13 BA17 BA18 CE08 5B057 AA11 BA02 BA24 BA25 CA01 CA08 CA12 CA16 CB01 CB08 CB12 CB16 CC03 CE11 CE17 CE18 CH08 CH18 DA08 DA16 DA17 5C021 PA17 PA52 PA72 RB03 XA13 XA01 GBA GBA GAB KE01 KE09 KM11 5C077 LL04 LL19 MM20 MP08 PP15 PP32 PP34 PP37 PP46 PQ08 PQ19 PQ22 SS05 TT09 5C079 HB01 HB04 JA04 LA02 LA12 LA31 MA11 MA17 MA20 NA05 NA11 PA08

Claims (10)

【特許請求の範囲】[Claims] 【請求項1】 複数の画素データで構成された画像デー
タを用いてモニタ画面上に画像を再生する画像再生手段
と、 モニタ画面上に再生された画像のうち特定の範囲を選択
する範囲選択手段と、 モニタ画面上に再生された画像が逆光又は逆光に近い状
態である場合に逆光条件を設定する逆光設定手段と、 逆光条件が設定された場合に、選択された範囲に含まれ
る画素データのうち輝度の低い方から所定の割合の画素
データを抽出し、逆光条件が設定されていない場合に、
選択された範囲に含まれる画素データのうち輝度の高い
方から所定の割合の画素データを抽出する画素データ抽
出手段と、 前記画素データ抽出手段により抽出された画素データを
用いて、選択された範囲の輝度の平均値を演算する平均
輝度演算手段と、 求められた輝度の平均値をあらかじめ設定された所定の
輝度値に補正するための補正量を演算により求める補正
量演算手段と、 求められた補正量を用いて全画素データを補正する画像
データ補正手段と、 補正された画像データを用いて画像を形成する画像形成
手段とを具備することを特徴とする画像形成装置。
1. An image reproducing means for reproducing an image on a monitor screen by using image data composed of a plurality of pixel data, and a range selecting means for selecting a specific range from the images reproduced on the monitor screen. And backlight setting means for setting a backlight condition when the image reproduced on the monitor screen is in backlight or near backlight, and when the backlight condition is set, the pixel data included in the selected range is A predetermined percentage of pixel data is extracted from the one with the lower luminance, and when the backlight condition is not set,
A pixel data extracting unit that extracts a predetermined percentage of pixel data from a pixel having higher luminance among the pixel data included in the selected range; and a selected range using the pixel data extracted by the pixel data extracting unit. Average brightness calculating means for calculating an average value of the brightness of the pixels, and correction amount calculating means for calculating a correction amount for correcting the calculated average value of the brightness to a predetermined brightness value. An image forming apparatus comprising: an image data correcting unit configured to correct all pixel data using a correction amount; and an image forming unit configured to form an image using the corrected image data.
【請求項2】 複数の画素データで構成された画像デー
タを用いてモニタ画面上に画像を再生する画像再生手段
と、 モニタ画面上に再生された画像が逆光又は逆光に近い状
態である場合に逆光条件を設定する逆光設定手段と、 前記画像データに含まれる各画素データからその画素の
色を特定する色特定手段と、 特定された各画素の色の中に所定の色が含まれているか
否かを判別し、所定の色を有する画素データを抽出する
第1画素データ抽出手段と、 逆光条件が設定された場合に、選択された範囲に含まれ
る画素データのうち輝度の低い方から所定の割合の画素
データを抽出し、逆光条件が設定されていない場合に、
選択された範囲に含まれる画素データのうち輝度の高い
方から所定の割合の画素データを抽出する第2画素デー
タ抽出手段と、 第2画素データ抽出手段により抽出された画素データを
用いてその輝度の平均値を求める平均輝度演算手段と、 求められた輝度の平均値をあらかじめ設定された所定の
輝度値に補正するための補正量を演算により求める補正
量演算手段と、 求められた補正量を用いて全画素データを補正する画像
データ補正手段と、 補正された画像データを用いて画像を形成する画像形成
手段とを具備することを特徴とする画像形成装置。
2. An image reproducing means for reproducing an image on a monitor screen by using image data composed of a plurality of pixel data, and when the image reproduced on the monitor screen is in a state of backlight or near backlight. Backlight setting means for setting a backlight condition; color specifying means for specifying a color of the pixel from each pixel data included in the image data; and whether a predetermined color is included in the specified color of each pixel. First pixel data extracting means for judging whether or not the pixel data has a predetermined color, and a first pixel data extracting means for extracting pixel data having a predetermined color from a pixel having a lower luminance among pixel data included in the selected range when a backlight condition is set. The pixel data of the ratio of is extracted, and when the backlight condition is not set,
A second pixel data extracting means for extracting a predetermined ratio of pixel data from a pixel having a higher luminance among the pixel data included in the selected range, and using the pixel data extracted by the second pixel data extracting means, Average brightness calculating means for calculating an average value of the correction value; correction amount calculating means for calculating a correction amount for correcting the calculated average value of the brightness to a predetermined brightness value; and calculating the calculated correction amount. An image forming apparatus comprising: an image data correcting unit that corrects all pixel data using the image data; and an image forming unit that forms an image by using the corrected image data.
【請求項3】 前記補正量は、前記所定の輝度値と前記
輝度の平均値との差に所定の係数を掛けた値であること
を特徴とする請求項1又は2記載の画像形成装置。
3. The image forming apparatus according to claim 1, wherein the correction amount is a value obtained by multiplying a difference between the predetermined luminance value and the average value of the luminance by a predetermined coefficient.
【請求項4】 前記所定の色は人間の皮膚に関する色で
あることを特徴とする請求項1から3のいずれかに記載
の画像形成装置。
4. The image forming apparatus according to claim 1, wherein the predetermined color is a color related to human skin.
【請求項5】 複数の画素データで構成された画像デー
タを用いてモニタ画面上に画像を再生する画像再生ステ
ップと、 モニタ画面上に再生された画像のうち特定の範囲を選択
する範囲選択ステップと、 モニタ画面上に再生された画像が逆光又は逆光に近い状
態である場合に逆光条件を設定する逆光設定ステップ
と、 逆光条件が設定された場合に、選択された範囲に含まれ
る画素データのうち輝度の低い方から所定の割合の画素
データを抽出し、逆光条件が設定されていない場合に、
選択された範囲に含まれる画素データのうち輝度の高い
方から所定の割合の画素データを抽出する画素データ抽
出ステップと、 前記画素データ抽出手段により抽出された画素データを
用いて、選択された範囲の輝度の平均値を演算する平均
輝度演算ステップと、 求められた輝度の平均値をあらかじめ設定された所定の
輝度値に補正するための補正量を演算により求める補正
量演算ステップと、 求められた補正量を用いて全画素データを補正する画像
データ補正ステップと、補正された画像データを出力す
る補正画像データ出力ステップとを具備することを特徴
とする画像データ処理方法。
5. An image reproducing step of reproducing an image on a monitor screen using image data composed of a plurality of pixel data, and a range selecting step of selecting a specific range from the images reproduced on the monitor screen. A backlight setting step of setting a backlight condition when an image reproduced on the monitor screen is in backlight or close to backlight, and, when the backlight condition is set, the pixel data included in the selected range. A predetermined percentage of pixel data is extracted from the one with the lower luminance, and when the backlight condition is not set,
A pixel data extraction step of extracting a predetermined percentage of pixel data from the pixel data having the higher luminance among the pixel data included in the selected range; and a selected range using the pixel data extracted by the pixel data extraction means. An average brightness calculating step of calculating an average value of the brightness of the pixels; and a correction amount calculating step of calculating a correction amount for correcting the obtained average value of the brightness to a predetermined brightness value. An image data processing method, comprising: an image data correction step of correcting all pixel data using a correction amount; and a corrected image data output step of outputting corrected image data.
【請求項6】 複数の画素データで構成された画像デー
タを用いてモニタ画面上に画像を再生する画像再生ステ
ップと、 モニタ画面上に再生された画像が逆光又は逆光に近い状
態である場合に逆光条件を設定する逆光設定ステップ
と、 前記画像データに含まれる各画素データからその画素の
色を特定する色特定ステップと、 特定された各画素の色の中に所定の色が含まれているか
否かを判別し、所定の色を有する画素データを抽出する
第1画素データ抽出ステップと、 逆光条件が設定された場合に、選択された範囲に含まれ
る画素データのうち輝度の低い方から所定の割合の画素
データを抽出し、逆光条件が設定されていない場合に、
選択された範囲に含まれる画素データのうち輝度の高い
方から所定の割合の画素データを抽出する第2画素デー
タ抽出ステップと、 第2画素データ抽出ステップで抽出された画素データを
用いてその輝度の平均値を求める平均輝度演算ステップ
と、 求められた輝度の平均値をあらかじめ設定された所定の
輝度値に補正するための補正量を演算により求める補正
量演算ステップと、 求められた補正量を用いて全画素データを補正する画像
データ補正ステップと、補正された画像データを出力す
る補正画像データ出力ステップとを具備することを特徴
とする画像データ処理方法。
6. An image reproducing step of reproducing an image on a monitor screen by using image data composed of a plurality of pixel data, and in a case where the image reproduced on the monitor screen is in a state of backlight or near backlight. A backlight setting step for setting a backlight condition; a color specifying step for specifying a color of the pixel from each pixel data included in the image data; and whether a predetermined color is included in the specified color of each pixel. A first pixel data extraction step of judging whether or not the pixel data has a predetermined color, and, when a backlight condition is set, the predetermined pixel data included in the selected range from a pixel having a lower luminance in a predetermined range. The pixel data of the ratio of is extracted, and when the backlight condition is not set,
A second pixel data extraction step of extracting a predetermined percentage of pixel data from the pixel data included in the selected range in descending order of the luminance, and using the pixel data extracted in the second pixel data extraction step to extract the luminance of the pixel data. An average luminance calculating step of calculating an average value of the calculated luminance value; a correction amount calculating step of calculating a correction amount for correcting the average value of the obtained luminance to a predetermined luminance value set in advance; An image data processing method comprising: an image data correction step of correcting all pixel data by using the image data correction step; and a corrected image data output step of outputting corrected image data.
【請求項7】 前記補正量は、前記所定の輝度値と前記
輝度の平均値との差に所定の係数を掛けた値であること
を特徴とする請求項5又は6記載の画像データ処理方
法。
7. The image data processing method according to claim 5, wherein the correction amount is a value obtained by multiplying a difference between the predetermined luminance value and the average value of the luminance by a predetermined coefficient. .
【請求項8】 前記所定の色は人間の皮膚に関する色で
あることを特徴とする請求項5から7のいずれかに記載
の画像データ処理方法。
8. The image data processing method according to claim 5, wherein the predetermined color is a color relating to human skin.
【請求項9】 複数の画素データで構成された画像デー
タを用いてモニタ画面上に画像を再生する画像再生処理
と、 モニタ画面上に再生された画像のうち特定の範囲を選択
する範囲選択処理と、 モニタ画面上に再生された画像が逆光又は逆光に近い状
態である場合に逆光条件を設定する逆光設定処理と、 逆光条件が設定された場合に、選択された範囲に含まれ
る画素データのうち輝度の低い方から所定の割合の画素
データを抽出し、逆光条件が設定されていない場合に、
選択された範囲に含まれる画素データのうち輝度の高い
方から所定の割合の画素データを抽出する画素データ抽
出処理と、 前記画素データ抽出手段により抽出された画素データを
用いて、選択された範囲の輝度の平均値を演算する平均
輝度演算処理と、 求められた輝度の平均値をあらかじめ設定された所定の
輝度値に補正するための補正量を演算により求める補正
量演算処理と、 求められた補正量を用いて全画素データを補正する画像
データ補正処理と、補正された画像データを出力する補
正画像データ出力処理とをコンピュータに実行させるよ
うに記録されていることを特徴とする画像データ処理プ
ログラムを記録した記録媒体。
9. An image reproducing process for reproducing an image on a monitor screen using image data composed of a plurality of pixel data, and a range selecting process for selecting a specific range from the images reproduced on the monitor screen. And backlight setting processing for setting a backlight condition when an image reproduced on the monitor screen is in backlight or near backlight, and, when the backlight condition is set, the pixel data included in the selected range. A predetermined percentage of pixel data is extracted from the one with the lower luminance, and when the backlight condition is not set,
A pixel data extraction process for extracting a predetermined percentage of pixel data from the pixel with the highest luminance among the pixel data included in the selected range, and a selected range using the pixel data extracted by the pixel data extraction means. Average brightness calculation processing for calculating the average value of the brightness of the pixels, and correction amount calculation processing for calculating the correction amount for correcting the calculated average value of the brightness to a predetermined brightness value. Image data processing which is recorded so that a computer executes an image data correction process of correcting all pixel data using a correction amount and a corrected image data output process of outputting corrected image data. A recording medium on which a program is recorded.
【請求項10】 複数の画素データで構成された画像デ
ータを用いてモニタ画面上に画像を再生する画像再生処
理と、 モニタ画面上に再生された画像が逆光又は逆光に近い状
態である場合に逆光条件を設定する逆光設定処理と、 複数の画素データで構成された画像データに含まれる各
画素データからその画素の色を特定する色特定処理と、 特定された各画素の色の中に所定の色が含まれているか
否かを判別し、所定の色を有する画素データを抽出する
第1画素データ抽出処理と、 逆光条件が設定された場合に、選択された範囲に含まれ
る画素データのうち輝度の低い方から所定の割合の画素
データを抽出し、逆光条件が設定されていない場合に、
選択された範囲に含まれる画素データのうち輝度の高い
方から所定の割合の画素データを抽出する第2画素デー
タ抽出処理と、 第2画素データ抽出処理で抽出された全画素データを用
いてその輝度の平均値を求める平均輝度演算手段と、 求められた輝度の平均値をあらかじめ設定された所定の
輝度値に補正するための補正量を演算により求める補正
量演算処理と、 求められた補正量を用いて全画素データを補正する画像
データ補正処理と、補正された画像データを出力する補
正画像データ出力処理とをコンピュータに実行させるよ
うに記録されていることを特徴とする画像データ処理プ
ログラムを記録した記録媒体。
10. An image playback process for playing back an image on a monitor screen using image data composed of a plurality of pixel data, and when the image played back on the monitor screen is in a backlight or near backlight state. Backlight setting processing for setting a backlight condition; color identification processing for identifying the color of the pixel from each pixel data included in the image data composed of a plurality of pixel data; A first pixel data extraction process of determining whether or not the pixel data includes the color of the pixel data, and extracting pixel data having a predetermined color; and a process of extracting pixel data included in the selected range when a backlight condition is set. A predetermined percentage of pixel data is extracted from the one with the lower luminance, and when the backlight condition is not set,
A second pixel data extraction process for extracting a predetermined percentage of pixel data from the higher luminance pixel data included in the selected range, and using all pixel data extracted in the second pixel data extraction process. Average luminance calculating means for calculating an average luminance value; a correction amount calculating process for calculating a correction amount for correcting the obtained average luminance value to a predetermined luminance value; and a calculated correction amount. An image data processing program characterized by being recorded so as to cause a computer to execute an image data correction process of correcting all pixel data by using a computer, and a corrected image data output process of outputting corrected image data. The recording medium on which it was recorded.
JP2000380912A 2000-12-14 2000-12-14 Image forming apparatus, image data processing method, and recording medium recording image data processing program Expired - Fee Related JP4415488B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2000380912A JP4415488B2 (en) 2000-12-14 2000-12-14 Image forming apparatus, image data processing method, and recording medium recording image data processing program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2000380912A JP4415488B2 (en) 2000-12-14 2000-12-14 Image forming apparatus, image data processing method, and recording medium recording image data processing program

Publications (2)

Publication Number Publication Date
JP2002185793A true JP2002185793A (en) 2002-06-28
JP4415488B2 JP4415488B2 (en) 2010-02-17

Family

ID=18849018

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000380912A Expired - Fee Related JP4415488B2 (en) 2000-12-14 2000-12-14 Image forming apparatus, image data processing method, and recording medium recording image data processing program

Country Status (1)

Country Link
JP (1) JP4415488B2 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2004030373A1 (en) * 2002-09-26 2004-04-08 Seiko Epson Corporation Adjusting output image of image data
JP2004236110A (en) * 2003-01-31 2004-08-19 Canon Inc Image processor, image processing method, storage medium and program
US7006668B2 (en) * 1999-12-28 2006-02-28 Canon Kabushiki Kaisha Image processing method and image processing apparatus
JP2007018073A (en) * 2005-07-05 2007-01-25 Noritsu Koki Co Ltd Density correction curve generation method and density correction curve generation module

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7006668B2 (en) * 1999-12-28 2006-02-28 Canon Kabushiki Kaisha Image processing method and image processing apparatus
WO2004030373A1 (en) * 2002-09-26 2004-04-08 Seiko Epson Corporation Adjusting output image of image data
US7394486B2 (en) 2002-09-26 2008-07-01 Seiko Epson Corporation Adjusting output image of image data
JP2004236110A (en) * 2003-01-31 2004-08-19 Canon Inc Image processor, image processing method, storage medium and program
US7580566B2 (en) 2003-01-31 2009-08-25 Canon Kabushiki Kaisha Image processing device, image processing method, storage medium, and program
JP2007018073A (en) * 2005-07-05 2007-01-25 Noritsu Koki Co Ltd Density correction curve generation method and density correction curve generation module
JP4655210B2 (en) * 2005-07-05 2011-03-23 ノーリツ鋼機株式会社 Density correction curve generation method and density correction curve generation module

Also Published As

Publication number Publication date
JP4415488B2 (en) 2010-02-17

Similar Documents

Publication Publication Date Title
US7133070B2 (en) System and method for deciding when to correct image-specific defects based on camera, scene, display and demographic data
JP3725454B2 (en) Output image adjustment for image files
US7076119B2 (en) Method, apparatus, and program for image processing
US7372597B2 (en) Tonescales for geographically localized digital rendition of people
JP3668014B2 (en) Image processing method and apparatus
JP2001251531A (en) Method and device for image processing and recording medium
JPH11239269A (en) Image processing method
JP2001251530A (en) Image processing method, image processor and recording medium
JP4281244B2 (en) Image forming apparatus, image data processing method, and recording medium recording image data processing program
JP2001148780A (en) Method for setting red-eye correction area and red-eye correction method
JP2005197996A (en) Control method and controller of digital camera
JP2003069822A (en) Image processor, image processing method and recording medium
JP5070921B2 (en) Development processing apparatus for undeveloped image data, development processing method, and computer program for development processing
JP4415488B2 (en) Image forming apparatus, image data processing method, and recording medium recording image data processing program
US6658163B1 (en) Image processing method
JP4333016B2 (en) Image forming apparatus, image data processing method, and recording medium recording image data processing program
JP2003060935A (en) Output image adjustment method for image file
JP4266716B2 (en) Output image adjustment for image files
JP4015066B2 (en) Output image adjustment for image files
JP5045808B2 (en) Output image adjustment for image files
JP4285868B2 (en) Main subject extraction method, image processing apparatus, and imaging apparatus
JP2003052002A (en) Output image adjustment of image file
JP2002094810A (en) Picture processor, picture processing method and memory medium having stored programs for the method
JP3999157B2 (en) Output image adjustment for image files
JPH11346303A (en) Image processing method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20071112

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20090327

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20090401

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20090525

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20090728

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

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20091117

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

Free format text: PAYMENT UNTIL: 20121204

Year of fee payment: 3

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313111

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

Free format text: PAYMENT UNTIL: 20121204

Year of fee payment: 3

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

LAPS Cancellation because of no payment of annual fees