JP2001075197A - Image processor, image processing method and recording medium - Google Patents

Image processor, image processing method and recording medium

Info

Publication number
JP2001075197A
JP2001075197A JP25112299A JP25112299A JP2001075197A JP 2001075197 A JP2001075197 A JP 2001075197A JP 25112299 A JP25112299 A JP 25112299A JP 25112299 A JP25112299 A JP 25112299A JP 2001075197 A JP2001075197 A JP 2001075197A
Authority
JP
Japan
Prior art keywords
image
defective portion
image information
defective
recording material
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP25112299A
Other languages
Japanese (ja)
Inventor
Hiroshi Yamaguchi
博司 山口
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.)
Fujifilm Holdings Corp
Original Assignee
Fuji Photo Film 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 Fuji Photo Film Co Ltd filed Critical Fuji Photo Film Co Ltd
Priority to JP25112299A priority Critical patent/JP2001075197A/en
Publication of JP2001075197A publication Critical patent/JP2001075197A/en
Pending legal-status Critical Current

Links

Landscapes

  • Control Of Exposure In Printing And Copying (AREA)
  • Image Processing (AREA)

Abstract

PROBLEM TO BE SOLVED: To easily realize the appropriate correction of a defective part in accordance with the scale of the defective part on image data. SOLUTION: Images recorded on a photographic film are respectively read concerning R, G, B and IR wavelength regions. A threshold for determining the defective part, the size of a peripheral area used for the correction of the defective part and the size of the work area used for the correction of the defective part are decided on the basis of the pixel density of the respective data on the photographic film by using a map shown in (A) to (C) concerning the respective R, G, B and IR data obtained through electronic variable power (pixel density conversion) processing. Then, defective parts are detected and corrected in accordance with respective parameters.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は画像処理装置、方法
及び記録媒体に係り、特に、画像情報が表す画像の欠陥
部を検出し欠陥部を修正する画像処理装置、該画像処理
装置に適用可能な画像処理方法、及び、コンピュータを
前記画像処理装置として機能させるためのプログラムが
記録された記録媒体に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image processing apparatus, method, and recording medium, and more particularly, to an image processing apparatus that detects a defective portion of an image represented by image information and corrects the defective portion, and is applicable to the image processing device. The present invention relates to an image processing method and a recording medium on which a program for causing a computer to function as the image processing apparatus is recorded.

【0002】[0002]

【従来の技術】写真フィルムは、取扱い方によっては乳
剤面やバック面(乳剤面の裏面)に傷が付くことがある
が、写真フィルムの画像記録領域内に相当する箇所に傷
が付いていた場合、該写真フィルムに記録されている画
像を出力(印画紙等の画像記録材料に記録、或いはディ
スプレイ等の表示手段に表示)したとすると、傷の程度
にもよるが、写真フィルムに付いた傷が、低濃度の筋や
白い筋等の欠陥部として出力画像上で明瞭に視認される
ことが多い。また、写真フィルムの表面に塵埃等の異物
が付着していた場合にも、該異物が欠陥部として明瞭に
視認される。
2. Description of the Related Art A photographic film may be damaged on the emulsion surface or the back surface (the back surface of the emulsion surface) depending on how to handle the film. However, the photographic film has been damaged at a portion corresponding to the image recording area of the photographic film. In this case, if an image recorded on the photographic film is output (recorded on an image recording material such as photographic paper or displayed on a display means such as a display), the image attached to the photographic film depends on the degree of scratches. The scratches are often clearly recognized on the output image as defective portions such as low-density streaks and white streaks. Also, when foreign matter such as dust adheres to the surface of the photographic film, the foreign matter is clearly recognized as a defective portion.

【0003】写真フィルムに光を照射し写真フィルムを
透過した光を印画紙に照射することで印画紙に画像を露
光記録する面露光タイプの写真焼付装置では、写真フィ
ルムの傷付き対策として、光源と写真フィルムとの間に
拡散板を配置し、拡散板によって散乱された光を写真フ
ィルムに照射している。しかし、上記技術では出力画像
(印画紙に露光記録した画像)中の欠陥部を消去するこ
とは困難であり、欠陥が若干軽減される(目立たなくな
る)に過ぎない。
In a surface exposure type photographic printing apparatus which irradiates light on a photographic film and irradiates light transmitted through the photographic film onto a photographic paper to expose and record an image on the photographic paper, a light source is used as a measure against scratches on the photographic film. A diffusion plate is disposed between the photographic film and the photographic film, and the light scattered by the diffusion plate is irradiated on the photographic film. However, it is difficult to erase a defective portion in an output image (an image recorded on a photographic paper by exposure) with the above technique, and the defect is only slightly reduced (is less noticeable).

【0004】また、写真フィルムに記録された画像をC
CD等の読取センサによって読み取る構成の画像読取装
置に適用可能な技術として、特開平11−75039号
公報には、可視域3波長と、非可視域(例えば赤外域や
紫外域)1波長を含む少なくとも4波長以上の波長域で
写真フィルムを各々読み取り、非可視域での読み取りに
よって得られた情報に基づいて、可視域での読み取りに
よって得られた画像情報を補正する技術が開示されてい
る。
Further, an image recorded on a photographic film is represented by C
As a technique applicable to an image reading apparatus configured to read by a reading sensor such as a CD, JP-A-11-75039 includes three wavelengths in a visible region and one wavelength in a non-visible region (for example, an infrared region or an ultraviolet region). A technique is disclosed in which a photographic film is read in at least four or more wavelength ranges, and image information obtained by reading in a visible range is corrected based on information obtained by reading in a non-visible range.

【0005】可視域の光は、写真フィルムに記録されて
いる画像濃度に応じて透過光量が変化すると共に、写真
フィルムに傷や異物が付いている箇所でも傷や異物によ
って光が一部屈折されたり反射されることで透過光量が
変化する。一方、非可視域の光は、写真フィルムに傷や
異物が付いている箇所では透過光量が変化するものの、
写真フィルムに記録されている画像濃度の影響は受けな
い。
The light in the visible region varies in the amount of transmitted light in accordance with the image density recorded on the photographic film, and is partially refracted by the scratches or foreign matter even in the places where the photographic film has scratches or foreign matter. The reflected light changes the amount of transmitted light. On the other hand, the light in the non-visible range varies in the amount of transmitted light in places where there is a scratch or foreign matter on the photographic film,
It is not affected by the image density recorded on the photographic film.

【0006】従って、前記公報に記載の技術によれば、
非可視域の光の透過光量の変化から写真フィルムに付い
ている傷や異物を検出し、写真フィルムに付いている傷
や異物に起因する可視域の光の透過光量の変動を補正す
ること、すなわち写真フィルムに付いている傷や異物に
起因する画像(可視域での読み取りによって得られた画
像情報が表す画像)の欠陥部を修正することが可能とな
る。
Therefore, according to the technique described in the above publication,
Detecting flaws and foreign matter on the photographic film from changes in the amount of transmitted light in the non-visible range, and correcting fluctuations in the amount of transmitted light in the visible range caused by the flaws and foreign matters on the photographic film; That is, it is possible to correct a defective portion of an image (an image represented by image information obtained by reading in the visible region) caused by a scratch or a foreign substance attached to the photographic film.

【0007】[0007]

【発明が解決しようとする課題】ところで、写真フィル
ムに付いている傷や異物の大きさは不定であり、画像を
読み取ることで得られる画像データ上での傷や異物に起
因する欠陥部の規模(欠陥部に属する画素の数)は前記
傷や異物の大きさに応じて変化する。また、写真フィル
ムに記録されている画像を読み取り、所定の画像処理を
行って出力する態様では、読取画像のサイズや出力画像
のサイズ、出力画像の画質についての要求水準等に応じ
て、画像読み取り時の光学倍率や読み取り解像度が変更
されたり、読み取りによって得られた画像データに対す
る電子変倍処理における倍率が変更されるが、この場合
にも画像データ上での欠陥部の規模が変化する。しかし
ながら、前記公報には、画像データ上での欠陥部の規模
が変化することを考慮した欠陥部修正について何ら考慮
されていない。
The size of a scratch or foreign matter attached to a photographic film is indefinite, and the size of a defective portion caused by the scratch or foreign matter on image data obtained by reading an image. (The number of pixels belonging to the defective portion) changes according to the size of the flaw or foreign matter. In an aspect in which an image recorded on a photographic film is read and subjected to predetermined image processing and output, the image reading is performed in accordance with the size of the read image, the size of the output image, the required level of the image quality of the output image, and the like. At this time, the optical magnification and the reading resolution are changed, and the magnification in the electronic scaling process for the image data obtained by the reading is changed. In this case as well, the size of the defective portion on the image data changes. However, the above publication does not take into account any modification of a defective portion in consideration of a change in the size of a defective portion on image data.

【0008】画像データ上での欠陥部の規模が変化する
ことを考慮した欠陥部修正の一例として、考え得る最大
規模の欠陥部を修正する場合を想定し、欠陥部修正に関
連するパラメータ(欠陥部を修正するための演算に用い
る欠陥部の周囲領域の大きさや欠陥部の修正に必要なデ
ータを記憶するための記憶手段の容量)を、欠陥部の最
大規模に応じて固定的に定めることが考えられる。しか
し、この態様では、画像データ上での規模が小さい欠陥
部を修正する場合に、欠陥部の規模に比して広面積の周
囲領域のデータが演算に用いられることで欠陥部の規模
が小さい割に修正演算に時間がかかったり、大容量の記
憶手段が必要になるという問題がある。
[0008] As an example of defect correction in consideration of a change in the size of a defect on image data, it is assumed that a defect having the largest possible defect is corrected. The size of the area around the defective part used for the operation for correcting the defective part and the capacity of the storage means for storing data necessary for correcting the defective part) are fixedly determined according to the maximum scale of the defective part. Can be considered. However, in this aspect, when correcting a defective portion having a small size on the image data, the data of the surrounding area having a large area is used for the calculation compared with the size of the defective portion, so that the size of the defective portion is small. There are problems that the correction operation takes a long time and a large-capacity storage means is required.

【0009】また、画像データ上での欠陥部の規模が変
化することを考慮した欠陥部修正の他の例として、画像
データ上での欠陥部の規模を検出し、欠陥部修正に関連
するパラメータを欠陥部の規模に応じた最適な値に変更
することが考えられる。しかし、この態様では、欠陥部
の規模を検出するために、例えば個々の欠陥部毎に欠陥
部に属する画素(欠陥画素)の画素数をカウントする等
の煩雑な処理を行う必要があった。
As another example of the defect correction in consideration of the change in the size of the defective portion on the image data, the size of the defective portion on the image data is detected and a parameter related to the defect correction is detected. May be changed to an optimal value according to the size of the defective portion. However, in this embodiment, in order to detect the scale of the defective portion, it is necessary to perform a complicated process such as counting the number of pixels (defective pixels) belonging to the defective portion for each defective portion.

【0010】本発明は上記事実を考慮して成されたもの
で、画像データ上での欠陥部の規模に応じた適正な欠陥
部修正を簡易に実現できる画像処理装置、画像処理方法
及び記録媒体を得ることが第1の目的である。
The present invention has been made in view of the above facts, and provides an image processing apparatus, an image processing method, and a recording medium which can easily realize appropriate defect correction in accordance with the scale of a defect on image data. Is the first purpose.

【0011】また本発明は、画像データ上での欠陥部の
規模に拘わらず、欠陥部修正に関連するパラメータを変
更することなく欠陥部を適正に修正することができる画
像処理装置、画像処理方法及び記録媒体を得ることが第
2の目的である。
Further, the present invention provides an image processing apparatus and an image processing method capable of appropriately correcting a defective portion without changing parameters related to the defective portion regardless of the size of the defective portion on the image data. And a recording medium.

【0012】[0012]

【課題を解決するための手段】欠陥部は画像記録材料に
付いた傷や異物によって生ずるが、写真感光材料等の画
像記録材料に付く傷や異物は、大きさは不定ではあるも
のの極端に大きいことは少なく、或る範囲内に収まって
いることが殆どである。本願発明者は上記に着目し、画
像情報上での欠陥部の規模に影響を及ぼす他のパラメー
タ(画像読み取り時の光学倍率、読み取り解像度、読み
取りによって得られた画像情報に対する電子変倍処理に
おける倍率等)によって変化する「画像情報が表す画像
の画像記録材料上での画素密度」が既知であれば、画像
情報上での欠陥部の規模を検出する等の煩雑な処理を行
わなくても、画像情報上での欠陥部の規模を或る程度の
精度で推定可能であることに想到した。
The defective portion is caused by a scratch or foreign matter on the image recording material. The size of the scratch or foreign matter on the image recording material such as a photographic light-sensitive material is extremely large, though the size is not fixed. In most cases, it is within a certain range. The inventor of the present invention pays attention to the above and considers other parameters (optical magnification at the time of reading an image, reading resolution, magnification in electronic scaling processing for image information obtained by reading, which affect the size of a defective portion on the image information). If the “pixel density of the image represented by the image information on the image recording material” that changes due to the change is known, without performing complicated processing such as detecting the size of the defective portion on the image information, It has been conceived that the scale of a defective portion on image information can be estimated with a certain degree of accuracy.

【0013】上記に基づき、第1の目的を達成するため
に請求項1記載の発明に係る画像処理装置は、画像記録
材料に記録されている画像を読み取ることで得られた画
像情報に対し、該画像情報が表す画像の欠陥部を検出す
る検出手段と、前記画像情報に対し、前記検出手段によ
って検出された欠陥部を修正する修正手段と、前記画像
情報が表す画像の前記画像記録材料上での画素密度に応
じて、前記検出手段による欠陥部の検出又は前記修正手
段による欠陥部の修正に関連するパラメータを変更する
変更手段と、を含んで構成している。
[0013] Based on the above, in order to achieve the first object, an image processing apparatus according to the first aspect of the present invention provides an image processing apparatus for processing image information obtained by reading an image recorded on an image recording material. Detecting means for detecting a defective portion of the image represented by the image information; correcting means for correcting the defective portion detected by the detecting means with respect to the image information; and correcting the image represented by the image information on the image recording material. Changing means for changing a parameter related to the detection of the defective portion by the detection means or the correction of the defective portion by the correction means in accordance with the pixel density in the step (a).

【0014】請求項1記載の発明は、画像記録材料に記
録されている画像を読み取ることで得られた画像情報に
対し、該画像情報が表す画像の欠陥部を検出する検出手
段を備えている。前記画像情報は、例えば画像記録材料
に光を照射し、画像記録材料を透過又は反射した光を、
多数の光電変換セルを備えた光電変換素子によって光電
変換する(読み取る)ことで得ることができ、欠陥部の
検出は、例えば画像記録材料に非可視光を照射し、画像
記録材料を透過又は反射した非可視光を光電変換した結
果を用いて行うことができる。
According to the first aspect of the present invention, there is provided detecting means for detecting a defective portion of the image represented by the image information obtained by reading the image recorded on the image recording material. . The image information, for example, irradiating light to the image recording material, light transmitted or reflected by the image recording material,
It can be obtained by photoelectrically converting (reading) by a photoelectric conversion element provided with a large number of photoelectric conversion cells, and the detection of a defective portion can be performed, for example, by irradiating the image recording material with invisible light and transmitting or reflecting the image recording material. It can be performed using the result of photoelectrically converting the invisible light.

【0015】また、請求項1の発明に係る修正手段は、
画像情報に対し、検出手段によって検出された欠陥部を
修正する。この欠陥部の修正は、例えば画像の欠陥部に
相当する領域の情報を欠陥部の周囲に存在している領域
の情報から補間によって求めたり、欠陥部の輝度が変化
するように画像情報を修正したり、欠陥部やその付近の
領域における空間周波数の高周波成分を減じて欠陥部が
ぼけるように画像情報を修正することで行うことができ
る。
Further, the correcting means according to the first aspect of the present invention comprises:
A defective portion detected by the detecting means is corrected for the image information. The correction of the defective portion is performed by, for example, obtaining information on an area corresponding to the defective portion of the image from information on an area existing around the defective portion by interpolation, or correcting image information so that the luminance of the defective portion changes. The correction can be performed by reducing the high frequency component of the spatial frequency in the defective portion or in the vicinity thereof and correcting the image information so that the defective portion is blurred.

【0016】一方、前述のように画像記録材料に付く傷
や異物の大きさは或る範囲内に収まっていることが殆ど
であるので、画像情報上での欠陥部の規模についても、
画像情報が表す画像の画像記録材料上での画素密度に対
応する範囲内に収まることが殆どである。
On the other hand, as described above, since the size of a flaw or foreign matter on an image recording material is mostly within a certain range, the size of a defective portion on image information is also reduced.
In most cases, the image represented by the image information falls within a range corresponding to the pixel density on the image recording material.

【0017】これに対し、請求項1の発明に係る変更手
段は、画像情報が表す画像の画像記録材料上での画素密
度に応じて、検出手段による欠陥部の検出又は修正手段
による欠陥部の修正に関連するパラメータを変更する。
なお、欠陥部の検出又は欠陥部の修正に関連するパラメ
ータとしては、例えば修正手段が欠陥部の修正に用いる
欠陥部の周辺領域の大きさ、修正手段が欠陥部の修正に
必要なデータを一時記憶するために確保する記憶領域の
サイズ、欠陥部の周辺領域のうち修正手段が欠陥部の修
正に用いる画素の間隔、検出手段による欠陥部の検出基
準等が挙げられる。
On the other hand, according to the first aspect of the present invention, the changing means detects the defective part by the detecting means or detects the defective part by the correcting means according to the pixel density of the image represented by the image information on the image recording material. Change parameters related to the modification.
The parameters relating to the detection of the defective portion or the correction of the defective portion include, for example, the size of the peripheral area of the defective portion used by the correcting device to correct the defective portion, and the correction device temporarily storing the data necessary for correcting the defective portion. The size of the storage area to be reserved for storage, the interval between pixels used by the repairing means for repairing the defective portion in the peripheral area of the defective portion, the reference for detecting the defective portion by the detecting means, and the like are given.

【0018】上記により、例えば画像情報が表す画像の
画像記録材料上での画素密度に応じて、欠陥部の修正に
用いる欠陥部の周辺領域の大きさ(例えば画素数)を変
更した場合、周辺領域の大きさが、画像情報上での欠陥
部のおおよその規模に対応する大きさとされることによ
り、欠陥部の規模に比して周辺領域が大き過ぎることで
欠陥部の修正に必要以上に時間がかかったり、欠陥部の
規模に比して周辺領域が小さ過ぎることで欠陥部の修正
精度が低下することを回避できる。
As described above, for example, when the size (for example, the number of pixels) of the peripheral area of a defective portion used for correcting the defective portion is changed in accordance with the pixel density of the image represented by the image information on the image recording material, Since the size of the region is set to a size corresponding to the approximate size of the defective portion on the image information, the peripheral region is too large compared to the size of the defective portion, so that it is unnecessary to correct the defective portion. It can be avoided that the correction accuracy of the defective portion is reduced due to the time taken or the peripheral region being too small compared to the scale of the defective portion.

【0019】また、例えば画像情報が表す画像の画像記
録材料上での画素密度に応じて、欠陥部の修正に必要な
データを一時記憶するために確保する記憶領域のサイズ
を変更した場合、記憶領域のサイズが、画像情報上での
欠陥部のおおよその規模に対応する大きさとされること
により、欠陥部の規模に比して記憶領域のサイズが大き
過ぎることで記憶領域が無駄に占有されたり、欠陥部の
規模に比して記憶領域のサイズが小さ過ぎることで欠陥
部の修正に支障をきたすことを回避することができる。
Further, for example, when the size of a storage area reserved for temporarily storing data necessary for correcting a defective portion is changed according to the pixel density of an image represented by image information on an image recording material, Since the size of the region is set to a size corresponding to the approximate size of the defective portion on the image information, the storage region is uselessly occupied because the size of the storage region is too large compared to the size of the defective portion. In addition, it is possible to avoid that the correction of the defective portion is hindered due to the storage area size being too small as compared with the size of the defective portion.

【0020】また、前述の画素密度に応じて周辺領域の
大きさを変更する態様では、欠陥部の規模が大きくなる
に従って周辺領域の大きさが大きくなることで、欠陥部
の修正に用いるデータのデータ量が増大し、欠陥部の修
正に要する時間が増大すると共に、該データの記憶に必
要な記憶領域のサイズも増大する。これに対し、例えば
画像情報が表す画像の画像記録材料上での画素密度に応
じて、欠陥部の周辺領域のうち欠陥部の修正に用いる画
素の間隔を変更した場合、画素密度が高く(欠陥部のお
およその規模が大きく)なるに従って欠陥部の修正に用
いる画素の間隔を大きくすることで、欠陥部の規模が大
きい場合にも欠陥部の修正に用いるデータのデータ量が
極端に増大することを抑制することができ、欠陥部の修
正に要する時間の増大及びデータの記憶に必要な記憶領
域のサイズの増大を抑制することができる。
Further, in the above-described embodiment in which the size of the peripheral region is changed in accordance with the pixel density, the size of the peripheral region increases as the size of the defective portion increases, so that the data used for correcting the defective portion is reduced. As the amount of data increases, the time required to correct a defective portion increases, and the size of a storage area required for storing the data also increases. On the other hand, for example, when the interval between pixels used for repairing a defective portion in the peripheral area of the defective portion is changed in accordance with the pixel density of the image represented by the image information on the image recording material, the pixel density becomes higher (the defect density becomes higher). By increasing the interval between pixels used for correcting a defective portion as the size of the defective portion increases, the amount of data used for correcting the defective portion increases extremely even when the size of the defective portion is large. Can be suppressed, and an increase in the time required for correcting the defective portion and an increase in the size of the storage area required for storing data can be suppressed.

【0021】また、欠陥部の規模が大きくなるに従っ
て、個々の欠陥部の修正に要する時間は増大するが、欠
陥部が目立ち易くなるので欠陥部修正に対する要求水準
が高くなる可能性もある。例えば前記画素密度に応じて
欠陥部の検出基準(例えば欠陥部として検出するか否か
の閾値)を変更した場合、欠陥部の検出基準が、画像情
報上での欠陥部のおおよその規模に応じて変更されるの
で、例として画素密度が高く(欠陥部のおおよその規模
が大きく)なるに従って検出される欠陥部の数が少なく
なるように検出基準を変更すれば、修正手段が欠陥部の
修正に要する時間が増大することを抑制できる。また、
例として画素密度が高く(欠陥部のおおよその規模が大
きく)なるに従って検出される欠陥部の数が多くなるよ
うに検出基準を変更すれば、より微小な欠陥部まで修正
されるようにすることができる。
Further, as the size of the defective portion increases, the time required for repairing the individual defective portion increases, but the defective portion becomes more conspicuous, so that the required level for repairing the defective portion may increase. For example, when the detection criterion for a defective portion (for example, a threshold value for determining whether or not to detect a defective portion) is changed according to the pixel density, the detection criterion for the defective portion is changed according to the approximate size of the defective portion on the image information. For example, if the detection criterion is changed so that the number of defective portions detected decreases as the pixel density increases (the approximate size of the defective portion increases), the correcting means can correct the defective portion. Increase in the time required for the operation can be suppressed. Also,
For example, if the detection criterion is changed so that the number of defective portions detected increases as the pixel density increases (the approximate size of the defective portion increases), even a finer defective portion can be corrected. Can be.

【0022】このように、請求項1の発明によれば、欠
陥部の規模を検出する等の煩雑な処理を行うことなく、
欠陥部の検出又は欠陥部の修正に関連するパラメータが
欠陥部のおおよその規模に応じて適正化されるので、画
像情報上での欠陥部の規模に応じた適正な欠陥部修正を
簡易に実現することができる。なお、前記画素密度は、
例えば画像読み取り時の光学倍率や読み取り解像度、読
み取りによって得られた画像情報に対する電子変倍処理
(但し、欠陥部修正前に行う場合)における倍率等のパ
ラメータから演算等によって求めることができる。
As described above, according to the first aspect of the present invention, without performing a complicated process such as detecting the size of a defective portion,
Since the parameters related to the detection of a defective part or the correction of a defective part are optimized according to the approximate size of the defective part, appropriate correction of the defective part according to the size of the defective part on the image information can be easily realized. can do. The pixel density is:
For example, it can be obtained by calculation or the like from parameters such as an optical magnification at the time of reading an image, a reading resolution, and a magnification in an electronic scaling process for image information obtained by reading (however, before correction of a defective portion).

【0023】なお、変更手段が周辺領域の大きさを変更
する場合、具体的には請求項2に記載したように、画素
密度が高くなるに従って周辺領域の大きさが大きくなる
ように変更することができる。また、変更手段が記憶領
域のサイズを変更する場合、具体的には請求項2に記載
したように、画素密度が高くなるに従って記憶領域のサ
イズが大きくなるように変更することができる。
When the changing means changes the size of the peripheral area, specifically, the size of the peripheral area increases as the pixel density increases, as described in claim 2. Can be. Further, when the changing unit changes the size of the storage area, specifically, as described in claim 2, the change can be made so that the size of the storage area increases as the pixel density increases.

【0024】また、変更手段が欠陥部の周辺領域のうち
欠陥部の修正に用いる画素の間隔を変更する場合、具体
的には請求項2に記載したように、前記画素の間隔を大
きくすることができる。また、変更手段が欠陥部の検出
基準を変更する場合、具体的には請求項2に記載したよ
うに、画素密度が高くなるに従って検出される欠陥部の
数が減少するように検出基準を変更することができる。
When the changing means changes the interval between pixels used for correcting the defective portion in the peripheral area of the defective portion, specifically, the interval between the pixels is increased. Can be. Further, when the changing means changes the detection criterion of the defective portion, specifically, as described in claim 2, the detection criterion is changed so that the number of defective portions detected decreases as the pixel density increases. can do.

【0025】第2の目的を達成するために請求項3記載
の発明に係る画像処理装置は、画像記録材料に記録され
ている画像を読み取ることで得られた画像情報を、該画
像情報が表す画像の前記画像記録材料上での画素密度が
所定値になるように変換する第1変換手段と、前記画像
情報が表す画像の欠陥部を検出する検出手段と、前記第
1変換手段による変換を経た画像情報に対し、前記検出
手段によって検出された欠陥部を修正する修正手段と、
前記修正手段による修正を経た画像情報を、該画像情報
が表す画像の前記画像記録材料上での画素密度が元の値
に戻るように変換する第2変換手段と、元の画像情報と
前記第2変換手段による変換を経た画像情報とを合成す
ることで、欠陥部が修正された画像情報を生成する生成
手段と、を含んで構成されている。
According to a third aspect of the present invention, there is provided an image processing apparatus, wherein the image information represents image information obtained by reading an image recorded on an image recording material. A first conversion unit that converts the pixel density of the image on the image recording material to a predetermined value; a detection unit that detects a defective portion of the image represented by the image information; and a conversion by the first conversion unit. Correcting means for correcting a defective portion detected by the detecting means with respect to the passed image information,
A second conversion unit that converts the image information that has been corrected by the correction unit so that the pixel density of the image represented by the image information on the image recording material returns to an original value; and And generating means for generating image information in which the defective portion is corrected by combining the image information converted by the two converting means.

【0026】請求項3の発明では、画像記録材料に記録
されている画像を読み取ることで得られた画像情報を、
該画像情報が表す画像の画像記録材料上での画素密度が
所定値になるように変換する第1変換手段を備えてい
る。前述のように、画像情報上での欠陥部の規模は画像
情報が表す画像の画素密度に対応する範囲内に収まるこ
とが殆どであるので、第1変換手段により画素密度が所
定値になるように変換された画像情報は、欠陥部の規模
が所定範囲内にほぼ収まっている。
According to the third aspect of the invention, image information obtained by reading an image recorded on an image recording material is
A first conversion unit that converts the image represented by the image information so that the pixel density on the image recording material becomes a predetermined value. As described above, since the size of the defective portion on the image information mostly falls within the range corresponding to the pixel density of the image represented by the image information, the pixel density is set to a predetermined value by the first conversion unit. In the image information converted to, the scale of the defective portion is substantially within a predetermined range.

【0027】請求項3の発明に係る修正手段は、第1変
換手段による変換を経た画像情報に対し、請求項1の発
明と同様の検出手段によって検出された欠陥部を修正す
るので、欠陥部修正に関連するパラメータ(例えば請求
項1に記載した欠陥部の周辺領域の大きさ、記憶領域の
サイズ、欠陥部の検出基準等)として、画素密度が所定
値のときの適正値を予め設定しておくことで、元の画像
データ上での欠陥部の規模に拘わらず、前記パラメータ
を変更することなく欠陥部を適正に修正することができ
る。
According to a third aspect of the present invention, the correcting unit corrects the defective portion detected by the detecting unit similar to the first aspect of the present invention, with respect to the image information converted by the first converting unit. Appropriate values when the pixel density is a predetermined value are set in advance as parameters related to the correction (for example, the size of the peripheral region of the defective portion, the size of the storage region, the detection standard of the defective portion, etc.). By doing so, the defective portion can be properly corrected without changing the parameters, regardless of the size of the defective portion on the original image data.

【0028】そして、修正手段による修正を経た画像情
報は、第2変換手段により、該画像情報が表す画像の画
像記録材料上での画素密度が元の値に戻るように変換さ
れ、生成手段は、元の画像情報と第2変換手段による変
換を経た画像情報とを合成することで、欠陥部が修正さ
れた画像情報を生成するので、画像データ上での欠陥部
の規模に拘わらず、欠陥部修正に関連するパラメータを
変更することなく欠陥部を適正に修正することができ
る。
The image information corrected by the correction means is converted by the second conversion means so that the pixel density of the image represented by the image information on the image recording material returns to the original value. By synthesizing the original image information and the image information that has been converted by the second conversion means, the image information in which the defective portion has been corrected is generated, so that regardless of the size of the defective portion on the image data, The defective portion can be properly corrected without changing parameters related to the portion correction.

【0029】請求項4記載の発明は、請求項3の発明に
おいて、画像記録材料に非可視光を照射し、画像記録材
料を透過又は反射した非可視光を光電変換して得られた
非可視画像情報を取得する取得手段を更に備え、第1変
換手段は、非可視画像情報が表す画像の画像記録材料上
での画素密度も前記所定値になるように非可視画像情報
を変換し、検出手段は、第1変換手段による変換を経た
非可視画像情報を用いて欠陥部の検出を行うことを特徴
としている。
According to a fourth aspect of the present invention, in the third aspect, the non-visible light obtained by irradiating the image recording material with invisible light and photoelectrically converting the invisible light transmitted or reflected by the image recording material. The image forming apparatus further includes an obtaining unit configured to obtain image information, wherein the first converting unit converts the invisible image information so that the pixel density of the image represented by the invisible image information on the image recording material also becomes the predetermined value, and detects the image. The means detects a defective portion using the invisible image information converted by the first converting means.

【0030】請求項4の発明では、画像記録材料に非可
視光を照射し、画像記録材料を透過又は反射した非可視
光を光電変換して得られた非可視画像情報が取得手段に
よって取得され、該非可視画像情報は、該非可視画像情
報が表す画像の画像記録材料上での画素密度も所定値に
なるように第1変換手段によって変換される。これによ
り、画像記録材料上での画素密度が同一(所定値)とさ
れた画像情報及び非可視画像情報が得られる。
According to the fourth aspect of the present invention, the image recording material is irradiated with invisible light, and the invisible image information obtained by photoelectrically converting the invisible light transmitted or reflected by the image recording material is obtained by the obtaining means. The invisible image information is converted by the first conversion means so that the pixel density of the image represented by the invisible image information on the image recording material also becomes a predetermined value. Thereby, image information and invisible image information having the same (predetermined value) pixel density on the image recording material can be obtained.

【0031】そして請求項4の発明では、第1変換手段
による変換を経た非可視画像情報を用いて検出手段が欠
陥部の検出を行うので、修正手段は、検出手段による欠
陥部検出結果(例えば何れの画素が欠陥部に属する画素
かを表す情報等)をそのまま用いて、画像記録材料上で
の画素密度が所定値の画像情報に対して欠陥部を修正す
ることができる。従って請求項4の発明によれば、欠陥
部をより精度良く修正することができる。
According to the fourth aspect of the present invention, since the detecting means detects the defective part using the invisible image information converted by the first converting means, the correcting means detects the defective part by the detecting means (for example, The defective portion can be corrected with respect to the image information having a predetermined pixel density on the image recording material by directly using information indicating which pixel belongs to the defective portion. Therefore, according to the fourth aspect of the present invention, the defective portion can be corrected with higher accuracy.

【0032】請求項5記載の発明は、請求項3の発明に
おいて、生成手段は、画像中の非欠陥部領域については
元の画像情報のみを用いると共に、画像中の欠陥部領域
については、第2変換手段による変換を経た画像情報の
みを用いるか、又は元の画像情報と第2変換手段による
変換を経た画像情報の加重平均に相当する画像情報を用
い、これらを合成することで欠陥部が修正された画像情
報を生成することを特徴としている。
According to a fifth aspect of the present invention, in the third aspect of the present invention, the generating means uses only the original image information for the non-defective area in the image, and uses the first image information for the defective area in the image. By using only the image information that has been converted by the second conversion means, or by using image information equivalent to a weighted average of the original image information and the image information that has been converted by the second conversion means, and combining these, the defective portion can be obtained. It is characterized in that corrected image information is generated.

【0033】画像の画素密度が変化するように画像情報
を変換した場合、補間演算等が行われることで、該画像
情報が表す画像の鮮鋭度の低下等の画質低下が生ずる。
これに対して請求項5の発明では、画像中の非欠陥部領
域(欠陥部を除外した領域、或いは欠陥部及びその周囲
領域を除外した領域)については元の画像情報を用いる
ので、画像の大半を占める非欠陥部領域に鮮鋭度の低下
等の画質低下が生ずることを回避することができる。
When the image information is converted so that the pixel density of the image changes, image quality such as sharpness of the image represented by the image information is reduced by performing an interpolation operation or the like.
On the other hand, according to the invention of claim 5, the original image information is used for the non-defective area (the area excluding the defective area or the area excluding the defective area and its surrounding area) in the image. It is possible to prevent image quality deterioration such as deterioration in sharpness in the non-defect portion region that occupies the majority.

【0034】また、画像中の欠陥部領域(欠陥部のみ、
或いは欠陥部とその周囲領域を含んだ領域)について
は、第2変換手段による変換を経た画像情報のみを用い
るか、又は元の画像情報と第2変換手段による変換を経
た画像情報の加重平均に相当する画像情報を用い、これ
らを合成して画像情報を生成するので、第1変換手段及
び第2変換手段による変換に起因する画質の低下が抑制
されかつ欠陥部が適正に修正された画像を表す画像情報
を得ることができる。
Further, a defective area in an image (only a defective area,
Alternatively, only the image information that has been converted by the second conversion means is used for the area including the defective portion and its surrounding area), or the weighted average of the original image information and the image information that has been converted by the second conversion means is used. Since the image information is generated by synthesizing the image information using the corresponding image information, a decrease in the image quality due to the conversion by the first conversion unit and the second conversion unit is suppressed, and the image in which the defective portion is appropriately corrected is obtained. Image information to be obtained.

【0035】請求項6記載の発明に係る画像処理方法
は、画像記録材料に記録されている画像を読み取ること
で得られた画像情報に対し、該画像情報が表す画像の欠
陥部を検出し、前記画像情報に対し、前記検出した欠陥
部を修正すると共に、前記画像情報が表す画像の前記画
像記録材料上での画素密度に応じて、前記欠陥部の検出
又は前記欠陥部の修正に関連するパラメータを変更する
ので、請求項1の発明と同様に、画像データ上での欠陥
部の規模に応じた適正な欠陥部修正を簡易に実現するこ
とができる。
In the image processing method according to the present invention, a defective portion of an image represented by the image information is detected for image information obtained by reading an image recorded on an image recording material, For the image information, while correcting the detected defective portion, according to the pixel density of the image represented by the image information on the image recording material, related to the detection of the defective portion or the correction of the defective portion Since the parameters are changed, it is possible to easily realize appropriate defect correction in accordance with the scale of the defect on the image data, similarly to the first aspect of the present invention.

【0036】請求項7記載の発明に係る画像処理方法
は、画像記録材料に記録されている画像を読み取ること
で得られた画像情報を、該画像情報が表す画像の前記画
像記録材料上での画素密度が所定値になるように変換す
る第1の変換を行うと共に、前記画像情報が表す画像の
欠陥部を検出し、前記第1の変換を経た画像情報に対
し、前記検出した欠陥部を修正し、前記欠陥部の修正を
経た画像情報を、該画像情報が表す画像の前記画像記録
材料上での画素密度が元の値に戻るように変換する第2
の変換を行い、元の画像情報と前記第2の変換を経た画
像情報とを合成することで、欠陥部が修正された画像情
報を生成するので、請求項3の発明と同様に、画像デー
タ上での欠陥部の規模に拘わらず、欠陥部修正に関連す
るパラメータを変更することなく欠陥部を適正に修正す
ることができる。
According to a seventh aspect of the present invention, in the image processing method, the image information obtained by reading the image recorded on the image recording material is converted into an image represented by the image information on the image recording material. A first conversion for converting the pixel density to a predetermined value is performed, a defective portion of an image represented by the image information is detected, and the detected defective portion is determined with respect to the image information that has undergone the first conversion. A second step of converting the image information after the correction and the correction of the defective portion so that the pixel density of the image represented by the image information on the image recording material returns to the original value.
Is performed, and the original image information and the image information that has undergone the second conversion are combined to generate image information in which the defective portion has been corrected. Irrespective of the size of the defective portion described above, the defective portion can be properly corrected without changing parameters related to the defective portion correction.

【0037】請求項8記載の発明に係る記録媒体は、画
像記録材料に記録されている画像を読み取ることで得ら
れた画像情報に対し、該画像情報が表す画像の欠陥部を
検出する第1のステップ、前記画像情報に対し、前記検
出した欠陥部を修正する第2のステップ、及び、前記第
1のステップ及び前記第2のステップの少なくとも一方
を行う前に、前記画像情報が表す画像の前記画像記録材
料上での画素密度に応じて、前記欠陥部の検出又は前記
欠陥部の修正に関連するパラメータを変更する第3のス
テップを含む処理をコンピュータに実行させるためのプ
ログラムが記録されている。
According to the recording medium of the present invention, there is provided a first medium for detecting a defective portion of an image represented by image information obtained by reading an image recorded on an image recording material. Step, a second step of correcting the detected defective portion with respect to the image information, and before performing at least one of the first step and the second step, the image represented by the image information A program for causing a computer to execute a process including a third step of changing a parameter related to detection of the defective portion or correction of the defective portion according to a pixel density on the image recording material is recorded. I have.

【0038】請求項8記載の発明に係る記録媒体には、
上記第1乃至第3のステップを含む処理、すなわちコン
ピュータを、請求項1に記載の画像処理装置として機能
させるためのプログラムが記録されているので、コンピ
ュータが前記記録媒体に記録されたプログラムを読み出
して実行することにより、請求項1の発明と同様に、画
像データ上での欠陥部の規模に応じた適正な欠陥部修正
を簡易に実現することができる。
The recording medium according to the invention of claim 8 includes:
A process including the first to third steps, that is, a program for causing a computer to function as the image processing apparatus according to claim 1 is recorded, so that the computer reads the program recorded on the recording medium. As a result, in the same manner as in the first aspect of the present invention, it is possible to easily realize appropriate correction of a defective portion in accordance with the size of the defective portion on the image data.

【0039】請求項9記載の発明に係る記録媒体は、画
像記録材料に記録されている画像を読み取ることで得ら
れた画像情報を、該画像情報が表す画像の前記画像記録
材料上での画素密度が所定値になるように変換する第1
の変換を行うと共に、前記画像情報が表す画像の欠陥部
を検出する第1のステップ、前記第1の変換を経た画像
情報に対し、前記検出した欠陥部を修正する第2のステ
ップ、前記欠陥部の修正を経た画像情報を、該画像情報
が表す画像の前記画像記録材料上での画素密度が元の値
に戻るように変換する第2の変換を行う第3のステッ
プ、及び、元の画像情報と前記第2の変換を経た画像情
報とを合成することで、欠陥部が修正された画像情報を
生成する第4のステップを含む処理をコンピュータに実
行させるためのプログラムが記録されている。
According to a ninth aspect of the present invention, there is provided the recording medium, wherein image information obtained by reading an image recorded on the image recording material is converted into a pixel of the image represented by the image information on the image recording material. First to convert the density to a predetermined value
A first step of detecting a defective portion of an image represented by the image information, a second step of correcting the detected defective portion with respect to the image information having undergone the first conversion, A third step of performing a second conversion of converting the image information that has undergone the modification of the section so that the pixel density of the image represented by the image information on the image recording material returns to the original value; and A program for causing a computer to execute a process including a fourth step of generating image information in which a defective portion has been corrected by synthesizing image information and image information that has undergone the second conversion is recorded. .

【0040】請求項9記載の発明に係る記録媒体には、
上記第1乃至第4のステップを含む処理、すなわちコン
ピュータを、請求項3に記載の画像処理装置として機能
させるためのプログラムが記録されているので、コンピ
ュータが前記記録媒体に記録されたプログラムを読み出
して実行することにより、請求項3の発明と同様に、画
像データ上での欠陥部の規模に拘わらず、欠陥部修正に
関連するパラメータを変更することなく欠陥部を適正に
修正することができる。
The recording medium according to the ninth aspect of the present invention includes:
Since the program including the first to fourth steps, that is, a program for causing a computer to function as the image processing apparatus according to claim 3 is recorded, the computer reads the program recorded on the recording medium. As a result, the defective portion can be appropriately corrected without changing the parameters related to the defective portion regardless of the size of the defective portion on the image data. .

【0041】[0041]

【発明の実施の形態】以下、図面を参照して本発明の実
施形態の一例を詳細に説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below in detail with reference to the drawings.

【0042】〔第1実施形態〕図1には、本実施形態に
係る画像処理システム10が示されている。画像処理シ
ステム10は、フィルムスキャナ12、画像処理装置1
4及びプリンタ16が直列に接続されて構成されてい
る。なお、フィルムスキャナ12及び画像処理装置14
は本発明に係る画像処理装置に対応している。
[First Embodiment] FIG. 1 shows an image processing system 10 according to the present embodiment. The image processing system 10 includes a film scanner 12, an image processing apparatus 1
4 and the printer 16 are connected in series. The film scanner 12 and the image processing device 14
Corresponds to the image processing apparatus according to the present invention.

【0043】フィルムスキャナ12は、写真フィルム
(例えばネガフィルムやリバーサルフィルム)等の写真
感光材料(以下単に写真フィルムと称する)に記録され
ている画像(被写体を撮影後、現像処理されることで可
視化されたネガ画像又はポジ画像)を読み取り、該読み
取りによって得られた画像データを出力するものであ
り、図2にも示すように、ハロゲンランプ等から成り写
真フィルム26に光を照射する光源20を備えている。
なお、光源から射出される光は可視光域の波長の光及び
赤外域の波長の光を各々含んでいる。
The film scanner 12 visualizes an image recorded on a photographic material (hereinafter simply referred to as a photographic film) such as a photographic film (for example, a negative film or a reversal film) by taking an image of the subject and developing it. A negative light source or a positive light source image) is read, and image data obtained by the reading is output. As shown in FIG. Have.
The light emitted from the light source includes light having a wavelength in the visible light range and light having a wavelength in the infrared range.

【0044】光源20の光射出側には、写真フィルム2
6に照射する光の光量を調節するための絞り21、フィ
ルタユニット23、写真フィルム26に照射する光を拡
散光とする光拡散ボックス22が順に配置されている。
フィルタユニット23は、入射光のうちRに相当する波
長域の光(R光)のみ透過させるフィルタ23Cと、入
射光のうちGに相当する波長域の光(G光)のみ透過さ
せるフィルタ23Mと、入射光のうちBに相当する波長
域の光(B光)のみ透過させるフィルタ23Yと、入射
光のうち赤外域の光(IR光)のみ透過させるフィルタ
23IRの4個のフィルタが、図2矢印A方向に沿って
回転可能とされたターレット23Aに嵌め込まれて構成
されている。
On the light exit side of the light source 20, a photographic film 2
A stop 21, a filter unit 23, and a light diffusion box 22 for diffusing the light irradiated on the photographic film 26 are arranged in this order.
The filter unit 23 includes a filter 23C that transmits only light in a wavelength range corresponding to R (R light) of incident light, and a filter 23M that transmits only light in a wavelength range corresponding to G (G light) of incident light. A filter 23Y that transmits only light in a wavelength range corresponding to B (B light) of incident light and a filter 23IR that transmits only infrared light (IR light) of the incident light are shown in FIG. It is configured to be fitted into a turret 23A rotatable in the direction of arrow A.

【0045】写真フィルム26を挟んで光源20と反対
側には、光軸Lに沿って、写真フィルム26を透過した
光を結像させる結像レンズ(ズームレンズ)28、エリ
アCCD30が順に配置されている。エリアCCD30
は、各々可視光域及び赤外域に感度を有する多数のCC
Dセルがマトリクス状に配列されたモノクロのCCDで
あり、受光面が結像レンズ28の結像点位置に略一致す
るように配置されている。また、エリアCCD30と結
像レンズ28との間にはシャッタ(図示省略)が設けら
れている。
On the opposite side of the photographic film 26 from the light source 20, an imaging lens (zoom lens) 28 for forming an image of light transmitted through the photographic film 26 and an area CCD 30 are arranged in order along the optical axis L. ing. Area CCD30
Means a number of CCs each having sensitivity in the visible and infrared regions.
It is a monochrome CCD in which D cells are arranged in a matrix, and is arranged such that the light receiving surface substantially coincides with the imaging point position of the imaging lens 28. A shutter (not shown) is provided between the area CCD 30 and the imaging lens 28.

【0046】エリアCCD30はCCDドライバ31を
介してスキャナ制御部33に接続されている。スキャナ
制御部33はCPU、ROM(例えば記憶内容を書換え
可能なROM)、RAM及び入出力ポートを備え、これ
らがバス等を介して互いに接続されて構成されている。
スキャナ制御部33はフィルムスキャナ12の各部の動
作を制御する。また、CCDドライバ31はエリアCC
D30を駆動するための駆動信号を生成し、エリアCC
D30の駆動を制御する。
The area CCD 30 is connected to a scanner controller 33 via a CCD driver 31. The scanner control unit 33 includes a CPU, a ROM (for example, a ROM whose storage content is rewritable), a RAM, and an input / output port, which are connected to each other via a bus or the like.
The scanner control unit 33 controls the operation of each unit of the film scanner 12. In addition, the CCD driver 31 has an area CC.
A drive signal for driving D30 is generated, and area CC is generated.
The driving of D30 is controlled.

【0047】写真フィルム26はフィルムキャリア24
(図1参照、図2では図示省略)によって搬送され、画
像の画面中心が光軸Lに一致する位置(読取位置)に位
置決めされる。また、スキャナ制御部33は画像が読取
位置に位置決めされている状態で、フィルタ23IRを
含む全てのフィルタ23が順に光軸L上に位置するよう
にフィルタユニット23のターレット23Aを回転駆動
させると共に、所定の読取条件に対応するエリアCCD
30の電荷蓄積時間をCCDドライバ31へ設定し、絞
り21を前記所定の読取条件に対応する位置へ移動させ
ると共に、結像レンズ28による光学倍率(ズーム倍
率)を前記所定の読取条件に対応する所定の倍率に調整
する。
The photographic film 26 is a film carrier 24
(See FIG. 1; not shown in FIG. 2), and is positioned at a position (reading position) where the screen center of the image coincides with the optical axis L. Further, the scanner control unit 33 rotates the turret 23A of the filter unit 23 so that all the filters 23 including the filter 23IR are sequentially positioned on the optical axis L in a state where the image is positioned at the reading position. Area CCD corresponding to predetermined reading conditions
The charge accumulation time of the CCD 30 is set in the CCD driver 31, the aperture 21 is moved to a position corresponding to the predetermined reading condition, and the optical magnification (zoom magnification) of the imaging lens 28 corresponds to the predetermined reading condition. Adjust to a predetermined magnification.

【0048】これにより、写真フィルム26上の画像記
録領域に各フィルタ23に対応する波長域(R又はG又
はB又はIR)の光が順に照射され、写真フィルム26
上の画像記録領域を透過した光は、結像レンズ28を介
しエリアCCD30に入射されてエリアCCD30によ
って光電変換され、透過光量を表す信号としてエリアC
CD30から出力される。エリアCCD30から出力さ
れた信号は、A/D変換器32によって透過光量を表す
デジタルデータに変換されて画像処理装置14に入力さ
れる。
Thus, the image recording area on the photographic film 26 is irradiated with light in the wavelength range (R, G, B, or IR) corresponding to each filter 23 in order, and
The light transmitted through the upper image recording area enters the area CCD 30 via the imaging lens 28, is photoelectrically converted by the area CCD 30, and outputs a signal representing the transmitted light amount to the area CCD 30.
Output from CD30. The signal output from the area CCD 30 is converted into digital data representing the amount of transmitted light by the A / D converter 32 and input to the image processing device 14.

【0049】なお、R、G、Bの各波長域の光の透過光
量は、画像記録領域に記録されている画像のR,G,B
濃度に応じて変化する(写真フィルム26に傷や異物が
付いていた場合にはこれらによっても変化するが、IR
光の透過光量は画像濃度の影響を受けず、傷や異物等の
みによって変化する)。従って、R、G、Bの各波長域
の透過光を光電変換することは画像を読み取ることに相
当し、以下では、画像処理装置14に入力されるR、
G、B、IRの各波長域のデータのうちIRを除くR、
G、Bの各データを画像データと称する。なお、R,
G,Bの画像データは本発明に係る画像情報に対応して
おり、IRデータは非可視画像情報に対応している。
The amount of transmitted light in each of the R, G, and B wavelength ranges is based on the R, G, and B of the image recorded in the image recording area.
It changes according to the density (if the photographic film 26 has scratches or foreign matter, it also changes due to these.
The amount of transmitted light is not affected by the image density and changes only due to scratches or foreign matter. Therefore, photoelectrically converting the transmitted light in each of the R, G, and B wavelength ranges corresponds to reading an image. In the following, R, G, and B input to the image processing device 14 will be described.
R, excluding IR, of data of each wavelength range of G, B, IR
Each data of G and B is called image data. Note that R,
The G and B image data correspond to the image information according to the present invention, and the IR data corresponds to the invisible image information.

【0050】一方、画像処理装置14のスキャナ補正部
36は、入力された画像データ(及びIRデータ)に対
し、暗補正、濃度変換、シェーディング補正等の各種の
補正処理を順に行う。スキャナ補正部36の出力端はI
/Oコントローラ38の入力端に接続されており、スキ
ャナ補正部36で前記各処理が施された画像データはI
/Oコントローラ38に入力される。I/Oコントロー
ラ38の入力端は、イメージプロセッサ40のデータ出
力端にも接続されており、イメージプロセッサ40から
画像処理(詳細は後述)が行われた画像データが入力さ
れる。
On the other hand, the scanner correction section 36 of the image processing device 14 sequentially performs various correction processes such as dark correction, density conversion, shading correction, and the like on the input image data (and IR data). The output terminal of the scanner correction unit 36 is I
The image data, which is connected to the input terminal of the I / O controller 38 and has been subjected to the above-described processing by the scanner correction unit 36, is
/ O controller 38. An input terminal of the I / O controller 38 is also connected to a data output terminal of the image processor 40, and receives image data subjected to image processing (details will be described later) from the image processor 40.

【0051】また、I/Oコントローラ38の入力端は
制御部42にも接続されている。制御部42は拡張スロ
ット(図示省略)を備えており、この拡張スロットに
は、デジタルスチルカメラに装填可能なPCカードやI
Cカード(以下、これらをデジタルカメラカードと総称
する)、CD−ROMやMO、CD−R等の情報記憶媒
体に対してデータ(或いはプログラム)の読出し/書込
みを行うドライバ(図示省略)や、他の情報処理機器と
通信を行うための通信制御装置が接続される。拡張スロ
ットを介して外部から入力された画像データはI/Oコ
ントローラ38へ入力される。
The input terminal of the I / O controller 38 is also connected to the control unit 42. The control unit 42 has an expansion slot (not shown). The expansion slot includes a PC card or an I / O card that can be loaded into the digital still camera.
A driver (not shown) for reading / writing data (or a program) from / to an information storage medium such as a C card (hereinafter collectively referred to as a digital camera card), a CD-ROM, an MO, and a CD-R; A communication control device for communicating with another information processing device is connected. Image data input from outside via the expansion slot is input to the I / O controller 38.

【0052】I/Oコントローラ38の出力端は、イメ
ージプロセッサ40のデータ入力端及び制御部42に各
々接続されており、更にI/F回路54を介してプリン
タ16に接続されている。I/Oコントローラ38は、
入力された画像データを、出力端に接続された前記各機
器に選択的に出力する。
The output terminal of the I / O controller 38 is connected to the data input terminal of the image processor 40 and the control unit 42, and further connected to the printer 16 via the I / F circuit 54. The I / O controller 38
The input image data is selectively output to each of the devices connected to the output terminal.

【0053】本実施形態では、写真フィルム26に記録
されている個々の画像に対し、フィルムスキャナ12に
おいて異なる解像度で2回の読み取りを行う。1回目の
読み取り(プレスキャン)では、画像の濃度が非常に低
い場合にも、エリアCCD30で蓄積電荷の飽和が生じ
ないように決定した読取条件で各画像の読み取りが行わ
れる。なお、本実施形態ではプレスキャン時にはIR読
み取りは行なわない。このプレスキャンによって得られ
たデータ(プレスキャン画像データ)は、I/Oコント
ローラ38から制御部42へ入力される。
In the present embodiment, each image recorded on the photographic film 26 is read twice by the film scanner 12 at different resolutions. In the first reading (pre-scan), even when the density of the image is very low, each image is read under the reading conditions determined so that the accumulated charge is not saturated in the area CCD 30. In this embodiment, IR reading is not performed at the time of prescan. Data (pre-scan image data) obtained by this pre-scan is input from the I / O controller 38 to the control unit 42.

【0054】制御部42は、CPU46、RAM48、
ROM50(例えば記憶内容を書換え可能なROM)、
入出力ポート52を備え、これらがバスを介して互いに
接続されて構成されている。制御部42は、I/Oコン
トローラ38から入力されたプレスキャン画像データに
基づいて画像のサイズ(アスペクト比)を判断すると共
に、画像の濃度等の画像特徴量を演算し、各画像に対
し、フィルムスキャナ12が再度読み取り(ファインス
キャン)を行う際の読取条件を決定し、決定した読取条
件をフィルムスキャナ12に出力する。
The control unit 42 includes a CPU 46, a RAM 48,
ROM 50 (for example, a ROM whose storage content can be rewritten),
An input / output port 52 is provided, and these are connected to each other via a bus. The control unit 42 determines an image size (aspect ratio) based on the pre-scan image data input from the I / O controller 38, calculates an image feature amount such as an image density, and calculates an image feature amount for each image. The reading conditions when the film scanner 12 performs reading (fine scan) again are determined, and the determined reading conditions are output to the film scanner 12.

【0055】なお、読取条件には画像の読取倍率(光学
倍率)も含まれている。この読取倍率は画像のアスペク
ト比等に基づいて決定される。例えば135サイズの写
真フィルムに記録されている画像のうち、ハイビジョン
サイズやパノラマサイズに相当するアスペクト比の画像
は、フレームサイズは小さいものの印画紙への画像の記
録サイズは通常のフルサイズの画像よりも大きい。この
ため、印画紙に記録する際の画質劣化を考慮し、通常サ
イズよりも高い読取倍率(例えば読取解像度(画素密
度)が2倍となる倍率)が設定される。
The reading conditions include an image reading magnification (optical magnification). The reading magnification is determined based on the aspect ratio of the image and the like. For example, among images recorded on a 135-size photographic film, an image having an aspect ratio equivalent to a high-definition size or a panorama size has a smaller frame size but has a smaller recording size of an image on photographic paper than a normal full-size image. Is also big. For this reason, a reading magnification (for example, a magnification at which the reading resolution (pixel density) is doubled) higher than the normal size is set in consideration of image quality deterioration when recording on photographic paper.

【0056】また制御部42は、プレスキャン画像デー
タに基づいて、画像中の主要画像領域(例えば人物の顔
に相当する領域(顔領域))の抽出を含む画像特徴量の演
算を行い、フィルムスキャナ12がファインスキャンを
行うことによって得られる画像データ(ファインスキャ
ン画像データ)に対する各種の画像処理の処理条件を演
算により自動的に決定し(セットアップ演算)、決定し
た処理条件をイメージプロセッサ40へ出力する。
The control unit 42 calculates an image feature amount including extraction of a main image area (for example, an area corresponding to a person's face (face area)) in the image based on the pre-scanned image data. The scanner 12 automatically determines the processing conditions of various image processing for the image data (fine scan image data) obtained by performing the fine scan by calculation (setup calculation), and outputs the determined processing conditions to the image processor 40. I do.

【0057】例えば各種の画像処理の1つである画素密
度変換処理(所謂電子変倍処理)については、制御部4
2は、画像読み取りにおける読取解像度(画像読み取り
時の光学倍率及びエリアCCD30のセル数から求ま
る)及び出力用画像データの画素数(出力用画像データ
の用途(例えば印画紙に記録/表示手段に表示/情報記
憶媒体へ格納)に応じて定まる)に基づいて、画素密度
変換処理の処理条件である電子変倍率(:画素密度変換
率=変換後の画素密度/変換前の画素密度)を演算によ
って決定している。
For example, a pixel density conversion process (so-called electronic scaling process), which is one of various image processes, is performed by the control unit 4.
Reference numeral 2 denotes a reading resolution in image reading (determined from the optical magnification at the time of image reading and the number of cells of the area CCD 30) and the number of pixels of output image data (use of output image data (for example, display on recording / display means on photographic paper) / Storage in the information storage medium), the electronic scaling ratio (pixel density conversion rate = pixel density after conversion / pixel density before conversion), which is the processing condition of the pixel density conversion processing, is calculated. I have decided.

【0058】なお、制御部42は、フィルムスキャナ1
2から入力されたIRデータに基づいて、画像データが
表す画像中に、写真フィルム26に付いている傷や塵埃
等の異物に起因する欠陥部が生じているか否かを探索す
る機能、イメージプロセッサ40が欠陥部修正処理を行
うためのパラメータを設定する機能を有している。ま
た、制御部42のバスにはディスプレイ43、キーボー
ド44及びマウス(図示省略)が接続されている。
The control unit 42 is provided with the film scanner 1
A function for searching whether or not a defective portion caused by a foreign matter such as a scratch or dust attached to the photographic film 26 is present in an image represented by the image data, based on the IR data input from Step 2 Reference numeral 40 has a function of setting parameters for performing the defective portion correcting process. A display 43, a keyboard 44, and a mouse (not shown) are connected to the bus of the control unit 42.

【0059】制御部42は、演算した画像処理の処理条
件に基づき、ファインスキャン画像データを対象として
イメージプロセッサ40で行われる画像処理と等価な画
像処理をプレスキャン画像データに対して行ってシミュ
レーション画像データを生成する。そして、生成したシ
ミュレーション画像データを、ディスプレイ43に画像
を表示するための信号に変換し、該信号に基づいてディ
スプレイ43にシミュレーション画像を表示する。ま
た、表示されたシミュレーション画像に対しオペレータ
によって画質等の検定が行われ、検定結果として処理条
件の修正を指示する情報がキーボード44やマウスを介
して入力されると、入力された情報に基づいて画像処理
の処理条件の再演算等を行う。
The control unit 42 performs image processing equivalent to the image processing performed by the image processor 40 on the fine scan image data on the pre-scan image data based on the calculated processing conditions of the image processing. Generate data. Then, the generated simulation image data is converted into a signal for displaying an image on the display 43, and the simulation image is displayed on the display 43 based on the signal. In addition, when the operator checks the displayed simulation image for image quality and the like, and information indicating correction of processing conditions is input as a result of the inspection via the keyboard 44 or the mouse, the operator performs a test based on the input information. Recalculation of the processing conditions of the image processing is performed.

【0060】一方、フィルムスキャナ12で画像に対し
てファインスキャンが行われることによってI/Oコン
トローラ38に入力された画像データ(ファインスキャ
ン画像データ)は、I/Oコントローラ38からイメー
ジプロセッサ40へ入力される。なお、このファインス
キャンは、先に制御部42によって演算された読取条件
に従い、エリアCCD30の電荷蓄積時間、絞り21の
位置、及び結像レンズ28による光学倍率を調整しなが
ら行われる。
On the other hand, the image data (fine scan image data) input to the I / O controller 38 by performing the fine scan on the image by the film scanner 12 is input from the I / O controller 38 to the image processor 40. Is done. The fine scan is performed while adjusting the charge accumulation time of the area CCD 30, the position of the diaphragm 21, and the optical magnification by the imaging lens 28 according to the reading conditions calculated by the control unit 42 previously.

【0061】イメージプロセッサ40は、階調変換や色
変換を含む色・濃度補正処理、画素密度変換処理(所謂
電子変倍処理)、画像の超低周波輝度成分の階調を圧縮
するハイパートーン処理、粒状を抑制しながらシャープ
ネスを強調するハイパーシャープネス処理等の各種の画
像処理を行う画像処理回路を各々備えており、入力され
た画像データに対し、制御部42によって各画像毎に決
定されて通知された処理条件に従って種々の画像処理を
行う。また、イメージプロセッサ40は制御部42によ
って設定されたパラメータに従って欠陥部修正処理を行
う機能を有している。
The image processor 40 performs color / density correction processing including gradation conversion and color conversion, pixel density conversion processing (so-called electronic scaling processing), and hypertone processing for compressing the gradation of an ultra-low frequency luminance component of an image. And image processing circuits for performing various image processing such as hyper-sharpness processing for enhancing sharpness while suppressing graininess. The control unit 42 determines input image data for each image and notifies the image data. Various image processing is performed according to the set processing conditions. Further, the image processor 40 has a function of performing a defective portion correcting process according to the parameters set by the control unit 42.

【0062】イメージプロセッサ40で画像処理が行わ
れた画像データを印画紙への画像の記録に用いる場合に
は、イメージプロセッサ40で画像処理が行われた画像
データは、I/Oコントローラ38からI/F回路54
を介し記録用画像データとしてプリンタ16へ出力され
る。また、画像処理後の画像データを画像ファイルとし
て外部へ出力する場合は、I/Oコントローラ38から
制御部42へ画像データが出力される。これにより、制
御部42では、外部への出力用としてI/Oコントロー
ラ38から入力された画像データを、拡張スロットを介
して画像ファイルとして外部(前記ドライバや通信制御
装置等)に出力する。
When the image data processed by the image processor 40 is used for recording an image on photographic paper, the image data processed by the image processor 40 is transmitted from the I / O controller 38 to the I / O controller 38. / F circuit 54
Is output to the printer 16 as image data for recording via the. When the image data after the image processing is output to the outside as an image file, the image data is output from the I / O controller 38 to the control unit 42. As a result, the control unit 42 outputs the image data input from the I / O controller 38 for output to the outside to the outside (the driver, the communication control device, or the like) as an image file via the expansion slot.

【0063】プリンタ16は、画像メモリ58、R,
G,Bのレーザ光源60、該レーザ光源60の作動を制
御するレーザドライバ62を備えている。画像処理装置
14から入力された記録用画像データは画像メモリ58
に一旦記憶された後に読み出され、レーザ光源60から
射出されるR,G,Bのレーザ光の変調に用いられる。
レーザ光源60から射出されたレーザ光は、ポリゴンミ
ラー64、fθレンズ66を介して印画紙68上を走査
され、印画紙68に画像が露光記録される。画像が露光
記録された印画紙68は、プロセッサ部18へ送られて
発色現像、漂白定着、水洗、乾燥の各処理が施される。
これにより、印画紙68に露光記録された画像が可視化
される。
The printer 16 has image memories 58, R,
G and B laser light sources 60 and a laser driver 62 for controlling the operation of the laser light sources 60 are provided. The recording image data input from the image processing device 14 is stored in an image memory 58.
Is read out after being stored once, and is used for modulating the R, G, B laser light emitted from the laser light source 60.
The laser light emitted from the laser light source 60 is scanned on a printing paper 68 via a polygon mirror 64 and an fθ lens 66, and an image is exposed and recorded on the printing paper 68. The photographic paper 68 on which the image has been exposed and recorded is sent to the processor section 18 and subjected to color development, bleach-fixing, washing and drying.
Thus, the image recorded on the printing paper 68 by exposure is visualized.

【0064】次に本実施形態の作用として、スキャナ1
2から画像処理装置14にファインスキャン画像データ
が入力され、該画像データに対しイメージプロセッサ4
0において画素密度変換等の処理が行われると制御部4
2で実行される欠陥部修正値決定処理について説明す
る。
Next, as an operation of the present embodiment, the scanner 1
2, fine scan image data is input to the image processing device 14, and the image processor 4
When processing such as pixel density conversion is performed at 0, the control unit 4
The defective part correction value determination processing executed in Step 2 will be described.

【0065】欠陥部修正値決定処理は、請求項6に記載
の画像処理方法が適用された処理であり、制御部42の
CPU46により、欠陥部修正値決定プログラムが実行
されることによって実現される。欠陥部修正値決定プロ
グラムは、その他の処理をCPU46で実行させるため
のプログラムと共に、当初は、情報記憶媒体72(図1
参照)に記憶されている。なお、図1では情報記憶媒体
72をフロッピーディスクとして示しているが、CD−
ROMやメモリカード等で構成してもよい。
The defective part correction value determination processing is processing to which the image processing method according to claim 6 is applied, and is realized by the CPU 46 of the control unit 42 executing a defective part correction value determination program. . The defective part correction value determination program initially includes an information storage medium 72 (FIG. 1) together with a program for causing the CPU 46 to execute other processing.
Reference). Although the information storage medium 72 is shown as a floppy disk in FIG.
You may comprise with ROM, a memory card, etc.

【0066】制御部42に接続された情報読出装置(図
示省略)に情報記憶媒体72が装填され、情報記憶媒体
72から画像処理装置14へのプログラムの移入(イン
ストール)が指示されると、情報読出装置によって情報
記憶媒体72から欠陥部修正値決定プログラム等が読み
出され、記憶内容を書換え可能なROM50に記憶され
る。そして、欠陥部修正値決定処理を実行すべきタイミ
ングが到来すると、ROM50から欠陥部修正値決定プ
ログラムが読み出され、該プログラムがCPU46によ
って実行される。これにより、画像処理装置14は請求
項1に記載の画像処理装置として機能する。このよう
に、欠陥部修正値決定プログラム等を記憶している情報
記憶媒体72は請求項8に記載の記録媒体に対応してい
る。
When an information storage medium 72 is loaded into an information reading device (not shown) connected to the control unit 42 and transfer of a program (installation) from the information storage medium 72 to the image processing apparatus 14 is instructed, the information The reading device reads a defective part correction value determination program or the like from the information storage medium 72 and stores the stored content in the rewritable ROM 50. When the timing to execute the defective part correction value determination processing comes, the defective part correction value determination program is read from the ROM 50 and executed by the CPU 46. Thus, the image processing device 14 functions as the image processing device according to the first aspect. Thus, the information storage medium 72 storing the defective part correction value determination program and the like corresponds to the recording medium according to claim 8.

【0067】以下、欠陥部修正値決定処理について、図
3のフローチャートを参照して説明する。ステップ10
0では、処理対象の単一の画像のR,G,Bの画像デー
タ及びIRデータ(イメージプロセッサ40で画素密度
変換等の処理を経たデータ)をRAM48等に取り込
む。次のステップ102では、処理対象の画像に対する
読取解像度及び電子変倍率に基づいて、画像データが表
す画像の写真フィルム26上での画素密度(以下、単に
「画像データの画素密度」という)を演算する。
Hereinafter, the defective portion correction value determination processing will be described with reference to the flowchart of FIG. Step 10
At 0, the R, G, and B image data and IR data (data that have undergone processing such as pixel density conversion by the image processor 40) of a single image to be processed are loaded into the RAM 48 or the like. In the next step 102, the pixel density of the image represented by the image data on the photographic film 26 (hereinafter simply referred to as "pixel density of the image data") is calculated based on the reading resolution and the electronic magnification of the image to be processed. I do.

【0068】ステップ104では、ステップ102で演
算された画像データの画素密度に応じて、欠陥部の検出
基準(欠陥部と判定するか否かの閾値(IR光量変動
値))、欠陥部の修正に用いる欠陥部の周囲領域の大き
さ、欠陥部の修正に際してデータを一時記憶するための
ワーク領域のサイズの各パラメータの値を決定する。本
実施形態では、例えば図4(A)乃至(C)に示したよ
うなマップを用い、先に求めた画像データの画素密度に
対応する値を抽出することで上記の各パラメータの値を
決定している。このステップ104は請求項1に記載の
変更手段(詳しくは請求項2に記載の変更手段)に対応
している。
In step 104, the detection criteria for the defective portion (threshold value (IR light amount fluctuation value) for determining whether or not the image is a defective portion) and the correction of the defective portion in accordance with the pixel density of the image data calculated in step 102. The value of each parameter of the size of the area around the defective portion used for the above and the size of the work area for temporarily storing data when correcting the defective portion is determined. In the present embodiment, the values of the above-described parameters are determined by extracting values corresponding to the pixel densities of the image data obtained in advance, using maps such as those shown in FIGS. are doing. This step 104 corresponds to the changing means described in claim 1 (specifically, the changing means described in claim 2).

【0069】次のステップ106では、RAM48等に
取り込んだR,G,Bの画像データ及びIRデータに基
づき、R,G,Bの画像データが表す処理対象の画像の
欠陥部を検出する欠陥部検出処理を行う。まず欠陥部検
出処理の説明に先立ち、写真フィルムに傷や異物の付い
ている箇所のIR光による検出の原理について説明す
る。
In the next step 106, based on the R, G, B image data and IR data fetched into the RAM 48 and the like, a defective portion of the image to be processed represented by the R, G, B image data is detected. Perform detection processing. Prior to the description of the defect detection processing, the principle of detection of a spot on a photographic film with a scratch or a foreign substance using IR light will be described.

【0070】図5(A)に示すように、写真フィルム上
の表面に傷や異物が付いていない箇所に光を照射したと
きの透過光量は、写真フィルムへの入射光量に対し、写
真フィルムによる光の吸収に応じた減衰量だけ減衰す
る。なお、写真フィルムで光の吸収が生ずる波長域はお
およそ可視光域であり、赤外域のIR光については殆ど
吸収されないので、前記傷や異物が付いていない箇所に
IR光を照射した場合の透過光量は入射光量から僅かに
変化するのみである。
As shown in FIG. 5 (A), the amount of transmitted light when light is applied to a portion on the surface of the photographic film where no scratch or foreign matter is attached is larger than the amount of light incident on the photographic film by the photographic film. Attenuates by the amount of attenuation according to light absorption. The wavelength range in which light is absorbed in the photographic film is approximately the visible light range, and IR light in the infrared range is hardly absorbed. The light quantity only slightly changes from the incident light quantity.

【0071】一方、写真フィルム上の傷が付いている箇
所に光を照射した場合、照射された光の一部は傷によっ
て屈折するので、前記傷が付いている箇所に光を照射し
たときの透過光量(前記箇所を直線的に透過する光の光
量)は、写真フィルムへの入射光量に対し、前述した写
真フィルムによる光の吸収に起因する減衰に、傷による
光の屈折に起因する減衰を加えた減衰量だけ減衰する。
なお、図5(A)では光の入射側に傷が付いている場合
を示しているが、光の射出側に傷が付いている場合も同
様である。
On the other hand, when light is applied to a spot on a photographic film having a flaw, a part of the irradiated light is refracted by the flaw. The amount of transmitted light (the amount of light transmitted linearly through the above-mentioned portion) is determined by the amount of light incident on the photographic film, the amount of attenuation caused by the absorption of light by the photographic film, and the amount of attenuation caused by refraction of light by scratches. Attenuates by the added amount of attenuation.
Note that FIG. 5A shows a case where the light incidence side has a flaw, but the same applies to a case where the light emission side has a flaw.

【0072】傷による光の屈折はIR光でも生ずるの
で、前記傷が付いている箇所にIR光を照射した場合の
IR光の透過光量は、傷による光の屈折に起因する減衰
に応じた減衰量だけ減衰する。なお傷による光の屈折
は、例として図5(B)にも示すように、傷の規模(深
さ等)が大きくなるに伴って顕著となる(可視光もIR
光も同様)ので、前記傷が付いている箇所にIR光を照
射した場合の透過光量は傷の規模が大きくなるに従って
小さくなる。従って、IR光の透過光量の減衰量に基づ
いて、写真フィルムに付いている傷の規模も検知するこ
とができる。
Since refraction of light due to a scratch is also caused by IR light, the amount of transmitted IR light when the above-mentioned scratched portion is irradiated with IR light is attenuated according to attenuation caused by refraction of light due to the scratch. Decay by an amount. As shown in FIG. 5B, the refraction of light due to the flaw becomes remarkable as the scale (depth or the like) of the flaw increases (visible light also has IR rays).
(The same applies to light.) Therefore, the amount of transmitted light when the above-mentioned scratched portion is irradiated with IR light decreases as the scale of the scratch increases. Therefore, the scale of the flaw on the photographic film can be detected based on the attenuation of the amount of transmitted IR light.

【0073】また、写真フィルム上の塵埃等の異物がつ
いている箇所に光を照射した場合、照射した光は異物に
よって反射されるので、異物の大きさや種類(光透過
率)にも依存するが、前記異物が付いている箇所に光を
照射した場合の光の透過光量は前記異物によって大きく
減衰する。異物が付いている箇所に光を照射した場合の
透過光量の減衰は、前記箇所にIR光を照射した場合も
同様である。
When light is applied to a portion of a photographic film on which foreign matter such as dust is attached, the irradiated light is reflected by the foreign matter, and therefore depends on the size and type (light transmittance) of the foreign matter. In addition, when light is applied to a portion where the foreign matter is attached, the amount of transmitted light is greatly attenuated by the foreign matter. Attenuation of the amount of transmitted light when light is applied to a portion where a foreign substance is attached is the same as when the IR light is applied to the portion.

【0074】上記のように、写真フィルムにIR光を透
過した場合の透過光量は、写真フィルム上の傷又は異物
が付いている箇所でのみ変化し、写真フィルムに画像が
記録されていたとしても、該画像の透過濃度の変化の影
響を受けないので、写真フィルムにIR光を照射して透
過光量を検出することで、写真フィルムに付いている傷
や異物を検出できる。
As described above, the amount of transmitted light when IR light is transmitted through a photographic film changes only at a portion of the photographic film where a scratch or a foreign substance is attached, and even if an image is recorded on the photographic film. Since the image is not affected by the change in the transmission density of the image, the photographic film is irradiated with IR light to detect the amount of transmitted light, so that scratches and foreign substances on the photographic film can be detected.

【0075】上記に基づき、ステップ106では以下の
ようにして欠陥部検出処理を行う。写真フィルムにIR
光を照射したときの透過光量は、前述のように通常は画
像上の位置に拘わらず略一定となり、写真フィルムに傷
又は異物が付いている箇所でのみ低下する(図6参
照)。IRデータは処理対象の画像上の各位置における
IR光の透過光量を表しているので、処理対象の画像上
の傷や異物が付いていない箇所におけるIRデータが表
すIR光の透過光量(例えば透過光量の最大値)を基準
値とする。そして、各画素毎にIR光の透過光量を基準
値と比較し、基準値に対する透過光量の変化量(低下
量)が、ステップ104で定めた欠陥部判定閾値(欠陥
部判定基準)以上の画素を、修正対象の欠陥部に属する
欠陥画素として全て検出する。
Based on the above, in step 106, a defective portion detection process is performed as follows. IR on photographic film
As described above, the amount of transmitted light when irradiated with light is generally substantially constant irrespective of the position on the image, and is reduced only at a portion where the photographic film has a scratch or foreign matter (see FIG. 6). Since the IR data represents the amount of transmitted IR light at each position on the image to be processed, the amount of transmitted IR light (for example, transmitted (The maximum value of the amount of light) as a reference value. Then, the transmitted light amount of the IR light is compared with the reference value for each pixel, and the change amount (decrease amount) of the transmitted light amount with respect to the reference value is equal to or larger than the defect part determination threshold (defect part determination reference) determined in step 104. Are all detected as defective pixels belonging to the defective portion to be corrected.

【0076】またステップ106では、検出した欠陥画
素を、欠陥画素相互の位置関係(例えば隣接しているか
否か)等に基づいて、同一の欠陥部に属する欠陥画素毎
に分類し、各欠陥部に関する情報(例えば各欠陥部に属
する欠陥画素を表す情報や各欠陥画素におけるIR光の
透過光量の低下量等の情報)をRAM48等に記憶す
る。ステップ106は、写真フィルムのIR光の透過光
量を測定するフィルムスキャナ12と共に本発明の検出
手段(詳しくは請求項4に記載の検出手段)に対応して
いる。
In step 106, the detected defective pixels are classified into the defective pixels belonging to the same defective part based on the positional relationship between the defective pixels (for example, whether or not they are adjacent to each other), and each defective pixel is classified. (For example, information indicating defective pixels belonging to each defective portion or information such as a decrease in the amount of transmitted IR light at each defective pixel) is stored in the RAM 48 or the like. Step 106 corresponds to the detecting means of the present invention (specifically, the detecting means according to claim 4) together with the film scanner 12 for measuring the amount of transmitted IR light of the photographic film.

【0077】本実施形態では、上記の欠陥部検出処理に
よって検出された欠陥部を対象として欠陥部の修正を行
うが、先のステップ104において、一例として図4
(A)に実線で示すように、画像データの画素密度が高
くなるに従って欠陥部判定閾値が高くなるように特性が
定められたマップを用いて欠陥部判定閾値を設定した場
合、画像データの画素密度が高くなる(画像データ上で
の欠陥部のおおよその規模が大きくなる)に伴ってIR
光量の変動が大きな欠陥部のみが検出されるように、欠
陥部判定閾値が設定されることになる。
In the present embodiment, the defective portion is corrected for the defective portion detected by the above-described defective portion detection processing.
As shown by the solid line in (A), when the defect determination threshold is set using a map whose characteristics are determined such that the defect determination threshold increases as the pixel density of the image data increases, the pixel of the image data As the density increases (the approximate size of the defect on the image data increases), the IR
The defective portion determination threshold is set so that only a defective portion having a large fluctuation in the amount of light is detected.

【0078】画像データ上での欠陥部の規模が大きくな
ると、個々の欠陥部の修正に要する時間が長くなること
が多いが、上記の特性を有するマップに従って設定され
た欠陥部判定閾値を用いて欠陥部検出処理を行うことに
より、画像データ上での欠陥部のおおよその規模が大き
くなるに伴って検出される欠陥部の数が絞られることに
なり、欠陥部の修正に要する時間の増大を抑制すること
ができる。
When the size of a defective portion on the image data increases, the time required for correcting each individual defective portion often increases. However, the defect determining threshold set according to the map having the above characteristics is used. By performing the defective part detection process, the number of defective parts to be detected is reduced as the approximate size of the defective part on the image data increases, and the time required for correcting the defective part is increased. Can be suppressed.

【0079】なお、図4(A)に示す破線は、実線で示
す特性と逆に、画像データの画素密度が高くなるに従っ
て欠陥部判定閾値が低くなる特性を表しており、先のス
テップ104において、上記のような特性を有するマッ
プを用いて欠陥部判定閾値を設定し、該欠陥部判定閾値
を用いて欠陥部検出処理を行った場合には、画像データ
上での欠陥部のおおよその規模が大きくなるに伴って、
検出される欠陥部の数が増大されることで欠陥部の修正
に要する時間は増大するものの、画像中の微小な欠陥部
も検出されて修正されることで出力画像の画質を向上さ
せることができる。
The broken line shown in FIG. 4A represents a characteristic in which, as opposed to the characteristic shown by the solid line, the threshold value for determining a defective portion decreases as the pixel density of the image data increases. When a defect determination threshold is set using a map having the above-described characteristics, and the defect detection is performed using the defect determination threshold, the approximate size of the defect on the image data is determined. As grows,
Although the time required to correct a defective portion increases as the number of detected defective portions increases, it is possible to improve the image quality of an output image by detecting and correcting a minute defective portion in an image. it can.

【0080】ステップ108では、ステップ106の欠
陥部検出処理によって欠陥部が検出されたか否か判定す
る。上記判定が否定された場合には、修正すべき欠陥部
が存在していないので欠陥部修正値決定処理を終了す
る。また、ステップ108の判定が肯定された場合には
ステップ110へ移行し、欠陥部の修正に際してデータ
を一時記憶するためのワーク領域として、RAM48の
記憶領域のうちデータが未記憶の空き領域を、先のステ
ップ104で決定したワーク領域のサイズ分だけ確保す
る。
In step 108, it is determined whether or not a defective portion has been detected by the defective portion detection processing in step 106. If the determination is negative, there is no defective part to be corrected, and the defective part correction value determination processing ends. If the determination in step 108 is affirmative, the process proceeds to step 110, in which a free area of the storage area of the RAM 48 where data is not stored is used as a work area for temporarily storing data when correcting a defective portion. The size of the work area determined in the previous step 104 is secured.

【0081】本実施形態では、上記のステップ110で
確保されたワーク領域を用いて欠陥部の修正を行うが、
先のステップ104において、一例として図4(C)に
示すように、画像データの画素密度が高くなる(画像デ
ータ上での欠陥部のおおよその規模が大きくなる)に従
ってワーク領域のサイズが大きくなるように特性が定め
られたマップを用いてワーク領域のサイズを設定してい
るので、設定したサイズのワーク領域を確保し、該ワー
ク領域を用いて欠陥部の修正を行うことにより、RAM
48の記憶領域が無駄に占有されたり欠陥部の修正に際
してワーク領域が不足することを回避することができ
る。
In the present embodiment, the defective area is corrected using the work area secured in the above step 110.
In the previous step 104, as shown in FIG. 4C as an example, the size of the work area increases as the pixel density of the image data increases (the approximate size of the defective portion on the image data increases). Since the size of the work area is set using the map whose characteristics are determined as described above, the work area of the set size is secured, and the defective portion is corrected using the work area, thereby obtaining the RAM.
It is possible to prevent the 48 storage areas from being unnecessarily occupied and the work area from being insufficient when correcting a defective portion.

【0082】ステップ112では、ステップ106の欠
陥部検出処理によって検出された欠陥部の中から処理対
象の単一の欠陥部を選択する。本実施形態では、欠陥部
を修正するための修正方法として補間方法と輝度調整方
法が用意されており、次のステップ114では、ステッ
プ112で選択した処理対象の欠陥部に対し、該欠陥部
の修正における補間方法と輝度調整方法の適用範囲を決
定するための所定の特徴量を演算する。この所定の特徴
量としては、例えば欠陥部付近におけるR,G,Bの濃
度変化(透過光量の変化)の相関を表す特徴量を用いる
ことができる。
In step 112, a single defective portion to be processed is selected from the defective portions detected by the defective portion detection processing in step 106. In the present embodiment, an interpolation method and a luminance adjustment method are prepared as correction methods for correcting a defective portion. In the next step 114, the defective portion to be processed selected in step 112 is replaced with the defective portion. A predetermined characteristic amount for determining an application range of the interpolation method and the luminance adjustment method in the correction is calculated. As the predetermined feature amount, for example, a feature amount representing a correlation between density changes of R, G, and B (changes in the amount of transmitted light) near the defect portion can be used.

【0083】図5(B)に示すように、写真フィルムの
乳剤層はR,G,Bの各感光層を含んで構成されてお
り、画像が露光記録され現像等の処理が行われた写真フ
ィルム(ネガフィルム)は、R感光層にCのネガ像が形
成され、Gの感光層にMのネガ像が形成され、Bの感光
層にYのネガ像が形成される。そして写真フィルムを透
過した可視光のうち、R光についてはR感光層において
Cのネガ像の透過濃度に応じた減衰量だけ減衰(吸収)
され、G光についてはG感光層においてMのネガ像の透
過濃度に応じた減衰量だけ減衰(吸収)され、B光につ
いてはB感光層においてYのネガ像の透過濃度に応じた
減衰量だけ減衰(吸収)される。
As shown in FIG. 5 (B), the emulsion layer of the photographic film includes R, G, and B photosensitive layers, and the image is exposed, recorded, and subjected to processing such as development. In the film (negative film), a negative C image is formed on the R photosensitive layer, a negative M image is formed on the G photosensitive layer, and a negative Y image is formed on the B photosensitive layer. Of the visible light transmitted through the photographic film, R light is attenuated (absorbed) by an amount corresponding to the transmission density of the negative C image in the R photosensitive layer.
The G light is attenuated (absorbed) by an amount corresponding to the transmission density of the negative M image in the G photosensitive layer, and the B light is attenuated by an amount corresponding to the transmission density of the negative Y image in the B photosensitive layer. Attenuated (absorbed).

【0084】ここで、例として図5(B)に示すよう
に、乳剤面と反対側のバック面に傷が付いている場合、
透過光に対するR,G,Bの各感光層における光の吸収
の比率は傷が付いていない場合と同じである。すなわ
ち、図5(B)において、写真フィルムへの入射光量を
0、傷が付いていないときのR光、G光、B光の透過
光量を各々I0R,I0G ,I0B とし、傷が付いたときに
傷が付いている箇所を直線的に透過して乳剤層に入射す
る光量をI1(I1<I0:I0−I1が傷による光の減衰
分)、傷が付いているときのR光、G光、B光の透過光
量を各々I1R,I1G ,I1B とすると、以下の(1)式
の関係が成り立つ(図6(A)も参照)。 I0R/I0≒I1R/I10G/I0≒I1G/I10B/I0≒I1B/I1 …(1)
Here, as an example, as shown in FIG.
If there is a scratch on the back side opposite to the emulsion side,
Absorption of light in each of R, G, B photosensitive layers for transmitted light
The ratio is the same as when there is no scratch. Sand
In FIG. 5B, the amount of light incident on the photographic film is
I0, Transmission of R light, G light, and B light when not scratched
Light intensity is I0R, I0G, I0BAnd when it is scratched
The light passes straight through the damaged area and enters the emulsion layer.
I1(I1<I0: I0-I1Attenuation of light due to scratches
Minute), transmitted light of R light, G light, B light when scratched
Each amount1R, I1G , I1BThen, the following equation (1)
Holds (see also FIG. 6A). I0R/ I0≒ I1R/ I1 I0G/ I0≒ I1G/ I1 I0B/ I0≒ I1B/ I1 … (1)

【0085】従って、バック面に傷が付いている箇所に
対応する欠陥部は、傷が付いていない場合と比較して輝
度のみが変化し、写真フィルムに記録されている画像の
色情報は保存されているので、輝度調整方法を適用し欠
陥部領域の輝度を調整することで、画像データが表す画
像の欠陥部を修正することができる。
Therefore, the defective portion corresponding to the portion having a scratch on the back surface changes only in luminance as compared with the case without the scratch, and the color information of the image recorded on the photographic film is preserved. Therefore, the defective portion of the image represented by the image data can be corrected by adjusting the luminance of the defective portion region by applying the luminance adjusting method.

【0086】一方、例として図5(C)に示すように乳
剤面に傷が付いている場合、浅い傷であれば各感光層の
うちの一部の感光層が削られることで、透過光に対する
R,G,Bの各感光層における光の吸収の比率は傷が付
いていない場合と変化する。また、各感光層が全て剥ぎ
取られているような非常に深い傷であれば、透過光に対
する各感光層における光の吸収は生じない。従って、何
れの場合も(1)式の関係は成立しない(図6(B)も
参照)。
On the other hand, as shown in FIG. 5C, for example, when the emulsion surface is scratched, if the scratch is shallow, a part of each photosensitive layer is cut off, so that the transmitted light is reduced. The ratio of light absorption in each of the R, G, and B photosensitive layers with respect to is different from that in the case where there is no flaw. In addition, if the photosensitive layer is very deeply scratched such that all the photosensitive layers are peeled off, the light does not absorb the transmitted light in each photosensitive layer. Therefore, in either case, the relationship of equation (1) does not hold (see also FIG. 6B).

【0087】このように、乳剤面に傷が付いている箇所
に対応する欠陥部は、傷の深さに拘わらず、傷が付いて
いない場合と比較して輝度及び色が各々変化しており、
写真フィルムに記録されている画像の色情報も失われて
いるので、輝度を調整しても欠陥部を精度良く修正する
ことは困難である。このため、乳剤面に傷が付いている
箇所に対応する欠陥部の修正には、欠陥部の周囲の領域
の情報から補間によって欠陥部の輝度及び濃度を決定す
る修正方法(補間方法)が適している。なお、写真フィ
ルムに異物が付いていることに起因して生じた欠陥部に
ついても、異物が付いていない場合と比較して輝度及び
色が各々変化するので、上記の欠陥部を修正する場合に
も補間方法が適している。
As described above, the defective portion corresponding to the portion having a scratch on the emulsion surface has different luminance and color compared to the case without the scratch, regardless of the depth of the scratch. ,
Since the color information of the image recorded on the photographic film is also lost, it is difficult to accurately correct the defective portion even if the luminance is adjusted. For this reason, a correction method (interpolation method) for determining the luminance and density of a defective portion by interpolation from information on the area around the defective portion is suitable for correcting a defective portion corresponding to a portion where the emulsion surface is damaged. ing. In addition, since the brightness and the color of the defective portion caused by the presence of the foreign matter on the photographic film also change as compared with the case where the foreign matter is not attached, when the above-described defective portion is corrected, The interpolation method is also suitable.

【0088】上述したように、写真フィルムのバック面
に付いた傷に起因する欠陥部では、欠陥部内の各部にお
いてR,G,Bの各波長域の光が略一定の割合で低下す
るので、画像データ上での欠陥部におけるR,G,Bの
濃度変化量が略一定となるのに対し、写真フィルムの乳
剤面に付いた傷や異物に起因する欠陥部では前記割合が
不定であるので、前記濃度変化量も不定となる。従っ
て、所定の特徴量として欠陥部におけるR,G,Bの濃
度変化の相関を表す特徴量を用いれば、該特徴量の演算
結果に基づいて、処理対象の欠陥部がバック面に付いた
傷に起因する欠陥部か(輝度調整方法で修正すべき欠陥
部か)、乳剤面に付いた傷又は異物に起因する欠陥部か
(補間方法で修正すべき欠陥部か)を判断できる。
As described above, in a defective portion caused by a scratch on the back surface of a photographic film, light in each wavelength range of R, G, and B is reduced at a substantially constant rate in each portion within the defective portion. Since the amount of change in density of R, G, and B at the defective portion on the image data is substantially constant, the ratio is uncertain at the defective portion caused by a scratch or foreign matter on the emulsion surface of the photographic film. , The amount of density change is also undefined. Therefore, if a feature value representing the correlation between the density changes of R, G, and B in the defective portion is used as the predetermined feature value, the defect to be processed is attached to the back surface based on the calculation result of the feature value. (Defects to be corrected by the brightness adjustment method) or defects due to scratches or foreign substances on the emulsion surface (defects to be corrected by the interpolation method).

【0089】なお、欠陥部におけるR,G,Bの濃度変
化の相関を表す特徴量に代えて、欠陥部付近におけるI
R光の透過光量の変化と欠陥部付近におけるR光、G
光、B光の透過光量の変化との相関を表す特徴量、欠陥
部の周囲の領域におけるエッジ強度やテクスチャ強度、
欠陥部が画像中の主要部領域内に存在しているか否か
(又は欠陥部と主要部領域との重複割合)、欠陥部付近
におけるIR光の透過光量の何れか1つ、又はこれらを
組み合わせて用いてもよい。
It should be noted that, instead of the feature quantity representing the correlation between the density changes of R, G, and B in the defective part, the I
Changes in the amount of transmitted R light and R light and G near the defect
Light, a feature quantity representing a correlation with a change in the amount of transmitted light of B light, edge strength and texture strength in a region around a defective portion,
Whether the defective portion exists in the main portion region in the image (or the overlapping ratio of the defective portion and the main portion region), any one of the amount of transmitted IR light near the defective portion, or a combination thereof May be used.

【0090】そして所定の特徴量の演算結果に基づき、
処理対象の欠陥部の修正における補間方法と輝度調整方
法の適用範囲(適用割合)を決定する。適用範囲の決定
は、例えば図7(A)に示すように、所定の特徴量の値
と補間方法の適用割合α(輝度調整方法の適用割合でも
よい)との関係を表すマップを用いることで行うことが
できる。なお、図7(A)のマップにおいて、α=1の
範囲は補間方法のみを選択して欠陥部の修正を行い、α
=0の範囲は輝度調整方法のみを選択して欠陥部の修正
を行い、0<α<1の範囲では、補間方法を適用割合=
αで、輝度調整方法の適用割合=(1−α)で各々適用
することを表す。
Then, based on the calculation result of the predetermined characteristic amount,
The application range (application ratio) of the interpolation method and the luminance adjustment method in correcting the defective portion to be processed is determined. For example, as shown in FIG. 7A, the application range is determined by using a map representing the relationship between the value of a predetermined feature amount and the application ratio α of the interpolation method (or the application ratio of the luminance adjustment method). It can be carried out. In the map of FIG. 7A, in the range of α = 1, only the interpolation method is selected to correct the defective portion, and α
In the range of = 0, only the brightness adjustment method is selected to correct the defective portion, and in the range of 0 <α <1, the application ratio of the interpolation method =
α indicates that the application rate of the luminance adjustment method is equal to (1−α).

【0091】所定の特徴量の値に応じて上記のように修
正方法の適用割合を決定することにより、処理対象の欠
陥部が精度良く修正されるように、各修正方法の最適な
適用割合が決定されることになる。なお、図7(A)の
マップに代えて図7(B)又は(C)に示すようなマッ
プを用いてもよいし、特徴量の値の変化に対して適用割
合αの値が非線形に変化するマップを用いてもよい。
By determining the application ratio of the correction method in accordance with the value of the predetermined feature amount as described above, the optimum application ratio of each correction method is determined so that the defective portion to be processed is corrected with high accuracy. Will be determined. Note that a map as shown in FIG. 7B or 7C may be used instead of the map of FIG. 7A, and the value of the application ratio α becomes non-linear with respect to a change in the value of the feature amount. A changing map may be used.

【0092】次のステップ116では処理対象の欠陥部
の修正に補間方法を適用するか否か判定する。適用割合
α=0であれば判定が否定されてステップ120へ移行
するが、適用割合α≠0であれば判定が肯定されてステ
ップ118へ移行し、補間方法による修正値決定処理が
行われる。以下、この補間方法による修正値決定処理に
ついて説明する。
In the next step 116, it is determined whether or not the interpolation method is applied to the correction of the defective portion to be processed. If the application ratio α = 0, the determination is negative and the process proceeds to step 120. However, if the application ratio α ≠ 0, the determination is affirmative and the process proceeds to step 118, where a correction value determination process by an interpolation method is performed. Hereinafter, the correction value determination processing by this interpolation method will be described.

【0093】本実施形態に係る補間方法による修正値決
定処理では、欠陥部を構成する全ての欠陥画素につい
て、以下の処理を各々行うことによって成される。すな
わち、例として図8に複数本の矢印で示すように、まず
処理対象の欠陥画素から放射状に延びる複数の方向に沿
って、各々画素単位でスキャンして欠陥部に属さない正
常画素を探索し、図9(A)に示す濃度勾配(傾きGR
AD)、正常画素間距離(DIST)及び補間値(補間
によって求める欠陥画素のR,G,B各色毎の濃度値、
図9(A)に「□」で示す値)を各方向について各々演
算する。
The correction value determination processing by the interpolation method according to the present embodiment is performed by performing the following processing for all the defective pixels constituting the defective portion. That is, as shown by a plurality of arrows in FIG. 8 as an example, first, each pixel is scanned along a plurality of directions extending radially from the defective pixel to be processed to search for a normal pixel which does not belong to the defective portion. , The concentration gradient (gradient GR shown in FIG. 9A).
AD), the normal pixel distance (DIST), and the interpolation value (the density value of each of the R, G, and B colors of the defective pixel determined by interpolation,
9 (A) are calculated for each direction.

【0094】ここで、図8に示す「方向6」のように、
スキャン方向が欠陥部(図8における白い領域)の延び
る方向と略一致していた場合には、一定距離以上スキャ
ンしても正常画素は検出されない。また、画素間隔に対
する欠陥部の大きさ(すなわち画像データ上での欠陥部
の規模)は、画像データの画素密度に応じて相対的に変
化する。
Here, as shown in “direction 6” shown in FIG.
If the scan direction substantially matches the direction in which the defective portion (white area in FIG. 8) extends, a normal pixel is not detected even if scanning is performed over a certain distance. Further, the size of the defective portion with respect to the pixel interval (that is, the size of the defective portion on the image data) relatively changes according to the pixel density of the image data.

【0095】このため、各スキャン方向毎のスキャン
は、正常画素を検出すると該正常画素のデータを先に確
保したワーク領域に格納してスキャンを継続し、所定数
の正常画素のデータをワーク領域に格納するとスキャン
を中止し、濃度勾配の傾き(絶対値)GRAD(i)、
正常画素間距離DIST(i)及び補間値VALUEX
(i)(但し、iはスキャン方向を識別するための符号
であり、XはR,G,Bの何れかを表す)を演算する。
また、所定数の正常画素が検出されなかった場合にも、
スキャン距離(スキャン画素数)が、先のステップ10
4で決定した欠陥部周辺領域の大きさに相当する値に達
するとスキャンを中止する。
For this reason, in the scan for each scan direction, when a normal pixel is detected, the data of the normal pixel is stored in the previously secured work area, and the scan is continued. , The scanning is stopped and the gradient (absolute value) of the density gradient GRAD (i),
Normal pixel distance DIST (i) and interpolation value VALUE X
(I) (where i is a code for identifying the scanning direction, and X represents any of R, G, and B).
Also, when a predetermined number of normal pixels are not detected,
The scan distance (the number of scan pixels) is determined in step 10 above.
When the value reaches the value corresponding to the size of the defect peripheral area determined in step 4, the scan is stopped.

【0096】本実施形態では、先のステップ104にお
いて、図4(B)に示すように、画像データの画素密度
が高くなる(画像データ上での欠陥部のおおよその規模
が大きくなる)に従って欠陥部周辺領域の大きさが大き
くなるように特性が定められたマップを用いて欠陥部周
辺領域の大きさを設定しているので、上記のように各ス
キャン方向についてのスキャンを、設定された欠陥部周
辺領域の大きさに相当する範囲内でのみ各々行うことに
より、欠陥部の修正(詳しくは各スキャン方向について
のスキャン)に必要以上に時間がかかったり、逆に画像
データ上での欠陥部の規模に比して欠陥部周辺領域の大
きさが小さ過ぎて正常画素を検出できないことで、欠陥
部の修正精度が低下することを回避することができる。
In this embodiment, as shown in FIG. 4B, in the previous step 104, as the pixel density of the image data increases (the approximate size of the defective portion on the image data increases), Since the size of the defective portion peripheral region is set using a map whose characteristics are determined so that the size of the defective portion peripheral region is increased, scanning in each scan direction is performed as described above. By performing each process only within the range corresponding to the size of the region around the portion, it takes longer than necessary to repair the defective portion (specifically, scanning in each scan direction), or conversely, the defective portion on the image data. Since the size of the peripheral area of the defective portion is too small as compared with the size of the normal pixel and a normal pixel cannot be detected, it is possible to avoid a decrease in the correction accuracy of the defective portion.

【0097】全てのスキャン方向について上記のスキャ
ンを行うと、各スキャン方向毎に演算・記憶されている
濃度勾配の傾きGRAD(i)及び正常画素間距離DI
ST(i)に基づいて、各スキャン方向毎の重み係数を
演算する。本実施形態では、各スキャン方向毎の重み係
数M(i)を次の(2)式に従って演算する。 M(i)=Mg(GRAD(i))×Md(DIST(i)) …(2)
When the above scan is performed in all scan directions, the gradient GRAD (i) and the normal pixel distance DI calculated and stored for each scan direction are calculated.
Based on ST (i), a weight coefficient for each scanning direction is calculated. In the present embodiment, the weight coefficient M (i) for each scanning direction is calculated according to the following equation (2). M (i) = Mg (GRAD (i)) × Md (DIST (i)) (2)

【0098】なお(2)式においてMg及びMdは重み
係数であり、重み係数Mgは濃度勾配の傾きGRADが
小さいときに重みが大きくなるように、例として図9
(B)に示すようなマップを用いて濃度勾配の傾きGR
ADに応じて定めることができる。また、重み係数Md
についても正常画素間距離DISTが小さいときに重み
が大きくなるように、例として図9(C)に示すような
マップを用いて正常画素間距離DISTに応じて定める
ことができる。
In the equation (2), Mg and Md are weighting factors, and the weighting factor Mg is given as an example in FIG. 9 so that the weight increases when the gradient GRAD of the density gradient is small.
The gradient GR of the density gradient is calculated using a map as shown in FIG.
It can be determined according to AD. Also, the weight coefficient Md
9 can be determined according to the normal pixel distance DIST using a map as shown in FIG. 9C so that the weight increases when the normal pixel distance DIST is small.

【0099】これにより、濃度勾配の傾きGRADが小
さくかつ正常画素間距離DISTが小さいスキャン方向
については重み係数Mの値が大きくなり、濃度勾配の傾
きGRAD及び正常画素間距離DISTの何れか一方が
大きいスキャン方向については重み係数Mの値が小さく
(或いは0に)されることになる。また、正常画素を検
出できずにスキャンが中止されたスキャン方向について
は、重み係数Mの値が無条件で0とされる。
As a result, the value of the weighting factor M increases in the scanning direction in which the gradient GRAD of the density gradient is small and the distance DIST between normal pixels is small, and one of the gradient GRAD of the density gradient and the normal pixel distance DIST becomes smaller. For a large scanning direction, the value of the weight coefficient M is reduced (or set to 0). In the scan direction in which the normal pixel cannot be detected and the scan is stopped, the value of the weight coefficient M is unconditionally set to 0.

【0100】そして、各スキャン方向毎の補間値VAL
UEX(i)及び重み係数M(i)に基づき、処理対象
の欠陥画素の修正画素値DIXを次の(3)式に従って
R,G,B毎に演算する。 DIX=Σ(M(i)×VALUEX(i))/Σ(M(i)) …(3)
Then, the interpolation value VAL for each scanning direction
Based on the UE X (i) and the weighting factor M (i), calculates R, G, for each B a correction pixel value DI X of the defective pixel to be processed according to the following equation (3). DI X = Σ (M (i) × VALUE X (i)) / Σ (M (i)) (3)

【0101】(3)式では、各スキャン方向毎の補間値
VALUEX(i)を重み係数M(i)に応じて重み付
けして修正画素値DIXを求めているので、個々の欠陥
部毎や単一の欠陥部内の各部分毎に適正なスキャン方向
がばらついていたとしても、適正な修正画素値を得るこ
とができる。上記の処理を処理対象の欠陥部内の全ての
欠陥画素に対して各々行い、全ての欠陥画素に対して修
正画素値DIXを各々演算すると、補間方法による修正
値決定処理を終了する。
[0102] (3) In the formula, since seeking interpolated value VALUE X (i) correction pixel value by weighting according to the weighting factor M (i) the DI X in each scanning direction, each of the defect per Even if the proper scanning direction varies for each part within a single defective portion, a proper corrected pixel value can be obtained. Performs each of the above processes for all the defective pixels in the defect portion to be processed, when each operation the modified pixel value DI X for all defective pixels, and terminates the correction value determination process by the interpolation method.

【0102】補間方法による修正値決定処理を終了する
と、図3のフローチャートのステップ120へ移行す
る。ステップ120では、処理対象の欠陥部の修正に輝
度調整方法を適用するか否か判定する。適用割合α=1
であれば判定が否定されてステップ124へ移行する
が、適用割合α≠1であれば判定が肯定されてステップ
122へ移行し、輝度調整方法による修正値決定処理が
行われる。以下、この輝度調整方法による修正値決定処
理について説明する。
When the correction value determination processing by the interpolation method is completed, the flow shifts to step 120 in the flowchart of FIG. In step 120, it is determined whether or not the luminance adjustment method is applied to the correction of the defective portion to be processed. Application rate α = 1
If so, the determination is negative and the process proceeds to step 124. However, if the application ratio α ≠ 1, the determination is affirmative and the process proceeds to step 122, where a correction value determination process using the brightness adjustment method is performed. Hereinafter, the correction value determination processing by this luminance adjustment method will be described.

【0103】まず、処理対象の画像のR,G,Bの画像
データ及びIRデータから、処理対象の欠陥部、及び先
のステップ104で決定した欠陥部周辺領域の大きさに
相当する範囲の周囲領域から成る所定領域のデータを各
々抽出し、抽出した所定領域の各データをハイパスフィ
ルタに各々入力することで、R,G,B,IRの各デー
タから、Rの高周波成分データH−r、Gの高周波成分
データH−g、Bの高周波成分データH−b、IRの高周
波成分データH−IRを各々生成する。そして、それぞれ
のデータをステップ110で確保したワーク領域に一旦
記憶する。
First, from the R, G, and B image data and IR data of the image to be processed, the defect area to be processed and the area around the area corresponding to the size of the area around the defect area determined in step 104 are determined. By extracting data of a predetermined region including a region and inputting the extracted data of the predetermined region to a high-pass filter, the high-frequency component data H-r of R, The high-frequency component data H-g of G, the high-frequency component data H-b of B, and the high-frequency component data H-IR of IR are respectively generated. Then, each data is temporarily stored in the work area secured in step 110.

【0104】輝度調整方法による修正値決定処理におけ
る以降の処理は、前記所定領域のデータのみを用いて行
われるが、本実施形態では、先のステップ104におい
て、図4(B)に示すように、画像データの画素密度が
高くなる(画像データ上での欠陥部のおおよその規模が
大きくなる)に従って欠陥部周辺領域の大きさが大きく
なるように特性が定められたマップを用いて欠陥部周辺
領域の大きさを設定しているので、上記のように欠陥
部、及び設定された欠陥部周辺領域の大きさに相当する
範囲の周囲領域から成る所定領域のデータのみを用いて
欠陥部の修正を行うことにより、欠陥部の修正に必要以
上に時間がかかったり、逆に画像データ上での欠陥部の
規模に比して周辺領域の大きさが小さ過ぎることで、欠
陥部の修正精度が低下することを回避することができ
る。
Subsequent processing in the correction value determination processing by the luminance adjustment method is performed using only the data in the predetermined area. In the present embodiment, in the previous step 104, as shown in FIG. The area around the defective portion is determined using a map whose characteristics are determined so that the size of the area around the defective area increases as the pixel density of the image data increases (the approximate size of the defective area on the image data increases). Since the size of the region is set, correction of the defective portion is performed using only the data of the predetermined region including the defective portion and the peripheral region in the range corresponding to the size of the set defective portion peripheral region as described above. In this case, it takes more time than necessary to repair the defective part, and conversely, the size of the peripheral area is too small compared to the size of the defective part on the image data. Low It is possible to avoid that.

【0105】次に、処理対象の欠陥部に属する各欠陥画
素の中から処理対象の欠陥画素として未処理の欠陥画素
を選択し、高周波成分データH−r、H−g、H−b、H
−IRから、前記選択した欠陥画素の高周波成分データh-
r,h-g,h-b,h-IRを各々抽出し、処理対象の欠陥画素
のR,G,BとIRの高周波成分の比(ゲインGainX
但しXはR,G,Bの何れかを表す)を次の(4)式に
従って演算する。 GainX=h-x/h-IR …(4) なお、上記の(4)式では直流成分や低周波成分が除去
された高周波成分データh-r,h-g,h-b,h-IRを用い、
ゲインGainXとして高周波成分データh-r,h-g,h-bと高
周波成分データh-IRの比を求めているので、このゲイン
GainXは、写真フィルムにおけるR,G,Bの各波長域
の光とIR光の屈折率の相違に起因するR,G,Bの各
波長域の光とIR光の透過光量の比率を表している。
Next, an unprocessed defective pixel is selected as a defective pixel to be processed from among the defective pixels belonging to the defective portion to be processed, and the high frequency component data Hr, Hg, Hb, H
-From IR, high-frequency component data h- of the selected defective pixel
r, hg, hb, and h-IR are respectively extracted, and the ratio of high frequency components of R, G, B and IR of the defective pixel to be processed (gain Gain X :
Where X represents any one of R, G and B) according to the following equation (4). Gain X = hx / h-IR (4) In the above equation (4), high-frequency component data hr, hg, hb, and h-IR from which a DC component and a low-frequency component have been removed are used.
Since the ratio between the high-frequency component data hr, hg, hb and the high-frequency component data h-IR is obtained as the gain Gain X , this gain
Gain X represents the ratio of the amount of transmitted light of each of the R, G, and B wavelengths to the IR light due to the difference in the refractive index between the light of each of the R, G, and B wavelengths and the IR light in the photographic film. ing.

【0106】続いてR,G,B,IRの各データから、
処理対象の欠陥画素のデータDr,Dg,Db,irを
各々抽出し、先に演算したゲインGainXに基づいて、処
理対象の欠陥画素の修正画素値DGXを次の(5)式に
従って演算する。 DGX=DX−ir×GainX …(5) (5)式の第2項は、写真フィルムにおけるR,G,B
の各波長域の光とIR光の屈折率の相違に起因するR,
G,Bの各波長域の光とIR光の透過光量の比率を表す
ゲインGainXを用いてデータirを補正しているので、
写真フィルムに付いている傷等に起因する処理対象の欠
陥画素位置におけるR光又はG光又はB光の透過光量
(の対数値)の変化量を正確に表す値となる。そして
(5)式は欠陥画素の画素値を(ir×GainX)だけ変
更しているので、修正画素値DGXとして、写真フィル
ムに付いている傷等に起因するR光又はG光又はB光の
透過光量の変化を正確に補正した値を得ることができ
る。
Subsequently, from the R, G, B, and IR data,
Data Dr of the defective pixel to be processed, Dg, Db, then extracted respectively ir, based on the gain Gain X computed earlier, calculates the correction pixel value DG X of the defective pixel to be processed according to the following equation (5) I do. DG X = D X −ir × Gain X (5) The second term of the expression (5) is R, G, B in a photographic film.
R, which is caused by the difference in the refractive index between the light in each wavelength region and the IR light,
Since the data ir is corrected using the gain Gain X representing the ratio of the amount of transmitted light between the G and B wavelength regions and the IR light,
This value accurately represents the amount of change in (the logarithmic value of) the amount of transmitted R, G, or B light at the position of a defective pixel to be processed due to a scratch or the like on the photographic film. Since equation (5) changes the pixel value of the defective pixel by (ir × Gain X ), the corrected pixel value DG X is R light, G light, or B light caused by a scratch or the like on the photographic film. It is possible to obtain a value in which a change in the amount of transmitted light is accurately corrected.

【0107】上記の処理を処理対象の欠陥部に属する全
ての欠陥画素に対して行うと、輝度調整方法による修正
値決定処理が完了し、図3のフローチャートのステップ
118へ移行し、処理対象の欠陥部に対する修正値を決
定する。本実施形態における欠陥部に対する修正値は、
前記欠陥部に属する各欠陥画素の修正画素値から成り、
処理対象の欠陥部の修正に補間方法及び輝度調整方法の
何れか一方を適用する場合には、処理対象の欠陥部に属
する各欠陥画素の修正画素値として補間方法又は輝度調
整方法によって決定された修正画素値を各々設定するこ
とで、処理対象の欠陥部に対する修正値を決定すること
ができる。
When the above processing is performed on all the defective pixels belonging to the defective part to be processed, the correction value determination processing by the luminance adjustment method is completed, and the process proceeds to step 118 in the flowchart of FIG. A correction value for the defective part is determined. The correction value for the defective part in the present embodiment is:
It consists of a corrected pixel value of each defective pixel belonging to the defective part,
When any one of the interpolation method and the brightness adjustment method is applied to the correction of the defective portion to be processed, the correction method determines the corrected pixel value of each defective pixel belonging to the defective portion to be processed by the interpolation method or the brightness adjustment method. By setting each of the correction pixel values, a correction value for the defective portion to be processed can be determined.

【0108】また、処理対象の欠陥部の修正に補間方法
及び輝度調整方法を各々適用する場合、処理対象の欠陥
部に対する修正値は、補間方法によって決定された修正
画素値をDIX、輝度調整方法によって決定された修正
画素値をDGX、補間方法の適用割合をαとしたとき
に、処理対象の欠陥部に属する各欠陥画素の修正画素値
D0Xを次の(6)式によって各々演算することで決定
することができる。 D0X=α×DIX+(1−α)×DGX …(6) 上記により、処理対象の欠陥部が精度良く修正されるよ
うに処理対象の欠陥部に対する修正値を決定することが
できる。
When the interpolation method and the brightness adjustment method are each applied to the correction of the defective portion to be processed, the correction value for the defective portion to be processed is the corrected pixel value determined by the interpolation method, DI X , and the brightness adjustment. When the corrected pixel value determined by the method is DG X and the application ratio of the interpolation method is α, the corrected pixel value D0 X of each defective pixel belonging to the defective portion to be processed is calculated by the following equation (6). Can be determined. D0 X = α × DI X + (1−α) × DG X (6) As described above, the correction value for the defective portion to be processed can be determined so that the defective portion to be processed is accurately corrected. .

【0109】次のステップ126では、欠陥部検出処理
(ステップ106)で検出された全ての欠陥部に対して
ステップ112以降の処理を行ったか否か判定する。判
定が否定された場合にはステップ112に戻り、未処理
の他の欠陥部を処理対象の欠陥部としてステップ112
以降の処理を繰り返す。これにより、欠陥部検出処理に
よって検出された全ての欠陥部に対し、所定の特徴量の
演算、演算結果に基づく適用すべき修正方法の選択又は
適用範囲(適用割合)の決定、修正値の決定が各々行わ
れることになる。
In the next step 126, it is determined whether or not the processing of step 112 and subsequent steps has been performed on all the defective parts detected in the defective part detection processing (step 106). If the determination is negative, the process returns to step 112, and another unprocessed defective portion is determined as a defective portion to be processed in step 112.
The subsequent processing is repeated. As a result, for all defective portions detected by the defective portion detection processing, calculation of a predetermined feature amount, selection of a correction method to be applied or determination of an application range (application ratio) based on the calculation result, determination of a correction value Will be performed respectively.

【0110】検出された全ての欠陥部に対して修正値が
各々決定されると、ステップ126の判定が肯定されて
ステップ128へ移行し、先のステップ110で確保し
たワーク領域を開放した後に、次のステップ130にお
いて、各欠陥部に対する修正値を、欠陥部の位置を表す
情報(例えば各欠陥部を構成する欠陥画素のアドレス)
と共にイメージプロセッサ40に通知し、欠陥部修正値
決定処理を終了する。
When correction values are determined for all the detected defective portions, the determination in step 126 is affirmed, and the process proceeds to step 128. After the work area secured in step 110 is released, In the next step 130, the correction value for each defective part is replaced with information indicating the position of the defective part (for example, the address of a defective pixel constituting each defective part).
At the same time, it notifies the image processor 40 and terminates the defective part correction value determination processing.

【0111】イメージプロセッサ40では、ファインス
キャン画像データに対し、制御部42におけるセットア
ップ演算によって決定された処理条件で各種の画像処理
を行った後に、制御部42で欠陥部修正値決定処理が行
われることで制御部42から通知された修正値に従って
欠陥部を修正する(詳しくは欠陥部に属する各欠陥画素
の値を、通知された修正画素値に置き換える)欠陥部修
正処理を行う。このように、イメージプロセッサ40
は、先に説明した欠陥部修正値決定処理のステップ11
0〜128と共に本発明の修正手段に対応している。
In the image processor 40, after performing various image processing on the fine scan image data under the processing conditions determined by the setup calculation in the control unit 42, the control unit 42 performs a defective part correction value determination process. In this way, the defective portion is corrected in accordance with the correction value notified from the control unit 42 (specifically, the defective pixel correction process is performed in which the value of each defective pixel belonging to the defective portion is replaced with the notified corrected pixel value). Thus, the image processor 40
Corresponds to step 11 of the defect correction value determination processing described above.
Together with 0 to 128, they correspond to the correcting means of the present invention.

【0112】またイメージプロセッサ40は、欠陥部修
正処理及び各種の画像処理を行った画像データをI/O
コントローラ38及びI/F回路54を介してプリンタ
16へ出力する。これにより、印画紙68に露光記録さ
れる画像から、修正対象として選択された欠陥部が消去
される。
The image processor 40 converts the image data having undergone the defect correction processing and various image processing operations into I / O data.
Output to the printer 16 via the controller 38 and the I / F circuit 54. As a result, the defective portion selected as a correction target is erased from the image recorded by exposure on the photographic paper 68.

【0113】〔第2実施形態〕次に本発明の第2実施形
態について説明する。なお、本第2実施形態は第1実施
形態と同一の構成であるので、各部分に同一の符号を付
して構成の説明を省略し、以下本第2実施形態の作用と
して、本第2実施形態に係る欠陥部修正値決定処理につ
いて、図10のフローチャートを参照し、第1実施形態
で説明した欠陥部修正値決定処理と異なる部分について
のみ説明する。
[Second Embodiment] Next, a second embodiment of the present invention will be described. Since the second embodiment has the same configuration as the first embodiment, the same reference numerals are given to the respective parts, and the description of the configuration will be omitted. Hereinafter, the second embodiment will be described as the operation of the second embodiment. The defective part correction value determination processing according to the embodiment will be described with reference to the flowchart of FIG. 10 and only the parts different from the defective part correction value determination processing described in the first embodiment.

【0114】なお、本第2実施形態に係る欠陥部修正値
決定処理は、請求項7に記載の画像処理方法が適用され
た処理であり、該欠陥部修正値決定処理を制御部42の
CPU46によって実現するための欠陥部修正値決定プ
ログラムを記憶した情報記憶媒体72は請求項9に記載
の記録媒体に対応している。そして、この欠陥部修正値
決定プログラムがCPU46によって実行されることに
より、画像処理装置14は請求項3に記載の画像処理装
置として機能する。
The defective part correction value determination processing according to the second embodiment is processing to which the image processing method according to claim 7 is applied, and the defective part correction value determination processing is performed by the CPU 46 of the control unit 42. An information storage medium 72 storing a defective part correction value determination program to be realized by the present invention corresponds to the recording medium according to claim 9. When the CPU 46 executes the defective part correction value determination program, the image processing device 14 functions as the image processing device according to the third aspect.

【0115】本第2実施形態に係る欠陥部修正値決定処
理では、ステップ100で処理対象の単一の画像のR,
G,Bの画像データ及びIRデータを取り込んだ後に
(このステップ100は請求項4に記載の取得手段に対
応している)、次のステップ103において、処理対象
の画像に対する読取解像度及び電子変倍率に基づいて画
像データの画素密度を演算し、該画像データの画素密度
を所定値とするための電子変倍率(1/N)を演算す
る。なお、上記の所定値は予め固定的に定められてい
る。
In the defective part correction value determination processing according to the second embodiment, at step 100, the R, R
After the G and B image data and the IR data have been fetched (this step 100 corresponds to the acquisition means according to claim 4), in the next step 103, the reading resolution and the electronic magnification for the image to be processed are read. , And calculates an electronic scaling factor (1 / N) for setting the pixel density of the image data to a predetermined value. The above-mentioned predetermined value is fixedly determined in advance.

【0116】そして次のステップ105では、ステップ
100で取り込んだR,G,Bの画像データ及びIRデ
ータに対し、ステップ103で求めた電子変倍率(1/
N)倍で電子変倍処理(画素密度変換処理)を行う。こ
れにより、例として図11に示す可視画像を表すR,
G,Bの画像データからは、画素密度が所定値の可視画
像(図11では「可視画像(1/N)」と表記)を表す画像
データが、図11に示すIR画像を表すIRデータから
は、画素密度が所定値のIR画像(図11では「IR画
像(1/N)」と表記)を表すIRデータが各々得られる。
In the next step 105, the electronic scaling factor (1/1) obtained in step 103 is applied to the R, G, B image data and IR data captured in step 100.
N) times, an electronic scaling process (pixel density conversion process) is performed. As a result, R, which represents a visible image shown in FIG.
From the G and B image data, the image data representing the visible image (noted as “visible image (1 / N)” in FIG. 11) having a predetermined pixel density is obtained from the IR data representing the IR image shown in FIG. Obtains IR data representing an IR image having a pixel density of a predetermined value (in FIG. 11, denoted as “IR image (1 / N)”).

【0117】画像データ及びIRデータに対し、画素密
度が所定値となるように電子変倍処理を行うことによ
り、電子変倍処理を経た画像データ及びIRデータ上で
は、欠陥部の規模が画素数換算でほぼ所定範囲内に収ま
ることになる。このように、ステップ103、105は
請求項3に記載の第1変換手段(詳しくは請求項4に記
載の第1変換手段)に対応している。
By performing the electronic scaling process on the image data and the IR data so that the pixel density becomes a predetermined value, the size of the defective portion is reduced on the image data and the IR data that have been subjected to the electronic scaling process. In conversion, it falls within a substantially predetermined range. As described above, steps 103 and 105 correspond to the first conversion unit described in claim 3 (specifically, the first conversion unit described in claim 4).

【0118】次のステップ106以降では、電子変倍処
理を経た画像データ及びIRデータを用いて、第1実施
形態と同様の処理を行う。但し、第1実施形態では画像
データの画素密度に応じて、欠陥部の検出基準、欠陥部
の周囲領域の大きさ、及びワーク領域のサイズの各パラ
メータの値を決定していたが、本第2実施形態では、処
理対象の画像データ及びIRデータの画素密度が一定
(所定値)であるので、前記各パラメータは画素密度が
所定値のときの最適な値が固定的に設定されており、固
定的に定められた各パラメータの値に従って欠陥部の検
出(ステップ106)、ワーク領域の確保(ステップ1
10)、欠陥部に対する修正値の演算(ステップ11
8、122)等の処理が行われる。
From the next step 106 onward, the same processing as in the first embodiment is performed using the image data and the IR data that have been subjected to the electronic scaling processing. However, in the first embodiment, the values of the parameters for the detection criterion of the defective portion, the size of the area around the defective portion, and the size of the work area are determined according to the pixel density of the image data. In the second embodiment, since the pixel densities of the image data and IR data to be processed are constant (predetermined values), the parameters are fixedly set to optimal values when the pixel density is the predetermined value. Detection of a defective portion in accordance with the values of the fixed parameters (step 106) and securing of a work area (step 1)
10), calculation of a correction value for the defective portion (step 11)
8, 122).

【0119】また、本第2実施形態では、ステップ12
4で処理対象の欠陥部に対する修正値を決定した後に、
更に、前記決定した修正値を用いて処理対象の欠陥部を
修正する。これにより、例として図11に「欠陥部修正
可視画像(1/N)」として示すように、欠陥部が修正され
た画像を表す画素密度が所定値の画像データが得られ
る。なお、ステップ106は請求項3(詳しくは請求項
4)に記載の検出手段に対応しており、ステップ110
〜126は請求項3に記載の修正手段に対応している。
In the second embodiment, step 12
After determining the correction value for the defective portion to be processed in step 4,
Further, the defective portion to be processed is corrected using the determined correction value. As a result, as shown by way of example in FIG. 11 as “visual image with corrected defective portion (1 / N)”, image data having a predetermined pixel density representing an image in which the defective portion has been corrected is obtained. Step 106 corresponds to the detecting means described in claim 3 (specifically, claim 4).
Reference numerals 126 correspond to the correcting means according to the third aspect.

【0120】全ての欠陥部を修正し、ステップ126の
判定が肯定されると、ステップ128でワーク領域を開
放した後にステップ132へ移行し、欠陥部が修正され
た画像データ(画素密度が所定値の画像データ)に対
し、電子変倍率N倍で電子変倍処理(画素密度変換処
理)を行う。これにより、例として図11に「欠陥部修
正可視画像」として示すように、欠陥部が修正されかつ
画素密度が元の画像データ(図11に示す「可視画像」
のデータ)と同一の画像データ(欠陥部修正可視画像デ
ータ)が得られる。このように、ステップ132は請求
項3に記載の第2変換手段に対応している。
If all the defective portions are corrected and the determination in step 126 is affirmative, the process proceeds to step 132 after releasing the work area in step 128, and the image data in which the defective portion has been corrected (the pixel density is equal to the predetermined value). Image data) is subjected to electronic scaling processing (pixel density conversion processing) at an electronic scaling factor N times. As a result, as shown in FIG. 11 as an example of a “defect portion corrected visible image”, the defective portion is corrected and the pixel density is changed to the original image data (“visible image” shown in FIG. 11).
(Data of the defective portion). As described above, step 132 corresponds to the second conversion unit described in claim 3.

【0121】ステップ132では、欠陥部修正及びN倍
の電子変倍処理を経た欠陥部修正可視画像データをイメ
ージプロセッサ40に転送し、次のステップ136では
欠陥部検出処理(ステップ106)で検出された全ての
欠陥部(ステップ124で修正された全ての欠陥部)の
位置(詳しくは欠陥部に属する全ての欠陥画素のアドレ
ス)をイメージプロセッサ40に通知し、欠陥部修正値
決定処理を終了する。
At step 132, the defect-corrected visible image data which has been subjected to the defect correction and the electronic magnification process of N times is transferred to the image processor 40. At the next step 136, the defect image is detected by the defect detection processing (step 106). The positions of all the defective parts (all the defective parts corrected in step 124) (specifically, the addresses of all the defective pixels belonging to the defective part) are notified to the image processor 40, and the defective part correction value determination processing ends. .

【0122】イメージプロセッサ40に転送された欠陥
部修正可視画像データは、欠陥部が修正されかつ画素密
度が元の画像データと同一ではあるものの、2回の電子
変倍処理を経ているので(電子変倍処理には補間処理が
含まれている)、欠陥部修正可視画像データが表す画像
は元の画像データが表す画像と比較して鮮鋭度の低下等
の画質低下が生じている。このため、イメージプロセッ
サ40では、欠陥部修正処理として、元の画像データと
欠陥部修正可視画像データを合成する処理を行う。
The defect-corrected visible image data transferred to the image processor 40 has undergone two electronic scaling processes, although the defect is corrected and the pixel density is the same as that of the original image data. The scaling process includes an interpolation process), and the image represented by the defective portion corrected visible image data has a lower image quality such as a lower sharpness than the image represented by the original image data. Therefore, the image processor 40 performs a process of combining the original image data and the defective portion corrected visible image data as the defective portion correction process.

【0123】具体的には、図11に「選択部」として示
すように、画像の各画素を順にスキャンしながら前記通
知された欠陥部の位置に基づいて各画素が欠陥部に属す
る画素か否かを判断し、欠陥部に属する画素であった場
合には該当する画素のデータを欠陥部修正可視画像デー
タから抽出し、欠陥部に属しない画素であった場合には
該当する画素のデータを元の画像データから抽出するこ
とを繰り返す。これにより、欠陥部以外の領域について
は画質が低下しておらず、欠陥部領域については欠陥部
が修正された出力用画像データを得ることができる。こ
のように、本第2実施形態に係るイメージプロセッサ4
0は、請求項3(詳しくは請求項5)に記載の生成手段
としての機能を備えている。
More specifically, as shown in FIG. 11 as “selector”, while sequentially scanning each pixel of the image, each pixel is determined to be a pixel belonging to the defective part based on the notified position of the defective part. If the pixel belongs to the defective portion, the data of the corresponding pixel is extracted from the defective portion corrected visible image data, and if the pixel does not belong to the defective portion, the data of the corresponding pixel is extracted. The extraction from the original image data is repeated. As a result, the image quality is not degraded in regions other than the defective portion, and output image data in which the defective portion has been corrected can be obtained in the defective portion region. As described above, the image processor 4 according to the second embodiment
0 has a function as a generating means described in claim 3 (specifically, claim 5).

【0124】なお、上記のように欠陥部に属する画素に
ついては元の画像データを用い、欠陥部に属しない画素
については欠陥部修正可視画像データを用いた場合、欠
陥部と非欠陥部の境界が不自然な仕上がりになる可能性
がある。これを考慮すると、欠陥部及び欠陥部と非欠陥
部の境界、或いは欠陥部の周囲領域に相当する画素につ
いては、元の画像データと欠陥部修正可視画像データの
加重平均を採用するようにしてもよい。双方のデータに
対する重み係数は、例えば各画素におけるIR光の透過
光量(基準値に対する変動量)に基づいて各画素毎に決
定してもよいし、欠陥部内のIR光の透過光量(基準値
に対する欠陥部内の最大変動量)に基づいて個々の欠陥
部毎に決定してもよい。これにより、欠陥部と非欠陥部
の境界の不自然さを解消或いは軽減することができる。
また、前記境界の不自然さを解消することは、前記境界
付近にローパスフィルタをかけて境界付近をぼかすこと
によっても実現できる。
As described above, when the original image data is used for the pixels belonging to the defective portion, and the defective portion corrected visible image data is used for the pixels not belonging to the defective portion, the boundary between the defective portion and the non-defective portion is obtained. May have an unnatural finish. In consideration of this, for the pixel corresponding to the defective portion and the boundary between the defective portion and the non-defective portion, or the area around the defective portion, the weighted average of the original image data and the defective portion corrected visible image data is adopted. Is also good. The weighting factor for both data may be determined for each pixel based on, for example, the amount of transmitted IR light in each pixel (the amount of variation with respect to the reference value), or the amount of transmitted IR light in the defective portion (with respect to the reference value). It may be determined for each individual defective portion based on the maximum variation amount in the defective portion. Thereby, the unnaturalness of the boundary between the defective portion and the non-defective portion can be eliminated or reduced.
Also, the unnaturalness of the boundary can be eliminated by applying a low-pass filter to the vicinity of the boundary and blurring the vicinity of the boundary.

【0125】また、上記では欠陥部修正方法の一例とし
て補間方法及び輝度調整方法を説明したが、これに限定
されるものではなく、ローパスフィルタ等をかけること
で欠陥部をぼかす、所謂ぼかし方法を加えてもよい。
Further, in the above, the interpolation method and the brightness adjustment method have been described as an example of the defective portion repairing method. However, the present invention is not limited to these, and the so-called blurring method of blurring the defective portion by applying a low-pass filter or the like is described. May be added.

【0126】また、上記ではプレスキャン時にR,G,
Bの読み取りを行い、ファインスキャン時にR,G,
B,IRの読み取りを行う例を説明したが、これに限定
されるものではなく、IR読み取りはプレスキャン時に
のみ行ってもよいし、プレスキャン時及びファインスキ
ャン時に各々行ってもよい。また、読み取りを1回のみ
行うようにしてもよい。
In the above description, R, G,
B is read, and R, G,
Although an example of reading B and IR has been described, the present invention is not limited to this. IR reading may be performed only at the time of pre-scanning, or may be performed at the time of pre-scanning and fine scanning. Further, the reading may be performed only once.

【0127】更に、上記では光電変換セルがマトリクス
状に配列されたエリアセンサ(エリアCCD30)によ
って画像を読み取る構成を説明したが、これに限定され
るものではなく、光電変換セルがライン状に配列された
ラインセンサによって画像を読み取るようにしてもよ
い。また、上記では写真フィルムを透過した光を光電変
換することで画像を読み取る構成を説明したが、これに
限定されるものではなく、写真フィルムを反射した光を
光電変換することで画像を読み取る構成を採用してもよ
い。また、画像記録材料は写真フィルムに限定されるも
のではなく、写真フィルム以外の写真感光材料や普通
紙、OHPシート等を画像記録材料として用いても良い
ことは言うまでもない。
Further, in the above description, a configuration in which an image is read by an area sensor (area CCD 30) in which photoelectric conversion cells are arranged in a matrix has been described. However, the present invention is not limited to this, and the photoelectric conversion cells are arranged in a line. The image may be read by the line sensor provided. In the above description, the configuration in which an image is read by photoelectrically converting light transmitted through a photographic film has been described. However, the configuration is not limited to this, and the configuration in which an image is read by photoelectrically converting light reflected by a photographic film is described. May be adopted. The image recording material is not limited to a photographic film, and it goes without saying that a photographic photosensitive material other than a photographic film, plain paper, an OHP sheet, or the like may be used as the image recording material.

【0128】また、第1実施形態では、欠陥部の検出基
準、欠陥部の周囲領域の大きさ、及びワーク領域のサイ
ズの各パラメータの値を、画像データの画素密度に応じ
て各々変更していたが、請求項1の発明は上記に限定さ
れるものではなく、上記各パラメータのうちの何れか1
つ又は2つの値のみを変更するようにしてもよいことは
言うまでもない。
In the first embodiment, the values of the parameters for detecting the defect, the size of the area surrounding the defect, and the size of the work area are changed according to the pixel density of the image data. However, the invention of claim 1 is not limited to the above, and any one of the above parameters may be used.
It goes without saying that only one or two values may be changed.

【0129】また、請求項1に記載した「欠陥部の検出
又は欠陥部の修正に関連するパラメータ」は上記に限定
されるものではなく、欠陥部の検出又は欠陥部の修正に
関連するパラメータとして、例えば欠陥部の周辺領域の
うち欠陥部の修正に用いる画素の間隔を採用し、画像デ
ータの画素密度が高くなるに従ってデータをサンプリン
グする画素の間隔(画素の間引き度合い)を大きくし
(例えば画素密度が2倍になるとサンプリング画素間隔
を2倍にする等)、サンプリングしたデータを用いて欠
陥部の修正を行うようにしてもよい。
The "parameters relating to the detection of a defective portion or the correction of a defective portion" described in claim 1 are not limited to the above, but may be used as parameters relating to the detection of a defective portion or the correction of a defective portion. For example, the interval between pixels used for correcting the defective portion in the peripheral area of the defective portion is adopted, and as the pixel density of the image data increases, the interval between pixels for sampling data (the degree of pixel thinning) is increased (for example, If the density is doubled, the sampling pixel interval is doubled, etc.), and the defective portion may be corrected using the sampled data.

【0130】[0130]

【発明の効果】以上説明したように請求項1及び請求項
6記載の発明は、画像情報が表す画像の画像記録材料上
での画素密度に応じて、欠陥部の検出又は欠陥部の修正
に関連するパラメータを変更するようにしたので、画像
データ上での欠陥部の規模に応じた適正な欠陥部修正を
簡易に実現できる、という優れた効果を有する。
As described above, according to the first and sixth aspects of the present invention, it is possible to detect a defective portion or correct a defective portion in accordance with the pixel density of an image represented by image information on an image recording material. Since the related parameters are changed, there is an excellent effect that an appropriate defect correction according to the scale of the defect on the image data can be easily realized.

【0131】請求項3及び請求項7記載の発明は、画像
情報が表す画像の画像記録材料上での画素密度が所定値
になるように画像情報を変換し、前記変換を経た画像情
報に対して欠陥部を修正し、欠陥部の修正を経た画像情
報を、該画像情報が表す画像の画像記録材料上での画素
密度が元の値に戻るように変換し、元の画像情報と前記
変換を経た画像情報とを合成することで、欠陥部が修正
された画像情報を生成するようにしたので、画像データ
上での欠陥部の規模に拘わらず、欠陥部修正に関連する
パラメータを変更することなく欠陥部を適正に修正する
ことができる、という優れた効果を有する。
According to a third aspect of the present invention, the image information is converted so that the pixel density of the image represented by the image information on the image recording material becomes a predetermined value. Correcting the defective portion, and converting the image information after the correction of the defective portion so that the pixel density of the image represented by the image information on the image recording material returns to the original value. The image information obtained by correcting the defective portion is generated by synthesizing the image information having undergone the above-described processing, so that the parameters related to the defective portion correction are changed regardless of the size of the defective portion on the image data. This has an excellent effect that a defective portion can be properly corrected without any problem.

【0132】請求項4記載の発明は、請求項3の発明に
おいて、画像記録材料に非可視光を照射して得られた非
可視画像情報を取得し、非可視画像情報が表す画像の画
像記録材料上での画素密度も所定値になるように非可視
画像情報を変換し、前記変換を経た非可視画像情報を用
いて欠陥部の検出を行うので、上記効果に加え、欠陥部
をより精度良く修正することができる、という効果を有
する。
According to a fourth aspect of the present invention, in the third aspect of the present invention, the invisible image information obtained by irradiating the image recording material with invisible light is obtained, and the image recording of the image represented by the invisible image information is performed. The invisible image information is converted so that the pixel density on the material also becomes a predetermined value, and the defective portion is detected using the invisible image information that has undergone the conversion. This has the effect that it can be corrected well.

【0133】請求項5記載の発明は、請求項3の発明に
おいて、非欠陥部領域については元の画像情報のみを用
いると共に、欠陥部領域については、第2変換手段によ
る変換を経た画像情報のみを用いるか、又は元の画像情
報と第2変換手段による変換を経た画像情報の加重平均
に相当する画像情報を用い、これらを合成することで欠
陥部が修正された画像情報を生成するので、上記効果に
加え、画質の低下が抑制されかつ欠陥部が適正に修正さ
れた画像を表す画像情報を得ることができる、という効
果を有する。
According to a fifth aspect of the present invention, in the third aspect of the present invention, only the original image information is used for the non-defective area, and only the image information which has been converted by the second converting means is used for the defective area. Or using image information corresponding to a weighted average of the original image information and the image information that has been converted by the second conversion means, and by combining these, generates image information with a defective portion corrected, In addition to the above effects, there is an effect that image information representing an image in which a decrease in image quality is suppressed and a defective portion is appropriately corrected can be obtained.

【0134】請求項8記載の発明は、画像情報が表す画
像の欠陥部を検出する第1のステップ、画像情報に対し
て欠陥部を修正する第2のステップ、及び、第1のステ
ップ及び第2のステップの少なくとも一方を行う前に、
画像情報が表す画像の画像記録材料上での画素密度に応
じて欠陥部の検出又は欠陥部の修正に関連するパラメー
タを変更する第3のステップを含む処理をコンピュータ
に実行させるためのプログラムを記録媒体に記録したの
で、画像データ上での欠陥部の規模に応じた適正な欠陥
部修正を簡易に実現できる、という優れた効果を有す
る。
According to an eighth aspect of the present invention, there is provided a first step of detecting a defective portion of an image represented by image information, a second step of correcting the defective portion with respect to the image information, and a first step and a second step. Before performing at least one of the two steps,
A program for causing a computer to execute a process including a third step of changing a parameter related to detection of a defective portion or correction of a defective portion according to a pixel density of an image represented by image information on an image recording material is recorded. Since the information is recorded on the medium, there is an excellent effect that an appropriate defect correction according to the scale of the defect on the image data can be easily realized.

【0135】請求項9記載の発明は、画像情報が表す画
像の画像記録材料上での画素密度が所定値になるように
変換すると共に、画像情報が表す画像の欠陥部を検出す
る第1のステップ、前記変換を経た画像情報に対して欠
陥部を修正する第2のステップ、欠陥部の修正を経た画
像情報を画素密度が元の値に戻るように変換する第3の
ステップ、及び、元の画像情報と前記変換を経た画像情
報とを合成することで、欠陥部が修正された画像情報を
生成する第4のステップを含む処理をコンピュータに実
行させるためのプログラムを記録媒体に記録したので、
画像データ上での欠陥部の規模に拘わらず、欠陥部修正
に関連するパラメータを変更することなく欠陥部を適正
に修正することができる、という優れた効果を有する。
According to a ninth aspect of the present invention, the first aspect of the present invention converts a pixel density of an image represented by image information on an image recording material to a predetermined value and detects a defective portion of the image represented by the image information. A second step of correcting a defective portion with respect to the image information having undergone the conversion, a third step of converting the image information having undergone the correction of the defective portion so that the pixel density returns to the original value, and A program for causing a computer to execute a process including a fourth step of generating image information in which a defective portion is corrected by synthesizing the image information having undergone the conversion and the image information having undergone the conversion is recorded on a recording medium. ,
There is an excellent effect that the defective portion can be properly corrected without changing the parameter related to the defective portion regardless of the size of the defective portion on the image data.

【図面の簡単な説明】[Brief description of the drawings]

【図1】 本実施形態に係る画像処理システムの概略構
成図である。
FIG. 1 is a schematic configuration diagram of an image processing system according to an embodiment.

【図2】 フィルムスキャナの概略構成を示す斜視図で
ある。
FIG. 2 is a perspective view illustrating a schematic configuration of a film scanner.

【図3】 第1実施形態に係る欠陥部修正値決定処理の
内容を示すフローチャートである。
FIG. 3 is a flowchart showing the content of a defective portion correction value determination process according to the first embodiment.

【図4】 (A)乃至(C)は欠陥部と判定するか否か
の閾値、欠陥部修正に用いる周辺領域の大きさ、データ
を一時記憶するためのワーク領域のサイズの各パラメー
タ値と、画像データが表す画像の写真フィルム上での画
素密度との関係の一例を示す線図である。
FIGS. 4A to 4C show parameter values of a threshold value for determining whether or not a defective portion is determined, a size of a peripheral region used for correcting a defective portion, and a size of a work region for temporarily storing data; FIG. 4 is a diagram illustrating an example of a relationship between an image represented by image data and a pixel density on a photographic film.

【図5】 (A)は写真フィルムの傷及び異物が付いて
いない箇所、傷が付いている箇所、異物が付いている箇
所における光の透過を各々示す概念図、(B)は写真フ
ィルムのバック面に傷が付いている場合、(C)は写真
フィルムの乳剤面に傷が付いている場合の光の透過を各
々示す概念図である。
FIG. 5A is a conceptual diagram showing light transmission in a portion of a photographic film without a scratch and foreign matter, a portion with a scratch, and a portion with a foreign material, and FIG. (C) is a conceptual diagram showing light transmission when the back surface is scratched and (C) shows the light transmission when the emulsion surface of the photographic film is scratched.

【図6】 (A)はバック面に傷が付いている場合、
(B)は乳剤面に傷が付いている場合のR光、G光、B
光、IR光の透過光量の変化の一例を示す線図である。
FIG. 6 (A) shows a case where the back surface is scratched.
(B) shows R light, G light, and B light when the emulsion surface is scratched.
FIG. 4 is a diagram illustrating an example of a change in transmitted light amount of light and IR light.

【図7】 (A)乃至(C)は、欠陥部の特徴量の演算
結果から適用すべき修正方法を選択又は適用範囲を決定
するためのマップの一例を示す線図である。
FIGS. 7A to 7C are diagrams illustrating an example of a map for selecting a correction method to be applied or determining an applicable range from a calculation result of a feature amount of a defective portion;

【図8】 スキャン方向の一例を示す概念図である。FIG. 8 is a conceptual diagram illustrating an example of a scanning direction.

【図9】 (A)は正常画素の画素値からの欠陥画素の
画素値の補間演算を説明するための線図、(B)は傾き
GRADと重み係数Mgの関係、(C)は正常画素間距
離DISTと重み係数Mdの関係を各々示す線図であ
る。
9A is a diagram for explaining an interpolation calculation of a pixel value of a defective pixel from a pixel value of a normal pixel, FIG. 9B is a relationship between a gradient GRAD and a weight coefficient Mg, and FIG. It is a diagram which shows the relationship between the distance DIST and the weight coefficient Md, respectively.

【図10】 第2実施形態に係る欠陥部修正値決定処理
の内容を示すフローチャートである。
FIG. 10 is a flowchart illustrating the content of a defective portion correction value determination process according to the second embodiment.

【図11】 第2実施形態に係る欠陥部修正の過程を示
す概念図である。
FIG. 11 is a conceptual diagram showing a process of correcting a defective portion according to the second embodiment.

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

12 フィルムスキャナ 14 画像処理装置 20 光源 23 フィルタユニット 26 写真フィルム 30 エリアCCD 40 イメージプロセッサ 42 制御部 72 情報記憶媒体 12 Film Scanner 14 Image Processing Device 20 Light Source 23 Filter Unit 26 Photographic Film 30 Area CCD 40 Image Processor 42 Control Unit 72 Information Storage Medium

Claims (9)

【特許請求の範囲】[Claims] 【請求項1】 画像記録材料に記録されている画像を読
み取ることで得られた画像情報に対し、該画像情報が表
す画像の欠陥部を検出する検出手段と、 前記画像情報に対し、前記検出手段によって検出された
欠陥部を修正する修正手段と、 前記画像情報が表す画像の前記画像記録材料上での画素
密度に応じて、前記検出手段による欠陥部の検出又は前
記修正手段による欠陥部の修正に関連するパラメータを
変更する変更手段と、 を含む画像処理装置。
A detecting means for detecting a defective portion of an image represented by the image information obtained by reading an image recorded on an image recording material; Correcting means for correcting a defective part detected by the means, and detecting the defective part by the detecting means or detecting the defective part by the correcting means according to the pixel density of the image represented by the image information on the image recording material. An image processing apparatus, comprising: changing means for changing a parameter related to correction.
【請求項2】 前記変更手段は、前記修正手段が画像情
報が表す画像の前記画像記録材料上での画素密度が高く
なるに従って、前記修正手段が欠陥部の修正に用いる前
記欠陥部の周辺領域の大きさを大きくする、前記修正手
段が欠陥部の修正に必要なデータを一時記憶するために
確保する記憶領域のサイズを大きくする、欠陥部の周辺
領域のうち修正手段が欠陥部の修正に用いる画素の間隔
を大きくする、及び前記検出手段によって検出される欠
陥部の数が減少するように前記検出手段による欠陥部の
検出基準を変更する、の少なくとも1つを行うことを特
徴とする請求項1記載の画像処理装置。
2. The image forming apparatus according to claim 1, wherein the changing unit is configured to correct the defective area by using the correcting unit to correct the defective portion as the pixel density of the image represented by the image information on the image recording material increases. To increase the size of a storage area secured by the correction means for temporarily storing data required for correction of a defective portion. At least one of: increasing a distance between pixels to be used, and changing a criterion of detecting a defective portion by the detecting unit so as to reduce the number of defective portions detected by the detecting unit. Item 2. The image processing device according to Item 1.
【請求項3】 画像記録材料に記録されている画像を読
み取ることで得られた画像情報を、該画像情報が表す画
像の前記画像記録材料上での画素密度が所定値になるよ
うに変換する第1変換手段と、 前記画像情報が表す画像の欠陥部を検出する検出手段
と、 前記第1変換手段による変換を経た画像情報に対し、前
記検出手段によって検出された欠陥部を修正する修正手
段と、 前記修正手段による修正を経た画像情報を、該画像情報
が表す画像の前記画像記録材料上での画素密度が元の値
に戻るように変換する第2変換手段と、 元の画像情報と前記第2変換手段による変換を経た画像
情報とを合成することで、欠陥部が修正された画像情報
を生成する生成手段と、 を含む画像処理装置。
3. Converting image information obtained by reading an image recorded on an image recording material such that a pixel density of the image represented by the image information on the image recording material becomes a predetermined value. A first conversion unit; a detection unit that detects a defective portion of an image represented by the image information; and a correction unit that corrects the defective portion detected by the detection unit with respect to the image information that has been converted by the first conversion unit. And second image conversion means for converting the image information corrected by the correction means so that the pixel density of the image represented by the image information on the image recording material returns to the original value. An image processing apparatus comprising: a generating unit configured to generate image information in which a defective portion is corrected by combining image information that has been converted by the second converting unit.
【請求項4】 前記画像記録材料に非可視光を照射し、
前記画像記録材料を透過又は反射した非可視光を光電変
換して得られた非可視画像情報を取得する取得手段を更
に備え、 前記第1変換手段は、前記非可視画像情報が表す画像の
前記画像記録材料上での画素密度も前記所定値になるよ
うに前記非可視画像情報を変換し、 前記検出手段は、前記第1変換手段による変換を経た非
可視画像情報を用いて前記欠陥部の検出を行うことを特
徴とする請求項3記載の画像処理装置。
4. Irradiating the image recording material with invisible light,
The image processing apparatus further includes an acquisition unit configured to acquire invisible image information obtained by photoelectrically converting invisible light transmitted or reflected by the image recording material. The invisible image information is converted so that the pixel density on the image recording material also becomes the predetermined value, and the detecting unit detects the defective portion by using the invisible image information that has been converted by the first converting unit. The image processing apparatus according to claim 3, wherein the detection is performed.
【請求項5】 前記生成手段は、画像中の非欠陥部領域
については前記元の画像情報のみを用いると共に、画像
中の欠陥部領域については、前記第2変換手段による変
換を経た画像情報のみを用いるか、又は前記元の画像情
報と前記第2変換手段による変換を経た画像情報の加重
平均に相当する画像情報を用い、これらを合成すること
で前記欠陥部が修正された画像情報を生成することを特
徴とする請求項3記載の画像処理装置。
5. The image processing apparatus according to claim 1, wherein the generation unit uses only the original image information for the non-defective area in the image, and uses only the image information that has been converted by the second conversion unit for the defective area in the image. Or using image information equivalent to a weighted average of the original image information and the image information that has been converted by the second conversion means, and combining these to generate image information in which the defective portion has been corrected. The image processing apparatus according to claim 3, wherein:
【請求項6】 画像記録材料に記録されている画像を読
み取ることで得られた画像情報に対し、該画像情報が表
す画像の欠陥部を検出し、 前記画像情報に対し、前記検出した欠陥部を修正すると
共に、 前記画像情報が表す画像の前記画像記録材料上での画素
密度に応じて、前記欠陥部の検出又は前記欠陥部の修正
に関連するパラメータを変更する画像処理方法。
6. An image information obtained by reading an image recorded on an image recording material, detecting a defective portion of an image represented by the image information, and detecting the defective portion based on the image information. And an image processing method for modifying parameters relating to the detection of the defective portion or the correction of the defective portion according to the pixel density of the image represented by the image information on the image recording material.
【請求項7】 画像記録材料に記録されている画像を読
み取ることで得られた画像情報を、該画像情報が表す画
像の前記画像記録材料上での画素密度が所定値になるよ
うに変換する第1の変換を行うと共に、 前記画像情報が表す画像の欠陥部を検出し、 前記第1の変換を経た画像情報に対し、前記検出した欠
陥部を修正し、 前記欠陥部の修正を経た画像情報を、該画像情報が表す
画像の前記画像記録材料上での画素密度が元の値に戻る
ように変換する第2の変換を行い、 元の画像情報と前記第2の変換を経た画像情報とを合成
することで、欠陥部が修正された画像情報を生成する画
像処理方法。
7. Converting image information obtained by reading an image recorded on an image recording material such that a pixel density of the image represented by the image information on the image recording material becomes a predetermined value. Performing the first conversion, detecting a defective portion of the image represented by the image information, correcting the detected defective portion with respect to the image information having undergone the first conversion, and performing an image after the correction of the defective portion. Performing a second conversion for converting the information represented by the image information so that the pixel density on the image recording material of the image represented by the image information returns to the original value. The original image information and the image information having undergone the second conversion An image processing method for generating image information in which a defective portion has been corrected by combining
【請求項8】 画像記録材料に記録されている画像を読
み取ることで得られた画像情報に対し、該画像情報が表
す画像の欠陥部を検出する第1のステップ、 前記画像情報に対し、前記検出した欠陥部を修正する第
2のステップ、 及び、前記第1のステップ及び前記第2のステップの少
なくとも一方を行う前に、前記画像情報が表す画像の前
記画像記録材料上での画素密度に応じて、前記欠陥部の
検出又は前記欠陥部の修正に関連するパラメータを変更
する第3のステップを含む処理をコンピュータに実行さ
せるためのプログラムが記録された記録媒体。
8. A first step of detecting, for image information obtained by reading an image recorded on an image recording material, a defective portion of an image represented by the image information, A second step of correcting the detected defective portion; and, before performing at least one of the first step and the second step, a pixel density of the image represented by the image information on the image recording material. A recording medium on which is recorded a program for causing a computer to execute a process including a third step of changing a parameter related to detection of the defective portion or correction of the defective portion.
【請求項9】 画像記録材料に記録されている画像を読
み取ることで得られた画像情報を、該画像情報が表す画
像の前記画像記録材料上での画素密度が所定値になるよ
うに変換する第1の変換を行うと共に、前記画像情報が
表す画像の欠陥部を検出する第1のステップ、 前記第1の変換を経た画像情報に対し、前記検出した欠
陥部を修正する第2のステップ、 前記欠陥部の修正を経た画像情報を、該画像情報が表す
画像の前記画像記録材料上での画素密度が元の値に戻る
ように変換する第2の変換を行う第3のステップ、 及び、元の画像情報と前記第2の変換を経た画像情報と
を合成することで、欠陥部が修正された画像情報を生成
する第4のステップを含む処理をコンピュータに実行さ
せるためのプログラムが記録された記録媒体。
9. Converting image information obtained by reading an image recorded on an image recording material so that the pixel density of the image represented by the image information on the image recording material becomes a predetermined value. A first step of performing a first conversion and detecting a defective portion of an image represented by the image information; a second step of correcting the detected defective portion with respect to the image information having undergone the first conversion; A third step of performing a second conversion of converting the image information having undergone the correction of the defective portion so that the pixel density of the image represented by the image information on the image recording material returns to the original value; and A program for causing a computer to execute a process including a fourth step of generating image information in which a defective portion is corrected by combining original image information and image information that has undergone the second conversion is recorded. Recording media.
JP25112299A 1999-09-06 1999-09-06 Image processor, image processing method and recording medium Pending JP2001075197A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP25112299A JP2001075197A (en) 1999-09-06 1999-09-06 Image processor, image processing method and recording medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP25112299A JP2001075197A (en) 1999-09-06 1999-09-06 Image processor, image processing method and recording medium

Publications (1)

Publication Number Publication Date
JP2001075197A true JP2001075197A (en) 2001-03-23

Family

ID=17218002

Family Applications (1)

Application Number Title Priority Date Filing Date
JP25112299A Pending JP2001075197A (en) 1999-09-06 1999-09-06 Image processor, image processing method and recording medium

Country Status (1)

Country Link
JP (1) JP2001075197A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2020154397A (en) * 2019-03-18 2020-09-24 株式会社安藤・間 Crack extracting system and crack extraction method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2020154397A (en) * 2019-03-18 2020-09-24 株式会社安藤・間 Crack extracting system and crack extraction method
JP7249828B2 (en) 2019-03-18 2023-03-31 株式会社安藤・間 Crack extraction system and crack extraction method

Similar Documents

Publication Publication Date Title
JP4005277B2 (en) Image processing apparatus, method, and recording medium
JP4056670B2 (en) Image processing method
JP2856637B2 (en) Scanner for digital image generation and film developing method
US6445819B1 (en) Image processing method, image processing device, and recording medium
US20040027618A1 (en) Image defect detecting method
US7164805B2 (en) Image processing method and apparatus, and recording medium
US7257270B2 (en) Image processing device and method, and recording medium
JPH09182093A (en) Image reproducing method and device
JP2000324353A (en) Image processor, method therefor and recording medium
JP2001008005A (en) Image reader
JPH11317863A (en) Image processing unit
JP2001075197A (en) Image processor, image processing method and recording medium
JP2001024884A (en) Device and method for processing picture and recording medium
JP3939466B2 (en) Image processing apparatus, method, and recording medium
JP2000209396A (en) Picture reading method and picture reader
JP2003189169A (en) Image processing apparatus
JP4024737B2 (en) Image processing apparatus, image reading apparatus, image forming apparatus, image processing method, and program
JP2002354258A (en) Image reader
JPH11331575A (en) Image processor
JP3559451B2 (en) Image processing method and image processing apparatus
JP3938818B2 (en) Image processing apparatus and method
JP2001024883A (en) Picture processor, method for controlling it, and recording medium
JP3576812B2 (en) Image processing apparatus and image processing method
JP2001024895A (en) Picture processor
JP2000152067A (en) Method and device for picture processing and recording medium