JP2005192162A - Image processing method, image processing apparatus, and image recording apparatus - Google Patents

Image processing method, image processing apparatus, and image recording apparatus Download PDF

Info

Publication number
JP2005192162A
JP2005192162A JP2003434706A JP2003434706A JP2005192162A JP 2005192162 A JP2005192162 A JP 2005192162A JP 2003434706 A JP2003434706 A JP 2003434706A JP 2003434706 A JP2003434706 A JP 2003434706A JP 2005192162 A JP2005192162 A JP 2005192162A
Authority
JP
Japan
Prior art keywords
image data
hue
captured image
saturation
gradation conversion
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2003434706A
Other languages
Japanese (ja)
Inventor
Hiroaki Takano
博明 高野
Jo Nakajima
丈 中嶋
Daisuke Sato
大輔 佐藤
Tsukasa Ito
司 伊藤
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.)
Konica Minolta Photo Imaging Inc
Original Assignee
Konica Minolta Photo Imaging Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Konica Minolta Photo Imaging Inc filed Critical Konica Minolta Photo Imaging Inc
Priority to JP2003434706A priority Critical patent/JP2005192162A/en
Publication of JP2005192162A publication Critical patent/JP2005192162A/en
Pending legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide a new image processing method for carrying out highly accurate gradation compression processing and gray balance adjustment, and to provide an image processing apparatus and an image recording apparatus employing the method. <P>SOLUTION: The image recording apparatus 1 disclosed herein acquires the hue value and the saturation value of input image data, generates a two-dimensional histogram denoting an accumulated frequency distribution of pixels within a coordinate plane wherein an x-axis is the hue value (H) and a y-axis is the saturation value (S), divides the two-dimensional histogram into regions each comprising a hue and saturation combination, calculates a lightness deviation amount of prescribed divided regions, that is, a face region being a skin color region over the entire image, determines a gradation conversion curve on the basis of the calculated lightness deviation amount, and applies the determined gradation conversion curve to the input image data to apply gradation conversion processing to the input image data. <P>COPYRIGHT: (C)2005,JPO&NCIPI

Description

本発明は、撮像画像データに画像処理を施して、出力媒体上での鑑賞に最適化された画像データを出力する画像処理方法、画像処理装置及び画像記録装置に関する。   The present invention relates to an image processing method, an image processing apparatus, and an image recording apparatus that perform image processing on captured image data and output image data optimized for viewing on an output medium.

今日、カラー写真フィルムのスキャニング画像や、撮像装置で撮影されたデジタル画像データは、CD-R、フロッピー(登録商標)ディスク、メモリーカードなどの記憶デバイスやインターネット経由で配信され、CRT(Cathode Ray Tube)、液晶、プラズマ等のディスプレイモニタや携帯電話の小型液晶モニタの表示デバイスに表示されたり、デジタルプリンタ、インクジェットプリンタ、サーマルプリンタ等の出力デバイスを用いてハードコピー画像としてプリントされるなど、その表示・プリント方法は多種多様化している。   Today, scanning images of color photographic film and digital image data taken with an imaging device are distributed via storage devices such as CD-Rs, floppy disks, and memory cards, and the Internet, and CRT (Cathode Ray Tube ), Displayed on a display device such as a liquid crystal display or plasma display or a small liquid crystal display monitor of a mobile phone, or printed as a hard copy image using an output device such as a digital printer, an ink jet printer, or a thermal printer.・ Printing methods are diversified.

こうした多様な表示・プリント方法に対応して、デジタル画像データの汎用性を高める努力がなされてきた。その一環として、デジタルRGB信号が表現する色空間を撮像装置特性に依存しない色空間に標準化する試みがあり、現在では多くのデジタル画像データが標準化された色空間として「sRGB」を採用している(「Multimedia Systems and Equipment-Colour Measurment and Management-Part2-1:Colour Management-Default RGB Colour Space-sRGB」IEC"61966-2-1を参照)。このsRGBの色空間は標準的なCRTディスプレイモニタの色再現領域に対応して設定されている。 In response to these various display / printing methods, efforts have been made to increase the versatility of digital image data. As part of this effort, there is an attempt to standardize the color space represented by the digital RGB signal into a color space that does not depend on the characteristics of the imaging device. Currently, "sRGB" is adopted as the standardized color space for many digital image data. (See "Multimedia Systems and Equipment-Colour Measurment and Management-Part2-1: Color Management-Default RGB Color Space-sRGB" IEC "61966-2-1.) The sRGB color space is that of a standard CRT display monitor. It is set corresponding to the color reproduction area.

一般的に、スキャナやデジタルカメラは、CCD(電荷結合素子(charge coupled device))と電荷転送機構と、市松模様のカラーフィルタとを組み合わせ感色性を付与した、光電変換機能を有する撮像素子(CCD型撮像素子、以下単に「CCD」とも称す)を備えている。スキャナやデジタルカメラにより出力されるデジタル画像データは、CCDを介して変換された電気的な元信号に、撮像素子の光電変換機能の補正(例えば、階調補正、分光感度のクロストーク補正、暗電流ノイズ抑制、鮮鋭化、ホワイトバランス調整、彩度調整等の画像処理)が施され、画像編集ソフトでの読み取り・表示が可能なように規格化された所定形式のデータフォーマットへのファイル変換・圧縮処理等を経たものである。   In general, a scanner or a digital camera uses an image sensor (photoelectric conversion function) that combines a CCD (charge coupled device), a charge transfer mechanism, and a checkered color filter to provide color sensitivity. CCD type image sensor, hereinafter simply referred to as “CCD”). Digital image data output by a scanner or digital camera is converted into an electrical original signal converted via a CCD by correcting the photoelectric conversion function of the image sensor (for example, tone correction, spectral sensitivity crosstalk correction, darkness correction). File conversion to a specified data format that has been standardized so that it can be read and displayed by image editing software with current noise suppression, sharpening, white balance adjustment, saturation adjustment, etc. It has undergone compression processing and the like.

このようなデータフォーマットとしては、例えばExif(Exchangeable Image File Format)ファイルの非圧縮ファイルとして採用されている「Baseline Tiff Rev.6.0RGB Full Color Image」、及びJPEGフォーマットに準拠した圧縮データファイル形式が知られている。Exifファイルは、前記sRGBに準拠したものであり、撮像素子の光電変換機能の補正は、sRGBに準拠するディスプレイモニタ上で最も好適な画質となるよう設定されている。   As such a data format, for example, “Baseline Tiff Rev.6.0RGB Full Color Image” adopted as an uncompressed file of an Exif (Exchangeable Image File Format) file and a compressed data file format compliant with the JPEG format are known. It has been. The Exif file conforms to the sRGB, and correction of the photoelectric conversion function of the image sensor is set so as to obtain the most suitable image quality on a display monitor conforming to sRGB.

例えば、どのようなデジタルカメラであっても、sRGB信号に準拠したディスプレイモニタの標準色空間(以下、「モニタプロファイル」とも称す)で表示する事を示すタグ情報、や画素数、画素配列、及び1画素当たりのビット数などの機種依存情報を示す付加情報をデジタル画像データのファイルヘッダにメタデータとして書き込む機能、及びそのようなデータフォーマット形式を採用してさえいれば、デジタル画像データをディスプレイモニタに表示する画像編集ソフト(例えば、Adobe社製Photoshop)はタグ情報を解析し、モニタプロファイルのsRGBへの変更を促したり、自動的に変更処置を施すことが出来る。そのため、異なるディスプレイ間の差異を低減したり、デジタルカメラで撮影されたデジタル画像データをディスプレイ上で好適な状態で鑑賞することが可能になっている。   For example, in any digital camera, tag information indicating that display is performed in a standard color space of a display monitor compliant with the sRGB signal (hereinafter also referred to as “monitor profile”), the number of pixels, the pixel arrangement, and The digital image data can be displayed on a display monitor as long as it adopts a function for writing additional information indicating model-dependent information such as the number of bits per pixel as metadata in the file header of the digital image data and such a data format. The image editing software (for example, Adobe Photoshop) that displays the tag information can analyze the tag information, prompt the monitor profile to be changed to sRGB, or perform the change process automatically. Therefore, it is possible to reduce the difference between different displays and to view digital image data captured by a digital camera in a suitable state on the display.

また、デジタル画像データのファイルヘッダに書き込まれる付加情報としては、上述した機種依存情報以外にも、例えば、カメラ名称やコード番号など、カメラ種別(機種)に直接関係する情報、或いは露出時間、シャッタースピード、絞り値(Fナンバー)、ISO感度、輝度値、被写体距離範囲、光源、ストロボ発光の有無、被写体領域、ホワイトバランス、ズーム倍率、被写体構成、撮影シーンタイプ、ストロボ光源の反射光の量、撮影彩度などの撮影条件設定や、被写体の種類に関する情報などを示すタグ(コード)が用いられており、画像編集ソフトや出力デバイスは、これらの付加情報を読み取り、ハードコピー画像の画質をより好適なものとする機能を備えている。   Further, as additional information written in the file header of digital image data, in addition to the above-mentioned model-dependent information, for example, information directly related to the camera type (model) such as camera name and code number, exposure time, shutter Speed, aperture value (F number), ISO sensitivity, brightness value, subject distance range, light source, presence or absence of strobe light, subject area, white balance, zoom magnification, subject composition, shooting scene type, amount of reflected light from strobe light source, Tags (codes) indicating shooting condition settings such as shooting saturation and information on the type of subject are used, and image editing software and output devices read these additional information to improve the quality of hard copy images. A function to be suitable is provided.

カラー写真フィルムにおいても、上述したような付加情報を付与すべく磁気記録層を付与した製品(APSフィルム)が開発されている。しかしながら当業者の思惑に反し市場での普及は遅く、依然として従来製品が大半を占めているのが現状である。従って、スキャナ読み取り画像に対し付加情報を用いた画像処理は、当面期待することは出来ない。また、カラー写真フィルムは品種毎に特性が異なるため、初期のデジタルミニラボでは、予め夫々の特性に最適な条件を用意していたが、近年では効率化のため殆どの機種で廃止されている。よって品種毎の差異を補正し、さらに付加情報を用いた処理に匹敵する画質改善を、フィルムの濃度情報だけで自動的に行うという、非常に高度な画像処理技術への要望が高まっている。   Also for color photographic films, products (APS films) provided with a magnetic recording layer have been developed to provide additional information as described above. However, contrary to the expectation of those skilled in the art, the spread in the market is slow, and the conventional products still occupy the majority. Therefore, image processing using additional information for the scanner read image cannot be expected for the time being. In addition, since the characteristics of color photographic films differ depending on the type, the initial digital minilabs prepared the optimum conditions for the respective characteristics in advance, but in recent years they have been abolished in most models for efficiency. Therefore, there is an increasing demand for a very advanced image processing technique that corrects the difference for each product type and automatically performs image quality improvement comparable to processing using additional information using only film density information.

中でも、撮影光源の色温度変化を補正するグレー(ホワイト)バランス調整、逆光、或いはストロボ近接撮影時の階調圧縮(階調変換)処理などは、などは、撮影時に補正されるか、或いは補正するための情報が得られることが望ましい項目の1つである。デジタルカメラでは、撮影時にこれらの補正を行うことが可能であるが、カラー写真フィルムでは原理的に不可能であり、また前述の如く付加情報が期待出来ないことから、所望の画質を得る上で非常に大きな障害であり、未だに数多くの経験則に基づくアルゴリズムを強いられている。以下、逆光、或いはストロボ近接撮影時の階調圧縮処理とグレーバランス調整の処理内容と問題点を述べる。   Among them, gray balance adjustment that corrects the color temperature change of the photographic light source, backlighting, or gradation compression (gradation conversion) processing in close-up flash photography, etc. are corrected or corrected during photography. It is one of the items that it is desirable to obtain information for doing so. In digital cameras, these corrections can be made at the time of shooting, but in principle it is impossible with color photographic film, and additional information cannot be expected as described above. It's a huge obstacle, and you're still forced to use a number of heuristic algorithms. The processing contents and problems of gradation compression processing and gray balance adjustment at the time of backlighting or close-up flash photography will be described below.

逆光やストロボ近接撮影時の階調圧縮処理の主たる目的は、人物の顔を適正な明度に再現することである。従って、逆光かストロボ近接撮影かのシーン判別により、顔領域の抽出精度を補償し、結果として顔領域の明度をより好適に再現する方法の提案が求められてきた。   The main purpose of the gradation compression processing at the time of backlighting or close-up flash photography is to reproduce a person's face with appropriate brightness. Accordingly, it has been demanded to propose a method for compensating for the accuracy of extraction of a face area by scene discrimination between backlight and strobe close-up shooting and, as a result, reproducing the brightness of the face area more appropriately.

例えば、特許文献1には、顔領域の抽出精度を向上させるために、撮影時の光源位置や種類の判別を行う方法が記載されている。当該特許文献1には、顔候補領域の抽出方法として、特許文献2に記載の、色相と彩度の2次元ヒストグラムを用いる方法、特許文献3、特許文献4、特許文献5に記載のパターンマッチング、パターン検索方法などが引用されている。また、顔以外の背景領域除去方法としては、上記特許文献3、特許文献4に記載の、直線部分の比率、線対象性、画面外縁との接触率、濃度コントラスト、濃度変化のパターンや周期性を用いて判別する方法が引用されている。逆光、或いはストロボ近接撮影かどうかの判別には、明度の1次元ヒストグラムを用いる方法が記載されている。この方法は逆光シーンの場合、顔領域が暗く、背景領域が明るい、ストロボ近接撮影の場合は逆に、顔領域が明るく、背景領域が暗いという経験則を前提としている。すなわち、抽出された顔候補領域について明度偏倚量を算出し、偏倚量が大きかった場合には、逆光かストロボ近接撮影かのシーン判別を行って、前記経験則に符合する場合のみ顔候補領域の抽出条件の許容幅を調整するというものである。   For example, Patent Document 1 describes a method for determining the position and type of a light source at the time of shooting in order to improve the accuracy of face area extraction. In Patent Document 1, as a method for extracting a face candidate region, a method using a two-dimensional histogram of hue and saturation described in Patent Document 2, and pattern matching described in Patent Document 3, Patent Document 4, and Patent Document 5 , Pattern search method etc. are quoted. Further, as a background area removal method other than the face, the ratio of the straight line portion, the line object property, the contact ratio with the outer edge of the screen, the density contrast, the pattern of the density change, and the periodicity described in Patent Document 3 and Patent Document 4 above. The method of discriminating using is cited. A method of using a one-dimensional histogram of brightness is described for determining whether the backlight or the strobe proximity photography is used. This method presupposes an empirical rule that the face area is dark and the background area is bright in the case of a backlight scene, and the face area is bright and the background area is dark in the case of close-up flash photography. That is, the brightness deviation amount is calculated for the extracted face candidate area, and when the deviation amount is large, scene discrimination of backlighting or close-up flash photography is performed, and only when the empirical rule is met, the face candidate area The allowable range of extraction conditions is adjusted.

顔領域かどうか疑わしい程の逆光やストロボ近接撮影でなくとも、主要被写体である顔領域を適正な明度にしたいという欲求は当然ながら存在し、これまでも数多く提案がなされてきた。例えば、特許文献6には、色相と彩度が近く、かつ隣接している画素をグループ化し、各グループの単純平均と画素数からプリント濃度を算出する方法が記載されている。この方法は、プリント全体の濃度を調整し、主要被写体以外の被写体による影響を抑制するものであり、階調圧縮処理や、顔領域に限定した重み付けは行っていない。   Naturally, there is a desire to make the face area, which is the main subject, appropriate brightness, even if it is not backlit or strobe close-up so that the face area is doubtful, and many proposals have been made so far. For example, Patent Document 6 describes a method of grouping adjacent pixels that are close in hue and saturation and calculating the print density from the simple average and the number of pixels of each group. This method adjusts the density of the entire print to suppress the influence of subjects other than the main subject, and does not perform gradation compression processing or weighting limited to the face area.

階調圧縮処理は、顔などの特定の被写体が分布している領域の平均明度を算出し、算出した平均明度を所望の値に変換するための階調変換曲線を定義する工程と、定義した階調変換曲線を画像データへ適用する工程とから構成される。前記平均明度を算出する際、顔領域の明るさを重視する割合(顔領域の寄与率)を撮影シーンに合わせて調整することが望まれるが、逆光かストロボ近接撮影かを判別する程度では、寄与率の調整はかなり限定される。   The gradation compression processing is defined as a step of calculating an average brightness of an area where a specific subject such as a face is distributed, and defining a gradation conversion curve for converting the calculated average brightness to a desired value. And a step of applying a gradation conversion curve to image data. When calculating the average brightness, it is desirable to adjust the proportion of the brightness of the face area (the contribution ratio of the face area) according to the shooting scene, but to the extent that it is determined whether the backlight or the flash close-up shooting, The contribution rate adjustment is quite limited.

グレーバランス調整についても、その精度を向上させるべく、様々な提案がなされている。例えば、特許文献6に、低彩度画素を抽出し、BGR濃度座標上で等価中性濃度に一次線形近似する方法が記載されている。また、カラーフェリアと呼ばれる色濃度偏倚を抑制するために、BG相関にはRC色相分布を、RG相関にはBY色相分布画素を、上述の低彩度画素として抽出する方法が記載されている。さらにハイライト点とシャドー点を算出し、両者を結んだ直線から一定の彩度以下の点を低彩度画素として抽出している。この場合、ハイライト点やシャドー点が低彩度であるという経験則が前提となるが、芝生や空の占める面積の大きな撮影シーンや、ストロボ近接撮影シーンでの肌の高明度化、暗闇に浮かぶテールライト、水族館の水槽など、経験則に符合しない例が数多く存在する。結果として、これらの撮影シーンでは、カラーフェリアと呼ばれる色濃度偏倚が生じる。対策として、1駒毎にグレーバランス調整条件を算出するのではなく、複数の撮影駒が持つ情報を用いる方法が提案されている。例えば、特許文献7には、全撮影駒から低彩度画素を抽出し、各駒の低彩度画素の抽出数が少ないときは、全撮影駒からのグレーバランス調整条件と1駒からの条件とを重み付ける方法が提案されている。この他、特許文献8では、正常シーンと異常シーンの判別処理を行う方法なども提案されているが、何れも情報量の追加や選別による対処が主となっている。
特開2000−148980号公報 特開平6−67320号公報 特開平8−122944号公報 特開平8−184925号公報 特開平9−138471号公報 特開平9−191474号公報 特開平11−317880号公報 特開2001−257896号公報
Various proposals have also been made to improve the accuracy of gray balance adjustment. For example, Patent Document 6 describes a method of extracting low-saturation pixels and linearly approximating the equivalent neutral density on the BGR density coordinates. In order to suppress color density deviation called color feria, a method is described in which an RC hue distribution is extracted for the BG correlation and a BY hue distribution pixel is extracted for the RG correlation as the low-saturation pixels. Further, the highlight point and the shadow point are calculated, and points below a certain saturation are extracted as low saturation pixels from the straight line connecting the two. In this case, the rule of thumb is that the highlight and shadow points are low in saturation, but the scenes with large areas occupied by the lawn and the sky, and the high brightness of the skin in the flash close-up scene, the darkness There are many examples that do not fit the rule of thumb, such as floating taillights and aquarium tanks. As a result, in these shooting scenes, a color density deviation called color feria occurs. As a countermeasure, there has been proposed a method of using information held by a plurality of photographing frames instead of calculating gray balance adjustment conditions for each frame. For example, in Patent Document 7, when low-saturation pixels are extracted from all shooting frames and the number of low-saturation pixels extracted from each frame is small, gray balance adjustment conditions from all shooting frames, conditions from one frame, A method of weighting is proposed. In addition, Patent Document 8 proposes a method for performing a discrimination process between a normal scene and an abnormal scene. However, any of these methods mainly deals with addition or selection of information amount.
JP 2000-148980 A JP-A-6-67320 JP-A-8-122944 JP-A-8-184925 JP-A-9-138471 JP-A-9-191474 Japanese Patent Laid-Open No. 11-317880 JP 2001-257896 A

逆光、或いはストロボ近接撮影時の階調圧縮処理についての課題は、いかに顔領域の抽出精度を補償し、結果として顔領域の明度補正の精度を向上させるかである。上記の如く、明度の1次元ヒストグラムを用いる方法は、精度補償を主眼に置いた場合には、ある程度の効果をもたらすものと思われる。しかしながら、逆光やストロボ近接撮影といった明確な定義に符合するかではなく、撮影シーンの状態をより正確に把握したいという要求に対しては、未だ不充分であると言わざるを得ない。更に、逆光、或いはストロボ近接撮影時の階調圧縮処理自体に関しても、逆光やストロボ近接撮影の程度に応じた補正が望まれることは言うまでもない。   The problem with the gradation compression processing at the time of backlighting or close-up flash photography is how to compensate for the extraction accuracy of the face area and consequently improve the accuracy of brightness correction of the face area. As described above, the method using a one-dimensional histogram of brightness is considered to bring about a certain effect when accuracy compensation is the main focus. However, it must be said that it is still inadequate for the request to grasp the state of the shooting scene more accurately, rather than meeting a clear definition such as backlighting or close-up flash photography. Furthermore, it goes without saying that correction according to the degree of backlighting or close-up flash photography is desired for the backlight compression or gradation compression processing itself during close-up flash photography.

また、グレーバランス調整方法における課題は、1駒から抽出される低彩度画素が極端に少ない、或いはハイライト側やシャドー側が低彩度でないなどの、特殊な配色傾向をもった撮影シーンへの対処方法の提案であるといえる。よって、撮影シーンの配色傾向を判別し、判別結果に基づき、撮影シーン毎に最適なグレーバランス調整条件を算出するようにすれば、更なる精度向上の余地は充分に残されていると思われる。デジタルカメラにより撮影された画像データに対するホワイトバランス調整方法に関しても、数多くの提案がなされているが、何れも低彩度画素を抽出する闘値設定、或いはグレーバランス調整自体の適用率と、撮影シーンの配色傾向との関係については明記されていない。また前記撮影シーンの配色傾向を、2次元以上のヒストグラムを用いて解析する方法についても知られていない。   Also, the problem with the gray balance adjustment method is that there are extremely few low-saturation pixels extracted from one frame, or shooting scenes with special color schemes such as highlights and shadows that are not low-saturation. It can be said that this is a proposal for a coping method. Therefore, if the coloration tendency of the shooting scene is discriminated and the optimum gray balance adjustment condition is calculated for each shooting scene based on the discrimination result, there seems to be enough room for further accuracy improvement. . Many proposals have also been made regarding white balance adjustment methods for image data taken by a digital camera. However, all of them have proposed a threshold setting for extracting low-saturation pixels, or the application rate of gray balance adjustment itself, and the shooting scene. The relationship with the coloration tendency is not specified. Also, there is no known method for analyzing the coloration tendency of the photographic scene using a two-dimensional or higher histogram.

本発明の課題は、上記事象に鑑み、高精度な階調圧縮処理を施すことのできる新規な画像処理方法、並びにこれを用いた画像処理装置、画像記録装置を提供することである。更に、高精度な階調圧縮処理及びグレーバランス調整を施すことのできる新規な画像処理方法、並びにこれを用いた画像処理装置、画像記録装置を提供することである。   In view of the above-described phenomenon, an object of the present invention is to provide a novel image processing method capable of performing gradation compression processing with high accuracy, an image processing apparatus using the same, and an image recording apparatus. It is another object of the present invention to provide a novel image processing method capable of performing highly accurate gradation compression processing and gray balance adjustment, and an image processing apparatus and an image recording apparatus using the same.

上記課題を解決するため、請求項1に記載の発明は、
撮像画像データを入力し、出力媒体上での鑑賞に最適化された画像データを出力する画像処理方法において、
前記撮像画像データの画素毎の色相値、彩度値及び明度値を得る工程と、
前記撮像画像データを所定の色相及び彩度の組み合わせからなる領域に分割する工程と、
前記撮像画像データ全体における前記分割された所定の色相及び彩度の組み合わせからなる領域の明度偏倚量を算出する工程と、
前記算出された明度偏倚量に基づいて、階調変換処理条件を決定する工程と、
前記決定された階調変換処理条件に基づいて、前記撮像画像データに階調変換処理を施す工程と、
を含むことを特徴としている。
In order to solve the above-mentioned problem, the invention described in claim 1
In an image processing method for inputting captured image data and outputting image data optimized for viewing on an output medium,
Obtaining a hue value, a saturation value, and a brightness value for each pixel of the captured image data;
Dividing the captured image data into regions composed of combinations of predetermined hue and saturation;
Calculating a lightness deviation amount of an area composed of a combination of the predetermined hue and saturation divided in the entire captured image data;
Determining a gradation conversion processing condition based on the calculated brightness deviation amount;
Applying gradation conversion processing to the captured image data based on the determined gradation conversion processing conditions;
It is characterized by including.

請求項2に記載の発明は、
撮像画像データを入力し、出力媒体上での鑑賞に最適化された画像データを出力する画像処理方法において、
前記撮像画像データの画素毎の色相値、彩度値及び明度値を得る工程と、
前記撮像画像データを所定の色相及び彩度の組み合わせからなる領域に分割する工程と、
前記分割された所定の色相及び彩度の組み合わせからなる領域の画素が前記撮像画像データの画面全体に占める割合を示す占有率を算出する工程と、
前記算出された占有率に基づいて、前記分割された所定の色相及び彩度の組み合わせからなる領域の階調変換処理への寄与率を算出する工程と、
前記算出された寄与率に基づいて、階調変換処理条件を決定する階調変換処理条件決定手段と、
前記決定された階調変換処理条件に基づいて、前記撮像画像データに階調変換処理を施す工程と、
を含むことを特徴としている。
The invention described in claim 2
In an image processing method for inputting captured image data and outputting image data optimized for viewing on an output medium,
Obtaining a hue value, a saturation value, and a brightness value for each pixel of the captured image data;
Dividing the captured image data into regions composed of combinations of predetermined hue and saturation;
Calculating an occupancy ratio indicating a ratio of pixels of the divided predetermined hue and saturation combination to the entire screen of the captured image data; and
Based on the calculated occupancy rate, calculating a contribution rate to the gradation conversion processing of the region composed of a combination of the predetermined hue and saturation,
Gradation conversion processing condition determining means for determining gradation conversion processing conditions based on the calculated contribution rate;
Applying gradation conversion processing to the captured image data based on the determined gradation conversion processing conditions;
It is characterized by including.

請求項3に記載の発明は、

撮像画像データを入力し、出力媒体上での鑑賞に最適化された画像データを出力する画像処理方法において、
前記撮像画像データの画素毎の色相値、彩度値及び明度値を得る工程と、
前記撮像画像データを所定の色相及び彩度の組み合わせからなる領域に分割する工程と、
前記撮像画像データ全体における前記分割された所定の色相及び彩度の組み合わせからなる領域の明度偏倚量を算出する工程と、
前記分割された所定の色相及び彩度の組み合わせからなる領域の画素が前記撮像画像データの画面全体に占める割合を示す占有率を算出する工程と、
前記算出された占有率に基づいて、前記分割された所定の色相及び彩度の組み合わせからなる領域の階調変換処理への寄与率を算出する工程と、
前記算出された明度偏倚量及び寄与率に基づいて、階調変換処理条件を決定する工程と、
前記決定された階調変換処理条件に基づいて、前記撮像画像データに階調変換処理を施す工程と、
を含むことを特徴としている。
The invention according to claim 3

In an image processing method for inputting captured image data and outputting image data optimized for viewing on an output medium,
Obtaining a hue value, a saturation value, and a brightness value for each pixel of the captured image data;
Dividing the captured image data into regions composed of combinations of predetermined hue and saturation;
Calculating a lightness deviation amount of an area composed of a combination of the predetermined hue and saturation divided in the entire captured image data;
Calculating an occupancy ratio indicating a ratio of pixels of the divided predetermined hue and saturation combination to the entire screen of the captured image data; and
Based on the calculated occupancy rate, calculating a contribution rate to the gradation conversion processing of the region composed of a combination of the predetermined hue and saturation,
Determining a gradation conversion processing condition based on the calculated brightness deviation amount and contribution rate;
Applying gradation conversion processing to the captured image data based on the determined gradation conversion processing conditions;
It is characterized by including.

請求項4に記載の発明は、
撮像画像データを入力し、出力媒体上での鑑賞に最適化された画像データを出力する画像処理方法において、
前記撮像画像データの画素毎の色相値、彩度値及び明度値を得る工程と、
前記撮像画像データを所定の色相及び彩度の組み合わせからなる領域に分割する工程と、
前記撮像画像データ全体における前記分割された所定の色相及び彩度の組み合わせからなる領域の明度偏倚量を算出する工程と、
前記算出された明度偏倚量に基づいて、階調変換処理条件を決定する工程と、
前記決定された階調変換処理条件に基づいて、前記撮像画像データに階調変換処理を施す工程と、
前記撮像画像データを所定の色相領域に分割する工程と、
前記分割された色相領域毎の画素が前記撮像画像データの画面全体に占める割合を示す占有率を算出する工程と、
前記算出された色相領域毎の占有率に応じて、前記色相領域毎に低彩度闘値を算出する工程と、
前記算出された低彩度闘値に基づいて、グレーバランス調整に用いる低彩度画素を抽出する工程と、
前記抽出された低彩度画素を用いてグレーバランス調整条件を算出する工程と、
前記算出されたグレーバランス調整条件に基づいて、前記撮像画像データにグレーバランス調整を施す工程と、
を含むことを特徴としている。
The invention according to claim 4
In an image processing method for inputting captured image data and outputting image data optimized for viewing on an output medium,
Obtaining a hue value, a saturation value, and a brightness value for each pixel of the captured image data;
Dividing the captured image data into regions composed of combinations of predetermined hue and saturation;
Calculating a lightness deviation amount of an area composed of a combination of the predetermined hue and saturation divided in the entire captured image data;
Determining a gradation conversion processing condition based on the calculated brightness deviation amount;
Applying gradation conversion processing to the captured image data based on the determined gradation conversion processing conditions;
Dividing the captured image data into predetermined hue regions;
Calculating an occupancy ratio indicating a ratio of pixels for each of the divided hue regions to the entire screen of the captured image data;
Calculating a low saturation threshold value for each hue area according to the calculated occupancy ratio for each hue area;
Extracting low saturation pixels used for gray balance adjustment based on the calculated low saturation threshold;
Calculating a gray balance adjustment condition using the extracted low saturation pixel;
Applying gray balance adjustment to the captured image data based on the calculated gray balance adjustment condition;
It is characterized by including.

請求項5に記載の発明は、
撮像画像データを入力し、出力媒体上での鑑賞に最適化された画像データを出力する画像処理方法において、
前記撮像画像データの画素毎の色相値、彩度値及び明度値を得る工程と、
前記撮像画像データを所定の色相及び彩度の組み合わせからなる領域に分割する工程と、
前記分割された所定の色相及び彩度の組み合わせからなる領域の画素が前記撮像画像データの画面全体に占める割合を示す占有率を算出する工程と、
前記算出された占有率に基づいて、前記分割された所定の色相及び彩度の組み合わせからなる領域の階調変換処理への寄与率を算出する工程と、
前記算出された寄与率に基づいて、階調変換処理条件を決定する階調変換処理条件決定手段と、
前記決定された階調変換処理条件に基づいて、前記撮像画像データに階調変換処理を施す工程と、
前記撮像画像データを所定の色相領域に分割する工程と、
前記分割された色相領域毎の画素が前記撮像画像データの画面全体に占める割合を示す占有率を算出する工程と、
前記算出された色相領域毎の占有率に応じて、前記色相領域毎に低彩度闘値を算出する工程と、
前記算出された低彩度闘値に基づいて、グレーバランス調整に用いる低彩度画素を抽出する工程と、
前記抽出された低彩度画素を用いてグレーバランス調整条件を算出する工程と、
前記算出されたグレーバランス調整条件に基づいて、前記撮像画像データにグレーバランス調整を施す工程と、
を含むことを特徴としている。
The invention described in claim 5
In an image processing method for inputting captured image data and outputting image data optimized for viewing on an output medium,
Obtaining a hue value, a saturation value, and a brightness value for each pixel of the captured image data;
Dividing the captured image data into regions composed of combinations of predetermined hue and saturation;
Calculating an occupancy ratio indicating a ratio of pixels of the divided predetermined hue and saturation combination to the entire screen of the captured image data; and
Based on the calculated occupancy rate, calculating a contribution rate to the gradation conversion processing of the region composed of a combination of the predetermined hue and saturation,
Gradation conversion processing condition determining means for determining gradation conversion processing conditions based on the calculated contribution rate;
Applying gradation conversion processing to the captured image data based on the determined gradation conversion processing conditions;
Dividing the captured image data into predetermined hue regions;
Calculating an occupancy ratio indicating a ratio of pixels for each of the divided hue regions to the entire screen of the captured image data;
Calculating a low saturation threshold value for each hue area according to the calculated occupancy ratio for each hue area;
Extracting low saturation pixels used for gray balance adjustment based on the calculated low saturation threshold;
Calculating a gray balance adjustment condition using the extracted low saturation pixel;
Applying gray balance adjustment to the captured image data based on the calculated gray balance adjustment condition;
It is characterized by including.

請求項6に記載の発明は、
撮像画像データを入力し、出力媒体上での鑑賞に最適化された画像データを出力する画像処理方法において、
前記撮像画像データの画素毎の色相値、彩度値及び明度値を得る工程と、
前記撮像画像データを所定の色相及び彩度の組み合わせからなる領域に分割する工程と、
前記撮像画像データ全体における前記分割された所定の色相及び彩度の組み合わせからなる領域の明度偏倚量を算出する工程と、
前記分割された所定の色相及び彩度の組み合わせからなる領域の画素が前記撮像画像データの画面全体に占める割合を示す占有率を算出する工程と、
前記算出された占有率に基づいて、前記分割された所定の色相及び彩度の組み合わせからなる領域の階調変換処理への寄与率を算出する工程と、
前記算出された明度偏倚量及び寄与率に基づいて、階調変換処理条件を決定する工程と、
前記決定された階調変換処理条件に基づいて、前記撮像画像データに階調変換処理を施す工程と、
前記撮像画像データを所定の色相領域に分割する工程と、
前記分割された色相領域毎の画素が前記撮像画像データの画面全体に占める割合を示す占有率を算出する工程と、
前記算出された色相領域毎の占有率に応じて、前記色相領域毎に低彩度闘値を算出する工程と、
前記算出された低彩度闘値に基づいて、グレーバランス調整に用いる低彩度画素を抽出する工程と、
前記抽出された低彩度画素を用いてグレーバランス調整条件を算出する工程と、
前記算出されたグレーバランス調整条件に基づいて、前記撮像画像データにグレーバランス調整を施す工程と、
を含むことを特徴としている。
The invention described in claim 6
In an image processing method for inputting captured image data and outputting image data optimized for viewing on an output medium,
Obtaining a hue value, a saturation value, and a brightness value for each pixel of the captured image data;
Dividing the captured image data into regions composed of combinations of predetermined hue and saturation;
Calculating a lightness deviation amount of an area composed of a combination of the predetermined hue and saturation divided in the entire captured image data;
Calculating an occupancy ratio indicating a ratio of pixels of the divided predetermined hue and saturation combination to the entire screen of the captured image data; and
Based on the calculated occupancy rate, calculating a contribution rate to the gradation conversion processing of the region composed of a combination of the predetermined hue and saturation,
Determining a gradation conversion processing condition based on the calculated brightness deviation amount and contribution rate;
Applying gradation conversion processing to the captured image data based on the determined gradation conversion processing conditions;
Dividing the captured image data into predetermined hue regions;
Calculating an occupancy ratio indicating a ratio of pixels for each of the divided hue regions to the entire screen of the captured image data;
Calculating a low saturation threshold value for each hue area according to the calculated occupancy ratio for each hue area;
Extracting low saturation pixels used for gray balance adjustment based on the calculated low saturation threshold;
Calculating a gray balance adjustment condition using the extracted low saturation pixel;
Applying gray balance adjustment to the captured image data based on the calculated gray balance adjustment condition;
It is characterized by including.

請求項7に記載の発明は、請求項1〜3の何れか一項に記載の発明において、
前記取得された色相値及び彩度値の2次元ヒストグラムを作成する工程を含み、
前記撮像画像データを所定の色相及び彩度の組み合わせからなる領域に分割する工程は、前記作成された2次元ヒストグラムに基づいて、前記撮像画像データを所定の色相及び彩度の組み合わせからなる領域に分割することを特徴としている。
The invention according to claim 7 is the invention according to any one of claims 1 to 3,
Creating a two-dimensional histogram of the acquired hue and saturation values;
The step of dividing the captured image data into a region composed of a predetermined hue and saturation combination is based on the created two-dimensional histogram, and the captured image data is divided into a region composed of a predetermined hue and saturation combination. It is characterized by dividing.

請求項8に記載の発明は、請求項4〜6の何れか一項に記載の発明において、
前記取得された色相値及び彩度値の2次元ヒストグラムを作成する工程を含み、
前記撮像画像データを所定の色相及び彩度の組み合わせからなる領域に分割する工程は、前記作成された2次元ヒストグラムに基づいて、前記撮像画像データを所定の色相及び彩度の組み合わせからなる領域に分割し、
前記撮像画像データを所定の色相領域に分割する工程は、前記作成された2次元ヒストグラムに基づいて、前記撮像画像データを所定の色相領域に分割することを特徴としている。
The invention according to claim 8 is the invention according to any one of claims 4 to 6,
Creating a two-dimensional histogram of the acquired hue and saturation values;
The step of dividing the captured image data into regions composed of a predetermined hue and saturation combination is based on the created two-dimensional histogram, and the captured image data is divided into regions composed of a predetermined hue and saturation combination. Split and
The step of dividing the captured image data into predetermined hue regions is characterized in that the captured image data is divided into predetermined hue regions based on the created two-dimensional histogram.

請求項9に記載の発明は、請求項1〜3、7の何れか一項に記載の発明において、
前記撮像画像データを所定の色相及び彩度の組み合わせからなる領域に分割する工程は、前記撮像画像データを、少なくともHSV表色系の色相値で0〜69、彩度値で0〜128からなる肌色領域に分割することを特徴としている。
The invention according to claim 9 is the invention according to any one of claims 1 to 3 and 7,
The step of dividing the captured image data into regions composed of a predetermined combination of hue and saturation comprises at least 0 to 69 in the HSV color system and 0 to 128 in the saturation value. It is characterized by dividing the skin color area.

請求項10に記載の発明は、請求項4〜6、8の何れか一項に記載の発明において、
前記撮像画像データを所定の色相及び彩度の組み合わせからなる領域に分割する工程は、前記撮像画像データを、少なくともHSV表色系の色相値で0〜69、彩度値で0〜128からなる肌色領域に分割し、
前記撮像画像データを所定の色相領域に分割する工程は、前記撮像画像データを、HSV表色系の色相値で0〜69の肌色相領域、70〜184の緑色相領域、185〜224の空色相領域、225〜360の赤色相領域に分割することを特徴としている。
The invention according to claim 10 is the invention according to any one of claims 4 to 6 and 8,
The step of dividing the captured image data into regions composed of a predetermined combination of hue and saturation comprises at least 0 to 69 in the HSV color system and 0 to 128 in the saturation value. Divide into flesh-colored areas,
The step of dividing the captured image data into a predetermined hue area includes dividing the captured image data into a skin hue area of 0 to 69, a green hue area of 70 to 184, and an empty area of 185 to 224 in the hue value of the HSV color system. The hue area is divided into 225 to 360 red hue areas.

請求項11に記載の発明は、請求項1〜10の何れか一項に記載の発明において、
前記階調処理条件の決定は、階調変換曲線を作成するか或いは予め設定された複数の階調変換曲線の中から選択することにより階調変換曲線を調整することにより行うことを特徴としている。
The invention according to claim 11 is the invention according to any one of claims 1 to 10,
The determination of the gradation processing condition is performed by creating a gradation conversion curve or by adjusting the gradation conversion curve by selecting from a plurality of preset gradation conversion curves. .

請求項12に記載の発明は、請求項1〜11の何れか一項に記載の発明において、
前記撮像画像データは、シーン参照画像データであることを特徴としている。
The invention according to claim 12 is the invention according to any one of claims 1 to 11,
The captured image data is scene reference image data.

請求項13に記載の発明は、請求項1〜12の何れか一項に記載の発明において、
前記出力媒体上での鑑賞に最適化された画像データは、鑑賞画像参照データであることを特徴としている。
Invention of Claim 13 in the invention as described in any one of Claims 1-12,
The image data optimized for viewing on the output medium is viewing image reference data.

請求項14に記載の発明は、
撮像画像データを入力し、出力媒体上での鑑賞に最適化された画像データを出力する画像処理装置において、
前記撮像画像データの画素毎の色相値、彩度値及び明度値を得るデータ取得手段と、
前記撮像画像データを所定の色相及び彩度の組み合わせからなる領域に分割するHS分割手段と、
前記撮像画像データ全体における前記分割された所定の色相及び彩度の組み合わせからなる領域の明度偏倚量を算出する明度偏倚量算出手段と、
前記算出された明度偏倚量に基づいて、階調変換処理条件を決定する階調変換処理条件決定手段と、
前記決定された階調変換処理条件に基づいて、前記撮像画像データに階調変換処理を施す階調変換処理手段と、
を備えたことを特徴としている。
The invention according to claim 14
In an image processing apparatus for inputting captured image data and outputting image data optimized for viewing on an output medium,
Data acquisition means for obtaining a hue value, a saturation value and a brightness value for each pixel of the captured image data;
HS dividing means for dividing the captured image data into regions composed of combinations of predetermined hue and saturation;
A lightness deviation amount calculating means for calculating a lightness deviation amount of an area composed of a combination of the predetermined hue and saturation divided in the entire captured image data;
Gradation conversion processing condition determining means for determining gradation conversion processing conditions based on the calculated brightness deviation amount;
Gradation conversion processing means for performing gradation conversion processing on the captured image data based on the determined gradation conversion processing conditions;
It is characterized by having.

請求項15に記載の発明は、
撮像画像データを入力し、出力媒体上での鑑賞に最適化された画像データを出力する画像処理装置において、
前記撮像画像データの画素毎の色相値、彩度値及び明度値を得るデータ取得手段と、
前記撮像画像データを所定の色相及び彩度の組み合わせからなる領域に分割するHS分割手段と、
前記分割された所定の色相及び彩度の組み合わせからなる領域の画素が前記撮像画像データの画面全体に占める割合を示す占有率を算出するHS占有率算出手段と、
前記算出された占有率に基づいて、前記分割された所定の色相及び彩度の組み合わせからなる領域の階調変換処理への寄与率を算出する寄与率算出手段と、
前記算出された寄与率に基づいて、階調変換処理条件を決定する階調変換処理条件決定手段と、
前記決定された階調変換処理条件に基づいて、前記撮像画像データに階調変換処理を施す階調変換処理手段と、
を備えたことを特徴としている。
The invention according to claim 15 is:
In an image processing apparatus for inputting captured image data and outputting image data optimized for viewing on an output medium,
Data acquisition means for obtaining a hue value, a saturation value and a brightness value for each pixel of the captured image data;
HS dividing means for dividing the captured image data into regions composed of combinations of predetermined hue and saturation;
HS occupancy ratio calculating means for calculating an occupancy ratio indicating the ratio of pixels of the divided predetermined hue and saturation combination to the entire screen of the captured image data;
Based on the calculated occupancy rate, contribution rate calculating means for calculating a contribution rate to the gradation conversion processing of the region composed of a combination of the predetermined hue and saturation divided,
Gradation conversion processing condition determining means for determining gradation conversion processing conditions based on the calculated contribution rate;
Gradation conversion processing means for performing gradation conversion processing on the captured image data based on the determined gradation conversion processing conditions;
It is characterized by having.

請求項16に記載の発明は、
撮像画像データを入力し、出力媒体上での鑑賞に最適化された画像データを出力する画像処理装置において、
前記撮像画像データの画素毎の色相値、彩度値及び明度値を得るデータ取得手段と、
前記撮像画像データを所定の色相及び彩度の組み合わせからなる領域に分割するHS分割手段と、
前記撮像画像データ全体における前記分割された所定の色相及び彩度の組み合わせからなる領域の明度偏倚量を算出する明度偏倚量算出手段と、
前記分割された所定の色相及び彩度の組み合わせからなる領域の画素が前記撮像画像データの画面全体に占める割合を示す占有率を算出するHS占有率算出手段と、
前記算出された占有率に基づいて、前記分割された所定の色相及び彩度の組み合わせからなる領域の階調変換処理への寄与率を算出する寄与率算出手段と、
前記算出された明度偏倚量及び寄与率に基づいて、階調変換処理条件を決定する階調変換処理条件決定手段と、
前記決定された階調変換処理条件に基づいて、前記撮像画像データに階調変換処理を施す階調変換処理手段と、
を備えたことを特徴としている。
The invention described in claim 16
In an image processing apparatus for inputting captured image data and outputting image data optimized for viewing on an output medium,
Data acquisition means for obtaining a hue value, a saturation value and a brightness value for each pixel of the captured image data;
HS dividing means for dividing the captured image data into regions composed of combinations of predetermined hue and saturation;
A lightness deviation amount calculating means for calculating a lightness deviation amount of an area composed of a combination of the predetermined hue and saturation divided in the entire captured image data;
HS occupancy ratio calculating means for calculating an occupancy ratio indicating the ratio of pixels of the divided predetermined hue and saturation combination to the entire screen of the captured image data;
Based on the calculated occupancy rate, contribution rate calculating means for calculating a contribution rate to the gradation conversion processing of the region composed of a combination of the predetermined hue and saturation divided,
Gradation conversion processing condition determining means for determining gradation conversion processing conditions based on the calculated brightness deviation amount and contribution rate;
Gradation conversion processing means for performing gradation conversion processing on the captured image data based on the determined gradation conversion processing conditions;
It is characterized by having.

請求項17に記載の発明は、
撮像画像データを入力し、出力媒体上での鑑賞に最適化された画像データを出力する画像処理装置において、
前記撮像画像データの画素毎の色相値、彩度値及び明度値を得るデータ取得手段と、
前記撮像画像データを所定の色相及び彩度の組み合わせからなる領域に分割するHS分割手段と、
前記撮像画像データ全体における前記分割された所定の色相及び彩度の組み合わせからなる領域の明度偏倚量を算出する明度偏倚量算出手段と、
前記算出された明度偏倚量に基づいて、階調変換処理条件を決定する階調変換処理条件決定手段と、
前記決定された階調変換処理条件に基づいて、前記撮像画像データに階調変換処理を施す階調変換処理手段と、
前記撮像画像データを所定の色相領域に分割する色相領域分割手段と、
前記分割された色相領域毎の画素が前記撮像画像データの画面全体に占める割合を示す占有率を算出する色相領域占有率算出手段と、
前記算出された色相領域毎の占有率に応じて、前記色相領域毎に低彩度闘値を算出する低彩度閾値算出手段と、
前記算出された低彩度闘値に基づいて、グレーバランス調整に用いる低彩度画素を抽出する低彩度画素抽出手段と、
前記抽出された低彩度画素を用いてグレーバランス調整条件を算出するグレーバランス調整条件算出手段と、
前記算出されたグレーバランス調整条件に基づいて、前記撮像画像データにグレーバランス調整を施すグレーバランス調整手段と、
を備えたことを特徴としている。
The invention described in claim 17
In an image processing apparatus for inputting captured image data and outputting image data optimized for viewing on an output medium,
Data acquisition means for obtaining a hue value, a saturation value and a brightness value for each pixel of the captured image data;
HS dividing means for dividing the captured image data into regions composed of combinations of predetermined hue and saturation;
A lightness deviation amount calculating means for calculating a lightness deviation amount of an area composed of a combination of the predetermined hue and saturation divided in the entire captured image data;
Gradation conversion processing condition determining means for determining gradation conversion processing conditions based on the calculated brightness deviation amount;
Gradation conversion processing means for performing gradation conversion processing on the captured image data based on the determined gradation conversion processing conditions;
Hue area dividing means for dividing the captured image data into predetermined hue areas;
A hue area occupancy ratio calculating unit that calculates an occupancy ratio indicating a ratio of pixels for each of the divided hue areas to the entire screen of the captured image data;
Low saturation threshold value calculating means for calculating a low saturation threshold value for each hue region according to the calculated occupancy ratio for each hue region;
Low saturation pixel extraction means for extracting low saturation pixels used for gray balance adjustment based on the calculated low saturation threshold;
A gray balance adjustment condition calculating means for calculating a gray balance adjustment condition using the extracted low saturation pixel;
Based on the calculated gray balance adjustment conditions, gray balance adjustment means for performing gray balance adjustment on the captured image data;
It is characterized by having.

請求項18に記載の発明は、
撮像画像データを入力し、出力媒体上での鑑賞に最適化された画像データを出力する画像処理装置において、
前記撮像画像データの画素毎の色相値、彩度値及び明度値を得るデータ取得手段と、
前記撮像画像データを所定の色相及び彩度の組み合わせからなる領域に分割するHS分割手段と、
前記分割された所定の色相及び彩度の組み合わせからなる領域の画素が前記撮像画像データの画面全体に占める割合を示す占有率を算出するHS占有率算出手段と、
前記算出された占有率に基づいて、前記分割された所定の色相及び彩度の組み合わせからなる領域の階調変換処理への寄与率を算出する寄与率算出手段と、
前記算出された寄与率に基づいて、階調変換処理条件を決定する階調変換処理条件決定手段と、
前記決定された階調変換処理条件に基づいて、前記撮像画像データに階調変換処理を施す階調変換処理手段と、
前記撮像画像データを所定の色相領域に分割する色相領域分割手段と、
前記分割された色相領域毎の画素が前記撮像画像データの画面全体に占める割合を示す占有率を算出する色相領域占有率算出手段と、
前記算出された色相領域毎の占有率に応じて、前記色相領域毎に低彩度闘値を算出する低彩度閾値算出手段と、
前記算出された低彩度闘値に基づいて、グレーバランス調整に用いる低彩度画素を抽出する低彩度画素抽出手段と、
前記抽出された低彩度画素を用いてグレーバランス調整条件を算出するグレーバランス調整条件算出手段と、
前記算出されたグレーバランス調整条件に基づいて、前記撮像画像データにグレーバランス調整を施すグレーバランス調整手段と、
を備えたことを特徴としている。
The invention described in claim 18
In an image processing apparatus for inputting captured image data and outputting image data optimized for viewing on an output medium,
Data acquisition means for obtaining a hue value, a saturation value and a brightness value for each pixel of the captured image data;
HS dividing means for dividing the captured image data into regions composed of combinations of predetermined hue and saturation;
HS occupancy ratio calculating means for calculating an occupancy ratio indicating the ratio of pixels of the divided predetermined hue and saturation combination to the entire screen of the captured image data;
Based on the calculated occupancy rate, contribution rate calculating means for calculating a contribution rate to the gradation conversion processing of the region composed of a combination of the predetermined hue and saturation divided,
Gradation conversion processing condition determining means for determining gradation conversion processing conditions based on the calculated contribution rate;
Gradation conversion processing means for performing gradation conversion processing on the captured image data based on the determined gradation conversion processing conditions;
Hue area dividing means for dividing the captured image data into predetermined hue areas;
A hue area occupancy ratio calculating unit that calculates an occupancy ratio indicating a ratio of pixels for each of the divided hue areas to the entire screen of the captured image data;
Low saturation threshold value calculating means for calculating a low saturation threshold value for each hue region according to the calculated occupancy ratio for each hue region;
Low saturation pixel extraction means for extracting low saturation pixels used for gray balance adjustment based on the calculated low saturation threshold;
A gray balance adjustment condition calculating means for calculating a gray balance adjustment condition using the extracted low saturation pixel;
Based on the calculated gray balance adjustment conditions, gray balance adjustment means for performing gray balance adjustment on the captured image data;
It is characterized by having.

請求項19に記載の発明は、
撮像画像データを入力し、出力媒体上での鑑賞に最適化された画像データを出力する画像処理装置において、
前記撮像画像データの画素毎の色相値、彩度値及び明度値を得るデータ取得手段と、
前記撮像画像データを所定の色相及び彩度の組み合わせからなる領域に分割するHS分割手段と、
前記撮像画像データ全体における前記分割された所定の色相及び彩度の組み合わせからなる領域の明度偏倚量を算出する明度偏倚量算出手段と、
前記分割された所定の色相及び彩度の組み合わせからなる領域の画素が前記撮像画像データの画面全体に占める割合を示す占有率を算出するHS占有率算出手段と、
前記算出された占有率に基づいて、前記分割された所定の色相及び彩度の組み合わせからなる領域の階調変換処理への寄与率を算出する寄与率算出手段と、
前記算出された明度偏倚量及び寄与率に基づいて、階調変換処理条件を決定する階調変換処理条件決定手段と、
前記決定された階調変換処理条件に基づいて、前記撮像画像データに階調変換処理を施す階調変換処理手段と、
前記撮像画像データを所定の色相領域に分割する色相領域分割手段と、
前記分割された色相領域毎の画素が前記撮像画像データの画面全体に占める割合を示す占有率を算出する色相領域占有率算出手段と、
前記算出された色相領域毎の占有率に応じて、前記色相領域毎に低彩度闘値を算出する低彩度閾値算出手段と、
前記算出された低彩度闘値に基づいて、グレーバランス調整に用いる低彩度画素を抽出する低彩度画素抽出手段と、
前記抽出された低彩度画素を用いてグレーバランス調整条件を算出するグレーバランス調整条件算出手段と、
前記算出されたグレーバランス調整条件に基づいて、前記撮像画像データにグレーバランス調整を施すグレーバランス調整手段と、
を備えたことを特徴としている。
The invention according to claim 19 is
In an image processing apparatus for inputting captured image data and outputting image data optimized for viewing on an output medium,
Data acquisition means for obtaining a hue value, a saturation value and a brightness value for each pixel of the captured image data;
HS dividing means for dividing the captured image data into regions composed of combinations of predetermined hue and saturation;
A lightness deviation amount calculating means for calculating a lightness deviation amount of an area composed of a combination of the predetermined hue and saturation divided in the entire captured image data;
HS occupancy ratio calculating means for calculating an occupancy ratio indicating the ratio of pixels of the divided predetermined hue and saturation combination to the entire screen of the captured image data;
Based on the calculated occupancy rate, contribution rate calculating means for calculating a contribution rate to the gradation conversion processing of the region composed of a combination of the predetermined hue and saturation divided,
Gradation conversion processing condition determining means for determining gradation conversion processing conditions based on the calculated brightness deviation amount and contribution rate;
Gradation conversion processing means for performing gradation conversion processing on the captured image data based on the determined gradation conversion processing conditions;
Hue area dividing means for dividing the captured image data into predetermined hue areas;
A hue area occupancy ratio calculating unit that calculates an occupancy ratio indicating a ratio of pixels for each of the divided hue areas to the entire screen of the captured image data;
Low saturation threshold value calculating means for calculating a low saturation threshold value for each hue region according to the calculated occupancy ratio for each hue region;
Low saturation pixel extraction means for extracting low saturation pixels used for gray balance adjustment based on the calculated low saturation threshold;
A gray balance adjustment condition calculating means for calculating a gray balance adjustment condition using the extracted low saturation pixel;
Based on the calculated gray balance adjustment conditions, gray balance adjustment means for performing gray balance adjustment on the captured image data;
It is characterized by having.

請求項20に記載の発明は、請求項14〜16の何れか一項に記載の発明において、
前記取得された色相値及び彩度値の2次元ヒストグラムを作成する2次元ヒストグラム作成手段を備え、
前記HS分割手段は、前記作成された2次元ヒストグラムに基づいて、前記撮像画像データを所定の色相及び彩度の組み合わせからなる領域に分割することを特徴としている。
The invention according to claim 20 is the invention according to any one of claims 14 to 16,
Two-dimensional histogram creation means for creating a two-dimensional histogram of the acquired hue value and saturation value;
The HS dividing means divides the captured image data into regions composed of combinations of predetermined hue and saturation based on the created two-dimensional histogram.

請求項21に記載の発明は、請求項17〜19の何れか一項に記載の発明において、
前記取得された色相値及び彩度値の2次元ヒストグラムを作成する2次元ヒストグラム作成手段を備え、
前記HS分割手段は、前記作成された2次元ヒストグラムに基づいて、前記撮像画像データを所定の色相及び彩度の組み合わせからなる領域に分割し、
前記色相領域分割手段は、前記作成された2次元ヒストグラムに基づいて、前記撮像画像データを所定の色相領域に分割することを特徴としている。
The invention according to claim 21 is the invention according to any one of claims 17 to 19,
Two-dimensional histogram creation means for creating a two-dimensional histogram of the acquired hue value and saturation value;
The HS dividing unit divides the captured image data into regions including combinations of a predetermined hue and saturation based on the created two-dimensional histogram,
The hue area dividing unit divides the captured image data into predetermined hue areas based on the created two-dimensional histogram.

請求項22に記載の発明は、請求項14〜16、20の何れか一項に記載の発明において、
前記HS分割手段は、前記撮像画像データを、少なくともHSV表色系の色相値で0〜69、彩度値で0〜128からなる肌色領域に分割することを特徴としている。
The invention according to claim 22 is the invention according to any one of claims 14 to 16 and 20,
The HS dividing means divides the captured image data into skin color regions having at least a hue value of HSV color system of 0 to 69 and a saturation value of 0 to 128.

請求項23に記載の発明は、請求項17〜19、21の何れか一項に記載の発明において、
前記HS分割手段は、前記撮像画像データを、少なくともHSV表色系の色相値で0〜69、彩度値で0〜128からなる肌色領域に分割し、
前記色相領域分割手段は、前記撮像画像データを、HSV表色系の色相値で0〜69の肌色相領域、70〜184の緑色相領域、185〜224の空色相領域、225〜360の赤色相領域に分割することを特徴としている。
The invention according to claim 23 is the invention according to any one of claims 17 to 19 and 21,
The HS dividing means divides the captured image data into skin color regions consisting of at least a hue value of HSV color system of 0 to 69 and a saturation value of 0 to 128,
The hue area dividing unit converts the captured image data into a skin hue area of 0 to 69, a green hue area of 70 to 184, a sky hue area of 185 to 224, and a red hue of 225 to 360 in the hue value of the HSV color system. It is characterized by being divided into phase regions.

請求項24に記載の発明は、請求項14〜23の何れか一項に記載の発明において、
前記階調処理条件の決定は、階調変換曲線を作成するか或いは予め設定された複数の階調変換曲線の中から選択することにより階調変換曲線を調整することにより行うことを特徴としている。
The invention according to claim 24 is the invention according to any one of claims 14 to 23,
The determination of the gradation processing condition is performed by creating a gradation conversion curve or by adjusting the gradation conversion curve by selecting from a plurality of preset gradation conversion curves. .

請求項25に記載の発明は、請求項14〜24の何れか一項に記載の発明において、
前記撮像画像データは、シーン参照画像データであることを特徴としている。
The invention according to claim 25 is the invention according to any one of claims 14 to 24,
The captured image data is scene reference image data.

請求項26に記載の発明は、請求項14〜25の何れか一項に記載の発明において、
前記出力媒体上での鑑賞に最適化された画像データは、鑑賞画像参照データであることを特徴としている。
The invention according to claim 26 is the invention according to any one of claims 14 to 25,
The image data optimized for viewing on the output medium is viewing image reference data.

請求項27に記載の発明は、
撮像画像データを入力し、出力媒体上での鑑賞に最適化された画像データを生成し、生成された画像データを出力媒体上に形成する画像記録装置において、
前記撮像画像データの画素毎の色相値、彩度値及び明度値を得るデータ取得手段と、
前記撮像画像データを所定の色相及び彩度の組み合わせからなる領域に分割するHS分割手段と、
前記撮像画像データ全体における前記分割された所定の色相及び彩度の組み合わせからなる領域の明度偏倚量を算出する明度偏倚量算出手段と、
前記算出された明度偏倚量に基づいて、階調変換処理条件を決定する階調変換処理条件決定手段と、
前記決定された階調変換処理条件に基づいて、前記撮像画像データに階調変換処理を施す階調変換処理手段と、
を備えたことを特徴としている。
The invention according to claim 27 provides
In an image recording apparatus that inputs captured image data, generates image data optimized for viewing on an output medium, and forms the generated image data on the output medium.
Data acquisition means for obtaining a hue value, a saturation value and a brightness value for each pixel of the captured image data;
HS dividing means for dividing the captured image data into regions composed of combinations of predetermined hue and saturation;
A lightness deviation amount calculating means for calculating a lightness deviation amount of an area composed of a combination of the predetermined hue and saturation divided in the entire captured image data;
Gradation conversion processing condition determining means for determining gradation conversion processing conditions based on the calculated brightness deviation amount;
Gradation conversion processing means for performing gradation conversion processing on the captured image data based on the determined gradation conversion processing conditions;
It is characterized by having.

請求項28に記載の発明は、
撮像画像データを入力し、出力媒体上での鑑賞に最適化された画像データを生成し、生成された画像データを出力媒体上に形成する画像記録装置において、
前記撮像画像データの画素毎の色相値、彩度値及び明度値を得るデータ取得手段と、
前記撮像画像データを所定の色相及び彩度の組み合わせからなる領域に分割するHS分割手段と、
前記分割された所定の色相及び彩度の組み合わせからなる領域の画素が前記撮像画像データの画面全体に占める割合を示す占有率を算出するHS占有率算出手段と、
前記算出された占有率に基づいて、前記分割された所定の色相及び彩度の組み合わせからなる領域の階調変換処理への寄与率を算出する寄与率算出手段と、
前記算出された寄与率に基づいて、階調変換処理条件を決定する階調変換処理条件決定手段と、
前記決定された階調変換処理条件に基づいて、前記撮像画像データに階調変換処理を施す階調変換処理手段と、
を備えたことを特徴としている。
The invention according to claim 28 provides
In an image recording apparatus that inputs captured image data, generates image data optimized for viewing on an output medium, and forms the generated image data on the output medium.
Data acquisition means for obtaining a hue value, a saturation value and a brightness value for each pixel of the captured image data;
HS dividing means for dividing the captured image data into regions composed of combinations of predetermined hue and saturation;
HS occupancy ratio calculating means for calculating an occupancy ratio indicating the ratio of pixels of the divided predetermined hue and saturation combination to the entire screen of the captured image data;
Based on the calculated occupancy rate, contribution rate calculating means for calculating a contribution rate to the gradation conversion processing of the region composed of a combination of the predetermined hue and saturation divided,
Gradation conversion processing condition determining means for determining gradation conversion processing conditions based on the calculated contribution rate;
Gradation conversion processing means for performing gradation conversion processing on the captured image data based on the determined gradation conversion processing conditions;
It is characterized by having.

請求項29に記載の発明は、
撮像画像データを入力し、出力媒体上での鑑賞に最適化された画像データを生成し、生成された画像データを出力媒体上に形成する画像記録装置において、
前記撮像画像データの画素毎の色相値、彩度値及び明度値を得るデータ取得手段と、
前記撮像画像データを所定の色相及び彩度の組み合わせからなる領域に分割するHS分割手段と、
前記撮像画像データ全体における前記分割された所定の色相及び彩度の組み合わせからなる領域の明度偏倚量を算出する明度偏倚量算出手段と、
前記分割された所定の色相及び彩度の組み合わせからなる領域の画素が前記撮像画像データの画面全体に占める割合を示す占有率を算出するHS占有率算出手段と、
前記算出された占有率に基づいて、前記分割された所定の色相及び彩度の組み合わせからなる領域の階調変換処理への寄与率を算出する寄与率算出手段と、
前記算出された明度偏倚量及び寄与率に基づいて、階調変換処理条件を決定する階調変換処理条件決定手段と、
前記決定された階調変換処理条件に基づいて、前記撮像画像データに階調変換処理を施す階調変換処理手段と、
を備えたことを特徴としている。
The invention according to claim 29 provides
In an image recording apparatus that inputs captured image data, generates image data optimized for viewing on an output medium, and forms the generated image data on the output medium.
Data acquisition means for obtaining a hue value, a saturation value and a brightness value for each pixel of the captured image data;
HS dividing means for dividing the captured image data into regions composed of combinations of predetermined hue and saturation;
A lightness deviation amount calculating means for calculating a lightness deviation amount of an area composed of a combination of the predetermined hue and saturation divided in the entire captured image data;
HS occupancy ratio calculating means for calculating an occupancy ratio indicating the ratio of pixels of the divided predetermined hue and saturation combination to the entire screen of the captured image data;
Based on the calculated occupancy rate, contribution rate calculating means for calculating a contribution rate to the gradation conversion processing of the region composed of a combination of the predetermined hue and saturation divided,
Gradation conversion processing condition determining means for determining gradation conversion processing conditions based on the calculated brightness deviation amount and contribution rate;
Gradation conversion processing means for performing gradation conversion processing on the captured image data based on the determined gradation conversion processing conditions;
It is characterized by having.

請求項30に記載の発明は、
撮像画像データを入力し、出力媒体上での鑑賞に最適化された画像データを生成し、生成された画像データを出力媒体上に形成する画像記録装置において、
前記撮像画像データの画素毎の色相値、彩度値及び明度値を得るデータ取得手段と、
前記撮像画像データを所定の色相及び彩度の組み合わせからなる領域に分割するHS分割手段と、
前記撮像画像データ全体における前記分割された所定の色相及び彩度の組み合わせからなる領域の明度偏倚量を算出する明度偏倚量算出手段と、
前記算出された明度偏倚量に基づいて、階調変換処理条件を決定する階調変換処理条件決定手段と、
前記決定された階調変換処理条件に基づいて、前記撮像画像データに階調変換処理を施す階調変換処理手段と、
前記撮像画像データを所定の色相領域に分割する色相領域分割手段と、
前記分割された色相領域毎の画素が前記撮像画像データの画面全体に占める割合を示す占有率を算出する色相領域占有率算出手段と、
前記算出された色相領域毎の占有率に応じて、前記色相領域毎に低彩度闘値を算出する低彩度閾値算出手段と、
前記算出された低彩度闘値に基づいて、グレーバランス調整に用いる低彩度画素を抽出する低彩度画素抽出手段と、
前記抽出された低彩度画素を用いてグレーバランス調整条件を算出するグレーバランス調整条件算出手段と、
前記算出されたグレーバランス調整条件に基づいて、前記撮像画像データにグレーバランス調整を施すグレーバランス調整手段と、
を備えたことを特徴としている。
The invention according to claim 30 provides
In an image recording apparatus that inputs captured image data, generates image data optimized for viewing on an output medium, and forms the generated image data on the output medium.
Data acquisition means for obtaining a hue value, a saturation value and a brightness value for each pixel of the captured image data;
HS dividing means for dividing the captured image data into regions composed of combinations of predetermined hue and saturation;
A lightness deviation amount calculating means for calculating a lightness deviation amount of an area composed of a combination of the predetermined hue and saturation divided in the entire captured image data;
Gradation conversion processing condition determining means for determining gradation conversion processing conditions based on the calculated brightness deviation amount;
Gradation conversion processing means for performing gradation conversion processing on the captured image data based on the determined gradation conversion processing conditions;
Hue area dividing means for dividing the captured image data into predetermined hue areas;
A hue area occupancy ratio calculating unit that calculates an occupancy ratio indicating a ratio of pixels for each of the divided hue areas to the entire screen of the captured image data;
Low saturation threshold value calculating means for calculating a low saturation threshold value for each hue region according to the calculated occupancy ratio for each hue region;
Low saturation pixel extraction means for extracting low saturation pixels used for gray balance adjustment based on the calculated low saturation threshold;
A gray balance adjustment condition calculating means for calculating a gray balance adjustment condition using the extracted low saturation pixel;
Based on the calculated gray balance adjustment conditions, gray balance adjustment means for performing gray balance adjustment on the captured image data;
It is characterized by having.

請求項31に記載の発明は、
撮像画像データを入力し、出力媒体上での鑑賞に最適化された画像データを生成し、生成された画像データを出力媒体上に形成する画像記録装置において、
前記撮像画像データの画素毎の色相値、彩度値及び明度値を得るデータ取得手段と、
前記撮像画像データを所定の色相及び彩度の組み合わせからなる領域に分割するHS分割手段と、
前記分割された所定の色相及び彩度の組み合わせからなる領域の画素が前記撮像画像データの画面全体に占める割合を示す占有率を算出するHS占有率算出手段と、
前記算出された占有率に基づいて、前記分割された所定の色相及び彩度の組み合わせからなる領域の階調変換処理への寄与率を算出する寄与率算出手段と、
前記算出された寄与率に基づいて、階調変換処理条件を決定する階調変換処理条件決定手段と、
前記決定された階調変換処理条件に基づいて、前記撮像画像データに階調変換処理を施す階調変換処理手段と、
前記撮像画像データを所定の色相領域に分割する色相領域分割手段と、
前記分割された色相領域毎の画素が前記撮像画像データの画面全体に占める割合を示す占有率を算出する色相領域占有率算出手段と、
前記算出された色相領域毎の占有率に応じて、前記色相領域毎に低彩度闘値を算出する低彩度閾値算出手段と、
前記算出された低彩度闘値に基づいて、グレーバランス調整に用いる低彩度画素を抽出する低彩度画素抽出手段と、
前記抽出された低彩度画素を用いてグレーバランス調整条件を算出するグレーバランス調整条件算出手段と、
前記算出されたグレーバランス調整条件に基づいて、前記撮像画像データにグレーバランス調整を施すグレーバランス調整手段と、
を備えたことを特徴としている。
The invention according to claim 31 provides
In an image recording apparatus that inputs captured image data, generates image data optimized for viewing on an output medium, and forms the generated image data on the output medium.
Data acquisition means for obtaining a hue value, a saturation value and a brightness value for each pixel of the captured image data;
HS dividing means for dividing the captured image data into regions composed of combinations of predetermined hue and saturation;
HS occupancy ratio calculating means for calculating an occupancy ratio indicating the ratio of pixels of the divided predetermined hue and saturation combination to the entire screen of the captured image data;
Based on the calculated occupancy rate, contribution rate calculating means for calculating a contribution rate to the gradation conversion processing of the region composed of a combination of the predetermined hue and saturation divided,
Gradation conversion processing condition determining means for determining gradation conversion processing conditions based on the calculated contribution rate;
Gradation conversion processing means for performing gradation conversion processing on the captured image data based on the determined gradation conversion processing conditions;
Hue area dividing means for dividing the captured image data into predetermined hue areas;
A hue area occupancy ratio calculating unit that calculates an occupancy ratio indicating a ratio of pixels for each of the divided hue areas to the entire screen of the captured image data;
Low saturation threshold value calculating means for calculating a low saturation threshold value for each hue region according to the calculated occupancy ratio for each hue region;
Low saturation pixel extraction means for extracting low saturation pixels used for gray balance adjustment based on the calculated low saturation threshold;
A gray balance adjustment condition calculating means for calculating a gray balance adjustment condition using the extracted low saturation pixel;
Based on the calculated gray balance adjustment conditions, gray balance adjustment means for performing gray balance adjustment on the captured image data;
It is characterized by having.

請求項32に記載の発明は、
撮像画像データを入力し、出力媒体上での鑑賞に最適化された画像データを生成し、生成された画像データを出力媒体上に形成する画像記録装置において、
前記撮像画像データの画素毎の色相値、彩度値及び明度値を得るデータ取得手段と、
前記撮像画像データを所定の色相及び彩度の組み合わせからなる領域に分割するHS分割手段と、
前記撮像画像データ全体における前記分割された所定の色相及び彩度の組み合わせからなる領域の明度偏倚量を算出する明度偏倚量算出手段と、
前記分割された所定の色相及び彩度の組み合わせからなる領域の画素が前記撮像画像データの画面全体に占める割合を示す占有率を算出するHS占有率算出手段と、
前記算出された占有率に基づいて、前記分割された所定の色相及び彩度の組み合わせからなる領域の階調変換処理への寄与率を算出する寄与率算出手段と、
前記算出された明度偏倚量及び寄与率に基づいて、階調変換処理条件を決定する階調変換処理条件決定手段と、
前記決定された階調変換処理条件に基づいて、前記撮像画像データに階調変換処理を施す階調変換処理手段と、
前記撮像画像データを所定の色相領域に分割する色相領域分割手段と、
前記分割された色相領域毎の画素が前記撮像画像データの画面全体に占める割合を示す占有率を算出する色相領域占有率算出手段と、
前記算出された色相領域毎の占有率に応じて、前記色相領域毎に低彩度闘値を算出する低彩度閾値算出手段と、
前記算出された低彩度闘値に基づいて、グレーバランス調整に用いる低彩度画素を抽出する低彩度画素抽出手段と、
前記抽出された低彩度画素を用いてグレーバランス調整条件を算出するグレーバランス調整条件算出手段と、
前記算出されたグレーバランス調整条件に基づいて、前記撮像画像データにグレーバランス調整を施すグレーバランス調整手段と、
を備えたことを特徴としている。
The invention according to claim 32 provides
In an image recording apparatus that inputs captured image data, generates image data optimized for viewing on an output medium, and forms the generated image data on the output medium.
Data acquisition means for obtaining a hue value, a saturation value and a brightness value for each pixel of the captured image data;
HS dividing means for dividing the captured image data into regions composed of combinations of predetermined hue and saturation;
A lightness deviation amount calculating means for calculating a lightness deviation amount of an area composed of a combination of the predetermined hue and saturation divided in the entire captured image data;
HS occupancy ratio calculating means for calculating an occupancy ratio indicating the ratio of pixels of the divided predetermined hue and saturation combination to the entire screen of the captured image data;
Based on the calculated occupancy rate, contribution rate calculating means for calculating a contribution rate to the gradation conversion processing of the region composed of a combination of the predetermined hue and saturation divided,
Gradation conversion processing condition determining means for determining gradation conversion processing conditions based on the calculated brightness deviation amount and contribution rate;
Gradation conversion processing means for performing gradation conversion processing on the captured image data based on the determined gradation conversion processing conditions;
Hue area dividing means for dividing the captured image data into predetermined hue areas;
A hue area occupancy ratio calculating unit that calculates an occupancy ratio indicating a ratio of pixels of the divided hue areas to the entire screen of the captured image data;
Low saturation threshold value calculating means for calculating a low saturation threshold value for each hue region according to the calculated occupancy ratio for each hue region;
Low saturation pixel extraction means for extracting low saturation pixels used for gray balance adjustment based on the calculated low saturation threshold;
A gray balance adjustment condition calculating means for calculating a gray balance adjustment condition using the extracted low saturation pixel;
Based on the calculated gray balance adjustment conditions, gray balance adjustment means for performing gray balance adjustment on the captured image data;
It is characterized by having.

請求項33に記載の発明は、請求項27〜29の何れか一項に記載の発明において、
前記取得された色相値及び彩度値の2次元ヒストグラムを作成する2次元ヒストグラム作成手段を備え、
前記HS分割手段は、前記作成された2次元ヒストグラムに基づいて、前記撮像画像データを所定の色相及び彩度の組み合わせからなる領域に分割することを特徴としている。
The invention according to claim 33 is the invention according to any one of claims 27 to 29,
Two-dimensional histogram creation means for creating a two-dimensional histogram of the acquired hue value and saturation value;
The HS dividing means divides the captured image data into regions composed of combinations of predetermined hue and saturation based on the created two-dimensional histogram.

請求項34に記載の発明は、請求項30〜32の何れか一項に記載の発明において、
前記取得された色相値及び彩度値の2次元ヒストグラムを作成する2次元ヒストグラム作成手段を備え、
前記HS分割手段は、前記作成された2次元ヒストグラムに基づいて、前記撮像画像データを所定の色相及び彩度の組み合わせからなる領域に分割し、
前記色相領域分割手段は、前記作成された2次元ヒストグラムに基づいて、前記撮像画像データを所定の色相領域に分割することを特徴としている。
The invention according to claim 34 is the invention according to any one of claims 30 to 32,
Two-dimensional histogram creation means for creating a two-dimensional histogram of the acquired hue value and saturation value;
The HS dividing unit divides the captured image data into regions including combinations of a predetermined hue and saturation based on the created two-dimensional histogram,
The hue area dividing unit divides the captured image data into predetermined hue areas based on the created two-dimensional histogram.

請求項35に記載の発明は、請求項27〜29、33の何れか一項に記載の発明において、
前記HS分割手段は、前記撮像画像データを、少なくともHSV表色系の色相値で0〜69、彩度値で0〜128からなる肌色領域に分割することを特徴としている。
The invention described in claim 35 is the invention described in any one of claims 27-29, 33,
The HS dividing means divides the captured image data into skin color regions having at least a hue value of HSV color system of 0 to 69 and a saturation value of 0 to 128.

請求項36に記載の発明は、請求項30〜32、34の何れか一項に記載の発明において、
前記HS分割手段は、前記撮像画像データを、少なくともHSV表色系の色相値で0〜69、彩度値で0〜128からなる肌色領域に分割し、
前記色相領域分割手段は、前記撮像画像データを、HSV表色系の色相値で0〜69の肌色相領域、70〜184の緑色相領域、185〜224の空色相領域、225〜360の赤色相領域に分割することを特徴としている。
The invention according to claim 36 is the invention according to any one of claims 30 to 32, 34,
The HS dividing means divides the captured image data into skin color regions consisting of at least a hue value of HSV color system of 0 to 69 and a saturation value of 0 to 128,
The hue area dividing unit converts the captured image data into a skin hue area of 0 to 69, a green hue area of 70 to 184, a sky hue area of 185 to 224, and a red hue of 225 to 360 in the hue value of the HSV color system. It is characterized by being divided into phase regions.

請求項37に記載の発明は、請求項27〜36の何れか一項に記載の発明において、
前記階調処理条件の決定は、階調変換曲線を作成するか或いは予め設定された複数の階調変換曲線の中から選択することにより階調変換曲線を調整することにより行うことを特徴としている。
The invention according to claim 37 is the invention according to any one of claims 27 to 36,
The determination of the gradation processing condition is performed by creating a gradation conversion curve or by adjusting the gradation conversion curve by selecting from a plurality of preset gradation conversion curves. .

請求項38に記載の発明は、請求項27〜37の何れか一項に記載の発明において、
前記撮像画像データは、シーン参照画像データであることを特徴としている。
The invention according to claim 38 is the invention according to any one of claims 27 to 37,
The captured image data is scene reference image data.

請求項39に記載の発明は、請求項27〜38の何れか一項に記載の発明において、
前記出力媒体上での鑑賞に最適化された画像データは、鑑賞画像参照データであることを特徴としている。
The invention according to claim 39 is the invention according to any one of claims 27 to 38,
The image data optimized for viewing on the output medium is viewing image reference data.

ここで、本明細書に記載の「撮像画像データ」とは、被写体情報を電気的な信号値として保持したデジタル画像データである。カラー写真フィルムに色素画像情報として記録され、スキャナ読み取りで生成されたデジタル画像データや、デジタルカメラで撮影し生成されたデジタル画像データなど、デジタル画像データを得るまでのプロセスは如何なるものであっても良い。   Here, “captured image data” described in this specification is digital image data in which subject information is held as an electrical signal value. Whatever process is used to obtain digital image data, such as digital image data recorded as color image information on a color photographic film and generated by scanning a scanner or digital image data generated by photographing with a digital camera good.

ただし、カラーネガフィルムから、スキャナ読み取りでデジタル画像データを生成する際は、カラーネガフィルムの未露光部(最低濃度部)がデジタル画像データのRGB値が全て0となるよう最大透過光量の較正と反転処理を施し、透過光量に正比例したスケールから対数(濃度)スケールへの変換処理と、カラーネガフィルムのガンマ補正処理を施すことにより、被写体の輝度変化に対しほぼ比例した状態を再現しておくことが望ましい。また、デジタルカメラで撮影したデジタル画像データにおいても同様に、被写体の輝度変化に対しほぼ比例した状態となっていることが望ましい。さらに、デジタル画像データは、「シーン参照画像データ」であることが望ましい。   However, when digital image data is generated from a color negative film by reading a scanner, the unexposed area (minimum density area) of the color negative film is calibrated and inverted so that the RGB values of the digital image data are all zero. It is desirable to reproduce a state almost proportional to the luminance change of the subject by performing conversion processing from a scale directly proportional to the amount of transmitted light to a logarithmic (density) scale and gamma correction processing of a color negative film. . Similarly, it is desirable that the digital image data captured by the digital camera is in a state that is substantially proportional to the luminance change of the subject. Further, the digital image data is preferably “scene reference image data”.

「シーン参照画像データ」とは、少なくとも撮像素子自体の分光感度に基づく各色チャンネルの信号強度をRIMM RGB」(Reference Input Medium Metric RGB)やERIMM RGB」(Extended Reference Input Medium Metric RGB)などの標準色空間にマッピング済みであり、階調変換・鮮鋭性強調・彩度強調のような画像鑑賞時の効果を向上する為にデータ内容を改変する画像処理が省略された状態の画像データを意味する。またシーン参照画像データは、撮像装置の光電変換特性(ISO1452が定義するopto-electronic conversion function, 例えばコロナ社「ファインイメージングとディジタル写真」(社)日本写真学会出版委員会編◆479頁参照)の補正を行ったものである事が好ましい。標準化されたシーン参照画像データの情報量(例えば階調数)は前記A/D変換器の性能に準じ、後述の「鑑賞画像参照データ」で必要とされる情報量(例えば階調数)と同等以上であることが好ましい。例えば鑑賞画像参照データの階調数が1チャンネルあたり8bitである場合、シーン参照画像データの階調数は12bit以上が好ましく、14bit以上がより好ましく、また16bit以上がさらに好ましい。   "Scene reference image data" refers to standard colors such as RIMM RGB (Reference Input Medium Metric RGB) and ERIMM RGB (Extended Reference Input Medium Metric RGB), which are signal strengths of each color channel based on at least the spectral sensitivity of the image sensor itself. It means image data that has been mapped to a space and in which image processing for modifying the data contents is omitted in order to improve the effect at the time of image viewing such as gradation conversion, sharpness enhancement, and saturation enhancement. The scene reference image data is the photoelectric conversion characteristics of the imaging device (opto-electronic conversion function defined by ISO1452, such as Corona “Fine Imaging and Digital Photography” (published by the Japan Photographic Society Publishing Committee ◆ page 479). It is preferable that the correction is performed. The information amount (for example, the number of gradations) of the standardized scene reference image data conforms to the performance of the A / D converter, and the information amount (for example, the number of gradations) required for the “viewing image reference data” described later. It is preferable that it is equal to or higher. For example, when the number of gradations of the viewing image reference data is 8 bits per channel, the number of gradations of the scene reference image data is preferably 12 bits or more, more preferably 14 bits or more, and even more preferably 16 bits or more.

「出力媒体上での鑑賞に最適化」とは、CRT、液晶ディスプレイ、プラズマディスプレイ等の表示デバイス、銀塩印画紙、インクジェットペーパー、サーマルプリンタ用紙等の出力媒体上において、最適な画像を得る為の処理であり、例えばsRGB規格に準拠したCRTディスプレイモニタに表示することを前提とした場合、sRGB規格の色域内で最適な色再現が得られるように処理される。銀塩印画紙への出力を前提とした場合、銀塩印画紙の色域内で最適な色再現が得られるように処理される。また、色域の圧縮の以外にも、16bitから8bitへの階調圧縮、出力画素数の低減、及び出力デバイスの出力特性(LUT)への対応処理等も含まれる。さらにノイズ抑制、鮮鋭化、グレーバランス調整、彩度調整、或いは覆い焼き処理等の階調圧縮処理が行われることは言うまでもない。   “Optimized for viewing on output media” means to obtain optimal images on output devices such as display devices such as CRT, liquid crystal display, plasma display, silver halide photographic paper, inkjet paper, thermal printer paper, etc. For example, when it is assumed that the image is displayed on a CRT display monitor compliant with the sRGB standard, the process is performed so that optimum color reproduction is obtained within the color gamut of the sRGB standard. If output to silver salt photographic paper is assumed, processing is performed so that optimum color reproduction is obtained within the color gamut of silver salt photographic paper. In addition to color gamut compression, gradation compression from 16 bits to 8 bits, reduction of the number of output pixels, and processing for handling output characteristics (LUT) of the output device are also included. Furthermore, it goes without saying that tone compression processing such as noise suppression, sharpening, gray balance adjustment, saturation adjustment, or dodging processing is performed.

「出力媒体上での鑑賞に最適化された画像データ」とはCRT、液晶ディスプレイ、プラズマディスプレイ、或いは銀塩印画紙、インクジェットペーパー、サーマルプリンタ用紙等の出力媒体上の画像生成に用いるデジタル画像データを意味し、CRT、液晶、プラズマディスプレイ等の表示デバイス、及び銀塩印画紙、インクジェットペーパー、サーマルプリンタ用紙等の出力媒体上において、最適な画像が得られるよう処理が施されている。上述した「撮像画像データ」が、「シーン参照画像データ」であるとき、「出力媒体上での鑑賞に最適化された画像データ」を「鑑賞画像参照データ」と称す。
この肌色領域の範囲は、調査の結果に基づいて決定したもので、およそ1000駒のフィルムスキャン画像について、人間の肌色の検出率が最も高くなる範囲を調べた結果から算出されたものである。
"Image data optimized for viewing on output media" means digital image data used to generate images on output media such as CRT, liquid crystal display, plasma display, silver halide photographic paper, inkjet paper, thermal printer paper, etc. In other words, processing is performed so as to obtain an optimal image on a display device such as a CRT, a liquid crystal display, a plasma display, and an output medium such as a silver salt photographic paper, an inkjet paper, and a thermal printer paper. When the above-described “captured image data” is “scene reference image data”, “image data optimized for viewing on an output medium” is referred to as “viewing image reference data”.
The range of the skin color region is determined based on the result of the investigation, and is calculated from the result of examining the range in which the human skin color detection rate is the highest for about 1000 film scan images.

本発明の記載における色相範囲は、およそ1000駒のフィルムスキャン画像について、人間の肌色、植物の緑、空の色の検出率が最も高くなる色相範囲を調べた結果から算出した。肌色領域の範囲についても、同様の調査を行い、決定された範囲である。本発明の実施に際しては、フィルムスキャン画像、デジタルカメラ撮影画像夫々について前記数値限定を変更することが望ましい。   The hue range in the description of the present invention was calculated from the result of examining the hue range in which the detection rate of human skin color, plant green, and sky color is the highest for about 1000 film scan images. The skin color region range is also determined by conducting the same investigation. In the practice of the present invention, it is desirable to change the numerical limit for each of the film scan image and the digital camera image.

請求項1、14、27に記載の発明によれば、撮像画像データ全体における所定の色相及び彩度の組み合わせからなる領域の明度偏倚量に基づいて、階調変換処理条件を決定し、決定された階調変換処理条件に基づいて撮像画像データに階調変換処理を施すので、撮影シーンにおける所定領域、例えば主要被写体である顔領域の明度補正精度を向上させることが可能となり、高精度な階調変換処理を施すことが可能となる。   According to the invention described in claims 1, 14, and 27, the gradation conversion processing condition is determined and determined based on the lightness deviation amount of an area composed of a predetermined combination of hue and saturation in the entire captured image data. Since the tone conversion processing is performed on the captured image data based on the tone conversion processing conditions, it is possible to improve the brightness correction accuracy of a predetermined area in the shooting scene, for example, the face area that is the main subject, and a high-accuracy level. It is possible to perform a tone conversion process.

請求項2、15、28に記載の発明によれば、撮像画像データ全体における所定の色相及び彩度の組み合わせからなる領域の占有率に基づいて当該領域の階調変換処理への寄与率を算出し、算出された寄与率に基づいて階調変換処理条件を決定し、決定された階調変換処理条件に基づいて撮像画像データに階調変換処理を施すので、撮影シーンにおける所定領域、例えば、主要被写体である顔領域の寄与率に応じた明度補正が可能となり、高精度な階調変換処理を施すことが可能となる。   According to the second, fifteenth and twenty-eighth aspects of the present invention, the contribution ratio of the area to the gradation conversion process is calculated based on the occupancy ratio of the area composed of a predetermined combination of hue and saturation in the entire captured image data. Then, the gradation conversion processing condition is determined based on the calculated contribution rate, and the captured image data is subjected to the gradation conversion processing based on the determined gradation conversion processing condition. Brightness correction according to the contribution ratio of the face area that is the main subject is possible, and high-precision gradation conversion processing can be performed.

請求項3、16、29に記載の発明によれば、撮像画像データ全体における所定の色相及び彩度の組み合わせからなる領域の明度偏倚量及び寄与率に基づいて、階調変換処理条件を決定し、決定された階調変換処理条件に基づいて撮像画像データに階調変換処理を施すので、撮影シーンにおける所定領域、例えば顔領域の明度偏倚量及び寄与率に応じた適正な明度補正を施すことが可能となり、高精度な階調変換処理を施すことが可能となる。   According to the invention described in claims 3, 16, and 29, the gradation conversion processing condition is determined based on the lightness deviation amount and the contribution ratio of the region composed of a predetermined hue and saturation combination in the entire captured image data. Since the gradation conversion processing is performed on the captured image data based on the determined gradation conversion processing conditions, appropriate lightness correction according to the lightness deviation amount and the contribution rate of a predetermined area, for example, the face area, in the shooting scene is performed. It is possible to perform gradation conversion processing with high accuracy.

請求項4、17、30に記載の発明によれば、撮像画像データ全体における所定の色相及び彩度の組み合わせからなる領域の明度偏倚量に基づいて、階調変換処理条件を決定し、決定された階調変換処理条件に基づいて撮像画像データに階調変換処理を施すので、撮影シーンにおける所定領域、例えば主要被写体である顔領域の明度補正精度を向上させることが可能となり、高精度な階調変換処理を施すことが可能となる。更に、撮影シーンの配色傾向を判別し、判別結果に基づいて低彩度画素を抽出する低彩度閾値を変更するようにしたことで、例えば、芝生や空等の占める割合が大きな撮影シーン等、画像中のハイライト側やシャドー側が低彩度であるという経験則が符合しないシーンにおいて、特定の色相からグレーバランス調整条件算出に用いる低彩度画素が多く抽出されることによる色相の偏りが防止され、その結果、カラーフェリアを抑制することが可能となる。   According to the invention described in claims 4, 17, and 30, the gradation conversion processing condition is determined and determined based on the lightness deviation amount of the region composed of a predetermined combination of hue and saturation in the entire captured image data. Since the tone conversion processing is performed on the captured image data based on the tone conversion processing conditions, it is possible to improve the brightness correction accuracy of a predetermined area in the shooting scene, for example, the face area that is the main subject, and a high-accuracy level. It is possible to perform a tone conversion process. Furthermore, by determining the coloration tendency of the shooting scene and changing the low saturation threshold for extracting low saturation pixels based on the determination result, for example, a shooting scene with a large proportion of lawn, sky, etc. In scenes where the empirical rule of low saturation on the highlight and shadow sides in the image does not match, there is a bias in hue due to the extraction of many low saturation pixels used for gray balance adjustment condition calculation from a specific hue As a result, color feria can be suppressed.

請求項5、18、31に記載の発明によれば、撮像画像データ全体における所定の色相及び彩度の組み合わせからなる領域の占有率に基づいて当該領域の階調変換処理への寄与率を算出し、算出された寄与率に基づいて階調変換処理条件を決定し、決定された階調変換処理条件に基づいて撮像画像データに階調変換処理を施すので、撮影シーンにおける所定領域、例えば、主要被写体である顔領域の寄与率に応じた明度補正が可能となり、高精度な階調変換処理を施すことが可能となる。更に、撮影シーンの配色傾向を判別し、判別結果に基づいて低彩度画素を抽出する低彩度閾値を変更するようにしたことで、例えば、芝生や空等の占める割合が大きな撮影シーン等、画像中のハイライト側やシャドー側が低彩度であるという経験則が符合しないシーンにおいて、特定の色相からグレーバランス調整条件算出に用いる低彩度画素が多く抽出されることによる色相の偏りが防止され、その結果、カラーフェリアを抑制することが可能となる。   According to the invention described in claims 5, 18 and 31, the contribution ratio of the area to the gradation conversion process is calculated based on the occupation ratio of the area composed of a predetermined combination of hue and saturation in the entire captured image data. Then, the gradation conversion processing condition is determined based on the calculated contribution rate, and the captured image data is subjected to the gradation conversion processing based on the determined gradation conversion processing condition. Brightness correction according to the contribution ratio of the face area that is the main subject is possible, and high-precision gradation conversion processing can be performed. Furthermore, by determining the coloration tendency of the shooting scene and changing the low saturation threshold for extracting low saturation pixels based on the determination result, for example, a shooting scene with a large proportion of lawn, sky, etc. In scenes where the empirical rule of low saturation on the highlight and shadow sides in the image does not match, there is a bias in hue due to the extraction of many low saturation pixels used for gray balance adjustment condition calculation from a specific hue As a result, color feria can be suppressed.

請求項6、19、32に記載の発明によれば、撮像画像データ全体における所定の色相及び彩度の組み合わせからなる領域の明度偏倚量及び寄与率に基づいて、階調変換処理条件を決定し、決定された階調変換処理条件に基づいて撮像画像データに階調変換処理を施すので、撮影シーンにおける所定領域、例えば顔領域の明度偏倚量及び寄与率に応じた適正な明度補正を施すことが可能となり、高精度な階調変換処理を施すことが可能となる。更に、撮影シーンの配色傾向を判別し、判別結果に基づいて低彩度画素を抽出する低彩度閾値を変更するようにしたことで、例えば、芝生や空等の占める割合が大きな撮影シーン等、画像中のハイライト側やシャドー側が低彩度であるという経験則が符合しないシーンにおいて、特定の色相からグレーバランス調整条件算出に用いる低彩度画素が多く抽出されることによる色相の偏りが防止され、その結果、カラーフェリアを抑制することが可能となる。   According to the invention described in claims 6, 19, and 32, the gradation conversion processing condition is determined on the basis of the lightness deviation amount and the contribution rate of the region composed of a predetermined hue and saturation combination in the entire captured image data. Since the gradation conversion processing is performed on the captured image data based on the determined gradation conversion processing conditions, appropriate lightness correction according to the lightness deviation amount and the contribution rate of a predetermined area, for example, the face area, in the shooting scene is performed. It is possible to perform gradation conversion processing with high accuracy. Furthermore, by determining the coloration tendency of the shooting scene and changing the low saturation threshold for extracting low saturation pixels based on the determination result, for example, a shooting scene with a large proportion of lawn, sky, etc. In scenes where the empirical rule that the highlight side or shadow side in the image has low saturation does not match, hue bias due to the extraction of many low saturation pixels used for gray balance adjustment condition calculation from a specific hue As a result, color feria can be suppressed.

請求項7、20、33に記載の発明によれば、請求項1〜3の何れか一項に記載の発明において、色相値と彩度値の2次元ヒストグラムを作成し、作成された2次元ヒストグラムに基づいて撮像画像データを所定の色相及び彩度の組み合わせからなる領域に分割するので、処理を効率化することが可能となる。   According to invention of Claim 7, 20, 33, in the invention as described in any one of Claims 1-3, the two-dimensional histogram which created the two-dimensional histogram of the hue value and the saturation value was created. Based on the histogram, the captured image data is divided into regions composed of a predetermined combination of hue and saturation, so that the processing can be made more efficient.

請求項8、21、34に記載の発明によれば、請求項4〜6の何れか一項に記載の発明において、色相値と彩度値の2次元ヒストグラムを作成し、作成された2次元ヒストグラムに基づいて、撮像画像データを所定の色相及び彩度の組み合わせからなる領域と、所定の色相領域に分割するので、処理を効率化することが可能となる。   According to invention of Claim 8, 21, 34, in the invention as described in any one of Claims 4-6, the two-dimensional histogram created by creating the two-dimensional histogram of the hue value and the saturation value Based on the histogram, the captured image data is divided into an area composed of a predetermined hue and saturation combination and a predetermined hue area, so that the processing can be made more efficient.

請求項9、22、35に記載の発明によれば、撮影シーンにおける顔領域としての肌色領域に応じた適正な明度補正を行うことが可能となり、高精度な階調変換処理を施すことが可能となる。   According to the invention described in claims 9, 22, and 35, it is possible to perform appropriate brightness correction according to the skin color area as the face area in the shooting scene, and it is possible to perform high-precision gradation conversion processing. It becomes.

請求項10、23、36に記載の発明によれば、撮影シーンにおける顔領域としての肌色領域に応じた適正な明度補正を行うことが可能となり、高精度な階調変換処理を施すことが可能となる。更に、肌色、緑色、空色、赤色の配色傾向に応じたグレーバランス調整を行うことが可能となる。   According to the tenth, twenty-third, and thirty-sixth aspects of the present invention, it is possible to perform appropriate brightness correction according to the skin color area as the face area in the shooting scene, and to perform highly accurate gradation conversion processing. It becomes. Furthermore, it is possible to perform gray balance adjustment according to the color arrangement tendency of skin color, green color, sky blue color, and red color.

請求項11、24、37に記載の発明によれば、階調変換処理条件の決定は、階調変換曲線をその都度作成するか、又は予め設定された複数の階調変換曲線の中から選択するかの何れかにより行うことが可能となる。   According to the invention described in claims 11, 24 and 37, the gradation conversion processing condition is determined by creating a gradation conversion curve each time or selecting from a plurality of preset gradation conversion curves. It is possible to do this by either

請求項12、25、38に記載の発明によれば、撮像画像情報の情報損失を伴うことなく最適化された画像を出力媒体上に形成することが可能となる。   According to the invention described in claims 12, 25, and 38, it is possible to form an optimized image on the output medium without causing information loss of the captured image information.

請求項13、26、39に記載の発明によれば、適正に明度補正された、カラーフェリアの生じていない最適な鑑賞画像参照データを提供することが可能となる。   According to the thirteenth, twenty-sixth, and thirty-ninth aspects of the present invention, it is possible to provide optimal viewing image reference data that is appropriately lightness-corrected and that has no color failure.

〔第1の実施の形態〕
以下、図を参照して本発明の第1の実施の形態を詳細に説明する。
まず、構成を説明する。
[First Embodiment]
Hereinafter, a first embodiment of the present invention will be described in detail with reference to the drawings.
First, the configuration will be described.

図1は、本発明の実施の形態における画像記録装置1の外観構成を示す斜視図である。画像記録装置1は、図1に示すように、筐体2の一側面に、感光材料を装填するためのマガジン装填部3が備えられている。筐体2の内側には、感光材料に露光する露光処理部4と、露光された感光材料を現像処理して乾燥し、プリントを作成するためのプリント作成部5が備えられている。筐体2の他側面には、プリント作成部5で作成されたプリントを排出するためのトレー6が備えられている。   FIG. 1 is a perspective view showing an external configuration of an image recording apparatus 1 according to an embodiment of the present invention. As shown in FIG. 1, the image recording apparatus 1 is provided with a magazine loading unit 3 for loading a photosensitive material on one side of a housing 2. Inside the housing 2 are provided an exposure processing unit 4 for exposing the photosensitive material, and a print creating unit 5 for developing and drying the exposed photosensitive material to create a print. On the other side surface of the housing 2, a tray 6 for discharging the print created by the print creation unit 5 is provided.

また、筐体2の上部には、表示装置としてのCRT(Cathode Ray Tube)8、透過原稿を読み込む装置であるフィルムスキャナ部9、反射原稿入力装置10、操作部11が備えられている。このCRT8が、プリントを作成しようとする画像情報の画像を画面に表示する表示手段を構成している。更に、筐体2には、各種デジタル記録媒体に記録された画像情報を読み取り可能な画像読込部14、各種デジタル記録媒体に画像信号を書き込み(出力)可能な画像書込部15が備えられている。また、筐体2の内部には、これらの各部を集中制御する制御部7が備えられている。   In addition, a CRT (Cathode Ray Tube) 8 serving as a display device, a film scanner unit 9 serving as a device for reading a transparent document, a reflective document input device 10, and an operation unit 11 are provided on the upper portion of the housing 2. The CRT 8 constitutes display means for displaying an image of image information to be printed on the screen. Further, the housing 2 includes an image reading unit 14 that can read image information recorded on various digital recording media, and an image writing unit 15 that can write (output) image signals to various digital recording media. Yes. In addition, a control unit 7 that centrally controls these units is provided inside the housing 2.

画像読込部14には、PCカード用アダプタ14a、フロッピー(登録商標)ディスク用アダプタ14bが備えられ、PCカード13aやフロッピー(登録商標)ディスク13bが差し込み可能になっている。PCカード13aは、例えば、デジタルカメラで撮像された複数の駒画像データが記録されたメモリを有する。フロッピー(登録商標)ディスク13bには、例えば、デジタルカメラで撮像された複数の駒画像データが記録される。PCカード13a及びフロッピー(登録商標)ディスク13b以外に駒画像データが記録される記録媒体としては、例えば、マルチメディアカード(登録商標)、メモリースティック(登録商標)、MDデータ、CD−ROM等がある。   The image reading unit 14 includes a PC card adapter 14a and a floppy (registered trademark) disk adapter 14b, and a PC card 13a and a floppy (registered trademark) disk 13b can be inserted therein. The PC card 13a has, for example, a memory in which a plurality of frame image data captured by a digital camera is recorded. For example, a plurality of frame image data captured by a digital camera is recorded on the floppy (registered trademark) disk 13b. Examples of the recording medium on which frame image data is recorded other than the PC card 13a and the floppy (registered trademark) disk 13b include a multimedia card (registered trademark), a memory stick (registered trademark), MD data, and a CD-ROM. .

画像書込部15には、フロッピー(登録商標)ディスク用アダプタ15a、MO用アダプタ15b、光ディスク用アダプタ15cが備えられ、それぞれ、FD16a、MO16b、光ディスク16cが差し込み可能になっている。光ディスク16cとしては、CD−R、DVD−R等がある。   The image writing unit 15 is provided with a floppy (registered trademark) disk adapter 15a, an MO adapter 15b, and an optical disk adapter 15c, into which an FD 16a, an MO 16b, and an optical disk 16c can be respectively inserted. Examples of the optical disc 16c include a CD-R and a DVD-R.

なお、図1では、操作部11、CRT8、フィルムスキャナ部9、反射原稿入力装置10、画像読込部14が、筐体2に一体的に備えられた構造となっているが、これらの何れか1つ以上を別体として設けるようにしてもよい。   In FIG. 1, the operation unit 11, the CRT 8, the film scanner unit 9, the reflection original input device 10, and the image reading unit 14 are integrally provided in the housing 2. One or more may be provided separately.

また、図1に示した画像記録装置1では、感光材料に露光して現像してプリントを作成するものが例示されているが、プリント作成方式はこれに限定されず、例えば、インクジェット方式、電子写真方式、感熱方式、昇華方式等の方式を用いてもよい。   Further, in the image recording apparatus 1 shown in FIG. 1, there is exemplified an apparatus that creates a print by exposing to a photosensitive material and developing it, but the print creation system is not limited to this, for example, an inkjet system, an electronic system, etc. A method such as a photographic method, a thermal method, or a sublimation method may be used.

〈画像記録装置1の機能的構成〉
図2は、画像記録装置1の機能的構成を示すブロック図である。以下、図2を参照して画像出力装置1の機能的構成について説明する。
<Functional Configuration of Image Recording Apparatus 1>
FIG. 2 is a block diagram showing a functional configuration of the image recording apparatus 1. Hereinafter, the functional configuration of the image output apparatus 1 will be described with reference to FIG.

制御部7は、マイクロコンピュータにより構成され、ROM(Read Only Memory)等の記憶部(図示略)に記憶されている各種制御プログラムと、CPU(Central Processing Unit)(図示略)との協働により、画像記録装置1を構成する各部の動作を制御する。   The control unit 7 is configured by a microcomputer, and cooperates with various control programs stored in a storage unit (not shown) such as a ROM (Read Only Memory) and a CPU (Central Processing Unit) (not shown). The operation of each part constituting the image recording apparatus 1 is controlled.

制御部7は、本発明の画像処理装置に係る画像処理部70を有し、操作部11からの入力信号(指令情報)に基づいて、フィルムスキャナ部9や反射原稿入力装置10から読み取られた画像信号、画像読込部14から読み込まれた画像信号、外部機器から通信手段32を介して入力された画像信号に対して、画像処理を施して露光用画像情報を形成し、露光処理部4に出力する。また、画像処理部70は、画像処理された画像信号に対して出力形態に応じた変換処理を施して出力する。画像処理部70の出力先としては、CRT8、画像書込部15、通信手段(出力)33等がある。   The control unit 7 includes an image processing unit 70 according to the image processing apparatus of the present invention, and is read from the film scanner unit 9 or the reflective original input device 10 based on an input signal (command information) from the operation unit 11. Image processing is performed on the image signal, the image signal read from the image reading unit 14, and the image signal input from the external device via the communication unit 32 to form exposure image information, and the exposure processing unit 4 Output. Further, the image processing unit 70 performs a conversion process corresponding to the output form on the image signal subjected to the image processing, and outputs the image signal. Output destinations of the image processing unit 70 include the CRT 8, the image writing unit 15, the communication means (output) 33, and the like.

露光処理部4は、感光材料に画像の露光を行い、この感光材料をプリント作成部5に出力する。プリント作成部5は、露光された感光材料を現像処理して乾燥し、プリントP1、P2、P3を作成する。プリントP1は、サービスサイズ、ハイビジョンサイズ、パノラマサイズ等のプリントであり、プリントP2は、A4サイズのプリントであり、プリントP3は、名刺サイズのプリントである。   The exposure processing unit 4 exposes an image to the photosensitive material and outputs the photosensitive material to the print creating unit 5. The print creating unit 5 develops and exposes the exposed photosensitive material to create prints P1, P2, and P3. The print P1 is a service size, high-definition size, panoramic size print, the print P2 is an A4 size print, and the print P3 is a business card size print.

フィルムスキャナ部9は、アナログカメラにより撮像された現像済みのネガフィルムN、リバーサルフィルム等の透過原稿に記録された駒画像を読み取り、駒画像のデジタル画像信号を取得する。反射原稿入力装置10は、フラットベットスキャナにより、プリントP(写真プリント、書画、各種の印刷物)上の画像を読み取り、デジタル画像信号を取得する。   The film scanner unit 9 reads a frame image recorded on a transparent original such as a developed negative film N or a reversal film imaged by an analog camera, and acquires a digital image signal of the frame image. The reflective original input device 10 reads an image on a print P (photo print, document, various printed materials) by a flat bed scanner, and acquires a digital image signal.

画像読込部14は、PCカード13aやフロッピー(登録商標)ディスク13bに記録された駒画像情報を読み出して制御部7に転送する。この画像読込部14は、画像転送手段30として、PCカード用アダプタ14a、フロッピー(登録商標)ディスク用アダプタ14b等を有する。画像読込部14は、PCカード用アダプタ14aに差し込まれたPCカード13aや、フロッピー(登録商標)ディスク用アダプタ14bに差し込まれたフロッピー(登録商標)ディスク13bに記録された駒画像情報を読み取り、制御部7に転送する。PCカード用アダプタ14aとしては、例えばPCカードリーダやPCカードスロット等が用いられる。   The image reading unit 14 reads frame image information recorded on the PC card 13 a or the floppy (registered trademark) disk 13 b and transfers the frame image information to the control unit 7. The image reading unit 14 includes, as the image transfer means 30, a PC card adapter 14a, a floppy (registered trademark) disk adapter 14b, and the like. The image reading unit 14 reads frame image information recorded on the PC card 13a inserted into the PC card adapter 14a or the floppy (registered trademark) disk 13b inserted into the floppy (registered trademark) disk adapter 14b. Transfer to the control unit 7. For example, a PC card reader or a PC card slot is used as the PC card adapter 14a.

通信手段(入力)32は、画像記録装置1が設置された施設内の別のコンピュータや、インターネット等を介した遠方のコンピュータから、撮像画像を表す画像信号やプリント命令信号を受信する。   The communication means (input) 32 receives an image signal representing a captured image and a print command signal from another computer in the facility where the image recording apparatus 1 is installed, or a distant computer via the Internet or the like.

画像書込部15は、画像搬送部31として、フロッピー(登録商標)ディスク用アダプタ15a、MO用アダプタ15b、光ディスク用アダプタ15cを備えている。画像書込部15は、制御部7から入力される書込信号に従って、フロッピー(登録商標)ディスク用アダプタ15aに差し込まれたフロッピー(登録商標)ディスク16a、MO用アダプタ15bに差し込まれたMO16b、光ディスク用アダプタ15cに差し込まれた光ディスク16cに、本発明における画像処理方法によって生成された画像信号を書き込む。   The image writing unit 15 includes, as the image conveying unit 31, a floppy (registered trademark) disk adapter 15a, an MO adapter 15b, and an optical disk adapter 15c. In accordance with a write signal input from the control unit 7, the image writing unit 15 includes a floppy (registered trademark) disk 16a inserted into the floppy (registered trademark) disk adapter 15a, an MO 16b inserted into the MO adapter 15b, The image signal generated by the image processing method according to the present invention is written to the optical disk 16c inserted into the optical disk adapter 15c.

データ蓄積手段71は、画像情報とそれに対応する注文情報(どの駒の画像から何枚プリントを作成するかの情報、プリントサイズの情報等)とを記憶し、順次蓄積する。   The data storage unit 71 stores and sequentially stores image information and order information corresponding to the image information (information on how many prints are to be created from images of which frames, print size information, and the like).

テンプレート記憶手段72は、サンプル識別情報D1、D2、D3に対応するサンプル画像データである背景画像、イラスト画像等と合成領域を設定する少なくとも1個のテンプレートのデータを記憶している。オペレータの操作によりセットしてテンプレート記憶手段72に予め記憶された複数のテンプレートから所定のテンプレートを選択し、駒画像情報は選択されたテンプレートにより合成し、指定されるサンプル識別情報D1、D2、D3に基づいて選択されたサンプル画像データと、注文に基づく画像データ及び/又は文字データとを合成し、指定によるサンプルに基づくプリントを作成する。このテンプレートによる合成は、周知のクロマキー法によって行なわれる。   The template storage means 72 stores at least one template data for setting a synthesis area and a background image, an illustration image, and the like, which are sample image data corresponding to the sample identification information D1, D2, and D3. A predetermined template is selected from a plurality of templates that are set by the operation of the operator and stored in advance in the template storage means 72, and the frame image information is synthesized by the selected template and designated sample identification information D1, D2, D3 The sample image data selected on the basis of the image data and the image data and / or character data based on the order are combined to create a print based on the specified sample. The synthesis using this template is performed by a well-known chroma key method.

なお、プリントのサンプルを指定するサンプル識別情報D1、D2、D3は、操作部211から入力されるように構成されているが、これらのサンプル識別情報は、プリントのサンプル又は注文シートに記録されているため、OCR等の読み取り手段により読み取ることができる。或いは、オペレータのキーボード操作により入力することもできる。   Note that sample identification information D1, D2, and D3 for specifying a print sample is configured to be input from the operation unit 211. These sample identification information is recorded on a print sample or an order sheet. Therefore, it can be read by reading means such as OCR. Or it can also input by an operator's keyboard operation.

このようにプリントのサンプルを指定するサンプル識別情報D1に対応してサンプル画像データを記録しておき、プリントのサンプルを指定するサンプル識別情報D1を入力し、この入力されるサンプル識別情報D1に基づきサンプル画像データを選択し、この選択されたサンプル画像データと、注文に基づく画像データ及び/又は文字データとを合成し、指定によるサンプルに基づくプリントを作成するため、種々の実物大のサンプルをユーザが実際に手にしてプリントの注文ができ、幅広いユーザの多様な要求に応じることができる。   In this way, sample image data is recorded corresponding to the sample identification information D1 for designating the print sample, the sample identification information D1 for designating the print sample is input, and based on the input sample identification information D1. Select the sample image data, synthesize the selected sample image data with the image data and / or text data based on the order, and create a print based on the specified sample. Can actually place a print order and meet the diverse requirements of a wide range of users.

また、第1のサンプルを指定する第1のサンプル識別情報D2と第1のサンプルの画像データを記憶し、また、第2のサンプルを指定する第2のサンプル識別情報D3と第2のサンプルの画像データを記憶し、指定される第1及び第2のサンプル識別情報D2、D3とに基づいて選択されたサンプル画像データと、注文に基づく画像データ及び/又は文字データとを合成し、指定によるサンプルに基づくプリントを作成するため、さらに多種多様の画像を合成することができ、より一層幅広いユーザの多様な要求に応じたプリントを作成することができる。   Also, the first sample identification information D2 designating the first sample and the image data of the first sample are stored, and the second sample identification information D3 designating the second sample and the second sample The image data is stored, the sample image data selected based on the designated first and second sample identification information D2 and D3, and the image data and / or character data based on the order are synthesized, and according to the designation In order to create a print based on a sample, it is possible to synthesize a wider variety of images, and it is possible to create a print that meets a wider variety of user requirements.

操作部11は、情報入力手段12を有する。情報入力手段12は、例えば、タッチパネル等により構成されており、情報入力手段12の押下信号を入力信号として制御部7に出力する。なお、操作部11は、キーボードやマウス等を備えて構成するようにしてもよい。CRT8は、制御部7から入力された表示制御信号に従って、画像情報等を表示する。   The operation unit 11 includes information input means 12. The information input unit 12 is configured by a touch panel, for example, and outputs a pressing signal of the information input unit 12 to the control unit 7 as an input signal. Note that the operation unit 11 may be configured to include a keyboard, a mouse, and the like. The CRT 8 displays image information and the like according to a display control signal input from the control unit 7.

通信手段(出力)33は、本発明の画像処理を施した後の撮影画像を表す画像信号と、それに付帯するオーダー情報を、画像記録装置1が設置された施設内の他のコンピュータや、インターネット等を介した遠方のコンピュータに対して送信する。   The communication means (output) 33 sends an image signal representing a photographed image after image processing of the present invention and order information attached thereto to other computers in the facility where the image recording apparatus 1 is installed, the Internet Etc. to a distant computer via

図2に示すように、画像記録装置1は、各種デジタルメディアの画像及び画像原稿を分割測光して得られた画像情報を取り込む画像入力手段と、画像処理手段と、処理済の画像を表示、プリント出力、画像記録メディアに書き込む画像出力手段と、通信回線を介して施設内の別のコンピュータやインターネット等を介した遠方のコンピュータに対して画像データと付帯するオーダー情報を送信する手段と、を備える。   As shown in FIG. 2, the image recording apparatus 1 displays an image input unit that captures image information obtained by dividing and metering images of various digital media and an image original, an image processing unit, and a processed image. Print output, image output means for writing to an image recording medium, and means for transmitting image data and accompanying order information to another computer in the facility or a distant computer via the Internet via a communication line, Prepare.

<画像処理部70の内部構成>
図3は、画像処理部70の機能的構成を示すブロック図である。以下、図3を参照して、画像処理部70について詳細に説明する。
<Internal Configuration of Image Processing Unit 70>
FIG. 3 is a block diagram illustrating a functional configuration of the image processing unit 70. Hereinafter, the image processing unit 70 will be described in detail with reference to FIG.

画像処理部70は、図3に示すように、画像調整処理部701、フィルムスキャンデータ処理部702、反射原稿スキャンデータ処理部703、画像データ書式解読処理部704、テンプレート処理部705、CRT固有処理部706、プリンタ固有処理部A707、プリンタ固有処理部B708、画像データ作成処理部709により構成される。   As shown in FIG. 3, the image processing unit 70 includes an image adjustment processing unit 701, a film scan data processing unit 702, a reflection original scan data processing unit 703, an image data format decoding processing unit 704, a template processing unit 705, and CRT specific processing. 706, printer specific processing unit A707, printer specific processing unit B708, and image data creation processing unit 709.

フィルムスキャンデータ処理部702は、フィルムスキャナ部9から入力された画像データに対し、フィルムスキャナ部9固有の校正操作、ネガポジ反転(ネガ原稿の場合)、ゴミキズ除去、コントラスト調整、粒状ノイズ除去、鮮鋭化強調等の処理を施し、処理済の画像データを画像調整処理部701に出力する。また、フィルムサイズ、ネガポジ種別、フィルムに光学的或いは磁気的に記録された主要被写体に関わる情報、撮影条件に関する情報(例えば、APSの記載情報内容)等も併せて画像調整処理部701に出力する。   The film scan data processing unit 702 performs a calibration operation specific to the film scanner unit 9, negative / positive reversal (in the case of a negative document), dust scratch removal, contrast adjustment, granular noise removal, and sharpness for the image data input from the film scanner unit 9. Processing such as conversion enhancement is performed, and processed image data is output to the image adjustment processing unit 701. In addition, the film size, the negative / positive type, information relating to the main subject optically or magnetically recorded on the film, information relating to the photographing conditions (for example, information content described in APS), and the like are also output to the image adjustment processing unit 701. .

反射原稿スキャンデータ処理部703は、反射原稿入力装置10から入力された画像データに対し、反射原稿入力装置10固有の校正操作、ネガポジ反転(ネガ原稿の場合)、ゴミキズ除去、コントラスト調整、ノイズ除去、鮮鋭化強調等の処理を施し、処理済の画像データを画像調整処理部701に出力する。   The reflection original scan data processing unit 703 performs a calibration operation unique to the reflection original input device 10, negative / positive reversal (in the case of a negative original), dust flaw removal, contrast adjustment, and noise removal on the image data input from the reflection original input device 10. Then, processing such as sharpening enhancement is performed, and processed image data is output to the image adjustment processing unit 701.

画像データ書式解読処理部704は、画像転送手段30及び/又は通信手段(入力)32から入力された画像データに対し、その画像データのデータ書式に従って、必要に応じて圧縮符号の復元、色データの表現方法の変換等の処理を施し、画像処理部70内の演算に適したデータ形式に変換し、画像調整処理部701に出力する。また、画像データ書式解読処理部704は、操作部11、通信手段(入力)32、画像転送手段30の何れかから出力画像の大きさが指定された場合、その指定された情報を検出し、画像調整処理部701に出力する。なお、画像転送手段30により指定される出力画像の大きさについての情報は、画像転送手段30が取得した画像データのヘッダ情報、タグ情報に埋め込まれている。   The image data format decoding processing unit 704 restores the compression code, if necessary, according to the data format of the image data input from the image transfer means 30 and / or the communication means (input) 32, and the color data. Are converted into a data format suitable for computation in the image processing unit 70 and output to the image adjustment processing unit 701. Further, when the size of the output image is specified from any of the operation unit 11, the communication unit (input) 32, and the image transfer unit 30, the image data format decoding processing unit 704 detects the specified information, The image is output to the image adjustment processing unit 701. Information about the size of the output image designated by the image transfer means 30 is embedded in the header information and tag information of the image data acquired by the image transfer means 30.

画像調整処理部701は、操作部11又は制御部7の指令に基づいて、フィルムスキャナ部9、反射原稿入力装置10、画像転送手段30、通信手段(入力)32、テンプレート処理部705から受け取った画像データに対して、後述する階調変換処理Aを含む最適化処理を施して、出力媒体上での鑑賞に最適化された出力用のデジタル画像データを生成し、CRT固有処理部706、プリンタ固有処理部A707、プリンタ固有処理部B708、画像データ作成処理部709、データ蓄積手段71に出力する。   The image adjustment processing unit 701 receives from the film scanner unit 9, the reflection original input device 10, the image transfer unit 30, the communication unit (input) 32, and the template processing unit 705 based on the command from the operation unit 11 or the control unit 7. The image data is subjected to optimization processing including gradation conversion processing A, which will be described later, to generate digital image data for output optimized for viewing on the output medium. The CRT specific processing unit 706, printer The data is output to the unique processing unit A 707, the printer unique processing unit B 708, the image data creation processing unit 709, and the data storage unit 71.

最適化処理においては、例えばsRGB規格に準拠したCRTディスプレイモニタに表示することを前提とした場合、sRGB規格の色域内で最適な色再現が得られるように処理される。銀塩印画紙への出力を前提とした場合、銀塩印画紙の色域内で最適な色再現が得られるように処理される。また前記色域の圧縮の以外にも、16bitから8bitへの階調圧縮、出力画素数の低減、及び出力デバイスの出力特性(LUT)への対応処理等も含まれる。さらにノイズ抑制、鮮鋭化、彩度調整、或いは覆い焼き処理等の階調圧縮処理が行われることは言うまでもない。   In the optimization process, for example, when it is assumed that the image is displayed on a CRT display monitor compliant with the sRGB standard, the optimal color reproduction is performed within the sRGB standard color gamut. If output to silver salt photographic paper is assumed, processing is performed so that optimum color reproduction is obtained within the color gamut of silver salt photographic paper. In addition to the compression of the color gamut, gradation compression from 16 bits to 8 bits, reduction of the number of output pixels, and processing for handling output characteristics (LUT) of the output device are also included. Furthermore, it goes without saying that tone compression processing such as noise suppression, sharpening, saturation adjustment, or dodging processing is performed.

テンプレート処理部705は、画像調整処理部701からの指令に基づいて、テンプレート記憶手段72から所定の画像データ(テンプレート)を読み出して、画像処理対象の画像データとテンプレートを合成するテンプレート処理を行い、テンプレート処理後の画像データを画像調整処理部701に出力する。   The template processing unit 705 reads out predetermined image data (template) from the template storage unit 72 based on a command from the image adjustment processing unit 701, and performs template processing for combining the image data to be processed with the template. The image data after the template processing is output to the image adjustment processing unit 701.

CRT固有処理部706は、画像調整処理部701から入力された画像データに対して、必要に応じて画素数変更やカラーマッチング等の処理を施し、制御情報等表示が必要な情報と合成した表示用の画像データをCRT8に出力する。   The CRT specific processing unit 706 performs a process such as changing the number of pixels and color matching on the image data input from the image adjustment processing unit 701 as necessary, and combines the information with information that needs to be displayed, such as control information. Image data is output to the CRT 8.

プリンタ固有処理部A707は、必要に応じてプリンタ固有の校正処理、カラーマッチング、画素数変更等の処理を行い、処理済の画像データを露光処理部4に出力する。   The printer-specific processing unit A707 performs printer-specific calibration processing, color matching, pixel number change processing, and the like as necessary, and outputs processed image data to the exposure processing unit 4.

本発明の画像記録装置1に、大判インクジェットプリンタ等の外部プリンタ51が接続可能な場合には、接続するプリンタ装置毎にプリンタ固有処理部B708が備えられている。このプリンタ固有処理部B708は、プリンタ固有の校正処理、カラーマッチング、画素数変更等の処理を施し、処理済の画像データを外部プリンタ51に出力する。   When an external printer 51 such as a large-format ink jet printer can be connected to the image recording apparatus 1 of the present invention, a printer specific processing unit B708 is provided for each printer apparatus to be connected. The printer-specific processing unit B708 performs printer-specific calibration processing, color matching, pixel number change, and the like, and outputs processed image data to the external printer 51.

画像データ書式作成処理部709は、画像調整処理部701から入力された画像データに対して、必要に応じてJPEG、TIFF、Exif等に代表される各種の汎用画像フォーマットへの変換を施し、処理済の画像データを画像搬送部31や通信手段(出力)33に出力する。   The image data format creation processing unit 709 converts the image data input from the image adjustment processing unit 701 into various general-purpose image formats typified by JPEG, TIFF, Exif, and the like as necessary. The completed image data is output to the image transport unit 31 and the communication means (output) 33.

なお、図3に示した、フィルムスキャンデータ処理部702、反射原稿スキャンデータ処理部703、画像データ書式解読処理部704、画像調整処理部701、CRT固有処理部706、プリンタ固有処理部A707、プリンタ固有処理部B708、画像データ作成処理部709、という区分は、画像処理部70の機能の理解を助けるために設けた区分であり、必ずしも物理的に独立したデバイスとして実現される必要はなく、例えば、単一のCPUによるソフトウエア処理の種類の区分として実現されてもよい。   3, the film scan data processing unit 702, the reflection original scan data processing unit 703, the image data format decoding processing unit 704, the image adjustment processing unit 701, the CRT specific processing unit 706, the printer specific processing unit A707, the printer The divisions of the unique processing unit B708 and the image data creation processing unit 709 are provided to assist understanding of the functions of the image processing unit 70, and are not necessarily realized as physically independent devices. Alternatively, it may be realized as a type of software processing performed by a single CPU.

次に、本発明の動作について説明する。
図4は、画像調整処理部701により実行される階調変換処理Aを示すフローチャートである。本処理は、ROM等の記憶部(図示略)に記憶されている階調変換処理AプログラムとCPUとの協働によるソフトウエア処理により実現されるものであり、フィルムスキャンデータ処理部702、反射原稿スキャンデータ処理部703又は画像データ書式解読処理部704から画像データ(画像信号)が入力されることにより開始する。この階調変換処理Aの実行により、本発明の請求項14、16、17、19、27、29、30、32に記載のデータ取得手段、HS分割手段、明度偏倚量算出手段、階調変換処理条件決定手段、階調変換処理手段、及び請求項20、33に記載の2次元ヒストグラム作成手段が実現される。
以下、図4を参照して、階調変換処理Aについて説明する。
Next, the operation of the present invention will be described.
FIG. 4 is a flowchart showing the gradation conversion process A executed by the image adjustment processing unit 701. This processing is realized by software processing in cooperation with the gradation conversion processing A program stored in a storage unit (not shown) such as a ROM and the CPU, and includes a film scan data processing unit 702, reflection The process starts when image data (image signal) is input from the document scan data processing unit 703 or the image data format decoding processing unit 704. By executing this gradation conversion processing A, the data acquisition means, HS division means, brightness deviation amount calculation means, gradation conversion according to claims 14, 16, 17, 19, 27, 29, 30, 32 of the present invention A processing condition determining unit, a gradation conversion processing unit, and a two-dimensional histogram creating unit according to claims 20 and 33 are realized.
Hereinafter, the gradation conversion processing A will be described with reference to FIG.

フィルムスキャンデータ処理部702、反射原稿スキャンデータ処理部703又は画像データ書式解読処理部704から画像データが入力されると、入力画像データがRGBの表色系からL*a*b*やHSVなどの表色系に変換されることにより、この入力画像データの画素毎の色相値、彩度値及び明度値が取得され、図示しないRAMに記憶される(ステップS1)。   When image data is input from the film scan data processing unit 702, the reflection original scan data processing unit 703, or the image data format decoding processing unit 704, the input image data is converted into L * a * b * or HSV from the RGB color system. Are converted into the color system of the above, the hue value, saturation value, and brightness value for each pixel of the input image data are acquired and stored in a RAM (not shown) (step S1).

以下、入力画像データの各画素のRGB値から色相値、彩度値及び明度値を取得するための算出式の具体例を示す。
まず、RGBからHSV表色系に変換することにより色相値、彩度値、明度値を得る例について、プログラムコード(c言語)による具体例を[数1]に挙げて詳述する。この変換プログラムを、以下HSV変換プログラムと称す。HSV表色系は色を色相(Hue)、彩度(Saturation)、明度(Value又はBrightness)の3つの要素で表し、マンセルにより提案された表色体系を元にして考案されたものである。
Hereinafter, specific examples of calculation formulas for acquiring the hue value, the saturation value, and the brightness value from the RGB values of each pixel of the input image data will be shown.
First, an example of obtaining a hue value, a saturation value, and a lightness value by converting from RGB to the HSV color system will be described in detail with reference to [Expression 1]. This conversion program is hereinafter referred to as an HSV conversion program. The HSV color system is devised based on the color system proposed by Munsell, which expresses colors with three elements of hue, saturation, and value (brightness).

入力画像データであるデジタル画像データの値を、InR、InG、InBと定義する。また、算出された色相値をOutHとし、スケールを0〜360と定義し、彩度値をOutS、明度値をOutVとし、単位を0〜255と定義する。

Figure 2005192162
The values of digital image data that is input image data are defined as InR, InG, and InB. The calculated hue value is defined as OutH, the scale is defined as 0 to 360, the saturation value is defined as OutS, the lightness value is defined as OutV, and the unit is defined as 0 to 255.
Figure 2005192162

表色系には、HSVの他、L*a*b*、L*u*v*、ハンターL*a*b*、YCC、YUV、YIQなど如何なるものを用いても良いが、本発明では、直接色相値、彩度値及び明度値が得られるHSVを用いることが望ましい。   Any color system such as L * a * b *, L * u * v *, Hunter L * a * b *, YCC, YUV, YIQ may be used in addition to HSV. It is desirable to use an HSV that can directly obtain a hue value, a saturation value, and a brightness value.

HSV以外の表色系を用いる参考例として、以下にL*a*b*を用いる例について説明する。
L*a*b*表色系(CIE1976)とは、CIE (国際照明委員会)が、1976年に定めた均等色空間の1つであり、IEC61966-2-1が規定する下記[数2]、JISZ8729が規定する下記[数3]を適用することで、RGB値からL*a*b*値を得る。得られたa*b*から下記[数4]により、色相値(H')、彩度値(S')を得る。ただし、ここで求められる色相(H')、彩度(S')は、上述したHSV表色系の色相値(H)、彩度値(S)とは異なるものである。
As a reference example using a color system other than HSV, an example using L * a * b * will be described below.
The L * a * b * color system (CIE1976) is one of the uniform color spaces established by the CIE (International Commission on Illumination) in 1976, and is defined by IEC61966-2-1 [Equation 2 The L * a * b * value is obtained from the RGB value by applying the following [Equation 3] defined by JISZ8729. From the obtained a * b *, the hue value (H ′) and the saturation value (S ′) are obtained by the following [Equation 4]. However, the hue (H ′) and saturation (S ′) obtained here are different from the hue value (H) and saturation value (S) of the HSV color system described above.

Figure 2005192162
Figure 2005192162
Figure 2005192162
Figure 2005192162
Figure 2005192162
Figure 2005192162

上記[数2]は、8bitの入力画像データ(RsRGB(8)、GsRGB(8)、BsRGB(8))から等色関数の三刺激値(X、Y、Z)に変換することを示している。ここで、等色関数とは、人間の目の分光感度分布を示す関数である。ここで、[数2]における入力画像データ(RsRGB(8)、GsRGB(8)、BsRGB(8))のsRGBは、入力画像データのRGB値がsRGB規格に準拠することを示し、(8)は、8bit(0〜255)の画像データであることを示す。 The above [Equation 2] is converted from 8- bit input image data (R sRGB (8) , G sRGB (8) , B sRGB (8) ) to tristimulus values (X, Y, Z) of color matching functions. Is shown. Here, the color matching function is a function indicating the spectral sensitivity distribution of the human eye. Here, sRGB of input image data (R sRGB (8) , G sRGB (8) , B sRGB (8) ) in [Equation 2] indicates that the RGB value of the input image data conforms to the sRGB standard, (8) indicates 8-bit (0 to 255) image data.

また、上記[数3]は、三刺激値(X、Y、Z)からL*a*b*に変換することを示している。[数3]のXn、Yn、Znは、夫々標準白色板のX、Y、Zを示し、D65は、色温度が6500Kの光を標準白色板に照明したときの刺激値を示す。[数3]では、Xn=0.95、Yn=1.00、Zn=1.09である。 Further, the above [Expression 3] indicates that the tristimulus values (X, Y, Z) are converted into L * a * b *. Xn [Expression 3], Yn, Zn are X each standard white plate, Y, indicates Z, D 65 represents a stimulus value when the color temperature is illuminated with light of 6500K to standard white plate. In [Formula 3], Xn = 0.95, Yn = 1.00, and Zn = 1.09.

入力画像データの各画素の色相値及び彩度値が取得されると、X軸を色相値(H)、Y軸を彩度値(S)とした座標平面内に、画素の累積度数分布を示す2次元ヒストグラムが作成される(ステップS2)。   When the hue value and saturation value of each pixel of the input image data are acquired, the cumulative frequency distribution of the pixels in the coordinate plane with the hue value (H) as the X axis and the saturation value (S) as the Y axis is obtained. A two-dimensional histogram is generated (step S2).

図5に、2次元ヒストグラムの一例を示す。図5に示す2次元ヒストグラムは、X軸を色相値(H)、Y軸を彩度値(S)とした座標平面内に、画素の累積度数分布の値を有する格子点を表したものである。座標平面の縁にある格子点は、色相値(H)が18、彩度値(S)が約13の範囲に分布する画素数の累積度数を保持している。それ以外の格子点は、色相値(H)が36、彩度値(S)が約25の範囲に分布する画素数の累積度数を保持している。例えば、領域Aは、色相値(H)が70〜184の緑色相領域を表す。   FIG. 5 shows an example of a two-dimensional histogram. The two-dimensional histogram shown in FIG. 5 represents a grid point having a value of the cumulative frequency distribution of pixels in a coordinate plane having a hue value (H) on the X axis and a saturation value (S) on the Y axis. is there. The grid points at the edge of the coordinate plane hold the cumulative frequency of the number of pixels distributed in the range where the hue value (H) is 18 and the saturation value (S) is about 13. The remaining grid points hold the cumulative frequency of the number of pixels distributed in the range where the hue value (H) is 36 and the saturation value (S) is about 25. For example, the area A represents a green hue area having a hue value (H) of 70 to 184.

次いで、作成された2次元ヒストグラムに基づいて、入力画像データが所定の色相及び彩度の組み合わせからなる領域に分割される(ステップS3)。具体的には、作成された2次元ヒストグラムが、予め定義された少なくとも1つの色相値及び1つの彩度値を境界に、少なくとも4つの平面に分割されることにより、入力画像データが所定の色相及び彩度の組み合わせからなる領域に分割される。本発明では、少なくとも1つの色相値と、1つの彩度値により、4つの平面に分割することが望ましい。境界とする色相値としては、前記HSV変換プログラムによる算出値で70と定義することが望ましい。また、境界とする彩度値としては、前記HSV変換プログラムによる算出値で、128と定義することが望ましい。本実施の形態においても、2次元ヒストグラム(入力画像データ)を70の色相値、128の彩度値により分割するものとする。これにより、2次元ヒストグラム(入力画像データ)を、少なくとも、肌色を含む確立の高い肌色領域(色相値0〜69及び彩度値0〜128)に分割することが可能となる。   Next, based on the created two-dimensional histogram, the input image data is divided into regions composed of a predetermined combination of hue and saturation (step S3). Specifically, the generated two-dimensional histogram is divided into at least four planes with at least one hue value and one saturation value defined in advance as a boundary, so that the input image data has a predetermined hue. And a region composed of combinations of saturations. In the present invention, it is desirable to divide into four planes by at least one hue value and one saturation value. The hue value used as the boundary is preferably defined as 70 calculated by the HSV conversion program. Further, it is desirable to define the saturation value as the boundary as 128 calculated by the HSV conversion program. Also in the present embodiment, the two-dimensional histogram (input image data) is divided by 70 hue values and 128 saturation values. As a result, it is possible to divide the two-dimensional histogram (input image data) into at least a well-established skin color region (hue values 0 to 69 and saturation values 0 to 128) including the skin color.

この肌色領域の範囲は、調査の結果に基づいて決定したもので、およそ1000駒のフィルムスキャン画像について、人間の肌色の検出率が最も高くなる範囲を調べた結果から算出されたものである。   The range of the skin color region is determined based on the result of the investigation, and is calculated from the result of examining the range in which the human skin color detection rate is the highest for about 1000 film scan images.

入力画像データが所定の色相及び彩度の組み合わせからなる領域に分割されると、所定の分割領域、即ち、前述の肌色領域の画像全体に対する明度偏倚量が算出される(ステップS4)。明度偏倚量の算出は、以下のようにして行われる。
まず、上述の肌色領域に分布する累積度数分布のシグマ値と肌色領域の全画素の明度値の総和から、肌色領域の平均明度値(A)を算出する。次に、画像全体の最大明度(=B)、最小明度(=C)を取得する。そして、肌色領域の画像全体に対する明度偏倚量(=D)を、下記[式1]より算出する。
[式1]
D = (A-B)/(C-B)
When the input image data is divided into regions composed of a predetermined combination of hue and saturation, a lightness deviation amount for the entire image of the predetermined divided region, that is, the aforementioned skin color region is calculated (step S4). The lightness deviation amount is calculated as follows.
First, the average brightness value (A) of the skin color area is calculated from the sum of the sigma value of the cumulative frequency distribution distributed in the skin color area and the brightness value of all the pixels in the skin color area. Next, the maximum brightness (= B) and the minimum brightness (= C) of the entire image are acquired. Then, the lightness deviation amount (= D) for the entire skin color region image is calculated from the following [Equation 1].
[Formula 1]
D = (AB) / (CB)

上述した明度偏倚量は、0.5より大きな値のとき画像全体の平均明度値に対して肌色領域の平均明度値が低く、0.5より小さな値のとき画像全体の平均明度値に対して肌色領域の平均明度値が高いことを示している。また、0.5の時、肌色領域の平均明度値は、画像全体の平均明度値に等しい。   When the value of the above-mentioned lightness deviation is greater than 0.5, the average brightness value of the skin color area is lower than the average brightness value of the entire image, and when the value is less than 0.5, the average of the skin color area is compared with the average brightness value of the entire image. The brightness value is high. When 0.5, the average brightness value of the skin color area is equal to the average brightness value of the entire image.

明度偏倚量が算出されると、この算出された明度偏倚量に基づいて、階調変換処理条件が決定される(ステップS5)。   When the brightness deviation amount is calculated, gradation conversion processing conditions are determined based on the calculated brightness deviation amount (step S5).

ここで、本発明でいう階調変換処理は、撮影シーン中の特定領域、例えば、顔領域の明度を適切な値に補正するように調整する処理を意図している。一般的に、階調変換処理を行う際に必要な、階調変換後の目標値を定める指標として、画像全体の平均明度値を用いるのが一般的である。しかしながら、逆光シーンや、ストロボ撮影シーンなどでは、画像中に極端に明るい領域と、暗い領域とが混在し、かつ重要な被写体である顔領域の明るさが明るい領域と暗い領域のどちらか一方に偏倚するという特徴を有している。そこで、顔領域の明度偏倚量に応じて調整することが望まれる。   Here, the gradation conversion process in the present invention is intended to be a process of adjusting the brightness of a specific area in the photographic scene, for example, the face area to be corrected to an appropriate value. In general, the average brightness value of the entire image is generally used as an index for determining a target value after gradation conversion, which is necessary when performing gradation conversion processing. However, in backlit scenes or flash shooting scenes, extremely bright areas and dark areas are mixed in the image, and the brightness of the face area, which is an important subject, is either bright or dark. It has the characteristic of being biased. Therefore, it is desired to adjust according to the brightness deviation amount of the face area.

顔領域の抽出方法には種々の方法が知られているが、本発明では、上述した肌色領域(前記HSV変換プログラムによる算出値で色相値が0〜69、彩度値が0〜128)を顔領域として抽出している。ステップS4で求められた明度偏倚量は、画像全体に対する顔領域の明度偏倚量である。   Various methods are known as face area extraction methods. In the present invention, the above-described skin color area (the hue value is 0 to 69 and the saturation value is 0 to 128 as calculated by the HSV conversion program) is used. Extracted as a face area. The brightness deviation amount obtained in step S4 is the brightness deviation amount of the face area with respect to the entire image.

なお、上記の肌色領域を抽出する方法と併せて、顔領域を抽出する画像処理を別途行い、抽出精度を向上させることが望ましい。顔領域を抽出する画像処理には、公知の如何なる処理を用いても良い。前記公知の顔領域を抽出する画像処理の例としては、単純領域拡張法等が挙げられる。単純領域拡張法とは、肌色の定義に当てはまる画素(肌色画素)が離散的に抽出される場合に、周囲の画素について、前記離散的に抽出された肌色画素との差を求め、差が所定の闘値よりも小さい場合には肌色画素と判断し、次第に顔領域を拡張させていくことで、顔領域としての抽出を可能とするものである。また、ニューラルネットワークによる学習機能を用いて肌色領域から顔領域を抽出することも可能である。   In addition to the above method for extracting the skin color area, it is desirable to separately perform image processing for extracting the face area to improve the extraction accuracy. Any known process may be used for the image process for extracting the face area. Examples of the image processing for extracting the known face area include a simple area expansion method. In the simple area expansion method, when pixels (skin color pixels) that meet the skin color definition are discretely extracted, the difference between the surrounding pixels and the discretely extracted skin color pixels is obtained, and the difference is predetermined. If it is smaller than the threshold value, it is determined as a skin color pixel, and the face area is gradually expanded to enable extraction as a face area. It is also possible to extract a face region from a skin color region using a learning function based on a neural network.

算出された明度偏倚量に基づいて階調変換処理条件を決定するとは、即ち、算出された明度偏倚量に基づいて、入力画像データに適用する階調変換曲線を決定することである。
階調変換曲線の決定は、算出された明度偏倚量に基づいて、階調変換曲線をその都度作り変えることで行っても良いし、予め階調変換曲線を複数用意しておき、明度偏倚量に応じて階調変換曲線を選択し適用する態様で有っても良い。
To determine the gradation conversion processing condition based on the calculated brightness deviation amount means to determine a gradation conversion curve to be applied to the input image data based on the calculated brightness deviation amount.
The gradation conversion curve may be determined by changing the gradation conversion curve each time based on the calculated lightness deviation amount. Alternatively, a plurality of gradation conversion curves are prepared in advance, and the lightness deviation amount is prepared. The gradation conversion curve may be selected and applied according to the above.

図6に明度偏倚量に応じて階調変換曲線を選択し適用する態様について例示する。図6において、階調変換曲線L1は、明度偏倚量(=D)が0.65 ≦ D < 0.75、階調変換曲線L2は、明度偏倚量が0.55 ≦ D < 0.65、階調変換曲線L3は、明度偏倚量が0.45 ≦ D < 0.55、階調変換曲線L4は、明度偏倚量が0.35 ≦ D < 0.45、階調変換曲線L5は、明度偏倚量が0.25 ≦ D < 0.35の場合に決定されるものである。   FIG. 6 illustrates an example in which a gradation conversion curve is selected and applied according to the lightness deviation amount. In FIG. 6, the gradation conversion curve L1 has a lightness deviation amount (= D) of 0.65 ≦ D <0.75, the gradation conversion curve L2 has a lightness deviation amount of 0.55 ≦ D <0.65, and the gradation conversion curve L3 has a lightness value. The deviation amount is 0.45 ≦ D <0.55, the gradation conversion curve L4 is determined when the brightness deviation amount is 0.35 ≦ D <0.45, and the gradation conversion curve L5 is determined when the brightness deviation amount is 0.25 ≦ D <0.35. is there.

階調変換曲線が調整されると、この階調変換曲線が入力画像データに適用され、階調変換処理が施され(ステップS6)、本処理は終了する。   When the tone conversion curve is adjusted, the tone conversion curve is applied to the input image data, the tone conversion process is performed (step S6), and this process ends.

以上説明したように、画像記録装置1によれば、入力画像データの色相値及び彩度値を取得して、x軸を色相値(H)、y軸を彩度値(S)とした座標平面内に、画素の累積度数分布を示す2次元ヒストグラムを作成し、この2次元ヒストグラムを所定の色相及び彩度の組み合わせからなる領域に分割し、所定の分割領域、即ち肌色領域を顔領域として、顔領域の画像全体に対する明度偏倚量を算出し、この算出された明度偏倚量に基づいて階調変換曲線を決定し、決定された階調変換曲線を入力画像データに適用して階調変換処理を施す。従って、肌色の明度補正精度の高い、高精度な階調変換処理を施すことが可能となる。特に、逆光シーンやストロボ近接撮影のように、画像中に極端に明るい領域と、暗い領域とが混在し、かつ重要な被写体である顔領域の明るさが明るい領域と暗い領域のどちらか一方に偏倚する場合に有効である。   As described above, according to the image recording apparatus 1, the hue value and the saturation value of the input image data are acquired, and the coordinates where the x-axis is the hue value (H) and the y-axis is the saturation value (S). A two-dimensional histogram showing the cumulative frequency distribution of pixels is created in a plane, and the two-dimensional histogram is divided into regions each having a predetermined combination of hue and saturation, and a predetermined divided region, that is, a skin color region is used as a face region. Calculating a brightness deviation amount for the entire image of the face region, determining a gradation conversion curve based on the calculated brightness deviation amount, and applying the determined gradation conversion curve to the input image data to convert the gradation Apply processing. Therefore, it is possible to perform high-precision gradation conversion processing with high flesh color brightness correction accuracy. In particular, as in backlit scenes and close-up flash photography, extremely bright areas and dark areas are mixed in the image, and the brightness of the face area, which is an important subject, is either bright or dark. Effective when biased.

〔第2の実施の形態〕
次に、本発明の第2の実施の形態について説明する。
なお、本実施の形態に係る画像記録装置1の構成は、図1で示したものと同様であるので説明を省略する。
[Second Embodiment]
Next, a second embodiment of the present invention will be described.
The configuration of the image recording apparatus 1 according to the present embodiment is the same as that shown in FIG.

以下、本第2の実施の形態の動作について説明する。
図7は、画像調整処理部701により実行される階調変換処理Bを示すフローチャートである。本処理は、ROM等の記憶部(図示略)に記憶されている階調変換処理BプログラムとCPUとの協働によるソフトウエア処理により実現されるものであり、フィルムスキャンデータ処理部702、反射原稿スキャンデータ処理部703又は画像データ書式解読処理部704から画像データ(画像信号)が入力されることにより開始する。この階調変換処理Bの実行により、本発明の請求項15、16、18、19、28、29、31、32に記載のデータ取得手段、HS分割手段、HS占有率算出手段、寄与率算出手段、階調変換処理条件決定手段、階調変換処理手段、及び請求項20、33に記載の2次元ヒストグラム作成手段が実現される。
The operation of the second embodiment will be described below.
FIG. 7 is a flowchart showing the gradation conversion process B executed by the image adjustment processing unit 701. This processing is realized by software processing in cooperation with the gradation conversion processing B program stored in a storage unit (not shown) such as a ROM and the CPU, and includes a film scan data processing unit 702, reflection The process starts when image data (image signal) is input from the document scan data processing unit 703 or the image data format decoding processing unit 704. By executing this gradation conversion processing B, the data acquisition means, HS division means, HS occupancy rate calculation means, contribution rate calculation according to claims 15, 16, 18, 19, 28, 29, 31, 32 of the present invention Means, gradation conversion processing condition determination means, gradation conversion processing means, and two-dimensional histogram creation means according to claims 20 and 33.

以下、図7を参照して、階調変換処理Bについて説明する。
フィルムスキャンデータ処理部702、反射原稿スキャンデータ処理部703又は画像データ書式解読処理部704から画像データが入力されると、入力画像データがRGBの表色系からL*a*b*やHSVなどの表色系に変換されることにより、この入力画像データの画素毎の色相値と彩度値が算出され、図示しないRAMに記憶される(ステップS11)。各画素のRGB値から色相値及び彩度値を算出するための算出式としては、例えば、上記第1の実施の形態で説明した[プログラム例]、[数2]〜[数4]等を用いる。
Hereinafter, the gradation conversion process B will be described with reference to FIG.
When image data is input from the film scan data processing unit 702, the reflection original scan data processing unit 703, or the image data format decoding processing unit 704, the input image data is converted into L * a * b * or HSV from the RGB color system. Are converted into the color system, the hue value and the saturation value for each pixel of the input image data are calculated and stored in a RAM (not shown) (step S11). As calculation formulas for calculating the hue value and the saturation value from the RGB values of each pixel, for example, [Program Example], [Equation 2] to [Equation 4] described in the first embodiment are used. Use.

画像データの各画素の色相値及び彩度値が算出されると、X軸を色相値(H)、Y軸を彩度値(S)とした座標平面内に、画素の累積度数分布を示す2次元ヒストグラムが作成される(ステップS12)。ここで作成される2次元ヒストグラムとしては、例えば、図5で説明したのと同様のヒストグラムである。   When the hue value and saturation value of each pixel of the image data are calculated, the cumulative frequency distribution of the pixels is shown in the coordinate plane with the hue value (H) as the X axis and the saturation value (S) as the Y axis. A two-dimensional histogram is created (step S12). The two-dimensional histogram created here is, for example, the same histogram as described in FIG.

次いで、作成された2次元ヒストグラムに基づいて、入力画像データが所定の色相及び彩度の組み合わせからなる領域に分割される(ステップS13)。具体的には、作成された2次元ヒストグラムが、予め定義された少なくとも1つの色相値及び1つの彩度値を境界に、少なくとも4つの平面に分割されることにより、入力画像データが所定の色相及び彩度の組み合わせからなる領域に分割される。本発明では、少なくとも1つの色相値と、1つの彩度値により、4つの平面に分割することが望ましい。境界とする色相値としては、前記HSV変換プログラムによる算出値で70と定義することが望ましい。また、境界とする彩度値としては、前記HSV変換プログラムによる算出値で、128と定義することが望ましい。本実施の形態においても、2次元ヒストグラム(入力画像データ)を70の色相値、128の彩度値により分割するものとする。これにより、2次元ヒストグラム(入力画像データ)を、少なくとも、肌色を含む確立の高い肌色領域(色相値0〜69及び彩度値0〜128)に分割することが可能となる。   Next, based on the created two-dimensional histogram, the input image data is divided into regions each having a predetermined combination of hue and saturation (step S13). Specifically, the generated two-dimensional histogram is divided into at least four planes with at least one hue value and one saturation value defined as boundaries as boundaries, so that the input image data has a predetermined hue. And a region composed of combinations of saturations. In the present invention, it is desirable to divide into four planes by at least one hue value and one saturation value. The hue value used as the boundary is preferably defined as 70 calculated by the HSV conversion program. Further, it is desirable to define the saturation value as the boundary as 128 calculated by the HSV conversion program. Also in the present embodiment, the two-dimensional histogram (input image data) is divided by 70 hue values and 128 saturation values. As a result, it is possible to divide the two-dimensional histogram (input image data) into at least a well-established skin color region (hue values 0 to 69 and saturation values 0 to 128) including the skin color.

この肌色領域の範囲は、調査の結果に基づいて決定したもので、およそ1000駒のフィルムスキャン画像について、人間の肌色の検出率が最も高くなる範囲を調べた結果から算出されたものである。   The range of the skin color region is determined based on the result of the investigation, and is calculated from the result of examining the range in which the human skin color detection rate is the highest for about 1000 film scan images.

入力画像データが所定の色相及び彩度の組み合わせからなる領域に分割されると、所定の分割領域、即ち、前述の肌色領域内の累積度数分布のシグマ値を入力画像データの全画素数で除算することにより、肌色領域の画素が入力画像データの画面全体に占める割合、即ち肌色領域の占有率が算出される(ステップS14)。   When the input image data is divided into regions composed of a predetermined combination of hue and saturation, the sigma value of the cumulative frequency distribution in the predetermined divided region, that is, the aforementioned skin color region, is divided by the total number of pixels of the input image data. By doing this, the ratio of the pixels of the skin color area to the entire screen of the input image data, that is, the occupation ratio of the skin color area is calculated (step S14).

所定の分割領域の占有率が算出されると、算出された占有率に基づいて、この領域、即ち、肌色領域の階調変換処理への寄与率が算出される(ステップS15)。肌色領域の寄与率(Rsk)は、肌色領域の占有率(e)に基づき下記[式2]により求められる。
[式2]
Rsk=e
When the occupation ratio of the predetermined divided area is calculated, the contribution ratio of the area, that is, the skin color area, to the gradation conversion process is calculated based on the calculated occupation ratio (step S15). The contribution ratio (Rsk) of the skin color area is obtained by the following [Equation 2] based on the occupation ratio (e) of the skin color area.
[Formula 2]
Rsk = e

次いで、この算出された寄与率に基づいて、階調変換処理条件が決定される(ステップS16)。   Next, tone conversion processing conditions are determined based on the calculated contribution rate (step S16).

ここで、本発明でいう階調変換処理は、撮影シーン中の特定領域、例えば、重要な被写体である顔領域の明度を適切な値に補正するように調整する処理を意図している。しかしながら、顔領域が小さい場合と大きい場合とでは、当然主要被写体としての重要度が異なるので、顔領域が小さい場合には、顔領域以外の被写体(例えば、風景)を適正な明度となるよう補正される。従って、顔領域の占有率、即ち、顔領域の寄与率が高い場合には、階調変換処理を行う際に必要な、階調変換後の目標値を定める指標となる平均明度入力値は顔領域の平均明度値のみで算出され、顔領域の寄与率が低い場合には、平均明度入力値は顔領域以外で算出され、その間の寄与率では、顔領域と顔領域以外の割合は、寄与率に応じて調整されて平均明度入力値が算出され、算出された平均明度入力値に基づいて階調変換条件が決定される。   Here, the gradation conversion processing referred to in the present invention is intended to be processing for adjusting a brightness of a specific area in a shooting scene, for example, a face area as an important subject to be corrected to an appropriate value. However, the importance as the main subject naturally differs between the case where the face area is small and the case where the face area is large. Therefore, when the face area is small, correction is performed so that subjects other than the face area (for example, landscape) have appropriate brightness. Is done. Therefore, when the occupation ratio of the face area, that is, the contribution ratio of the face area is high, the average brightness input value, which is an index for determining the target value after the gradation conversion, necessary for the gradation conversion processing, is the face When only the average brightness value of the area is calculated and the contribution ratio of the face area is low, the average brightness input value is calculated for other than the face area. The average brightness input value is calculated according to the rate, and the gradation conversion condition is determined based on the calculated average brightness input value.

顔領域の抽出方法には種々の方法が知られているが、本発明では、上述した肌色領域(前記HSV変換プログラムによる算出値で色相値が0〜69、彩度値が0〜128)を顔領域として抽出している。   Various methods are known as face area extraction methods. In the present invention, the above-described skin color area (the hue value is 0 to 69 and the saturation value is 0 to 128 as calculated by the HSV conversion program) is used. Extracted as a face area.

なお、上記の肌色領域を抽出する方法と併せて、顔領域を抽出する画像処理を別途行い、抽出精度を向上させることが望ましい。顔領域を抽出する画像処理には、公知の如何なる処理を用いても良い。前記公知の顔領域を抽出する画像処理の例としては、単純領域拡張法等が挙げられる。単純領域拡張法とは、肌色の定義に当てはまる画素(肌色画素)が離散的に抽出される場合に、周囲の画素について、前記離散的に抽出された肌色画素との差を求め、差が所定の闘値よりも小さい場合には肌色画素と判断し、次第に顔領域を拡張させていくことで、顔領域としての抽出を可能とするものである。また、ニューラルネットワークによる学習機能を用いて肌色領域から顔領域を抽出することも可能である。   In addition to the above method for extracting the skin color area, it is desirable to separately perform image processing for extracting the face area to improve the extraction accuracy. Any known process may be used for the image process for extracting the face area. Examples of the image processing for extracting the known face area include a simple area expansion method. In the simple area expansion method, when pixels (skin color pixels) that meet the skin color definition are discretely extracted, the difference between the surrounding pixels and the discretely extracted skin color pixels is obtained, and the difference is predetermined. If it is smaller than the threshold value, it is determined as a skin color pixel, and the face area is gradually expanded to enable extraction as a face area. It is also possible to extract a face region from a skin color region using a learning function based on a neural network.

階調変換処理条件の決定は、算出された肌色領域、即ち、顔領域の寄与率に基づいて、入力画像データに適用する階調変換曲線を決定することにより行われる。具体的には、顔領域の平均明度値及び画像全体の平均明度値が算出され、ステップS15で算出された顔領域の寄与率、顔領域の平均明度値及び画像全体の平均明度値に基づいて、階調変換処理における平均明度入力値が算出され、図8に示すように、この平均明度入力値が、予め設定された平均明度値変換目標値に変換されるように階調変換曲線が決定される。平均明度入力値(c)は、画像全体の平均明度値をa、顔領域の平均明度値をb、顔領域の寄与率をRskとすると、下記の[式3]により求められる。
[式3]
c = a × (1 - (Rsk × 0.01)) + (b × Rsk × 0.01)
The gradation conversion processing condition is determined by determining a gradation conversion curve to be applied to the input image data based on the calculated skin color area, that is, the contribution ratio of the face area. Specifically, the average brightness value of the face area and the average brightness value of the entire image are calculated, and based on the contribution ratio of the face area, the average brightness value of the face area, and the average brightness value of the entire image calculated in step S15. The average brightness input value in the tone conversion process is calculated, and the tone conversion curve is determined so that the average brightness input value is converted into a preset average brightness value conversion target value as shown in FIG. Is done. The average brightness input value (c) is obtained by the following [Equation 3], where a is the average brightness value of the entire image, b is the average brightness value of the face area, and Rsk is the contribution ratio of the face area.
[Formula 3]
c = a × (1-(Rsk × 0.01)) + (b × Rsk × 0.01)

図8において、C1〜C5は、平均明度入力値を示す。階調変換曲線は、平均明度入力値が、予め定められた平均明度値変換目標値に変換されるように調整され、決定される。階調変換曲線の決定は、算出された平均明度入力値に基づいて、階調変換曲線をその都度作り変えることで行っても良いし、予め階調変換曲線を複数用意しておき、平均明度入力値に応じて階調変換曲線を選択し適用する態様で有っても良い。   In FIG. 8, C1 to C5 indicate average brightness input values. The gradation conversion curve is adjusted and determined so that the average brightness input value is converted into a predetermined average brightness value conversion target value. The gradation conversion curve may be determined by changing the gradation conversion curve each time based on the calculated average brightness input value. Alternatively, a plurality of gradation conversion curves are prepared in advance, and the average brightness is determined. The gradation conversion curve may be selected and applied according to the input value.

階調変換曲線が調整されると、この階調変換曲線が入力画像データに適用され、階調変換処理が施され(ステップS17)、本処理は終了する。   When the gradation conversion curve is adjusted, the gradation conversion curve is applied to the input image data, the gradation conversion process is performed (step S17), and this process ends.

以上説明したように、画像記録装置1によれば、入力画像データの色相値及び彩度値を取得して、x軸を色相値(H)、y軸を彩度値(S)とした座標平面内に、画素の累積度数分布を示す2次元ヒストグラムを作成し、この2次元ヒストグラムを所定の色相及び彩度の組み合わせからなる領域に分割し、所定の分割領域、即ち肌色領域を顔領域として顔領域の占有率を算出し、これに基づいて顔領域の階調変換処理への寄与率を算出し、この算出された寄与率に基づいて階調変換曲線を決定し、決定された階調変換曲線を入力画像データに適用して階調変換処理を施す。従って、撮影シーンにおける顔領域の重要度に応じた、明度補正精度の高い、高精度な階調変換処理を施すことが可能となる。   As described above, according to the image recording apparatus 1, the hue value and the saturation value of the input image data are acquired, and the coordinates where the x-axis is the hue value (H) and the y-axis is the saturation value (S). A two-dimensional histogram showing the cumulative frequency distribution of pixels is created in a plane, and the two-dimensional histogram is divided into regions each having a predetermined combination of hue and saturation, and a predetermined divided region, that is, a skin color region is used as a face region. The occupancy ratio of the face area is calculated, the contribution ratio of the face area to the gradation conversion process is calculated based on this, the gradation conversion curve is determined based on the calculated contribution ratio, and the determined gradation The conversion curve is applied to the input image data to perform gradation conversion processing. Therefore, it is possible to perform high-precision gradation conversion processing with high brightness correction accuracy according to the importance of the face area in the shooting scene.

なお、上記第1及び第2の実施の形態において説明した階調変換処理A及び階調変換処理Bは、組み合わせて用いることにより、更に、特定領域、即ち顔領域の明度補正精度を向上させることができる。具体的には、階調変換処理AのステップS1〜S4を実行して入力画像データを所定の色相及び彩度の組み合わせからなる領域に分割し、所定の分割領域、即ち、顔領域の画像全体に対する明度偏倚量を算出するとともに、所定の分割領域、即ち、顔領域の階調変換処理への寄与率を算出し、算出された明度偏倚量及び寄与率に基づいて、階調変換条件としての階調変換曲線を決定する。これにより、更に顔領域の明度補正精度を向上させることが可能となる。   Note that the gradation conversion processing A and the gradation conversion processing B described in the first and second embodiments are used in combination to further improve the brightness correction accuracy of the specific region, that is, the face region. Can do. Specifically, steps S1 to S4 of the gradation conversion process A are executed to divide the input image data into areas composed of a predetermined combination of hue and saturation, and the entire image of the predetermined divided area, that is, the face area. And calculating a contribution ratio of the predetermined divided area, that is, the face area, to the gradation conversion process, and based on the calculated brightness deviation amount and the contribution ratio, A gradation conversion curve is determined. Thereby, it is possible to further improve the brightness correction accuracy of the face area.

また、入力画像データに対して、上記階調変換処理A、B、又はこれらの組み合わせの何れかにより階調変換処理を行うことに加え、更に、撮影シーンの配色傾向を考慮したグレーバランス調整を施すことが好ましい。   Further, in addition to performing the gradation conversion process on the input image data by any one of the gradation conversion processes A and B, or a combination thereof, gray balance adjustment is performed in consideration of the color arrangement tendency of the shooting scene. It is preferable to apply.

図9は、画像調整処理部701により実行されるグレーバランス調整処理を示すフローチャートである。本処理は、ROM等の記憶部(図示略)に記憶されているグレーバランス調整処理プログラムとCPUとの協働によるソフトウエア処理により実現されるものであり、フィルムスキャンデータ処理部702、反射原稿スキャンデータ処理部703又は画像データ書式解読処理部704から画像データ(画像信号)が入力されることにより開始する。このグレーバランス調整処理の実行により、本発明の請求項17〜19、30〜32に記載の色相領域分割手段、色相領域占有率算出手段、低彩度閾値算出手段、低彩度画素抽出手段、グレーバランス調整条件算出手段、グレーバランス調整手段及び請求項21、34に記載の2次元ヒストグラム作成手段が実現される。   FIG. 9 is a flowchart showing gray balance adjustment processing executed by the image adjustment processing unit 701. This processing is realized by software processing in cooperation with a gray balance adjustment processing program stored in a storage unit (not shown) such as a ROM and a CPU, and includes a film scan data processing unit 702, a reflective original. The process starts when image data (image signal) is input from the scan data processing unit 703 or the image data format decoding processing unit 704. By executing this gray balance adjustment processing, the hue area dividing means, the hue area occupancy calculating means, the low saturation threshold calculating means, the low saturation pixel extracting means, according to claims 17 to 19 and 30 to 32 of the present invention, A gray balance adjustment condition calculation unit, a gray balance adjustment unit, and a two-dimensional histogram creation unit according to claims 21 and 34 are realized.

以下、図9を参照して、グレーバランス調整処理について説明する。なお、本実施の形態においては、当該グレーバランス調整処理は、上述した階調変換処理後に行われることとする。このため、入力画像データの画素毎の色相値及び彩度値の取得、及び色相値と彩度値からなる2次元ヒストグラムの作成は、既に行われていることとして説明する。   Hereinafter, the gray balance adjustment process will be described with reference to FIG. In the present embodiment, the gray balance adjustment process is performed after the gradation conversion process described above. Therefore, it will be described that the acquisition of the hue value and the saturation value for each pixel of the input image data and the creation of the two-dimensional histogram composed of the hue value and the saturation value have already been performed.

まず、色相値及び彩度値からなる2次元ヒストグラムに基づいて、入力画像データが所定の色相領域に分割される(ステップS21)。具体的には、作成された2次元ヒストグラムが、予め定義された少なくとも一つの色相値を境界に、二つ以上の平面に分割されることにより、入力画像データが所定の色相領域に分割される。本発明においては、少なくとも3つの色相値により、入力画像データを4つの平面に分割することが望ましい。また、境界とする色相値は、上述したHSV変換プログラムによる算出値で70、185、225と定義しておくこおとが望ましい。この色相領域を分割する境界値は、およそ1000駒のフィルムスキャン画像について、人間の肌色、植物の緑、空の色の検出率が最も高くなる色相範囲を調べた結果から算出した。このように定義することにより、図10に示すように、2次元ヒストグラム(入力画像データ)を肌色相領域(色相値0〜69)、緑色相領域(色相値70〜184)、空色相領域(色相値185〜224)、赤色相領域(色相値225〜360)の4つの色相領域に分割することが可能となる。本実施の形態においても、2次元ヒストグラム(入力画像データ)を70、185、225の色相値で4つの色相領域に分割するものとする。   First, the input image data is divided into predetermined hue regions based on a two-dimensional histogram composed of hue values and saturation values (step S21). Specifically, the created two-dimensional histogram is divided into two or more planes with at least one predefined hue value as a boundary, whereby the input image data is divided into predetermined hue regions. . In the present invention, it is desirable to divide input image data into four planes based on at least three hue values. Further, it is desirable to define the hue value as the boundary as 70, 185, 225 as calculated values by the above-mentioned HSV conversion program. The boundary value for dividing the hue region was calculated from the result of examining the hue range in which the detection rate of human skin color, plant green, and sky color is highest for about 1000 film scan images. By defining in this way, as shown in FIG. 10, a two-dimensional histogram (input image data) is converted into a skin hue area (hue values 0 to 69), a green hue area (hue values 70 to 184), and a sky hue area ( It is possible to divide into four hue regions, hue values 185 to 224) and red hue regions (hue values 225 to 360). Also in the present embodiment, the two-dimensional histogram (input image data) is divided into four hue regions with hue values of 70, 185, and 225.

次いで、ステップS21で分割された色相領域の夫々について、各領域内の累積度数分布のシグマ値を入力画像データの全画素数で除算することにより、色相領域毎の画素が入力画像データの画面全体に占める割合、即ち色相領域毎の占有率が算出される(ステップS22)。   Next, by dividing the sigma value of the cumulative frequency distribution in each area by the total number of pixels of the input image data for each of the hue areas divided in step S21, the pixels for each hue area are displayed on the entire screen of the input image data. Is calculated, that is, the occupation ratio for each hue region (step S22).

例えば、入力画像データとして、全画素数が500万画素で、撮影シーンが、芝生の上に座った赤いカーディガンを着た女性を比較的大きめに撮影したもの(画像データαとする)を用いて上述したステップS21〜S22を実行すると、占有率は下記[表1]に示す値となる。

Figure 2005192162
For example, as input image data, the total number of pixels is 5 million pixels, and the shooting scene is a relatively large image of a woman wearing a red cardigan sitting on the lawn (referred to as image data α). When steps S21 to S22 described above are executed, the occupation ratio becomes a value shown in [Table 1] below.
Figure 2005192162

次いで、ステップS22で求められた色相領域毎の占有率に応じて、色相領域毎の低彩度閾値が算出される(ステップS23)。当該ステップは、色相領域毎の占有率に応じて、後述のグレーバランス調整条件算出処理で用いる低彩度画素を抽出するための彩度の閾値(以下、「低彩度闘値」と称す)を、色相領域毎に設定する処理である。   Next, a low saturation threshold value for each hue area is calculated according to the occupation ratio for each hue area obtained in step S22 (step S23). In this step, a saturation threshold for extracting low saturation pixels used in a gray balance adjustment condition calculation process described later (hereinafter referred to as “low saturation threshold value”) according to the occupation ratio for each hue region. Is set for each hue region.

各色相領域の占有率(=RC)と低彩度闘値(=LC)との関係式を下記[式3]に例示する。なお、各色相領域の占有率(=RC)と低彩度闘値(=LC)との関係式は、これに限定されるものではない。
[式3]
LC(S) = 30×((RC(%) / 100)0.25×30)
A relational expression between the occupation ratio (= RC) of each hue region and the low saturation threshold (= LC) is illustrated in [Expression 3] below. Note that the relational expression between the occupation ratio (= RC) and the low saturation threshold (= LC) of each hue region is not limited to this.
[Formula 3]
LC (S) = 30 × ((RC (%) / 100) 0.25 × 30)

ステップS23において上述した画像データαの色相領域毎の低彩度閾値を求めると、下記[表2]の結果が得られる。

Figure 2005192162
図10は、色相値と彩度値の2次元ヒストグラム上に、上述した画像データαについて求められた低彩度閾値を、境界線Bとして示した図である。 When the low saturation threshold value for each hue region of the image data α described above is obtained in step S23, the following [Table 2] results are obtained.
Figure 2005192162
FIG. 10 is a diagram showing, as a boundary line B, the low saturation threshold obtained for the image data α described above on the two-dimensional histogram of the hue value and the saturation value.

次いで、各色相領域について、ステップS23で算出された低彩度閾値に基づいて、グレーバランス調整に用いる画素が抽出される(ステップS24)。即ち、色相領域毎に算出された低彩度闘値を用いて後述するグレーバランス調整条件算出処理で用いる低彩度画素が決定され、低彩度画素だけで構成(画素自体を排除するか、0か255の値でマスキング処理する)した中間画像データが生成される。   Next, for each hue region, pixels used for gray balance adjustment are extracted based on the low saturation threshold calculated in step S23 (step S24). That is, a low saturation pixel to be used in a gray balance adjustment condition calculation process to be described later is determined using a low saturation threshold value calculated for each hue region, and is configured only with low saturation pixels (excluding the pixel itself, Intermediate image data that is masked with a value of 0 or 255) is generated.

上述したステップS21〜S24を実行することにより、芝生や空など画像に占める割合の高い領域から低彩度画素が多く抽出されることによるグレーバランス調整における色相の偏りが防止される。   By executing Steps S21 to S24 described above, it is possible to prevent a hue bias in gray balance adjustment due to extraction of many low-saturation pixels from a region having a high ratio in the image, such as lawn or sky.

なお、本処理においては、「低彩度闘値」だけでなく、各色相領域の占有率と低彩度画素の抽出率との関係式を予め定義しておき、色相領域毎の占有率に基づいて「低彩度画素の抽出率」を算出し、低彩度閾値及び低彩度画素の抽出率に基づいて、低彩度画素を抽出するようにしても良い。   In this process, not only the “low saturation threshold value” but also a relational expression between the occupancy rate of each hue region and the extraction rate of low saturation pixels is defined in advance, and the occupancy rate for each hue region is determined. Based on the low saturation threshold and the low saturation pixel extraction rate, the low saturation pixel extraction rate may be calculated based on the “low saturation pixel extraction rate”.

次いで、ステップS24で抽出された画素を対象画素としてグレーバランス調整条件算出処理が実行される(ステップS25)。   Next, the gray balance adjustment condition calculation process is executed with the pixel extracted in step S24 as the target pixel (step S25).

図11に、ステップS25で画像調整処理部701により実行されるグレーバランス調整条件算出処理を示すフローチャートである。以下、図11のフローチャート及び図12〜図14を参照してグレーバランス調整条件算出処理について説明する。   FIG. 11 is a flowchart showing the gray balance adjustment condition calculation process executed by the image adjustment processing unit 701 in step S25. Hereinafter, the gray balance adjustment condition calculation processing will be described with reference to the flowchart of FIG. 11 and FIGS. 12 to 14.

まず、グレーバランス調整条件算出のための対象画素について、R、G、Bの各チャンネルの累積ヒストグラムが作成される(ステップS31)。即ち、図12に示す累積ヒストグラムがR、G、Bの各チャンネルについて作成される。   First, a cumulative histogram of each channel of R, G, and B is created for the target pixel for gray balance adjustment condition calculation (step S31). That is, the cumulative histogram shown in FIG. 12 is created for each of the R, G, and B channels.

次いで、図12に示すように、R、G、Bの各チャンネルの累積ヒストグラムにおいて、ハイライト(8bitなら255)側からシャドー(0)側への画素の累積度数が、全低彩度画素数の所定%に達するまでの累積画素の平均値が算出され、この累積画素の平均値が各チャンネルのハイライト点(Hp)として決定される(ステップS32)。また、図12に示すように、R、G、Bの各チャンネルの累積ヒストグラムにおいて、シャドー(0)側からハイライト(8bitなら255)側への画素の累積度数が、全低彩度画素数の所定%に達するまでの累積画素の平均値が算出され、この累積画素の平均値が各チャンネルのシャドー点(Sp)として決定される(ステップS33)。   Next, as shown in FIG. 12, in the cumulative histogram of each channel of R, G, and B, the cumulative frequency of pixels from the highlight (255 for 8 bits) side to the shadow (0) side is the total low saturation pixel number. The average value of the accumulated pixels until the predetermined percentage is reached is calculated, and the average value of the accumulated pixels is determined as the highlight point (Hp) of each channel (step S32). Also, as shown in FIG. 12, in the cumulative histogram of each of the R, G, and B channels, the cumulative frequency of pixels from the shadow (0) side to the highlight (255 for 8 bits) is the total low saturation pixel number. The average value of the accumulated pixels until reaching a predetermined percentage of is calculated, and the average value of the accumulated pixels is determined as the shadow point (Sp) of each channel (step S33).

次いで、決定された各チャンネルのハイライト点Hp及びシャドー点Spに基づいて、END(equivalent neutral density)変換(等価中性濃度変換)用画素が抽出される(ステップS34)。具体的には、全対象画素についてB−G及びR−Gが算出され、X軸がB−G、Y軸がR−Gの色度図が作成され、この色度図上にハイライト点Hpとシャドー点Spがプロットされた後(図13参照。点AはHp、点BはSp)、両者を結んだ直線から所定の距離内に分布する画素(図13の領域Q内の画素)がEND変換用画素として抽出される。当該ステップは、ハイライト点Hp及びシャドー点Spが低彩度であるという経験則を前提として、色度図上でこの近辺に分布する低彩度画素をEND変換用画素として抽出するものであるが、本実施の形態においては、予め各色相の画像全体における占有率に基づいて抽出された低彩度画素を対象画素として利用しているので、例えば、芝生や空などが画像に占める面積の高い撮影シーン等、前記経験則が符合しない場合であっても、色相の偏りのないグレーバランス調整を行うことが可能な調整条件を設定することができる。   Next, END (equivalent neutral density) conversion (equivalent neutral density conversion) pixels are extracted based on the determined highlight point Hp and shadow point Sp of each channel (step S34). Specifically, BG and RG are calculated for all the target pixels, and a chromaticity diagram with the BG on the X axis and the RG on the Y axis is created, and a highlight point is displayed on the chromaticity diagram. After the Hp and the shadow point Sp are plotted (see FIG. 13, the point A is Hp and the point B is Sp), the pixels distributed within a predetermined distance from the straight line connecting the two (pixels in the region Q in FIG. 13) Are extracted as END conversion pixels. In this step, on the premise of an empirical rule that the highlight point Hp and the shadow point Sp have low saturation, low saturation pixels distributed in the vicinity on the chromaticity diagram are extracted as END conversion pixels. However, in the present embodiment, low saturation pixels extracted based on the occupation ratio of each hue in the entire image are used as target pixels. Even when the above empirical rule does not agree, such as a high shooting scene, it is possible to set an adjustment condition capable of performing gray balance adjustment without hue deviation.

END変換用画素が抽出されると、図14に示すように、x軸=G値、y軸=R値の相関図と、x軸=G値、y軸=B値の相関図が作成され、各相関図上に抽出されたEND変換用の画素の値がプロットされ(ステップS35)、最小自乗近似直線lが設定される(ステップS36)。そして、設定された最小自乗近似直線lを、傾き=1、切片=0に補正するためのEND変換式が算出され(ステップS37)、処理は図9のステップS26に移行する。   When the END conversion pixels are extracted, as shown in FIG. 14, a correlation diagram of x axis = G value, y axis = R value, and a correlation diagram of x axis = G value, y axis = B value are created. The extracted END conversion pixel values are plotted on each correlation diagram (step S35), and the least square approximation line l is set (step S36). Then, an END conversion formula for correcting the set least square approximation straight line l to the slope = 1 and the intercept = 0 is calculated (step S37), and the process proceeds to step S26 in FIG.

図9において、グレーバランス調整条件としてのEND変換式が算出されると、算出されたEND変換式が階調変換処理後の画像データに適用されることにより、グレーバランス調整が施され(ステップS26)、本処理は終了する。   In FIG. 9, when the END conversion formula as the gray balance adjustment condition is calculated, the calculated END conversion formula is applied to the image data after the gradation conversion processing, thereby performing gray balance adjustment (step S26). ), This process ends.

以上説明したように、画像記録装置1によれば、上述した階調変換処理A、B又はその組み合わせの何れかによる階調変換後、2次元ヒストグラムを所定の色相領域に分割し、分割された色相領域毎に各領域の画素が入力画像データ全体に占める割合(占有率)を算出し、算出された占有率に基づいて色相領域毎の低彩度閾値を算出して、この低彩度閾値に基づいてグレーバランス調整条件算出に用いる低彩度画素を抽出する。そして、この抽出された低彩度画素を用いてグレーバランス調整条件を算出し、算出された条件で階調変換処理後の画像データにグレーバランス調整を施す。   As described above, according to the image recording apparatus 1, after the gradation conversion by any of the above-described gradation conversion processes A and B or a combination thereof, the two-dimensional histogram is divided into predetermined hue regions and divided. For each hue area, the ratio (occupation ratio) of pixels in each area to the entire input image data is calculated, and a low saturation threshold value for each hue area is calculated based on the calculated occupation ratio. Based on the above, a low saturation pixel used for gray balance adjustment condition calculation is extracted. Then, a gray balance adjustment condition is calculated using the extracted low-saturation pixels, and gray balance adjustment is performed on the image data after the gradation conversion process under the calculated condition.

従って、上述した階調変換処理A、B又はその組み合わせによる効果に加え、撮影シーンの配色傾向を判別し、判別結果に基づき低彩度画素を抽出する闘値設定を変更するようにしたことで、更に、芝生や空など占有率の高い領域から、低彩度画素が多く抽出されることによる色相の偏りが防止され、結果カラーフェリアが抑制されるという効果が得られるので、鑑賞により好ましい画像を提供することが可能となる。   Therefore, in addition to the effects of the above-described gradation conversion processing A, B or a combination thereof, the coloration tendency of the shooting scene is determined, and the threshold setting for extracting low saturation pixels is changed based on the determination result. In addition, since it is possible to prevent hue bias due to the extraction of a large number of low-saturation pixels from areas with a high occupation rate such as lawn and sky, an effect that color feria is suppressed can be obtained. Can be provided.

以上、第1〜第2の実施の形態について説明してきたが、これらの実施の形態で用いる画像データとしては、デジタルカメラで撮影した画像である場合、シーン参照画像データであることが望ましい。シーン参照画像データは、少なくとも撮像素子自体の分光感度に基づく各色チャンネルの信号強度をRIMM RGBやERIMM RGBなどの標準色空間にマッピング済みであり、階調変換・鮮鋭性強調・彩度強調のような画像鑑賞時の効果を向上する為にデータ内容を改変する画像処理が省略された状態の画像データを意味する。従って、画像記録装置1にシーン参照画像データを入力し、画像調整処理部701において、操作部11から入力された出力先の情報に基づいて、出力媒体上(CRT、液晶ディスプレイ、プラズマディスプレイ、銀塩印画紙、インクジェットペーパー、サーマルプリンタ用紙等)で最適な鑑賞画像が得られるよう、上述した階調変換処理及びグレーバランス調整を含めた最適化処理を施して鑑賞画像参照データに変換することで、撮像画像情報の情報損失を伴うことなく最適化された鑑賞画像参照データを出力媒体上で形成することが可能となる。   Although the first and second embodiments have been described above, the image data used in these embodiments is preferably scene reference image data in the case of an image taken with a digital camera. In the scene reference image data, the signal intensity of each color channel based on at least the spectral sensitivity of the image sensor itself has been mapped to a standard color space such as RIMM RGB or ERIMM RGB, and tone conversion, sharpness enhancement, saturation enhancement, etc. This means image data in a state where image processing for modifying the data content is omitted in order to improve the effect at the time of image viewing. Accordingly, the scene reference image data is input to the image recording apparatus 1, and the image adjustment processing unit 701 uses the output destination information input from the operation unit 11 on the output medium (CRT, liquid crystal display, plasma display, silver display). (Salt printing paper, ink jet paper, thermal printer paper, etc.) are converted into appreciation image reference data by performing the optimization processing including the gradation conversion processing and gray balance adjustment described above so that an optimal appreciation image can be obtained. Thus, it is possible to form optimized viewing image reference data on the output medium without causing information loss of the captured image information.

なお、上記各実施の形態における記述内容は、本発明の好適な一例であり、これに限定されるものではない。
例えば、上記実施の形態においては、入力画像データに画像処理を施して、出力媒体上に記録する機能を備えた画像記録装置を例にとり説明したが、本発明は、入力画像データに画像処理を施して、画像記録装置に画像を出力する画像処理装置についても適用可能であることは言うまでもない。
In addition, the description content in each said embodiment is a suitable example of this invention, and is not limited to this.
For example, in the above embodiment, the image recording apparatus having a function of performing image processing on input image data and recording on the output medium has been described as an example. However, the present invention performs image processing on input image data. Needless to say, the present invention can also be applied to an image processing apparatus that outputs an image to an image recording apparatus.

また、上記各実施の形態においては、2次元ヒストグラムを用いて撮像画像データを色相領域や色相値及び彩度値の組み合わせからなる領域に分割することとしたが、2次元ヒストグラムを用いることなく、撮像画像データから取得された各画素の色相値、彩度値に基づいて撮像画像データを分割するようにしてもよい。2次元ヒストグラムを用いることにより、処理を効率化することが可能となる。   Further, in each of the above-described embodiments, the captured image data is divided into a region including a hue region, a combination of a hue value, and a saturation value using a two-dimensional histogram, but without using a two-dimensional histogram, The captured image data may be divided based on the hue value and saturation value of each pixel acquired from the captured image data. By using a two-dimensional histogram, the processing can be made efficient.

また、撮像画像データを分割する際の境界値、及び肌色領域の色相値と彩度値の範囲は、およそ1000駒のフィルムスキャン画像について、調査した結果を用いたが、フィルムスキャン画像、デジタルカメラ撮影画像夫々について前記数値限定を変更することが望ましい。   In addition, the boundary value when dividing the captured image data and the range of the hue value and the saturation value of the flesh-colored area are the results of investigation of about 1000 frames of film scan images. It is desirable to change the numerical limits for each image.

その他、画像記録装置1の細部構成及び細部動作に関しても、本発明の趣旨を逸脱することのない範囲で適宜変更可能である。   In addition, the detailed configuration and detailed operation of the image recording apparatus 1 can be changed as appropriate without departing from the spirit of the present invention.

本発明に係る画像記録装置1の外観構成を示す斜視図である。1 is a perspective view showing an external configuration of an image recording apparatus 1 according to the present invention. 図1の画像記録装置1の内部構成を示すブロック図である。FIG. 2 is a block diagram illustrating an internal configuration of the image recording apparatus 1 in FIG. 1. 図2の画像処理部70の機能的構成を示すブロック図である。It is a block diagram which shows the functional structure of the image process part 70 of FIG. 図3の画像調整処理部701により実行される階調変換処理Aを示すフローチャートである。4 is a flowchart showing a gradation conversion process A executed by an image adjustment processing unit 701 in FIG. 3. 2次元ヒストグラムの一例を示す図である。It is a figure which shows an example of a two-dimensional histogram. 本発明の第1の実施の形態において決定される階調変換曲線の一例を示す図である。It is a figure which shows an example of the gradation conversion curve determined in the 1st Embodiment of this invention. 図3の画像調整処理部701により実行される階調変換処理Bを示すフローチャートである。4 is a flowchart illustrating a gradation conversion process B executed by an image adjustment processing unit 701 in FIG. 3. 本発明の第2の実施の形態において決定される階調変換曲線の一例を示す図である。It is a figure which shows an example of the gradation conversion curve determined in the 2nd Embodiment of this invention. 図3の画像調整処理部701により実行されるグレーバランス調整処理を示すフローチャートである。4 is a flowchart showing gray balance adjustment processing executed by an image adjustment processing unit 701 in FIG. 3. 色相値と彩度値の2次元ヒストグラム上に、画像データαについて求められた低彩度閾値を境界線Bとして示した図である。It is the figure which showed the low saturation threshold calculated | required about image data (alpha) as the boundary line B on the two-dimensional histogram of a hue value and a saturation value. 図3の画像調整処理部701により実行されるグレーバランス調整条件算出処理を示すフローチャートである。4 is a flowchart showing gray balance adjustment condition calculation processing executed by an image adjustment processing unit 701 in FIG. 3. 図11のステップS31で作成される累積ヒストグラムの一例を示す図である。It is a figure which shows an example of the accumulation histogram created by step S31 of FIG. 図11のステップS34で作成される色度図の一例を示す図である。It is a figure which shows an example of the chromaticity diagram produced by step S34 of FIG. 図11のステップS35で作成されるG、R相関図、G、Y相関図の一例を示す図である。It is a figure which shows an example of the G, R correlation diagram, G, Y correlation diagram created by step S35 of FIG.

符号の説明Explanation of symbols

1 画像記録装置
2 筐体
3 マガジン装填部
4 露光処理部
5 プリント作成部
7 制御部
8 CRT
9 フィルムスキャナ部
10 反射原稿入力装置
11 操作部
12 情報入力手段
14 画像読込部
15 画像書込部
30 画像転送手段
31 画像搬送部
32 通信手段(入力)
33 通信手段(出力)
51 外部プリンタ
70 画像処理部
701 画像調整処理部
702 フィルムスキャンデータ処理部
703 反射原稿スキャンデータ処理部
704 画像データ書式解読処理部
705 テンプレート処理部
706 CRT固有処理部
707 プリント固有処理部A
708 プリント固有処理部B
709 画像データ作成処理部
71 データ蓄積手段
72 テンプレート記憶手段
DESCRIPTION OF SYMBOLS 1 Image recording apparatus 2 Case 3 Magazine loading part 4 Exposure processing part 5 Print preparation part 7 Control part 8 CRT
DESCRIPTION OF SYMBOLS 9 Film scanner part 10 Reflected original input device 11 Operation part 12 Information input means 14 Image reading part 15 Image writing part 30 Image transfer means 31 Image conveying part 32 Communication means (input)
33 Communication means (output)
51 External Printer 70 Image Processing Unit 701 Image Adjustment Processing Unit 702 Film Scan Data Processing Unit 703 Reflected Original Scan Data Processing Unit 704 Image Data Format Decoding Processing Unit 705 Template Processing Unit 706 CRT Specific Processing Unit 707 Print Specific Processing Unit A
708 Print unique processing section B
709 Image data creation processing unit 71 Data storage unit 72 Template storage unit

Claims (39)

撮像画像データを入力し、出力媒体上での鑑賞に最適化された画像データを出力する画像処理方法において、
前記撮像画像データの画素毎の色相値、彩度値及び明度値を得る工程と、
前記撮像画像データを所定の色相及び彩度の組み合わせからなる領域に分割する工程と、
前記撮像画像データ全体における前記分割された所定の色相及び彩度の組み合わせからなる領域の明度偏倚量を算出する工程と、
前記算出された明度偏倚量に基づいて、階調変換処理条件を決定する工程と、
前記決定された階調変換処理条件に基づいて、前記撮像画像データに階調変換処理を施す工程と、
を含むことを特徴とする画像処理方法。
In an image processing method for inputting captured image data and outputting image data optimized for viewing on an output medium,
Obtaining a hue value, a saturation value, and a brightness value for each pixel of the captured image data;
Dividing the captured image data into regions composed of combinations of predetermined hue and saturation;
Calculating a lightness deviation amount of an area composed of a combination of the predetermined hue and saturation divided in the entire captured image data;
Determining a gradation conversion processing condition based on the calculated brightness deviation amount;
Applying gradation conversion processing to the captured image data based on the determined gradation conversion processing conditions;
An image processing method comprising:
撮像画像データを入力し、出力媒体上での鑑賞に最適化された画像データを出力する画像処理方法において、
前記撮像画像データの画素毎の色相値、彩度値及び明度値を得る工程と、
前記撮像画像データを所定の色相及び彩度の組み合わせからなる領域に分割する工程と、
前記分割された所定の色相及び彩度の組み合わせからなる領域の画素が前記撮像画像データの画面全体に占める割合を示す占有率を算出する工程と、
前記算出された占有率に基づいて、前記分割された所定の色相及び彩度の組み合わせからなる領域の階調変換処理への寄与率を算出する工程と、
前記算出された寄与率に基づいて、階調変換処理条件を決定する階調変換処理条件決定手段と、
前記決定された階調変換処理条件に基づいて、前記撮像画像データに階調変換処理を施す工程と、
を含むことを特徴とする画像処理方法。
In an image processing method for inputting captured image data and outputting image data optimized for viewing on an output medium,
Obtaining a hue value, a saturation value, and a brightness value for each pixel of the captured image data;
Dividing the captured image data into regions composed of combinations of predetermined hue and saturation;
Calculating an occupancy ratio indicating a ratio of pixels of the divided predetermined hue and saturation combination to the entire screen of the captured image data; and
Based on the calculated occupancy rate, calculating a contribution rate to the gradation conversion processing of the region composed of a combination of the predetermined hue and saturation,
Gradation conversion processing condition determining means for determining gradation conversion processing conditions based on the calculated contribution rate;
Applying gradation conversion processing to the captured image data based on the determined gradation conversion processing conditions;
An image processing method comprising:
撮像画像データを入力し、出力媒体上での鑑賞に最適化された画像データを出力する画像処理方法において、
前記撮像画像データの画素毎の色相値、彩度値及び明度値を得る工程と、
前記撮像画像データを所定の色相及び彩度の組み合わせからなる領域に分割する工程と、
前記撮像画像データ全体における前記分割された所定の色相及び彩度の組み合わせからなる領域の明度偏倚量を算出する工程と、
前記分割された所定の色相及び彩度の組み合わせからなる領域の画素が前記撮像画像データの画面全体に占める割合を示す占有率を算出する工程と、
前記算出された占有率に基づいて、前記分割された所定の色相及び彩度の組み合わせからなる領域の階調変換処理への寄与率を算出する工程と、
前記算出された明度偏倚量及び寄与率に基づいて、階調変換処理条件を決定する工程と、
前記決定された階調変換処理条件に基づいて、前記撮像画像データに階調変換処理を施す工程と、
を含むことを特徴とする画像処理方法。
In an image processing method for inputting captured image data and outputting image data optimized for viewing on an output medium,
Obtaining a hue value, a saturation value, and a brightness value for each pixel of the captured image data;
Dividing the captured image data into regions composed of combinations of predetermined hue and saturation;
Calculating a lightness deviation amount of an area composed of a combination of the predetermined hue and saturation divided in the entire captured image data;
Calculating an occupancy ratio indicating a ratio of pixels of the divided predetermined hue and saturation combination to the entire screen of the captured image data; and
Based on the calculated occupancy rate, calculating a contribution rate to the gradation conversion processing of the region composed of a combination of the predetermined hue and saturation,
Determining a gradation conversion processing condition based on the calculated brightness deviation amount and contribution rate;
Applying gradation conversion processing to the captured image data based on the determined gradation conversion processing conditions;
An image processing method comprising:
撮像画像データを入力し、出力媒体上での鑑賞に最適化された画像データを出力する画像処理方法において、
前記撮像画像データの画素毎の色相値、彩度値及び明度値を得る工程と、
前記撮像画像データを所定の色相及び彩度の組み合わせからなる領域に分割する工程と、
前記撮像画像データ全体における前記分割された所定の色相及び彩度の組み合わせからなる領域の明度偏倚量を算出する工程と、
前記算出された明度偏倚量に基づいて、階調変換処理条件を決定する工程と、
前記決定された階調変換処理条件に基づいて、前記撮像画像データに階調変換処理を施す工程と、
前記撮像画像データを所定の色相領域に分割する工程と、
前記分割された色相領域毎の画素が前記撮像画像データの画面全体に占める割合を示す占有率を算出する工程と、
前記算出された色相領域毎の占有率に応じて、前記色相領域毎に低彩度闘値を算出する工程と、
前記算出された低彩度闘値に基づいて、グレーバランス調整に用いる低彩度画素を抽出する工程と、
前記抽出された低彩度画素を用いてグレーバランス調整条件を算出する工程と、
前記算出されたグレーバランス調整条件に基づいて、前記撮像画像データにグレーバランス調整を施す工程と、
を含むことを特徴とする画像処理方法。
In an image processing method for inputting captured image data and outputting image data optimized for viewing on an output medium,
Obtaining a hue value, a saturation value, and a brightness value for each pixel of the captured image data;
Dividing the captured image data into regions composed of combinations of predetermined hue and saturation;
Calculating a lightness deviation amount of an area composed of a combination of the predetermined hue and saturation divided in the entire captured image data;
Determining a gradation conversion processing condition based on the calculated brightness deviation amount;
Applying gradation conversion processing to the captured image data based on the determined gradation conversion processing conditions;
Dividing the captured image data into predetermined hue regions;
Calculating an occupancy ratio indicating a ratio of pixels for each of the divided hue regions to the entire screen of the captured image data;
Calculating a low saturation threshold value for each hue area according to the calculated occupancy ratio for each hue area;
Extracting low saturation pixels used for gray balance adjustment based on the calculated low saturation threshold;
Calculating a gray balance adjustment condition using the extracted low saturation pixel;
Applying gray balance adjustment to the captured image data based on the calculated gray balance adjustment condition;
An image processing method comprising:
撮像画像データを入力し、出力媒体上での鑑賞に最適化された画像データを出力する画像処理方法において、
前記撮像画像データの画素毎の色相値、彩度値及び明度値を得る工程と、
前記撮像画像データを所定の色相及び彩度の組み合わせからなる領域に分割する工程と、
前記分割された所定の色相及び彩度の組み合わせからなる領域の画素が前記撮像画像データの画面全体に占める割合を示す占有率を算出する工程と、
前記算出された占有率に基づいて、前記分割された所定の色相及び彩度の組み合わせからなる領域の階調変換処理への寄与率を算出する工程と、
前記算出された寄与率に基づいて、階調変換処理条件を決定する階調変換処理条件決定手段と、
前記決定された階調変換処理条件に基づいて、前記撮像画像データに階調変換処理を施す工程と、
前記撮像画像データを所定の色相領域に分割する工程と、
前記分割された色相領域毎の画素が前記撮像画像データの画面全体に占める割合を示す占有率を算出する工程と、
前記算出された色相領域毎の占有率に応じて、前記色相領域毎に低彩度闘値を算出する工程と、
前記算出された低彩度闘値に基づいて、グレーバランス調整に用いる低彩度画素を抽出する工程と、
前記抽出された低彩度画素を用いてグレーバランス調整条件を算出する工程と、
前記算出されたグレーバランス調整条件に基づいて、前記撮像画像データにグレーバランス調整を施す工程と、
を含むことを特徴とする画像処理方法。
In an image processing method for inputting captured image data and outputting image data optimized for viewing on an output medium,
Obtaining a hue value, a saturation value, and a brightness value for each pixel of the captured image data;
Dividing the captured image data into regions composed of combinations of predetermined hue and saturation;
Calculating an occupancy ratio indicating a ratio of pixels of the divided predetermined hue and saturation combination to the entire screen of the captured image data; and
Based on the calculated occupancy rate, calculating a contribution rate to the gradation conversion processing of the region composed of a combination of the predetermined hue and saturation,
Gradation conversion processing condition determining means for determining gradation conversion processing conditions based on the calculated contribution rate;
Applying gradation conversion processing to the captured image data based on the determined gradation conversion processing conditions;
Dividing the captured image data into predetermined hue regions;
Calculating an occupancy ratio indicating a ratio of pixels for each of the divided hue regions to the entire screen of the captured image data;
Calculating a low saturation threshold value for each hue area according to the calculated occupancy ratio for each hue area;
Extracting low saturation pixels used for gray balance adjustment based on the calculated low saturation threshold;
Calculating a gray balance adjustment condition using the extracted low saturation pixel;
Applying gray balance adjustment to the captured image data based on the calculated gray balance adjustment condition;
An image processing method comprising:
撮像画像データを入力し、出力媒体上での鑑賞に最適化された画像データを出力する画像処理方法において、
前記撮像画像データの画素毎の色相値、彩度値及び明度値を得る工程と、
前記撮像画像データを所定の色相及び彩度の組み合わせからなる領域に分割する工程と、
前記撮像画像データ全体における前記分割された所定の色相及び彩度の組み合わせからなる領域の明度偏倚量を算出する工程と、
前記分割された所定の色相及び彩度の組み合わせからなる領域の画素が前記撮像画像データの画面全体に占める割合を示す占有率を算出する工程と、
前記算出された占有率に基づいて、前記分割された所定の色相及び彩度の組み合わせからなる領域の階調変換処理への寄与率を算出する工程と、
前記算出された明度偏倚量及び寄与率に基づいて、階調変換処理条件を決定する工程と、
前記決定された階調変換処理条件に基づいて、前記撮像画像データに階調変換処理を施す工程と、
前記撮像画像データを所定の色相領域に分割する工程と、
前記分割された色相領域毎の画素が前記撮像画像データの画面全体に占める割合を示す占有率を算出する工程と、
前記算出された色相領域毎の占有率に応じて、前記色相領域毎に低彩度闘値を算出する工程と、
前記算出された低彩度闘値に基づいて、グレーバランス調整に用いる低彩度画素を抽出する工程と、
前記抽出された低彩度画素を用いてグレーバランス調整条件を算出する工程と、
前記算出されたグレーバランス調整条件に基づいて、前記撮像画像データにグレーバランス調整を施す工程と、
を含むことを特徴とする画像処理方法。
In an image processing method for inputting captured image data and outputting image data optimized for viewing on an output medium,
Obtaining a hue value, a saturation value, and a brightness value for each pixel of the captured image data;
Dividing the captured image data into regions composed of combinations of predetermined hue and saturation;
Calculating a lightness deviation amount of an area composed of a combination of the predetermined hue and saturation divided in the entire captured image data;
Calculating an occupancy ratio indicating a ratio of pixels of the divided predetermined hue and saturation combination to the entire screen of the captured image data; and
Based on the calculated occupancy rate, calculating a contribution rate to the gradation conversion processing of the region composed of a combination of the predetermined hue and saturation,
Determining a gradation conversion processing condition based on the calculated brightness deviation amount and contribution rate;
Applying gradation conversion processing to the captured image data based on the determined gradation conversion processing conditions;
Dividing the captured image data into predetermined hue regions;
Calculating an occupancy ratio indicating a ratio of pixels for each of the divided hue regions to the entire screen of the captured image data;
Calculating a low saturation threshold value for each hue area according to the calculated occupancy ratio for each hue area;
Extracting low saturation pixels used for gray balance adjustment based on the calculated low saturation threshold;
Calculating a gray balance adjustment condition using the extracted low saturation pixel;
Applying gray balance adjustment to the captured image data based on the calculated gray balance adjustment condition;
An image processing method comprising:
前記取得された色相値及び彩度値の2次元ヒストグラムを作成する工程を含み、
前記撮像画像データを所定の色相及び彩度の組み合わせからなる領域に分割する工程は、前記作成された2次元ヒストグラムに基づいて、前記撮像画像データを所定の色相及び彩度の組み合わせからなる領域に分割することを特徴とする請求項1〜3の何れか一項に記載の画像処理方法。
Creating a two-dimensional histogram of the acquired hue and saturation values;
The step of dividing the captured image data into regions composed of a predetermined hue and saturation combination is based on the created two-dimensional histogram, and the captured image data is divided into regions composed of a predetermined hue and saturation combination. The image processing method according to claim 1, wherein the image processing method is divided.
前記取得された色相値及び彩度値の2次元ヒストグラムを作成する工程を含み、
前記撮像画像データを所定の色相及び彩度の組み合わせからなる領域に分割する工程は、前記作成された2次元ヒストグラムに基づいて、前記撮像画像データを所定の色相及び彩度の組み合わせからなる領域に分割し、
前記撮像画像データを所定の色相領域に分割する工程は、前記作成された2次元ヒストグラムに基づいて、前記撮像画像データを所定の色相領域に分割することを特徴とする請求項4〜6の何れか一項に記載の画像処理方法。
Creating a two-dimensional histogram of the acquired hue and saturation values;
The step of dividing the captured image data into a region composed of a predetermined hue and saturation combination is based on the created two-dimensional histogram, and the captured image data is divided into a region composed of a predetermined hue and saturation combination. Split and
7. The step of dividing the captured image data into predetermined hue regions divides the captured image data into predetermined hue regions based on the created two-dimensional histogram. An image processing method according to claim 1.
前記撮像画像データを所定の色相及び彩度の組み合わせからなる領域に分割する工程は、前記撮像画像データを、少なくともHSV表色系の色相値で0〜69、彩度値で0〜128からなる肌色領域に分割することを特徴とする請求項1〜3、7の何れか一項に記載の画像処理方法。   The step of dividing the captured image data into regions composed of a predetermined combination of hue and saturation comprises at least 0 to 69 in the HSV color system and 0 to 128 in the saturation value. The image processing method according to claim 1, wherein the image processing method is divided into skin color regions. 前記撮像画像データを所定の色相及び彩度の組み合わせからなる領域に分割する工程は、前記撮像画像データを、少なくともHSV表色系の色相値で0〜69、彩度値で0〜128からなる肌色領域に分割し、
前記撮像画像データを所定の色相領域に分割する工程は、前記撮像画像データを、HSV表色系の色相値で0〜69の肌色相領域、70〜184の緑色相領域、185〜224の空色相領域、225〜360の赤色相領域に分割することを特徴とする請求項4〜6、8の何れか一項に記載の画像処理方法。
The step of dividing the captured image data into regions composed of a predetermined combination of hue and saturation comprises at least 0 to 69 in the HSV color system and 0 to 128 in the saturation value. Divide into flesh-colored areas,
The step of dividing the captured image data into a predetermined hue area includes dividing the captured image data into a skin hue area of 0 to 69, a green hue area of 70 to 184, and an empty area of 185 to 224 in the hue value of the HSV color system. The image processing method according to claim 4, wherein the image processing method is divided into a hue area and a red hue area of 225 to 360.
前記階調処理条件の決定は、階調変換曲線を作成するか或いは予め設定された複数の階調変換曲線の中から選択することにより階調変換曲線を調整することにより行うことを特徴とする請求項1〜10の何れか一項に記載の画像処理方法。   The determination of the gradation processing condition is performed by adjusting the gradation conversion curve by creating a gradation conversion curve or selecting from a plurality of preset gradation conversion curves. The image processing method as described in any one of Claims 1-10. 前記撮像画像データは、シーン参照画像データであることを特徴とする請求項1〜11の何れか一項に記載の画像処理方法。   The image processing method according to claim 1, wherein the captured image data is scene reference image data. 前記出力媒体上での鑑賞に最適化された画像データは、鑑賞画像参照データであることを特徴とする請求項1〜12の何れか一項に記載の画像処理方法。   The image processing method according to claim 1, wherein the image data optimized for viewing on the output medium is viewing image reference data. 撮像画像データを入力し、出力媒体上での鑑賞に最適化された画像データを出力する画像処理装置において、
前記撮像画像データの画素毎の色相値、彩度値及び明度値を得るデータ取得手段と、
前記撮像画像データを所定の色相及び彩度の組み合わせからなる領域に分割するHS分割手段と、
前記撮像画像データ全体における前記分割された所定の色相及び彩度の組み合わせからなる領域の明度偏倚量を算出する明度偏倚量算出手段と、
前記算出された明度偏倚量に基づいて、階調変換処理条件を決定する階調変換処理条件決定手段と、
前記決定された階調変換処理条件に基づいて、前記撮像画像データに階調変換処理を施す階調変換処理手段と、
を備えたことを特徴とする画像処理装置。
In an image processing apparatus for inputting captured image data and outputting image data optimized for viewing on an output medium,
Data acquisition means for obtaining a hue value, a saturation value and a brightness value for each pixel of the captured image data;
HS dividing means for dividing the captured image data into regions composed of combinations of predetermined hue and saturation;
A lightness deviation amount calculating means for calculating a lightness deviation amount of an area composed of a combination of the predetermined hue and saturation divided in the entire captured image data;
Gradation conversion processing condition determining means for determining gradation conversion processing conditions based on the calculated brightness deviation amount;
Gradation conversion processing means for performing gradation conversion processing on the captured image data based on the determined gradation conversion processing conditions;
An image processing apparatus comprising:
撮像画像データを入力し、出力媒体上での鑑賞に最適化された画像データを出力する画像処理装置において、
前記撮像画像データの画素毎の色相値、彩度値及び明度値を得るデータ取得手段と、
前記撮像画像データを所定の色相及び彩度の組み合わせからなる領域に分割するHS分割手段と、
前記分割された所定の色相及び彩度の組み合わせからなる領域の画素が前記撮像画像データの画面全体に占める割合を示す占有率を算出するHS占有率算出手段と、
前記算出された占有率に基づいて、前記分割された所定の色相及び彩度の組み合わせからなる領域の階調変換処理への寄与率を算出する寄与率算出手段と、
前記算出された寄与率に基づいて、階調変換処理条件を決定する階調変換処理条件決定手段と、
前記決定された階調変換処理条件に基づいて、前記撮像画像データに階調変換処理を施す階調変換処理手段と、
を備えたことを特徴とする画像処理装置。
In an image processing apparatus for inputting captured image data and outputting image data optimized for viewing on an output medium,
Data acquisition means for obtaining a hue value, a saturation value and a brightness value for each pixel of the captured image data;
HS dividing means for dividing the captured image data into regions composed of combinations of predetermined hue and saturation;
HS occupancy ratio calculating means for calculating an occupancy ratio indicating the ratio of pixels of the divided predetermined hue and saturation combination to the entire screen of the captured image data;
Based on the calculated occupancy rate, contribution rate calculating means for calculating a contribution rate to the gradation conversion processing of the region composed of a combination of the predetermined hue and saturation divided,
Gradation conversion processing condition determining means for determining gradation conversion processing conditions based on the calculated contribution rate;
Gradation conversion processing means for performing gradation conversion processing on the captured image data based on the determined gradation conversion processing conditions;
An image processing apparatus comprising:
撮像画像データを入力し、出力媒体上での鑑賞に最適化された画像データを出力する画像処理装置において、
前記撮像画像データの画素毎の色相値、彩度値及び明度値を得るデータ取得手段と、
前記撮像画像データを所定の色相及び彩度の組み合わせからなる領域に分割するHS分割手段と、
前記撮像画像データ全体における前記分割された所定の色相及び彩度の組み合わせからなる領域の明度偏倚量を算出する明度偏倚量算出手段と、
前記分割された所定の色相及び彩度の組み合わせからなる領域の画素が前記撮像画像データの画面全体に占める割合を示す占有率を算出するHS占有率算出手段と、
前記算出された占有率に基づいて、前記分割された所定の色相及び彩度の組み合わせからなる領域の階調変換処理への寄与率を算出する寄与率算出手段と、
前記算出された明度偏倚量及び寄与率に基づいて、階調変換処理条件を決定する階調変換処理条件決定手段と、
前記決定された階調変換処理条件に基づいて、前記撮像画像データに階調変換処理を施す階調変換処理手段と、
を備えたことを特徴とする画像処理装置。
In an image processing apparatus for inputting captured image data and outputting image data optimized for viewing on an output medium,
Data acquisition means for obtaining a hue value, a saturation value and a brightness value for each pixel of the captured image data;
HS dividing means for dividing the captured image data into regions composed of combinations of predetermined hue and saturation;
A lightness deviation amount calculating means for calculating a lightness deviation amount of an area composed of a combination of the predetermined hue and saturation divided in the entire captured image data;
HS occupancy ratio calculating means for calculating an occupancy ratio indicating the ratio of pixels of the divided predetermined hue and saturation combination to the entire screen of the captured image data;
Based on the calculated occupancy rate, contribution rate calculating means for calculating a contribution rate to the gradation conversion processing of the region composed of a combination of the predetermined hue and saturation divided,
Gradation conversion processing condition determining means for determining gradation conversion processing conditions based on the calculated brightness deviation amount and contribution rate;
Gradation conversion processing means for performing gradation conversion processing on the captured image data based on the determined gradation conversion processing conditions;
An image processing apparatus comprising:
撮像画像データを入力し、出力媒体上での鑑賞に最適化された画像データを出力する画像処理装置において、
前記撮像画像データの画素毎の色相値、彩度値及び明度値を得るデータ取得手段と、
前記撮像画像データを所定の色相及び彩度の組み合わせからなる領域に分割するHS分割手段と、
前記撮像画像データ全体における前記分割された所定の色相及び彩度の組み合わせからなる領域の明度偏倚量を算出する明度偏倚量算出手段と、
前記算出された明度偏倚量に基づいて、階調変換処理条件を決定する階調変換処理条件決定手段と、
前記決定された階調変換処理条件に基づいて、前記撮像画像データに階調変換処理を施す階調変換処理手段と、
前記撮像画像データを所定の色相領域に分割する色相領域分割手段と、
前記分割された色相領域毎の画素が前記撮像画像データの画面全体に占める割合を示す占有率を算出する色相領域占有率算出手段と、
前記算出された色相領域毎の占有率に応じて、前記色相領域毎に低彩度闘値を算出する低彩度閾値算出手段と、
前記算出された低彩度闘値に基づいて、グレーバランス調整に用いる低彩度画素を抽出する低彩度画素抽出手段と、
前記抽出された低彩度画素を用いてグレーバランス調整条件を算出するグレーバランス調整条件算出手段と、
前記算出されたグレーバランス調整条件に基づいて、前記撮像画像データにグレーバランス調整を施すグレーバランス調整手段と、
を備えたことを特徴とする画像処理装置。
In an image processing apparatus for inputting captured image data and outputting image data optimized for viewing on an output medium,
Data acquisition means for obtaining a hue value, a saturation value and a brightness value for each pixel of the captured image data;
HS dividing means for dividing the captured image data into regions composed of combinations of predetermined hue and saturation;
A lightness deviation amount calculating means for calculating a lightness deviation amount of an area composed of a combination of the predetermined hue and saturation divided in the entire captured image data;
Gradation conversion processing condition determining means for determining gradation conversion processing conditions based on the calculated brightness deviation amount;
Gradation conversion processing means for performing gradation conversion processing on the captured image data based on the determined gradation conversion processing conditions;
Hue area dividing means for dividing the captured image data into predetermined hue areas;
A hue area occupancy ratio calculating unit that calculates an occupancy ratio indicating a ratio of pixels for each of the divided hue areas to the entire screen of the captured image data;
Low saturation threshold value calculating means for calculating a low saturation threshold value for each hue region according to the calculated occupancy ratio for each hue region;
Low saturation pixel extraction means for extracting low saturation pixels used for gray balance adjustment based on the calculated low saturation threshold;
A gray balance adjustment condition calculating means for calculating a gray balance adjustment condition using the extracted low saturation pixel;
Based on the calculated gray balance adjustment conditions, gray balance adjustment means for performing gray balance adjustment on the captured image data;
An image processing apparatus comprising:
撮像画像データを入力し、出力媒体上での鑑賞に最適化された画像データを出力する画像処理装置において、
前記撮像画像データの画素毎の色相値、彩度値及び明度値を得るデータ取得手段と、
前記撮像画像データを所定の色相及び彩度の組み合わせからなる領域に分割するHS分割手段と、
前記分割された所定の色相及び彩度の組み合わせからなる領域の画素が前記撮像画像データの画面全体に占める割合を示す占有率を算出するHS占有率算出手段と、
前記算出された占有率に基づいて、前記分割された所定の色相及び彩度の組み合わせからなる領域の階調変換処理への寄与率を算出する寄与率算出手段と、
前記算出された寄与率に基づいて、階調変換処理条件を決定する階調変換処理条件決定手段と、
前記決定された階調変換処理条件に基づいて、前記撮像画像データに階調変換処理を施す階調変換処理手段と、
前記撮像画像データを所定の色相領域に分割する色相領域分割手段と、
前記分割された色相領域毎の画素が前記撮像画像データの画面全体に占める割合を示す占有率を算出する色相領域占有率算出手段と、
前記算出された色相領域毎の占有率に応じて、前記色相領域毎に低彩度闘値を算出する低彩度閾値算出手段と、
前記算出された低彩度闘値に基づいて、グレーバランス調整に用いる低彩度画素を抽出する低彩度画素抽出手段と、
前記抽出された低彩度画素を用いてグレーバランス調整条件を算出するグレーバランス調整条件算出手段と、
前記算出されたグレーバランス調整条件に基づいて、前記撮像画像データにグレーバランス調整を施すグレーバランス調整手段と、
を備えたことを特徴とする画像処理装置。
In an image processing apparatus for inputting captured image data and outputting image data optimized for viewing on an output medium,
Data acquisition means for obtaining a hue value, a saturation value and a brightness value for each pixel of the captured image data;
HS dividing means for dividing the captured image data into regions composed of combinations of predetermined hue and saturation;
HS occupancy ratio calculating means for calculating an occupancy ratio indicating the ratio of pixels of the divided predetermined hue and saturation combination to the entire screen of the captured image data;
Based on the calculated occupancy rate, contribution rate calculating means for calculating a contribution rate to the gradation conversion processing of the region composed of a combination of the predetermined hue and saturation divided,
Gradation conversion processing condition determining means for determining gradation conversion processing conditions based on the calculated contribution rate;
Gradation conversion processing means for performing gradation conversion processing on the captured image data based on the determined gradation conversion processing conditions;
Hue area dividing means for dividing the captured image data into predetermined hue areas;
A hue area occupancy ratio calculating unit that calculates an occupancy ratio indicating a ratio of pixels of the divided hue areas to the entire screen of the captured image data;
Low saturation threshold value calculating means for calculating a low saturation threshold value for each hue region according to the calculated occupancy ratio for each hue region;
Low saturation pixel extraction means for extracting low saturation pixels used for gray balance adjustment based on the calculated low saturation threshold;
A gray balance adjustment condition calculating means for calculating a gray balance adjustment condition using the extracted low saturation pixel;
Based on the calculated gray balance adjustment conditions, gray balance adjustment means for performing gray balance adjustment on the captured image data;
An image processing apparatus comprising:
撮像画像データを入力し、出力媒体上での鑑賞に最適化された画像データを出力する画像処理装置において、
前記撮像画像データの画素毎の色相値、彩度値及び明度値を得るデータ取得手段と、
前記撮像画像データを所定の色相及び彩度の組み合わせからなる領域に分割するHS分割手段と、
前記撮像画像データ全体における前記分割された所定の色相及び彩度の組み合わせからなる領域の明度偏倚量を算出する明度偏倚量算出手段と、
前記分割された所定の色相及び彩度の組み合わせからなる領域の画素が前記撮像画像データの画面全体に占める割合を示す占有率を算出するHS占有率算出手段と、
前記算出された占有率に基づいて、前記分割された所定の色相及び彩度の組み合わせからなる領域の階調変換処理への寄与率を算出する寄与率算出手段と、
前記算出された明度偏倚量及び寄与率に基づいて、階調変換処理条件を決定する階調変換処理条件決定手段と、
前記決定された階調変換処理条件に基づいて、前記撮像画像データに階調変換処理を施す階調変換処理手段と、
前記撮像画像データを所定の色相領域に分割する色相領域分割手段と、
前記分割された色相領域毎の画素が前記撮像画像データの画面全体に占める割合を示す占有率を算出する色相領域占有率算出手段と、
前記算出された色相領域毎の占有率に応じて、前記色相領域毎に低彩度闘値を算出する低彩度閾値算出手段と、
前記算出された低彩度闘値に基づいて、グレーバランス調整に用いる低彩度画素を抽出する低彩度画素抽出手段と、
前記抽出された低彩度画素を用いてグレーバランス調整条件を算出するグレーバランス調整条件算出手段と、
前記算出されたグレーバランス調整条件に基づいて、前記撮像画像データにグレーバランス調整を施すグレーバランス調整手段と、
を備えたことを特徴とする画像処理装置。
In an image processing apparatus for inputting captured image data and outputting image data optimized for viewing on an output medium,
Data acquisition means for obtaining a hue value, a saturation value and a brightness value for each pixel of the captured image data;
HS dividing means for dividing the captured image data into regions composed of combinations of predetermined hue and saturation;
A lightness deviation amount calculating means for calculating a lightness deviation amount of an area composed of a combination of the predetermined hue and saturation divided in the entire captured image data;
HS occupancy ratio calculating means for calculating an occupancy ratio indicating the ratio of pixels of the divided predetermined hue and saturation combination to the entire screen of the captured image data;
Based on the calculated occupancy rate, contribution rate calculating means for calculating a contribution rate to the gradation conversion processing of the region composed of a combination of the predetermined hue and saturation divided,
Gradation conversion processing condition determining means for determining gradation conversion processing conditions based on the calculated brightness deviation amount and contribution rate;
Gradation conversion processing means for performing gradation conversion processing on the captured image data based on the determined gradation conversion processing conditions;
Hue area dividing means for dividing the captured image data into predetermined hue areas;
A hue area occupancy ratio calculating unit that calculates an occupancy ratio indicating a ratio of pixels for each of the divided hue areas to the entire screen of the captured image data;
Low saturation threshold value calculating means for calculating a low saturation threshold value for each hue region according to the calculated occupancy ratio for each hue region;
Low saturation pixel extraction means for extracting low saturation pixels used for gray balance adjustment based on the calculated low saturation threshold;
A gray balance adjustment condition calculating means for calculating a gray balance adjustment condition using the extracted low saturation pixel;
Based on the calculated gray balance adjustment conditions, gray balance adjustment means for performing gray balance adjustment on the captured image data;
An image processing apparatus comprising:
前記取得された色相値及び彩度値の2次元ヒストグラムを作成する2次元ヒストグラム作成手段を備え、
前記HS分割手段は、前記作成された2次元ヒストグラムに基づいて、前記撮像画像データを所定の色相及び彩度の組み合わせからなる領域に分割することを特徴とする請求項14〜16の何れか一項に記載の画像処理装置。
Two-dimensional histogram creation means for creating a two-dimensional histogram of the acquired hue value and saturation value;
The HS dividing unit divides the captured image data into regions composed of combinations of predetermined hues and saturations based on the created two-dimensional histogram. The image processing apparatus according to item.
前記取得された色相値及び彩度値の2次元ヒストグラムを作成する2次元ヒストグラム作成手段を備え、
前記HS分割手段は、前記作成された2次元ヒストグラムに基づいて、前記撮像画像データを所定の色相及び彩度の組み合わせからなる領域に分割し、
前記色相領域分割手段は、前記作成された2次元ヒストグラムに基づいて、前記撮像画像データを所定の色相領域に分割することを特徴とする請求項17〜19の何れか一項に記載の画像処理装置。
Two-dimensional histogram creation means for creating a two-dimensional histogram of the acquired hue value and saturation value;
The HS dividing unit divides the captured image data into regions including combinations of a predetermined hue and saturation based on the created two-dimensional histogram,
The image processing according to any one of claims 17 to 19, wherein the hue area dividing unit divides the captured image data into a predetermined hue area based on the created two-dimensional histogram. apparatus.
前記HS分割手段は、前記撮像画像データを、少なくともHSV表色系の色相値で0〜69、彩度値で0〜128からなる肌色領域に分割することを特徴とする請求項14〜16、20の何れか一項に記載の画像処理装置。   The HS dividing unit divides the captured image data into skin color regions each having a hue value of at least HSV color system of 0 to 69 and a saturation value of 0 to 128. The image processing apparatus according to any one of 20. 前記HS分割手段は、前記撮像画像データを、少なくともHSV表色系の色相値で0〜69、彩度値で0〜128からなる肌色領域に分割し、
前記色相領域分割手段は、前記撮像画像データを、HSV表色系の色相値で0〜69の肌色相領域、70〜184の緑色相領域、185〜224の空色相領域、225〜360の赤色相領域に分割することを特徴とする請求項17〜19、21の何れか一項に記載の画像処理装置。
The HS dividing means divides the captured image data into skin color regions consisting of at least a hue value of HSV color system of 0 to 69 and a saturation value of 0 to 128,
The hue area dividing unit converts the captured image data into a skin hue area of 0 to 69, a green hue area of 70 to 184, a sky hue area of 185 to 224, and a red hue of 225 to 360 in the hue value of the HSV color system. The image processing device according to claim 17, wherein the image processing device is divided into phase regions.
前記階調処理条件の決定は、階調変換曲線を作成するか或いは予め設定された複数の階調変換曲線の中から選択することにより階調変換曲線を調整することにより行うことを特徴とする請求項14〜23の何れか一項に記載の画像処理装置。   The determination of the gradation processing condition is performed by adjusting the gradation conversion curve by creating a gradation conversion curve or selecting from a plurality of preset gradation conversion curves. The image processing apparatus according to any one of claims 14 to 23. 前記撮像画像データは、シーン参照画像データであることを特徴とする請求項14〜24の何れか一項に記載の画像処理装置。   The image processing apparatus according to any one of claims 14 to 24, wherein the captured image data is scene reference image data. 前記出力媒体上での鑑賞に最適化された画像データは、鑑賞画像参照データであることを特徴とする請求項14〜25の何れか一項に記載の画像処理装置。   The image processing apparatus according to any one of claims 14 to 25, wherein the image data optimized for viewing on the output medium is viewing image reference data. 撮像画像データを入力し、出力媒体上での鑑賞に最適化された画像データを生成し、生成された画像データを出力媒体上に形成する画像記録装置において、
前記撮像画像データの画素毎の色相値、彩度値及び明度値を得るデータ取得手段と、
前記撮像画像データを所定の色相及び彩度の組み合わせからなる領域に分割するHS分割手段と、
前記撮像画像データ全体における前記分割された所定の色相及び彩度の組み合わせからなる領域の明度偏倚量を算出する明度偏倚量算出手段と、
前記算出された明度偏倚量に基づいて、階調変換処理条件を決定する階調変換処理条件決定手段と、
前記決定された階調変換処理条件に基づいて、前記撮像画像データに階調変換処理を施す階調変換処理手段と、
を備えたことを特徴とする画像記録装置。
In an image recording apparatus that inputs captured image data, generates image data optimized for viewing on an output medium, and forms the generated image data on the output medium.
Data acquisition means for obtaining a hue value, a saturation value and a brightness value for each pixel of the captured image data;
HS dividing means for dividing the captured image data into regions composed of combinations of predetermined hue and saturation;
A lightness deviation amount calculating means for calculating a lightness deviation amount of an area composed of a combination of the predetermined hue and saturation divided in the entire captured image data;
Gradation conversion processing condition determining means for determining gradation conversion processing conditions based on the calculated brightness deviation amount;
Gradation conversion processing means for performing gradation conversion processing on the captured image data based on the determined gradation conversion processing conditions;
An image recording apparatus comprising:
撮像画像データを入力し、出力媒体上での鑑賞に最適化された画像データを生成し、生成された画像データを出力媒体上に形成する画像記録装置において、
前記撮像画像データの画素毎の色相値、彩度値及び明度値を得るデータ取得手段と、
前記撮像画像データを所定の色相及び彩度の組み合わせからなる領域に分割するHS分割手段と、
前記分割された所定の色相及び彩度の組み合わせからなる領域の画素が前記撮像画像データの画面全体に占める割合を示す占有率を算出するHS占有率算出手段と、
前記算出された占有率に基づいて、前記分割された所定の色相及び彩度の組み合わせからなる領域の階調変換処理への寄与率を算出する寄与率算出手段と、
前記算出された寄与率に基づいて、階調変換処理条件を決定する階調変換処理条件決定手段と、
前記決定された階調変換処理条件に基づいて、前記撮像画像データに階調変換処理を施す階調変換処理手段と、
を備えたことを特徴とする画像記録装置。
In an image recording apparatus that inputs captured image data, generates image data optimized for viewing on an output medium, and forms the generated image data on the output medium.
Data acquisition means for obtaining a hue value, a saturation value and a brightness value for each pixel of the captured image data;
HS dividing means for dividing the captured image data into regions composed of combinations of predetermined hue and saturation;
HS occupancy ratio calculating means for calculating an occupancy ratio indicating the ratio of pixels of the divided predetermined hue and saturation combination to the entire screen of the captured image data;
Based on the calculated occupancy rate, contribution rate calculating means for calculating a contribution rate to the gradation conversion processing of the region composed of a combination of the predetermined hue and saturation divided,
Gradation conversion processing condition determining means for determining gradation conversion processing conditions based on the calculated contribution rate;
Gradation conversion processing means for performing gradation conversion processing on the captured image data based on the determined gradation conversion processing conditions;
An image recording apparatus comprising:
撮像画像データを入力し、出力媒体上での鑑賞に最適化された画像データを生成し、生成された画像データを出力媒体上に形成する画像記録装置において、
前記撮像画像データの画素毎の色相値、彩度値及び明度値を得るデータ取得手段と、
前記撮像画像データを所定の色相及び彩度の組み合わせからなる領域に分割するHS分割手段と、
前記撮像画像データ全体における前記分割された所定の色相及び彩度の組み合わせからなる領域の明度偏倚量を算出する明度偏倚量算出手段と、
前記分割された所定の色相及び彩度の組み合わせからなる領域の画素が前記撮像画像データの画面全体に占める割合を示す占有率を算出するHS占有率算出手段と、
前記算出された占有率に基づいて、前記分割された所定の色相及び彩度の組み合わせからなる領域の階調変換処理への寄与率を算出する寄与率算出手段と、
前記算出された明度偏倚量及び寄与率に基づいて、階調変換処理条件を決定する階調変換処理条件決定手段と、
前記決定された階調変換処理条件に基づいて、前記撮像画像データに階調変換処理を施す階調変換処理手段と、
を備えたことを特徴とする画像記録装置。
In an image recording apparatus that inputs captured image data, generates image data optimized for viewing on an output medium, and forms the generated image data on the output medium.
Data acquisition means for obtaining a hue value, a saturation value and a brightness value for each pixel of the captured image data;
HS dividing means for dividing the captured image data into regions composed of combinations of predetermined hue and saturation;
A lightness deviation amount calculating means for calculating a lightness deviation amount of an area composed of a combination of the predetermined hue and saturation divided in the entire captured image data;
HS occupancy ratio calculating means for calculating an occupancy ratio indicating the ratio of pixels of the divided predetermined hue and saturation combination to the entire screen of the captured image data;
Based on the calculated occupancy rate, contribution rate calculating means for calculating a contribution rate to the gradation conversion processing of the region composed of a combination of the predetermined hue and saturation divided,
Gradation conversion processing condition determining means for determining gradation conversion processing conditions based on the calculated brightness deviation amount and contribution rate;
Gradation conversion processing means for performing gradation conversion processing on the captured image data based on the determined gradation conversion processing conditions;
An image recording apparatus comprising:
撮像画像データを入力し、出力媒体上での鑑賞に最適化された画像データを生成し、生成された画像データを出力媒体上に形成する画像記録装置において、
前記撮像画像データの画素毎の色相値、彩度値及び明度値を得るデータ取得手段と、
前記撮像画像データを所定の色相及び彩度の組み合わせからなる領域に分割するHS分割手段と、
前記撮像画像データ全体における前記分割された所定の色相及び彩度の組み合わせからなる領域の明度偏倚量を算出する明度偏倚量算出手段と、
前記算出された明度偏倚量に基づいて、階調変換処理条件を決定する階調変換処理条件決定手段と、
前記決定された階調変換処理条件に基づいて、前記撮像画像データに階調変換処理を施す階調変換処理手段と、
前記撮像画像データを所定の色相領域に分割する色相領域分割手段と、
前記分割された色相領域毎の画素が前記撮像画像データの画面全体に占める割合を示す占有率を算出する色相領域占有率算出手段と、
前記算出された色相領域毎の占有率に応じて、前記色相領域毎に低彩度闘値を算出する低彩度閾値算出手段と、
前記算出された低彩度闘値に基づいて、グレーバランス調整に用いる低彩度画素を抽出する低彩度画素抽出手段と、
前記抽出された低彩度画素を用いてグレーバランス調整条件を算出するグレーバランス調整条件算出手段と、
前記算出されたグレーバランス調整条件に基づいて、前記撮像画像データにグレーバランス調整を施すグレーバランス調整手段と、
を備えたことを特徴とする画像記録装置。
In an image recording apparatus that inputs captured image data, generates image data optimized for viewing on an output medium, and forms the generated image data on the output medium.
Data acquisition means for obtaining a hue value, a saturation value and a brightness value for each pixel of the captured image data;
HS dividing means for dividing the captured image data into regions composed of combinations of predetermined hue and saturation;
A lightness deviation amount calculating means for calculating a lightness deviation amount of an area composed of a combination of the predetermined hue and saturation divided in the entire captured image data;
Gradation conversion processing condition determining means for determining gradation conversion processing conditions based on the calculated brightness deviation amount;
Gradation conversion processing means for performing gradation conversion processing on the captured image data based on the determined gradation conversion processing conditions;
Hue area dividing means for dividing the captured image data into predetermined hue areas;
A hue area occupancy ratio calculating unit that calculates an occupancy ratio indicating a ratio of pixels of the divided hue areas to the entire screen of the captured image data;
Low saturation threshold value calculating means for calculating a low saturation threshold value for each hue region according to the calculated occupancy ratio for each hue region;
Low saturation pixel extraction means for extracting low saturation pixels used for gray balance adjustment based on the calculated low saturation threshold;
A gray balance adjustment condition calculating means for calculating a gray balance adjustment condition using the extracted low saturation pixel;
Based on the calculated gray balance adjustment conditions, gray balance adjustment means for performing gray balance adjustment on the captured image data;
An image recording apparatus comprising:
撮像画像データを入力し、出力媒体上での鑑賞に最適化された画像データを生成し、生成された画像データを出力媒体上に形成する画像記録装置において、
前記撮像画像データの画素毎の色相値、彩度値及び明度値を得るデータ取得手段と、
前記撮像画像データを所定の色相及び彩度の組み合わせからなる領域に分割するHS分割手段と、
前記分割された所定の色相及び彩度の組み合わせからなる領域の画素が前記撮像画像データの画面全体に占める割合を示す占有率を算出するHS占有率算出手段と、
前記算出された占有率に基づいて、前記分割された所定の色相及び彩度の組み合わせからなる領域の階調変換処理への寄与率を算出する寄与率算出手段と、
前記算出された寄与率に基づいて、階調変換処理条件を決定する階調変換処理条件決定手段と、
前記決定された階調変換処理条件に基づいて、前記撮像画像データに階調変換処理を施す階調変換処理手段と、
前記撮像画像データを所定の色相領域に分割する色相領域分割手段と、
前記分割された色相領域毎の画素が前記撮像画像データの画面全体に占める割合を示す占有率を算出する色相領域占有率算出手段と、
前記算出された色相領域毎の占有率に応じて、前記色相領域毎に低彩度闘値を算出する低彩度閾値算出手段と、
前記算出された低彩度闘値に基づいて、グレーバランス調整に用いる低彩度画素を抽出する低彩度画素抽出手段と、
前記抽出された低彩度画素を用いてグレーバランス調整条件を算出するグレーバランス調整条件算出手段と、
前記算出されたグレーバランス調整条件に基づいて、前記撮像画像データにグレーバランス調整を施すグレーバランス調整手段と、
を備えたことを特徴とする画像記録装置。
In an image recording apparatus that inputs captured image data, generates image data optimized for viewing on an output medium, and forms the generated image data on the output medium.
Data acquisition means for obtaining a hue value, a saturation value and a brightness value for each pixel of the captured image data;
HS dividing means for dividing the captured image data into regions composed of combinations of predetermined hue and saturation;
HS occupancy ratio calculating means for calculating an occupancy ratio indicating the ratio of pixels of the divided predetermined hue and saturation combination to the entire screen of the captured image data;
Based on the calculated occupancy rate, contribution rate calculating means for calculating a contribution rate to the gradation conversion processing of the region composed of the combination of the predetermined hue and saturation divided,
Gradation conversion processing condition determining means for determining gradation conversion processing conditions based on the calculated contribution rate;
Gradation conversion processing means for performing gradation conversion processing on the captured image data based on the determined gradation conversion processing conditions;
Hue area dividing means for dividing the captured image data into predetermined hue areas;
A hue area occupancy ratio calculating unit that calculates an occupancy ratio indicating a ratio of pixels for each of the divided hue areas to the entire screen of the captured image data;
Low saturation threshold value calculating means for calculating a low saturation threshold value for each hue region according to the calculated occupancy ratio for each hue region;
Low saturation pixel extraction means for extracting low saturation pixels used for gray balance adjustment based on the calculated low saturation threshold;
A gray balance adjustment condition calculating means for calculating a gray balance adjustment condition using the extracted low saturation pixel;
Based on the calculated gray balance adjustment conditions, gray balance adjustment means for performing gray balance adjustment on the captured image data;
An image recording apparatus comprising:
撮像画像データを入力し、出力媒体上での鑑賞に最適化された画像データを生成し、生成された画像データを出力媒体上に形成する画像記録装置において、
前記撮像画像データの画素毎の色相値、彩度値及び明度値を得るデータ取得手段と、
前記撮像画像データを所定の色相及び彩度の組み合わせからなる領域に分割するHS分割手段と、
前記撮像画像データ全体における前記分割された所定の色相及び彩度の組み合わせからなる領域の明度偏倚量を算出する明度偏倚量算出手段と、
前記分割された所定の色相及び彩度の組み合わせからなる領域の画素が前記撮像画像データの画面全体に占める割合を示す占有率を算出するHS占有率算出手段と、
前記算出された占有率に基づいて、前記分割された所定の色相及び彩度の組み合わせからなる領域の階調変換処理への寄与率を算出する寄与率算出手段と、
前記算出された明度偏倚量及び寄与率に基づいて、階調変換処理条件を決定する階調変換処理条件決定手段と、
前記決定された階調変換処理条件に基づいて、前記撮像画像データに階調変換処理を施す階調変換処理手段と、
前記撮像画像データを所定の色相領域に分割する色相領域分割手段と、
前記分割された色相領域毎の画素が前記撮像画像データの画面全体に占める割合を示す占有率を算出する色相領域占有率算出手段と、
前記算出された色相領域毎の占有率に応じて、前記色相領域毎に低彩度闘値を算出する低彩度閾値算出手段と、
前記算出された低彩度闘値に基づいて、グレーバランス調整に用いる低彩度画素を抽出する低彩度画素抽出手段と、
前記抽出された低彩度画素を用いてグレーバランス調整条件を算出するグレーバランス調整条件算出手段と、
前記算出されたグレーバランス調整条件に基づいて、前記撮像画像データにグレーバランス調整を施すグレーバランス調整手段と、
を備えたことを特徴とする画像記録装置。
In an image recording apparatus that inputs captured image data, generates image data optimized for viewing on an output medium, and forms the generated image data on the output medium.
Data acquisition means for obtaining a hue value, a saturation value and a brightness value for each pixel of the captured image data;
HS dividing means for dividing the captured image data into regions composed of combinations of predetermined hue and saturation;
A lightness deviation amount calculating means for calculating a lightness deviation amount of an area composed of a combination of the predetermined hue and saturation divided in the entire captured image data;
HS occupancy rate calculating means for calculating an occupancy rate indicating the ratio of pixels of the divided predetermined hue and saturation combination to the entire screen of the captured image data;
Based on the calculated occupancy rate, contribution rate calculating means for calculating a contribution rate to the gradation conversion processing of the region composed of the combination of the predetermined hue and saturation divided,
Gradation conversion processing condition determining means for determining gradation conversion processing conditions based on the calculated brightness deviation amount and contribution rate;
Gradation conversion processing means for performing gradation conversion processing on the captured image data based on the determined gradation conversion processing conditions;
Hue area dividing means for dividing the captured image data into predetermined hue areas;
A hue area occupancy ratio calculating unit that calculates an occupancy ratio indicating a ratio of pixels for each of the divided hue areas to the entire screen of the captured image data;
Low saturation threshold value calculation means for calculating a low saturation threshold value for each hue area according to the calculated occupancy ratio for each hue area;
Low saturation pixel extraction means for extracting low saturation pixels used for gray balance adjustment based on the calculated low saturation threshold;
A gray balance adjustment condition calculating means for calculating a gray balance adjustment condition using the extracted low saturation pixel;
Based on the calculated gray balance adjustment conditions, gray balance adjustment means for performing gray balance adjustment on the captured image data;
An image recording apparatus comprising:
前記取得された色相値及び彩度値の2次元ヒストグラムを作成する2次元ヒストグラム作成手段を備え、
前記HS分割手段は、前記作成された2次元ヒストグラムに基づいて、前記撮像画像データを所定の色相及び彩度の組み合わせからなる領域に分割することを特徴とする請求項27〜29の何れか一項に記載の画像記録装置。
Two-dimensional histogram creation means for creating a two-dimensional histogram of the acquired hue value and saturation value;
30. The HS dividing unit according to any one of claims 27 to 29, wherein the HS dividing unit divides the captured image data into regions including combinations of a predetermined hue and saturation based on the created two-dimensional histogram. The image recording apparatus described in the item.
前記取得された色相値及び彩度値の2次元ヒストグラムを作成する2次元ヒストグラム作成手段を備え、
前記HS分割手段は、前記作成された2次元ヒストグラムに基づいて、前記撮像画像データを所定の色相及び彩度の組み合わせからなる領域に分割し、
前記色相領域分割手段は、前記作成された2次元ヒストグラムに基づいて、前記撮像画像データを所定の色相領域に分割することを特徴とする請求項30〜32の何れか一項に記載の画像記録装置。
Two-dimensional histogram creation means for creating a two-dimensional histogram of the acquired hue value and saturation value;
The HS dividing unit divides the captured image data into regions including combinations of a predetermined hue and saturation based on the created two-dimensional histogram,
The image recording according to any one of claims 30 to 32, wherein the hue area dividing unit divides the captured image data into predetermined hue areas based on the created two-dimensional histogram. apparatus.
前記HS分割手段は、前記撮像画像データを、少なくともHSV表色系の色相値で0〜69、彩度値で0〜128からなる肌色領域に分割することを特徴とする請求項27〜29、33の何れか一項に記載の画像記録装置。   30. The HS dividing means divides the captured image data into skin color regions having at least a hue value of HSV color system of 0 to 69 and a saturation value of 0 to 128, respectively. 34. The image recording device according to any one of 33. 前記HS分割手段は、前記撮像画像データを、少なくともHSV表色系の色相値で0〜69、彩度値で0〜128からなる肌色領域に分割し、
前記色相領域分割手段は、前記撮像画像データを、HSV表色系の色相値で0〜69の肌色相領域、70〜184の緑色相領域、185〜224の空色相領域、225〜360の赤色相領域に分割することを特徴とする請求項30〜32、34の何れか一項に記載の画像記録装置。
The HS dividing means divides the captured image data into skin color regions consisting of at least a hue value of HSV color system of 0 to 69 and a saturation value of 0 to 128,
The hue area dividing unit converts the captured image data into a skin hue area of 0 to 69, a green hue area of 70 to 184, a sky hue area of 185 to 224, and a red hue of 225 to 360 in the hue value of the HSV color system. 35. The image recording apparatus according to claim 30, wherein the image recording apparatus is divided into phase regions.
前記階調処理条件の決定は、階調変換曲線を作成するか或いは予め設定された複数の階調変換曲線の中から選択することにより階調変換曲線を調整することにより行うことを特徴とする請求項27〜36の何れか一項に記載の画像記録装置。   The determination of the gradation processing condition is performed by adjusting the gradation conversion curve by creating a gradation conversion curve or selecting from a plurality of preset gradation conversion curves. The image recording apparatus according to any one of claims 27 to 36. 前記撮像画像データは、シーン参照画像データであることを特徴とする請求項27〜37の何れか一項に記載の画像記録装置。   38. The image recording apparatus according to claim 27, wherein the captured image data is scene reference image data. 前記出力媒体上での鑑賞に最適化された画像データは、鑑賞画像参照データであることを特徴とする請求項27〜38の何れか一項に記載の画像記録装置。   39. The image recording apparatus according to claim 27, wherein the image data optimized for viewing on the output medium is viewing image reference data.
JP2003434706A 2003-12-26 2003-12-26 Image processing method, image processing apparatus, and image recording apparatus Pending JP2005192162A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2003434706A JP2005192162A (en) 2003-12-26 2003-12-26 Image processing method, image processing apparatus, and image recording apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2003434706A JP2005192162A (en) 2003-12-26 2003-12-26 Image processing method, image processing apparatus, and image recording apparatus

Publications (1)

Publication Number Publication Date
JP2005192162A true JP2005192162A (en) 2005-07-14

Family

ID=34791683

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2003434706A Pending JP2005192162A (en) 2003-12-26 2003-12-26 Image processing method, image processing apparatus, and image recording apparatus

Country Status (1)

Country Link
JP (1) JP2005192162A (en)

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007124604A (en) * 2005-09-29 2007-05-17 Fujifilm Corp Image processing apparatus and processing method therefor
JP2007188396A (en) * 2006-01-16 2007-07-26 Nikon Corp Imaging device, and image processing program
JP2007215074A (en) * 2006-02-13 2007-08-23 Seiko Epson Corp Image data analysis apparatus, image data generating apparatus, image data analysis method, and image data generating method
JP2008054297A (en) * 2006-07-25 2008-03-06 Fujifilm Corp System for and method of photographing image, and computer program
JP2009077431A (en) * 2008-12-04 2009-04-09 Seiko Epson Corp Image processing apparatus, and image processing method
JP2010049312A (en) * 2008-08-19 2010-03-04 Casio Comput Co Ltd Image processing device, image processing method, and program
KR20110071704A (en) * 2009-12-21 2011-06-29 삼성전자주식회사 Method and apparatus for image scanning
JP2014120919A (en) * 2012-12-17 2014-06-30 Samsung Display Co Ltd Image processor, image processing method, and program
US8797423B2 (en) 2006-07-25 2014-08-05 Fujifilm Corporation System for and method of controlling a parameter used for detecting an objective body in an image and computer program
JP2017182770A (en) * 2016-03-24 2017-10-05 パナソニックIpマネジメント株式会社 Image processing device, image processing method and program
CN116229856A (en) * 2023-05-10 2023-06-06 山西晋聚轩科技有限公司 Automatic control screen detection system and method for computer
CN116894795A (en) * 2023-09-11 2023-10-17 归芯科技(深圳)有限公司 Image processing method and device

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007124604A (en) * 2005-09-29 2007-05-17 Fujifilm Corp Image processing apparatus and processing method therefor
JP2007188396A (en) * 2006-01-16 2007-07-26 Nikon Corp Imaging device, and image processing program
US8036455B2 (en) 2006-02-13 2011-10-11 Seiko Epson Corporation Method and apparatus of analyzing and generating image data
JP2007215074A (en) * 2006-02-13 2007-08-23 Seiko Epson Corp Image data analysis apparatus, image data generating apparatus, image data analysis method, and image data generating method
US8797423B2 (en) 2006-07-25 2014-08-05 Fujifilm Corporation System for and method of controlling a parameter used for detecting an objective body in an image and computer program
JP2008054297A (en) * 2006-07-25 2008-03-06 Fujifilm Corp System for and method of photographing image, and computer program
JP2010049312A (en) * 2008-08-19 2010-03-04 Casio Comput Co Ltd Image processing device, image processing method, and program
JP2009077431A (en) * 2008-12-04 2009-04-09 Seiko Epson Corp Image processing apparatus, and image processing method
KR20110071704A (en) * 2009-12-21 2011-06-29 삼성전자주식회사 Method and apparatus for image scanning
KR101628238B1 (en) 2009-12-21 2016-06-21 삼성전자주식회사 Method and apparatus for image scanning
JP2014120919A (en) * 2012-12-17 2014-06-30 Samsung Display Co Ltd Image processor, image processing method, and program
JP2017182770A (en) * 2016-03-24 2017-10-05 パナソニックIpマネジメント株式会社 Image processing device, image processing method and program
CN116229856A (en) * 2023-05-10 2023-06-06 山西晋聚轩科技有限公司 Automatic control screen detection system and method for computer
CN116894795A (en) * 2023-09-11 2023-10-17 归芯科技(深圳)有限公司 Image processing method and device
CN116894795B (en) * 2023-09-11 2023-12-26 归芯科技(深圳)有限公司 Image processing method and device

Similar Documents

Publication Publication Date Title
JP2005190435A (en) Image processing method, image processing apparatus and image recording apparatus
US20040095478A1 (en) Image-capturing apparatus, image-processing apparatus, image-recording apparatus, image-processing method, program of the same and recording medium of the program
US7312824B2 (en) Image-capturing apparatus, image processing apparatus and image recording apparatus
US20050185837A1 (en) Image-processing method, image-processing apparatus and image-recording apparatus
EP1130899B1 (en) Method, apparatus and recording medium for image processing
KR100668267B1 (en) Image processing apparatus, image processing method and computer-readable medium on which image processing program is recorded
JP2006325015A (en) Image processing method, image processing apparatus, imaging apparatus, and image processing program
US20030179398A1 (en) Image forming method and image forming apparatus
US20040041926A1 (en) Image-capturing apparatus, imager processing apparatus and image recording apparatus
JP2004096506A (en) Image forming method, image processor and image recording device
JP2005192162A (en) Image processing method, image processing apparatus, and image recording apparatus
US20050259282A1 (en) Image processing method, image processing apparatus, image recording apparatus, and image processing program
US7324702B2 (en) Image processing method, image processing apparatus, image recording apparatus, program, and recording medium
US20050128539A1 (en) Image processing method, image processing apparatus and image recording apparatus
JP2005192158A (en) Image processing method, image processing apparatus, and image recording apparatus
WO2006033235A1 (en) Image processing method, image processing device, imaging device, and image processing program
JP2007293686A (en) Imaging apparatus, image processing apparatus, image processing method and image processing program
JP2007221678A (en) Imaging apparatus, image processor, image processing method and image processing program
US20040042025A1 (en) Image processing method, image processing apparatus, image recording apparatus, program and recording medium
JP4292873B2 (en) Image processing method, image processing apparatus, and image recording apparatus
JP3817371B2 (en) Image processing method, apparatus, and recording medium
JP2006203571A (en) Imaging apparatus, image processing apparatus, and image recording apparatus
JP2005332054A (en) Image processing method, image processor, image recording device and image processing program
WO2006033234A1 (en) Image processing method, image processing device, imaging device, and image processing program
JP2005202749A (en) Image processing method, image processing apparatus, and image recording apparatus