JP4375223B2 - Image processing apparatus, image processing method, and image processing program - Google Patents

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

Info

Publication number
JP4375223B2
JP4375223B2 JP2004350848A JP2004350848A JP4375223B2 JP 4375223 B2 JP4375223 B2 JP 4375223B2 JP 2004350848 A JP2004350848 A JP 2004350848A JP 2004350848 A JP2004350848 A JP 2004350848A JP 4375223 B2 JP4375223 B2 JP 4375223B2
Authority
JP
Japan
Prior art keywords
correction
noise
image
image data
value
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2004350848A
Other languages
Japanese (ja)
Other versions
JP2006165730A (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.)
Seiko Epson Corp
Original Assignee
Seiko Epson Corp
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 Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP2004350848A priority Critical patent/JP4375223B2/en
Publication of JP2006165730A publication Critical patent/JP2006165730A/en
Application granted granted Critical
Publication of JP4375223B2 publication Critical patent/JP4375223B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は画像処理装置、画像処理方法および画像処理プログラムに関する。 The present invention relates to an image processing apparatus, it relates to an image processing method and an image processing program.

カメラなど、レンズを介して取得した光によって画像を形成する機器においては、レンズを介して画像を形成することに起因して画質の劣化が生じ得る。このような劣化としては、例えば、周辺光量の低下が挙げられる。従来からこのような劣化を補正するための技術として各種の技術が開発されており、例えば、γ補正(特許文献1等を参照)によって画像の位置毎に明度を変化させることによって周辺光量の低下を抑えることができる。
特開2001−144958号公報
In a device such as a camera that forms an image with light acquired through a lens, image quality may be deteriorated due to the formation of an image through the lens. Examples of such deterioration include a decrease in the amount of peripheral light. Conventionally, various techniques have been developed as a technique for correcting such deterioration. For example, the amount of peripheral light is reduced by changing the brightness for each position of an image by γ correction (see Patent Document 1 and the like). Can be suppressed.
JP 2001-144958 A

従来の技術においては、補正に起因して位置毎の画質劣化を強調してしまう場合があった。すなわち、画像データをデジタルカメラ等の入力機器にて取得することを想定すれば、この入力装置が備えるICチップや画像データを処理するアプリケーションプログラムによって上記γ補正等を実施して画質劣化を解消することになる。しかし、画像内の画質劣化特性は撮影条件等によって様々であり、この条件に応じた適切な補正量を常に選択できるとは限らない。この結果、過度に補正をしてしまう場合も生じ得る。過度に補正を行うと、画像の位置によって画質劣化を強調してしまう。例えば、周辺光量の変化特性はレンズや絞りなどに起因するので、レンズや絞りなどを変更可能なデジタルカメラ等によって作成した画像データに対して、適切な周辺光量補正を行うことが困難であった。
本発明は、高階調域においてノイズ付加に伴って階調のつぶれが発生することを防止し、画質劣化の発生を防止することが可能な画像処理装置、画像処理方法および画像処理プログラムを提供することを目的とする。
In the conventional technology, there is a case where image quality deterioration at each position is emphasized due to correction. That is, assuming that image data is acquired by an input device such as a digital camera, the above-described γ correction is performed by an IC chip provided in the input device or an application program that processes the image data to eliminate image quality degradation. It will be. However, image quality deterioration characteristics in an image vary depending on shooting conditions and the like, and an appropriate correction amount according to these conditions cannot always be selected. As a result, it may occur that correction is excessively performed. If correction is performed excessively, image quality degradation is emphasized depending on the position of the image. For example, since the change characteristic of the peripheral light amount is caused by a lens or an aperture, it has been difficult to perform an appropriate peripheral light amount correction on image data created by a digital camera or the like that can change the lens or the aperture. .
The present invention prevents the gradation collapse occurs with the noise added in the high tone range, the image processing apparatus capable of preventing the occurrence of image degradation, an image processing method and image processing program The purpose is to do.

上記目的を達成するため、本発明では、画像における基準位置からの距離に応じて補正を行った後、さらに所定のノイズを付加する。この結果、当該基準位置からの距離に応じた補正後に距離に依存する画質劣化が残存したとしても、ノイズによってその画質劣化を目立たなくすることができ、画質劣化を解消することが可能である。従って、的確に画質劣化の発生を防止することができる。   In order to achieve the above object, in the present invention, a predetermined noise is further added after correction is performed according to the distance from the reference position in the image. As a result, even if image quality deterioration depending on the distance remains after correction according to the distance from the reference position, the image quality deterioration can be made inconspicuous by noise, and the image quality deterioration can be eliminated. Accordingly, it is possible to accurately prevent the occurrence of image quality deterioration.

画像データ取得手段が取得する画像データが示す画像においては、補正手段による補正前に周辺光量の低下など、距離に依存する画質劣化が生じていてもよく、生じていなくても良い。当該距離に依存する画質劣化が生じている場合であれば、補正手段によって過度に補正したことに起因して生じるトーンジャンプなどの画質劣化を解消することができる。また、補正手段による補正量が不足したことに起因して残存する画質劣化を解消することができる。   In the image indicated by the image data acquired by the image data acquisition unit, image quality deterioration depending on the distance, such as a decrease in peripheral light amount, may or may not occur before correction by the correction unit. If image quality degradation depending on the distance occurs, image quality degradation such as tone jump caused by excessive correction by the correction means can be eliminated. Further, it is possible to eliminate the remaining image quality deterioration due to the lack of correction amount by the correction means.

さらに、距離に依存する画質劣化が生じていない場合であれば、補正手段によって適切な補正が実施されず、画質劣化を与えてしまった場合でもその画質劣化を解消することができる。一般に、距離に依存する画質劣化は、画像データを作成するときの条件、例えば、レンズや絞り、焦点距離によって変動するため、これらの条件について的確に対応して補正を行うのは困難であるが、本発明によれば、補正手段による補正が完璧であることは要求されず、画像処理装置の設計が非常に容易になる。尚、画像データが示す画像において、基準位置からの距離に応じた明度の変化が生じていない場合には、上記補正手段によって過度に明度の補正を行ってしまうことになり、トーンジャンプ発生の原因になることから、本発明の適用対象として特に好ましい。   Furthermore, if there is no image quality deterioration depending on the distance, the correction unit does not perform appropriate correction, and even if the image quality deterioration is given, the image quality deterioration can be eliminated. In general, the image quality degradation depending on the distance varies depending on conditions when creating image data, for example, a lens, an aperture, and a focal length. Therefore, it is difficult to correct these conditions appropriately. According to the present invention, it is not required that the correction by the correction means is perfect, and the design of the image processing apparatus becomes very easy. Note that, in the image indicated by the image data, if the brightness does not change according to the distance from the reference position, the brightness is excessively corrected by the correction means, causing the tone jump. Therefore, it is particularly preferable as an application target of the present invention.

ここで、画像データは画像の内容を示すデータであれば良く、例えば、複数の画素によって画像を構成するとともに画素毎に色成分毎の階調値を特定するデータ等を採用可能である。むろん、色成分として3色以上の色成分を採用することによって多色を表現可能な画像データであっても良いし、無彩色等の単色成分で色を表現する画像データであっても良い。   Here, the image data may be data indicating the content of the image. For example, data that configures an image with a plurality of pixels and specifies a gradation value for each color component for each pixel may be employed. Of course, it may be image data that can express multiple colors by employing three or more color components as color components, or image data that expresses a color with a single color component such as an achromatic color.

補正手段においては、基準位置からの距離に応じて補正量を変動させながら画像データに対して補正を実施することができれば良い。補正においては、画像データにおける色成分毎の階調値を変動させることによって画像の特徴量を変動させることができれば良く、画像の明度,彩度,色相等の色彩値、RGB等の色成分値や鮮鋭度など、各種の特徴量を補正対象とすることができる。基準位置は、画像内のいずれの位置であっても良く、画像の中央等、所定の位置を基準位置にすることができる。   The correction unit only needs to be able to correct image data while varying the correction amount according to the distance from the reference position. In the correction, it suffices if the feature amount of the image can be changed by changing the gradation value for each color component in the image data. The color value of the image such as brightness, saturation, hue, and the like, and the color component value of RGB, etc. Various feature quantities such as the sharpness and the sharpness can be corrected. The reference position may be any position in the image, and a predetermined position such as the center of the image can be used as the reference position.

また、補正手段においては、基準位置からの距離に応じて生じる画質劣化を解消するため、補正量を距離に応じて変動させる。このためには、距離に応じた補正量を特定するための補正データを予め用意しておいても良いし、上記画像データに付加しておいても良く種々の構成を採用可能である。但し、一般的には、画像毎の画質劣化を的確に解消するための補正データを作成することが困難である。そこで、本発明によってノイズを付加することで種々の条件に応じて的確に画質劣化を解消することが可能になる。   Further, in the correction means, the correction amount is changed according to the distance in order to eliminate the image quality degradation that occurs according to the distance from the reference position. For this purpose, correction data for specifying a correction amount corresponding to the distance may be prepared in advance, or may be added to the image data, and various configurations can be employed. However, in general, it is difficult to create correction data for accurately eliminating image quality degradation for each image. Therefore, by adding noise according to the present invention, it is possible to accurately eliminate image quality degradation according to various conditions.

尚、補正手段によって補正を実行するための構成としても各種の構成を採用可能であり、例えば、基準位置からの距離に応じて決定される入出力特性を参照して上記画像データの階調値を入力値とした入出力変換を行う構成を採用可能である。すなわち、基準位置からの距離毎に入出力特性を決定しておけば、容易に距離に応じた補正量で補正を行うことができる。但し、この構成において距離に応じた補正量を設定することは容易であるが、種々の条件に応じて的確な補正量を設定するのは困難である。そこで、本発明によってノイズを付加することで種々の条件に応じて的確に画質劣化を解消することが可能になる。   Note that various configurations can be adopted as the configuration for executing correction by the correction unit. For example, the tone value of the image data is referred to with reference to input / output characteristics determined according to the distance from the reference position. It is possible to adopt a configuration that performs input / output conversion using as an input value. That is, if the input / output characteristics are determined for each distance from the reference position, the correction can be easily performed with a correction amount corresponding to the distance. However, in this configuration, it is easy to set a correction amount according to the distance, but it is difficult to set an accurate correction amount according to various conditions. Therefore, by adding noise according to the present invention, it is possible to accurately eliminate image quality degradation according to various conditions.

補正手段の構成例として、画像を作成する際の撮影条件に起因して画像の中央からの距離に応じて変動する明度を補正する構成を採用することができる。すなわち、このような周辺光量の変化を補正する際には、画像の中央からの距離に応じて補正量を変化させながら明度を補正する。従って、的確に補正が行わないと、過度の補正や補正量の不足に起因して画質劣化を招いてしまう。   As a configuration example of the correction unit, it is possible to employ a configuration that corrects the brightness that varies depending on the distance from the center of the image due to the shooting conditions when the image is created. That is, when correcting such a change in the peripheral light amount, the lightness is corrected while changing the correction amount according to the distance from the center of the image. Therefore, if the correction is not performed accurately, the image quality is deteriorated due to excessive correction or insufficient correction amount.

特に、空や海の画像など略一様な部位を多く含む画像においては、明度のトーンジャンプが顕著に現れてしまう。そこで、このような補正に伴って本発明におけるノイズ付加手段を適用すれば、周辺光量補正を的確に実施できない場合でも画質劣化を抑えることができる。尚、撮影条件としては、レンズの種類、絞り、焦点距離など種々の条件が挙げられる。   In particular, in an image including many substantially uniform parts such as an image of the sky or the sea, a lightness tone jump appears remarkably. Therefore, by applying the noise adding means according to the present invention along with such correction, it is possible to suppress image quality deterioration even when the peripheral light amount correction cannot be performed accurately. Note that the photographing conditions include various conditions such as the type of lens, aperture, and focal length.

さらに、補正手段の構成例として、上記基準位置からの距離に応じて画像の明度を増加あるいは減少させる構成を採用することができる。すなわち、画像を作成する際の撮影条件に対応させることなく画像データに対して距離に応じた補正を行う場合であっても、この補正に起因して基準距離からの距離に応じた画質劣化が生じ得る。例えば、利用者が明度の補正量を選択し、補正手段がこの選択に基づいて補正を実施する場合には、過度の補正や補正量の不足に起因して画質劣化が生じ得る。   Furthermore, as a configuration example of the correction unit, a configuration in which the brightness of the image is increased or decreased according to the distance from the reference position can be employed. In other words, even when correction according to the distance is performed on the image data without corresponding to the shooting conditions at the time of creating the image, image quality deterioration according to the distance from the reference distance is caused by this correction. Can occur. For example, when the user selects a lightness correction amount and the correction means performs correction based on this selection, image quality deterioration may occur due to excessive correction or insufficient correction amount.

そこで、本発明によってノイズを付加すれば、この画質劣化を解消することができる。尚、このような補正としては、あえて周辺光量を低下させるような補正も含まれる。すなわち、利用者があえてこのような画風を望む場合であっても、その補正によってトーンジャンプ等の画質劣化を発生させないようにすることができる。   Therefore, if noise is added according to the present invention, this image quality degradation can be eliminated. Note that such correction includes correction for reducing the peripheral light amount. That is, even when the user desires such a style, the correction can prevent the image quality deterioration such as the tone jump from occurring.

ノイズ付加手段は、補正手段による補正後の画像データに対して所定のノイズを付加することにより、当該補正に起因する画質劣化を解消することができればよい。例えば、明度補正を行うことによってトーンジャンプが発生している場合、階調値に対して所定のノイズを重ねると、このトーンジャンプが目立たなくなり、結果としてトーンジャンプを解消することができる。所定のノイズとしては、補正に起因する画質劣化を解消するために必要最小のノイズであることが好ましい。また、予めノイズパターン、すなわち、ノイズを適用すべき範囲と画素毎に適用すべきノイズの大きさとを特定しておき、ノイズを適用すべき位置にこのノイズを付加する構成等を採用可能である。   The noise adding means only needs to be able to eliminate image quality deterioration caused by the correction by adding predetermined noise to the image data corrected by the correcting means. For example, when a tone jump occurs due to brightness correction, if a predetermined noise is superimposed on the gradation value, the tone jump becomes inconspicuous, and as a result, the tone jump can be eliminated. The predetermined noise is preferably the minimum noise necessary for eliminating the image quality deterioration caused by the correction. In addition, it is possible to adopt a configuration in which a noise pattern, that is, a range to which noise is applied and a size of noise to be applied for each pixel are specified in advance and this noise is added to a position to which noise is applied. .

さらに、ノイズ付加手段によってノイズを付加することを考慮して補正手段による補正を実行するのが好ましく、画像データにおける所定の色成分の階調値を補正対象としたとき、Pmax≧Mmax+Nmaxとする。ここで、Pmaxは補正対象となる色成分の階調値域の上限値、Mmaxは補正後の階調値の最大値、Nmaxはノイズ付加手段で付加するノイズの最大値である。この構成によれば、ノイズ付加手段によってノイズを付加するに際して、色成分の階調値域内に収まるようにノイズを付加することができる。従って、高階調域においてノイズ付加に伴って階調のつぶれが発生することを防止することができる。 Furthermore, it is preferable to perform correction by the correction unit in consideration of adding noise by the noise addition unit. When the gradation value of a predetermined color component in the image data is targeted for correction, P max ≧ M max + N It shall be the max. Here, P max is the upper limit value of the gradation value range of the color component to be corrected, M max is the maximum value of the gradation value after correction, and N max is the maximum value of noise added by the noise adding means. According to this configuration, when adding noise by the noise adding means, it is possible to add noise so as to be within the gradation value range of the color component. Accordingly, it is possible to prevent the occurrence of gradation collapse due to the addition of noise in the high gradation area.

さらに、ノイズを付加する際に好適な構成として、所定の出力装置にて画像を出力する際に使用する画像データの階調値域より広い階調値域のデータに対してノイズを付加する構成を採用可能である。すなわち、画像データにおいては、通常、ある画素のある色成分値を限られた情報量(例えば、8bit)で表現する。このため、階調値域は限定されるが、この情報量が少ないほどノイズを付加することが画像に与える影響が大きくなる。   Furthermore, a configuration that adds noise to data in a gradation range that is wider than the gradation range of the image data used when outputting an image with a predetermined output device is adopted as a suitable configuration for adding noise. Is possible. That is, in image data, a certain color component value of a certain pixel is usually expressed by a limited amount of information (for example, 8 bits). For this reason, although the gradation value range is limited, the smaller the amount of information, the greater the effect that adding noise has on the image.

そこで、画像を所定の出力装置で出力することを想定したとき、当該出力装置にて画像データを扱う際に使用する階調値域より広い階調値域で色成分を表現した画像データに対してノイズを付加する。すなわち、ある画素のある色成分値をより大きな情報量(例えば、10,12,16bit等)で表現して補正対象の画像データを構成する。この結果、非常に小さなノイズを付加することが可能になり、ノイズを付加することによって画像に与える影響を抑えることができる。   Therefore, when it is assumed that an image is output by a predetermined output device, noise is generated with respect to image data expressing a color component in a gradation value range wider than the gradation value range used when the image data is handled by the output device. Is added. That is, image data to be corrected is configured by expressing a certain color component value of a certain pixel with a larger amount of information (for example, 10, 12, 16 bits, etc.). As a result, it is possible to add very small noise, and the influence on the image by adding noise can be suppressed.

さらに、予め決められたノイズパターンによってノイズを付加する際の構成例として、ノイズパターンを上記基準位置からの距離に応じて変化させる構成を採用しても良い。すなわち、本発明における補正手段においては基準位置からの距離に応じて補正量を変動させているので、基準位置からの距離によって画質劣化の程度が異なり得る。そこで、ノイズパターンを変化させることによってノイズを付加する程度を変更すれば、基準位置からの距離に応じてより適切なノイズを付加することが可能になる。むろん、ここでは補正手段における補正量に応じてノイズパターンを変化させてもよい。   Furthermore, as a configuration example when adding noise by a predetermined noise pattern, a configuration in which the noise pattern is changed according to the distance from the reference position may be adopted. That is, in the correction means according to the present invention, the amount of correction varies depending on the distance from the reference position. Therefore, if the degree of noise addition is changed by changing the noise pattern, more appropriate noise can be added according to the distance from the reference position. Of course, the noise pattern may be changed according to the correction amount in the correction means.

尚、上述のようにしてノイズを付加した画像データに基づいて印刷を実行する印刷制御装置としても発明が成立する。すなわち、画像を示す画像データを取得してこの画像を印刷するに際して、上述の処理と同様の処理により補正およびノイズの付加を行い、処理後の画像データに基づいて画像を印刷すれば、様々な撮影条件によって画像の特性が異なる場合であっても的確に画質劣化の発生を防止しながら画像を印刷することができる。   The invention can also be realized as a print control apparatus that executes printing based on image data to which noise is added as described above. That is, when image data representing an image is acquired and this image is printed, various corrections and noises are added by the same process as described above, and the image is printed based on the processed image data. Even when the image characteristics vary depending on the shooting conditions, it is possible to print an image while accurately preventing the occurrence of image quality degradation.

ところで、上述した画像処理装置や印刷制御装置は、単独で実施される場合もあるし、ある機器に組み込まれた状態で他の方法とともに実施されることもあるなど、発明の思想としては各種の態様を含むものであって、適宜、変更可能である。また、上述した画像処理や印刷制御の手法は、方法としても適用可能であり、画像処理方法や印刷制御方法にかかる発明においても、基本的には同様の作用となる。 By the way, the image processing apparatus and the print control apparatus described above may be implemented independently, or may be implemented together with other methods in a state of being incorporated in a certain device. It includes embodiments and can be changed as appropriate. In addition, the above-described image processing and print control methods can also be applied as methods, and basically the same operation is achieved in the invention relating to the image processing method and the print control method .

本発明を実施しようとする際に、画像処理装置や印刷制御装置にて所定のプログラムを実行させる場合もある。そこで、そのプログラムとしても本発明を実施可能であり、画像処理プログラムや印刷制御プログラムにかかる発明においても、基本的には同様の作用となる。むろん、従属請求項に記載された構成を上記方法やプログラムに対応させることも可能である。また、いかなる記憶媒体もプログラムを提供するために使用可能である。例えば、磁気記録媒体や光磁気記録媒体であってもよいし、今後開発されるいかなる記録媒体においても全く同様に考えることができる。また、一部がソフトウェアであって、一部がハードウェアで実現される場合においても本発明の思想において全く異なるものではなく、一部を記録媒体上に記録しておいて必要に応じて適宜読み込む形態のものも含まれる。さらに、一次複製品、二次複製品などの複製段階についても同等である。 When trying to implement the present invention, a predetermined program may be executed by an image processing apparatus or a print control apparatus. Therefore, the present invention can also be implemented as the program, and basically the same operation is achieved in the invention relating to the image processing program and the print control program . Of course, it is possible to make the configuration described in the dependent claims correspond to the above method or program. Any storage medium can be used to provide the program. For example, a magnetic recording medium or a magneto-optical recording medium may be used, and any recording medium that will be developed in the future can be considered in the same manner. In addition, even when a part is software and a part is realized by hardware, the idea of the present invention is not completely different, and a part is recorded on a recording medium and is appropriately changed as necessary. It includes a reading form. Furthermore, the same is true for the replication stage such as the primary replica and the secondary replica.

以下、下記の順序に従って本発明の実施形態を説明する。
(1)画像処理装置および印刷制御装置の構成:
(2)印刷制御処理:
(2−1)周辺光量補正処理:
(2−2)ノイズ付加処理:
(3)他の実施形態:
Hereinafter, embodiments of the present invention will be described in the following order.
(1) Configuration of image processing apparatus and print control apparatus:
(2) Print control processing:
(2-1) Peripheral light amount correction processing:
(2-2) Noise addition processing:
(3) Other embodiments:

(1)画像処理装置および印刷制御装置の構成:
図1は、本発明の一実施形態にかかる画像処理装置および印刷制御装置の概略構成を示している。本実施形態ではコンピュータ10の機能の一部によって画像処理装置と印刷制御装置とが実現される。コンピュータ10は演算処理の中枢をなすCPU11を備えており、このCPU11はシステムバス10aを介してコンピュータ10全体の制御を行う。同システムバス10aには、ROM12、RAM13、ハードディスクドライブ14やUSBI/F15,図示しないCRTI/Fや入力機器I/F等が接続されている。
(1) Configuration of image processing apparatus and print control apparatus:
FIG. 1 shows a schematic configuration of an image processing apparatus and a print control apparatus according to an embodiment of the present invention. In the present embodiment, an image processing apparatus and a print control apparatus are realized by some of the functions of the computer 10. The computer 10 includes a CPU 11 serving as the center of arithmetic processing, and the CPU 11 controls the entire computer 10 via a system bus 10a. Connected to the system bus 10a are a ROM 12, a RAM 13, a hard disk drive 14, a USB I / F 15, a CRTI / F (not shown), an input device I / F, and the like.

ハードディスクドライブ14には、ソフトウェアとしてオペレーティングシステム(OS)、画像処理を行うための画像処理ユーティリティ30やプリンタドライバ(PRTDRV)31等が格納されており、これらのソフトウェアは、実行時にCPU11によって適宜RAM13に転送される。CPU11は、RAM13を一時的なワークエリアとして適宜アクセスしながらOSの制御下で種々のプログラムを実行する。   The hard disk drive 14 stores an operating system (OS) as software, an image processing utility 30 for performing image processing, a printer driver (PRTDRV) 31, and the like. These software are appropriately stored in the RAM 13 by the CPU 11 during execution. Transferred. The CPU 11 executes various programs under the control of the OS while appropriately accessing the RAM 13 as a temporary work area.

入力機器I/Fには、キーボード16aやマウス16bが操作用入力機器として接続される。また、CRTI/Fには、表示用のディスプレイ17aが接続されている。従って、コンピュータ10では、キーボード16aやマウス16bによる操作内容を受け付け、また、ディスプレイ17aに各種情報を表示することが可能である。さらに、USBI/F15には、プリンタ20が接続されており、コンピュータ10が出力するデータに基づいて画像を印刷することが可能である。むろん、プリンタ20との接続I/FはUSBI/Fに限られる必要もなく、パラレルI/F,シリアルI/F,SCSI接続など種々の接続態様を採用可能であるし、今後開発されるいかなる接続態様であっても同様である。   A keyboard 16a and a mouse 16b are connected to the input device I / F as operation input devices. A display 17a for display is connected to the CRTI / F. Therefore, the computer 10 can accept the operation contents by the keyboard 16a and the mouse 16b, and can display various information on the display 17a. Further, a printer 20 is connected to the USB I / F 15 and an image can be printed based on data output from the computer 10. Of course, the connection I / F with the printer 20 is not limited to the USB I / F, and various connection modes such as a parallel I / F, a serial I / F, and a SCSI connection can be adopted, and any one to be developed in the future. The same applies to the connection mode.

本実施形態で使用するプリンタ20は、インクジェットプリンタであってもよいし、レーザープリンタであっても良く、各種のプリンタを採用することができる。いずれにしても、コンピュータ10ではプリンタ20にて解釈可能な印刷データを作成し、USBI/F15を介して出力する。プリンタ20では当該印刷データに基づいて画像を構成する各画素について記録材を記録することによって画像を印刷する。   The printer 20 used in the present embodiment may be an ink jet printer or a laser printer, and various printers can be employed. In any case, the computer 10 creates print data that can be interpreted by the printer 20 and outputs the print data via the USB I / F 15. The printer 20 prints an image by recording a recording material for each pixel constituting the image based on the print data.

(2)印刷制御処理:
CPU11は、上記画像処理ユーティリティ30およびPRTDRV31を実行することによって印刷を実行する。すなわち、画像処理ユーティリティ30は、印刷を実行する際に、周辺光量補正を実施し、補正後の画像に対してノイズを付加する機能を備えている。PRTDRV31は、画像処理ユーティリティ30による処理後の画像データに基づいて印刷を実行する。
(2) Print control processing:
The CPU 11 executes printing by executing the image processing utility 30 and the PRTDRV 31. In other words, the image processing utility 30 has a function of performing peripheral light amount correction and adding noise to the corrected image when executing printing. The PRTDRV 31 executes printing based on the image data processed by the image processing utility 30.

図1においては、画像処理ユーティリティ30の機能ブロックを図示しており、図2は当該画像処理ユーティリティ30とPRTDRV31とによって実行される処理のフローチャートを示している。図1に示すように、画像処理ユーティリティ30は、画像データ取得部30aとγ補正部30bとノイズ付加部30cとを備えている。   FIG. 1 illustrates functional blocks of the image processing utility 30, and FIG. 2 illustrates a flowchart of processing executed by the image processing utility 30 and the PRTDRV 31. As shown in FIG. 1, the image processing utility 30 includes an image data acquisition unit 30a, a γ correction unit 30b, and a noise addition unit 30c.

画像データ取得部30aは、ハードディスクドライブ14に保存された各種形式の画像データ14aを読み出すことが可能であり、印刷対象の画像データ14aを取得して(ステップS100)上記ディスプレイ17a上に印刷候補として表示させる。本実施形態において、画像データ14aは画像を構成する複数の画素毎にYCbCrの各色成分を1024階調(階調値0〜1023)で表現し、この組み合わせで各画素の色を表現している。   The image data acquisition unit 30a can read out various types of image data 14a stored in the hard disk drive 14, acquires the image data 14a to be printed (step S100), and displays it as a print candidate on the display 17a. Display. In this embodiment, the image data 14a expresses each color component of YCbCr with 1024 gradations (gradation values 0 to 1023) for each of a plurality of pixels constituting the image, and expresses the color of each pixel by this combination. .

また、この画像データ14aは、予めデジタルスチルカメラ等の画像入力機器によって生成された画像データであり、画像入力機器によって画像データ14aを生成する際に各色成分毎に10bitの情報量で階調値を表現していることになる。一方、上記PRTDRV31においては、各色成分を256階調で表現した画像データを扱うようになっており、後述のようにしてγ補正とノイズ付加を実施した後に各色成分毎に8bitの情報量で階調値を表現したデータに変換することになる。   The image data 14a is image data generated in advance by an image input device such as a digital still camera. When the image data 14a is generated by the image input device, a gradation value with an information amount of 10 bits for each color component. Is expressed. On the other hand, the PRTDRV 31 handles image data in which each color component is expressed in 256 gradations, and after performing γ correction and noise addition as described later, the level of information is 8 bits for each color component. It will be converted into data representing the key value.

むろん、画像を取得する際の構成としてはこのほかにも種々の構成を採用可能であり、上記画像入力機器とコンピュータ10とを接続し、画像入力機器に挿入された記録メディアから画像データを取得しても良い。また、画像データが記録された記録メディアをコンピュータ10のインタフェースに挿入し、この記録メディアから画像データを取得しても良い。いずれにしても、上記ステップS100における処理が上記画像データ取得手段における処理に相当する。   Of course, various other configurations can be employed for acquiring images, and the image input device and the computer 10 are connected to acquire image data from a recording medium inserted in the image input device. You may do it. Further, a recording medium on which image data is recorded may be inserted into the interface of the computer 10 and the image data may be acquired from this recording medium. In any case, the process in step S100 corresponds to the process in the image data acquisition unit.

(2−1)周辺光量補正処理:
γ補正部30bは、画像データに対してγ補正を行うことによって周辺光量補正を実施する。このために、γ補正部30bは、光量低下データ14bの中から補正に適用すべきデータを選択させるようになっている。すなわち、これらの光量低下データ14bは、ハードディスクドライブ14に予め記録されており、画像を撮影する際に利用した絞りおよび焦点距離の組み合わせに対応させて減光率が定義されている。そこで、γ補正部30bは、上記ディスプレイ17a上に光量低下データ14bを選択するためのGUIを表示させ、キーボード16aやマウス16bを介して選択指示を受け付けることによって、各データの中から適用すべきデータを特定する(ステップS105)。
(2-1) Peripheral light amount correction processing:
The γ correction unit 30b performs peripheral light amount correction by performing γ correction on the image data. For this reason, the γ correction unit 30b selects data to be applied for correction from the light amount reduction data 14b. That is, the light quantity reduction data 14b is recorded in advance in the hard disk drive 14, and the light reduction rate is defined corresponding to the combination of the aperture and the focal length used when taking an image. Therefore, the γ correction unit 30b should display the GUI for selecting the light amount reduction data 14b on the display 17a, and accept the selection instruction via the keyboard 16a or the mouse 16b, and apply it from each data. Data is specified (step S105).

図3は、光量低下データ14bの構成例を示す図である。光量低下データ14bは、画像の位置と減光率とを対応づけたデータであり、本実施形態においては、画像の中心からの距離Y1,Y2,Y3,Y4における減光率を記述している。尚、減光率Rmは、以下の式(1)によって定義される。

Figure 0004375223
ここで、Lmは基準の画像を撮影した場合に得られる明度の実測値であり、画像の中心からの距離毎に得られる実測値である。Ltは基準の画像を撮影した場合に得られる基準の明度である。 FIG. 3 is a diagram illustrating a configuration example of the light amount reduction data 14b. The light amount reduction data 14b is data in which the position of the image is associated with the light attenuation rate, and in this embodiment, the light attenuation rate at the distances Y 1 , Y 2 , Y 3 , and Y 4 from the center of the image. It is described. The light attenuation rate R m is defined by the following equation (1).
Figure 0004375223
Here, L m is an actually measured value of brightness obtained when a reference image is taken, and is an actually measured value obtained for each distance from the center of the image. L t is a reference brightness obtained when a reference image is taken.

基準の明度は、光量の低下を比較するための基準となる明度であれば良く、本実施形態においては、画像の中心における明度の実測値である。むろん、レンズに起因する光量低下が生じなかった場合の明度を基準の明度としても良く、種々の基準を採用可能である。また、減光率は、画像データ14aの撮影条件によって異なるため、本実施形態においては、絞りと焦点距離(mm)との組み合わせに対して減光率を対応づけている。   The lightness of the reference only needs to be lightness that serves as a reference for comparing the decrease in the amount of light. In the present embodiment, the lightness is a measured value of lightness at the center of the image. Needless to say, the brightness when the light amount reduction due to the lens does not occur may be used as the reference brightness, and various standards can be adopted. Further, since the light attenuation rate varies depending on the photographing condition of the image data 14a, in the present embodiment, the light attenuation rate is associated with the combination of the aperture and the focal length (mm).

例えば、絞り3.5,焦点距離28mmにおいて、距離Y1に対応する減光率はRm1、距離Y2に対応する減光率はRm2、距離Y3に対応する減光率はRm3、距離Y4に対応する減光率はRm4である。むろん、光量低下データ14bとしては、他にも種々の構成を採用可能であり、レンズの種類や名称に対して減光率を対応づけても良いし、ズームレンズであれば、単一のレンズについて複数の焦点距離と絞りとの組み合わせに減光率を対応づけても良い。 For example, when the aperture is 3.5 and the focal length is 28 mm, the light attenuation rate corresponding to the distance Y 1 is R m1 , the light attenuation rate corresponding to the distance Y 2 is R m2 , and the light attenuation rate corresponding to the distance Y 3 is R m3. The dimming rate corresponding to the distance Y 4 is R m4 . Of course, various other configurations can be adopted as the light amount reduction data 14b, and the light attenuation rate may be associated with the type and name of the lens. A dimming rate may be associated with a combination of a plurality of focal lengths and apertures.

また、本実施形態では4つの距離(Y1〜Y4)における減光率を光量低下データ14bとしているが、むろん、より多くの距離について減光率を定義しても良い。また、本実施形態における減光率は中心からの距離のみに依存しているが、むろん、中心からの距離のみではなく、画像の位置毎に減光率を定義しても良い。 In this embodiment, the light attenuation rate at four distances (Y 1 to Y 4 ) is used as the light amount reduction data 14b. However, the light attenuation rate may be defined for more distances. Further, although the light attenuation rate in this embodiment depends only on the distance from the center, it is needless to say that the light attenuation rate may be defined for each position of the image, not just the distance from the center.

ステップS105にて光量低下データ14bを選択したら、利用者所望の減光率にするための調整を受け付ける(ステップS110)。すなわち、本実施形態においては、この減光率特性をより柔軟に変更できるようにするため、利用者による調整を受け付ける。具体的には、γ補正部30bが図4の左側に示すグラフのようなGUIをディスプレイ17aに表示し、キーボード16aやマウス16b等によって調整を受け付ける。すなわち、図4の左側に示すグラフにおいて横軸は画像の中心からの距離、縦軸は減光率(%)を示しており、白丸は上記光量低下データ14bに記述されたデータである。   If the light quantity reduction data 14b is selected in step S105, an adjustment for obtaining a user desired light reduction rate is accepted (step S110). That is, in this embodiment, in order to be able to change the light attenuation rate characteristic more flexibly, the adjustment by the user is accepted. Specifically, the γ correction unit 30b displays a GUI such as the graph shown on the left side of FIG. 4 on the display 17a, and accepts adjustments using the keyboard 16a, the mouse 16b, and the like. That is, in the graph shown on the left side of FIG. 4, the horizontal axis indicates the distance from the center of the image, the vertical axis indicates the light reduction rate (%), and the white circle is the data described in the light amount reduction data 14b.

中心からの距離”0”において減光率が0%であると考え、グラフの左上の角と白丸とを利用してスプライン補間等の補間を実施すれば、図4の左側のグラフにて実線で示す曲線のように、任意の距離に対する減光率を算出することができる。そこで、γ補正部30bではこのグラフのようなUIを上記ディスプレイ17aに表示し、上記マウス16b等の入力動作によって実線の曲線を上下に移動させ、破線で示す曲線のように減光率特性を変更できるように構成する。   If it is assumed that the light reduction rate is 0% at the distance “0” from the center, and if interpolation such as spline interpolation is performed using the upper left corner of the graph and the white circle, the solid line in the left graph of FIG. As in the curve shown by, the light attenuation rate for an arbitrary distance can be calculated. In view of this, the γ correction unit 30b displays a UI like this graph on the display 17a, and moves the solid curve up and down by the input operation of the mouse 16b and the like, and exhibits the light attenuation rate characteristic as shown by the broken line. Configure to change.

このようにして減光率特性の変更を受け付けると、その調整後の特性でγ補正を実施するため、画像の中心からの距離とγ値との対応関係を示すγテーブルを算出する(ステップS115)。図4の右側のグラフは、γテーブルを算出する処理を説明する説明図である。本実施形態においては、上記ステップS110にて決定した減光率が明度の階調値の中央値(512)に対する減光率であると想定する。この想定の下では、光量が低下していない場合に明度が”512”となるべき画像データが減光によって”512×減光率”になっていると推定することができる。そこで、画像データにおいて”512×減光率”という値が、γ補正によって”512”に補正されるようにγ値を決定する。   When a change in the light attenuation rate characteristic is received in this way, a γ table indicating the correspondence between the distance from the center of the image and the γ value is calculated in order to perform γ correction with the adjusted characteristic (step S115). ). The graph on the right side of FIG. 4 is an explanatory diagram for explaining processing for calculating the γ table. In the present embodiment, it is assumed that the light attenuation rate determined in step S110 is the light attenuation rate with respect to the median value (512) of the lightness gradation values. Under this assumption, it can be estimated that the image data whose brightness should be “512” when the light amount has not decreased is “512 × light reduction rate” due to light reduction. Therefore, the γ value is determined so that the value “512 × light attenuation rate” in the image data is corrected to “512” by the γ correction.

図4の右側のグラフは、中心からの距離Y3についてのγ補正を説明する説明図である。すなわち、光量が低下していない場合の明度が”512”である一様な画像では、中心からの距離Y3の画素の明度が”512×Rm3”になっていると推定される。そこで、入力値”512×Rm3”に対する出力値が”512”となるように以下の式(2)によってγ値を算出する。

Figure 0004375223
The graph on the right side of FIG. 4 is an explanatory diagram illustrating γ correction for the distance Y 3 from the center. That is, it is estimated that the brightness of the pixel at the distance Y 3 from the center is “512 × R m3 ” in the uniform image where the brightness is “512” when the amount of light is not reduced. Therefore, the γ value is calculated by the following equation (2) so that the output value for the input value “512 × R m3 ” becomes “512”.
Figure 0004375223

この式は、上述のようにして決定した距離毎の減光率(図4左側のグラフ)に対して適用することができ、距離Y3のみならず、中心からの距離毎にγ値を算出することができる。当該距離毎のγ値は、各距離において光量低下を補正するためのγ値であるので、各距離毎のデータが上記γテーブルとなる。尚、本実施形態においては、後のノイズ付加によってデータが階調値域以上になることを防止するため、γ補正後の最大値が階調値域の上限”1023”より低くなるようにしている。具体的には、後述するようにノイズの最大値が”3”であるため、通常のγ補正であれば式(2)における最初の係数が”1023”となるところ、この係数を”1020”とし、γ補正後の最大値が”1020”になるようにしている。 This equation can be applied to the light attenuation rate for each distance (graph on the left side of FIG. 4) determined as described above, and the γ value is calculated for each distance from the center as well as the distance Y 3. can do. Since the γ value for each distance is a γ value for correcting a decrease in light quantity at each distance, the data for each distance is the γ table. In this embodiment, the maximum value after γ correction is set to be lower than the upper limit “1023” of the gradation value range in order to prevent the data from exceeding the gradation value range due to subsequent noise addition. Specifically, as will be described later, since the maximum value of noise is “3”, in the case of normal γ correction, the first coefficient in equation (2) is “1023”. And the maximum value after γ correction is set to “1020”.

また、光量低下を補正するためのデータを算出する構成は上述の構成に限られず種々の構成を採用可能である。例えば、式(2)に代入する階調値が上記階調値の中央値であることは必須ではないし、γ補正以外にもオフセットや減光率の逆数を乗じる補正であっても良い。但し、オフセットや減光率の逆数を乗じる補正では、高階調域で階調値が飽和するおそれがあるので、階調値の飽和を防止するためにはγ補正であることが好ましい。   In addition, the configuration for calculating data for correcting the light amount decrease is not limited to the above-described configuration, and various configurations can be employed. For example, it is not essential that the gradation value to be substituted into the expression (2) is the median value of the gradation value, and correction other than the γ correction may be performed by multiplying the reciprocal of the offset or the light attenuation rate. However, in the correction by multiplying the reciprocal of the offset or the light attenuation rate, the gradation value may be saturated in a high gradation region, and therefore γ correction is preferable in order to prevent the saturation of the gradation value.

本実施形態においては、上記画像データ14aのうち、一つの画素に注目して画像修整処理を行い、画像修整処理が終了したら注目画素を移動して同様の処理を続ける。この処理手順にて周辺光量補正を実施するために、まず、画像データ14a内で注目画素を決定し、上記ステップS115にて作成したγテーブルを参照して注目画素のγ値を取得する(ステップS120)。すなわち、γテーブルを参照し、注目画素と画像の中心との距離に対応するγ値を取得する。   In the present embodiment, image modification processing is performed by paying attention to one pixel in the image data 14a. When the image modification processing is completed, the pixel of interest is moved and the same processing is continued. In order to perform the peripheral light amount correction in this processing procedure, first, the target pixel is determined in the image data 14a, and the γ value of the target pixel is acquired with reference to the γ table created in step S115 (step S115). S120). That is, the γ value corresponding to the distance between the target pixel and the center of the image is acquired by referring to the γ table.

各注目画素のγ値を取得したら、各注目画素の明度値Yに対して各画素のγ値にてγ補正を行い、光量低下補正を実施する(ステップS125)。そして、画像データ14aの総てを注目画素として処理を終えたか否か判別し(ステップS130)、総ての画素について処理を終了したと判別されなければ、注目画素を未処理の画素に変更し(ステップS135)、ステップS120以降の処理を繰り返す。尚、本実施形態においては、ステップS120〜S135の処理が上記補正手段に相当する。   When the γ value of each pixel of interest is acquired, γ correction is performed on the lightness value Y of each pixel of interest using the γ value of each pixel, and light amount reduction correction is performed (step S125). Then, it is determined whether or not the processing has been completed for all the image data 14a as the target pixel (step S130). If it is not determined that the processing has been completed for all the pixels, the target pixel is changed to an unprocessed pixel. (Step S135), the processing after Step S120 is repeated. In the present embodiment, the processing in steps S120 to S135 corresponds to the correction means.

(2−2)ノイズ付加処理:
以上のようにして周辺光量補正を実施するが、上述のように、絞りと焦点距離との組み合わせと複数の距離における減光率を対応させたとしても、総ての撮影条件について適切に光量低下特性を記述するのは困難である。特に画像撮像装置においてレンズを交換できる場合には正確な補正が困難となる。また、ステップS110にて決定した減光率が、画像データ14aにおける減光率特性に対して正確に対応していることはまれである。
(2-2) Noise addition processing:
Although the peripheral light amount correction is performed as described above, as described above, even if the combination of the diaphragm and the focal length is associated with the dimming rate at a plurality of distances, the light amount is appropriately reduced for all photographing conditions. It is difficult to describe characteristics. In particular, when the lens can be exchanged in the image pickup apparatus, accurate correction becomes difficult. In addition, it is rare that the dimming rate determined in step S110 accurately corresponds to the dimming rate characteristic in the image data 14a.

画像データ14aにおける減光率特性に対して正確に対応していない減光率に基づいて補正を行うと、過度の補正を実施し、あるいは補正量が不足することに起因し、明度のトーンジャンプが発生し得る。そこで、本実施形態においては、続いてノイズ付加処理を行う。この処理を行うために、ハードディスクドライブ14には、予めノイズパターンデータ14cが記録されている。   If correction is performed based on a light attenuation rate that does not accurately correspond to the light attenuation rate characteristic in the image data 14a, lightness tone jump is caused due to excessive correction or insufficient correction amount. Can occur. Therefore, in the present embodiment, noise addition processing is subsequently performed. In order to perform this processing, noise pattern data 14c is recorded in the hard disk drive 14 in advance.

ノイズパターンデータ14cは、γ補正後の画像データに対して付加すべきノイズを示すデータであり、例えば、縦横2画素ずつを単位領域とし、この単位領域内でのノイズを定義するデータによって構成することができる。図5においては、ノイズパターンPtを例として示している。すなわち、この例では縦横2画素の単位領域内で付加すべきノイズを左上で”0”,右上で”2”,左下で”3”,右下で”1”と定義しており、各値をノイズとしてγ補正後の画像データに付加することを示している。   The noise pattern data 14c is data indicating noise to be added to the image data after γ correction. For example, the noise pattern data 14c is constituted by data defining noise in the unit region, with two vertical and horizontal pixels as unit regions. be able to. In FIG. 5, a noise pattern Pt is shown as an example. That is, in this example, the noise to be added in the unit area of 2 pixels vertically and horizontally is defined as “0” in the upper left, “2” in the upper right, “3” in the lower left, and “1” in the lower right. Is added to the image data after γ correction as noise.

γ補正の後、ノイズ付加部30cは、ハードディスクドライブ14から上記ノイズパターンデータ14cを取得し(ステップS140)、γ補正後の画像データのある画素に注目してその画素と隣接する画素の計4個にノイズを付加する(ステップS145)。すなわち、ある注目画素に対して上記ノイズパターンPtの左上を対応させることにすれば、注目画素に階調値”0”を加え、注目画素の右隣の画素に階調値”2”を加え、注目画素の下隣の画素に階調値”3”を加え、注目画素の右斜め下の画素に階調値”1”を加える。   After the γ correction, the noise adding unit 30c acquires the noise pattern data 14c from the hard disk drive 14 (step S140), paying attention to a pixel in the image data after the γ correction, and a total of four pixels adjacent to the pixel. Noise is added to the individual (step S145). That is, if the upper left of the noise pattern Pt is made to correspond to a certain target pixel, the gradation value “0” is added to the target pixel, and the gradation value “2” is added to the pixel adjacent to the right side of the target pixel. The gradation value “3” is added to the pixel adjacent to the target pixel, and the gradation value “1” is added to the pixel diagonally to the lower right of the target pixel.

ノイズを付加したら、γ補正後の画像データの全画素についてノイズ付加処理が終了したか否か判別し(ステップS150)、同ステップS150にて全画素について終了したと判別されなければ注目画素を変更して(ステップS155)、ステップS145以降の処理を繰り返す。尚、ノイズパターンPtは縦横2画素であるので、ステップS155にて注目画素を変更する際には、変更後の注目画素と、その右隣、下隣、右斜め下の画素がノイズ未付加の画素となるように画素を変更する。本実施形態においては、ステップS140〜S155の処理が上記ノイズ付加手段に相当する。   If noise is added, it is determined whether or not noise addition processing has been completed for all pixels of the image data after γ correction (step S150). If it is not determined that all pixels have been completed in step S150, the target pixel is changed. (Step S155), and the processing after Step S145 is repeated. Since the noise pattern Pt is 2 pixels in the vertical and horizontal directions, when changing the target pixel in step S155, the target pixel after the change, the right adjacent, lower adjacent, and diagonally lower right pixels are not added with noise. Change the pixel to be a pixel. In the present embodiment, the processes in steps S140 to S155 correspond to the noise adding means.

ステップS150にて全画素についてノイズ付加処理が終了したと判別されたときには、ノイズ付加後の画像を印刷するため、色成分毎の情報量を10bitから8bitに変換する(ステップS160)。そして、得られた8bitの画像データに基づいて画像を印刷する(ステップS165)。すなわち、ノイズ付加部30cは、ノイズを付加した後の画像データをPRTDRV31に受け渡し、PRTDRV31は、当該受け渡された画像データの各画素について色変換処理を実行し、ハーフトーン処理を行い、プリンタ20にて使用される順序に並び替えつつプリンタ20に対して出力する。この結果、プリンタ20においては、ノイズが付加された画像を形成するように記録媒体上に記録材を形成する。   If it is determined in step S150 that the noise addition processing has been completed for all pixels, the information amount for each color component is converted from 10 bits to 8 bits in order to print the image after noise addition (step S160). Then, an image is printed based on the obtained 8-bit image data (step S165). That is, the noise adding unit 30c transfers the image data after adding the noise to the PRTDRV 31, and the PRTDRV 31 performs a color conversion process on each pixel of the transferred image data, performs a halftone process, and the printer 20 Are output to the printer 20 while being rearranged in the order used. As a result, in the printer 20, a recording material is formed on the recording medium so as to form an image with added noise.

以上のように、本実施形態においては、γ補正後の画像データに対してノイズを付加しているので、過度のγ補正あるいは補正の不足によって画像の中心からの距離に応じたトーンジャンプが発生したとしてもこのトーンジャンプを解消することができる。図5は、この様子を示している。同図の左側には多くの部分が空である画像を示している。また、この例では、画像の中心Oに対して同心円状にリングノイズNr(トーンジャンプ)が発生している様子を示している。   As described above, in the present embodiment, noise is added to the image data after γ correction, and therefore a tone jump according to the distance from the center of the image occurs due to excessive γ correction or insufficient correction. Even so, this tone jump can be eliminated. FIG. 5 shows this state. The left side of the figure shows an image in which many parts are empty. In this example, a ring noise Nr (tone jump) is generated concentrically with respect to the center O of the image.

このようなリングノイズは、周辺光量の低下が発生した場合、γ補正を過度に行った場合、γ補正が不足した場合等に発生する。図5の右側のグラフはこのリングノイズNrを模式的に示している。同図において横軸は中心Oからの距離、縦軸は明度の階調値を示しており、ほぼ一定の階調値であるべきところ、中心からの距離が遠くなるほど階調値が小さく(暗く)なり、また、この階調値の変動が段階的に発生している。この結果、トーンジャンプとなっている。   Such ring noise occurs when a decrease in the amount of peripheral light occurs, when γ correction is excessively performed, when γ correction is insufficient, or the like. The graph on the right side of FIG. 5 schematically shows this ring noise Nr. In the figure, the horizontal axis indicates the distance from the center O, and the vertical axis indicates the gradation value of lightness. The gradation value should be almost constant, but the gradation value becomes smaller (darker as the distance from the center increases). In addition, the gradation value fluctuates in a stepwise manner. This results in a tone jump.

そこで、本実施形態のようにノイズパターンPtによってノイズを付加すると、拡大図Aに示すように、段階的な階調値の変化(拡大図Aの破線)に対して不規則なノイズ(拡大図Aの実線)が重ねられ、トーンジャンプが目立たなくなる。尚、本実施形態において、画像データの各色成分は1024階調で表現される。これに対しノイズの大きさは0〜3である。従って、ノイズ自体が目立つことはなく、ノイズによって画質の低下を感じさせることはない。出願人の実験によれば、このように小さなノイズであってもトーンジャンプを目立たなくさせる作用効果は発揮され、トーンジャンプ低減という意味で画質を向上することができる。   Therefore, when noise is added by the noise pattern Pt as in the present embodiment, as shown in the enlarged view A, noise irregularly (enlarged view) with respect to a stepwise gradation value change (broken line in the enlarged view A). A solid line A) is overlaid, and the tone jump becomes inconspicuous. In the present embodiment, each color component of the image data is expressed by 1024 gradations. On the other hand, the magnitude of noise is 0-3. Therefore, the noise itself does not stand out, and the image quality is not deteriorated by the noise. According to the experiment by the applicant, even with such a small noise, the effect of making the tone jump inconspicuous is exhibited, and the image quality can be improved in the sense of tone jump reduction.

(3)他の実施形態:
上記実施形態は本発明にかかる画像処理装置、画像処理方法、画像処理プログラム、印刷制御装置、印刷制御方法および印刷制御プログラムを実現する一例であり、むろん他の構成を採用することも可能である。上述の例では、汎用的なコンピュータによって画像修整を行い、印刷制御を行っていたが、むろん、画像修整や印刷制御を一台のコンピュータで実施しなくても良いし、印刷装置に組み込まれたコンピュータでこれらの処理を行っても良い。
(3) Other embodiments:
The above embodiment is an example for realizing an image processing apparatus, an image processing method, an image processing program, a print control apparatus, a print control method, and a print control program according to the present invention, and other configurations can of course be employed. . In the above example, image correction is performed by a general-purpose computer and print control is performed. Of course, image correction and print control need not be performed by one computer, and are incorporated in a printing apparatus. These processes may be performed by a computer.

また、デジタルスチルカメラや携帯電話など、印刷対象の画像を印刷装置に提供するコンピュータにおいて画像修整を行ったり、印刷制御を実施しても良い。さらに、処理を担うプロセッサはCPUなどの汎用プロセッサに限定されず、カスタムICでも良い。プリンタとしても、印刷装置単体であることが必須ではなく、スキャナやfaxなど複数の機能が組み込まれた複合機や複写機等であってもよい。   Further, image correction or print control may be performed in a computer that provides an image to be printed to a printing apparatus, such as a digital still camera or a mobile phone. Furthermore, the processor responsible for processing is not limited to a general-purpose processor such as a CPU, and may be a custom IC. The printer is not necessarily a single printing apparatus, and may be a multifunction machine or a copier incorporating a plurality of functions such as a scanner and a fax machine.

さらに、上記実施形態においては、画像処理ユーティリティを単体のプログラムとして提供していたが、むろんPRTDRVの機能として提供することもできるし、画像レタッチソフトウェア等のアプリケーションプログラムの機能として提供することもできる。   Furthermore, in the above-described embodiment, the image processing utility is provided as a single program. However, it can be provided as a function of PRTDRV, or can be provided as a function of an application program such as image retouching software.

さらに、上記実施形態においては、周辺光量補正に伴ってさらに他の画像修整処理を実施することも可能である。例えば、光量低下が発生している画像においては、光量の低下とともに彩度の低下が生じやすい。そこで、周辺光量補正を実施するとともに彩度強調処理を実施するのが好ましい。彩度強調としては、各種の構成を採用可能であり、例えば、以下の式によって彩度強調を実施可能である。

Figure 0004375223
Furthermore, in the above-described embodiment, it is also possible to perform another image modification process with the peripheral light amount correction. For example, in an image in which a decrease in the amount of light occurs, a decrease in saturation is likely to occur as the amount of light decreases. Therefore, it is preferable to perform the peripheral light amount correction and the saturation enhancement process. As saturation enhancement, various configurations can be employed. For example, saturation enhancement can be performed by the following expression.
Figure 0004375223

ここで、Cb'は彩度強調後のCb値、Cr'は彩度強調後のCr値、Coは補正係数である。補正係数Coは予め決めても良いし、周辺光量補正の程度に応じて決めても良い。例えば、上記γ値は光量補正程度を示すので、Coがγ値に依存するように定義しても良い。いずれにしても、周辺光量補正に伴って彩度強調処理を実施すれば、光量補正に伴って彩度を強調し、より自然な画像になるよう補正することができる。   Here, Cb ′ is a Cb value after saturation enhancement, Cr ′ is a Cr value after saturation enhancement, and Co is a correction coefficient. The correction coefficient Co may be determined in advance or may be determined according to the degree of peripheral light amount correction. For example, since the γ value indicates the amount of light correction, Co may be defined so as to depend on the γ value. In any case, if the saturation enhancement process is performed along with the peripheral light amount correction, the saturation can be enhanced along with the light amount correction so that a more natural image can be corrected.

さらに、上記図2に示す処理手順を変更することも可能である。例えば、上記γ補正をノイズパターンの大きさに相当する画素に対して実施し、これらの画素に対してノイズを付加する手順とし、この処理を繰り返して画像データの全画素に対する処理を行うことも可能である。この手順によれば、一通り周辺光量補正を実施し終える前にノイズの付加も行うことができるので、バッファ容量を節約することができる。   Furthermore, it is possible to change the processing procedure shown in FIG. For example, the above γ correction may be performed on pixels corresponding to the size of the noise pattern, and noise may be added to these pixels, and this process may be repeated to process all the pixels of the image data. Is possible. According to this procedure, noise can be added before the peripheral light amount correction is completed, so that the buffer capacity can be saved.

さらに、上記処理をするために必要な光量低下データ14bやノイズパターンデータ14cが予めハードディスクドライブ14に記録されていることは必須ではなく、画像データ14aを作成する際に画像データ14aに付加しても良いし、利用者自身で作成するようにしても良い。むろん、ノイズパターンデータ14cが上記図5に示すような構成であることは必須ではなく、ノイズパターンの大きさおよび階調値を変動させることも可能である。   Further, it is not essential that the light quantity reduction data 14b and the noise pattern data 14c necessary for the above processing are recorded in the hard disk drive 14 in advance, and are added to the image data 14a when creating the image data 14a. Alternatively, it may be created by the user himself. Of course, it is not essential that the noise pattern data 14c has the configuration as shown in FIG. 5, and the size and gradation value of the noise pattern can be changed.

また、ノイズパターンを上記γ値や画像の中心からの距離に応じて変更することもできる。例えば、γ値による補正量が多くなるほどノイズパターンを大きく、ノイズの値域も大きくする構成や、中心からの距離が遠くなるほどノイズパターンを大きく、ノイズの値域も大きくする構成等を採用可能である。   Also, the noise pattern can be changed according to the γ value and the distance from the center of the image. For example, a configuration in which the noise pattern is increased and the noise value range is increased as the correction amount by the γ value is increased, or a configuration in which the noise pattern is increased and the noise value range is increased as the distance from the center is increased.

さらに、上述の実施形態においては、画像の印刷を想定していたため、PRTDRV31が認識できるようにノイズ付加後の画像データを10bitから8bitに変換していた。従って、PRTDRV31が10bitのデータを認識できるのであれば、この変換を実施する必要はない。また、印刷を実施するのではなく、画像を修整することが目的なのであれば、10bitのデータから8bitへの変換が必須とはならない。   Further, in the above-described embodiment, since image printing is assumed, the image data after adding noise is converted from 10 bits to 8 bits so that the PRTDRV 31 can recognize it. Therefore, if the PRTDRV 31 can recognize 10-bit data, it is not necessary to perform this conversion. Further, if the purpose is to modify an image instead of printing, conversion from 10-bit data to 8-bit is not essential.

さらに、上記実施形態においては、周辺光量の低下を補正することを想定していたが、光量の低下に限らず、光量の変動を補正する構成であっても良い。例えば、上記ステップS110において縦軸の特性を正方向に調整できるように構成する。このとき、γ補正特性は入力値を低減して出力値を算出する特性となり、光量を減少させる補正を実施することになる。この場合であっても補正に起因して画質劣化が生じ得るので、本発明によってノイズを付加することにより画質劣化を抑えることが可能である。   Further, in the above embodiment, it is assumed that the decrease in the peripheral light amount is corrected. However, the present invention is not limited to the decrease in the light amount, and may be configured to correct the variation in the light amount. For example, in step S110, the vertical axis characteristic can be adjusted in the positive direction. At this time, the γ correction characteristic is a characteristic in which the input value is reduced and the output value is calculated, and correction for reducing the amount of light is performed. Even in this case, image quality degradation may occur due to correction, and therefore it is possible to suppress image quality degradation by adding noise according to the present invention.

画像処理装置および印刷制御装置の概略構成図である。1 is a schematic configuration diagram of an image processing apparatus and a print control apparatus. 印刷制御処理のフローチャートである。It is a flowchart of a printing control process. 光量低下データの構成例を示す図である。It is a figure which shows the structural example of light quantity fall data. γテーブルを算出する処理を説明する説明図である。It is explanatory drawing explaining the process which calculates (gamma) table. ノイズを付加する処理を説明する説明図である。It is explanatory drawing explaining the process which adds noise.

符号の説明Explanation of symbols

10…コンピュータ、10a…システムバス、11…CPU、12…ROM、13…RAM、14…ハードディスクドライブ、14a…画像データ、14b…光量低下データ、14c…ノイズパターンデータ、16a…キーボード、16b…マウス、17a…ディスプレイ、20…プリンタ、30…画像処理ユーティリティ、30a…画像データ取得部、30b…γ補正部、30c…ノイズ付加部   DESCRIPTION OF SYMBOLS 10 ... Computer, 10a ... System bus, 11 ... CPU, 12 ... ROM, 13 ... RAM, 14 ... Hard disk drive, 14a ... Image data, 14b ... Light quantity reduction data, 14c ... Noise pattern data, 16a ... Keyboard, 16b ... Mouse , 17a ... display, 20 ... printer, 30 ... image processing utility, 30a ... image data acquisition unit, 30b ... gamma correction unit, 30c ... noise addition unit

Claims (4)

画像データを取得する画像データ取得手段と、
画像における基準位置からの距離に応じて補正量が変動する補正を上記画像データに対して実施する補正手段と、
この補正後の画像データに対して、所定のノイズを付加するノイズ付加手段とを備え
上記補正手段は、上記画像データにおける所定の色成分の階調値を補正対象とし、当該所定の色成分における階調値域の上限値から上記ノイズ付加手段で付加するノイズの最大値を減じた値を最大値とする上記補正を上記画像データに対して実施することを特徴とする画像処理装置。
Image data acquisition means for acquiring image data;
Correction means for performing correction on the image data, the correction amount of which varies according to the distance from the reference position in the image;
A noise adding means for adding predetermined noise to the corrected image data ;
The correction means takes a gradation value of a predetermined color component in the image data as a correction target, and a value obtained by subtracting the maximum value of noise added by the noise addition means from the upper limit value of the gradation value range of the predetermined color component An image processing apparatus that performs the correction with respect to the maximum value on the image data .
上記ノイズ付加手段は、上記補正後の画像データに対して、予め決められたノイズパターンによって上記所定のノイズを付加し、  The noise adding means adds the predetermined noise to the corrected image data by a predetermined noise pattern,
上記ノイズパターンの大きさに相当する画素に対して上記補正手段により上記補正を実施し当該画素に対して上記ノイズ付加手段によりノイズを付加する処理を繰り返して上記画像データの全画素に対する上記補正の実施及びノイズの付加を行うことを特徴とする請求項1に記載の画像処理装置。  The correction is performed on the pixels corresponding to the size of the noise pattern by the correction means, and the process of adding noise to the pixels by the noise addition means is repeated to perform the correction on all the pixels of the image data. The image processing apparatus according to claim 1, wherein execution and addition of noise are performed.
画像を修整する画像処理方法であって、
画像データを取得する画像データ取得工程と、
画像における基準位置からの距離に応じて補正量が変動する補正を上記画像データに対して実施する補正工程と、
この補正後の画像データに対して、所定のノイズを付加するノイズ付加工程とを備え
上記補正工程では、上記画像データにおける所定の色成分の階調値を補正対象とし、当該所定の色成分における階調値域の上限値から上記ノイズ付加工程で付加するノイズの最大値を減じた値を最大値とする上記補正を上記画像データに対して実施することを特徴とする画像処理方法。
An image processing method for modifying an image,
An image data acquisition process for acquiring image data;
A correction step of performing correction on the image data, the correction amount of which varies according to the distance from the reference position in the image;
A noise addition step of adding predetermined noise to the corrected image data ,
In the correction step, a gradation value of a predetermined color component in the image data is a correction target, and a value obtained by subtracting the maximum value of noise added in the noise addition step from the upper limit value of the gradation value range in the predetermined color component An image processing method, wherein the correction with the maximum value is performed on the image data .
画像を修整する機能をコンピュータに実現させる画像処理プログラムであって、
画像データを取得する画像データ取得機能と、
画像における基準位置からの距離に応じて補正量が変動する補正を上記画像データに対して実施する補正機能と、
この補正後の画像データに対して、所定のノイズを付加するノイズ付加機能とを実現させ
上記補正機能は、上記画像データにおける所定の色成分の階調値を補正対象とし、当該所定の色成分における階調値域の上限値から上記ノイズ付加機能で付加するノイズの最大値を減じた値を最大値とする上記補正を上記画像データに対して実施することを特徴とする画像処理プログラム。
An image processing program for causing a computer to perform a function of modifying an image,
An image data acquisition function for acquiring image data;
A correction function for performing correction on the image data, the correction amount of which varies according to the distance from the reference position in the image;
The image data after the correction, was revealed real and noise adding function for adding a predetermined noise,
The correction function has a gradation value of a predetermined color component in the image data as a correction target, and is a value obtained by subtracting the maximum value of noise added by the noise addition function from the upper limit value of the gradation value range of the predetermined color component. An image processing program for performing the correction with the maximum value on the image data .
JP2004350848A 2004-12-03 2004-12-03 Image processing apparatus, image processing method, and image processing program Expired - Fee Related JP4375223B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2004350848A JP4375223B2 (en) 2004-12-03 2004-12-03 Image processing apparatus, image processing method, and image processing program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2004350848A JP4375223B2 (en) 2004-12-03 2004-12-03 Image processing apparatus, image processing method, and image processing program

Publications (2)

Publication Number Publication Date
JP2006165730A JP2006165730A (en) 2006-06-22
JP4375223B2 true JP4375223B2 (en) 2009-12-02

Family

ID=36667278

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2004350848A Expired - Fee Related JP4375223B2 (en) 2004-12-03 2004-12-03 Image processing apparatus, image processing method, and image processing program

Country Status (1)

Country Link
JP (1) JP4375223B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007329620A (en) * 2006-06-07 2007-12-20 Olympus Corp Imaging device and video signal processing program

Also Published As

Publication number Publication date
JP2006165730A (en) 2006-06-22

Similar Documents

Publication Publication Date Title
KR101248858B1 (en) Image processing apparatus and image processing method
JP4725057B2 (en) Generation of image quality adjustment information and image quality adjustment using image quality adjustment information
US7885479B2 (en) Image processing device that quickly displays retinex-processed preview image
JP7417674B2 (en) Image processing device, image processing method, and program
JP4262151B2 (en) Image processing method, image processing apparatus, computer program, and storage medium
JP6417851B2 (en) Image processing apparatus and computer program
JP2007013551A (en) Image processing apparatus and image processing method
JP4196212B2 (en) Image processing apparatus, image processing method, and image processing program
US20080298723A1 (en) Image processing device
US7920752B2 (en) Image processing device that quickly performs retinex process
JP6271874B2 (en) Image processing apparatus and image processing method
US20140368885A1 (en) Image processing apparatus and image processing method
JP6736299B2 (en) Printing device, printing method, and program
JP4375223B2 (en) Image processing apparatus, image processing method, and image processing program
JP4431887B2 (en) Image processing apparatus, image processing method, image processing program, print control apparatus, print control method, and print control program
JP4359730B2 (en) Monotone conversion apparatus, monotone conversion method, and medium recording monotone conversion program
JP2008227959A (en) Image processing device, image processing method and image processing system
JP4455261B2 (en) Image processing method, image processing apparatus, and image forming system
JP2006163557A (en) Apparatus, method and program for image processing, and apparatus, method and program for print control
JP2009081631A (en) Image processing apparatus, method and program
JP5067277B2 (en) Image processing apparatus, image processing method, image processing program, copying apparatus, copying method, and copying program
JP6418055B2 (en) Image processing apparatus and computer program
JP2021197717A (en) Image processing device and computer program
JP2023063871A (en) Image forming apparatus and method for controlling the same
JP5632937B2 (en) Image processing apparatus and method, and computer program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20071112

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20090422

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20090615

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

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

R150 Certificate of patent or registration of utility model

Ref document number: 4375223

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

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20130918

Year of fee payment: 4

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

LAPS Cancellation because of no payment of annual fees