JPH10334211A - Method and system for eliminating glitter in image - Google Patents

Method and system for eliminating glitter in image

Info

Publication number
JPH10334211A
JPH10334211A JP14022497A JP14022497A JPH10334211A JP H10334211 A JPH10334211 A JP H10334211A JP 14022497 A JP14022497 A JP 14022497A JP 14022497 A JP14022497 A JP 14022497A JP H10334211 A JPH10334211 A JP H10334211A
Authority
JP
Japan
Prior art keywords
image
memory
pixels
illumination
pixel
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
JP14022497A
Other languages
Japanese (ja)
Inventor
Toshihiro Yamashita
敏広 山下
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.)
Nireco Corp
Original Assignee
Nireco Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nireco Corp filed Critical Nireco Corp
Priority to JP14022497A priority Critical patent/JPH10334211A/en
Publication of JPH10334211A publication Critical patent/JPH10334211A/en
Pending legal-status Critical Current

Links

Landscapes

  • Image Processing (AREA)

Abstract

PROBLEM TO BE SOLVED: To obtain an image from which a glittered part due to lighting is eliminated by lighting an object from plural directions so as to obtain images corresponding to each lighting direction and selecting pixels with darkest density among pixels at the same position thereby configuring one image. SOLUTION: An image pickup device 4 picks up one image for each lighting direction and four images converted into digital signals by an A/D converter 11 are stored sequentially to a 1st memory 13a - a 4th memory 13d by a changeover device 12. A personal computer 14 reads pixels at the same position of the images from the memories 13a-13d and selects a pixel with a lowest density. The selection is applied to all pixels of the images and the selected pixels are used to configure one image pattern, which is used for a selected image. The image is converted into analog data by a D/A converter 16 and displayed on a monitor 16. A glittered part appears in the images stored in the memories 13a-13d whose number is the same as the number of lighting directions, but the selected image processed by the personal computer 14 is configured with lighted pixels not causing glitter so as to eliminate the effect of glitter.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、照明の角度や位置
により撮像された画像に部分的に発生する光沢を除去す
る方法と装置に関する。
[0001] 1. Field of the Invention [0002] The present invention relates to a method and an apparatus for removing gloss partially occurring in an image captured according to the angle and position of illumination.

【0002】[0002]

【従来の技術】被写体に照明を当ててテレビカメラなど
の撮像装置で撮像した画像には、照明の方向により照明
光を反射した部分が光沢部分となって表れる。図6は照
明により被写体に表れる光沢部分を示す。被写体1とし
て例えば球状のものに照明装置2により照明を当てる
と、ほぼ正面部分に周囲より明るい光沢部分3が表れ
る。このような光沢部分3が表れると被写体1の正しい
画像を得ることができない。
2. Description of the Related Art In an image picked up by an image pickup device such as a television camera while illuminating a subject, a portion which reflects illumination light depending on the direction of illumination appears as a glossy portion. FIG. 6 shows a glossy portion that appears on a subject by illumination. When the illumination device 2 illuminates, for example, a spherical object 1 as a subject, a glossy portion 3 brighter than the surroundings appears in a substantially front portion. If such a glossy portion 3 appears, a correct image of the subject 1 cannot be obtained.

【0003】[0003]

【発明が解決しようとする課題】このような光沢部分を
被写体に発生させないために、照明方法を工夫して正反
射した光線が撮像装置に入射しないようにしているが、
この照明装置の設定にかなりの時間がかかっていた。ま
た、被写体に光沢部分が発生している画像の光沢部分を
濃度平均などの方法で軽減する方法も行われているが、
全体的な濃度変化によって画像のイメージが変化してし
まうなどの問題点があった。
In order to prevent such a glossy portion from being generated in a subject, a lighting method has been devised so that light beams which are regularly reflected do not enter the image pickup apparatus.
Setting up this lighting device took a considerable amount of time. There is also a method of reducing a glossy portion of an image in which a glossy portion occurs in a subject by a method such as density averaging.
There has been a problem that the image of the image changes due to a change in the overall density.

【0004】本発明は上述の問題点に鑑みてなされたも
ので、光沢部分が発生している画像より光沢部分を除去
する方法と装置を提供することを目的とする。
The present invention has been made in view of the above problems, and has as its object to provide a method and an apparatus for removing a glossy portion from an image having a glossy portion.

【0005】[0005]

【課題を解決するための手段】上記目的を達成するた
め、請求項1の発明では、被写体に対して撮像装置を対
向して配置し、複数の照明方向から照明を行い、各照明
方向からの照明毎に撮像して記憶し、得られた各照明毎
の画像の同一位置の画素の濃度を比較して最も暗い画素
を選択し、この選択した画素で一画面を構成するように
する。
In order to achieve the above object, according to the first aspect of the present invention, an image pickup device is arranged to face a subject, and illumination is performed from a plurality of illumination directions. An image is taken and stored for each illumination, and the darkest pixel is selected by comparing the densities of the pixels at the same position in the obtained image for each illumination, and one screen is constituted by the selected pixels.

【0006】被写体に発生する光沢部分の位置は照明装
置の照射方向によって変化する。このため照明方向を変
えてそれぞれの方向から撮像した画像には光沢部分が異
なった部分に発生する。そこで得られた全ての画像の同
一位置の画素の濃度を比較し、最も暗い濃度の画素を選
択しその位置の画素として一画像を構成すると、この画
像は光沢が発生していない状態の被写体を表す。
[0006] The position of the glossy portion generated on the subject changes depending on the irradiation direction of the illumination device. For this reason, glossy portions occur in different portions in an image captured from each direction while changing the illumination direction. The density of the pixels at the same position in all the obtained images is compared, and the pixel having the darkest density is selected to constitute one image as the pixel at that position. Represent.

【0007】請求項2の発明によれば、被写体に対して
撮像装置を対向して配置し、N個の照明方向から照明を
行い、第1の照明方向より撮像した第1画像を第1メモ
リに格納し、第2の照明方向より撮像した第2画像を第
2メモリに格納し、両画像の同一位置の画素の濃度を比
較して暗い方の画素を選択し、この選択した画素で第1
選択画像を構成してこれを第1メモリに上書し、第3の
照明方向より撮像した第3画像を第2メモリに上書し、
第1選択画像と第3画像の同一位置の画素の濃度を比較
して暗い方の画素を選択して選択した画素で第2選択画
像を構成してこれを第1メモリに上書し、第4の照明方
向より撮像した第4画像を第2メモリに上書し、第2選
択画像と第4画像の同一位置の画素の濃度を比較して暗
い方の画素を選択して選択した画素で第3選択画像を構
成してこれを第1メモリに上書し、以下同様にして第N
−1選択画像を得る。
According to the second aspect of the present invention, an image pickup device is arranged to face a subject, illumination is performed from N illumination directions, and a first image captured from a first illumination direction is stored in a first memory. And the second image captured from the second illumination direction is stored in the second memory, and the darker pixel is selected by comparing the densities of the pixels at the same position in both images. 1
Composing a selected image, overwriting it in a first memory, overwriting a third image taken from a third illumination direction in a second memory,
The density of pixels at the same position in the first selected image and the third image is compared, the darker pixel is selected, the second selected image is composed of the selected pixels, and this is overwritten in the first memory. The fourth image captured from the illumination direction of 4 is overwritten in the second memory, the density of the pixel at the same position of the second selected image and the fourth image is compared, and the darker pixel is selected and selected. Construct a third selected image and overwrite it in the first memory;
(1) Obtain a selected image.

【0008】先ず2つの異なる方向から照明した照明方
向毎の画像をそれぞれ第1メモリと第2メモリに格納
し、両画像の同一画素を比較して濃度の暗い方の画素を
選択して第1選択画像を構成して、これを第1メモリに
上書きする。次に別の照明方向からの画像を第2メモリ
に上書きし、第1選択画像の同一位置の画素の濃度を比
較し濃度の暗い方の画素を選択して第2選択画像を構成
し第1メモリに上書きする。このようにして得られた第
N−1選択画像はほぼ光沢を除去した画面となる。本請
求項の発明はN方向から照明してN個の画像を得る場合
でも2つのメモリがあれば光沢をほぼ除去した画像が得
られる。
First, images in illumination directions illuminated from two different directions are stored in a first memory and a second memory, respectively, and the same pixel of both images is compared to select a pixel having a darker density to obtain a first image. A selected image is constructed and overwritten in the first memory. Next, the image from another illumination direction is overwritten on the second memory, the density of the pixel at the same position of the first selected image is compared, and the pixel with the darker density is selected to form the second selected image. Overwrite memory. The (N-1) th selected image thus obtained is a screen from which gloss has been almost removed. According to the present invention, even when N images are obtained by illuminating from N directions, an image with almost no gloss can be obtained if there are two memories.

【0009】請求項3の発明では、被写体に対向して配
置された撮像装置と、被写体を複数の方向から照明する
照明装置と、各方向の照明ごとに撮像した画像を記憶す
るそれぞれのメモリと、各照明方向毎の画像の同一位置
の画素の濃度を比較して最も暗い画素を選択し、この選
択した画素で一画面を構成する画像選択手段と、を備え
る。
According to a third aspect of the present invention, there is provided an imaging device arranged to face a subject, an illuminating device for illuminating the subject from a plurality of directions, and respective memories for storing images taken for each direction of illumination. Image selecting means for comparing the densities of pixels at the same position in the image for each illumination direction, selecting the darkest pixel, and forming one screen with the selected pixel.

【0010】照明装置で被写体を複数の方向から照明
し、各方向ごとに撮像装置で撮像してそれぞれ別々のメ
モリに格納する。画像選択手段で各メモリに格納された
画像の同一位置の画素の濃度を比較し最も暗い濃度の画
素を選択しこの選択した画素で1画面を構成する。この
画面は光沢を除去した画面となっている。
A subject is illuminated from a plurality of directions by an illuminating device, and an image is taken by an imaging device for each direction and stored in separate memories. The image selection means compares the densities of the pixels at the same position of the image stored in each memory, selects the pixel having the darkest density, and configures one screen with the selected pixels. This screen is a screen from which gloss has been removed.

【0011】請求項4の発明では、被写体に対向して配
置された撮像装置と、N個の照明方向から被写体の照明
を行なう照明装置と、前記撮像装置が撮像した画像を記
憶する第1メモリおよび第2メモリと、第1の照明方向
より撮像した第1画像を第1メモリに格納し、第2の照
明方向より撮像した第2画像を第2メモリに格納し、両
画像の同一位置の画素の濃度を比較して暗い方の画素を
選択し、この選択した画素で第1選択画像を構成してこ
れを第1メモリに上書し、第3の照明方向より撮像した
第3画像を第2メモリに上書し、第1選択画像と第3画
像の同一位置の画素の濃度を比較して暗い方の画素を選
択して選択した画素で第2選択画像を構成してこれを第
1メモリに上書し、第4の照明方向より撮像した第4画
像を第2メモリに上書し、第2選択画像と第4画像の同
一位置の画素の濃度を比較して暗い方の画素を選択して
選択した画素で第3選択画像を構成してこれを第1メモ
リに上書し、以下同様にして第N−1選択画像を得る画
像選択手段と、を備える。
According to a fourth aspect of the present invention, there is provided an imaging device arranged to face a subject, an illumination device for illuminating the subject from N illumination directions, and a first memory for storing an image taken by the imaging device. And a second memory, the first image captured from the first illumination direction is stored in the first memory, the second image captured from the second illumination direction is stored in the second memory, and the two images are stored at the same position. The darker pixel is selected by comparing the pixel densities, a first selected image is composed of the selected pixel, this is overwritten in the first memory, and the third image captured from the third illumination direction is obtained. The second memory is overwritten, the density of the pixels at the same position in the first selected image and the third image is compared, the darker pixel is selected, and the second selected image is constituted by the selected pixels. Overwrites one memory and stores a fourth image captured from a fourth illumination direction in a second memory. Then, the density of the pixels at the same position in the second selected image and the fourth image is compared, the darker pixel is selected and the third selected image is composed of the selected pixels, and this is overwritten in the first memory. And an image selecting means for obtaining the (N-1) th selected image in the same manner.

【0012】照明装置により、被写体を先ず2つの異な
る方向から照明し照明方向毎に撮像装置で撮像した画像
をそれぞれ第1メモリと第2メモリに格納する。画像選
択手段は、両画像の同一画素を比較して濃度の暗い方の
画素を選択して第1選択画像を構成して、これを第1メ
モリに上書きする。次に別の照明方向から照明装置によ
り照明し、撮像装置で撮像した画像を第2メモリに上書
きする。画像選択手段はこの第2メモリから読み出した
画像と第1選択画像の同一位置の画素の濃度を比較し濃
度の暗い方の画素を選択して第2選択画像を構成し第1
メモリに上書きする。このようにして第N−1選択画像
を得ることができ、この画像はほぼ光沢を除去した画像
となる。本請求項の発明はN方向から照明してN個の画
像を得る場合でも2つのメモリがあれば光沢をほぼ除去
した画像(第N−1選択画像)を得ることができる。
The illuminating device first illuminates the subject from two different directions, and stores images captured by the imaging device for each illumination direction in the first memory and the second memory, respectively. The image selection means compares the same pixels of both images and selects the darker pixel to form a first selected image, and overwrites this in the first memory. Next, the image is illuminated by the illumination device from another illumination direction, and the image captured by the imaging device is overwritten in the second memory. The image selecting means compares the densities of pixels at the same position in the image read from the second memory and the first selected image, and selects a pixel having a darker density to form a second selected image.
Overwrite memory. In this manner, the (N-1) th selected image can be obtained, and this image is an image from which gloss has been almost removed. According to the present invention, even in the case where N images are obtained by illuminating from N directions, if there are two memories, it is possible to obtain an image (N-1th selected image) from which gloss is almost eliminated.

【0013】請求項5の発明では、前記照明装置は1個
であり、各照明方向に移動して照明を行なう。
In the invention of claim 5, the number of the illuminating device is one, and the illuminating device moves in each illuminating direction to perform the illuminating.

【0014】照明装置を移動して複数の照明方向から被
写体を照射すれば、1個の照明装置で照明方向の異なる
複数の画像を撮像することができる。なお、例えば、ベ
ルトコンベア上を流れてくる被写体を複数方向の照明装
置で照明してそれぞれの方向ごとの画面を得るには、各
方向毎に照明装置を設けた方が、迅速な撮像ができる。
By illuminating the subject from a plurality of illumination directions by moving the illumination device, a single illumination device can capture a plurality of images having different illumination directions. For example, in order to illuminate a subject flowing on a belt conveyor with a lighting device in a plurality of directions and obtain a screen in each direction, providing a lighting device in each direction enables quick imaging. .

【0015】[0015]

【発明の実施の形態】以下、本発明の実施の形態につい
て図面を参照して説明する。図1は本実施形態の撮像装
置と照明方向の一例を示す。本実施形態では、例えば4
つの方向から照明を行なう場合について説明する。なお
本発明は2つ以上の方向であればよい。照明源として
は、例えば蛍光灯やハロゲンランプを使用する。被写体
1は球の場合を示すが、どのような形状でもよい。
(A)は側面図を示し水平線上にテレビカメラなどの撮
像装置4を被写体1に対向して配置し、上方からα1の
角度で2個の照明装置2を配置し、下方からα2の角度
で2個の照明装置を配置する。(B)は平面図を示し、
一方の上下2つの照明装置2は図において撮像装置4か
ら見て右にβ1の角度傾斜し、他の上下2つの照明装置
2は左にβ2の角度傾斜して配置されている。なお、4
個の照明装置2を4つの方向にそれぞれ配置するとした
が、1個の照明装置2を4つの方向にそれぞれ移動して
もよい。
Embodiments of the present invention will be described below with reference to the drawings. FIG. 1 shows an example of the imaging device and the illumination direction of the present embodiment. In the present embodiment, for example, 4
Illumination from two directions will be described. In the present invention, it is only necessary to use two or more directions. As the illumination source, for example, a fluorescent lamp or a halogen lamp is used. The subject 1 is shown as a sphere, but may have any shape.
(A) shows a side view, in which an imaging device 4 such as a television camera is arranged on the horizontal line so as to face the subject 1, two illumination devices 2 are arranged at an angle of α1 from above, and at an angle of α2 from below. Two lighting devices are arranged. (B) shows a plan view,
The upper and lower two illuminating devices 2 are arranged at an angle β1 to the right as viewed from the imaging device 4 in the figure, and the other two upper and lower illuminating devices 2 are arranged at an angle β2 to the left. In addition, 4
Although the lighting devices 2 are arranged in the four directions, one lighting device 2 may be moved in the four directions.

【0016】図2は図1に示した照明方向により撮像し
た画像と、この画像より本実施形態により光沢部分を除
去した画像を示す。(A)〜(D)は4つの方向からそ
れぞれ照明した画像を示す。それぞれ光沢部分3が表れ
ている。(E)は本発明の方法により光沢部分3を除去
した被写体1の画像を示す。
FIG. 2 shows an image taken in the illumination direction shown in FIG. 1 and an image obtained by removing a glossy portion from this image according to the present embodiment. (A) to (D) show images respectively illuminated from four directions. In each case, a glossy portion 3 appears. (E) shows an image of the subject 1 from which the glossy portion 3 has been removed by the method of the present invention.

【0017】図3は本発明の第1実施形態の構成を示す
ブロック図である。被写体1と照明装置2と撮像装置4
は図1に示す配置となっている。撮像装置4では1つの
照明方向ごとに1画像を撮像する。この画像はA/Dコ
ンバータ11でアナロク信号よりデジタル信号に変換さ
れ、照明方向ごとの4つの画像は切換装置12により順
次第1メモリ13a〜第4メモリ13dに格納される。
パーソナルコンピュータ14はこのメモリ切換を制御す
るとともに、各メモリ13a〜13dから画像の同一位
置の画素を読み出し、濃度の最も低い(暗い、つまり黒
に近い)画素を選択する。画像の全ての画素に対してこ
の選択をし、選択した画素で1画面を構成し、これを選
択画像と称する。この選択画像をデジタルよりアナログ
データにD/Aコンバータ15で変換しモニタ16の画
面に表示する。本実施例の場合照明方向と同一の数のメ
モリ13a〜13dを必要とする。各メモリ13a〜1
3dに格納された画像には、図2の(A)〜(D)に示
したように光沢部分3が表れているが、パーソナルコン
ピュータ14で処理された選択画像は図2(E)に示す
ように光沢を生じない照明部分より構成される。これに
より光沢の影響を除去できる。
FIG. 3 is a block diagram showing the configuration of the first embodiment of the present invention. Subject 1, lighting device 2, and imaging device 4
Are arranged as shown in FIG. The imaging device 4 captures one image for each illumination direction. This image is converted from an analog signal into a digital signal by the A / D converter 11, and four images for each illumination direction are sequentially stored in the first memory 13 a to the fourth memory 13 d by the switching device 12.
The personal computer 14 controls the memory switching, reads out the pixels at the same position of the image from the memories 13a to 13d, and selects the pixel having the lowest density (dark, that is, close to black). This selection is made for all the pixels of the image, and one screen is constituted by the selected pixels, and this is called a selected image. The selected image is converted from digital to analog data by the D / A converter 15 and displayed on the screen of the monitor 16. In the case of this embodiment, the same number of memories 13a to 13d as the illumination directions are required. Each memory 13a-1
The image stored in 3d shows the glossy portion 3 as shown in FIGS. 2A to 2D, but the selected image processed by the personal computer 14 is shown in FIG. Illuminated portions that do not produce gloss. Thereby, the influence of gloss can be eliminated.

【0018】図4は図3の変形例を示す。つまり、図3
に示すパーソナルコンピュータ14を演算処理コンパレ
ータ17と最終画像(選択画像)を格納する最終メモリ
18に置き換えたものである。図3のパーソナルコンピ
ュータ14の機能は4つの画像の同一位置の画素を比較
してその1つを選択し、選択した画素により選択画像を
構成してメモリに格納することであるので、この機能を
取り出して構成したものである。
FIG. 4 shows a modification of FIG. That is, FIG.
Is replaced by an arithmetic processing comparator 17 and a final memory 18 for storing a final image (selected image). The function of the personal computer 14 shown in FIG. 3 is to compare the pixels at the same position in the four images, select one of them, configure the selected image with the selected pixels, and store it in the memory. It is one that is taken out and configured.

【0019】図5は本発明の第2実施形態を示す。第1
実施形態では照明の方向と同じ数のメモリが必要であっ
たが、本実施形態では照明方向が幾つであってもメモリ
は2つでよい。図5に示す装置はハードウェア的にはメ
モリが第1メモリ13aと第2メモリ13bとなってい
る点が相違する。
FIG. 5 shows a second embodiment of the present invention. First
In the embodiment, the same number of memories as the number of illumination directions are required. However, in this embodiment, two memories may be used regardless of the number of illumination directions. The device shown in FIG. 5 is different from the hardware in that the memories are a first memory 13a and a second memory 13b.

【0020】本実施例のパーソナルコンピュータ14に
よる処理は次のように行われる。照明装置2は4個あっ
て4つの方向から照明を行なうものとする。なお1個の
照明装置2を移動して4つの方向から照明してもよい。
まず被写体1に1つの方向から照明してこれを撮像装置
4で撮像し、その画像を第1メモリ13aに格納する。
同様に2つ目の方向から照明して得られた画像を第2メ
モリ13bに格納する。次に、両画像の同一画素を比較
して濃度の暗い方の画素を選択する。両画像の全ての画
素に対してこのように画素の選択を行い、この選択した
画素で構成した画像を第1選択画像とし、これを第1メ
モリ13aに上書きする。次に3つ目の照明方向から照
明し、撮像装置4で撮像した画像を第2メモリ13bに
上書きする。この第2メモリ13bから読み出した画像
と第1選択画像の同一位置の画素の濃度を比較し濃度の
暗い方の画素を選択して第2選択画像を構成し第1メモ
リ13aに上書きする。次に4つ目の照明方向から照明
し、撮像装置4で撮像した画像を第2メモリ13bに上
書きする。この第2メモリ13bから読み出した画像と
第2選択画像の同一位置の画素の濃度を比較し濃度の暗
い方の画素を選択して第3選択画像を構成し第1メモリ
13aに上書きする。この第3選択画像は図2(E)の
画像とほぼ同じ画像で、光沢部分を除去して通常の照明
部分より構成された画像となっている。なお、本装置の
パーソナルコンヒュータ14を図4に示す演算処理コン
パレータ17と最終メモリ18に置き換えることも可能
である。
The processing by the personal computer 14 of this embodiment is performed as follows. It is assumed that there are four illuminating devices 2 that illuminate from four directions. Note that one lighting device 2 may be moved to illuminate from four directions.
First, the subject 1 is illuminated from one direction and is captured by the imaging device 4, and the image is stored in the first memory 13a.
Similarly, an image obtained by illuminating from the second direction is stored in the second memory 13b. Next, the same pixel of both images is compared to select a pixel having a darker density. Pixel selection is performed for all the pixels of both images in this manner, an image composed of the selected pixels is set as a first selected image, and this is overwritten in the first memory 13a. Next, the image is illuminated from the third illumination direction, and the image captured by the imaging device 4 is overwritten in the second memory 13b. The image read out from the second memory 13b and the density of the pixel at the same position of the first selected image are compared, and the pixel with the darker density is selected to form the second selected image and overwrite the first memory 13a. Next, the image is illuminated from the fourth illumination direction, and the image captured by the imaging device 4 is overwritten on the second memory 13b. The image read out from the second memory 13b and the density of the pixel at the same position of the second selected image are compared, and the pixel with the darker density is selected to form the third selected image and overwritten on the first memory 13a. This third selected image is substantially the same as the image of FIG. 2E, and is an image composed of a normal illumination portion after removing the glossy portion. It should be noted that the personal computer 14 of the present apparatus can be replaced with the arithmetic processing comparator 17 and the final memory 18 shown in FIG.

【0021】以上は対象が静止画として説明したが、ベ
ルトコンベアなどの上を走る移動する物体を対象として
もよい。その場合には、対象物の移動速度に対して照明
の切換時間を短くし、ほぼ同一の位置で対象物を撮影す
ればよい。また対象物が移動していても、対象物と撮像
装置の相対関係が同じならば、複数の撮像装置と複数の
照明装置を用いてもよい。
Although the above description has been made on the assumption that the object is a still image, the object may be a moving object running on a belt conveyor or the like. In that case, the illumination switching time may be shortened with respect to the moving speed of the object, and the object may be photographed at almost the same position. Further, even when the target object is moving, a plurality of imaging devices and a plurality of lighting devices may be used as long as the relative relationship between the target object and the imaging device is the same.

【0022】[0022]

【発明の効果】以上の説明より明らかなように、本発明
では、被写体に複数の方向から照明し、各照明方向から
の画像を得て、これらの同一位置の画素を比較し、濃度
の最も暗い画素を選択し、この選択した画素で1画像
(選択画像)を構成することにより、照明による光沢部
分を除去した画像を得ることができる。また2つの照明
方向の画像から第1選択画像を構成し、この第1選択画
像と次の照明方向の画像から第2選択画像を構成し、以
下同様にして第N−1選択画像を構成することにより、
N方向の照明方向の場合でも2個のメモリで選択画像を
得ることができる。この選択画像は照明によって生ずる
光沢を除去した画像となっている。
As is apparent from the above description, according to the present invention, the subject is illuminated from a plurality of directions, images are obtained from each of the illumination directions, and pixels at the same positions are compared with each other. By selecting a dark pixel and forming one image (selected image) with the selected pixel, an image from which a glossy portion due to illumination has been removed can be obtained. Also, a first selected image is formed from images in two illumination directions, a second selected image is formed from this first selected image and an image in the next illumination direction, and so on. By doing
Even in the case of the N-direction illumination direction, a selected image can be obtained with two memories. This selected image is an image from which gloss caused by illumination has been removed.

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

【図1】本発明の実施形態の光学的配置を示す図で、
(A)は側面図、(B)は平面図である。
FIG. 1 is a diagram showing an optical arrangement according to an embodiment of the present invention;
(A) is a side view, (B) is a plan view.

【図2】図1の照明方向により撮像した画像(A)〜
(D)と本発明により光沢部分を除去した画像(E)を
示す図である。
FIG. 2 is an image (A) to which images are taken in the illumination direction of FIG. 1;
It is a figure which shows (D) and the image (E) which removed the glossy part by this invention.

【図3】第1実施形態の構成を示す図である。FIG. 3 is a diagram showing a configuration of the first embodiment.

【図4】第1実施形態の変形例を示す図である。FIG. 4 is a diagram showing a modification of the first embodiment.

【図5】第2実施形態の構成を示す図である。FIG. 5 is a diagram illustrating a configuration of a second embodiment.

【図6】照明によって被写体に生ずる光沢部分を示す図
である。
FIG. 6 is a diagram showing a glossy portion generated on a subject by illumination.

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

1 被写体 2 照明装置 3 光沢部分 4 撮像装置 11 A/Dコンバータ 12 切換装置 13a〜13d 第1メモリ〜第4メモリ 14 パーソナルコンピュータ 15 D/Aコンバータ 16 モニタ 17 演算処理コンパレータ 18 最終メモリ DESCRIPTION OF SYMBOLS 1 Subject 2 Illumination device 3 Glossy part 4 Imaging device 11 A / D converter 12 Switching device 13a-13d 1st memory-4th memory 14 Personal computer 15 D / A converter 16 Monitor 17 Arithmetic processing comparator 18 Final memory

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】 被写体に対して撮像装置を対向して配置
し、複数の照明方向から照明を行い、各照明方向からの
照明毎に撮像して記憶し、得られた各照明方向毎の画像
の同一位置の画素の濃度を比較して最も暗い画素を選択
し、この選択した画素で一画面を構成するようにしたこ
とを特徴とする画像内の光沢除去方法。
1. An image pickup device is arranged to face a subject, illumination is performed from a plurality of illumination directions, an image is captured and stored for each illumination from each illumination direction, and an obtained image for each illumination direction is obtained. Wherein the darkest pixel is selected by comparing the densities of the pixels at the same position, and one screen is constituted by the selected pixels.
【請求項2】 被写体に対して撮像装置を対向して配置
し、N個の照明方向から照明を行い、第1の照明方向よ
り撮像した第1画像を第1メモリに格納し、第2の照明
方向より撮像した第2画像を第2メモリに格納し、両画
像の同一位置の画素の濃度を比較して暗い方の画素を選
択し、この選択した画素で第1選択画像を構成してこれ
を第1メモリに上書し、第3の照明方向より撮像した第
3画像を第2メモリに上書し、第1選択画像と第3画像
の同一位置の画素の濃度を比較して暗い方の画素を選択
して選択した画素で第2選択画像を構成してこれを第1
メモリに上書し、第4の照明方向より撮像した第4画像
を第2メモリに上書し、第2選択画像と第4画像の同一
位置の画素の濃度を比較して暗い方の画素を選択して選
択した画素で第3選択画像を構成してこれを第1メモリ
に上書し、以下同様にして第N−1選択画像を得ること
を特徴とする画像内の光沢除去方法。
2. An image pickup device is disposed to face a subject, illumination is performed from N illumination directions, a first image captured from a first illumination direction is stored in a first memory, and a second image is stored in a first memory. The second image captured from the illumination direction is stored in the second memory, the darker pixel is selected by comparing the densities of the pixels at the same position in both images, and the first selected image is formed by the selected pixels. This is overwritten in the first memory, the third image captured from the third illumination direction is overwritten in the second memory, and the density of the pixel at the same position of the first selected image and the third image is compared to be dark. A second selected image is constituted by the pixels selected by selecting one of the pixels, and
Overwriting the memory, overwriting the fourth image captured from the fourth illumination direction into the second memory, comparing the density of the pixel at the same position of the second selected image and the fourth image, and determining the darker pixel A method for removing gloss in an image, comprising forming a third selected image with selected and selected pixels, overwriting this in a first memory, and thereafter obtaining an (N-1) th selected image in the same manner.
【請求項3】 被写体に対向して配置された撮像装置
と、被写体を複数の方向から照明する照明装置と、各方
向の照明ごとに撮像した画像を記憶するそれぞれのメモ
リと、各照明方向毎の画像の同一位置の画素の濃度を比
較して最も暗い画素を選択し、この選択した画素で一画
面を構成する画像選択手段と、を備えたことを特徴とす
る画像内の光沢除去装置。
3. An imaging device arranged to face a subject, an illuminating device for illuminating the subject from a plurality of directions, respective memories for storing images taken for each direction of illumination, and An image selecting means for selecting the darkest pixel by comparing the densities of the pixels at the same position of the image and forming an image with the selected pixel.
【請求項4】 被写体に対向して配置された撮像装置
と、N個の照明方向から被写体の照明を行なう照明装置
と、前記撮像装置が撮像した画像を記憶する第1メモリ
および第2メモリと、第1の照明方向より撮像した第1
画像を第1メモリに格納し、第2の照明方向より撮像し
た第2画像を第2メモリに格納し、両画像の同一位置の
画素の濃度を比較して暗い方の画素を選択し、この選択
した画素で第1選択画像を構成してこれを第1メモリに
上書し、第3の照明方向より撮像した第3画像を第2メ
モリに上書し、第1選択画像と第3画像の同一位置の画
素の濃度を比較して暗い方の画素を選択して選択した画
素で第2選択画像を構成してこれを第1メモリに上書
し、第4の照明方向より撮像した第4画像を第2メモリ
に上書し、第2選択画像と第4画像の同一位置の画素の
濃度を比較して暗い方の画素を選択して選択した画素で
第3選択画像を構成してこれを第1メモリに上書し、以
下同様にして第N−1選択画像を得る画像選択手段と、
を備えたことを特徴とする画像内の光沢除去装置。
4. An imaging device arranged to face an object, an illumination device for illuminating the object from N illumination directions, a first memory and a second memory for storing an image taken by the imaging device. , The first imaged from the first illumination direction
The image is stored in the first memory, the second image captured from the second illumination direction is stored in the second memory, and the darker pixel is selected by comparing the densities of the pixels at the same position in both images. A first selected image is constituted by the selected pixels, this is overwritten in a first memory, a third image captured from a third illumination direction is overwritten in a second memory, and the first selected image and the third image are overwritten. The second selected image is constituted by the pixels selected by comparing the densities of the pixels at the same position and selecting the darker pixel, this is overwritten in the first memory, and the second selected image is taken from the fourth illumination direction. The four images are overwritten in the second memory, the density of the pixels at the same position of the second selected image and the fourth image are compared, and the darker pixel is selected to form the third selected image. Image selecting means for overwriting this in the first memory and obtaining an (N-1) th selected image in the same manner;
An apparatus for removing gloss in an image, comprising:
【請求項5】 前記照明装置は1個であり、各照明方向
に移動して照明を行なうことを特徴とする請求項3また
は4記載の画像内の光沢除去装置。
5. The apparatus according to claim 3, wherein the number of the illuminating devices is one, and the illuminating device moves in each illuminating direction to illuminate.
JP14022497A 1997-05-29 1997-05-29 Method and system for eliminating glitter in image Pending JPH10334211A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP14022497A JPH10334211A (en) 1997-05-29 1997-05-29 Method and system for eliminating glitter in image

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP14022497A JPH10334211A (en) 1997-05-29 1997-05-29 Method and system for eliminating glitter in image

Publications (1)

Publication Number Publication Date
JPH10334211A true JPH10334211A (en) 1998-12-18

Family

ID=15263802

Family Applications (1)

Application Number Title Priority Date Filing Date
JP14022497A Pending JPH10334211A (en) 1997-05-29 1997-05-29 Method and system for eliminating glitter in image

Country Status (1)

Country Link
JP (1) JPH10334211A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010183279A (en) * 2009-02-04 2010-08-19 Saitama Univ Image processor of high-speed camera, image processing method, and high-speed camera apparatus
JP2014215217A (en) * 2013-04-26 2014-11-17 住友金属鉱山株式会社 Object inspection device and object inspection method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010183279A (en) * 2009-02-04 2010-08-19 Saitama Univ Image processor of high-speed camera, image processing method, and high-speed camera apparatus
JP2014215217A (en) * 2013-04-26 2014-11-17 住友金属鉱山株式会社 Object inspection device and object inspection method

Similar Documents

Publication Publication Date Title
KR101098087B1 (en) Image processing device, image processing method, and computer readable medium having recorded thereon an image processing program
US6002425A (en) All pixels read type electronic endoscope system
US20120147224A1 (en) Imaging apparatus
WO2001096839A1 (en) Optical inspection system
KR20010085748A (en) Method and apparatus for electronically enhancing images
JP3866957B2 (en) Image synthesizer
US5257100A (en) Apparatus for reducing network patterns from the image of a fiber scope
JPH0581408A (en) Defect picture display method
JP2002525561A (en) Equipment for surface image detection and surface inspection of three-dimensional structures
JP2741463B2 (en) Solder appearance inspection method
JPH10334211A (en) Method and system for eliminating glitter in image
JP2013118429A (en) Imaging device, and imaging method
JPH1198418A (en) Image pickup device
JPH08254499A (en) Displaying/appearance inspection device
JP2001136540A (en) Image processor
JP2002085344A (en) Image freeze processor
JP3035855B2 (en) Electronic endoscope device
US5034825A (en) High quality image scanner
JP4388182B2 (en) Endoscope device
JP2004329514A (en) Image signal processing device
JP2560539B2 (en) Quartz thin plate twin crystal inspection system
JPH069392B2 (en) Endoscopic imaging device
JPH0644104B2 (en) Endoscopic video system
JPH10136349A (en) Focus adjustment method for video doorphone system
JPH0241131A (en) Electronic endoscope apparatus