[go: up one dir, main page]

JP2002135559A - Image forming apparatus, image data processing method, and recording medium recording image data processing program - Google Patents

Image forming apparatus, image data processing method, and recording medium recording image data processing program

Info

Publication number
JP2002135559A
JP2002135559A JP2000321379A JP2000321379A JP2002135559A JP 2002135559 A JP2002135559 A JP 2002135559A JP 2000321379 A JP2000321379 A JP 2000321379A JP 2000321379 A JP2000321379 A JP 2000321379A JP 2002135559 A JP2002135559 A JP 2002135559A
Authority
JP
Japan
Prior art keywords
image data
color
image
correction amount
pixel data
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
JP2000321379A
Other languages
Japanese (ja)
Other versions
JP4333016B2 (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 JP2000321379A priority Critical patent/JP4333016B2/en
Publication of JP2002135559A publication Critical patent/JP2002135559A/en
Application granted granted Critical
Publication of JP4333016B2 publication Critical patent/JP4333016B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Image Processing (AREA)
  • Editing Of Facsimile Originals (AREA)
  • Facsimile Image Signal Circuits (AREA)
  • Color Image Communication Systems (AREA)
  • Color, Gradation (AREA)
  • Projection-Type Copiers In General (AREA)
  • Control Of Exposure In Printing And Copying (AREA)

Abstract

(57)【要約】 【課題】 ディジタルプリンタなどの画像形成装置でデ
ィジタルカメラなどで撮影した画像をプリントする際
に、人物の肌の部分などの主要被写体の部分の明るさ
(濃度)が適正となるように、画像データの輝度補正を
行う。 【解決手段】 補正すべき画像データを用いて画像をモ
ニタ画面上に表示し、マウスなどを用いて主要被写体で
ある人物の肌の部分などを特定する。次に、画像データ
の中から選択された範囲に含まれる画素データを抽出
し、選択された範囲の輝度の平均値を演算し、演算した
輝度の平均値を所定の適正輝度値になるように輝度補正
量を演算する。得られた輝度補正値を用いて全画像デー
タを補正し、補正した画像データを用いて画像を形成す
る。
(57) [Problem] When printing an image photographed by a digital camera or the like with an image forming apparatus such as a digital printer, the brightness (density) of a main subject such as a person's skin is appropriate. Thus, the brightness of the image data is corrected. An image is displayed on a monitor screen using image data to be corrected, and a main subject, such as a skin portion of a person, is specified using a mouse or the like. Next, pixel data included in the selected range is extracted from the image data, the average value of the luminance in the selected range is calculated, and the calculated average value of the luminance is set to a predetermined appropriate luminance value. Calculate the luminance correction amount. The entire image data is corrected using the obtained brightness correction value, and an image is formed using the corrected image data.

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]

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

【0004】本発明は、上記従来例の問題点を解決する
ためになされたものであり、画像中の主要被写体の濃度
を適正に補正することが可能な画像形成装置、画像デー
タ処理方法及び画像データ処理プログラムを記録した記
録媒体を提供することを目的としている。
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.

【0005】[0005]

【課題を解決するための手段】上記目的を達成するた
め、本発明の第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 from images reproduced on the monitor screen, and an average for calculating an average value of luminance in the selected range using pixel data included in the selected range. Brightness calculation means, correction amount calculation means for calculating a correction amount for correcting the average value of the obtained brightness to a predetermined brightness value set in advance, and all pixel data using the obtained correction amount. It is characterized by comprising image data correcting means for correcting and image forming means for forming an image using the corrected image data.

【0006】本発明の第2の画像形成装置は、複数の画
素データで構成された画像データに含まれる各画素デー
タからその画素の色を特定する色特定手段と、特定され
た各画素の色の中に所定の色が含まれているか否かを判
別し、所定の色を有する画素データを抽出する画素デー
タ抽出手段と、抽出された全画素データを用いてその輝
度の平均値を求める平均輝度演算手段と、求められた輝
度の平均値をあらかじめ設定された所定の輝度値に補正
するための補正量を演算により求める補正量演算手段
と、求められた補正量を用いて全画素データを補正する
画像データ補正手段と、補正された画像データを用いて
画像を形成する画像形成手段とを具備することを特徴と
する。
According to a second image forming apparatus of the present invention, a color specifying means for specifying a color of a pixel from each pixel data included in image data composed of a plurality of pixel data, A pixel data extracting means for determining whether or not a predetermined color is included in pixel data, and extracting pixel data having a predetermined color, and an average for obtaining an average value of luminance using all the extracted pixel data. Brightness calculation means, correction amount calculation means for calculating a correction amount for correcting the average value of the obtained brightness to a predetermined brightness value set in advance, and all pixel data using the obtained correction amount. It is characterized by comprising image data correcting means for correcting and image forming means for forming an image using the corrected image data.

【0007】本発明の第3の画像形成装置は、複数の画
素データで構成された画像データを、その画像データを
用いて形成される画像を複数の領域に分割した場合の各
領域に対応するように複数のグループに分割する画像デ
ータ分割手段と、分割された各領域のうち、あらかじめ
選択されている1又は2以上の領域に対応するグループ
に含まれる各画素データからその画素の色を特定し、そ
のグループに含まれる画素のうち最も多数の画素が共有
する色をそのグループ又はそのグループに対応する領域
の色として特定する色特定手段と、特定された各領域の
色とあらかじめ設定されている所定の色とを比較する色
比較手段と、前記各領域の色の中に前記所定の色が含ま
れている場合に、その領域に含まれる画素データを用い
てその領域の輝度の平均値を求める平均輝度演算手段
と、求められた輝度の平均値をあらかじめ設定された所
定の輝度値に補正するための補正量を演算により求める
補正量演算手段と、求められた補正量を用いて全画素デ
ータを補正する画像データ補正手段と、補正された画像
データを用いて画像を形成する画像形成手段とを具備す
ることを特徴とする。
[0007] A third image forming apparatus of the present invention corresponds to each area when an image formed by using a plurality of pixel data is divided into a plurality of areas using the image data. Data dividing means for dividing the image data into a plurality of groups, and specifying the color of the pixel from each pixel data included in a group corresponding to one or more areas selected in advance among the divided areas. A color specifying unit that specifies a color shared by the most pixels among the pixels included in the group as a color of the group or a region corresponding to the group, and a color set in advance as a color of each specified region. A color comparing means for comparing the color with a predetermined color, and, when the color of each of the areas includes the predetermined color, the luminance of the area using pixel data included in the area. Using an average luminance calculating means for calculating an average value, a correction amount calculating means for calculating a correction amount for correcting the average value of the obtained luminance to a predetermined luminance value set in advance, and using the obtained correction amount. And an image forming means for forming an image using the corrected image data.

【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, an average brightness calculation step of calculating an average brightness value of the selected range using pixel data included in the selected range, and an average brightness value obtained 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.

【0011】本発明の第2の画像データ処理方法は、複
数の画素データで構成された画像データに含まれる各画
素データからその画素の色を特定する色特定ステップ
と、特定された各画素の色の中に所定の色が含まれてい
るか否かを判別し、所定の色を有する画素データを抽出
する画素データ抽出ステップと、抽出された全画素デー
タを用いてその輝度の平均値を求める平均輝度演算ステ
ップと、求められた輝度の平均値をあらかじめ設定され
た所定の輝度値に補正するための補正量を演算により求
める補正量演算ステップと、求められた補正量を用いて
全画素データを補正する画像データ補正ステップと、補
正された画像データを出力する補正画像データ出力ステ
ップとを具備することを特徴とする。
According to a second image data processing method of the present invention, a color specifying step of specifying a color of a pixel from each pixel data included in image data composed of a plurality of pixel data; A step of extracting pixel data having a predetermined color by determining whether or not a predetermined color is included in the colors; and obtaining an average value of luminance using all the extracted pixel data. An average brightness calculation step, a correction amount calculation step of calculating a correction amount for correcting the calculated average brightness value to a predetermined brightness value, and all pixel data using the obtained correction amount. , And a corrected image data output step of outputting the corrected image data.

【0012】本発明の第3の画像データ処理方法は、複
数の画素データで構成された画像データを、その画像デ
ータを用いて形成される画像を複数の領域に分割した場
合の各領域に対応するように複数のグループに分割する
画像データ分割ステップと、分割された各領域のうち、
あらかじめ選択されている1又は2以上の領域に対応す
るグループに含まれる各画素データからその画素の色を
特定し、そのグループに含まれる画素のうち最も多数の
画素が共有する色をそのグループ又はそのグループに対
応する領域の色として特定する色特定ステップと、特定
された各領域の色とあらかじめ設定されている所定の色
とを比較する色比較ステップと、前記各領域の色の中に
前記所定の色が含まれている場合に、その領域に含まれ
る画素データを用いてその領域の輝度の平均値を求める
平均輝度演算ステップと、求められた輝度の平均値をあ
らかじめ設定された所定の輝度値に補正するための補正
量を演算により求める補正量演算ステップと、求められ
た補正量を用いて全画素データを補正する画像データ補
正ステップと、補正された画像データを出力する補正画
像データ出力ステップとを具備することを特徴とする。
According to a third image data processing method of the present invention, an image data composed of a plurality of pixel data corresponds to each area when an image formed using the image data is divided into a plurality of areas. Dividing image data into a plurality of groups so that
The color of the pixel is specified from each pixel data included in the group corresponding to one or more regions selected in advance, and the color shared by the largest number of pixels among the pixels included in the group is specified by the group or A color specifying step of specifying the color of the region corresponding to the group; a color comparing step of comparing the specified color of each region with a predetermined color set in advance; When a predetermined color is included, an average luminance calculation step of calculating an average value of the luminance of the area using the pixel data included in the area, and calculating the average value of the obtained luminance by a predetermined predetermined A correction amount calculating step of calculating a correction amount for correcting to a luminance value by calculation; an image data correcting step of correcting all pixel data using the obtained correction amount; Characterized by comprising a correction image data output step of outputting the image data.

【0013】上記各方法において、前記補正量は、前記
所定の輝度値と前記輝度の平均値との差に所定の係数を
掛けた値であることが好ましい。
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 luminance value by a predetermined coefficient.

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

【0015】本発明の第1の画像データ処理プログラム
を記録した記録媒体は、複数の画素データで構成された
画像データを用いてモニタ画面上に画像を再生する画像
再生処理と、モニタ画面上に再生された画像のうち特定
の範囲を選択する範囲選択処理と、選択された範囲に含
まれる画素データを用いて、選択された範囲の輝度の平
均値を演算する平均輝度演算処理と、求められた輝度の
平均値をあらかじめ設定された所定の輝度値に補正する
ための補正量を演算により求める補正量演算処理と、求
められた補正量を用いて全画素データを補正する画像デ
ータ補正処理と、補正された画像データを出力する補正
画像データ出力処理とをコンピュータに実行させるよう
に記録されている。
[0015] A recording medium on which the first image data processing program of the present invention is recorded includes 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 from among the reproduced images; and an average brightness calculation process of calculating an average value of the brightness of the selected range using pixel data included in the selected range. A correction amount calculation process for calculating a correction amount for correcting the average value of the obtained brightness to a predetermined brightness value set in advance, and an image data correction process for correcting all pixel data using the obtained correction amount. And a corrected image data output process of outputting the corrected image data.

【0016】本発明の第2の画像データ処理プログラム
を記録した記録媒体は、複数の画素データで構成された
画像データに含まれる各画素データからその画素の色を
特定する色特定処理と、特定された各画素の色の中に所
定の色が含まれているか否かを判別し、所定の色を有す
る画素データを抽出する画素データ抽出処理と、抽出さ
れた全画素データを用いてその輝度の平均値を求める平
均輝度演算手段と、求められた輝度の平均値をあらかじ
め設定された所定の輝度値に補正するための補正量を演
算により求める補正量演算処理と、求められた補正量を
用いて全画素データを補正する画像データ補正処理と、
補正された画像データを出力する補正画像データ出力処
理とをコンピュータに実行させるように記録されてい
る。
The recording medium on which the second image data processing program of the present invention is recorded includes a color specifying process for specifying the color of a pixel from each pixel data included in the image data composed of a plurality of pixel data, A pixel data extraction process of determining whether a predetermined color is included in the color of each of the extracted pixels and extracting pixel data having a predetermined color, and a luminance of the pixel data using all the extracted pixel data. Average brightness calculating means for calculating an average value of the correction value; a correction amount calculation process for calculating a correction amount for correcting the average value of the obtained brightness to a predetermined brightness value set in advance; Image data correction processing for correcting all pixel data using
The corrected image data output process for outputting the corrected image data is recorded so as to be executed by a computer.

【0017】本発明の第3の画像データ処理プログラム
を記録した記録媒体は、複数の画素データで構成された
画像データを、その画像データを用いて形成される画像
を複数の領域に分割した場合の各領域に対応するように
複数のグループに分割する画像データ分割処理と、分割
された各領域のうち、あらかじめ選択されている1又は
2以上の領域に対応するグループに含まれる各画素デー
タからその画素の色を特定し、そのグループに含まれる
画素のうち最も多数の画素が共有する色をそのグループ
又はそのグループに対応する領域の色として特定する色
特定処理と、特定された各領域の色とあらかじめ設定さ
れている所定の色とを比較する色比較処理と、前記各領
域の色の中に前記所定の色が含まれている場合に、その
領域に含まれる画素データを用いてその領域の輝度の平
均値を求める平均輝度演算処理と、求められた輝度の平
均値をあらかじめ設定された所定の輝度値に補正するた
めの補正量を演算により求める補正量演算処理と、求め
られた補正量を用いて全画素データを補正する画像デー
タ補正処理と、補正された画像データを出力する補正画
像データ出力処理とをコンピュータに実行させるように
記録されている。
According to a third aspect of the present invention, there is provided a recording medium on which a third image data processing program is recorded, wherein an image formed by a plurality of pixel data is divided into a plurality of areas formed by using the image data. Image data dividing processing for dividing the image data into a plurality of groups so as to correspond to the respective areas, and from the pixel data included in the group corresponding to one or two or more areas selected in advance among the divided areas. A color specifying process of specifying the color of the pixel and specifying a color shared by the most pixels among the pixels included in the group as a color of the group or a region corresponding to the group; A color comparison process of comparing a color with a predetermined color set in advance; and, when the color of each area includes the predetermined color, an image included in the area. Average luminance calculation processing for calculating the average value of the luminance of the area using the data, and correction amount calculation processing for calculating the correction amount for correcting the calculated average luminance value to a predetermined luminance value And an image data correction process of correcting all pixel data using the obtained correction amount, and a corrected image data output process of outputting corrected image data.

【0018】[0018]

【発明の実施の形態】第1実施形態 本発明の第1実施形態について、ディジタルプリンタを
例にして説明する。本実施形態に係るディジタルプリン
タ(ディジタル式写真処理装置)の外観構成を図1に示
す。なお、後述する第2及び第3実施形態の場合も同様
である。
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 the later-described second and third embodiments.

【0019】ディジタルプリンタとは、ディジタルカメ
ラで撮像した画像を直接印画紙片上にプリントしたり、
銀塩フィルム上に形成された画像を一旦スキャナで読み
込み、印画紙片上にプリントするためのものである。図
1に示すように、ディジタルプリンタは、ディジタルカ
メラやスキャナの撮像素子の各画素に対応する印画紙上
の微小領域をR(赤)、G(緑)及びB(青)又はY
(黄)、M(マゼンタ)及びC(シアン)の三原色のい
ずれかの光で露光し、露光された印画紙を現像処理する
ことによって画像を形成する画像形成部100と、入力
されたディジタル画像データに所定の処理を施して画像
形成部100に出力する画像データ処理部200で構成
されている。
A digital printer prints an image captured 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 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.

【0020】画像形成部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 plural 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.

【0021】画像データ処理部200は、メモリカード
やCD−R等の記録媒体に記録されている画像データを
読み込んだり、あるいは補正後の画像データをこれらの
記録媒体に記録するためのデータ記録読み出し装置20
1と、フィルムや印画紙上に形成された画像を直接読み
込むためのスキャナ202と、読み込んだ画像をモニタ
表示するためのディスプレイ203と、所定の画像処理
やプリント処理の指示を入力するためのキーボード20
4と、プリントする画像データに所定の処理を施し、露
光ユニットを制御するための制御データに変換し、画像
形成部100に出力するための制御回路(図示せず)等
で構成されている。また、モデムやLANボード及び通
信回線などを介して、他の装置との間で直接画像データ
の送受信が可能なように構成してもよい。
The image data processing section 200 reads image data recorded on a recording medium such as a memory card or a CD-R, or reads / records image data after correction on these recording media. 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 a keyboard 20 for inputting instructions for predetermined image processing and print processing.
And a control circuit (not shown) for performing predetermined processing on image data to be printed, converting the data into control data for controlling an exposure unit, and outputting the control data to the image forming unit 100. 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.

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

【0023】画像データ入力部210は、例えば入出力
インタフェース、CPU、ROM、RAMなどで構成さ
れ、データ記録読み出し装置201やスキャナ202か
ら出力されたディジタル画像データを取り込み、RAM
などに一時的に記憶し、保存する。ここで、ディジタル
画像データは、その画像データを撮像したディジタルカ
メラやスキャナなどの撮像素子の各画素からのR
(赤)、G(緑)及びB(青)の各色成分ごとの輝度に
関する出力信号(RGBデータ)をシリアルに配列した
ものであり、インタフェースを介してシリアルに入出力
される。
The image data input section 210 is composed of, 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.

【0024】画像再生部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.

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

【0026】平均輝度演算部213は、CPU、RO
M、RAMなどで構成され、入力された画像データ、特
に範囲選択部212により選択された範囲に含まれる画
像データに対して所定の処理を施し、各画素にそれぞれ
対応する輝度を演算し、輝度ヒストグラムを作成し、選
択された範囲の輝度の平均値を演算する。上記RGBデ
ータは、色と輝度(明るさ)に関する情報であり、RG
Bデータに対して以下の数1に示す演算処理を行い、輝
度情報と色差情報を表すYCCデータ(C2,YY,C
1)に変換する。YYは輝度情報を表し、C1及びC2
は色差情報を表す。この変換によりRGBデータから輝
度に関する情報だけを取り出すことができる。
The average luminance calculation unit 213 includes a CPU, an RO,
M, RAM, etc., performs predetermined processing on input image data, particularly image data included in the range selected by the range selection unit 212, and calculates the brightness corresponding to each pixel. A histogram is created, and an average value of luminance in the selected range is calculated. The RGB data is information on color and luminance (brightness).
The B data is subjected to the arithmetic processing shown in Equation 1 below, and YCC data (C2, YY, C
Convert to 1). YY represents luminance information, C1 and C2
Represents color difference information. By this conversion, only information relating to luminance can be extracted from the RGB data.

【0027】[0027]

【数1】 (Equation 1)

【0028】補正量演算部214は、CPU、ROM、
RAMなどで構成され、演算された主要被写体部分の輝
度の平均値とあらかじめ設定されている適正輝度に相当
する所定の輝度値と比較し、主要被写体の部分を適正輝
度(適正濃度)にするために、輝度の平均値を所定の輝
度値に一致させるために必要な補正量を演算し、RAM
などに記憶する。
The correction amount calculation unit 214 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.

【0029】画像データ補正部215は、CPU、RO
M、RAMなどで構成され、演算された補正量を用いて
全ての画素に関する画像データの輝度(RGBデータ)
を補正する。
The image data correction unit 215 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.

【0030】補正画像データ出力部216は、画像デー
タ入力部210と同様に入出力インタフェース、CP
U、ROM、RAMなどで構成され、画像形成部100
に補正された画像データを出力する。
The corrected image data output unit 216 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.

【0031】画像形成部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.

【0032】次に、第1実施形態における画像データ処
理のフローチャートを図3〜図4に示す。まず、画像デ
ータ入力部200により画像データが読み込まれると
(ステップS1)、画像再生部211は、画像データ入
力部210のRAMから画像データを読み出し、ディス
プレイ203上にプレスキャン画像を表示する(ステッ
プS3)。この状態で、ユーザ又はオペレータは、表示
されているプレスキャン画像に関して輝度補正が必要か
否かを判断し(ステップS5)、輝度補正が必要ない場
合は、マウスやキーボードなどを用いてステップS1に
戻り、次のプレスキャン画像を表示させる。
Next, flowcharts of image data processing in the first embodiment are shown in FIGS. First, when the image data is read by the image data input unit 200 (step S1), the image reproduction unit 211 reads the image data from the RAM of the image data input unit 210 and displays the pre-scan image on the display 203 (step S1). S3). 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.

【0033】一方、輝度補正が必要な場合、範囲選択部
212のマウスやキーボードなどを用いて、ディスプレ
イ203上に表示されているプレスキャン画像のうち、
ユーザやオペレータが主要被写体と認識する範囲、例え
ば人物の顔の部分などを主要被写体領域を選択する(ス
テップS7)。
On the other hand, when the luminance correction is required, the pre-scan image displayed on the display 203 is displayed using the mouse and the 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).

【0034】主要被写体領域が選択されると、平均輝度
演算部213は、画像データ入力部210のRAMから
選択された範囲に含まれる画像データを読み出し(ステ
ップS9)、上記数1に従って、各画素ごとの輝度情報
YYを抽出する(ステップS11)。さらに、選択され
た範囲に含まれる各画素の輝度ヒストグラムを作成し
(ステップS13)、選択された範囲の輝度の平均値を
演算する(ステップS15)。
When the main subject area is selected, the average luminance calculation section 213 reads out image data included in the selected range from the RAM of the image data input section 210 (step S9), and calculates each pixel according to the above equation (1). The luminance information YY for each is extracted (step S11). Further, a luminance histogram of each pixel included in the selected range is created (step S13), and an average value of the luminance in the selected range is calculated (step S15).

【0035】補正量演算部214は、演算された輝度の
平均値とあらかじめ設定されている適正輝度に相当する
所定の輝度値を比較し、輝度補正量を演算する(ステッ
プS17)。輝度補正量が演算されると、その画像デー
タを特定するための、例えばフィルムのコマ番号などと
共に、輝度補正量を画像データ入力部210のRAMな
どに保存する(ステップS19)。
The correction amount calculation unit 214 compares the calculated average value of the brightness with a predetermined brightness value corresponding to a preset appropriate brightness and calculates a brightness correction amount (step S17). 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 film frame number for specifying the image data (step S19).

【0036】輝度補正量を保存すると、画像再生部21
1は、画像データ入力部210のRAMに記憶されてい
る全ての画像データについて、ディスプレイ203上に
プレスキャン画像を表示したか否かを判断し(ステップ
S21)、プレスキャンが終了していない場合はステッ
プS1からS21までを繰り返す。
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 S21). Repeats steps S1 to S21.

【0037】全ての画像データについてプレスキャンを
終了すると(ステップS21でYES)、画像データ補
正部215は、各画像データ及びその画像データに関す
る輝度補正量を順に読み出し(ステップS23)、輝度
補正量を用いて各画像データを補正し(ステップS2
5)、RAMなどに補正した画像データを保存する(ス
テップS27)。さらに、画像データ補正部215は、
輝度補正の対象となっている全ての画像データについて
輝度補正を行ったか否かを判断し(ステップS29)、
補正が完了していない場合はステップS23からS29
を繰り返す。
When the pre-scan is completed for all the image data (YES in step S21), the image data correction unit 215 sequentially reads out each image data and the luminance correction amount for the image data (step S23), and sets the luminance correction amount. (Step S2)
5) The corrected image data is stored in a RAM or the like (step S27). Further, the image data correction unit 215
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 S29),
If the correction has not been completed, steps S23 to S29
repeat.

【0038】全ての画像データの補正が完了すると、補
正画像データ出力部216は、補正した画像データを画
像形成部100に出力するか否かを判断する(ステップ
S31)。すなわち、補正した画像データを用いて画像
を形成する場合、補正画像データ出力部216は、補正
した画像データを画像形成部100に出力する(ステッ
プS33)。そして、画像形成部100は、画像データ
処理部200から出力された補正された画像データを用
いて印画紙片上に画像を形成し(ステップS35)、こ
のフローを終了する。
When the correction of all the image data is completed, the corrected image data output unit 216 determines whether or not to output the corrected image data to the image forming unit 100 (Step S31). That is, when an image is formed using the corrected image data, the corrected image data output unit 216 outputs the corrected image data to the image forming unit 100 (Step S33). 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 S35), and ends this flow.

【0039】次に、第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).

【0040】この画像データを補正せずにそのまま用い
て画像を形成すると、図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.

【0041】これに対して、本実施形態のように、主要
被写体の部分を抽出し、主要被写体の部分の輝度(濃
度)が適正となるように全画像データを補正すると、図
5(a)に示すように、元々輝度の高い(濃度が低く明
るい)背景はさらに明るく補正されるものの、主要被写
体である人物は、そのディテールが明確に判別できるよ
うに適正輝度(適正濃度)に補正される。その結果、逆
光シーンのように濃度に偏りのある画像であっても、適
切な補正を行うことができる。なお、図5に示す例とは
逆に、暗い場所でフラッシュ撮影をした場合のように、
主要被写体の輝度が高く背景の輝度が低い場合であって
も、同様に適正な補正を行うことができる。
On the other hand, when the main subject portion is extracted and all the image data is corrected so that the luminance (density) of the main subject portion becomes appropriate as in the present embodiment, FIG. As shown in (1), the background having originally high luminance (low density and bright) is corrected to be brighter, but the person who is the main subject is corrected to proper luminance (proper density) so that its details can be clearly distinguished. . As a result, appropriate correction can be performed even for an image having a bias in density such as a backlight scene. Note that, contrary to the example shown in FIG. 5, as in the case of flash photography in a dark place,
Even when the luminance of the main subject is high and the luminance of the background is low, appropriate correction can be similarly performed.

【0042】第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.

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

【0044】画像データ入力部220は、第1実施形態
の場合と同様に、例えば入出力インタフェース、CP
U、ROM、RAMなどで構成され、データ記録読み出
し装置201やスキャナ202から出力されたディジタ
ル画像データを取り込み、RAMなどに一時的に記憶
し、保存する。
The image data input unit 220 is, for example, an input / output interface, a CP, as in the first embodiment.
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.

【0045】色特定部221は、CPU、ROM、RA
Mなどで構成され、入力された画像データに対して所定
の処理を施し、各画素にそれぞれ対応する部分の色(以
下、単に「画素の色」とする)を特定する。上記RGB
データは、色と輝度(明るさ)に関する情報であり、R
GBデータに対して上記数1に示す演算処理を行い、輝
度情報と色差情報を表すYCCデータ(C2,YY,C
1)に変換する。この変換によりRGBデータから色に
関する情報だけを取り出すことができる。
The color specifying unit 221 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, YY, C
Convert to 1). By this conversion, only the information regarding the color can be extracted from the RGB data.

【0046】図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.

【0047】画素データ抽出部222は、CPU、RO
M、RAMなどで構成され、色特定部221により特定
された各画素の色をあらかじめ設定されている主要被写
体を代表する所定の色、例えば人物の肌の色などと比較
し、主要被写体に対応し、所定の色又は所定範囲に含ま
れる色を有する画素に対応する画像データを全て抽出
し、RAMなどに記憶する。具体的には、全ての画素に
ついて、色特定部221により演算されたC1及びC2
の値を、あらかじめROMなどに記憶されているLUT
(ルックアップテーブル)の値と比較し、C1及びC2
の値が上記所定の値と一致するか否か又は所定の範囲内
に含まれるか否かを判断する。これにより、全画素デー
タの中から主要被写体に関する画像データが抽出され
る。
The pixel data extraction unit 222 includes a CPU, an RO
M, RAM, etc., and compares the color of each pixel specified by the color specifying unit 221 with a predetermined color representing a main subject, such as the skin color of a person, which is set in advance. Then, all image data corresponding to pixels having a predetermined color or a color included in a predetermined range is extracted and stored in a RAM or the like. Specifically, C1 and C2 calculated by the color specifying unit 221 for all the pixels
LUT stored in ROM or the like in advance
(Lookup table), C1 and C2
It is determined whether or not the value is equal to the predetermined value or is included in a predetermined range. Thereby, image data relating to the main subject is extracted from all the pixel data.

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

【0049】補正量演算部224は、CPU、ROM、
RAMなどで構成され、演算された主要被写体部分の輝
度の平均値とあらかじめ設定されている適正輝度に相当
する所定の輝度値と比較し、主要被写体の部分を適正輝
度(適正濃度)にするために、輝度の平均値を所定の輝
度値に一致させるために必要な補正量を演算し、RAM
などに記憶する。
The correction amount calculation unit 224 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.

【0050】画像データ補正部225は、CPU、RO
M、RAMなどで構成され、演算された補正量を用いて
全ての画素に関する画像データの輝度(RGBデータ)
を補正する。
The image data correction unit 225 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.

【0051】補正画像データ出力部226は、画像デー
タ入力部220と同様に入出力インタフェース、CP
U、ROM、RAMなどで構成され、画像形成部100
に補正された画像データを出力する。
The corrected image data output unit 226 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.

【0052】次に、第2実施形態における画像データ処
理のフローチャートを図8〜図9に示す。第2実施形態
では、最初に主要被写体領域を特定するための色情報、
例えば人物の肌の色などを、マウスやキーボード等を用
いてディスプレイ上に一覧表示されているカラーチャー
トなどから選択し、設定する(ステップS51)。
Next, flowcharts of image data processing in the second embodiment are shown in FIGS. In the second embodiment, first, color information for specifying the main subject area,
For example, the skin color of a person is selected and set from a color chart or the like displayed on a display using a mouse, a keyboard, or the like (step S51).

【0053】画像データ入力部220により画像データ
が読み込まれると(ステップS53)、色特定部221
は、画像データ入力部210のRAMから画像データを
読み出し、上記数1に従って、各画素ごとの色情報C1
及びC2を抽出し(ステップS55)、各画素ごとにそ
の画素の色を特定する。そして、画素データ抽出部22
2は、特定した各画素の色と上記ステップS51で設定
した主要被写体の色とを比較し(ステップS57)、主
要被写体の色と同じ色を有する画素の画素データ又は輝
度情報YYのみを抽出し、RAMなどに記憶する(ステ
ップS59)。さらに、色特定部221又は画素データ
抽出部222は、全ての画素について画素の色の特定、
比較及び画素データの抽出が完了したか否かを判断し
(ステップS61)、全ての画素について完了するまで
上記ステップS55からS61を繰り返す。
When the image data is read by the image data input unit 220 (step S53), the color specifying unit 221 is used.
Reads out the image data from the RAM of the image data input unit 210 and calculates the color information C1
And C2 are extracted (step S55), and the color of the pixel is specified for each pixel. Then, the pixel data extraction unit 22
2 compares the specified color of each pixel with the color of the main subject set in step S51 (step S57), and extracts only pixel data or luminance information YY of a pixel having the same color as the color of the main subject. Is stored in a RAM or the like (step S59). Further, the color specifying unit 221 or the pixel data extracting unit 222 specifies the pixel colors for all the pixels,
It is determined whether the comparison and the extraction of the pixel data have been completed (step S61), and the above steps S55 to S61 are repeated until the comparison is completed for all the pixels.

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

【0055】補正量演算部224は、演算された輝度の
平均値とあらかじめ設定されている適正輝度に相当する
所定の輝度値を比較し、輝度補正量を演算する(ステッ
プS65)。輝度補正量が演算されると、その画像デー
タを特定するための、例えばフィルムのコマ番号などと
共に、輝度補正量を画像データ入力部210のRAMな
どに保存する(ステップS67)。
The correction amount calculating section 224 compares the calculated average value of the luminance with a predetermined luminance value corresponding to a preset appropriate luminance, and calculates the luminance correction amount (step S65). 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 S67).

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

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

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

【0059】第3実施形態 次に、本発明の第3実施形態について説明する。上記第
2実施形態では、画像データ中の全画素データを用いて
各画素ごとの色を特定し、あらかじめ設定されている主
要被写体の色と同じ色を有する画素の画素データを用い
て輝度の平均値を求め、輝度補正量を演算するように構
成したが、第3実施形態では、画像を複数の領域に分割
し、あらかじめ選択されている1又は2以上の領域、例
えば画面の中央部に位置する一部の領域の画素データを
用いて、画像データの色情報の分析、輝度の平均値の演
算及び輝度補正量の演算を行う。
Third Embodiment Next, a third embodiment of the present invention will be described. In the second embodiment, the color of each pixel is specified using all the pixel data in the image data, and the average of the luminance is determined using the pixel data of the pixel having the same color as the color of the preset main subject. In the third embodiment, the image is divided into a plurality of regions, and one or two or more regions selected in advance, for example, in the center of the screen, are calculated. Using the pixel data of the partial area to be analyzed, the color information of the image data is analyzed, the average value of the luminance is calculated, and the luminance correction amount is calculated.

【0060】第3実施形態のディジタルプリンタの機能
を説明するためのブロック構成を図10に示す。
FIG. 10 is a block diagram illustrating the function of the digital printer according to the third embodiment.

【0061】画像データ入力部230は、第1及び第2
実施形態の場合と同様に、例えば入出力インタフェー
ス、CPU、ROM、RAMなどで構成され、データ記
録読み出し装置201やスキャナ202から出力された
ディジタル画像データを取り込み、RAMなどに一時的
に記憶し、保存する。
The image data input unit 230 is provided with the first and second
As in the case of the embodiment, for example, an input / output interface, a CPU, a ROM, a RAM, and the like are configured. save.

【0062】画像データ分割部231は、CPU、RO
M、RAMなどで構成され、取り込まれたいずれかの画
像データを用いて画像を形成したと仮定した場合に、そ
の画像を複数の領域に分割した各領域に対応するよう
に、画像データを画素の番地などに応じて複数のグルー
プに分割する。
The image data dividing section 231 is composed of a CPU, an RO
M, RAM, etc., and assuming that an image is formed by using any of the captured image data, the image data is divided into pixels so as to correspond to each area obtained by dividing the image into a plurality of areas. Divided into a plurality of groups according to the address or the like.

【0063】色特定部232は、CPU、ROM、RA
Mなどで構成され、画像データ分割部231により分割
された各領域のうち、あらかじめ選択されている1又は
2以上の領域、例えば画面中央部近傍の複数の領域など
に対応するグループに含まれる各画素データを用いて、
RGBデータに対して上記数1に示す演算処理を行い、
輝度情報と色差情報を表すYCCデータ(C2,YY,
C1)に変換する。この変換によりRGBデータから色
に関する情報だけを取り出し、各画素の色を特定する。
さらに、そのグループに含まれる画素のうち最も多数の
画素が共有する色をそのグループ又はそのグループに対
応する領域の色として特定する。
The color specifying section 232 includes a CPU, ROM, RA
M, and is included in a group corresponding to one or more regions selected in advance, for example, a plurality of regions near the center of the screen, among the regions divided by the image data dividing unit 231. Using pixel data,
The arithmetic processing shown in Equation 1 above is performed on the RGB data,
YCC data (C2, YY,
C1). By this conversion, only the information regarding the color is extracted from the RGB data, and the color of each pixel is specified.
Further, the color shared by the largest number of pixels among the pixels included in the group is specified as the color of the group or a region corresponding to the group.

【0064】色比較部233は、CPU、ROM、RA
Mなどで構成され、色特定部232により特定された各
領域の色とあらかじめ設定されている所定の色、例えば
人物の肌の色などユーザ又はオペレータが任意に設定し
た主要被写体の色とを比較し、各領域の色の中に所定の
色が含まれている過否かを判断する。
The color comparison unit 233 includes a CPU, ROM, RA
M, etc., and compares the color of each area specified by the color specifying unit 232 with a predetermined color set in advance, for example, the color of the main subject arbitrarily set by the user or the operator, such as the color of the skin of a person. Then, it is determined whether or not a predetermined color is included in the color of each area.

【0065】平均輝度演算部234は、CPU、RO
M、RAMなどで構成され、色比較部233により各領
域の色の中に所定の色が含まれていると判断された場合
に、その領域の画素データを用いてその領域の輝度の平
均値を演算する。本実施形態では、主要被写体が存在す
る可能性が高いと思われる部分の画像データのみを用い
て輝度補正処理を行うので、処理すべきデータ数が少な
くなり、演算処理に要する時間を短縮することが可能と
なる。
The average luminance calculation section 234 includes a CPU, an RO,
M, RAM, etc., and when the color comparing unit 233 determines that a predetermined color is included in the color of each area, the average value of the luminance of the area is determined using the pixel data of the area. Is calculated. In the present embodiment, since the brightness correction processing is performed using only the image data of the part where the possibility that the main subject is likely to be present is high, the number of data to be processed is reduced, and the time required for the arithmetic processing is reduced. Becomes possible.

【0066】補正量演算部235は、CPU、ROM、
RAMなどで構成され、演算された主要被写体部分の輝
度の平均値とあらかじめ設定されている適正輝度に相当
する所定の輝度値と比較し、主要被写体の部分を適正輝
度(適正濃度)にするために、輝度の平均値を所定の輝
度値に一致させるために必要な補正量を演算し、RAM
などに記憶する。
The correction amount calculation unit 235 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.

【0067】画像データ補正部236は、CPU、RO
M、RAMなどで構成され、演算された補正量を用いて
全ての画素に関する画像データの輝度(RGBデータ)
を補正する。
The image data correction unit 236 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.

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

【0069】次に、第3実施形態における画像データ処
理のフローチャートを図11〜図12に示す。
Next, FIGS. 11 to 12 show flowcharts of image data processing in the third embodiment.

【0070】画像データ入力部230により画像データ
が読み込まれると(ステップS101)、画像データ分
割部231は、図13に示すように、その画像データを
用いて形成したと仮定した場合に、その仮想画像を縦方
向及び横方向にそれぞれ複数(例えば5×5=25)に
分割し(ステップS103)、分割した各領域に対応す
るように、画像データを画素の番地などに応じて複数の
グループに分割する。
When the image data is read by the image data input unit 230 (step S101), the image data dividing unit 231 assumes that the image data is formed using the image data as shown in FIG. The image is divided into a plurality of pieces (for example, 5 × 5 = 25) in the vertical direction and the horizontal direction (step S103), and the image data is divided into a plurality of groups according to the addresses of the pixels and the like so as to correspond to the respective divided areas. To divide.

【0071】色特定部232は、画像データ分割部23
1により分割された各領域のうち、あらかじめ選択され
ている1又は2以上の領域に対応するグループの画素デ
ータを画像データ入力部210のRAMから読み出し
(ステップS105)、上記数1に従って各画素ごとの
色情報C1及びC2を抽出し(ステップS107)、各
画素ごとにその画素の色を特定する。さらに、画素の色
ごとのヒストグラムなどを作成し、その領域又はグルー
プに含まれる画素のうち最も多数の画素が共有する色を
そのグループ又はそのグループに対応する領域の色とし
て特定する(ステップS109)。
The color specifying section 232 is provided for the image data dividing section 23.
The pixel data of a group corresponding to one or two or more areas selected in advance among the areas divided by 1 is read from the RAM of the image data input unit 210 (step S105), and each pixel is read according to the above equation (1). The color information C1 and C2 are extracted (step S107), and the color of the pixel is specified for each pixel. Further, a histogram or the like is created for each color of the pixel, and the color shared by the largest number of pixels among the pixels included in the area or the group is specified as the color of the group or the area corresponding to the group (step S109). .

【0072】次に、色比較部233は、特定された各領
域の色と、あらかじめ設定されている主要被写体の色と
を比較し(ステップS111)、主要被写体の色と同じ
色を有する領域があるか否かを判断する(ステップS1
13)。主要被写体の色と同じ色を有する領域がある場
合、平均輝度演算部234は、その領域の画素データ又
は輝度情報YYを用いて、その領域に含まれる全画素の
輝度のヒストグラムを作成し、輝度の平均値を演算する
(ステップS115)。なお、主要被写体の色と同じ色
を有する領域がない場合(ステップS113でNO)、
ステップS121に進んで次の画像データの輝度補正を
行う。
Next, the color comparing section 233 compares the specified color of each area with a preset color of the main subject (step S111), and determines that an area having the same color as the main subject color is present. It is determined whether or not there is (step S1
13). When there is a region having the same color as the color of the main subject, the average luminance calculation unit 234 creates a histogram of the luminance of all the pixels included in the region using the pixel data or the luminance information YY of the region, and generates the luminance. Is calculated (step S115). If there is no area having the same color as the color of the main subject (NO in step S113),
Proceeding to step S121, the luminance of the next image data is corrected.

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

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

【0075】全ての画像データについて輝度補正量を演
算すると(ステップS121でYES)、画像データ補
正部236は、各画像データ及びその画像データに関す
る輝度補正量を順に読み出し(ステップS123)、輝
度補正量を用いて各画像データを補正し(ステップS1
25)、RAMなどに補正した画像データを保存する
(ステップS127)。さらに、画像データ補正部23
6は、輝度補正の対象となっている全ての画像データに
ついて輝度補正を行ったか否かを判断し(ステップS1
29)、補正が完了していない場合はステップS123
からS129を繰り返す。
When the luminance correction amount is calculated for all the image data (YES in step S121), the image data correction unit 236 sequentially reads out the image data and the luminance correction amount for the image data (step S123), Is used to correct each image data (step S1).
25) The corrected image data is stored in a RAM or the like (step S127). Further, the image data correction unit 23
6 judges whether or not the luminance correction has been performed for all the image data to be subjected to the luminance correction (step S1).
29) If the correction is not completed, step S123
To S129 are repeated.

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

【0077】その他の実施形態 上記各実施形態では、主要被写体領域を特定し、主要被
写体領域の輝度の平均値が適正輝度に相当する所定の輝
度値になるように輝度補正量を決定するように構成した
が、これに限定されるものではなく、輝度の平均値と所
定の輝度値の差に対して、さらに所定の係数(例えば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 appropriate 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.

【0078】また、上記第1実施形態では、補正前の画
像をプレスキャン画像としてディスプレイ203のモニ
タ画面上に表示するように構成したが、さらに補正後の
画像データを用いてプリント用の画像をディスプレイ2
03のモニタ画面上に表示しても良い。さらに、ディス
プレイ203のモニタ画面上にプレスキャン画像を表示
する場合及び主要被写体領域の輝度補正量を演算する場
合に、画像データの画素数を間引いて使用しても良い。
後者は、第2及び第3実施形態の場合も同様である。
In the first embodiment, 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 formed by using the image data after correction. Display 2
03 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.
The latter is the same for the second and third embodiments.

【0079】さらに、上記各実施形態では、画像形成装
置としてディジタルプリンタを例にして説明したが、こ
れに限定されるものではなく、パーソナルコンピュータ
及びそれに接続されたカラープリンタ、例えば熱転写式
カラープリンタ、インクジェット式カラープリンタ及び
レーザ式カラープリンタなどであっても良い。
Further, 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.

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

【0081】[0081]

【発明の効果】以上説明したように、本発明の第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 from the images reproduced on the monitor screen, and average brightness calculation means for calculating an average value of the brightness of the selected range using pixel data included in the selected range Correction amount calculating means for calculating a correction amount for correcting the average value of the obtained luminance to a predetermined luminance value set in advance, and an image for correcting all pixel data using the obtained correction amount The image processing apparatus includes a data correcting unit and an image forming unit that forms an image using the corrected image data.

【0082】また、本発明の第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 the selected image, and an average brightness calculation step of calculating an average value of brightness in the selected range using pixel data included in the selected range. A correction amount calculation step of calculating a correction amount for correcting the average value of the brightness to a predetermined brightness value set in advance, and an image data correction step of correcting all pixel data using the obtained correction amount, Outputting corrected image data.

【0083】さらに、本発明の第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 by using image data composed of a plurality of pixel data; Range selection processing for selecting a specific range from images reproduced on the monitor screen, and average luminance calculation processing for calculating an average value of luminance in the selected range using pixel data included in the selected range And a correction amount calculating process for calculating a correction amount for correcting the average value of the obtained luminance to a predetermined luminance value set in advance, and an image for correcting all pixel data using the obtained correction amount The data is recorded so that the computer executes a data correction process and a corrected image data output process for outputting corrected image data.

【0084】すなわち、これらの発明によれば、ユーザ
又はオペレータが主要被写体であると認識し、モニタ画
面上で特定した範囲の画素データを用いて、その特定し
た範囲の輝度が適正となるように画像データ全体を補正
するので、例えば逆光シーンやフラッシュ撮影などの場
合であっても、画面の主要被写体である人物の顔の部分
が適正な明るさ(濃度)に補正された画像を得ることが
できる。また、画像の主要被写体の範囲をユーザ又はオ
ペレータが指定するので、輝度補正に用いる画素データ
の数を少なくすることができ、輝度補正量の演算に要す
る時間を短くすることができる。
That is, according to these inventions, the user or the operator recognizes that the main subject is 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. 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 luminance correction can be reduced, and the time required for calculating the luminance correction amount can be shortened.

【0085】また、本発明の第2の画像形成装置によれ
ば、複数の画素データで構成された画像データに含まれ
る各画素データからその画素の色を特定する色特定手段
と、特定された各画素の色の中に所定の色が含まれてい
るか否かを判別し、所定の色を有する画素データを抽出
する画素データ抽出手段と、抽出された全画素データを
用いてその輝度の平均値を求める平均輝度演算手段と、
求められた輝度の平均値をあらかじめ設定された所定の
輝度値に補正するための補正量を演算により求める補正
量演算手段と、求められた補正量を用いて全画素データ
を補正する画像データ補正手段と、補正された画像デー
タを用いて画像を形成する画像形成手段とを具備する。
According to the second image forming apparatus of the present invention, the color specifying means for specifying the color of a pixel from each pixel data included in the image data composed of a plurality of pixel data is specified. A pixel data extracting means for determining whether a predetermined color is included in the color of each pixel and extracting pixel data having a predetermined color, and averaging the luminance using all the extracted pixel data; Average brightness calculating means for obtaining a value;
Correction amount calculating means for calculating a correction amount for correcting the average value of the obtained luminance to a predetermined luminance value set in advance, and image data correction for correcting all pixel data using the obtained correction amount Means and an image forming means for forming an image using the corrected image data.

【0086】また、本発明の第2の画像データ処理方法
によれば、複数の画素データで構成された画像データに
含まれる各画素データからその画素の色を特定する色特
定ステップと、特定された各画素の色の中に所定の色が
含まれているか否かを判別し、所定の色を有する画素デ
ータを抽出する画素データ抽出ステップと、抽出された
全画素データを用いてその輝度の平均値を求める平均輝
度演算ステップと、求められた輝度の平均値をあらかじ
め設定された所定の輝度値に補正するための補正量を演
算により求める補正量演算ステップと、求められた補正
量を用いて全画素データを補正する画像データ補正ステ
ップと、補正された画像データを出力する補正画像デー
タ出力ステップとを具備する。
Further, according to the second image data processing method of the present invention, a color specifying step of specifying a color of a pixel from each pixel data included in image data composed of a plurality of pixel data is specified. A pixel data extraction step of determining whether a predetermined color is included in the colors of the respective pixels and extracting pixel data having the predetermined color; and An average brightness calculating step for calculating an average value, a correction amount calculating step for calculating a correction amount for correcting the calculated average value of the brightness to a predetermined brightness value, and a correction amount calculating step. And a corrected image data output step of outputting corrected image data.

【0087】さらに、本発明の第2の画像データ処理プ
ログラムを記録した記録媒体によれば、複数の画素デー
タで構成された画像データに含まれる各画素データから
その画素の色を特定する色特定処理と、特定された各画
素の色の中に所定の色が含まれているか否かを判別し、
所定の色を有する画素データを抽出する画素データ抽出
処理と、抽出された全画素データを用いてその輝度の平
均値を求める平均輝度演算手段と、求められた輝度の平
均値をあらかじめ設定された所定の輝度値に補正するた
めの補正量を演算により求める補正量演算処理と、求め
られた補正量を用いて全画素データを補正する画像デー
タ補正処理と、補正された画像データを出力する補正画
像データ出力処理とをコンピュータに実行させるように
記録されている。
Further, according to the recording medium on which the second image data processing program of the present invention is recorded, the color identification for identifying the color of each pixel from each pixel data included in the image data composed of a plurality of pixel data Processing, determine whether a predetermined color is included in the color of each specified pixel,
A pixel data extraction process for extracting pixel data having a predetermined color, an average luminance calculating means for calculating an average value of the luminance using all the extracted pixel data, and an average value of the obtained luminance are preset. A correction amount calculation process for calculating a correction amount for correcting to a predetermined luminance value, an image data correction process for correcting all pixel data using the obtained correction amount, and a correction for outputting corrected image data The image data output processing is recorded so as to be executed by a computer.

【0088】すなわち、これらの発明によれば、画像を
一旦モニタ画面上に表示することなく、自動的に画像デ
ータの輝度補正を行うので、各画像データについて輝度
補正量の演算に用いる画素データ数は上記第1の場合よ
りも多くなるが、各画像をモニタ画面上に表示する必要
がなく、例えば1枚の記録媒体に複数の画像データが記
録されており、全ての画像をプリントする場合などで
は、トータルの処理時間を短くすることが可能である。
That is, according to these inventions, the brightness of the image data is automatically corrected without displaying the image on the monitor screen once. Therefore, the number of pixel data used for calculating the brightness correction amount for each image data Is larger than in the first case, but it is not necessary to display each image on the monitor screen. For example, when a plurality of image data are recorded on one recording medium and all the images are printed, Then, it is possible to shorten the total processing time.

【0089】さらに、本発明の第3の画像形成装置によ
れば、複数の画素データで構成された画像データを、そ
の画像データを用いて形成される画像を複数の領域に分
割した場合の各領域に対応するように複数のグループに
分割する画像データ分割手段と、分割された各領域のう
ち、あらかじめ選択されている1又は2以上の領域に対
応するグループに含まれる各画素データからその画素の
色を特定し、そのグループに含まれる画素のうち最も多
数の画素が共有する色をそのグループ又はそのグループ
に対応する領域の色として特定する色特定手段と、特定
された各領域の色とあらかじめ設定されている所定の色
とを比較する色比較手段と、前記各領域の色の中に前記
所定の色が含まれている場合に、その領域に含まれる画
素データを用いてその領域の輝度の平均値を求める平均
輝度演算手段と、求められた輝度の平均値をあらかじめ
設定された所定の輝度値に補正するための補正量を演算
により求める補正量演算手段と、求められた補正量を用
いて全画素データを補正する画像データ補正手段と、補
正された画像データを用いて画像を形成する画像形成手
段とを具備する。
Further, according to the third image forming apparatus of the present invention, each image data composed of a plurality of pixel data is divided into a plurality of regions when an image formed by using the image data is divided into a plurality of regions. Image data dividing means for dividing the image data into a plurality of groups so as to correspond to the regions; and, from among the divided regions, the pixel data from the pixel data included in the group corresponding to one or more regions selected in advance. Color specifying means for specifying the color shared by the largest number of pixels among the pixels included in the group as the color of the group or the area corresponding to the group, and the color of each specified area. A color comparing unit that compares the predetermined color with a predetermined color set in advance, and using the pixel data included in the area when the color is included in the color of each area. Average luminance calculating means for calculating an average value of the luminance of the region, and correction amount calculating means for calculating a correction amount for correcting the calculated average value of the luminance to a predetermined luminance 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.

【0090】また、本発明の第3の画像データ処理方法
によれば、複数の画素データで構成された画像データ
を、その画像データを用いて形成される画像を複数の領
域に分割した場合の各領域に対応するように複数のグル
ープに分割する画像データ分割ステップと、分割された
各領域のうち、あらかじめ選択されている1又は2以上
の領域に対応するグループに含まれる各画素データから
その画素の色を特定し、そのグループに含まれる画素の
うち最も多数の画素が共有する色をそのグループ又はそ
のグループに対応する領域の色として特定する色特定ス
テップと、特定された各領域の色とあらかじめ設定され
ている所定の色とを比較する色比較ステップと、前記各
領域の色の中に前記所定の色が含まれている場合に、そ
の領域に含まれる画素データを用いてその領域の輝度の
平均値を求める平均輝度演算ステップと、求められた輝
度の平均値をあらかじめ設定された所定の輝度値に補正
するための補正量を演算により求める補正量演算ステッ
プと、求められた補正量を用いて全画素データを補正す
る画像データ補正ステップと、補正された画像データを
出力する補正画像データ出力ステップとを具備する。
Further, according to the third image data processing method of the present invention, the image data composed of a plurality of pixel data is divided into a plurality of areas formed by using the image data. An image data dividing step of dividing the image data into a plurality of groups so as to correspond to the respective regions; and, from among the divided regions, each pixel data included in a group corresponding to one or more regions selected in advance. A color specifying step of specifying the color of the pixel, and specifying the color shared by the largest number of pixels among the pixels included in the group as the color of the group or the area corresponding to the group; and the color of each specified area. A color comparison step of comparing the image with a predetermined color set in advance; and, when the color of the area includes the predetermined color, an image included in the area. An average luminance calculating step of calculating an average value of the luminance of the region using the data, and a correction amount calculating step of calculating a correction amount for correcting the obtained average value of the luminance to a predetermined luminance value And an image data correction step of correcting all pixel data using the obtained correction amount, and a corrected image data output step of outputting corrected image data.

【0091】さらに、本発明の第3の画像データ処理プ
ログラムを記録した記録媒体によれば、複数の画素デー
タで構成された画像データを、その画像データを用いて
形成される画像を複数の領域に分割した場合の各領域に
対応するように複数のグループに分割する画像データ分
割処理と、分割された各領域のうち、あらかじめ選択さ
れている1又は2以上の領域に対応するグループに含ま
れる各画素データからその画素の色を特定し、そのグル
ープに含まれる画素のうち最も多数の画素が共有する色
をそのグループ又はそのグループに対応する領域の色と
して特定する色特定処理と、特定された各領域の色とあ
らかじめ設定されている所定の色とを比較する色比較処
理と、前記各領域の色の中に前記所定の色が含まれてい
る場合に、その領域に含まれる画素データを用いてその
領域の輝度の平均値を求める平均輝度演算処理と、求め
られた輝度の平均値をあらかじめ設定された所定の輝度
値に補正するための補正量を演算により求める補正量演
算処理と、求められた補正量を用いて全画素データを補
正する画像データ補正処理と、補正された画像データを
出力する補正画像データ出力処理とをコンピュータに実
行させるように記録されている。
Further, according to the recording medium on which the third image data processing program of the present invention is recorded, image data composed of a plurality of pixel data is converted into an image formed using the image data in a plurality of areas. Image data division processing for dividing the image data into a plurality of groups so as to correspond to the respective areas when the image data is divided into a plurality of areas, and among the divided areas, the image data is included in a group corresponding to one or more areas selected in advance A color specifying process of specifying a color of the pixel from each pixel data and specifying a color shared by the most pixels among the pixels included in the group as a color of the group or a region corresponding to the group; A color comparison process for comparing the color of each area with a predetermined color set in advance; and, when the color of each area includes the predetermined color, the area And an average brightness calculation process for calculating an average value of the brightness of the area using the pixel data included in the image data, and a correction amount for correcting the obtained average value of the brightness to a predetermined brightness value by calculation. A correction amount calculation process, an image data correction process of correcting all pixel data using the obtained correction amount, and a corrected image data output process of outputting corrected image data are recorded to be executed by a computer. I have.

【0092】すなわち、これらの発明によれば、上記第
2の場合と同様に、画像を一旦モニタ画面上に表示する
ことなく自動的に画像データの輝度補正を行うので、ト
ータルの処理時間を短くすることが可能である。また、
画像データを用いて画像を形成したと仮定した場合に、
その画像を複数の領域に分割し、ユーザ又はオペレータ
が主要被写体が存在する可能性が高いと思う1又は2以
上の領域を選択して、選択された領域に含まれる画素デ
ータのみを用いて輝度補正を行うので、輝度補正量の演
算に用いる画素データ数を非常に少なくすることがで
き、輝度補正量の演算に要する時間を短くすることが可
能である。
That is, according to these inventions, as in the second case, the brightness correction of the image data is automatically performed without displaying the image on the monitor screen once, so that the total processing time can be shortened. It is possible to Also,
Assuming that the image was formed using the image data,
The image is divided into a plurality of regions, and the user or operator selects one or more regions in which the main subject is likely to be present, and uses only the pixel data included in the selected region to obtain a luminance. Since the correction is performed, the number of pixel data used for calculating the luminance correction amount can be extremely reduced, and the time required for calculating the luminance correction amount can be shortened.

【図面の簡単な説明】[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】 本発明の第3実施形態におけるディジタル
プリンタのブロック構成を示す図である。
FIG. 10 is a diagram illustrating a block configuration of a digital printer according to a third embodiment of the present invention.

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

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

【図13】 第3実施形態において、仮想画像を複数の
領域に分割した状態を示す図である。
FIG. 13 is a diagram showing a state in which a virtual image is divided into a plurality of regions in the third embodiment.

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

100:画像形成部 200:画像データ処理部 210:画像データ入力部 211:画像再生部 212:範囲選択部 213:平均輝度演算部 214:補正量演算部 215:画像データ補正部 216:補正画像データ出力部 220:画像データ入力部 221:色特定部 222:画素データ抽出部 223:平均輝度演算部 224:補正量演算部 225:画像データ補正部 226:補正画像データ出力部 230:画像データ入力部 231:画像データ分割部 232:色特定部 233:色比較部 234:平均輝度演算部 235:補正量演算部 236:画像データ補正部 237:補正画像データ出力部 100: Image forming unit 200: Image data processing unit 210: Image data input unit 211: Image reproduction unit 212: Range selection unit 213: Average luminance calculation unit 214: Correction amount calculation unit 215: Image data correction unit 216: Corrected image data Output unit 220: Image data input unit 221: Color identification unit 222: Pixel data extraction unit 223: Average luminance calculation unit 224: Correction amount calculation unit 225: Image data correction unit 226: Corrected image data output unit 230: Image data input unit 231: Image data division unit 232: Color specification unit 233: Color comparison unit 234: Average luminance calculation unit 235: Correction amount calculation unit 236: Image data correction unit 237: Corrected image data output unit

───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.7 識別記号 FI テーマコート゛(参考) G06T 5/00 100 B41J 3/00 B 5C077 H04N 1/60 H04N 1/40 D 5C079 1/407 101E 1/46 1/46 Z Fターム(参考) 2C262 AA24 AB11 BA09 BA16 BC10 EA08 FA14 GA23 2H106 AA51 AA76 AA80 AA85 AB04 BA22 BA27 BA58 2H110 BA07 BA17 BA18 CB27 CB31 CB33 CB36 5B057 AA11 BA02 BA24 BA25 CA01 CA08 CA12 CA16 CB01 CB08 CB12 CB16 CC03 CE17 CE18 CH08 DA16 DA17 DC23 5C076 AA27 AA36 AA40 BA06 CA02 CA10 5C077 LL01 MP08 PP15 PP32 PP33 PP34 PP38 PP46 PQ08 PQ19 SS05 SS07 TT02 5C079 HB01 HB02 HB04 HB12 LA02 LA10 LA12 LA31 LA39 LB12 MA11 MA17 NA01 NA11 PA03──────────────────────────────────────────────────続 き Continued on the front page (51) Int.Cl. 7 Identification symbol FI Theme coat ゛ (Reference) G06T 5/00 100 B41J 3/00 B 5C077 H04N 1/60 H04N 1/40 D 5C079 1/407 101E 1 / 46 1/46 Z F term (reference) 2C262 AA24 AB11 BA09 BA16 BC10 EA08 FA14 GA23 2H106 AA51 AA76 AA80 AA85 AB04 BA22 BA27 BA58 2H110 BA07 BA17 BA18 CB27 CB31 CB33 CB36 5B057 AA11 BA02 BA24 BA25 CA01 CB03 CA12 CB33 CE17 CE18 CH08 DA16 DA17 DC23 5C076 AA27 AA36 AA40 BA06 CA02 CA10 5C077 LL01 MP08 PP15 PP32 PP33 PP34 PP38 PP46 PQ08 PQ19 SS05 SS07 TT02 5C079 HB01 HB02 HB04 HB12 LA02 LA10 LA12 LA31 LA39 LB12 MA11 MA17

Claims (13)

【特許請求の範囲】[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. Average luminance calculating means for calculating an average value of the luminance of the selected range using the pixel data included in the selected range; and converting the calculated average value of the luminance to a predetermined luminance value set in advance. Correction amount calculation means for calculating a correction amount for correction by calculation, image data correction means for correcting all pixel data using the obtained correction amount, and image formation for forming an image using the corrected image data And an image forming apparatus.
【請求項2】 複数の画素データで構成された画像デー
タに含まれる各画素データからその画素の色を特定する
色特定手段と、 特定された各画素の色の中に所定の色が含まれているか
否かを判別し、所定の色を有する画素データを抽出する
画素データ抽出手段と、 抽出された全画素データを用いてその輝度の平均値を求
める平均輝度演算手段と、 求められた輝度の平均値をあらかじめ設定された所定の
輝度値に補正するための補正量を演算により求める補正
量演算手段と、 求められた補正量を用いて全画素データを補正する画像
データ補正手段と、 補正された画像データを用いて画像を形成する画像形成
手段とを具備することを特徴とする画像形成装置。
2. A color specifying means for specifying a color of a pixel from each pixel data included in image data composed of a plurality of pixel data, and a predetermined color is included in the specified color of each pixel. Pixel data extraction means for judging whether or not the pixel data has a predetermined color, and an average brightness calculation means for obtaining an average value of the brightness using all the extracted pixel data; Correction amount calculating means for calculating a correction amount for correcting the average value of the pixels to a predetermined luminance value set in advance; image data correcting means for correcting all pixel data using the obtained correction amount; And an image forming means for forming an image using the obtained image data.
【請求項3】 複数の画素データで構成された画像デー
タを、その画像データを用いて形成される画像を複数の
領域に分割した場合の各領域に対応するように複数のグ
ループに分割する画像データ分割手段と、 分割された各領域のうち、あらかじめ選択されている1
又は2以上の領域に対応するグループに含まれる各画素
データからその画素の色を特定し、そのグループに含ま
れる画素のうち最も多数の画素が共有する色をそのグル
ープ又はそのグループに対応する領域の色として特定す
る色特定手段と、 特定された各領域の色とあらかじめ設定されている所定
の色とを比較する色比較手段と、 前記各領域の色の中に前記所定の色が含まれている場合
に、その領域に含まれる画素データを用いてその領域の
輝度の平均値を求める平均輝度演算手段と、 求められた輝度の平均値をあらかじめ設定された所定の
輝度値に補正するための補正量を演算により求める補正
量演算手段と、 求められた補正量を用いて全画素データを補正する画像
データ補正手段と、 補正された画像データを用いて画像を形成する画像形成
手段とを具備することを特徴とする画像形成装置。
3. An image in which image data composed of a plurality of pixel data is divided into a plurality of groups so as to correspond to each region when an image formed using the image data is divided into a plurality of regions. A data division unit, and a pre-selected one of the divided areas
Alternatively, the color of the pixel is specified from each pixel data included in the group corresponding to two or more areas, and the color shared by the most pixels among the pixels included in the group is set to the group or the area corresponding to the group. A color specifying unit that specifies the color of each of the regions; a color comparing unit that compares the color of each of the specified regions with a predetermined color that is set in advance; and the color of each of the regions includes the predetermined color. Means for calculating an average value of the luminance of the area using the pixel data included in the area, and correcting the average value of the obtained luminance to a predetermined luminance value set in advance. Correction amount calculating means for calculating the correction amount of the image data, image data correcting means for correcting all pixel data using the obtained correction amount, and an image forming an image using the corrected image data. An image forming apparatus characterized by comprising a formation unit.
【請求項4】 前記補正量は、前記所定の輝度値と前記
輝度の平均値との差に所定の係数を掛けた値であること
を特徴とする請求項1から3のいずれかに記載の画像形
成装置。
4. The 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 luminance value by a predetermined coefficient. Image forming device.
【請求項5】 前記所定の色は人間の皮膚に関する色で
あることを特徴とする請求項1から4のいずれかに記載
の画像形成装置。
5. The image forming apparatus according to claim 1, wherein the predetermined color is a color related to human skin.
【請求項6】 複数の画素データで構成された画像デー
タを用いてモニタ画面上に画像を再生する画像再生ステ
ップと、 モニタ画面上に再生された画像のうち特定の範囲を選択
する範囲選択ステップと、 選択された範囲に含まれる画素データを用いて、選択さ
れた範囲の輝度の平均値を演算する平均輝度演算ステッ
プと、 求められた輝度の平均値をあらかじめ設定された所定の
輝度値に補正するための補正量を演算により求める補正
量演算ステップと、 求められた補正量を用いて全画素データを補正する画像
データ補正ステップと、 補正された画像データを出力する補正画像データ出力ス
テップとを具備することを特徴とする画像データ処理方
法。
6. 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. And an average brightness calculating step of calculating an average value of the brightness of the selected range using the pixel data included in the selected range; and converting the obtained average value of the brightness to a predetermined brightness value set in advance. A correction amount calculation step of calculating a correction amount for correction by calculation, an image data correction step of correcting all pixel data using the obtained correction amount, and a corrected image data output step of outputting corrected image data. An image data processing method comprising:
【請求項7】 複数の画素データで構成された画像デー
タに含まれる各画素データからその画素の色を特定する
色特定ステップと、 特定された各画素の色の中に所定の色が含まれているか
否かを判別し、所定の色を有する画素データを抽出する
画素データ抽出ステップと、 抽出された全画素データを用いてその輝度の平均値を求
める平均輝度演算ステップと、 求められた輝度の平均値をあらかじめ設定された所定の
輝度値に補正するための補正量を演算により求める補正
量演算ステップと、 求められた補正量を用いて全画素データを補正する画像
データ補正ステップと、 補正された画像データを出力する補正画像データ出力ス
テップとを具備することを特徴とする画像データ処理方
法。
7. A color specifying step for specifying a color of a pixel from each pixel data included in image data composed of a plurality of pixel data, and a predetermined color is included in the specified color of each pixel. Pixel data extraction step of determining whether or not the pixel data has a predetermined color, and an average luminance calculation step of calculating an average value of the luminance using all the extracted pixel data; A correction amount calculating step for calculating a correction amount for correcting the average value of the pixels to a predetermined luminance value set in advance; an image data correcting step for correcting all pixel data using the obtained correction amount; And outputting a corrected image data.
【請求項8】 複数の画素データで構成された画像デー
タを、その画像データを用いて形成される画像を複数の
領域に分割した場合の各領域に対応するように複数のグ
ループに分割する画像データ分割ステップと、 分割された各領域のうち、あらかじめ選択されている1
又は2以上の領域に対応するグループに含まれる各画素
データからその画素の色を特定し、そのグループに含ま
れる画素のうち最も多数の画素が共有する色をそのグル
ープ又はそのグループに対応する領域の色として特定す
る色特定ステップと、 特定された各領域の色とあらかじめ設定されている所定
の色とを比較する色比較ステップと、 前記各領域の色の中に前記所定の色が含まれている場合
に、その領域に含まれる画素データを用いてその領域の
輝度の平均値を求める平均輝度演算ステップと、 求められた輝度の平均値をあらかじめ設定された所定の
輝度値に補正するための補正量を演算により求める補正
量演算ステップと、 求められた補正量を用いて全画素データを補正する画像
データ補正ステップと、 補正された画像データを出力する補正画像データ出力ス
テップとを具備することを特徴とする画像データ処理方
法。
8. An image in which image data composed of a plurality of pixel data is divided into a plurality of groups so as to correspond to respective regions when an image formed using the image data is divided into a plurality of regions. A data division step, and a pre-selected one of the divided areas
Alternatively, the color of the pixel is specified from each pixel data included in the group corresponding to two or more areas, and the color shared by the most pixels among the pixels included in the group is set to the group or the area corresponding to the group. A color identification step of identifying the color of each area; a color comparison step of comparing the identified color of each area with a predetermined color set in advance; and the predetermined color is included in the color of each area. The average brightness calculation step of calculating the average value of the brightness of the area using the pixel data included in the area, and correcting the calculated average value of the brightness to a predetermined brightness value. A correction amount calculation step of calculating the correction amount of the image data, an image data correction step of correcting all pixel data using the obtained correction amount, and outputting the corrected image data. Image data processing method characterized by comprising the corrected image data output step of.
【請求項9】 前記補正量は、前記所定の輝度値と前記
輝度の平均値との差に所定の係数を掛けた値であること
を特徴とする請求項6から8のいずれかに記載の画像デ
ータ処理方法。
9. The method according to claim 6, 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. Image data processing method.
【請求項10】 前記所定の色は人間の皮膚に関する色
であることを特徴とする請求項6から9のいずれかに記
載の画像データ処理方法。
10. The image data processing method according to claim 6, wherein the predetermined color is a color related to human skin.
【請求項11】 複数の画素データで構成された画像デ
ータを用いてモニタ画面上に画像を再生する画像再生処
理と、 モニタ画面上に再生された画像のうち特定の範囲を選択
する範囲選択処理と、選択された範囲に含まれる画素デ
ータを用いて、選択された範囲の輝度の平均値を演算す
る平均輝度演算処理と、 求められた輝度の平均値をあらかじめ設定された所定の
輝度値に補正するための補正量を演算により求める補正
量演算処理と、 求められた補正量を用いて全画素データを補正する画像
データ補正処理と、 補正された画像データを出力する補正画像データ出力処
理とをコンピュータに実行させるための画像データ処理
プログラムを記録した記録媒体。
11. 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 an average brightness calculation process of calculating an average value of the brightness of the selected range using the pixel data included in the selected range; and converting the obtained average value of the brightness to a predetermined brightness value set in advance. A correction amount calculation process for calculating a correction amount for correction by calculation, an image data correction process for correcting all pixel data using the obtained correction amount, and a corrected image data output process for outputting corrected image data. Recording medium storing an image data processing program for causing a computer to execute the program.
【請求項12】 複数の画素データで構成された画像デ
ータに含まれる各画素データからその画素の色を特定す
る色特定処理と、 特定された各画素の色の中に所定の色が含まれているか
否かを判別し、所定の色を有する画素データを抽出する
画素データ抽出処理と、 抽出された全画素データを用いてその輝度の平均値を求
める平均輝度演算手段と、 求められた輝度の平均値をあらかじめ設定された所定の
輝度値に補正するための補正量を演算により求める補正
量演算処理と、 求められた補正量を用いて全画素データを補正する画像
データ補正処理と、 補正された画像データを出力する補正画像データ出力処
理とをコンピュータに実行させるための画像データ処理
プログラムを記録した記録媒体。
12. A color specifying process for specifying a color of a pixel from each pixel data included in image data composed of a plurality of pixel data, and a predetermined color is included in the specified color of each pixel. Pixel data extraction processing for determining whether or not the pixel data has a predetermined color, and an average luminance calculating means for calculating an average value of the luminance using all the extracted pixel data; Correction amount calculation processing for calculating a correction amount for correcting the average value of the pixels to a predetermined luminance value set in advance; image data correction processing for correcting all pixel data using the obtained correction amount; A recording medium storing an image data processing program for causing a computer to execute a corrected image data output process for outputting the output image data.
【請求項13】 複数の画素データで構成された画像デ
ータを、その画像データを用いて形成される画像を複数
の領域に分割した場合の各領域に対応するように複数の
グループに分割する画像データ分割処理と、 分割された各領域のうち、あらかじめ選択されている1
又は2以上の領域に対応するグループに含まれる各画素
データからその画素の色を特定し、そのグループに含ま
れる画素のうち最も多数の画素が共有する色をそのグル
ープ又はそのグループに対応する領域の色として特定す
る色特定処理と、 特定された各領域の色とあらかじめ設定されている所定
の色とを比較する色比較処理と、 前記各領域の色の中に前記所定の色が含まれている場合
に、その領域に含まれる画素データを用いてその領域の
輝度の平均値を求める平均輝度演算処理と、 求められた輝度の平均値をあらかじめ設定された所定の
輝度値に補正するための補正量を演算により求める補正
量演算処理と、 求められた補正量を用いて全画素データを補正する画像
データ補正処理と、 補正された画像データを出力する補正画像データ出力処
理とをコンピュータに実行させるための画像データ処理
プログラムを記録した記録媒体。
13. An image in which image data composed of a plurality of pixel data is divided into a plurality of groups so as to correspond to respective regions when an image formed using the image data is divided into a plurality of regions. The data division processing, and a pre-selected one of the divided areas
Alternatively, the color of the pixel is specified from each pixel data included in the group corresponding to two or more areas, and the color shared by the most pixels among the pixels included in the group is set to the group or the area corresponding to the group. A color specifying process for specifying the color of each region; a color comparing process for comparing the specified color of each region with a predetermined color set in advance; and the predetermined color is included in the color of each region. The average brightness calculation processing for calculating the average value of the brightness of the area using the pixel data included in the area, and correcting the calculated average value of the brightness to a predetermined brightness value set in advance. Correction amount calculation processing for calculating the correction amount of image data, image data correction processing for correcting all pixel data using the obtained correction amount, and correction image data for outputting corrected image data A recording medium recording the image data processing program for executing a force canceling the computer.
JP2000321379A 2000-10-20 2000-10-20 Image forming apparatus, image data processing method, and recording medium recording image data processing program Expired - Fee Related JP4333016B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2000321379A JP4333016B2 (en) 2000-10-20 2000-10-20 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
JP2000321379A JP4333016B2 (en) 2000-10-20 2000-10-20 Image forming apparatus, image data processing method, and recording medium recording image data processing program

Publications (2)

Publication Number Publication Date
JP2002135559A true JP2002135559A (en) 2002-05-10
JP4333016B2 JP4333016B2 (en) 2009-09-16

Family

ID=18799517

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000321379A Expired - Fee Related JP4333016B2 (en) 2000-10-20 2000-10-20 Image forming apparatus, image data processing method, and recording medium recording image data processing program

Country Status (1)

Country Link
JP (1) JP4333016B2 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2004029876A1 (en) * 2002-09-25 2004-04-08 Nec Corporation Image color correcting device, image color correcting method and image color correcting program
WO2006129601A1 (en) * 2005-06-03 2006-12-07 Nikon Corporation Image processing device, image processing method, image processing program product, and imaging device
JP2008062508A (en) * 2006-09-07 2008-03-21 Seiko Epson Corp Print control apparatus and print control method
JP2008158504A (en) * 2006-11-27 2008-07-10 Canon Inc Image processing apparatus and control method thereof
KR100850460B1 (en) * 2002-10-10 2008-08-07 삼성테크윈 주식회사 Method for improving face image within digital camera

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06309433A (en) * 1993-04-20 1994-11-04 Sony Corp Image identification method
JP2000099717A (en) * 1998-09-24 2000-04-07 Sharp Corp Image quality adjustment device, image quality adjustment method, and recording medium storing image adjustment program
JP2000224607A (en) * 1999-01-28 2000-08-11 Matsushita Electric Ind Co Ltd Image processing device
JP2000261650A (en) * 1999-03-05 2000-09-22 Toshiba Corp Image processing device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06309433A (en) * 1993-04-20 1994-11-04 Sony Corp Image identification method
JP2000099717A (en) * 1998-09-24 2000-04-07 Sharp Corp Image quality adjustment device, image quality adjustment method, and recording medium storing image adjustment program
JP2000224607A (en) * 1999-01-28 2000-08-11 Matsushita Electric Ind Co Ltd Image processing device
JP2000261650A (en) * 1999-03-05 2000-09-22 Toshiba Corp Image processing device

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2004029876A1 (en) * 2002-09-25 2004-04-08 Nec Corporation Image color correcting device, image color correcting method and image color correcting program
KR100850460B1 (en) * 2002-10-10 2008-08-07 삼성테크윈 주식회사 Method for improving face image within digital camera
WO2006129601A1 (en) * 2005-06-03 2006-12-07 Nikon Corporation Image processing device, image processing method, image processing program product, and imaging device
JPWO2006129601A1 (en) * 2005-06-03 2009-01-08 株式会社ニコン Image processing apparatus, image processing method, image processing program product, and imaging apparatus
JP4780104B2 (en) * 2005-06-03 2011-09-28 株式会社ニコン Image processing apparatus, image processing method, image processing program product, and imaging apparatus
US8150099B2 (en) 2005-06-03 2012-04-03 Nikon Corporation Image processing device, image processing method, image processing program product, and imaging device
JP2008062508A (en) * 2006-09-07 2008-03-21 Seiko Epson Corp Print control apparatus and print control method
JP2008158504A (en) * 2006-11-27 2008-07-10 Canon Inc Image processing apparatus and control method thereof

Also Published As

Publication number Publication date
JP4333016B2 (en) 2009-09-16

Similar Documents

Publication Publication Date Title
US6396599B1 (en) Method and apparatus for modifying a portion of an image in accordance with colorimetric parameters
JP3725454B2 (en) Output image adjustment for image files
US7133070B2 (en) System and method for deciding when to correct image-specific defects based on camera, scene, display and demographic data
JP4368513B2 (en) Image processing method and apparatus, and recording medium
JP2001251531A (en) Image processing method and apparatus, 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
JP2003209683A (en) Image processing equipment and image processing method
US7515181B2 (en) Method, apparatus, and program for image processing on image data that have already been subjected to image processing
JP2634511B2 (en) Red-eye correction method for photo prints and pictorial hard copy device
JP2002135559A (en) Image forming apparatus, image data processing method, and recording medium recording image data processing program
US6658163B1 (en) Image processing method
JP3964796B2 (en) Red-eye detection and correction method
JP4415488B2 (en) Image forming apparatus, image data processing method, and recording medium recording image data processing program
JPH1075374A (en) Image processing unit and its method
JP4482307B2 (en) Image processing device
JP4015066B2 (en) Output image adjustment for image files
JP4266716B2 (en) Output image adjustment for image files
JP5045808B2 (en) Output image adjustment for image files
JP3999157B2 (en) Output image adjustment for image files
JP4285868B2 (en) Main subject extraction method, image processing apparatus, and imaging apparatus
JP2003319298A (en) Image processing method, image processor, and program
JP2003338941A (en) Image reading device and image output device
JP2003244623A (en) Image forming method, image processing apparatus using the same, print generating apparatus, and storage medium
JP2001036740A (en) Image processor

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20070829

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20090223

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20090310

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20090423

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

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20090615

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

Free format text: PAYMENT UNTIL: 20120703

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Year of fee payment: 3

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

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

Free format text: PAYMENT UNTIL: 20120703

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20130703

Year of fee payment: 4

LAPS Cancellation because of no payment of annual fees