JP2005275901A - Image processing method for correcting unnecessary area of image, program, and image processor for performing the method - Google Patents

Image processing method for correcting unnecessary area of image, program, and image processor for performing the method Download PDF

Info

Publication number
JP2005275901A
JP2005275901A JP2004089382A JP2004089382A JP2005275901A JP 2005275901 A JP2005275901 A JP 2005275901A JP 2004089382 A JP2004089382 A JP 2004089382A JP 2004089382 A JP2004089382 A JP 2004089382A JP 2005275901 A JP2005275901 A JP 2005275901A
Authority
JP
Japan
Prior art keywords
pixel
value
unnecessary area
correction value
unnecessary
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2004089382A
Other languages
Japanese (ja)
Other versions
JP4433285B2 (en
Inventor
Juichi Kuramoto
寿一 倉本
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Noritsu Koki Co Ltd
Original Assignee
Noritsu Koki Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Noritsu Koki Co Ltd filed Critical Noritsu Koki Co Ltd
Priority to JP2004089382A priority Critical patent/JP4433285B2/en
Publication of JP2005275901A publication Critical patent/JP2005275901A/en
Application granted granted Critical
Publication of JP4433285B2 publication Critical patent/JP4433285B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Processing Or Creating Images (AREA)
  • Image Processing (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide image processing technique for suppressing unnaturalness in pixel copying. <P>SOLUTION: An unnecessary area is selected from an inputted image, so as to set a plurality of direction lines which are radially extended from the unnecessary area with successively set notice pixels as a center. A temporary correction value for the notice pixels is calculated with the use of the pixel values of reference pixels which are positioned at both the sides of the notice pixels along the respective direction lines. A weight coefficient for each direction line is calculated with the use of the pixel value of the reference pixel which is set along each direction line. The weighting average value of the temporary correction value of the notice pixel is calculated as the final correction value of the notice pixel through the use of the temporary correction value obtained at each direction line and the weight coefficient. Thus, the unnecessary area is corrected through the use of the final correction value. <P>COPYRIGHT: (C)2006,JPO&NCIPI

Description

本発明は、画像の不要領域を構成する不要画素を不要領域外に隣接する参照画素によって置き換えることで不要領域を修正するための画像処理技術に関する。   The present invention relates to an image processing technique for correcting an unnecessary area by replacing unnecessary pixels constituting an unnecessary area of an image with reference pixels adjacent to the outside of the unnecessary area.

写真撮影された画像には、風景画像における電柱や電線、人物画像におけるシミやほこり、場合によってはしわやほくろ、といった不要領域が含まれていることが少なくない。これらの不要領域を構成する不要画素を周辺(不要領域外)の画素(これは参照画素と呼ばれる)で置き換える、いわゆるピクセルコピー処理アルゴリズムは、フォトレタッチソフトの重要なツールとして実装されており、オペレータはマウスを駆使して、マニュアルで所定の画素単位の置き換える作業を行う。しかしながら、マニュアルでのピクセルコピーでは、複数の不要領域が存在しているケースや、不要領域が広範囲に及ぶケースでは、一度置き換えた画素を参照画素としてさらに別の不要画素に置き換えるといったことが行われがちで、これが頻繁に生じると、修正領域が不自然な画像となってしまう。   A photographed image often includes unnecessary areas such as utility poles and electric wires in landscape images, spots and dust in human images, and in some cases wrinkles and moles. A so-called pixel copy processing algorithm that replaces unnecessary pixels constituting these unnecessary areas with peripheral (outside unnecessary areas) pixels (this is called a reference pixel) is implemented as an important tool of photo retouching software. Use the mouse to manually replace the specified pixel unit. However, in the case of manual pixel copying, in the case where there are a plurality of unnecessary areas, or in the case where the unnecessary area is wide-ranging, a pixel that has been replaced once is replaced with another unnecessary pixel as a reference pixel. If this happens frequently, the correction area will be an unnatural image.

また、最も簡単な自動ピクセルコピーでは、修正するべき不要画素と修正元となる参照画素との位置関係を一定に維持していることから、参照画素となる不要領域周辺の画像模様が修正された画素領域に写像されて、やはり修正画像が不自然になるため、所定のコピー元画素候補領域の画素データが順次コピー元画素領域として選択されてコピーされるとともに、以降のコピー先位置が変化する毎に同様の隣接順序でコピー元画素候補領域の画素データが順次コピーされることにより、つまりコピー元として与えられた複数の画素領域の位置をコピー先位置の変化に関係なく固定させることにより、コピー元画素領域の周辺の画像がそのままコピー先画像に移されることを防止する自動ピクセルコピー技術が知られている(例えば、特許文献1参照。)。しかし、この技術では、コピー元画素領域の周辺の画像がそのままコピー先画像に移されることは防止されるとしても、コピー元画素領域の選択によっては修正画像が不自然になるだけではなく、修正画像がぼけた感じとなり、特に周辺領域との輪郭の連続性はほとんど失ってしまう。
特開2000−67211号公報(段落番号0003、0031、0032、図4)
In the simplest automatic pixel copy, since the positional relationship between the unnecessary pixel to be corrected and the reference pixel to be corrected is maintained constant, the image pattern around the unnecessary area that becomes the reference pixel is corrected. Since the modified image becomes unnatural after mapping to the pixel area, the pixel data of the predetermined copy source pixel candidate area is sequentially selected and copied as the copy source pixel area, and the subsequent copy destination position changes. By sequentially copying the pixel data of the copy source pixel candidate area in the same adjacent order every time, that is, by fixing the position of the plurality of pixel areas given as the copy source regardless of the change of the copy destination position, There is known an automatic pixel copy technique for preventing an image around a copy source pixel area from being directly transferred to a copy destination image (for example, Patent Documents). Reference.). However, with this technique, even if the image around the copy source pixel area is prevented from being transferred to the copy destination image as it is, not only the corrected image becomes unnatural depending on the selection of the copy source pixel area, but also the correction The image is blurred, and the continuity of the contour with the surrounding area is almost lost.
Japanese Unexamined Patent Publication No. 2000-67211 (paragraph numbers 0003, 0031, 0032, FIG. 4)

上記実状に鑑み、本発明の課題は、画像の不要領域を構成する不要画素を不要領域外に隣接する参照画素によって置き換えることで不要領域を修正する際、一度置き換えた画素を参照画素としてさらに別の不要画素に置き換えるといったことや、参照画素を自由に選択することで修正領域が周辺領域との輪郭の連続性が完全に失ってしまうといったことが防止される画像処理技術を提供することである。   In view of the above situation, the problem of the present invention is that when an unnecessary area is corrected by replacing an unnecessary pixel constituting an unnecessary area of an image with a reference pixel adjacent to the outside of the unnecessary area, the replaced pixel is further classified as a reference pixel. It is to provide an image processing technique that can prevent the continuity of the contour of the correction area from being completely lost with the surrounding area by freely selecting the reference pixel and freely selecting the reference pixel. .

画像の不要領域を構成する不要画素を前記不要領域外に隣接する参照画素によって置き換えることで前記不要領域を修正するための画像処理方法において、上記目的を達成するため、本発明による方法では、入力された画像から前記不要領域を選択するステップと、前記選択された不要領域から順次注目画素を設定するステップと、前記注目画素を中心として放射状に延びる複数の方向線を設定するステップと、前記各方向線に沿って前記注目画素を挟んで両側に位置する前記参照画素を探索するステップと、前記探索された参照画素の画素値を用いて前記注目画素のための仮修正値を演算するステップと、前記方向線毎に沿って設定された参照画素の画素値を用いて各方向線のための重み係数を演算するステップと、前記探索ライン毎に求められた前記仮修正値と前記重み係数とを用いて前記注目画素の仮修正値の重み付き平均値を前記注目画素の最終修正値として演算するステップと、前記最終修正値を用いて前記不要領域を修正するステップとからなる。   In order to achieve the above object in an image processing method for correcting an unnecessary area by replacing unnecessary pixels constituting an unnecessary area of an image with a reference pixel adjacent to the outside of the unnecessary area, in the method according to the present invention, an input is provided. Selecting the unnecessary area from the selected image; setting a target pixel sequentially from the selected unnecessary area; setting a plurality of direction lines extending radially from the target pixel; Searching for the reference pixels located on both sides of the target pixel along a direction line, and calculating a temporary correction value for the target pixel using a pixel value of the searched reference pixel; Calculating a weighting factor for each direction line using pixel values of reference pixels set along each direction line; and obtaining for each search line. A step of calculating a weighted average value of the temporary correction value of the target pixel as the final correction value of the target pixel using the temporary correction value and the weighting factor, and the unnecessary area using the final correction value. And the step of correcting.

この方法では、画像中の不要領域を選択さえすれば、後は自動的に、順次設定された各不要画素について複数方向の方向線に沿って存在する参照画素の画素値に基づく修正値としての仮修正値が求められ、更には、各方向線に沿って存在する参照画素の画素値に基づいて各方向線の重み係数を求め、それを用いた重み付き平均値を演算して不要画素を修正するので、不要画素の周囲の各方向線に存在する画像の輪郭に応じた最終修正値を求めることが可能となり、画像の輪郭を正確に反映した適切な修正処理を行うことが可能となる。従って、修正領域がその周辺領域との輪郭の連続性が完全に失ってしまうといったことが抑制される。   In this method, as long as an unnecessary area in the image is selected, the correction value based on the pixel value of the reference pixel existing along the direction line in a plurality of directions is automatically automatically set for each unnecessary pixel after that. A temporary correction value is obtained, and further, a weighting factor for each direction line is obtained based on the pixel values of the reference pixels existing along each direction line, and a weighted average value using the weight coefficient is used to calculate unnecessary pixels. Since the correction is performed, it is possible to obtain a final correction value corresponding to the contour of the image existing in each direction line around the unnecessary pixel, and it is possible to perform an appropriate correction process that accurately reflects the contour of the image. . Therefore, it is suppressed that the continuity of the contour between the correction area and the surrounding area is completely lost.

また、前記不要領域が複数回にわたって選択される場合には選択された各不要領域が統合されて1つの不要領域に設定され、この1つに統合された不要領域から順次注目画素を設定し、上述した不要画素修正処理を施すことにより、一度置き換えた画素を参照画素としてさらに別の不要画素に置き換えるといったことは防止できる。   In addition, when the unnecessary area is selected a plurality of times, the selected unnecessary areas are integrated and set as one unnecessary area, and the target pixel is sequentially set from the unnecessary area integrated into one, By performing the unnecessary pixel correction process described above, it is possible to prevent a pixel that has been replaced once from being replaced with another unnecessary pixel as a reference pixel.

また、参照画素を探索する際の各方向線に沿った探索間隔を修正されるべき不要領域の大きさ(画素数)によって調節することにより、不要領域の大きさに応じて輪郭の存在する方向の探索のための演算処理の演算量を抑えることが可能であり、処理速度を高めることができる。   In addition, by adjusting the search interval along each direction line when searching for the reference pixel according to the size (number of pixels) of the unnecessary region to be corrected, the direction in which the contour exists according to the size of the unnecessary region It is possible to reduce the amount of calculation processing for the search, and the processing speed can be increased.

本発明の好適な実施形態として、前記重み係数を、各方向線に沿って前記注目画素を挟んで一方側で検索された参照画素の画素値を用いた値と他方側で検索された参照画素の画素値を用いた値とのいずれか大きい側の値を分母に、小さい側の値を分子に用いた比率とすることが提案される。これによれば、方向線に沿って注目画素を挟んだ両側にそれぞれ位置する1又は2以上の参照画素の画素値が近いほど重み係数を重くすることができるので、適切な補間方向にある方向線についての重み係数を重くして注目画素(不要画素)の修正を行うことができる。   As a preferred embodiment of the present invention, the weighting factor is a value using a pixel value of a reference pixel searched on one side across the target pixel along each direction line and a reference pixel searched on the other side. It is proposed to use the larger value of the pixel value of the pixel value as the denominator and the smaller value as the numerator. According to this, since the weight coefficient can be increased as the pixel value of one or more reference pixels located on both sides of the target pixel along the direction line is closer, the direction in the appropriate interpolation direction The pixel of interest (unnecessary pixel) can be corrected by increasing the weighting coefficient for the line.

本発明の好適な実施形態として、前記仮修正値は、前記方向線に沿って前記注目画素を挟んだ一方側に検索された参照画素の画素値を用いた値と他方側に検索された参照画素の画素値を用いた値との間の線形補間により求められることが提案される。これによれば、各方向線に沿って対象画素を挟んだ両側にそれぞれ位置する1又は2以上の参照画素の画素値と、それらの両側に位置する参照画素間の距離とに基づいて、注目画素(不要画素)の適切な仮修正値を演算することができる。   As a preferred embodiment of the present invention, the temporary correction value is a value using a pixel value of a reference pixel searched on one side across the target pixel along the direction line and a reference searched on the other side. It is proposed to be obtained by linear interpolation between values using pixel values of pixels. According to this, attention is paid based on the pixel values of one or more reference pixels located on both sides of the target pixel along each direction line and the distance between the reference pixels located on both sides thereof. Appropriate provisional correction values for pixels (unnecessary pixels) can be calculated.

本発明では、上述した不要領域を修正するための画像処理方法をコンピュータに実行させるプログラムやそのプログラムを記録した媒体も権利の対象とするものである。   In the present invention, a program for causing a computer to execute the above-described image processing method for correcting an unnecessary area and a medium on which the program is recorded are also subject to rights.

本発明では、さらに、上述した不要領域を修正するための画像処理方法を実施する画像処理装置も権利の対象としており、そのような画像処理装置は、入力された画像から不要領域を選択する不要領域選択部と、前記選択された不要領域から順次注目画素を設定する注目画素設定部と、前記注目画素を中心として放射状に延びる複数の方向線を設定する演算方向線設定部と、前記各方向線に沿って前記注目画素を挟んで両側に位置する前記参照画素を探索する参照画素探索部と、前記探索された参照画素の画素値を用いて前記注目画素のための仮修正値を演算する仮修正値演算部と、前記方向線毎に沿って設定された参照画素の画素値を用いて各方向線のための重み係数を演算する重み係数演算部と、前記探索ライン毎に求められた前記仮修正値と前記重み係数とを用いて前記注目画素の仮修正値の重み付き平均値を前記注目画素の最終修正値として演算する最終修正値演算部と、前記最終修正値を用いて前記不要領域を修正する不要領域修正部とから構成されている。当然ながら、このような画像処理装置も上述した画像処理方法で述べたすべての実施態様を備えるとともに、それらの作用効果を得ることができる。
本発明によるその他の特徴及び利点は、以下図面を用いた実施形態の説明により明らかになるだろう。
In the present invention, an image processing apparatus that performs the above-described image processing method for correcting an unnecessary area is also subject to the right, and such an image processing apparatus does not need to select an unnecessary area from an input image. A region selection unit; a target pixel setting unit that sequentially sets a target pixel from the selected unnecessary region; a calculation direction line setting unit that sets a plurality of direction lines extending radially from the target pixel; A reference pixel search unit that searches for the reference pixels located on both sides of the target pixel along the line, and calculates a temporary correction value for the target pixel using the pixel value of the searched reference pixel Temporary correction value calculation unit, weighting factor calculation unit for calculating a weighting factor for each direction line using pixel values of reference pixels set along each direction line, and each search line Temporary repair A final correction value calculation unit that calculates a weighted average value of the provisional correction values of the target pixel as a final correction value of the target pixel using the value and the weighting factor; and the unnecessary area using the final correction value. And an unnecessary area correction unit to be corrected. Naturally, such an image processing apparatus also includes all the embodiments described in the above-described image processing method, and can obtain the effects thereof.
Other features and advantages of the present invention will become apparent from the following description of embodiments using the drawings.

本発明による、不要領域を修正する画像処理機能を採用した画像処理ユニットを搭載した写真プリント装置を説明する。図1はその写真プリント装置を示す外観図であり、この写真プリント装置は、印画紙Pに対して露光処理と現像処理とを行う写真プリンタとしてのプリントステーション1Bと、現像済み写真フィルム2aやデジタルカメラ用メモリカード2bなどの画像入力メディアから取り込んだ撮影画像を処理してプリントステーション1Bで使用されるプリントデータの生成・転送などを行う操作ステーション1Aとから構成されている。   A photographic printing apparatus equipped with an image processing unit employing an image processing function for correcting an unnecessary area according to the present invention will be described. FIG. 1 is an external view showing the photographic printing apparatus. This photographic printing apparatus includes a printing station 1B as a photographic printer that performs exposure processing and development processing on photographic paper P, a developed photographic film 2a, and a digital camera. It comprises an operation station 1A that processes a captured image taken from an image input medium such as a camera memory card 2b and generates / transfers print data used in the print station 1B.

この写真プリント装置はデジタルミニラボとも称せられるものであり、図2からよく理解できるように、プリントステーション1Bは2つの印画紙マガジン11に納めたロール状の印画紙Pを引き出してシートカッター12でプリントサイズに切断すると共に、このように切断された印画紙Pに対し、バックプリント部13で色補正情報やコマ番号などのプリント処理情報を印画紙Pの裏面に印字するとともに、プリント露光部14で印画紙Pの表面に撮影画像の露光を行い、この露光後の印画紙Pを複数の現像処理槽を有した処理槽ユニット15に送り込んで現像処理する。乾燥の後に装置上部の横送りコンベア16からソータ17に送られた印画紙P、つまり写真プリントPは、このソータ17の複数のトレイにオーダ単位で仕分けられた状態で集積される(図1参照)。     This photo printing apparatus is also called a digital minilab. As can be understood from FIG. 2, the printing station 1B pulls out the roll-shaped printing paper P stored in the two printing paper magazines 11 and prints it with the sheet cutter 12. The back print unit 13 prints print processing information such as color correction information and frame number on the back side of the photographic paper P, and the print exposure unit 14 cuts the print paper P into the size. A photographed image is exposed on the surface of the photographic paper P, and the exposed photographic paper P is sent to a processing tank unit 15 having a plurality of development processing tanks for development processing. After drying, the photographic paper P, that is, the photographic prints P, sent to the sorter 17 from the transverse feed conveyor 16 at the upper part of the apparatus is collected in a plurality of trays of the sorter 17 in a state of being sorted in order units (see FIG. 1). ).

上述した印画紙Pに対する各種処理に合わせた搬送速度で印画紙Pを搬送するために印画紙搬送機構18が敷設されている。印画紙搬送機構18は、印画紙搬送方向に関してプリント露光部14の前後に配置されたチャッカー式印画紙搬送ユニット18aを含む複数の挟持搬送ローラ対から構成されている。   A photographic paper transport mechanism 18 is laid to transport the photographic paper P at a transport speed in accordance with various processes for the photographic paper P described above. The photographic paper transport mechanism 18 is composed of a plurality of nipping and transporting roller pairs including a chucker type photographic paper transport unit 18a disposed before and after the print exposure unit 14 in the photographic paper transport direction.

プリント露光部14には、副走査方向に搬送される印画紙Pに対して、主走査方向に沿って操作ステーション1Aからのプリントデータに基づいてR(赤)、G(緑)、B(青)の3原色のレーザ光線の照射を行うライン露光ヘッドが設けられている。処理槽ユニット15は、発色現像処理液を貯留する発色現像槽15aと、漂白定着処理液を貯留する漂白定着槽15bと、安定処理液を貯留する安定槽15cを備えている。   The print exposure unit 14 applies R (red), G (green), and B (blue) to the printing paper P conveyed in the sub-scanning direction based on print data from the operation station 1A along the main scanning direction. A line exposure head for irradiating laser beams of the three primary colors (1) is provided. The processing tank unit 15 includes a color developing tank 15a for storing a color developing processing liquid, a bleach-fixing tank 15b for storing a bleach-fixing processing liquid, and a stabilizing tank 15c for storing a stable processing liquid.

前記操作ステーション1Aのデスク状コンソールの上部位置には、写真フィルム2aの撮影画像コマから撮影画像データ(以下単に画像データと略称する)を2000dpiを超える解像度でもって取得することができるフィルムスキャナ20が配置されており、デジタルカメラ等に装着される撮影画像記録媒体2bとして用いられている各種半導体メモリやCD−Rなどから画像データを取得するメディアリーダ21は、この写真プリント装置のコントローラ3として機能する汎用パソコンに組み込まれている。この汎用パソコンには、さらに各種情報を表示するモニタ23、各種設定や調整を行う際に用いる操作入力部として利用される操作入力デバイスとしてのキーボード24やマウス25も接続されている。   At the upper position of the desk-like console of the operation station 1A, there is a film scanner 20 capable of acquiring photographed image data (hereinafter simply referred to as image data) from a photographed image frame of the photographic film 2a with a resolution exceeding 2000 dpi. A media reader 21 that is arranged and obtains image data from various semiconductor memories, CD-Rs, etc., used as a photographic image recording medium 2b mounted on a digital camera or the like functions as the controller 3 of this photographic printing apparatus. Built into a general-purpose personal computer. The general-purpose personal computer is also connected with a monitor 23 for displaying various information, and a keyboard 24 and a mouse 25 as operation input devices used as an operation input unit used for various settings and adjustments.

この写真プリント装置のコントローラ3は、CPUを中核部材として、写真プリント装置の種々の動作を行うための機能部をハードウエア又はソフトウエアあるいはその両方で構築しているが、図3に示されているように、本発明に特に関係する機能部としては、フィルムスキャナ20やメディアリーダ21によって読み取られた画像データを取り込んで次の処理のために必要な前処理を行う画像入力部31と、各種ウインドウや各種操作ボタンなどを含むグラフィック操作画面の作成やそのようなグラフィック操作画面を通じてのユーザ操作入力(キーボード24やマウス25などによる)から制御コマンドを生成するグラフィックユーザインターフェース(以下GUIと略称する)を構築するGUI部33と、GUI部33から送られてきた制御コマンドや直接キーボード24等から入力された操作命令に基づいて所望のプリントデータを生成するために画像入力部31からメモリ30に転送された画像データに対する画像処理等を行うプリント管理部32と、色補正等のプレジャッジプリント作業時にプリントソース画像や予想仕上がりプリント画像としてのシミュレート画像さらにはGUI部33から送られてきたグラフィックデータをモニタ23に表示させるためのビデオ信号を生成するビデオ制御部35と、画像処理が完了した処理済み画像データに基づいてプリントステーション1Bに装備されているプリント露光部14に適したプリントデータを生成するプリントデータ生成部36と、顧客の要望に応じて生の画像データや画像処理が完了した処理済み画像データなどをCD−Rに書き込むための形式にフォーマットするフォーマッタ部37などが挙げられる。   The controller 3 of this photographic printing apparatus uses a CPU as a core member and constructs a functional unit for performing various operations of the photographic printing apparatus by hardware and / or software, as shown in FIG. As described above, the functional unit particularly related to the present invention includes an image input unit 31 that takes in image data read by the film scanner 20 and the media reader 21 and performs preprocessing necessary for the next processing, Graphic user interface (hereinafter abbreviated as GUI) that generates a control command from creation of a graphic operation screen including a window, various operation buttons, and the like, and user operation input through such a graphic operation screen (using the keyboard 24, mouse 25, etc.) Sent from the GUI unit 33 and the GUI unit 33 A print management unit 32 that performs image processing on the image data transferred from the image input unit 31 to the memory 30 in order to generate desired print data based on a control command or an operation command directly input from the keyboard 24 or the like. Video control for generating a video signal for causing the monitor 23 to display graphic data sent from the GUI source 33, a simulated image as a print source image, an expected finished print image, and a pre-judge print operation such as color correction A print data generation unit 36 for generating print data suitable for the print exposure unit 14 installed in the print station 1B based on the processed image data for which image processing has been completed, Image data or processed image data that has been processed Etc. etc. formatter 37 that formats the format for writing to CD-R can be mentioned a.

画像入力部31は、撮影画像記録媒体がフィルム2aの場合プレスキャンモードと本スキャンモードとのスキャンデータを別々にメモリ30に送り込み、それぞれの目的に合わせた前処理を行う。また、撮影画像記録媒体がメモリカード2bの場合取り込んだ画像データにサムネイル画像データ(低解像度データ)が含まれている場合はモニタ23での一覧表示などの目的で使用するため撮影画像の本データ(高解像度データ)とは別にメモリ30に送り込むが、もしサムネイル画像データが含まれていない場合は本データから縮小画像を作り出してサムネイル画像データとしてメモリ30に送り込む。   When the photographic image recording medium is the film 2a, the image input unit 31 separately sends the scan data for the pre-scan mode and the main scan mode to the memory 30, and performs preprocessing according to each purpose. Further, when the captured image recording medium is the memory card 2b, when the captured image data includes thumbnail image data (low resolution data), the actual data of the captured image is used for the purpose of displaying a list on the monitor 23. Separately from (high resolution data), it is sent to the memory 30, but if thumbnail image data is not included, a reduced image is created from this data and sent to the memory 30 as thumbnail image data.

プリント管理部32は、プリントサイズやプリント枚数などを管理するプリント注文処理ユニット60、メモリ30に展開された画像データに対して各種画像処理を施す画像処理ユニット70を備えている。   The print management unit 32 includes a print order processing unit 60 that manages the print size, the number of prints, and the like, and an image processing unit 70 that performs various image processes on the image data developed in the memory 30.

前述した画像処理ユニット70には本発明による技術を採用した不要領域修正処理手段80及び濃度補正や解像度変換などのフォトレタッチ機能を実現する手段が含まれている。この不要領域修正処理手段80は、実質的にはプログラムとして画像処理ユニット70に実装されているが、図4に示すように、メモリ30に展開されるとともにモニタ23に表示されている入力撮影画像を見ながらの風景画像における電柱や電線あるいは人物画像におけるほくろやしわなどを不要領域としてキーボード24やマウス25を用いて選択された領域の位置情報から不要領域と参照領域(正常領域)とを区画規定した処理用マップを作成する不要領域選択部81と、前記選択された不要領域から順次注目画素を設定する注目画素設定部82と、設定された注目画素を中心として放射状に延びる複数の方向線を設定する演算方向線設定部83と、設定された各方向線に沿って注目画素を挟んで両側に位置する前記参照画素を探索する参照画素探索部84と、探索された参照画素の画素値を用いて注目画素のための仮修正値を演算する仮修正値演算部85と、各方向線に沿って設定された参照画素の画素値を用いて各方向線のための重み係数を演算する重み係数演算部86と、方向線毎に求められた仮修正値と重み係数とを用いて注目画素の仮修正値の重み付き平均値を前記注目画素の最終修正値として演算する最終修正値演算部87と、全ての不要画素のために求められた最終修正値を用いて不要領域を修正する不要領域修正部88とを備えている。さらに、この実施形態では、修正されるべき不要領域の大きさ(画素数)に応じて参照画素を探索する際の探索画素間隔を調整する探索間隔調節部89aと、修正されるべき不要領域の大きさ(画素数)に応じて注目画素に設定される各方向線の角度間隔(つまり設定される方向線の数)を調整する探索角度調節部89bも備えられている。   The above-described image processing unit 70 includes unnecessary area correction processing means 80 adopting the technique according to the present invention and means for realizing a photo retouch function such as density correction and resolution conversion. The unnecessary area correction processing means 80 is substantially implemented in the image processing unit 70 as a program. However, as shown in FIG. 4, the input photographed image displayed in the monitor 23 while being expanded in the memory 30. An unnecessary area and a reference area (normal area) are partitioned from the position information of the area selected using the keyboard 24 and the mouse 25, with the utility poles and electric wires in the landscape image while looking at the eyes, and moles and wrinkles in the person image as unnecessary areas. An unnecessary area selection unit 81 that creates a prescribed processing map, a target pixel setting unit 82 that sequentially sets a target pixel from the selected unnecessary area, and a plurality of direction lines that extend radially around the set target pixel A calculation direction line setting unit 83 for setting the reference pixel and searching for the reference pixels located on both sides of the target pixel along each set direction line A reference pixel search unit 84, a temporary correction value calculation unit 85 that calculates a temporary correction value for the pixel of interest using the pixel value of the searched reference pixel, and a pixel of the reference pixel set along each direction line A weighting coefficient calculation unit 86 for calculating a weighting coefficient for each direction line using the value, and a weighted average value of the temporary correction value of the target pixel using the temporary correction value and the weighting coefficient obtained for each direction line As a final correction value for the target pixel, and an unnecessary area correction unit 88 for correcting the unnecessary area using the final correction values obtained for all unnecessary pixels. . Furthermore, in this embodiment, the search interval adjusting unit 89a that adjusts the search pixel interval when searching for the reference pixel according to the size (number of pixels) of the unnecessary region to be corrected, and the unnecessary region to be corrected There is also provided a search angle adjustment unit 89b that adjusts the angle interval (that is, the number of set direction lines) of each direction line set for the target pixel in accordance with the size (number of pixels).

このように構成された不要領域修正処理手段80による不要領域修正のための画像処理手順を以下に説明する。この画像処理の流れは、図5に示されているが、まず、フィルムスキャナ20やメディアリーダ21を通じて撮影画像、詳しくは撮影画像のデジタル画像データが取り込まれメモリ30に展開される。一般にフィルム1本分やメモリカード1枚分の撮像コマが画像チェックのために、プレジャッジ画面と呼ばれている操作入力画面40の撮影画像表示枠41に順次表示される。図6では、6コマ表示画面が選択されている。各撮影画像表示枠41の下側には色濃度補正設定エリア42とプリント枚数設定エリア43が配置されている。色濃度補正設定エリア42には「イエロー」、「マゼンタ」、「シアン」、「濃度」の設定枠が設けられており、補正量の「N」はニュートラルを表し補正なしを意味している。プリント枚数設定エリア43にはプリント枚数入力枠が設けられており、「パス」はプリントを行わないことを意味している。プレジャッジ画面40の下方にはプリント条件表示欄44が配置されており、この写真プリント出力に適用されたプリントチャンネル名称の表示や、このプリントチャンネルに含まれているプリントサイズやインデックスプリントの要否やメディア出力の要否などが示されている。プリントサイズは仕上がり写真プリントPの大きさを示すものであり、この実施形態では印画紙幅と送り長さでプリントサイズが決定される。このプレジャッジ画面40において各撮影コマ画像に対する各種補正設定やプリント枚数設定が完了すると、対応する撮影画像データはプリントデータ生成部36に送られ、プリントデータに変換される。   An image processing procedure for unnecessary area correction by the unnecessary area correction processing unit 80 configured as described above will be described below. The flow of this image processing is shown in FIG. 5. First, a photographed image, specifically, digital image data of the photographed image is captured through the film scanner 20 and the media reader 21 and developed in the memory 30. In general, the image frames for one film and one memory card are sequentially displayed in a captured image display frame 41 of an operation input screen 40 called a pre-judge screen for image check. In FIG. 6, a six-frame display screen is selected. A color density correction setting area 42 and a print number setting area 43 are arranged below each captured image display frame 41. The color density correction setting area 42 is provided with setting frames of “yellow”, “magenta”, “cyan”, and “density”, and the correction amount “N” represents neutral and means no correction. The print number setting area 43 is provided with a print number input frame, and “pass” means that printing is not performed. A print condition display field 44 is arranged below the pre-judge screen 40. The print channel name applied to the photo print output, the print size included in the print channel, the necessity of index print, The necessity of media output is shown. The print size indicates the size of the finished photo print P. In this embodiment, the print size is determined by the photographic paper width and the feed length. When various correction settings and print number settings for each photographed frame image are completed on the pre-judge screen 40, the corresponding photographed image data is sent to the print data generation unit 36 and converted into print data.

モニタ23に表示されている多数コマ中から不要領域修正が必要なコマを選択してダブルクリックすることで、図7に示すような補正メイン画面50が表示される。補正メイン画面50の中央には拡大画像表示エリア51が配置されており、右端には、撮影コマ画像の内で拡大画像表示エリア51で表示されている部分を枠線で示す表示確認エリア52及び不要領域修正ボタン53などの各種補正ボタンが配置されている。表示確認エリア52の枠線をマウス25を用いて移動させることにより拡大画像表示エリア51に表示される部分を変更することができ、表示サイズエリア52aの拡大率を変更することにより拡大画像表示エリア51に表示される画像を拡大・縮小することができる。この補正メイン画面50においてマウス25を用いながら不要領域を選択する。その際、複数の領域に分けて選択することも可能である。なお、この領域選択は、オペレータが全ての濃度不調領域の輪郭線をマウス等でドラッグする完全手動方式や、オペレータが濃度不調領域内の1点を指示するだけであとは所定のアルゴリズムで濃度不調領域を選択する半自動方式や、全てを自動的に行う完全自動方式のいずれで行われても良い(#01)。   A correction main screen 50 as shown in FIG. 7 is displayed by selecting and double-clicking a frame that requires unnecessary area correction from among many frames displayed on the monitor 23. An enlarged image display area 51 is arranged in the center of the corrected main screen 50, and a display confirmation area 52 that shows a portion of the captured frame image that is displayed in the enlarged image display area 51 with a frame line at the right end. Various correction buttons such as an unnecessary area correction button 53 are arranged. The portion displayed in the enlarged image display area 51 can be changed by moving the frame line of the display confirmation area 52 using the mouse 25, and the enlarged image display area can be changed by changing the enlargement ratio of the display size area 52a. The image displayed on 51 can be enlarged or reduced. An unnecessary area is selected on the correction main screen 50 using the mouse 25. In that case, it is also possible to select a plurality of areas. Note that this area selection can be performed by a completely manual method in which the operator drags the outlines of all the density-impaired areas with a mouse or the like, or when the operator only points to one point in the density-impaired area by a predetermined algorithm. Either a semi-automatic method for selecting an area or a fully automatic method for automatically performing all of the areas may be used (# 01).

モニタ画面上での不要領域の選択が終わると、選択された不要領域が複数あれば全て統合され単一の不要領域とされる。画面上のこの不要領域はそれ以外の参照領域とから、図8に示すような処理用マップが作成される(#02)。さらに、探索間隔調整部89aにおいて、不要領域に含まれる画素数に応じて、参照画素Pを探索する際の方向線Lに沿った探索間隔を決定し(#03)、探索角度調整部89bにおいて、不要領域に含まれる画素数に応じて、参照画素を探索する際の隣接する方向線L間の角度間隔を決定する(#04)。つまり、処理対象の不要領域に含まれる画素数に応じて、その画素数が多いほど探索間隔を大きくし、その画素数が少ないほど探索間隔を小さくするように決定すると好適である。例えば、画素数が少ないものは探索間隔を「0」とし、方向線Lに沿った全ての画素を対象として参照画素Pの検索を行い、画素数が中間のものは探索間隔を「1」とし、方向線Lに沿って1画素置きに参照画素Pの検索を行い、画素数が多いものは探索間隔を「2」とし、方向線Lに沿って2画素置きに参照画素Pの検索を行うことができる。また、処理対象の不要領域の画素数と探索間隔とを一定の関係式により表し、修正処理の度に探索間隔を演算して決定することも可能である。また、参照画素を探索する際の隣接する方向線L間の角度間隔も、処理対象の不要領域に含まれる画素数に応じて、その画素数が多いほど角度間隔を小さくし、その画素数が少ないほど角度間隔を大きくするように決定すると好適である。例えば、上述した探索間隔の場合と同様に、画素数が多いものは隣接する方向線L間の角度間隔を「10°」とし、画素数が中間のものは隣接する方向線L間の角度間隔を「20°」とし、画素数が少ないものは隣接する方向線L間の角度間隔を「30°」とすることができる。また、このようなテーブルを用いず、処理対象の不要領域の画素数と方向線L間の角度間隔とを一定の関係式により表し、修正処理の度に角度間隔を演算して決定することも可能である。   When the selection of the unnecessary area on the monitor screen is completed, all the selected unnecessary areas are integrated to form a single unnecessary area. A processing map as shown in FIG. 8 is created from this unnecessary area on the screen and other reference areas (# 02). Further, the search interval adjustment unit 89a determines a search interval along the direction line L when searching for the reference pixel P according to the number of pixels included in the unnecessary region (# 03), and the search angle adjustment unit 89b Then, according to the number of pixels included in the unnecessary area, the angular interval between the adjacent direction lines L when searching for the reference pixel is determined (# 04). In other words, according to the number of pixels included in the unnecessary area to be processed, it is preferable to determine that the search interval is increased as the number of pixels is increased and the search interval is decreased as the number of pixels is decreased. For example, when the number of pixels is small, the search interval is set to “0”, the reference pixel P is searched for all the pixels along the direction line L, and when the number of pixels is intermediate, the search interval is set to “1”. The reference pixel P is searched for every other pixel along the direction line L, the search interval is set to “2” for those having a large number of pixels, and the reference pixel P is searched every two pixels along the direction line L. be able to. It is also possible to express the number of pixels of the unnecessary area to be processed and the search interval by a fixed relational expression, and calculate and determine the search interval each time correction processing is performed. In addition, the angular interval between adjacent direction lines L when searching for a reference pixel is also reduced as the number of pixels increases according to the number of pixels included in the unnecessary area to be processed. It is preferable that the smaller the number, the larger the angular interval. For example, as in the case of the search interval described above, an angle interval between adjacent direction lines L is set to “10 °” when the number of pixels is large, and an angle interval between adjacent direction lines L when the number of pixels is intermediate. Can be set to “20 °” and the angle interval between adjacent direction lines L can be set to “30 °” when the number of pixels is small. Also, without using such a table, the number of pixels in the unnecessary area to be processed and the angle interval between the direction lines L can be expressed by a fixed relational expression, and the angle interval can be calculated and determined each time correction processing is performed. Is possible.

次に、注目画素設定部82において、不要領域選択部81において不要画素とみなされた画素の中から1つの注目画素O(図9において中央の間隔幅の大きな斜線で示された画素)を設定する(#05)。この注目画素Oとしては、処理用マップに不要画素として登録されている画素であって、未だ注目画素Oとして選択されていない画素の中から設定する。その際、未だ注目画素Oとして選択されていない不要画素の中から任意の画素を設定することが可能であるが、最終的には、不要領域に含まれる全ての不要画素が注目画素Oとして設定されるようにする。   Next, in the pixel-of-interest setting unit 82, one pixel of interest O (a pixel indicated by a diagonal line having a large central interval width in FIG. 9) is set from the pixels regarded as unnecessary pixels in the unnecessary region selection unit 81. (# 05). The target pixel O is set from pixels that are registered as unnecessary pixels in the processing map and have not yet been selected as the target pixel O. At this time, it is possible to set an arbitrary pixel from unnecessary pixels that have not yet been selected as the target pixel O, but eventually all unnecessary pixels included in the unnecessary area are set as the target pixel O. To be.

次に、演算方向線設定部83が注目画素Oを通る複数方向の方向線Lが設定する(#06)。
その後、参照画素探索部84において、設定された方向線Lに沿って注目画素Oを挟んだ両側にそれぞれ参照画素Pを探索する(#07)。図9に、注目画素Oを通る複数方向の方向線Lに沿って参照画素Pを探索する際の一例を示す。この図では、#03の処理において決定された探索間隔は「2」であり、#04の処理において決定された方向線L間の角度間隔は「15°」である場合を示している。ここで、方向線Lは、対象画素を中心とする放射状の複数方向のうち、注目画素Oを挟んで直線上に存在する反対向きの2方向が1のラインである。
Next, the calculation direction line setting unit 83 sets direction lines L in a plurality of directions passing through the target pixel O (# 06).
Thereafter, the reference pixel search unit 84 searches for the reference pixels P on both sides of the target pixel O along the set direction line L (# 07). FIG. 9 shows an example when searching for the reference pixel P along a plurality of direction lines L passing through the target pixel O. In this figure, the search interval determined in the process of # 03 is “2”, and the angle interval between the direction lines L determined in the process of # 04 is “15 °”. Here, the direction line L is a line in which two opposite directions existing on a straight line across the target pixel O among a plurality of radial directions centered on the target pixel are one.

方向線Lに沿って参照画素Pを探索する際において、隣接する方向線L間の角度間隔が90°又は45°以外の場合には、方向線Lがすべての画素の中央を通るとは限らないことから、その場合には、方向線Lが通過する位置に対して中心位置が最も近い画素を方向線L上の画素とみなす。そして、参照画素Pの検索に際しては、そのようにみなされた画素を含む方向線L上の画素を対象として上記所定の探索間隔で検索を行う。図9においては、探索間隔は「2」であるので、注目画素Oから方向線Lに沿って外側に向かってそれぞれ1画素置きに不要画素か参照画素かを判断し、その中で注目画素Oから最も近い位置にある参照画素が、その方向線Lに沿って注目画素Oを挟んだ両側にそれぞれ位置する参照画素Pとして探索される。なお、本実施形態においては、方向線Lに沿って注目画素Oを挟んだ両側にそれぞれ1個ずつの参照画素Pを探索し、それらの参照画素Pの値を用いて後の注目画素Oの補間値としての仮修正値Hや重み係数Wの演算を行う構成としているが、注目画素Oを挟んだ両側にそれぞれ2個以上ずつの参照画素Pを探索し、これら2個以上の参照画素Pの平均値等を用いて後の注目画素Oの仮修正値Hや重み係数Wの演算を行う構成とすることも可能である。また、参照画素Pの検索は上記のような方向線L上に限定されるものではなく、方向線Lの近傍に位置する参照画素Pをも含めて検索する構成とすることも可能である。   When searching for the reference pixel P along the direction line L, if the angular interval between adjacent direction lines L is other than 90 ° or 45 °, the direction line L may not pass through the center of all the pixels. In this case, the pixel having the closest center position to the position through which the direction line L passes is regarded as a pixel on the direction line L. When searching for the reference pixel P, the search is performed at the predetermined search interval for pixels on the direction line L including the pixels regarded as such. In FIG. 9, since the search interval is “2”, it is determined whether the pixel is an unnecessary pixel or a reference pixel every other pixel from the target pixel O along the direction line L outward. Are searched for as reference pixels P located on both sides of the target pixel O along the direction line L. In the present embodiment, one reference pixel P is searched for on both sides of the target pixel O along the direction line L, and the value of the reference pixel P is used to determine the subsequent target pixel O. The provisional correction value H and the weighting factor W are calculated as interpolation values. However, two or more reference pixels P are searched for on both sides of the target pixel O, and the two or more reference pixels P are searched. It is also possible to employ a configuration in which the temporary correction value H and the weighting factor W of the target pixel O later are calculated using the average value of The search for the reference pixel P is not limited to the direction line L as described above, and the reference pixel P including the reference pixel P located in the vicinity of the direction line L may be searched.

そして、上記1つの方向線Lに沿って参照画素Pを探索した結果、注目画素Oを挟んだ両側共に所定距離内に参照画素Pが存在しているか否かについて判断する(#08)。これは、注目画素Oから遠く離れた位置にある参照画素Pの値は、注目画素Oの修正に用いるのに適しないことから、予め設定された所定距離内に参照画素が存在しない場合には、その方向の方向線Lについての参照画素Pの値を注目画素Oの仮修正値Hや重み係数Wの演算に用いないようにするためである。したがって、注目画素Oを挟んだ両側のうちのいずれか一方でも所定距離内に参照画素が存在しなかった場合には(#08:NO)、処理は#06へ戻り、次の1つの方向線Lに沿って参照画素Pを探索する処理が行われる。ここで、前記所定距離としては、例えば、「25」画素等のように単純に距離(画素数)により表される一定値としてもよいし、「25×(探索間隔)」画素のように処理対象の画像データに含まれる画素数に応じて変化する値としてもよい。   Then, as a result of searching for the reference pixel P along the one direction line L, it is determined whether or not the reference pixel P exists within a predetermined distance on both sides of the target pixel O (# 08). This is because the value of the reference pixel P at a position far from the target pixel O is not suitable for use in correcting the target pixel O. Therefore, when there is no reference pixel within a predetermined distance set in advance, This is because the value of the reference pixel P for the direction line L in that direction is not used for the calculation of the temporary correction value H and the weighting factor W of the target pixel O. Accordingly, when there is no reference pixel within a predetermined distance on either one of the both sides across the target pixel O (# 08: NO), the process returns to # 06, and the next one direction line A process of searching for the reference pixel P along L is performed. Here, for example, the predetermined distance may be a constant value represented simply by a distance (number of pixels) such as “25” pixels, or may be processed as “25 × (search interval)” pixels. The value may be changed according to the number of pixels included in the target image data.

一方、注目画素Oを挟んだ両側共に所定距離内に参照画素Pが存在している場合には(#08:YES)、次に、仮修正値演算部85において、#08で見つけ出された参照画素Pの画素値を用いて、当該参照画素Pを探索した方向線Lについての注目画素Oの仮修正値Hを演算する(#09)。この注目画素Oの仮修正値Hの演算方法としては、例えば、線形補間を適用することができる。具体的には、図9に示す1つの方向線L1に沿って注目画素Oを挟んだ両側に位置する参照画素をそれぞれP1、P2とし、これらの参照画素P1、P2の画素値を用いて注目画素Oの仮修正値H1を演算する際には、R、G、Bの各成分のそれぞれについて、図10に示すように、参照画素P1の画素値と参照画素P2の画素値とを直線で結び、注目画素Oから参照画素P1又はP2までの距離の比に応じた前記直線上の値を線形補間により演算し、注目画素Oの仮修正値H1r、H1g、H1bとする。ここで、図10のグラフの縦軸は各画素の画素値であり、横軸は方向線L1に沿って位置する各画素の位置関係を表す。本実施形態に係る注目画素Oの仮修正値Hの演算式を、R、G、Bの各成分のうちのRを例として具体的に示すと、以下の式(1)のようになる。

Figure 2005275901
On the other hand, if the reference pixel P exists within a predetermined distance on both sides of the target pixel O (# 08: YES), then the temporary correction value calculation unit 85 finds it at # 08. Using the pixel value of the reference pixel P, a temporary correction value H of the target pixel O for the direction line L searched for the reference pixel P is calculated (# 09). As a method of calculating the temporary correction value H of the target pixel O, for example, linear interpolation can be applied. Specifically, reference pixels located on both sides of the target pixel O along one direction line L1 shown in FIG. 9 are denoted as P1 and P2, respectively, and attention is paid using the pixel values of these reference pixels P1 and P2. When calculating the temporary correction value H1 of the pixel O, for each of the R, G, and B components, as shown in FIG. 10, the pixel value of the reference pixel P1 and the pixel value of the reference pixel P2 are linearly represented. Finally, the values on the straight line corresponding to the ratio of the distance from the target pixel O to the reference pixel P1 or P2 are calculated by linear interpolation, and set as temporary correction values H1r, H1g, and H1b of the target pixel O. Here, the vertical axis of the graph of FIG. 10 represents the pixel value of each pixel, and the horizontal axis represents the positional relationship of each pixel located along the direction line L1. An arithmetic expression of the provisional correction value H of the target pixel O according to the present embodiment is specifically shown by the following expression (1) by taking R of the R, G, and B components as an example.
Figure 2005275901

ここで、Rdat1は注目画素Oを挟んで位置する一方の参照画素P1のR成分の画素値を対数変換した値、Rdat2は他方の参照画素P2のR成分の画素値を対数変換した値、rad1は注目画素Oから参照画素P1までの距離の絶対値、rad2は注目画素Oから参照画素P2までの距離の絶対値、(m,n)は注目画素Oの座標、aglは注目画素Oを通る複数の方向線Lの角度であって#05の処理において決定された方向線L間の角度間隔毎の値をとる。そして、Hragl,m,nは方向線Lについての注目画素OのR成分の仮修正値である。参照画素P1及びP2のR成分の画素値を対数変換する際の対数の底は、ここでは「e」として自然対数をとするが、常用対数を用いてもよい。なお、ここでは参照画素P1及びP2の画素値を対数変換した値を用いているが、これらの画素値をそのまま用いて以降の演算を行うことも可能である。   Here, Rdat1 is a value obtained by logarithmically converting the R component pixel value of one reference pixel P1 located across the target pixel O, Rdat2 is a value obtained by logarithmically converting the R component pixel value of the other reference pixel P2, and rad1 Is the absolute value of the distance from the target pixel O to the reference pixel P1, rad2 is the absolute value of the distance from the target pixel O to the reference pixel P2, (m, n) is the coordinates of the target pixel O, and agl passes through the target pixel O. A value for each angle interval between the direction lines L, which is an angle of the plurality of direction lines L and determined in the process of # 05, is taken. Hragl, m, n is a provisional correction value of the R component of the target pixel O with respect to the direction line L. Although the base of the logarithm when logarithmically converting the pixel values of the R components of the reference pixels P1 and P2 is “e” here, a natural logarithm is used, but a common logarithm may be used. Note that here, values obtained by logarithmically converting the pixel values of the reference pixels P1 and P2 are used, but it is also possible to perform subsequent calculations using these pixel values as they are.

G成分及びB成分についても、同様の方法により、仮修正値H1g及びH1bをそれぞれ演算することができる。なお、注目画素Oの仮修正値Hの演算方法は、線形補間に限定されるものではなく、その他の補間方法を用いることも可能である。   For the G component and the B component, the temporary correction values H1g and H1b can be calculated by the same method. Note that the method of calculating the temporary correction value H of the pixel of interest O is not limited to linear interpolation, and other interpolation methods can be used.

次に、重み係数演算部86において、#07で探索された参照画素Pの画素値を用いて、当該参照画素Pを探索した方向線Lについての重み係数Wを演算する(#10)。1つの方向線L1についての重み係数W1は、#09の処理において1つの方向線L1について演算された注目画素Oの仮修正値H1を、後述するように他の方向の方向線Lについて演算された注目画素Oの仮修正値Hとの関係で、どの程度の割合(重み)で最終修正値(重み付き平均値A)に対して用いるか、すなわち各方向線Lについての注目画素Oの仮修正値Hがどの程度適正な値であるかという信頼性を定める係数である。   Next, the weighting factor calculation unit 86 calculates the weighting factor W for the direction line L searched for the reference pixel P using the pixel value of the reference pixel P searched for in # 07 (# 10). The weighting factor W1 for one direction line L1 is calculated for the direction line L in the other direction as will be described later with the temporary correction value H1 of the target pixel O calculated for one direction line L1 in the process of # 09. In relation to the temporary correction value H of the target pixel O, what ratio (weight) is used for the final correction value (weighted average value A), that is, the temporary correction of the target pixel O for each direction line L This is a coefficient that determines the reliability of how much the correction value H is an appropriate value.

一般的に、ある1の方向線Lに沿って注目画素Oを挟んだ両側に位置する参照画素P1の画素値と参照画素P2の画素値との値が離れている場合には、参照画素P1と参照画素P2との間に画像の境界、すなわち画像中の色彩の変わり目が存在する可能性が高く、逆に、参照画素P1の画素値と参照画素P2の画素値との値が近い場合には参照画素P1と参照画素P2との間に画像の境界が存在しない可能性が高い。このような場合において、画像の境界を跨ぐ方向に補間した不要画素の仮修正値Hよりも、画像の境界に沿う方向に補間した不要画素の仮修正値Hの方が適正な値である可能性が高いと考えられる。これは、画素値の変化が大きい方向に沿って参照画素の間に存在する注目画素O(不要画素)の画素値を線形補間等によって適正に推定することが困難であるのに対して、画素値の変化が少ない方向に沿った補間では注目画素Oの適正な仮修正値を容易に推定することが可能であることによる。   In general, when the pixel value of the reference pixel P1 and the pixel value of the reference pixel P2 located on both sides of the target pixel O along one certain direction line L are separated from each other, the reference pixel P1 There is a high possibility that there is a boundary between the images, that is, a color transition in the image, and the pixel value of the reference pixel P2 is close to the pixel value of the reference pixel P2. There is a high possibility that no image boundary exists between the reference pixel P1 and the reference pixel P2. In such a case, the temporary correction value H of the unnecessary pixel interpolated in the direction along the image boundary may be more appropriate than the temporary correction value H of the unnecessary pixel interpolated in the direction across the image boundary. It is considered that the nature is high. This is because it is difficult to properly estimate the pixel value of the target pixel O (unnecessary pixel) existing between the reference pixels along the direction in which the change in the pixel value is large, by linear interpolation or the like. This is because an appropriate temporary correction value of the target pixel O can be easily estimated by interpolation along a direction in which a change in value is small.

そこで、本実施形態においては、参照画素P1の画素値と参照画素P2の画素値のいずれか大きい方の値を分母とし、小さい方の値を分子とする比をR、G、Bの各成分のそれぞれについて演算し、重み係数Wr、Wg、Wbとする。これにより、重み係数Wは、参照画素P1の画素値と参照画素P2の画素値とが近いほど重みが重くなるような係数としてそれぞれ演算される。本実施形態に係る重み係数Wの演算式を、R、G、Bの各成分のうちのRを例として具体的に示すと、以下の式(2)のようになる。

Figure 2005275901
Therefore, in the present embodiment, the ratio of the R, G, and B components using the larger value of the pixel value of the reference pixel P1 and the pixel value of the reference pixel P2 as the denominator and the smaller value as the numerator. Are calculated as weighting factors Wr, Wg, and Wb. As a result, the weighting coefficient W is calculated as a coefficient that increases the weight as the pixel value of the reference pixel P1 and the pixel value of the reference pixel P2 are closer. An equation for calculating the weighting factor W according to the present embodiment is specifically shown by the following equation (2) by taking R of R, G, and B components as an example.
Figure 2005275901

ここで、max(Rdat1,Rdat2)は上記Rdat1又はRdat2のいずれか大きい方の値、min(Rdat1,Rdat2)は上記Rdat1又はRdat2のいずれか小さい方の値、Wragl,m,nは方向線Lについての重み係数である。なお、Rdat1及びRdat2の両方の値が「0」である場合には、計算が不可能になることを避けるため、Wragl,m,nは「1」とする処理を行う。G成分及びB成分についても、同様の方法により、重み係数Wg及びWbをそれぞれ演算することができる。   Here, max (Rdat1, Rdat2) is the larger value of Rdat1 or Rdat2, min (Rdat1, Rdat2) is the smaller value of Rdat1 or Rdat2, and Wragl, m, n is the direction line L. Is a weighting factor for. Note that when both values of Rdat1 and Rdat2 are “0”, Wragl, m, n is set to “1” in order to avoid calculation being impossible. For the G component and the B component, the weighting factors Wg and Wb can be calculated by the same method.

また、方向線Lについての重み係数Wの演算方法は、上記の方法に限定されるものではなく、参照画素P1の画素値と参照画素P2の画素値との差分の絶対値の所定値αに対する補数を所定値αで除した値をR、G、Bの各成分のそれぞれについて演算し、重み係数Wr、Wg、Wbとすることも可能である。このような重み係数Wの演算式を、R、G、Bの各成分のうちのRを例として具体的に示すと、以下の式(3)のようになる。

Figure 2005275901
The calculation method of the weighting factor W for the direction line L is not limited to the above method, and the absolute value of the difference between the pixel value of the reference pixel P1 and the pixel value of the reference pixel P2 with respect to the predetermined value α. A value obtained by dividing the complement by a predetermined value α may be calculated for each of the R, G, and B components to obtain weighting factors Wr, Wg, and Wb. The equation for calculating the weighting factor W is specifically shown as the following equation (3) by taking R of the R, G, and B components as an example.
Figure 2005275901

ここで、所定値αは、参照画素P1の画素値と参照画素P2の画素値との差分の絶対値がとり得る最大値に設定すると好適である。これにより、参照画素P1の画素値と参照画素P2の画素値が近いほど重み係数Wが重くなるようにできる。なお、所定値αの値はこれに限定されるものではなく、参照画素P1の画素値と参照画素P2の画素値との差分の絶対値がとり得る最大値以下の値に設定することも可能である。ただし、その場合には、前記補数が負の値になる場合が生じ得るので、前記補数が「0」以下となる場合には、重み係数Wを「0」とする等の条件が必要となる。また、ここでは、重み係数Wが「0」以上「1」以下の値となるようにするため、前記補数を所定値αにより除算することとしているが、前記補数を所定値αにより除算することなく、重み係数Wとすることも可能である。   Here, the predetermined value α is preferably set to the maximum value that can be taken by the absolute value of the difference between the pixel value of the reference pixel P1 and the pixel value of the reference pixel P2. Thereby, the weight coefficient W can be increased as the pixel value of the reference pixel P1 and the pixel value of the reference pixel P2 are closer. Note that the value of the predetermined value α is not limited to this, and can be set to a value equal to or less than the maximum value that the absolute value of the difference between the pixel value of the reference pixel P1 and the pixel value of the reference pixel P2 can take. It is. However, in this case, the complement may be a negative value. Therefore, when the complement is “0” or less, a condition such as setting the weighting factor W to “0” is necessary. . Here, the complement is divided by the predetermined value α in order to make the weighting factor W be a value between “0” and “1”, but the complement is divided by the predetermined value α. Alternatively, the weight coefficient W can be used.

次に、#04の処理において決定された方向線L間の角度間隔に従って設定された、注目画素Oを通る複数方向の方向線Lの全てについて、#07〜#10の処理を終了したか否かについて判断する(#11)。そして、上記複数方向の方向線Lの全てについての#06〜#09の処理が終了していない場合(#11:NO)には、処理は#06へ戻り、既に処理が終了している方向線L以外の方向線Lを選択し、#07〜#10の処理を再度行う。   Next, whether or not the processes of # 07 to # 10 have been completed for all the direction lines L in a plurality of directions passing through the target pixel O set according to the angular interval between the direction lines L determined in the process of # 04. (# 11). If the processes of # 06 to # 09 for all of the direction lines L in the plurality of directions are not completed (# 11: NO), the process returns to # 06, and the process has already been completed. A direction line L other than the line L is selected, and the processes of # 07 to # 10 are performed again.

一方、上記複数方向の方向線Lの全てについての#07〜#10の処理が終了した場合(#11:YES)には、最終修正値演算部87において、#05の処理において選択した1の注目画素Oについての重み付き平均値Aを演算する(#12)。すなわち#05〜#10の処理において演算された各方向線Lについての注目画素Oの仮修正値Hと重み係数Wとを用いて、選択した1の注目画素Oの仮修正値Hの重み付き平均値A(最終修正値)を演算する。具体的には、R、G、Bの各成分のそれぞれについて、各方向線Lについての仮修正値Hに当該方向線Lについての重み係数Wのn乗を乗算した乗算値を、当該注目画素Oを通る複数の方向線Lの全てについて総和し、この総和を前記乗算値の演算に用いた全ての重み係数Wのn乗の総和で除算することにより行う。この重み付き平均値Aの演算式を、R、G、Bの各成分のうちのRを例として具体的に示すと、以下の式(4)のようになる。

Figure 2005275901
On the other hand, when the processing of # 07 to # 10 is completed for all of the direction lines L in the plurality of directions (# 11: YES), the final correction value calculation unit 87 selects the 1 selected in the processing of # 05. A weighted average value A for the target pixel O is calculated (# 12). That is, using the temporary correction value H and the weighting factor W of the target pixel O for each direction line L calculated in the processes of # 05 to # 10, the temporary correction value H of the selected one target pixel O is weighted. An average value A (final correction value) is calculated. Specifically, for each of the R, G, and B components, a multiplication value obtained by multiplying the provisional correction value H for each direction line L by the nth power of the weighting factor W for the direction line L is used as the target pixel. This is performed by summing all of the plurality of direction lines L passing through O, and dividing this sum by the sum of the nth powers of all the weighting factors W used for the calculation of the multiplication value. The calculation formula of the weighted average value A is specifically shown by the following formula (4) by taking R of the R, G, and B components as an example.
Figure 2005275901

本実施形態においては、注目画素Oを通る方向線Lは、15°間隔で12本設定されており、そのそれぞれについてR、G、Bの各成分毎に、仮修正値Hr、Hg、Hbと重み係数Wr、Wg、Wbが演算されているので、重み付き平均値Aは、これら12個の仮修正値Hと重み係数Wのn乗の乗算値の和を、12個の重み係数Wのn乗の和で除算することにより演算される。   In the present embodiment, 12 direction lines L passing through the target pixel O are set at 15 ° intervals, and for each of the R, G, and B components, temporary correction values Hr, Hg, and Hb are set. Since the weighting factors Wr, Wg, and Wb are calculated, the weighted average value A is the sum of the twelve provisional correction values H and the multiplication value of the weighting factor W raised to the nth power, and the twelve weighting factors W It is calculated by dividing by the sum of the nth power.

ここで、重み係数Wは「0」以上「1」以下の値となるので、重み係数Wをn乗することにより、重み係数Wの値を強調することができる。これにより、注目画素Oの周囲の画像の境界の存在する方向に沿って演算された注目画素Oの仮修正値Hが上記重み付き平均値Aに与える影響を大きくすることができ、画像の境界の方向を反映した適切な不要画素の修正を行うことが可能となる。ここで、nの値は、修正すべき画像の状態によって適切な値が異なることから、各種の画像の統計等から実験的に求めた値とするのが好適であるが、一般的には、このnの値が小さすぎれば、修正後の画像は、像の境界がぼやけた状態となり、このnの値が大きすぎれば、修正後の画像は、像の境界がはっきりしすぎた状態となる。具体的には、通常の写真であれば、nの値は10〜30程度が適している場合が多く、更には、肌色と黒色との境界が適切に修正されるようなnの値としては20程度が適している場合が多い。   Here, since the weighting coefficient W is a value between “0” and “1”, the value of the weighting coefficient W can be emphasized by raising the weighting coefficient W to the nth power. As a result, the influence of the temporary correction value H of the target pixel O calculated along the direction in which the boundary of the image around the target pixel O exists on the weighted average value A can be increased, and the image boundary can be increased. Thus, it is possible to correct an unnecessary pixel that reflects the direction of. Here, the value of n is appropriately determined depending on the state of the image to be corrected. Therefore, it is preferable that the value is experimentally obtained from statistics of various images. If the value of n is too small, the corrected image has a blurred image boundary. If the value of n is too large, the corrected image has a too sharp image boundary. . Specifically, in the case of a normal photograph, the value of n is often about 10 to 30, and moreover, as the value of n such that the boundary between skin color and black is appropriately corrected About 20 is often suitable.

次に、不要領域修正部88において、#12の処理により演算された注目画素Oの重み付き平均値Aを用いて注目画素Oの修正を行う(#13)。具体的には、R、G、Bの各成分のそれぞれについて演算された注目画素Oの重み付き平均値Ar、Ag、Abを、逆対数変換し、その値を当該注目画素Oの最終修正値Fr、Fg、Fbとし、これらを注目画素OのR、G、Bの各成分の画素値に置き換えることにより行う。この最終修正値Fの演算式を、R、G、Bの各成分のうちのRを例として具体的に示すと、以下の式(5)のようになる。

Figure 2005275901
Next, the unnecessary area correction unit 88 corrects the target pixel O using the weighted average value A of the target pixel O calculated by the process of # 12 (# 13). Specifically, the weighted average values Ar, Ag, and Ab of the target pixel O calculated for each of the R, G, and B components are subjected to inverse logarithm conversion, and the values are converted into final correction values of the target pixel O. Fr, Fg, and Fb are used, and these are replaced with the pixel values of the R, G, and B components of the target pixel O. When the arithmetic expression of the final correction value F is specifically shown by taking R of the R, G, and B components as an example, the following expression (5) is obtained.
Figure 2005275901

このように最終修正値Fの演算に際して、注目画素Oの重み付き平均値Aを逆対数変換するのは、上記#08の処理において、注目画素Oの仮修正値Hを演算する際に、参照画素P1及びP2のR成分の画素値を対数変換していることによるものである。したがって、ここでは自然対数の底「e」により逆対数変換を行う。なお、上記の式(1)において、参照画素P1及びP2の画素値を対数変換せずにそのまま用いた場合には、この逆対数変換の処理は行わないので、注目画素Oの重み付き平均値Ar、Ag、Abがそのまま最終修正値となる。   As described above, when the final correction value F is calculated, the weighted average value A of the target pixel O is subjected to inverse logarithm conversion when the temporary correction value H of the target pixel O is calculated in the process of # 08. This is because the R component pixel values of the pixels P1 and P2 are logarithmically converted. Therefore, here, the inverse logarithmic transformation is performed by the base “e” of the natural logarithm. In the above equation (1), when the pixel values of the reference pixels P1 and P2 are used without being subjected to logarithmic conversion, the inverse logarithmic conversion process is not performed, and thus the weighted average value of the pixel of interest O Ar, Ag, and Ab are the final correction values as they are.

次に、#02の処理において処理用マップに不要画素として登録された全ての不要画素について、注目画素Oとして選択して#05〜#13の処理を既に終了したか否かについて判断する(#14)。ここで、全ての不要画素を注目画素Oとして選択済みでない場合には(#14:NO)、処理は#05へ戻り、既に処理が終了している注目画素O以外の注目画素Oを選択し、#05〜#13の処理を繰り返し行う。そして、全ての不要画素を注目画素Oとして選択し、#05〜#13の処理を既に終了した場合には(#14:YES)、不要領域の修正処理を終了する。   Next, it is determined whether all unnecessary pixels registered as unnecessary pixels in the processing map in the process of # 02 are selected as the target pixel O and the processes of # 05 to # 13 have already been completed (# 14). If all unnecessary pixels have not been selected as the target pixel O (# 14: NO), the process returns to # 05, and a target pixel O other than the target pixel O that has already been processed is selected. , # 05 to # 13 are repeated. When all unnecessary pixels are selected as the target pixel O and the processes of # 05 to # 13 have already been completed (# 14: YES), the unnecessary area correction process is ended.

本発明による不要領域修正画像処理技術を採用した画像処理ユニットを搭載した写真プリント装置の外観図1 is an external view of a photographic printing apparatus equipped with an image processing unit that employs an unnecessary area correction image processing technique according to the present invention. 写真プリント装置のプリントステーションの構成を模式的に示す模式図Schematic diagram schematically showing the configuration of the print station of the photo printing device 写真プリント装置のコントローラ内に構築される機能要素を説明する機能ブロック図Functional block diagram explaining the functional elements built in the controller of the photo printing device 不要領域修正処理手段の機能構成を示す機能ブロック図Functional block diagram showing the functional configuration of the unnecessary area correction processing means 不要領域を修正する画像処理の手順を示すフローチャートFlowchart showing image processing procedure for correcting unnecessary area プレジャッジ画面の画面図Screen image of pre-judge screen 補正メイン画面の画面図Screen view of the main correction screen 処理用マップの説明図Illustration of processing map 不要画素の修正処理における、1つの対象画素を通る複数方向の探索ラインに沿って参照画素を探索する処理の一例を示す説明図Explanatory drawing which shows an example of the process which searches a reference pixel along the search line of the multiple directions which pass through one target pixel in the correction process of an unnecessary pixel. 不要画素の修正処理における、対象画素の仮修正値の演算方法の一例を示すグラフThe graph which shows an example of the calculation method of the temporary correction value of the object pixel in the correction process of an unnecessary pixel

符号の説明Explanation of symbols

80 不要領域修正処理手段
81 不要領域選択部
82 注目画素選択部
83 演算方向線設定部
84 参照画素探索部
85 仮修正値演算部
86 重み係数演算部
87 最終修正値演算部(重み付き平均値演算部)
88 不要領域修正部
89a 探索間隔調節部
89b 検索角度調節部
O 対象画素
P 参照画素
L 方向線
H 対象画素の仮修正値
W 重み係数
A 重み付き平均値(最終修正値)
F 最終修正値
80 Unnecessary region correction processing means 81 Unnecessary region selection unit 82 Target pixel selection unit 83 Calculation direction line setting unit 84 Reference pixel search unit 85 Temporary correction value calculation unit 86 Weight coefficient calculation unit 87 Final correction value calculation unit (weighted average value calculation) Part)
88 Unnecessary region correction unit 89a Search interval adjustment unit 89b Search angle adjustment unit O Target pixel P Reference pixel L Direction line H Target pixel temporary correction value W Weight coefficient A Weighted average value (final correction value)
F Last modified value

Claims (7)

画像の不要領域を構成する不要画素を前記不要領域外に隣接する参照画素によって置き換えることで前記不要領域を修正するための画像処理方法において、
入力された画像から前記不要領域を選択するステップと、
前記選択された不要領域から順次注目画素を設定するステップと、
前記注目画素を中心として放射状に延びる複数の方向線を設定するステップと、
前記各方向線に沿って前記注目画素を挟んで両側に位置する前記参照画素を探索するステップと、
前記探索された参照画素の画素値を用いて前記注目画素のための仮修正値を演算するステップと、
前記方向線毎に沿って設定された参照画素の画素値を用いて各方向線のための重み係数を演算するステップと、
前記探索ライン毎に求められた前記仮修正値と前記重み係数とを用いて前記注目画素の仮修正値の重み付き平均値を前記注目画素の最終修正値として演算するステップと、
前記最終修正値を用いて前記不要領域を修正するステップと、
からなることを特徴とする画像処理方法。
In the image processing method for correcting the unnecessary area by replacing unnecessary pixels constituting the unnecessary area of the image with a reference pixel adjacent outside the unnecessary area,
Selecting the unnecessary area from the input image;
Sequentially setting a target pixel from the selected unnecessary area;
Setting a plurality of direction lines extending radially around the pixel of interest;
Searching for the reference pixels located on both sides of the target pixel along each direction line;
Calculating a temporary correction value for the pixel of interest using a pixel value of the searched reference pixel;
Calculating a weighting factor for each direction line using pixel values of reference pixels set along each direction line;
Calculating a weighted average value of the temporary correction value of the target pixel as the final correction value of the target pixel using the temporary correction value and the weighting coefficient obtained for each search line;
Correcting the unnecessary area using the final correction value;
An image processing method comprising:
前記不要領域が複数回にわたって選択される場合には選択された各不要領域が統合されて1つの不要領域に設定されることを特徴とする請求項1に記載の画像処理方法。   2. The image processing method according to claim 1, wherein when the unnecessary area is selected a plurality of times, the selected unnecessary areas are integrated and set as one unnecessary area. 修正されるべき前記不要領域の大きさに応じて前記参照画素を探索するステップにおける探索間隔が調整されることを特徴とする請求項1又は2に記載の画像処理方法。   The image processing method according to claim 1, wherein a search interval in the step of searching for the reference pixel is adjusted according to a size of the unnecessary area to be corrected. 前記重み係数は、各方向線に沿って前記注目画素を挟んで一方側で検索された参照画素の画素値を用いた値と他方側で検索された参照画素の画素値を用いた値とのいずれか大きい側の値を分母に、小さい側の値を分子に用いた比率であることを特徴とする請求項1〜3のいずれか1項に記載の画像処理装置。   The weighting factor is a value using a pixel value of a reference pixel searched on one side across the target pixel along each direction line and a value using a pixel value of a reference pixel searched on the other side. The image processing apparatus according to claim 1, wherein the ratio is a ratio in which a larger value is used as a denominator and a smaller value is used as a numerator. 前記仮修正値は、前記方向線に沿って前記注目画素を挟んだ一方側に検索された参照画素の画素値を用いた値と他方側に検索された参照画素の画素値を用いた値との間の線形補間により求められることを特徴とする請求項1〜4のいずれか1項に記載の画像処理装置。   The temporary correction value is a value using a pixel value of a reference pixel searched on one side across the target pixel along the direction line, and a value using a pixel value of a reference pixel searched on the other side. The image processing apparatus according to claim 1, wherein the image processing apparatus is obtained by linear interpolation. 画像の不要領域を構成する不要画素を前記不要領域外に隣接する参照画素によって置き換えることで前記不要領域を修正するため、
入力された画像から選択された不要領域から順次注目画素を設定する機能と、
前記注目画素を中心として放射状に延びる複数の方向線を設定する機能と、
前記各方向線に沿って前記注目画素を挟んで両側に位置する前記参照画素を探索する機能と、
前記探索された参照画素の画素値を用いて前記注目画素のための仮修正値を演算する機能と、
前記方向線毎に沿って設定された参照画素の画素値を用いて各方向線のための重み係数を演算する機能と、
前記探索ライン毎に求められた前記仮修正値と前記重み係数とを用いて前記注目画素の仮修正値の重み付き平均値を前記注目画素の最終修正値として演算する機能と、
前記最終修正値を用いて前記不要領域を修正する機能と、
をコンピュータに実現させる画像処理プログラム。
In order to correct the unnecessary area by replacing unnecessary pixels constituting the unnecessary area of the image with reference pixels adjacent outside the unnecessary area,
A function for sequentially setting a pixel of interest from an unnecessary area selected from an input image;
A function of setting a plurality of direction lines extending radially around the target pixel;
A function of searching for the reference pixels located on both sides of the target pixel along each direction line;
A function of calculating a temporary correction value for the target pixel using a pixel value of the searched reference pixel;
A function of calculating a weighting factor for each direction line using a pixel value of a reference pixel set along each direction line;
A function of calculating a weighted average value of the temporary correction value of the target pixel as the final correction value of the target pixel using the temporary correction value and the weighting coefficient obtained for each search line;
A function of correcting the unnecessary area using the final correction value;
An image processing program for realizing a computer.
画像の不要領域を構成する不要画素を前記不要領域外に隣接する参照画素によって置き換えることで前記不要領域を修正するための画像処理装置において、
入力された画像から前記不要領域を選択する不要領域選択部と、
前記選択された不要領域から順次注目画素を設定する注目画素設定部と、
前記注目画素を中心として放射状に延びる複数の方向線を設定する演算方向線設定部と、
前記各方向線に沿って前記注目画素を挟んで両側に位置する前記参照画素を探索する参照画素探索部と、
前記探索された参照画素の画素値を用いて前記注目画素のための仮修正値を演算する仮修正値演算部と、
前記方向線毎に沿って設定された参照画素の画素値を用いて各方向線のための重み係数を演算する重み係数演算部と、
前記探索ライン毎に求められた前記仮修正値と前記重み係数とを用いて前記注目画素の仮修正値の重み付き平均値を前記注目画素の最終修正値として演算する最終修正値演算部と、
前記最終修正値を用いて前記不要領域を修正する不要領域修正部と、
からなることを特徴とする画像処理装置。
In the image processing apparatus for correcting the unnecessary area by replacing unnecessary pixels constituting the unnecessary area of the image with reference pixels adjacent to the outside of the unnecessary area,
An unnecessary area selection unit for selecting the unnecessary area from the input image;
A pixel-of-interest setting unit that sequentially sets pixels of interest from the selected unnecessary area;
A calculation direction line setting unit that sets a plurality of direction lines extending radially from the target pixel;
A reference pixel search unit that searches for the reference pixels located on both sides of the target pixel along the direction lines;
A temporary correction value calculation unit that calculates a temporary correction value for the target pixel using a pixel value of the searched reference pixel;
A weighting factor calculation unit that calculates a weighting factor for each direction line using a pixel value of a reference pixel set along each direction line;
A final correction value calculation unit that calculates a weighted average value of the temporary correction value of the target pixel as the final correction value of the target pixel using the temporary correction value and the weighting coefficient obtained for each search line;
An unnecessary area correction unit that corrects the unnecessary area using the final correction value;
An image processing apparatus comprising:
JP2004089382A 2004-03-25 2004-03-25 Image processing method for correcting unnecessary area of image Expired - Fee Related JP4433285B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2004089382A JP4433285B2 (en) 2004-03-25 2004-03-25 Image processing method for correcting unnecessary area of image

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2004089382A JP4433285B2 (en) 2004-03-25 2004-03-25 Image processing method for correcting unnecessary area of image

Publications (2)

Publication Number Publication Date
JP2005275901A true JP2005275901A (en) 2005-10-06
JP4433285B2 JP4433285B2 (en) 2010-03-17

Family

ID=35175499

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2004089382A Expired - Fee Related JP4433285B2 (en) 2004-03-25 2004-03-25 Image processing method for correcting unnecessary area of image

Country Status (1)

Country Link
JP (1) JP4433285B2 (en)

Also Published As

Publication number Publication date
JP4433285B2 (en) 2010-03-17

Similar Documents

Publication Publication Date Title
JP4780374B2 (en) Image processing method and program for suppressing granular noise, and granular suppression processing module for implementing the method
JP4244018B2 (en) Defective pixel correction method, program, and defective pixel correction system for implementing the method
JP4239094B2 (en) Image processing apparatus, method, and program
JP2005141477A (en) Image sharpening process and image processor implementing this process
JP4655210B2 (en) Density correction curve generation method and density correction curve generation module
JP4239091B2 (en) Image processing apparatus, method, and program
JP3902173B2 (en) Image scaling method and photo printing apparatus for implementing the method
JP4830923B2 (en) Image processing apparatus and image processing method
JP2007249802A (en) Image processor and image processing method
JP4798446B2 (en) Photographed image correction method and photographed image correction module
JP2005159387A (en) Method of determining density characteristic curve and density correction management apparatus for executing this method
JP4433285B2 (en) Image processing method for correcting unnecessary area of image
JP2006186753A (en) Method and apparatus for processing photographic image
JP4731202B2 (en) Color correction processing method and color correction processing apparatus using the same
JP4063971B2 (en) Image processing method and apparatus
JP2006072743A (en) Catch light composition method and device
JP2008079196A (en) Image correcting method, image correcting program and image correcting module
JP4775289B2 (en) Image processing apparatus and image processing method
JP2006301675A (en) Image processor and image processing method
JP2005159388A (en) Contrast adjusting method, and contrast adjusting apparatus for executing this method
JP4378611B2 (en) A tilt correction method, a tilt correction program, and a photo printing apparatus with a tilt correction function
JP4324870B2 (en) Image processing method, image processing program, and apparatus for implementing the image processing method
JP2007074664A (en) Image processing method, image processing program and image processing apparatus
JP2008079022A (en) Image correction unit and image correction program
JP2006338296A (en) Image processing method and program for suppressing small noise and noise suppression module for executing the method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20070312

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20090416

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20090612

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20090702

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20090918

A911 Transfer to examiner for re-examination before appeal (zenchi)

Free format text: JAPANESE INTERMEDIATE CODE: A911

Effective date: 20091013

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

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

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20130108

Year of fee payment: 3

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313111

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

Free format text: PAYMENT UNTIL: 20130108

Year of fee payment: 3

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

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

Free format text: PAYMENT UNTIL: 20140108

Year of fee payment: 4

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees