JP4793292B2 - Image processing apparatus and image processing method - Google Patents

Image processing apparatus and image processing method Download PDF

Info

Publication number
JP4793292B2
JP4793292B2 JP2007066290A JP2007066290A JP4793292B2 JP 4793292 B2 JP4793292 B2 JP 4793292B2 JP 2007066290 A JP2007066290 A JP 2007066290A JP 2007066290 A JP2007066290 A JP 2007066290A JP 4793292 B2 JP4793292 B2 JP 4793292B2
Authority
JP
Japan
Prior art keywords
density
correction
gamma curve
value
manual
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.)
Active
Application number
JP2007066290A
Other languages
Japanese (ja)
Other versions
JP2008228140A (en
Inventor
猛 村井
雅義 上辻
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Noritsu Precision Co Ltd
Original Assignee
NK Works Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NK Works Co Ltd filed Critical NK Works Co Ltd
Priority to JP2007066290A priority Critical patent/JP4793292B2/en
Publication of JP2008228140A publication Critical patent/JP2008228140A/en
Application granted granted Critical
Publication of JP4793292B2 publication Critical patent/JP4793292B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、入力画像の特性値に基づいて基準濃度値を算出し、前記基準濃度値が目標濃度値となるように生成した基準補正ガンマカーブに基づいて前記入力画像を濃度補正する自動濃度補正部と、前記自動濃度補正部により補正された補正画像に対して前記基準濃度値を手動変更する手動濃度補正操作部を備えている画像処理装置及び画像処理方法に関し、特にフィルム画像の処理に好適な画像処理装置及び画像処理方法に関する。   The present invention calculates an automatic density correction based on a reference correction gamma curve generated based on a reference correction gamma curve generated so as to calculate a reference density value based on a characteristic value of an input image, and the reference density value becomes a target density value. And an image processing apparatus and an image processing method including a manual density correction operation unit that manually changes the reference density value with respect to a corrected image corrected by the automatic density correction unit, and particularly suitable for film image processing The present invention relates to an image processing apparatus and an image processing method.

一般に、写真プリントの品質は濃度及びコントラストにより大きく左右される。特に、写真フィルムでは様々な撮影条件により異なる露光量に対応して、階調再現幅が大きく確保されており、良好な写真プリントを得るために、写真処理装置では濃度及びコントラストを自動補正する自動濃度補正部が設けられている。   In general, the quality of photographic prints depends greatly on density and contrast. In particular, the photographic film has a large gradation reproduction range corresponding to different exposure amounts depending on various shooting conditions. In order to obtain a good photographic print, the photographic processing device automatically corrects the density and contrast. A density correction unit is provided.

このような自動濃度補正部では、画像全体、画像中心部、画像上下左右といった複数の領域毎に算出される平均輝度、最大輝度、最小輝度等を入力画像の特性値に基づいて、例えば多変量解析手法等により当該入力画像の基準濃度値が算出され、前記基準濃度値が予め設定された目標濃度値となるように基準補正ガンマカーブが生成されていた。このような基準補正ガンマカーブにより入力画像が濃度補正されると、高輝度部での白飛びや低輝度部での黒潰れが効果的に抑止され、品質のよい写真プリントが生成されるようになる。   In such an automatic density correction unit, the average brightness, maximum brightness, minimum brightness, etc. calculated for each of a plurality of regions such as the entire image, the image center, and the top, bottom, left, and right of the image are based on the characteristic values of the input image, for example, multivariate A reference density value of the input image is calculated by an analysis method or the like, and a reference correction gamma curve is generated so that the reference density value becomes a preset target density value. When the input image is density-corrected with such a reference correction gamma curve, whiteout in the high luminance part and black crushing in the low luminance part are effectively suppressed, and a high-quality photo print is generated. Become.

例えば、特許文献1には、入力画像を構成する各画素の輝度を、ガンマカーブにより出力輝度に変換する画像処理方法として、基準となるガンマカーブを設定すると共に、該基準となるガンマカーブを出力側基準で複数の領域に分割し、画像の輝度の代表値に対して、基準となるガンマカーブがとり得る入力輝度の範囲を変更するための調整率を定めたデータテーブルを上記領域別に設定し、入力画像を構成する各画素の輝度から、入力画像の輝度の代表値を求め、求めた代表値と上記データテーブルとから、入力画像に応じた調整率を領域ごとに検出し、領域ごとで、基準となるガンマカーブのとり得る出力輝度の範囲は一定としつつ、基準となるガンマカーブがとり得る入力輝度の範囲に入力画像に応じた調整率をかけることで、基準となるガンマカーブの形状を圧縮または伸張させ、互いに隣り合う各領域のガンマカーブを接続するような画像処理方法が提案されている。   For example, Patent Document 1 sets a reference gamma curve and outputs the reference gamma curve as an image processing method for converting the luminance of each pixel constituting an input image into output luminance by a gamma curve. A data table is set for each of the above areas, which is divided into multiple areas based on the side reference, and defines the adjustment rate for changing the input luminance range that can be taken by the reference gamma curve with respect to the representative value of the image luminance. Then, the representative value of the luminance of the input image is obtained from the luminance of each pixel constituting the input image, and the adjustment rate corresponding to the input image is detected for each region from the obtained representative value and the data table. By applying an adjustment rate according to the input image to the input luminance range that the reference gamma curve can take, while maintaining the range of output luminance that the reference gamma curve can take, the reference and That the gamma curve shape to the compression or decompression of has been proposed an image processing method to connect the gamma curve of each region adjacent to each other.

しかし、上述の自動濃度補正により補正された入力画像が必ずしも好ましい画像特性を示すものとは限らないために、画像処理装置に、自動濃度補正部により補正された補正画像に対して前記基準濃度値を手動変更する手動濃度補正操作部が設けられ、オペレータによる手動濃度補正が可能となるように構成されていた。   However, since the input image corrected by the above-described automatic density correction does not necessarily exhibit a preferable image characteristic, the reference density value for the corrected image corrected by the automatic density correction unit is stored in the image processing apparatus. A manual density correction operation unit for manually changing the color density is provided, and the manual density correction by the operator is possible.

また、特許文献2には、多値画像のRGB各色成分の輝度ヒストグラムから求められたLoポイント(黒ポイント)、Hiポイント(白ポイント)に基づくコントラスト補正と、以下の式output=((input/255)^gamma)*255によるガンマ値gammaに応じた補正を行うガンマ補正の2つの自動補正を行ない、Loポイント(黒ポイント)とHiポイント(白ポイント)及びガンマ値gammaを夫々スライドバーで手動濃度補正する技術が開示されている。
特開2003−304398号公報 特開2001−61075号公報
Patent Document 2 discloses contrast correction based on Lo points (black points) and Hi points (white points) obtained from luminance histograms of RGB color components of a multi-valued image, and the following expression output = ((input / 255) ^ gamma) * Two automatic corrections of gamma correction are performed to correct according to the gamma value gamma by 255, and the Lo point (black point), Hi point (white point) and gamma value gamma are each manually operated with a slide bar. A technique for correcting the density is disclosed.
JP 2003-304398 A JP 2001-61075 A

しかし、特許文献2による手動補正では、自由度の高い補正操作ができるが、熟練したオペレータでなければ最適な補正が困難である。また、特許文献1に記載されたような自動濃度補正では、オペレータにより設定された手動補正濃度値に対応して新たにガンマカーブを生成した後に画像の補正処理を行なうと非常に長い演算時間を要するため、レスポンスが低下して操作性が低下するという問題があった。そこで、従来の手動による濃度補正では、図12に示すように、オペレータにより設定された手動補正濃度値に対して、自動濃度補正で得られたガンマカーブをそのまま平行移動させることによりコントラスト補正が行なわれていた。そのため、高輝度部での白飛びや低輝度部での黒潰れが発生する虞があった。   However, the manual correction according to Patent Document 2 can perform a correction operation with a high degree of freedom, but it is difficult to perform an optimal correction unless a skilled operator. Further, in the automatic density correction as described in Patent Document 1, if an image correction process is performed after newly generating a gamma curve corresponding to a manually corrected density value set by an operator, a very long calculation time is required. Therefore, there is a problem that the response is lowered and the operability is lowered. Therefore, in the conventional manual density correction, as shown in FIG. 12, contrast correction is performed by translating the gamma curve obtained by the automatic density correction as it is with respect to the manual correction density value set by the operator. It was. For this reason, there is a possibility that whiteout in a high luminance part and black crushing in a low luminance part may occur.

本発明は上述した従来の問題点に鑑みてなされたものであり、手動補正による濃度補正値に対応してレスポンスの低下を招くことなく適切なコントラスト補正が行なえる画像処理装置を提供することを目的とする。   The present invention has been made in view of the above-described conventional problems, and provides an image processing apparatus capable of performing appropriate contrast correction without causing a decrease in response in response to a density correction value by manual correction. Objective.

上述の目的を達成するため、本発明による画像処理装置の特徴構成は、特許請求の範囲の書類の請求項1に記載した通り、入力画像の特性値に基づいて基準濃度値を算出し、前記基準濃度値が目標濃度値となるように、入力濃度を横軸とし出力濃度を縦軸とする座標上で、予め準備された基準ガンマカーブを横軸方向に平行移動または伸縮処理して生成した基準補正ガンマカーブに基づいて前記入力画像を濃度補正する自動濃度補正部と、前記自動濃度補正部により補正された補正画像に対して前記基準濃度値を手動変更する手動濃度補正操作部を備えている画像処理装置であって、前記自動濃度補正部に、少なくとも前記手動濃度補正操作部で手動変更可能な範囲で、前記基準濃度値に正または負の所定のオフセット値を加えた単一または複数の補正濃度値に対応して、前記補正濃度値が目標濃度値となるように、前記座標上で前記基準ガンマカーブを横軸方向に平行移動または伸縮処理した単一または複数の予備補正ガンマカーブを生成する予備濃度補正部を備え、前記手動濃度補正操作部を介して手動変更された手動補正濃度値に対応して前記基準補正ガンマカーブまたは予備補正ガンマカーブの何れかに基づいて前記入力画像を濃度補正する手動濃度補正部を備えている点にある。 In order to achieve the above-described object, the characteristic configuration of the image processing apparatus according to the present invention calculates a reference density value based on a characteristic value of an input image as described in claim 1 of the claims, and Generated by parallel translation or expansion / contraction of a reference gamma curve prepared in advance on the coordinates with the input density as the horizontal axis and the output density as the vertical axis so that the reference density value becomes the target density value An automatic density correction unit that corrects the density of the input image based on a reference correction gamma curve, and a manual density correction operation unit that manually changes the reference density value for the correction image corrected by the automatic density correction unit. an image processing apparatus are, in the automatic density correction unit, manually changeable range least the manual density correction operation unit, the single addition of a predetermined positive or negative offset value to the reference concentration value or In response to the correction density value of the number, the corrected so that the concentration value becomes the target density value, a single or plurality of preliminary correction gamma move or stretch-processing parallel the reference gamma curve in the horizontal axis direction on the coordinate A preliminary density correction unit for generating a curve, and the input based on either the reference correction gamma curve or the preliminary correction gamma curve corresponding to the manually corrected density value manually changed via the manual density correction operation unit A manual density correction unit for correcting the density of the image is provided.

上述の構成によれば、自動濃度補正部により自動濃度補正処理が実行される際に、自動濃度補正部に設けられた予備濃度補正部により、少なくとも手動濃度補正操作部で手動変更可能な範囲で、基準濃度値に正または負の所定のオフセット値を加えた単一または複数の補正濃度値に対応して単一または複数の予備補正ガンマカーブが予め生成されるため、オペレータにより手動濃度補正操作部から濃度補正入力がなされたときに、既に生成されている基準補正ガンマカーブまたは予備補正ガンマカーブの何れかに基づいて手動濃度補正部により速やかに補正処理が行なわれるようになる。 According to the above configuration, when the automatic density correction process is executed by the automatic density correction unit, the preliminary density correction unit provided in the automatic density correction unit can at least be manually changed by the manual density correction operation unit. A single or a plurality of preliminary correction gamma curves are generated in advance corresponding to a single or a plurality of correction density values obtained by adding a predetermined positive or negative offset value to the reference density value. When the density correction input is made from the unit, the manual density correction unit promptly performs the correction process based on either the already generated reference correction gamma curve or preliminary correction gamma curve.

同第二の特徴構成は、同請求項2に記載した通り、上述の第一特徴構成に加えて、前記手動濃度補正部は、前記基準補正ガンマカーブまたは予備補正ガンマカーブから前記手動補正濃度値に最も近いガンマカーブを選択し、選択したガンマカーブに基づいて前記入力画像を濃度補正する点にある。   According to the second characteristic configuration described in the second aspect, in addition to the first characteristic configuration described above, the manual density correction unit may calculate the manual correction density value from the reference correction gamma curve or the preliminary correction gamma curve. The gamma curve closest to is selected, and the input image is subjected to density correction based on the selected gamma curve.

上述の構成によれば、手動濃度補正部により手動補正濃度値に最も近いガンマカーブが選択されるため、高輝度部での白飛びや低輝度部での黒潰れ等の不都合なコントラストに補正されるような事態を招くことが無い。   According to the above configuration, since the gamma curve closest to the manual correction density value is selected by the manual density correction unit, it is corrected to an inconvenient contrast such as whiteout in a high luminance part or black crushing in a low luminance part. There is no such a situation.

同第三の特徴構成は、同請求項3に記載した通り、上述の第一または第二特徴構成に加えて、前記手動濃度補正部は、前記基準補正ガンマカーブまたは予備補正ガンマカーブから前記手動補正濃度値に最も近い前後の二つのガンマカーブを選択し、選択したガンマカーブから新たなガンマカーブを補間生成し、当該ガンマカーブに基づいて前記入力画像を濃度補正する点にある。   According to the third feature configuration, in addition to the first or second feature configuration described above, the manual density correction unit may be configured so that the manual density correction unit performs the manual correction from the reference correction gamma curve or the preliminary correction gamma curve. Two gamma curves closest to the corrected density value are selected, a new gamma curve is generated by interpolation from the selected gamma curve, and the input image is density corrected based on the gamma curve.

上述の構成によれば、手動補正濃度値に最も近い前後の二つのガンマカーブから当該手動補正濃度値に最適なガンマカーブが補間生成されるため、より好ましいコントラスト補正が実現できる。   According to the above-described configuration, an optimum gamma curve for the manual correction density value is interpolated from the two front and rear gamma curves closest to the manual correction density value, so that more preferable contrast correction can be realized.

同第四の特徴構成は、同請求項4に記載した通り、上述の第一から第三の何れかの特徴構成に加えて、前記予備濃度補正部は、前記基準濃度値の前後の所定範囲内で複数の濃度値に対して予備補正ガンマカーブを生成する点にある。   In the fourth feature configuration, as described in claim 4, in addition to any of the first to third feature configurations described above, the preliminary density correction unit may include a predetermined range before and after the reference density value. Among them, a preliminary correction gamma curve is generated for a plurality of density values.

オペレータが手動濃度補正操作部を介して濃度補正操作する際に、自動濃度補正部により算出された基準濃度に対して濃淡何れの側に補正する場合であっても、基準濃度と極端に異なる濃度に補正することは稀である。従って、予備濃度補正部により基準濃度値の前後の所定範囲内で複数の濃度値に対して予備補正ガンマカーブを生成しておけば手動濃度補正に十分対応でき、演算負荷の増大に繋がる数多くの予備補正ガンマカーブを生成する必要が無くなる。   When the operator performs density correction operation via the manual density correction operation unit, the density is extremely different from the reference density, regardless of whether the density is corrected with respect to the reference density calculated by the automatic density correction unit. It is rare to correct it. Therefore, if a preliminary correction gamma curve is generated for a plurality of density values within a predetermined range before and after the reference density value by the preliminary density correction unit, it can sufficiently cope with manual density correction, resulting in an increase in calculation load. There is no need to generate a preliminary correction gamma curve.

本発明による画像処理方法の特徴構成は、同請求項5に記載した通り、入力画像の特性値に基づいて基準濃度値を算出し、前記基準濃度値が目標濃度値となるように、入力濃度を横軸とし出力濃度を縦軸とする座標上で、予め準備された基準ガンマカーブを横軸方向に平行移動または伸縮処理して生成した基準補正ガンマカーブに基づいて前記入力画像を濃度補正する自動濃度補正ステップと、前記自動濃度補正ステップにより補正された補正画像に対して前記基準濃度値を手動変更する手動濃度補正操作ステップを備えている画像処理方法であって、前記自動濃度補正ステップに、少なくとも前記手動濃度補正操作部で手動変更可能な範囲で、前記基準濃度値に正または負の所定のオフセット値を加えた単一または複数の補正濃度値に対応して、前記補正濃度値が目標濃度値となるように、前記座標上で前記基準ガンマカーブを横軸方向に平行移動または伸縮処理した単一または複数の予備補正ガンマカーブを生成する予備濃度補正ステップを備え、前記手動濃度補正操作ステップで手動変更された手動補正濃度値に対応して前記基準補正ガンマカーブまたは予備補正ガンマカーブの何れかに基づいて前記入力画像を濃度補正する手動濃度補正ステップを備えている点にある。 Structure of the image processing method according to the invention, as described in the claim 5, calculates a reference density value based on the characteristic values of the input image, as the reference density value becomes the target density value, input density The input image is subjected to density correction based on a reference correction gamma curve generated by parallel translation or expansion / contraction processing of a reference gamma curve prepared in advance on a coordinate having the horizontal axis as the horizontal axis and the output density as the vertical axis. An image processing method comprising: an automatic density correction step; and a manual density correction operation step for manually changing the reference density value with respect to the corrected image corrected by the automatic density correction step. , manually changeable range least the manual density correction operation unit, corresponding to single or multiple corrected density value plus a positive or negative predetermined offset value to the reference density value Te, wherein as corrected density value becomes the target density value, preliminary density correction step of producing a single or multiple pre-compensation gamma curve has been moved or stretching process parallel the reference gamma curve in the horizontal axis direction on the coordinate A manual density correction step for correcting the density of the input image based on either the reference correction gamma curve or the preliminary correction gamma curve corresponding to the manually corrected density value manually changed in the manual density correction operation step. It is in the point to have.

以上説明した通り、本発明によれば、手動補正による濃度補正値に対応してレスポンスの低下を招くことなく適切なコントラスト補正が行なえる画像処理装置を提供することができるようになった。   As described above, according to the present invention, it is possible to provide an image processing apparatus capable of performing appropriate contrast correction without causing a decrease in response in response to a density correction value by manual correction.

以下に本発明による画像処理装置が組み込まれた写真画像処理装置の実施の形態を説明する。図2に示すように、写真画像処理装置1は、印画紙Pに対して出力画像データに基づいた露光処理を行ない露光された印画紙を現像処理する写真プリンタ2と、現像済みの写真フィルムFから画像を読み込むフィルムスキャナ31やデジタルスチルカメラ等で撮影された画像データが格納されたメモリカード等の画像データ記憶メディアMから画像データを読み取るメディアドライバ32や、コントローラ33としての汎用コンピュータ等を備え、入力された元画像としての写真画像に対するプリントオーダ情報を設定入力するとともに、本発明による画像処理を含む各種の画像補正処理を行なう操作ステーション3を備えて構成され、前記操作ステーション3で元画像から編集処理されたプリントデータが前記写真プリンタ2に出力されて所望の写真プリントが生成される。   Embodiments of a photographic image processing apparatus incorporating an image processing apparatus according to the present invention will be described below. As shown in FIG. 2, the photographic image processing apparatus 1 includes a photographic printer 2 that performs an exposure process on the photographic paper P based on output image data and develops the exposed photographic paper, and a developed photographic film F. A media driver 32 that reads image data from an image data storage medium M such as a memory card that stores image data taken by a film scanner 31 or a digital still camera that reads an image from the camera, a general-purpose computer as a controller 33, and the like The operation station 3 is configured to input and set print order information for a photographic image as an input original image, and to perform various image correction processes including image processing according to the present invention. The print data edited from is output to the photo printer 2 Nozomu of the photographic print is generated.

前記写真プリンタ2は、図2及び図3に示すように、ロール状の印画紙Pを収容した二系統の印画紙マガジン21と、前記印画紙マガジン21から引き出された印画紙Pを所定のプリントサイズに切断するシートカッター22と、切断後の印画紙Pの背面にコマ番号等のプリント情報を印字するバックプリント部23と、前記プリントデータに基づいて印画紙Pを露光する露光部24と、露光後の印画紙Pを現像、漂白、定着するための各処理液が充填された複数の処理槽25a、25b、25cを備えた現像処理部25が印画紙Pの搬送経路に沿って配置され、現像処理後に乾燥処理された印画紙Pが排出される横送りコンベア26と、横送りコンベア26に集積された複数枚の印画紙(写真プリント)Pがオーダー単位で仕分けられるソータ27を備えて構成される。   As shown in FIGS. 2 and 3, the photographic printer 2 has two systems of photographic paper magazines 21 containing roll-shaped photographic paper P, and photographic paper P drawn from the photographic paper magazine 21 with a predetermined print. A sheet cutter 22 that cuts into a size; a back print unit 23 that prints print information such as a frame number on the back of the cut photographic paper P; an exposure unit 24 that exposes the photographic paper P based on the print data; A development processing unit 25 including a plurality of processing tanks 25a, 25b, and 25c filled with processing solutions for developing, bleaching, and fixing the exposed photographic paper P is disposed along the transport path of the photographic paper P. The laterally-feeding conveyor 26 that discharges the photographic paper P that has been dried after the development process, and the sheet-paper (photo print) P that is stacked on the laterally-feeding conveyor 26 is sorted in order units. Configured to include the data 27.

前記露光部24には、搬送機構28によって副走査方向に搬送される印画紙Pに対して、搬送方向に直交する主走査方向に前記プリントデータに基づき変調されたRGB三色のレーザ光線束を出力して露光する露光ヘッド24aが収容されている。   The exposure unit 24 receives a laser beam bundle of RGB three colors modulated based on the print data in the main scanning direction orthogonal to the conveyance direction with respect to the photographic paper P conveyed in the sub-scanning direction by the conveyance mechanism 28. An exposure head 24a for outputting and exposing is accommodated.

前記搬送経路に沿って配置された前記露光部24や現像処理部25に応じたプロセス速度で印画紙Pを搬送する複数のローラ対でなる搬送機構28が配置され、前記露光部24の前後には印画紙Pを複列に搬送可能なチャッカー式搬送機構28aが設けられている。   A transport mechanism 28 including a plurality of roller pairs that transport the photographic printing paper P at a process speed corresponding to the exposure unit 24 and the development processing unit 25 disposed along the transport path is disposed before and after the exposure unit 24. Is provided with a chucker-type transport mechanism 28a capable of transporting photographic paper P in multiple rows.

前記操作ステーション3に設けられたコントローラ33には、汎用のオペレーティングシステムの管理下で動作し、前記写真処理装置1の各種制御が実行されるアプリケーションプログラムがインストールされ、オペレータとの操作インターフェースとしてモニタ34、キーボード35、マウス36等が接続されている。   The controller 33 provided in the operation station 3 is installed with an application program that operates under the control of a general-purpose operating system and executes various controls of the photographic processing apparatus 1, and a monitor 34 as an operation interface with the operator. A keyboard 35, a mouse 36, and the like are connected.

前記コントローラ33のハードウェア及びソフトウェアの協働により実行される写真処理プロセスを機能ブロックで説明すると、図4に示すように、前記フィルムスキャナ31やメディアドライバ32によって読み取られた写真画像データを受け取り、所定の前処理を行なって後述のメモリ41に転送する画像入力部40と、前記モニタ34の画面にプリントオーダ情報や画像編集情報を表示するとともに、それらに対して必要なデータ入力のための操作用アイコンを表示するグラフィック操作画面を生成し、或いは表示されたグラフィック操作画面に対する前記キーボード35やマウス36からの入力操作に基づいて各種の制御コマンドを生成するグラフィックユーザーインターフェース部(以下、「GUI部」と記す。)42と、前記画像入力部40から転送される写真画像データ及び後述の画像処理部47による補正処理後の写真画像データやそのときの補正パラメータ、更には設定されたプリントオーダ情報等が所定領域に区画されて格納されるメモリ41と、プリントオーダ情報を生成するオーダー処理部43と、前記メモリ41に格納された各写真画像データに対して濃度補正処理やコントラスト補正処理等を行なう画像処理部47と、前記グラフィックユーザーインターフェース部42からの表示コマンドに基づいて前記メモリ41に展開された画像データや各種の入出力用グラフィックデータ等を前記モニタ34に表示処理するビデオRAM等を備えた表示制御部46と、各種の補正処理が終了した最終の補正画像を前記写真プリンタ2に出力するためのプリントデータを生成するプリントデータ生成部44と、顧客のオーダーに応じて最終の補正画像をCD−R等の記憶媒体に書き込むためのファイル形式に変換するフォーマッタ部45等で構成される。   The photographic processing process executed by the cooperation of the hardware and software of the controller 33 will be described in functional blocks. As shown in FIG. 4, photographic image data read by the film scanner 31 and the media driver 32 is received. An image input unit 40 that performs predetermined preprocessing and transfers it to a memory 41, which will be described later, and print order information and image editing information are displayed on the screen of the monitor 34, and an operation for inputting necessary data for them. A graphic user interface unit (hereinafter referred to as a “GUI unit”) that generates a graphic operation screen for displaying an icon for use or generates various control commands based on input operations from the keyboard 35 and mouse 36 to the displayed graphic operation screen. 42) and the picture. Photo image data transferred from the input unit 40, photo image data after correction processing by the image processing unit 47, which will be described later, correction parameters at that time, and set print order information are partitioned into predetermined areas and stored. A memory 41, an order processing unit 43 for generating print order information, an image processing unit 47 for performing density correction processing and contrast correction processing on each photographic image data stored in the memory 41, and the graphic user A display control unit 46 including a video RAM for displaying the image data and various input / output graphic data developed in the memory 41 based on a display command from the interface unit 42 on the monitor 34; Print for outputting the final corrected image after the correction processing to the photographic printer 2 A print data generating unit 44 that generates over data, and the like formatter 45 which converts the final corrected image according to customer orders to a file format for writing in a storage medium such as a CD-R.

前記フィルムスキャナ31は、フィルムFに記録された画像を低解像度ではあるものの高速で読み取るプレスキャンモードと、低速ではあるものの高解像度で読み取る本スキャンモードの二モードで作動するように構成され、プレスキャンモードで読み込まれた低解像度の画像に対してプレジャッジモード(後述のプレジャッジ処理で詳述する。)で各種の補正処理が行なわれ、その際に前記メモリ41に記憶された補正パラメータに基づいて本スキャンモードで読み込まれた高解像度の画像に対する最終の補正処理が実行されて前記プリンタ2に出力される。   The film scanner 31 is configured to operate in two modes: a pre-scan mode that reads an image recorded on the film F at a high speed although it has a low resolution, and a main scan mode that reads a high-resolution image at a low speed. Various correction processes are performed in the pre-judge mode (described in detail in the pre-judge process described later) on the low resolution image read in the can mode, and the correction parameters stored in the memory 41 at that time are changed. Based on this, the final correction processing for the high-resolution image read in the main scan mode is executed and output to the printer 2.

同様に、前記メディアドライバ32から読み込まれた画像ファイルには高解像度の撮影画像とそのサムネイル画像が含まれ、サムネイル画像に対して後述の各種の補正処理が行なわれ、その際に前記メモリ41に記憶された補正パラメータに基づいて高解像度の撮影画像に対する最終の補正処理が実行される。尚、画像ファイルにサムネイル画像が含まれないときには、前記画像入力部40で高解像度の撮影画像からサムネイル画像が生成されて前記メモリ41に転送される。このように、低解像度の画像に対して頻繁に試行錯誤される各種の編集処理が実行されることによりコントローラ33の演算負荷が低減されるように構成されている。   Similarly, the image file read from the media driver 32 includes a high-resolution captured image and its thumbnail image, and various correction processes described later are performed on the thumbnail image. Based on the stored correction parameters, a final correction process is performed on the high-resolution captured image. When the image file does not include a thumbnail image, the image input unit 40 generates a thumbnail image from the high-resolution captured image and transfers it to the memory 41. In this way, the calculation load of the controller 33 is reduced by executing various editing processes that are frequently trial and error on low-resolution images.

前記画像処理部47は、図1に示すように、入力された原画像データに対して所定の濃度補正値に基づいて濃度補正処理を実施する濃度補正処理部10と、撮影レンズに起因する歪を補正する歪補正部11、画像のエッジを強調しノイズを低減する鮮鋭化処理部12、画像の色調を補正するカラー補正処理部13、写真プリントのサイズに適した画像サイズに変換する拡縮処理部14等が設けられている。   As shown in FIG. 1, the image processing unit 47 includes a density correction processing unit 10 that performs density correction processing on input original image data based on a predetermined density correction value, and distortion caused by the photographing lens. A distortion correction unit 11 that corrects the image, a sharpening processing unit 12 that enhances the edges of the image to reduce noise, a color correction processing unit 13 that corrects the color tone of the image, and an enlargement / reduction process that converts the image size to the size of the photo print A part 14 and the like are provided.

前記濃度補正処理部10は、入力画像の特性値に基づいて基準濃度値を算出し、前記基準濃度値が目標濃度値となるように生成した基準補正ガンマカーブに基づいて前記入力画像を濃度補正する自動濃度補正部10aと、前記自動濃度補正部10aにより補正された補正画像に対して前記基準濃度値を手動変更する手動濃度補正操作部10dと、前記手動濃度補正操作部10dを介して手動変更された手動補正濃度値に対応して前記入力画像を濃度補正する手動濃度補正部10cを備えている。   The density correction processing unit 10 calculates a reference density value based on a characteristic value of the input image, and density corrects the input image based on a reference correction gamma curve generated so that the reference density value becomes a target density value. Automatic density correction unit 10a for performing manual density correction operation unit 10d for manually changing the reference density value for the corrected image corrected by automatic density correction unit 10a, and manual operation via manual density correction operation unit 10d. A manual density correction unit 10c is provided for correcting the density of the input image corresponding to the changed manual correction density value.

さらに、前記自動濃度補正部10aに前記基準濃度値とは異なる単一または複数の補正濃度値に対応して単一または複数の予備補正ガンマカーブを生成する予備濃度補正部10bを備え、前記手動濃度補正部10cは前記手動濃度補正操作部10dを介して手動変更された手動補正濃度値に対応して前記基準補正ガンマカーブまたは予備補正ガンマカーブの何れかに基づいて入力画像を濃度補正するように構成されている。   The automatic density correction unit 10a further includes a preliminary density correction unit 10b that generates a single or a plurality of preliminary correction gamma curves corresponding to a single correction density value or a plurality of correction density values different from the reference density value. The density correction unit 10c corrects the density of the input image based on either the reference correction gamma curve or the preliminary correction gamma curve corresponding to the manually corrected density value manually changed through the manual density correction operation unit 10d. It is configured.

以下、濃度補正処理部10について、図9に示すフローチャートに基づいて詳述する。前記自動濃度補正部10aは、前記フィルムスキャナ31によりプレスキャンモードで読み取られ、前記メモリ41に格納された入力画像に対して(SA1)、その特性値を算出する(SA)。   The density correction processing unit 10 will be described in detail below based on the flowchart shown in FIG. The automatic density correction unit 10a calculates the characteristic value (SA) of the input image read in the prescan mode by the film scanner 31 and stored in the memory 41 (SA1).

特性値として、図10(a)から(e)に示すように、入力画像全体の平均濃度と最大濃度と最小濃度と濃度平均偏差、入力画像の主要被写体が位置する中央部分と周辺部分の平均濃度と最大濃度と最小濃度、入力画像の左側部と右側部の平均濃度と最大濃度と最小濃度、入力画像の上側部と下側部の平均濃度と最大濃度と最小濃度、入力画像を所定の画素サイズでブロック分割した各領域のうち上下に隣接するブロックの平均濃度の差分の平均値が算出される。ここで、濃度とは、入力画像を構成する画素のR(赤),G(緑),B(青)各成分から〔数1〕に基づいて算出される輝度色差を示すYCC信号の輝度成分Yを意味し、例えば、入力画像全体の平均濃度は各画素の輝度成分の平均値を指す。尚、濃度として、入力画像を構成する画素のR(赤),G(緑),B(青)各成分の平均値を用いるものであってもよい。

Figure 0004793292
As characteristic values, as shown in FIGS. 10A to 10E, the average density, the maximum density, the minimum density, and the density average deviation of the entire input image, the average of the central portion and the peripheral portion where the main subject of the input image is located. Density, maximum density and minimum density, average density and maximum density and minimum density on the left and right sides of the input image, average density and maximum density and minimum density on the upper and lower sides of the input image The average value of the difference between the average densities of blocks adjacent to each other in the upper and lower sides of each region divided into blocks by the pixel size is calculated. Here, the density is a luminance component of a YCC signal indicating a luminance color difference calculated based on [Equation 1] from R (red), G (green), and B (blue) components of a pixel constituting an input image. Y means, for example, the average density of the entire input image indicates the average value of the luminance component of each pixel. In addition, as the density, an average value of R (red), G (green), and B (blue) components of pixels constituting the input image may be used.
Figure 0004793292

前記自動濃度補正部10aは、算出された特性値を変数とする多変量解析、ここでは重回帰分析によって適切な基準濃度値DSIを算出する(SA3)。つまり、事前に複数のサンプル画像に対して上述の画像特性値とそのときに手動補正等により補正された適切な基準濃度値との相関係数を求めておき、新たに入力された画像の特性値からその画像の適切な基準濃度値DSIを算出するのである。尚、入力画像の特性値から基準濃度値DSIを算出する手法は多変量解析以外にニューラルネットワーク等の他の推定方法を用いることも可能である。 The automatic density correction unit 10a, multivariate analysis of the calculated characteristic values and variables, here calculates the appropriate reference density value D SI by multiple regression analysis (SA3). That is, a correlation coefficient between the above-described image characteristic value and an appropriate reference density value corrected by manual correction or the like is obtained in advance for a plurality of sample images, and the characteristics of the newly input image are obtained. An appropriate reference density value DSI of the image is calculated from the value. As a method for calculating the reference density value DSI from the characteristic value of the input image, other estimation methods such as a neural network can be used in addition to the multivariate analysis.

次に、前記自動濃度補正部10aは、図5(a)に示す横軸を入力画像の濃度、縦軸を出力画像への変換濃度及び入力画像の画素数(度数)とする二次元平面上で、予めフィルム種類毎に準備されている基準ガンマカーブγを、基準濃度値DSIが予め設定された目標濃度値DSOとなるように平行移動させるとともに、その基準ガンマカーブγが入力画像の濃度ヒストグラムの各ピーク値を繋げた包絡線(同図、符合HGで示される)の上限側及び下限側、または上限側及び下限側から全画素数の数%の画素数となる範囲Rngに入るように伸縮処理した基準補正ガンマカーブγを生成して当該基準補正ガンマカーブγをメモリ41に格納する(SA4)。 Next, the automatic density correction unit 10a has a two-dimensional plane in which the horizontal axis shown in FIG. 5A is the density of the input image, the vertical axis is the conversion density to the output image, and the number of pixels of the input image (frequency). The reference gamma curve γ b prepared for each film type is translated so that the reference density value DSI becomes a preset target density value DSO, and the reference gamma curve γ b is input. Range Rng which is the upper limit side and lower limit side of the envelope connecting the peak values of the density histogram of the image (indicated by the symbol HG), or the number of pixels of several percent of the total number of pixels from the upper limit side and the lower limit side The reference correction gamma curve γ S subjected to the expansion / contraction processing so as to enter is generated, and the reference correction gamma curve γ S is stored in the memory 41 (SA4).

このような基準補正ガンマカーブγは、実際には、基準補正ガンマカーブγに沿ったDinとDoutの関係が数十ポイント、具体的には20ポイントで構成されるルックアップテーブルの形で生成される。従って、入力画像を構成する任意の画素の濃度がルックアップテーブルに基づいてコントラスト補正された出力画素に変換されるようになり、ルックアップテーブルに規定されていない中間値の画素はルックアップテーブルの前後の値で線形補間される。 Such a reference correction gamma curve γ S is actually in the form of a lookup table in which the relationship between Din and Dout along the reference correction gamma curve γ S is tens of points, specifically 20 points. Generated. Accordingly, the density of an arbitrary pixel constituting the input image is converted into an output pixel subjected to contrast correction based on the lookup table, and intermediate value pixels not defined in the lookup table are converted into those in the lookup table. Linear interpolation is performed between the previous and next values.

前記自動濃度補正部10aに設けられた予備濃度補正部10bは、上述した基準濃度値DSIに基づいたルックアップテーブルが生成される際に、当該基準濃度DSIに正または負の所定のオフセット値を加えた単一または複数の補正濃度値、ここでは、DSI−−,DSI−,DSI+,DSI++の四つの補正濃度値を算出し、当該補正濃度値DSI−−,DSI−,DSI+,DSI++の夫々に対して上述の目標濃度値DSOとなるように、上述と同様に基準ガンマカーブγを横軸方向に平行移動させた後に伸縮処理して図5(b)に一点鎖線で示すような予備補正ガンマカーブγ−−,γ,γ,γ++を示すルックアップテーブルを生成してメモリ41に格納する(SA5)。 The preliminary density correction unit 10b provided in the automatic density correction unit 10a has a predetermined positive or negative offset to the reference density DSI when the lookup table based on the reference density value DSI is generated. Four or more corrected density values, in this case, D SI−− , D SI− , D SI + , D SI ++ are calculated, and the corrected density values D SI−− , D In the same manner as described above, the reference gamma curve γ b is translated in the direction of the horizontal axis and expanded and contracted so that each of SI− , D SI + , and D SI ++ has the above target density value DSO . A lookup table indicating the preliminary correction gamma curves γ −− , γ , γ + , γ ++ as shown by the alternate long and short dash line in (b) is generated and stored in the memory 41 (SA5).

前記予備濃度補正部10bにより予備補正ガンマカーブが生成される際に、前記自動濃度補正部10aは入力画像に対して基準補正ガンマカーブγのルックアップテーブルに基づいて濃度及びコントラスト補正した画像をモニタ34に表示する自動コントラスト補正処理を実行する(SA6,SA7))。 When pre-correction gamma curve is generated by the preliminary density correction unit 10b, the automatic density correction unit 10a an image density and contrast correction based on a lookup table of the reference correction gamma curve gamma S to the input image Automatic contrast correction processing displayed on the monitor 34 is executed (SA6, SA7).

モニタ34に表示された補正画像を評価したオペレータが、さらに補正した方が好ましいと判断したときには、前記手動濃度補正操作部10dを介して濃度補正操作を行なう(SA8)。前記手動濃度補正操作部10dは、キーボード35に設けられた濃度補正キーからの補正入力またはモニタ34に表示された濃度補正用ソフトキーからGUI部42を介してマウス操作された補正入力に基づいて前記基準濃度DSIに対して予め設定された補正値を加減した値を手動補正濃度値として生成する。例えば、キーボード35に現在の基準濃度値DSIに対して予め設定された単位補正値を一段階または二段階明るくする方向に補正するのか、暗くする方向に補正するのかを設定するための四つの濃度補正キーを設けて、前記手動濃度補正操作部10dが何れのキーが操作されたかを認識して、対応する手動補正濃度値DSIM−−,DSIM−,DSIM+,DSIM++を生成するように構成することができる。 When the operator who has evaluated the corrected image displayed on the monitor 34 determines that further correction is preferable, a density correction operation is performed via the manual density correction operation unit 10d (SA8). The manual density correction operation unit 10d is based on a correction input from a density correction key provided on the keyboard 35 or a correction input operated by the mouse from the density correction soft key displayed on the monitor 34 via the GUI unit 42. A value obtained by adding or subtracting a preset correction value to the reference density DSI is generated as a manual correction density value. For example, four values for setting whether to correct a unit correction value preset for the current reference density value DSI on the keyboard 35 in one or two steps of brightening or darkening are set. A density correction key is provided, and the manual density correction operation unit 10d recognizes which key is operated, and generates corresponding manual correction density values DSIM-- , DSIM- , DSIM + , DSIM ++ . It can be constituted as follows.

前記手動濃度補正部10cは、前記自動濃度補正部10aで生成されたガンマカーブγ−−,γ,γ,γ,γ++から前記手動濃度補正操作部10dにより認識された手動補正濃度値が上述の目標濃度値DSOに最も近い値となるガンマカーブを選択して、選択したガンマカーブに基づいて入力画像を補正してモニタ34に表示する(SA9,SA10)。 The manual density correction unit 10c, gamma curve gamma generated by the automatic density correction unit 10a -, γ -, γ S , γ +, manually recognized by the manual density correction operating section 10d from gamma ++ corrected density value by selecting a gamma curve as a value closest to the target density value D SO described above, is displayed on the monitor 34 by correcting the input image based on the gamma curve selected (SA9, SA10).

例えば、図6(a)に示す場合には、前記手動濃度補正部10cにより基準濃度値DSIに対して一段階明るい方に補正された手動補正濃度値DSIM+に対して最も近いガンマカーブγが選択されて入力画像が補正され、モニタ34に表示されるのである。 For example, in the case shown in FIG. 6 (a), the gamma curve γ closest to the manually corrected density value D SIM + corrected by one level brighter than the reference density value D SI by the manual density correcting unit 10c. When + is selected, the input image is corrected and displayed on the monitor 34.

その結果、オペレータが適正画像になったと判断されると(SA11)、当該入力画像に対する濃度補正用のガンマカーブを特定する情報、つまり補正パラメータが当該入力画像と関連付けられてメモリ41に格納され(SA12)、上述の本スキャンモードで読み取られた入力画像に対して補正パラメータで特定されるガンマカーブに基づいて濃度及びコントラスト補正が行なわれる(SA13)。   As a result, when it is determined that the operator has obtained an appropriate image (SA11), information for specifying a density correction gamma curve for the input image, that is, a correction parameter is stored in the memory 41 in association with the input image ( (SA12), density and contrast correction is performed on the input image read in the above-described main scan mode based on the gamma curve specified by the correction parameter (SA13).

補正後の画像は〔数1〕の逆変換演算によりR(赤),G(緑),B(青)各成分の画素データに戻される。   The corrected image is returned to the pixel data of the R (red), G (green), and B (blue) components by the inverse transformation operation of [Equation 1].

上述の構成によれば、オペレータによる濃度補正操作の度に新たなガンマカーブを生成する必要がなくなるため、キーレスポンスのよい手動補正処理が実現されるようになる。   According to the above-described configuration, it is not necessary to generate a new gamma curve every time the density correction operation is performed by the operator, so that manual correction processing with good key response can be realized.

前記予備濃度補正部10bは、前記基準濃度値DSIの前後の所定範囲内、つまり、手動濃度補正操作部10dで設定操作可能な最大及び最小の手動補正濃度値DSIM−−SIM++にほぼ対応する範囲内で単一または複数の補正濃度値DSIに対して予備補正ガンマカーブを生成するものであればよい。また、手動補正濃度値と補正濃度値が一致するように構成されるものでもよい。 The preliminary density correction unit 10b is within a predetermined range around the reference density value D SI, i.e., the manual density correction operation unit maximum and minimum settings operable 10d manually corrected density value D SIM-- D substantially SIM ++ Any method may be used as long as it generates a preliminary correction gamma curve for a single or a plurality of correction density values DSI within a corresponding range. Alternatively, the manual correction density value and the correction density value may be configured to match.

尚、詳述しないが、前記画像処理部47では、上述した濃度補正処理以外に、歪補正処理、鮮鋭化処理、カラー補正処理、拡縮処理が行なわれた後に写真プリンタ2に出力されて所望の写真プリントが生成される。   Although not described in detail, the image processing unit 47 outputs to the photographic printer 2 after performing distortion correction processing, sharpening processing, color correction processing, and enlargement / reduction processing in addition to the above-described density correction processing. A photo print is generated.

以下、別実施形態を説明する。上述の実施形態ではステップSA9に示したように、手動濃度補正部10cが手動濃度補正操作に対応して予め生成された一つのガンマカーブを選択して補正する場合を説明したが、前記手動濃度補正部10cは、基準補正ガンマカーブγまたは予備補正ガンマカーブγ−−,γ,γ,γ++から手動補正濃度値DSIMに最も近い前後の二つのガンマカーブ、つまり、手動補正濃度値が上述の目標濃度値DSOに最も近い値となるガンマカーブとその次に近いガンマカーブの二つのガンマカーブを選択し、選択したガンマカーブから新たなガンマカーブを補間生成し、当該ガンマカーブに基づいて入力画像を濃度補正するように構成するものであってもよい。 Hereinafter, another embodiment will be described. In the above-described embodiment, as shown in step SA9, the case where the manual density correction unit 10c selects and corrects one gamma curve generated in advance corresponding to the manual density correction operation has been described. The correction unit 10c has two gamma curves before and after the reference correction gamma curve γ S or the preliminary correction gamma curves γ −− , γ , γ + , γ ++ closest to the manual correction density value D SIM , that is, the manual correction density. value selects the two gamma curve of the gamma curve close and the next gamma curve becomes a value closest to the target density value D SO described above, interpolated generates a new gamma curve from gamma curve selected, the gamma curve The input image may be configured to correct the density.

例えば、図7(a),(b)に示すように、手動補正濃度値DSIM−に対してガンマカーブγ――,γが最も近い前後の二つのガンマカーブとして選択され、図8(a)に示すように、手動補正濃度値DSIM−が目標濃度値DSOとなるように、その二つのガンマカーブを線形補間した新たなガンマカーブγ´を生成するのである。図8(b)には、ガンマカーブγ−−,γに基づいてガンマカーブγ´が補間される様子が示されている。 For example, as shown in FIGS. 7A and 7B , the gamma curves γ −− and γ are selected as the closest two gamma curves before and after the manually corrected density value D SIM− , and FIG. as shown in a), so that the manual correction density value D SIM-becomes the target density value D sO, is to generate a new gamma curve γ'that linear interpolation the two gamma curve. FIG. 8B shows how the gamma curve γ ′ is interpolated based on the gamma curves γ −− and γ .

この場合、新たなガンマカーブγ´を生成するための演算時間にそれほど長い時間が掛かることは無いので、キーレスポンスがよく、しかも補正特性に優れた手動補正処理を実現することができる。   In this case, the calculation time for generating a new gamma curve γ ′ does not take so long, so that manual correction processing with good key response and excellent correction characteristics can be realized.

上述した実施形態では、自動濃度補正部10aは、基準濃度値DSIが予め設定された目標濃度値DSOとなるように、予め準備された基準ガンマカーブγを横軸方向に平行移動させた後に伸縮処理して、図5(a)に示すような基準補正ガンマカーブγを生成するものを説明したが、基準補正ガンマカーブγの生成方法はこのような手法に限定されるものではなく、例えば、特開2003−304398号公報に詳述されたような方法を採用するものであってもよい。 In the embodiment described above, the automatic density correction unit 10a translates the reference gamma curve γ b prepared in advance in the horizontal axis direction so that the reference density value DSI becomes a preset target density value DSO. The method of generating the reference correction gamma curve γ S as shown in FIG. 5A after the expansion / contraction processing has been described, but the method of generating the reference correction gamma curve γ S is limited to such a method. Instead, for example, a method described in detail in Japanese Patent Laid-Open No. 2003-304398 may be adopted.

具体的には、入力画像を構成する各画素の輝度を、ガンマカーブにより出力輝度に変換する画像処理方法であって、基準となるガンマカーブを設定すると共に、該基準となるガンマカーブを出力側基準で複数の領域に分割し、画像の輝度の代表値に対して基準となるガンマカーブが採り得る入力輝度の範囲を変更するための調整率を定めたデータテーブルを上記領域別に設定し、入力画像を構成する各画素の輝度から入力画像の輝度の代表値を求め、求めた代表値と上記データテーブルとから入力画像に応じた調整率を領域ごとに検出し、領域ごとで基準となるガンマカーブのとり得る出力輝度の範囲は一定としつつ、基準となるガンマカーブがとり得る入力輝度の範囲に入力画像に応じた調整率をかけることで、基準となるガンマカーブの形状を圧縮または伸張させ、互いに隣り合う各領域のガンマカーブを接続するようにして生成するのである。   Specifically, an image processing method for converting the luminance of each pixel constituting an input image into an output luminance using a gamma curve, wherein the reference gamma curve is set and the reference gamma curve is set on the output side. A data table that divides into multiple areas by reference and sets the adjustment rate for changing the input luminance range that can be taken by the reference gamma curve with respect to the representative value of image brightness is set for each area and input The representative value of the brightness of the input image is obtained from the brightness of each pixel constituting the image, the adjustment rate corresponding to the input image is detected from the obtained representative value and the above data table for each area, and the reference gamma is obtained for each area. The output luminance range that can be taken by the curve is fixed, and the adjustment rate according to the input image is applied to the input luminance range that can be taken by the reference gamma curve. Jo is compressed or extended, and it is to generate so as to connect the gamma curve of each region adjacent to each other.

また、前記自動濃度補正部10aは、基準濃度値DSIが予め設定された目標濃度値DSOとなるように、〔数2〕に基づいてガンマGamma値を算出し、その値を基準に、〔数3〕に基づいて図11(a)に示すような基準補正ガンマカーブγを生成してメモリ41に格納するように構成するものであってもよい。

Figure 0004793292
Further, the automatic density correction unit 10a calculates a gamma Gamma value based on [Equation 2] so that the reference density value DSI becomes a preset target density value DSO, and based on the value, A reference correction gamma curve γ S as shown in FIG. 11A may be generated based on [Equation 3] and stored in the memory 41.
Figure 0004793292

尚、〔数2〕において、Maxは、図11(a)に示すように、入力画像が取り得る濃度値の最大値、つまり最も明るい画素の濃度値であり、Minは入力画像が取り得る濃度値の最小値、つまり最も暗い画素の濃度値である。従って、入力画像の画素成分が8ビットで表されるときには、濃度が0階調(Min)から255階調(Max)まで表現されることになる。図中、符合HGで示されるカーブは縦軸を度数とする入力画像の濃度ヒストグラムを表している。

Figure 0004793292
In [Expression 2], Max is the maximum density value that the input image can take, that is, the density value of the brightest pixel, and Min is the density that the input image can take, as shown in FIG. The minimum value, that is, the darkest pixel density value. Accordingly, when the pixel component of the input image is represented by 8 bits, the density is expressed from 0 gradation (Min) to 255 gradation (Max). In the figure, a curve indicated by reference numeral HG represents a density histogram of an input image with the vertical axis representing the frequency.
Figure 0004793292

尚、〔数3〕において、Lは入力画像が取り得る濃度変換値の最大の値であり、例えば、8ビットで0階調から255階調までの間で濃度変換が行なわれる場合には255となる。Maxは入力画像が取り得る濃度値の最大値であり、Minは入力画像が取り得る濃度値の最小値である。また、iは画素番号を示す。   In [Equation 3], L is the maximum value of the density conversion value that can be taken by the input image. For example, when density conversion is performed between 0 gradation and 255 gradation in 8 bits, 255 is obtained. It becomes. Max is the maximum density value that the input image can take, and Min is the minimum density value that the input image can take. I indicates a pixel number.

〔数3〕に示すガンマカーブは理論式であり、実際には、ガンマカーブに沿ったDinとDoutの関係が数十ポイント、具体的には20ポイントで構成されるルックアップテーブルの形で生成される。従って、入力画像を構成する任意の画素の濃度がルックアップテーブルに基づいてコントラスト補正された出力画素に変換されるようになり、ルックアップテーブルに規定されていない中間値の画素はルックアップテーブルの前後の値で線形補間される。   The gamma curve shown in [Equation 3] is a theoretical formula. In practice, the relationship between Din and Dout along the gamma curve is generated in the form of a look-up table composed of several tens of points, specifically 20 points. Is done. Accordingly, the density of an arbitrary pixel constituting the input image is converted into an output pixel subjected to contrast correction based on the lookup table, and intermediate value pixels not defined in the lookup table are converted into those in the lookup table. Linear interpolation is performed between the previous and next values.

そして、前記自動濃度補正部10aに設けられた予備濃度補正部10bは、上述した基準濃度値DSIに基づいたルックアップテーブルが生成される際に、当該基準濃度DSIに正または負の所定のオフセット値を加えた単一または複数の補正濃度値、ここでは、DSI−−,DSI−,DSI+,DSI++の四つの補正濃度値を算出し、当該補正濃度値DSI−−,DSI−,DSI+,DSI++の夫々に対して上述の目標濃度値DSOとなるように、〔数2〕に基づいてガンマGamma値を算出し、その値を基準に、〔数3〕に基づいて図11(b)に一点鎖線で示すような予備補正ガンマカーブγ−−,γ,γ,γ++を示すルックアップテーブルを生成してメモリ41に格納するように構成するものであってもよい。 Then, the automatic density correction unit preliminary density correction unit 10b provided in 10a, when the look-up table based on the reference density value D SI mentioned above is generated, a predetermined positive or negative to the reference density D SI Are calculated, and four corrected density values D SI-- , D SI- , D SI + , D SI ++ are calculated, and the corrected density value D SI-- , D SI− , D SI + , D SI ++ , the gamma Gamma value is calculated based on [Equation 2] so that the above-mentioned target density value DSO is obtained. Based on the above, a lookup table showing preliminary correction gamma curves γ −− , γ , γ + , γ ++ as shown by a one-dot chain line in FIG. 11B is generated and stored in the memory 41. Stuff It may be.

上述した実施形態では、本発明による画像処理装置及び画像処理方法を写真画像処理装置に適用したものを説明したが、本発明はこのような専用機に組み込まれるものに限定されるものではなく、本発明による画像処理方法を実現するアプリケーションプログラムがインストールされたパーソナルコンピュータやデジタルカメラ等により構成することもできる。   In the above-described embodiment, the image processing apparatus and the image processing method according to the present invention are applied to the photographic image processing apparatus. However, the present invention is not limited to those incorporated in such a dedicated machine. The image processing method according to the present invention can be configured by a personal computer, a digital camera, or the like installed with an application program.

アプリケーションプログラムとは、コンピュータを、入力画像の特性値に基づいて基準濃度値を算出し、前記基準濃度値が目標濃度値となるように生成した基準補正ガンマカーブに基づいて前記入力画像を濃度補正する自動濃度補正部と、前記自動濃度補正部により補正された補正画像に対して前記基準濃度値を手動変更する手動濃度補正操作部として機能させる画像処理プログラムであって、前記基準濃度値とは異なる単一または複数の補正濃度値に対応して単一または複数の予備補正ガンマカーブを生成する予備濃度補正部と、前記手動濃度補正操作部を介して手動変更された手動補正濃度値に対応して前記基準補正ガンマカーブまたは予備補正ガンマカーブの何れかに基づいて前記入力画像を濃度補正する手動濃度補正部として機能させる画像処理プログラムである。   An application program is a computer that calculates a reference density value based on a characteristic value of an input image, and corrects the density of the input image based on a reference correction gamma curve generated so that the reference density value becomes a target density value. And an image processing program that functions as a manual density correction operation unit that manually changes the reference density value with respect to the corrected image corrected by the automatic density correction unit. Preliminary density correction unit that generates single or multiple preliminary correction gamma curves corresponding to different single or multiple correction density values, and manual correction density values manually changed via the manual density correction operation unit And function as a manual density correction unit for correcting the density of the input image based on either the reference correction gamma curve or the preliminary correction gamma curve. That is an image processing program.

尚、上述した実施形態は、本発明の一例に過ぎず、本発明の作用効果を奏する範囲において各ブロックの具体的構成等を適宜変更設計できることは言うまでもない。   Note that the above-described embodiment is merely an example of the present invention, and it is needless to say that the specific configuration and the like of each block can be changed and designed as appropriate within the scope of the effects of the present invention.

画像処理部の機能ブロック構成図Functional block diagram of the image processing unit 写真画像処理装置の外観構成の説明図Explanatory drawing of the external configuration of the photographic image processing apparatus 写真プリンタの説明図Illustration of photo printer 写真画像処理装置の機能ブロック構成図Functional block diagram of photographic image processing device (a)は自動濃度補正処理で生成される基準補正ガンマカーブの特性図、(b)は自動濃度補正処理で生成される予備補正ガンマカーブの特性図(A) is a characteristic diagram of a reference correction gamma curve generated by automatic density correction processing, and (b) is a characteristic diagram of a preliminary correction gamma curve generated by automatic density correction processing. (a)は手動補正濃度値と予備補正ガンマカーブの関係を示す説明図、(b)は手動濃度補正値に対応して選択されたガンマカーブの特性図(A) is explanatory drawing which shows the relationship between a manual correction | amendment density value and a preliminary | backup correction gamma curve, (b) is the characteristic figure of the gamma curve selected corresponding to the manual density correction value. (a)は手動補正濃度値と予備補正ガンマカーブの関係を示す説明図、(b)は手動補正濃度値に対応して補間生成される元のガンマカーブの特性図(A) is explanatory drawing which shows the relationship between a manual correction density value and a preliminary | backup correction gamma curve, (b) is a characteristic figure of the original gamma curve produced | generated by interpolation corresponding to a manual correction density value 手動補正濃度値に対応して補間生成されるガンマカーブの特性図Characteristic diagram of gamma curve generated by interpolation corresponding to manually corrected density value 濃度補正処理を示すフローチャート。The flowchart which shows a density | concentration correction process. 画像特性値が算出される対象画像の領域説明図Area explanatory diagram of target image for which image characteristic value is calculated 別実施形態を示し、(a)は自動濃度補正処理で生成される基準補正ガンマカーブの特性図、(b)は自動濃度補正処理で生成される予備補正ガンマカーブの特性図4A and 4B show a characteristic diagram of a reference correction gamma curve generated by automatic density correction processing, and FIG. 5B shows a characteristic diagram of a preliminary correction gamma curve generated by automatic density correction processing. 従来の手動濃度補正で用いられるガンマカーブの特性図Characteristic diagram of gamma curve used in conventional manual density correction

1:写真画像処理装置
10:濃度補正処理部
10a:自動濃度補正部
10b:予備濃度補正部
10c:手動濃度補正部
10d:手動濃度補正操作部
47:画像処理部
1: Photo image processing apparatus 10: Density correction processing unit 10a: Automatic density correction unit 10b: Preliminary density correction unit 10c: Manual density correction unit 10d: Manual density correction operation unit 47: Image processing unit

Claims (5)

入力画像の特性値に基づいて基準濃度値を算出し、前記基準濃度値が目標濃度値となるように、入力濃度を横軸とし出力濃度を縦軸とする座標上で、予め準備された基準ガンマカーブを横軸方向に平行移動または伸縮処理して生成した基準補正ガンマカーブに基づいて前記入力画像を濃度補正する自動濃度補正部と、前記自動濃度補正部により補正された補正画像に対して前記基準濃度値を手動変更する手動濃度補正操作部を備えている画像処理装置であって、
前記自動濃度補正部に、少なくとも前記手動濃度補正操作部で手動変更可能な範囲で、前記基準濃度値に正または負の所定のオフセット値を加えた単一または複数の補正濃度値に対応して、前記補正濃度値が目標濃度値となるように、前記座標上で前記基準ガンマカーブを横軸方向に平行移動または伸縮処理した単一または複数の予備補正ガンマカーブを生成する予備濃度補正部を備え、前記手動濃度補正操作部を介して手動変更された手動補正濃度値に対応して前記基準補正ガンマカーブまたは予備補正ガンマカーブの何れかに基づいて前記入力画像を濃度補正する手動濃度補正部を備えている画像処理装置。
A reference density value is calculated based on the characteristic value of the input image, and a reference prepared in advance on coordinates where the input density is the horizontal axis and the output density is the vertical axis so that the reference density value becomes the target density value. An automatic density correction unit that corrects the density of the input image based on a reference correction gamma curve generated by parallel translation or expansion / contraction processing of the gamma curve in the horizontal axis direction, and a corrected image corrected by the automatic density correction unit An image processing apparatus comprising a manual density correction operation unit for manually changing the reference density value,
The automatic density correction unit corresponds to one or a plurality of correction density values obtained by adding a predetermined positive or negative offset value to the reference density value within a range that can be manually changed by at least the manual density correction operation unit. A preliminary density correction unit that generates one or a plurality of preliminary correction gamma curves obtained by translating or expanding the reference gamma curve in the horizontal axis direction on the coordinates so that the correction density value becomes a target density value. A manual density correction unit for correcting the density of the input image based on either the reference correction gamma curve or the preliminary correction gamma curve corresponding to the manually corrected density value manually changed via the manual density correction operation unit An image processing apparatus.
前記手動濃度補正部は、前記基準補正ガンマカーブまたは予備補正ガンマカーブから前記手動補正濃度値に最も近いガンマカーブを選択し、選択したガンマカーブに基づいて前記入力画像を濃度補正する請求項1記載の画像処理装置。   2. The manual density correction unit selects a gamma curve closest to the manual correction density value from the reference correction gamma curve or the preliminary correction gamma curve, and corrects the density of the input image based on the selected gamma curve. Image processing apparatus. 前記手動濃度補正部は、前記基準補正ガンマカーブまたは予備補正ガンマカーブから前記手動補正濃度値に最も近い前後の二つのガンマカーブを選択し、選択したガンマカーブから新たなガンマカーブを補間生成し、当該ガンマカーブに基づいて前記入力画像を濃度補正する請求項1または2記載の画像処理装置。   The manual density correction unit selects the two front and rear gamma curves closest to the manual correction density value from the reference correction gamma curve or the preliminary correction gamma curve, and generates a new gamma curve by interpolation from the selected gamma curve, The image processing apparatus according to claim 1, wherein the density of the input image is corrected based on the gamma curve. 前記予備濃度補正部は、前記基準濃度値の前後の所定範囲内で複数の濃度値に対して予備補正ガンマカーブを生成する請求項1から3の何れかに記載の画像処理装置。   The image processing apparatus according to claim 1, wherein the preliminary density correction unit generates a preliminary correction gamma curve for a plurality of density values within a predetermined range before and after the reference density value. 入力画像の特性値に基づいて基準濃度値を算出し、前記基準濃度値が目標濃度値となるように、入力濃度を横軸とし出力濃度を縦軸とする座標上で、予め準備された基準ガンマカーブを横軸方向に平行移動または伸縮処理して生成した基準補正ガンマカーブに基づいて前記入力画像を濃度補正する自動濃度補正ステップと、前記自動濃度補正ステップにより補正された補正画像に対して前記基準濃度値を手動変更する手動濃度補正操作ステップを備えている画像処理方法であって、
前記自動濃度補正ステップに、少なくとも前記手動濃度補正操作部で手動変更可能な範囲で、前記基準濃度値に正または負の所定のオフセット値を加えた単一または複数の補正濃度値に対応して、前記補正濃度値が目標濃度値となるように、前記座標上で前記基準ガンマカーブを横軸方向に平行移動または伸縮処理した単一または複数の予備補正ガンマカーブを生成する予備濃度補正ステップを備え、前記手動濃度補正操作ステップで手動変更された手動補正濃度値に対応して前記基準補正ガンマカーブまたは予備補正ガンマカーブの何れかに基づいて前記入力画像を濃度補正する手動濃度補正ステップを備えている画像処理方法。
A reference density value is calculated based on the characteristic value of the input image, and a reference prepared in advance on coordinates where the input density is the horizontal axis and the output density is the vertical axis so that the reference density value becomes the target density value. An automatic density correction step for correcting the density of the input image based on a reference correction gamma curve generated by parallel translation or expansion / contraction processing of the gamma curve in the horizontal axis direction, and a correction image corrected by the automatic density correction step An image processing method comprising a manual density correction operation step for manually changing the reference density value,
The automatic density correction step corresponds to one or a plurality of corrected density values obtained by adding a predetermined positive or negative offset value to the reference density value within a range that can be manually changed by at least the manual density correction operation unit. A preliminary density correction step for generating a single or a plurality of preliminary correction gamma curves obtained by translating or expanding the reference gamma curve in the horizontal axis direction on the coordinates so that the correction density value becomes a target density value. A manual density correction step for correcting the density of the input image based on either the reference correction gamma curve or the preliminary correction gamma curve corresponding to the manually corrected density value manually changed in the manual density correction operation step. Image processing method.
JP2007066290A 2007-03-15 2007-03-15 Image processing apparatus and image processing method Active JP4793292B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007066290A JP4793292B2 (en) 2007-03-15 2007-03-15 Image processing apparatus and image processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007066290A JP4793292B2 (en) 2007-03-15 2007-03-15 Image processing apparatus and image processing method

Publications (2)

Publication Number Publication Date
JP2008228140A JP2008228140A (en) 2008-09-25
JP4793292B2 true JP4793292B2 (en) 2011-10-12

Family

ID=39846175

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007066290A Active JP4793292B2 (en) 2007-03-15 2007-03-15 Image processing apparatus and image processing method

Country Status (1)

Country Link
JP (1) JP4793292B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009134433A (en) * 2007-11-29 2009-06-18 Noritsu Koki Co Ltd Image correction method and image correction device

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5641782B2 (en) 2010-05-24 2014-12-17 キヤノン株式会社 Image processing apparatus and image processing method

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3518913B2 (en) * 1994-12-22 2004-04-12 株式会社リコー Tone conversion curve generator
JP3712897B2 (en) * 1999-04-01 2005-11-02 シャープ株式会社 Image processing apparatus and image forming apparatus having the same
JP2001061075A (en) * 1999-08-23 2001-03-06 Canon Inc Image processing method, image processor and recording medium
JP2002135614A (en) * 2000-01-07 2002-05-10 Sharp Corp Image processor
JP2005208886A (en) * 2004-01-22 2005-08-04 Fuji Photo Film Co Ltd Image correction apparatus and image correction program

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009134433A (en) * 2007-11-29 2009-06-18 Noritsu Koki Co Ltd Image correction method and image correction device

Also Published As

Publication number Publication date
JP2008228140A (en) 2008-09-25

Similar Documents

Publication Publication Date Title
JP4883789B2 (en) Image processing apparatus and image processing method
US8797619B2 (en) Image processing apparatus and image processing method with editing
US20020008762A1 (en) Method, apparatus and recording medium for image processing
JP2004527043A (en) Automated image sharpening method for soft proofing
US20070127074A1 (en) Device, method and program product for image processing
JP4793292B2 (en) Image processing apparatus and image processing method
JP2006203555A (en) Image processing method, image processor and image processing program
JP4830923B2 (en) Image processing apparatus and image processing method
JP4797666B2 (en) Image processing apparatus and image processing method
JP4453610B2 (en) Image processing apparatus and method
JP2008092541A (en) Image processing method, image processor, image forming apparatus, computer program, and recording medium
JP2007201655A (en) Image processing apparatus
JP2006186753A (en) Method and apparatus for processing photographic image
JP2001285638A (en) Image processing method
JP4404011B2 (en) Image processing apparatus and method
JP2007088650A (en) Image processing device and image processing method
US6608943B1 (en) Image processing method and apparatus
JP4315027B2 (en) Image background removal technology
JP4874877B2 (en) Image processing apparatus, method, and program
JP2009004951A (en) Image processing device, method, and program
JP3738810B2 (en) Image printing method and apparatus
JP2005072850A (en) Adjusting method of three dimensional lut and color conversion system equipped with three dimensional lut
JP4029997B2 (en) Color conversion apparatus, color conversion method, program, and recording medium
JP4775289B2 (en) Image processing apparatus and image processing method
JP2009081631A (en) Image processing apparatus, method and program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20091221

RD03 Notification of appointment of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7423

Effective date: 20110221

A711 Notification of change in applicant

Free format text: JAPANESE INTERMEDIATE CODE: A712

Effective date: 20110222

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20110302

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20110412

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20110608

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20110628

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20110711

R150 Certificate of patent or registration of utility model

Ref document number: 4793292

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20140805

Year of fee payment: 3

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

S533 Written request for registration of change of name

Free format text: JAPANESE INTERMEDIATE CODE: R313533

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250