JP2019106696A - Adjustment method of illumination light source - Google Patents
Adjustment method of illumination light source Download PDFInfo
- Publication number
- JP2019106696A JP2019106696A JP2018118712A JP2018118712A JP2019106696A JP 2019106696 A JP2019106696 A JP 2019106696A JP 2018118712 A JP2018118712 A JP 2018118712A JP 2018118712 A JP2018118712 A JP 2018118712A JP 2019106696 A JP2019106696 A JP 2019106696A
- Authority
- JP
- Japan
- Prior art keywords
- value
- image attribute
- readjustment
- adjusted
- initial
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000005286 illumination Methods 0.000 title claims abstract description 144
- 238000000034 method Methods 0.000 title claims abstract description 117
- 238000012545 processing Methods 0.000 claims abstract description 103
- 235000019557 luminance Nutrition 0.000 claims description 120
- 238000011156 evaluation Methods 0.000 claims description 24
- 238000003384 imaging method Methods 0.000 claims description 24
- 238000004458 analytical method Methods 0.000 claims description 13
- 238000004364 calculation method Methods 0.000 claims description 6
- 230000001678 irradiating effect Effects 0.000 abstract description 3
- 230000004044 response Effects 0.000 abstract description 3
- 238000005457 optimization Methods 0.000 description 8
- 238000005259 measurement Methods 0.000 description 4
- 238000012549 training Methods 0.000 description 3
- 238000010586 diagram Methods 0.000 description 2
- 238000012216 screening Methods 0.000 description 2
- 238000010187 selection method Methods 0.000 description 2
- 238000007792 addition Methods 0.000 description 1
- 238000003491 array Methods 0.000 description 1
- 230000009977 dual effect Effects 0.000 description 1
- 239000000835 fiber Substances 0.000 description 1
- 238000002347 injection Methods 0.000 description 1
- 239000007924 injection Substances 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Landscapes
- Exposure Control For Cameras (AREA)
- Stroboscope Apparatuses (AREA)
- Studio Devices (AREA)
- Image Processing (AREA)
Abstract
Description
本発明は、照明光源の調整方法に関し、特に、被写体を撮影するために使用される照明光源の調整方法に関する。 The present invention relates to a method of adjusting an illumination light source, and more particularly to a method of adjusting an illumination light source used to capture an object.
下記の特許文献には、検査される被写体(例えば半導体パッケージ)の高コントラスト画像を取り込むための機械視覚装置と共に使用するための可変強度照明システムが記載される。可変強度照明システムは、被写体に光を照射する複数の光ファイバ発光素子アレイと、被写体の画像を記録するためのカメラと、アレイによって放出された光の強度を変化させて、カメラによって見られる被写体の照明を調節するための光強度制御回路と、適切なコントラストを有する設定に達するまで光の強度を再調整するために、被写体の所定数のカメラピクセル強度値からメジアングレイ値を計算するようにプログラムされたプロセッサとを備える。 The following patent documents describe a variable intensity illumination system for use with a machine vision apparatus for capturing high contrast images of an object to be examined (e.g. a semiconductor package). The variable-intensity lighting system comprises a plurality of optical fiber light emitting element arrays for irradiating light to a subject, a camera for recording an image of the subject, and an intensity of light emitted by the array to change the intensity of the light to be viewed by the camera. Light intensity control circuit to adjust the illumination of the light, and to calculate the median gray value from a predetermined number of camera pixel intensity values of the subject to re-adjust the light intensity until the setting with the appropriate contrast is reached And a programmed processor.
しかし、可変強度照明システムは、画像のコントラスト比に応じて、複数の光ファイバ発光素子のアレイによって放射される光の強度を調整する。実際には、コントラストのみを考慮するには不十分である。更に、光の強度の他に、被写体に照射される光のパターン、色合いなども重要であり、照射される被写体の画像のコントラスト比及び他の画像属性に影響を及ぼす可能性がある。 However, variable intensity illumination systems adjust the intensity of the light emitted by the array of fiber optic light emitters in response to the contrast ratio of the image. In practice, it is insufficient to consider only the contrast. Furthermore, in addition to the light intensity, the pattern, color tone, etc. of the light irradiated to the subject are also important, which may affect the contrast ratio of the image of the irradiated subject and other image attributes.
よって、本発明は上記の問題点に鑑みて、撮影した画像に対する品質を総合的な分析により、使用者の需要に最も適切な光を選別することができる照明光源の調整方法を提供する。 Therefore, in view of the above problems, the present invention provides a method of adjusting an illumination light source capable of selecting light most appropriate for the user's demand by comprehensively analyzing the quality of a captured image.
上記の目的を達成すべく、本発明は、記憶装置と、被写体を照射できる照明光源と、前記照明光源によって照射される前記被写体を撮影できる撮影装置と、中央処理装置と、を備えた光源調整システムによって実行される照明光源の調整方法であって、前記中央処理装置の制御により、前記記憶装置に記録されていると共に前記照明光源の照射に関する照射パラメータを含む複数の初期照射パラメータセットと、前記照明光源が前記複数の初期照射パラメータセットにそれぞれ基づいて前記照明光源で前記被写体を照射し、前記撮影装置が前記初期照射パラメータセットごとに、前記被写体を複数回撮影して得た複数の初期画像と、を前記記憶装置に記録し、前記中央処理装置が各前記初期照射パラメータセットに対応する複数の前記初期画像を分析することにより、各前記初期照射パラメータセットに対応し、且つ、各前記初期画像に対応する1種類の画像属性の数値に関連付けられた複数の画像属性数値セットを含む複数の初期画像属性データセットを取得して前記記憶装置に記録する、初期画像撮影工程と、使用者により前記被写体に対して入力され、且つ、少なくとも1つの前記画像属性を含む選別条件に基づいて、前記複数の初期画像属性データセットから1つ選別して該選別した初期画像属性データセットが対応する前記初期照射パラメータセットを候補照射パラメータセットとして選択する、候補選択工程と、前記候補選択工程において選択された前記候補照射パラメータセットに含まれる少なくとも1つの照射パラメータに対して、所定範囲内の数値を変数としてそれぞれ代入して、各前記変数にそれぞれ対応する複数の調整後照射パラメータセットを得て前記記憶装置に記録する、調整工程と、前記調整工程において得られた前記複数の調整後照射パラメータセットにそれぞれ基づいて、前記被写体を照射するように前記照明光源を制御する、調整照射工程と、前記撮影装置により、前記調整照射工程で照射された前記被写体を、各前記調整後照射パラメータセットに、前記被写体を複数回撮影して、各前記調整後照射パラメータセットに対応する複数の調整後画像を得て前記記憶装置に記録する、撮影工程と、前記撮影工程によって得られた前記複数の調整後画像を分析して、それぞれ前記複数の調整後照射パラメータセットに対応すると共にそれぞれ複数の前記画像属性の数値に関連付けられた複数の画像属性数値セットを含む複数の調整後画像属性データセットを得て前記記憶装置に記録する、分析工程と、前記分析工程において得られた前記複数の調整後画像属性データセットから、前記選別条件に基づいて1つを選別し、該選別した1つの調整後画像属性データセットが対応する前記調整後照射パラメータセットを目標照射パラメータセットとして選択する、目標選択工程と、を含む照明光源の調整方法を提供する。 In order to achieve the above object, the present invention provides a light source adjustment including a storage device, an illumination light source capable of irradiating an object, an imaging device capable of photographing the object illuminated by the illumination light source, and a central processing unit A method of adjusting an illumination light source performed by a system, comprising: a plurality of initial illumination parameter sets recorded in the storage device under control of the central processing unit and including illumination parameters related to illumination of the illumination light source; A plurality of initial images obtained by the illumination light source illuminating the subject with the illumination light source based on the plurality of initial illumination parameter sets, and the imaging device photographing the subject a plurality of times for each of the initial illumination parameter sets , And the central processing unit stores a plurality of the initial images corresponding to the respective initial irradiation parameter sets. By analyzing the plurality of initial image attribute data corresponding to each of the initial irradiation parameter sets and including a plurality of image attribute numerical value sets associated with numerical values of one type of image attribute corresponding to each of the initial images The plurality of initial images are acquired based on an initial image photographing process of acquiring a set and recording the information in the storage device, and a selection condition input to the subject by the user and including at least one image attribute. A candidate selection step of selecting one of the attribute data sets and selecting the initial irradiation parameter set corresponding to the selected initial image attribute data set as a candidate irradiation parameter set; and the candidate irradiation selected in the candidate selection step For at least one irradiation parameter included in the parameter set, using a numerical value within a predetermined range as a variable An adjusting step of obtaining a plurality of after-adjustment irradiation parameter sets respectively corresponding to each of the variables by substitution and recording the same in the storage device; and the plurality of after-adjustment irradiation parameter sets obtained in the adjusting step Controlling the illumination light source so as to irradiate the subject based on each of the adjustment irradiation step; and the imaging device setting the irradiation of the subject irradiated in the adjustment irradiation step to each of the after-adjustment irradiation parameter sets; A photographing step of photographing the subject a plurality of times, obtaining a plurality of adjusted images corresponding to each of the adjusted irradiation parameter sets, and recording the plurality of adjusted images in the storage device; Analyzing the image to correspond to the plurality of adjusted illumination parameter sets and to associate the plurality of image attribute values with each other; Analysis step of obtaining a plurality of adjusted image attribute data sets including the image attribute numerical value set and recording the result in the storage device; and the sorting condition from the plurality of adjusted image attribute data sets obtained in the analysis step Selecting an adjusted irradiation parameter set corresponding to the selected one adjusted image attribute data set as a target irradiation parameter set, and selecting the one based on I will provide a.
以上のように、本発明による照明光源の調整方法の実施形態は、例えば、複数の初期照射パラメータセットから、被写体を撮影することに使用者の要求に最も適合する初期照射パラメータセットを選別し、更にそれを調整して算出された調整後照射パラメータセットをそれぞれ選別することができ、使用者の需要に最も適合する画像属性を有する被写体の画像を得ることができる。 As described above, the embodiment of the method of adjusting the illumination light source according to the present invention selects, for example, an initial irradiation parameter set most suitable for the user's request for photographing an object from a plurality of initial irradiation parameter sets; Further, it can be adjusted to sort the calculated set of irradiation parameters after adjustment, and it is possible to obtain an image of an object having an image attribute most suitable for the user's demand.
図1は、本発明による照明光源の調整方法を実行するための照明システム100が示されるブロック図である。図1に示されるように、照明システム100は、入力装置1と、記憶装置2と、照明光源3と、撮影装置4と、中央処理装置5と、を備える。中央処理装置5は、入力装置1、記憶装置2、照明光源3、及び撮影装置4に電気的に接続され、且つ、記憶装置2に記憶されたプログラムの内容に基づいて動作することにより、照明光源3を制御して特定の稼働方式である複数の初期照射モードA1〜Anで被写体を照射する。
FIG. 1 is a block diagram showing an
照明光源3は、例えば、発光ダイオードアレイのような発光素子である。撮影装置4は、例えば、被写体の画像を撮像するカメラである。
The
記憶装置2は、機械(例えばコンピュータ)によって読み取り可能な形式でデータを記憶するための一時的又は非一時的なメモリ機構を含む。例えば、コンピュータで読み取り可能な記憶装置は、読み出し専用メモリ(ROM)、ランダムアクセスメモリ(RAM)、磁気ディスク記憶媒体、光学記憶媒体、フラッシュメモリ装置、及び他の記憶装置及び媒体が挙げられる。記憶装置2は、複数の初期照射パラメータセットB1〜Bnを記憶し、それらの初期照射パラメータセットB1〜Bnは、それぞれ複数の初期照射モードA1〜Anに対応し、並びにそれぞれ後述する複数の初期画像属性データセットD1〜Dnに対応する。各初期照射パラメータセットB1〜Bnは、少なくとも照明光源3から、射出する光の輝度を示す初期輝度IBと、射出する光の色のトーン値を示す初期トーン値TBと、の2つの数値データを含む。
The
中央処理装置5が1つの初期照射モードAを選び、その初期照射モードAに対応する1つの初期照射パラメータセットBに含まれる初期輝度IB及び初期トーン値TBに従って照明光源3を被写体に向かって照射させ、撮影装置4により撮影して得た初期画像C1〜Cnが中央処理装置5で分析されることにより、1つの初期画像属性データセットD1〜Dnが得られる。
本実施形態において、中央処理装置5は、レジスタ、メモリの少なくとも何れかから読み出された電子データを処理して、その電子データを他の電子データに変換するデバイス又はデバイスの一部を指す。中央処理装置5は、例えば、シングルコアプロセッサ、マルチコアプロセッサ、デュアルコアモバイルプロセッサ、マイクロプロセッサ、マイクロコントローラ、デジタル信号プロセッサ(DSP)、フィールドプログラマブルゲートアレイ(FPGA)、特定用途向け集積回路(ASIC)、又は無線周波数集積回路(RFIC)などである。
In the present embodiment, the
本発明の照明光源の調整方法による実施形態は、後述する候補選択、目標選択、及び光源最適化の手順を含む。 An embodiment of the illumination light source adjustment method of the present invention includes the procedure of candidate selection, target selection, and light source optimization described later.
図2を参照しながら候補選択の手順について説明する。ここで、図2は本発明による照明光源の調整方法の一実施形態における候補選択のおおよその手順を示すフローチャートである。候補選択の手順は、ステップ51〜55を含む。 The procedure of candidate selection will be described with reference to FIG. Here, FIG. 2 is a flowchart showing an approximate procedure of candidate selection in one embodiment of the method of adjusting the illumination light source according to the present invention. The procedure of candidate selection includes steps 51-55.
ステップ51において、中央処理装置5は、各初期照射パラメータセットB1〜Bnに基づいて対応する初期照射モードA1〜Anで被写体に照射するように照明光源3を制御する。例えば、第1の初期照射パラメータセットB1を読み取り、第1の初期照射パラメータセットB1に含まれる第1の初期輝度IB1及び第1の初期トーン値TB1に示されている輝度及び色の光で被写体を照射する。簡潔にするために、以降、上記の例は「第1の初期照射モードA1で照射する」とだけ記載し、第2の初期照射パラメータセットB2(第2の初期輝度IB2、第2の初期トーン値TB2)、及び初期照射モードA2の組み合わせの場合等もこのように記載する。
In
ステップ52において、撮影装置4は、各初期照射パラメータセットB1〜Bnに、被写体を複数回撮影して得た複数の初期画像c11〜cnnを記憶装置2に記録する。理解の容易のため、複数の初期画像c11〜cnnのうちの同一初期照射パラメータセットBに対応する一部の初期画像cは「関連画像セット」と称する。例えば、第1の初期照射モードA1に対応する関連画像セットは、初期画像c11〜c1nからなる集合であり、下記の説明において第1の初期関連画像セットC1と称する。
In
ステップ53において、中央処理装置5はそれらの初期関連画像セットC1〜Cnを分析して複数の初期画像属性データセットD1〜Dnを算出し、該複数の初期画像属性データセットD1〜Dnを記憶装置2に記録する。特に、各初期画像属性データセットD1〜Dnは、初期照射モードA1〜Anごとに撮影装置4により撮影された複数の初期関連画像セットC1〜Cnから算出されたものである。各初期画像属性データセットD1〜Dnは、それぞれ1種類の画像属性に関連付けられた複数の画像属性数値セットを含み、各画像属性数値セットは第1の参考値と第2の参考値を含む。
In
画像属性は、例えば、画像コントラスト、画像安定性、画像の向きの再現性、画像の向きの絶対精度、画像サイズの測定の再現性、点群のデータ点の分布、三次元(3D)の点群のデータ点の再現性、画像と実データとの間の誤差(例えば、被写体のCADファイル)などが挙げられる。一部の実施形態において、第1の参考値は関連する画像属性における平均値であり、第2の参考値は関連する画像属性における標準偏差値である。 Image attributes include, for example, image contrast, image stability, reproducibility of image orientation, absolute accuracy of image orientation, reproducibility of measurement of image size, distribution of point cloud data points, three-dimensional (3D) points Reproducibility of data points of a group, an error between an image and actual data (for example, a CAD file of an object), and the like can be mentioned. In some embodiments, the first reference value is an average value of the associated image attribute and the second reference value is a standard deviation value of the associated image attribute.
画像コントラスト比に関連する画像属性数値セットについては、第1の参考値は関連画像セットにおける画像コントラスト比の平均値であり、第2の参考値は関連画像セットにおける画像コントラスト比の標準偏差値である。例えば、本実施形態において、第1の初期画像属性データセットD1において、第1の参考値は、第1の初期照射モードA1に対応する第1の初期関連画像セットC1に含まれる複数の初期画像から分析して算出された画像コントラスト比の平均値であり、第2の参考値は、第1の初期関連画像セットC1に含まれる複数の初期画像から分析して算出された標準偏差値である。 For the image attribute value set associated with the image contrast ratio, the first reference value is the average value of the image contrast ratio in the associated image set, and the second reference value is the standard deviation value of the image contrast ratio in the associated image set is there. For example, a plurality in the present embodiment, in the first initial image attribute data set D 1, the first reference value is included in the first initial related image sets C 1 corresponding to the first initial illumination mode A 1 And the second reference value is a standard calculated by analyzing from a plurality of initial images included in the first initial related image set C 1. It is a deviation value.
画像安定性に関連する画像属性数値セットについて、第1の参考値は中央処理装置5によって予め決められた第1のデフォルト値であり、第2の参考値は関連画像セットの標準偏差値である。例えば、中央処理装置5は、各関連画像セットの画素値の平均値又は合計値を算出し、そして該平均値又は該合計値の標準偏差値を関連画像セットの標準偏差値として算出する。一部の実施形態において、中央処理装置5は、関連画像セットのうちの各画像における画素値の標準偏差値を先に算出して、それらの標準偏差値の平均値を関連画像セットの標準偏差値として算出する。
The first reference value is a first default value predetermined by the
画像の向きの再現性に関連する画像属性数値セットについて、第1の参考値は、中央処理装置5によって予め決められた第2のデフォルト値であり、第2の参考値は、関連画像セットの各画像内の同一の特徴点が、それぞれの画像において位置する際の座標からなる複数の位置情報に基づいて算出される。一部の実施形態において、中央処理装置5は、画像内の同一の特徴点の位置情報の標準偏差値を、画像の向きの再現性に関連する画像属性数値セットの第2の参考値として算出する。
The first reference value is a second default value predetermined by the
画像の向きの絶対精度に関連する画像属性数値セットは、関連画像セットの各画像において第1の対の特徴点の間にある第1の相対距離及び該第1の対の特徴点の間にある実際の距離に基づいて算出される。一部の実施形態について、中央処理装置5は、関連画像セットの各画像に対して第1の相対距離と実際の距離の間にある複数の差を算出し、それらの差の平均値を関連画像セットに対応する画像属性数値セットの第1の参考値とする。一部の実施形態において、中央処理装置5は、差の標準偏差値を、画像の向きの絶対精度に関連する画像属性数値セットの第2の参考値として算出する。
The image attribute numerical value set related to the absolute accuracy of the image orientation is set between the first relative distance between the first pair of feature points and the first pair of feature points in each image of the associated image set. Calculated based on an actual distance. For some embodiments, the
画像サイズの測定の再現性に関連する画像属性数値セットは、関連画像セットにおける第2の対の特徴点の間における第2の相対距離に基づいて得られる。特に、関連画像セットにおける第2の対の特徴点の間における第2の相対距離の物理的意味は、画像内の被写体の1つの縁部の長さである。一部の実施形態において、画像サイズの測定の再現性に関する画像属性数値セットの第1の参考値は、中央処理装置5によって所定の第3のデフォルト値である。一部の実施形態において、中央処理装置5は、第2の相対距離の標準偏差値を、画像サイズの測定の再現性に関する画像属性数値セットの第2の参考値として算出する。
An image attribute value set related to the reproducibility of the measurement of the image size is obtained based on a second relative distance between the second pair of feature points in the related image set. In particular, the physical meaning of the second relative distance between the second pair of feature points in the associated image set is the length of one edge of the subject in the image. In some embodiments, the first reference value of the set of image attribute values relating to the repeatability of the measurement of the image size is a predetermined third default value by the
点群のデータ点の分布に関連する画像属性数値セットについて、中央処理装置5は、まず、各関連画像セットに対してデータ点の分布に関する分布値を求め、当該関連画像セットの分布値の平均値を第1の参考値として算出し、分布値の標準偏差値を第2の参考値として算出する。
With respect to the image attribute numerical value set related to the distribution of data points of the point cloud, the
3D点群のデータ点の再現性に関連する画像属性数値セットは、関連する画像の各々におけるデータ点の位置に従って取得される。一部の実施形態において、3D点群のデータ点の再現性に関する参考値セットの第1の参考値は、中央処理装置5によって所定の第4のデフォルト値である。一部の実施形態において、中央処理装置5は、各関連画像セットに対して、3D点群のデータ点の分布に関連する分布値をまず取得し、各関連画像セットの分布値の標準偏差値を、3D点群のデータ点の再現性に関する参考値集合の第2の参考値として算出する。
A set of image attribute values associated with the reproducibility of the 3D point cloud data points is obtained according to the position of the data points in each of the associated images. In some embodiments, the first reference value of the reference value set for the reproducibility of the data points of the 3D point cloud is a predetermined fourth default value by the
画像と実データとの誤差に関する特性値セットについて、中央処理装置5は、各関連画像セットに対して、画像における実際のデータと異なる誤差点に関する誤差値と、誤差点の分布と、を算出し、各関連画像セットの誤差値の平均値を第1の参考値として算出し、誤差値の標準偏差値を第2の参考値として算出する。
The
更に、ステップ51〜53は、初期照射モードA1〜Anにおいて被写体を撮影して得られた初期関連画像セットC1〜Cnに対応する初期画像属性データセットD1〜Dnを得るための訓練段階とみなしても良い。実際には、ステップ51〜53の訓練段階は、異なる被写体に対して実施され、各被写体に対応する訓練結果(即ち、初期画像属性データセットD1〜Dn)は、記憶装置2に記憶される。このようにて、使用者は、照明光源3が異なる初期照射モードA1〜Anで作動することによって照射された新しい被写体の初期画像における複数種類の画像属性を知ることができ、後述する選別条件を入力する際に参考になる。
Furthermore, steps 51 to 53 are for obtaining initial image attribute data sets D 1 to D n corresponding to initial related image sets C 1 to C n obtained by photographing the subject in the initial irradiation modes A 1 to A n . It may be regarded as the training stage of In practice, the training stage of
上記の画像特性は当業者に周知であり、その特性値は様々な周知のアルゴリズムモデルに基づいて得ることができる。本願の記載は、画像属性の前述の例示的な記述及びその計算に限定されない。 The above image properties are well known to the person skilled in the art and their property values can be obtained on the basis of various known algorithm models. The description of the present application is not limited to the above exemplary descriptions of image attributes and their calculations.
ステップ54において、中央処理装置5は選別条件に基づいて初期画像属性データセットD1〜Dnから1つを選択して候補画像属性データセットとして選択する。選別条件は、使用者により被写体に対して入力装置1で入力され、中央処理装置5により受取られ、且つ、少なくとも1つの画像属性に関連する。入力装置1は、例えば、選別条件を入力するために使用者が操作可能なキーボード又はマウスである。初期画像属性データセットD1〜Dnから1つを選択することの詳細は、後述するサブステップ541〜544に記載される。
In
ステップ55において、中央処理装置5は、候補画像パラメータセットに対応する初期照射パラメータセットB1〜Bnの1つを候補照射パラメータセットEとして更に選択する。
In
図3を参照しながらステップ54に含まれるサブステップ541〜544について説明する。ここで、図3は候補選択の詳細な手順を示すフローチャートであり、特に、ステップ54に含まれるサブステップ541〜544を示すフローチャートである。
Sub-steps 541-544 included in
サブステップ541において、中央処理装置5は、選別条件の受信に応じて、選別条件を分析して、選別条件が画像属性の1つのみに関連するかどうかを判断する。選別条件が画像属性のうちの1つのみに関連すると判定された場合(例えば、画像コントラストのみ)、サブステップ542に進む。選別条件が複数の画像属性(例えば、画像コントラスト及び画像安定性)に関連すると判定された場合、サブステップ543に進む。
In
サブステップ542において、中央処理装置5は、初期画像属性データセットD1〜Dnごとに、下記の数式1に従って各初期画像属性データセットD1〜Dnの画像属性数値セットに基づいて初期評価点Vsを算出する。初期画像属性データセットD1〜Dnに含まれる画像属性数値セットの何れか1つは、選別条件に関する画像属性に関連することに留意されたい。
In
数式1において、Vsは初期評価点であり、u1、u2は重み付けであり、Vは選別条件に関連する1つの画像属性に関連する画像属性数値セットに含まれる第1の参考値であり、σは選別条件に関連する1つの画像属性に関連する画像属性数値セットに含まれる画像属性の1つに含まれる第2の参考値である。
In
選別条件が複数の画像属性に関連する場合、複数の画像属性に対してそれぞれ重み付けがされている。サブステップ543において、中央処理装置5は、初期画像属性データセットD1〜Dnごとに、下記の数式2に従って、各初期画像属性データセットD1〜Dnに含まれる複数の画像属性数値セットに基づいて初期評価点Vsを算出する。初期画像属性データセットD1〜Dnに含まれる複数の画像属性数値セットは、それぞれ異なる画像属性に関連していることに留意されたい。
When the selection condition is associated with a plurality of image attributes, the plurality of image attributes are respectively weighted. In
数式2において、Nは入力された選別条件における画像属性の数であり、Wnはn番目の画像属性における重み付けであり、Vnは各初期照射パラメータセットBに対応する複数の初期画像属性データセットD1〜Dnの画像属性数値セットに含まれ、入力された選別条件におけるn番目の画像属性に関連する第1の参考値であり、σnは各初期照射パラメータセットBに対応する複数の初期画像属性データセットD1〜Dnの画像属性数値セットに含まれ、入力された選別条件におけるn番目の画像属性に関連する第2の参考値である。
In
次に、サブステップ544において、中央処理装置5は、初期画像属性データセットD1〜Dnのうち、最も高い初期評価点を有する1つの初期画像属性データセットDを候補画像属性データセットとして選択する。
Next, in
図4を参照しながら説明する。ここで、図4は、本発明による照明光源3の調整方法の一実施形態における目標選択のおおよその手順を示すフローチャートである。目標選択の手順は、目標照射パラメータセットを選択すること(即ち、目標照射モードを選択すること)であり、下記のステップ61〜66を含む。
This will be described with reference to FIG. Here, FIG. 4 is a flowchart showing an approximate procedure of target selection in one embodiment of the method of adjusting the
ステップ61において、中央処理装置5は、候補照射パラメータセットEとされた1つの初期照射パラメータセットBに含まれる初期輝度IB及び初期トーン値TBを調整して、複数の調整後照射パラメータセットFを生成する。以下、候補照射パラメータセットEに含まれる初期輝度IB及び初期トーン値TBを候補輝度IE及び候補トーン値TEと称する。
In
図5は、該目標選択の手順に含まれる一部のステップを示すフローチャートである。図5に示されるように、ステップ61は、サブステップ611〜615を含む。
FIG. 5 is a flowchart showing some of the steps included in the target selection procedure. As shown in FIG. 5,
サブステップ611において、中央処理装置5は、候補輝度IE及び第1の輝度変動値に基づいて、第1輝度上限値及び第1輝度下限値を算出し、第1の輝度上限値と第1の輝度下限値との間の範囲を、第1の所定範囲とする。サブステップ612において、中央処理装置5は、第1の輝度上限値及び第1の輝度下限値に基づいて、第1の所定範囲内の数値を第1の変数としてそれぞれ代入することにより、P個の調整後輝度を算出し、Pは1以上の自然数である。サブステップ613において、中央処理装置5、候補トーン値TE及び第1のトーン値変動値に基づいて、第1のトーン値上限値及び第1のトーン値下限値を算出し、第1のトーン値上限値と第1のトーン値下限値との間の範囲を、第2の所定範囲とする。サブステップ614において、中央処理装置5は、第1のトーン値上限値及び第1のトーン値下限値に基づいて、第2の所定範囲内の数値を第2の変数としてそれぞれ代入することにより、Q個の調整後トーン値を算出し、Qは1以上の自然数である。サブステップ615において、中央処理装置5は、それぞれ1つの調整後輝度及び1つの調整後トーン値を含むP×Q個の調整後照射パラメータセット(F11,F12,…F1Q,F21,F22,…,FPQ)を生成する。第1の輝度変動値及び第1のトーン値変動値は、所定の数値であり、実用上の要求に応じて使用者によって決定される。本実施形態において、第1の輝度上限値及び第1の輝度下限値は、それぞれ候補輝度に対して第1の輝度変動値を加算及び減算することにより算出されるものであり、第1のトーン値上限値及び第1のトーン値下限値は、それぞれ候補トーン値に対して第1のトーン値変動値を加算及び減算することにより算出されるものである。例えば、候補照射パラメータセットに含まれる候補輝度IE及び候補トーン値TEは、それぞれ90及び110であり、第1の輝度変動値及び第1のトーン値変動値は、それぞれ30及び40である。これによって、第1の輝度上限値は90+30=120となり、第1の輝度下限値は90−30=60となる。並びに第1のトーン値上限値及び第1のトーン値下限値は110+40=150及び110−40=70となる。また、本実施形態において、第1の所定範囲及び第2の所定範囲は左半開区間である。これによって、60個の調整後輝度(61〜120の整数)及び80個の調整後トーン値(71〜150の整数)が得られ、Pは60及びQは80となる。結果として、調整後照射パラメータセットF11〜FPQの総数はPにQを乗算することにより得られる数であり、各調整後照射パラメータセットF11〜FPQは、調整後輝度の1つと調整後トーン値の1つの組み合わせを含む。即ち、調整後照射パラメータセットF11〜FPQにおいて、調整後輝度と調整後トーン値の組み合わせを[I,T]で表すと、[61, 71], [61, 72], …, [61, 150], [62, 71], [62, 72], …, [62, 150], …, [120, 71], [120, 72], …, [120, 150]となる。
In
ステップ62において、中央処理装置5は、調整後照射パラメータセットトF11〜FPQに従って、複数の調整後照射モードで被写体を照射するように照明光源3を制御する。
In
ステップ63において、撮影装置4は、ステップ62で照射された被写体を、各調整後照射パラメータセットF11〜FPQに、被写体を複数回撮影して、各調整後照射パラメータセットF11〜FPQに対応する複数の調整後画像g111〜gPQnを得て記憶装置2に記録する。理解の容易のため、複数の調整後画像g111〜gPQnのうちの同一調整後照射パラメータセットFに対応する一部の調整後画像gは「関連画像セット」と称する。例えば、調整後照射モードF11に対応する関連画像セットは、調整後画像g111〜g11nからなる集合であり、下記の説明において調整後関連画像セットG11と称する。
In
ステップ64において、中央処理装置5は、ステップ63の実行によって得られた複数の調整後関連画像セットG11〜GPQを分析して、複数の調整後画像属性データセットH11〜HPQを得て記憶装置2に記録する。それらの調整後画像属性データセットH11〜HPQは、それぞれ複数の調整後照射パラメータセットF11〜FPQに対応すると共に、それぞれ複数の画像属性の数値に関連付けられた複数の画像属性数値セットH11〜HPQを含む。各調整後画像属性データセットH11〜HPQの属性数値セットは、それぞれ対応する画像特性に関連する第3の参考値及び第4の参考値を含む。第3の参考値を得る方法は第1の参考値と同じであり、第4の参考値を得る方法は第2の参考値と同じである。本実施形態において、第3の参考値は関連する画像属性における平均値であり、第4の参考値は関連する画像属性における標準偏差値である。
In
一部の実施形態では、中央処理装置5は、すべての調整後照射パラメータセットF11〜FPQを一旦算出した後、調整後投影モードにそれぞれ対応するすべての調整後画像属性データセットH11〜HPQを得ることに留意されたい。一部の実施形態において、中央処理装置5は、一度に1つの調整後照射パラメータセットFを生成し、続いて、該1つの調整後照射パラメータセットFに関連する調整後照射モードに対応する1つの調整後画像属性データセットHを得て、そして全部の調整後投影モードに対応する調整後画像属性データセットHを得られるまで、別の調整後照射パラメータセットFに対し、上記の手順を繰り返す。
In some embodiments, the
ステップ65において、中央処理装置5は、選別条件に基づいて、複数の調整後画像属性データセットH11〜HPQから1つを選択して目標画像属性データセットとする。そして、ステップ66において、中央処理装置5は、更に該目標画像属性データセットに対応する1つの調整後照射パラメータセットFを選択して目標照射パラメータセットとする。目標画像属性データセットの選択方法は、下記のサブステップ651〜654により実行される。
In
図6は、目標選択の手順に含まれる他の一部のステップを示すフローチャートであり、特に、本実施形態におけるステップ65に含まれるサブステップ651〜654を示すフローチャートである。
FIG. 6 is a flowchart showing some other steps included in the procedure of target selection, and in particular, is a
サブステップ651において、中央処理装置5は、選別条件を分析して選別条件が画像属性のうちの1つのみに関連するかどうかを判断する。選別条件が画像属性のうちの1つのみに関連すると判定された場合(例えば、画像コントラストのみ)、サブステップ652に進む。選別条件が複数の画像属性(例えば、画像コントラスト及び画像安定性)に関連すると判定された場合、サブステップ653に進む。
In
サブステップ652において、中央処理装置5は、調整後画像属性データセットH11〜HPQごとに、下記の数式3に従って各調整後画像属性データセットH11〜HPQの画像属性数値セットに基づいて調整後評価点V’sを算出する。調整後画像属性データセットH11〜HPQに含まれる画像属性数値セットの何れか1つは、選別条件に関する1つの画像属性に関連することに留意されたい。
In
数式3において、V’sは調整後評価点であり、u1、u2は重み付けであり、V’は選別条件に関する1つの画像属性に関連する画像属性数値セットに含まれる第3の参考値であり、σ’は選別条件に関連する1つの画像属性に関連する画像属性数値セットに含まれる画像属性の1つに含まれる第4の参考値である。
In
選別条件が複数の画像属性に関連する場合、複数の画像属性に対してそれぞれ重み付けがされている。サブステップ653において、中央処理装置5は、調整後画像属性データセットH11〜HPQごとに、下記の数式4に従って、各調整後画像属性データセットH11〜HPQに含まれる複数の画像属性数値セットに基づいて調整後評価点V’sを算出する。調整後画像属性データセットH11〜HPQに含まれる複数の画像属性数値セットは、それぞれ異なる画像属性に関連していることに留意されたい。
When the selection condition is associated with a plurality of image attributes, the plurality of image attributes are respectively weighted. In
数式4において、Nは入力された選別条件における画像属性の数であり、Wnはn番目の画像属性における重み付けであり、V’nは各調整後照射パラメータセットに対応する複数の調整後画像属性データセットH11〜HPQの画像属性数値セットに含まれ、入力された選別条件におけるn番目の画像属性に関連する第3の参考値であり、σ’nは各調整後照射パラメータセットに対応する複数の調整後画像属性データセットH11〜HPQの画像属性数値セットに含まれ、入力された選別条件におけるn番目の画像属性に関連する第4の参考値である。
In
サブステップ654において、中央処理装置5は、調整後画像属性データセットH11〜HPQのうち、最も高い調整後評価点V’sを有する1つの調整後画像属性データセットHを目標画像属性データセットとして選択する。
In
図7は、本願による照明光源の調整方法の一実施形態における光源最適化の手順を示すフローチャートである。光源最適化の手順は、最適照射パラメータセットを選択すること(即ち、最適投影モードを選択すること)であり、ステップ71〜78を含む。 FIG. 7 is a flow chart showing a procedure of light source optimization in an embodiment of a method of adjusting an illumination light source according to the present application. The light source optimization procedure is to select the optimal illumination parameter set (i.e. to select the optimal projection mode) and includes steps 71-78.
ステップ71において、中央処理装置5は、目標照射パラメータセットを分析して、目標照射パラメータセットに含まれる調整後輝度及び調整後トーン値と、第1の輝度上限値と、第1の輝度下限値と、第1のトーン値上限値と、第1のトーン値下限値と、に基づいて、目標照射パラメータセットが更に調整する必要があるかどうかを判断する。目標照射パラメータセットが更に調整する必要があると判定された場合、再調整手順であるステップ72に進む。不要であると判断された場合は、直接にステップ78に飛ぶ。ステップ78において、中央処理装置5は、目標照射パラメータセットを最適照射パラメータセットとする。以下、目標照射パラメータセットに含まれる調整後輝度及び調整後トーン値をそれぞれ目標輝度及び目標トーン値と称する。
In step 71, the
図8は、該光源最適化の手順に含まれる一部のステップを示すフローチャートであり、特に、ステップ71に含まれるサブステップ711〜713を示すフローチャートである。また、ステップ72は、サブステップ721〜722を有する第1の再調整手順と、サブステップ723〜724を有する第2の再調整手順と、サブステップ725〜726を有する第3の再調整手順と、を含む。
FIG. 8 is a flowchart showing some steps included in the light source optimization procedure, and in particular, is a flowchart showing sub-steps 711-713 included in step 71. Also, step 72 includes a first readjustment procedure having
サブステップ711において、中央処理装置5は、目標照射パラメータセットを分析して、輝度条件及びトーン値条件が両方満たされているかどうかを判断する。輝度条件は、目標輝度が第1の輝度上限値又は第1の輝度下限値と等しいことである。トーン値条件は、目標トーン値が第1のトーン値上限値又は第1のトーン値下限値と等しいことである。中央処理装置5は、輝度条件とトーン値条件が両方満たされていると判定した場合には、サブステップ721に進み、目標照射パラメータセットを更に調整する。一方、満たされていないと判断された場合、サブステップ712に進む。
In
サブステップ712において、中央処理装置5は、更に、輝度条件が満たされているかどうかを判断する。目標輝度が第1輝度上限値または第1輝度下限値と等しいと判定された場合、サブステップ723に進み、目標照射パラメータセットを更に調整する。目標輝度が第1の輝度上限値及び第1の輝度下限値に等しくないと判定された場合、サブステップ713に進む。
In
サブステップ713において、中央処理装置5は、トーン値条件を満たされているかどうかを更に判断する。目標トーン値が第1のトーン値上限値又は第1のトーン値下限値に等しいと判定された場合、サブステップ725に進み、目標照射パラメータセットを更に調整する。目標トーン値が第1のトーン値上限値及び第1のトーン値下限値に等しくないと判定された場合には、ステップ78に進む。
In
ステップ71の判定の結果は、輝度条件とトーン値条件の両方が満たされている場合、中央処理装置5は、サブステップ721と722を有する第1の再調整手順を実施する。ステップ71の判定の結果は、輝度条件が満たされ、トーン値条件が満たされない場合、中央処理装置5は、サブステップ723及び724を有する第2の再調整手順を実施する。ステップ71の判定の結果は、トーン値条件が満たされ、輝度条件が満たされない場合、中央処理装置5は、サブステップ725及び726を有する第3の再調整手順を実施する。ステップ71の判定の結果は、輝度条件及びトーン値条件が両方も満たされない場合、中央処理装置5は、直接ステップ78を実施して目標照射パラメータセットを最適照射パラメータセットとする。
If the result of the determination in step 71 is that both the luminance condition and the tone value condition are satisfied, the
サブステップ721と722を有する第1の再調整手順において、中央処理装置5は、まず、目標輝度及び目標トーン値を分析し、目標輝度が第1の輝度上限値と第1の輝度下限値のいずれかに等しく、及び目標トーン値が第1のトーン値上限値と第1のトーン値下限値のいずれかに等しいことを判断する。従って、第1の再調整手順において、下記の4つのパターンがある。
In the first readjustment
第1のパターンとして、目標輝度が第1の輝度上限値に等しく、目標トーン値が第1のトーン値上限値に等しいと判定された場合、サブステップ721において、中央処理装置5は、目標輝度と所定の第2の輝度変動値とに基づいて第2の輝度上限値を算出し、目標輝度と第2の輝度上限値とに応じてR個の再調整輝度を算出し、且つ、目標トーン値及び所定の第2のトーン値変動値に基づいて第2のトーン値上限値を算出し、目標トーン値及び第2のトーン値上限値に応じてT個の再調整トーン値を算出する。続いて、サブステップ722において、中央処理装置5は、それぞれ再調整輝度及び再調整トーン値を含むR×T個の再調整照射パラメータセットを生成する。そして、ステップ73に進む。本実施形態において、第2の輝度上限値は目標輝度に対して第2の輝度変動値を加算することにより算出され、R個の再調整輝度は目標輝度と第2の輝度上限値からなる左半開区間内に含まれ、第2のトーン値上限値は目標トーン値に対して第2のトーン値変動値を加算することにより算出され、T個の再調整トーン値は目標トーン値と第2のトーン値上限値からなる左半開区間内に含まれる。
As a first pattern, when it is determined that the target brightness is equal to the first brightness upper limit value and the target tone value is equal to the first tone value upper limit value, in
第2のパターンとして、目標輝度が第1の輝度上限値に等しく、目標トーン値が第1のトーン値下限値に等しいと判定された場合、サブステップ721において、中央処理装置5は、目標輝度及び第2の輝度変動値に基づいて第2の輝度上限値を算出し、目標輝度及び第2の輝度上限値に基づいてR個の再調整輝度を算出し、目標トーン値及び第2のトーン値変動値に基づいて第2のトーン値下限値を算出し、目標トーン値及び第2のトーン値下限値に基づいて、U個の再調整トーン値を算出する。続いて、サブステップ722において、中央処理装置5は、それぞれ再調整輝度及び再調整トーン値を含むR×U個の再調整照射パラメータセットを算出する。そして、ステップ73に進む。本実施形態において、第2の輝度上限値は目標輝度に対して第2の輝度変動値を加算することにより算出され、R個の再調整輝度は目標輝度と第2の輝度上限値からなる左半開区間内に含まれ、第2のトーン値下限値は目標トーン値に対して第2のトーン値変動値を減算することにより算出され、U個の再調整トーン値は目標トーン値と第2のトーン値下限値からなる左半開区間内に含まれる。
As a second pattern, when it is determined that the target brightness is equal to the first brightness upper limit and the target tone value is equal to the first tone value lower limit, in
第3のパターンとして、目標輝度が第1の輝度下限値に等しく、目標トーン値が第1のトーン値上限値に等しいと判定された場合、サブステップ721において、中央処理装置5は、目標輝度及び第2の輝度変動値に基づいて第2の輝度下限値を算出し、目標輝度及び第2の輝度下限値に基づいてS個の再調整輝度を算出し、目標トーン値及び第2のトーン値変動値に基づいて第2のトーン値上限値を算出し、目標トーン値及び第2のトーン値上限値に基づいて、T個の再調整トーン値を算出する。続いて、サブステップ722において、中央処理装置5は、それぞれ再調整輝度及び再調整トーン値を含むS×T個の再調整照射パラメータセットを生成する。そして、ステップ73に進む。本実施形態において、第2の輝度下限値は目標輝度に対して第2の輝度変動値を減算することにより算出され、S個の再調整輝度は目標輝度と第2の輝度下限値からなる左半開区間内に含まれ、第2のトーン値上限値は目標トーン値に対して第2のトーン値変動値を加算することにより算出され、T個の再調整トーン値は目標トーン値と第2のトーン値上限値からなる左半開区間内に含まれる。
As a third pattern, when it is determined that the target brightness is equal to the first brightness lower limit and the target tone value is equal to the first tone value upper limit, in
第4のパターンとして、目標輝度が第1の輝度下限値に等しく、目標トーン値が第1のトーン値下限値に等しいと判定された場合、サブステップ721において、中央処理装置5は、目標輝度及び第2の輝度変動値に基づいて第2の輝度下限値を算出し、目標輝度及び第2の輝度下限値に基づいてS個の再調整輝度を算出し、目標トーン値及び第2のトーン値変動値に基づいて第2のトーン値下限値を算出し、目標トーン値及び第2のトーン値下限値に基づいて、U個の再調整トーン値を算出する。続いて、サブステップ722において、中央処理装置5は、それぞれ再調整輝度及び再調整トーン値を含むS×U個の再調整照射パラメータセットを生成する。そして、ステップ73に進む。本実施形態において、第2の輝度下限値は目標輝度に対して第2の輝度変動値を減算することにより算出され、S個の再調整輝度は目標輝度と第2の輝度下限値からなる左半開区間内に含まれ、第2のトーン値下限値は目標トーン値に対して第2のトーン値変動値を減算することにより算出され、U個の再調整トーン値は目標トーン値と第2のトーン値下限値からなる左半開区間内に含まれる。
As a fourth pattern, when it is determined that the target brightness is equal to the first brightness lower limit and the target tone value is equal to the first tone value lower limit, in
本実施形態において、上記の数R、S、T及びUは、それぞれ1以上の自然数であることに留意されたい。また、第2の輝度変動値及び第2のトーン値変動値は、第1の輝度変動値及び第1のトーン値変動値のような、所定の数値であり、実用上の要求に応じて使用者によって決定されるものである。 It should be noted that in the present embodiment, the above numbers R, S, T and U are each a natural number of 1 or more. Also, the second luminance variation value and the second tone value variation value are predetermined numerical values such as the first luminance variation value and the first tone value variation value, and are used according to practical requirements. Determined by the
例えば、目標照射パラメータセットに含まれる目標輝度及び目標トーン値は、それぞれ150及び120であり、同時に第1の輝度上限値及び第1のトーン値上限値もそれぞれ150及び120である場合、中央処理装置5はサブステップ721及び722を実行する。第2の輝度変動値及び第2のトーン値変動値は、例えば、それぞれ20及び30である。従って、第2の輝度上限値は150+20=170であり、第2のトーン値上限値は120+30=150である。これによって、目標輝度と第2の輝度上限値からなる左半開区間内に含まれる再調整輝度の数は20個(151〜170)であり、目標トーン値と第2のトーン値上限値からなる左半開区間内に含まれる再調整トーン値の数は30個(121〜150)である。結果として、総計20×30=600個の再調整照射パラメータセットを算出することができる。即ち、[X’,Y’]で再調整輝度(I’)及び再調整トーン値(T’)を表記すると、600個の再調整照射パラメータセットは、[151, 121], [151, 122], …, [151, 150], [152, 121], [152, 122], …, [152, 150], …, [170, 121], [170, 122], …, [170, 150]などの組み合わせを有する。
For example, if the target brightness and target tone values included in the target illumination parameter set are 150 and 120 respectively and at the same time the first brightness upper limit and the first tone value upper limit are also 150 and 120 respectively, then central processing The
サブステップ723及び724を有する第2の再調整手順において、中央処理装置5は、まず、目標輝度を解析し、目標輝度が第1の輝度上限値と第1の輝度下限値のどちらに等しいかを判断する。判断の結果によって2つのパターンがある。
In the second readjustment
1つ目のパターンとして、目標輝度値が第1の輝度上限値と等しいと判定された場合、サブステップ723において、中央処理装置5は、目標輝度と第2の輝度変動値に基づいて第2の輝度上限値を算出し、目標輝度と第2の輝度上限値に基づいて、R個の再調整輝度を算出する。続いて、サブステップ724において、中央処理装置5は、それぞれ異なる再調整輝度及び同一目標トーン値を含むR×1個の再調整照射パラメータセットを算出する。そしてステップ73に進む。
If it is determined that the target brightness value is equal to the first brightness upper limit value as the first pattern, in
2つ目のパターンとして、目標輝度値が第1の輝度下限値と等しいと判定された場合、サブステップ723において、中央処理装置5は、目標輝度と第2の輝度変動値に基づいて第2の輝度下限値を算出し、目標輝度と第2の輝度下限値に基づいて、S個の再調整輝度を算出する。続いて、サブステップ724において、中央処理装置5は、それぞれ異なる再調整輝度及び同一目標トーン値を含むS×1個の再調整照射パラメータセットを算出する。そして、ステップ73に進む。本実施形態における第2の再調整手順に関わる第2の輝度上限値及び第2の輝度下限値は、第1の再調整手順に関わる第2の輝度上限値及び第2の輝度下限値の算出方法によるものであることに留意されたい。
As a second pattern, when it is determined that the target brightness value is equal to the first brightness lower limit value, in
サブステップ725及び726を有する第3の再調整手順において、中央処理装置5は、まず、目標輝度を解析し、目標トーン値が第1のトーン値上限値と第1のトーン値下限値のどちらに等しいかを判断する。判断の結果によって2つのパターンがある。
In the third readjustment
1つ目のパターンとして、目標トーン値が第1のトーン値上限値と等しいと判定された場合、サブステップ725において、中央処理装置5は、目標トーン値と第2のトーン値変動値に基づいて第2のトーン値上限値を算出し、目標トーン値と第2のトーン値上限値に基づいて、T個の再調整トーン値を算出する。続いて、サブステップ726において、中央処理装置5は、同一目標輝度及びそれぞれ異なる再調整トーン値を含む1×T個の再調整照射パラメータセットを算出する。そして、ステップ73に進む。
If it is determined that the target tone value is equal to the first tone value upper limit value as the first pattern, in
2つ目のパターンとして、目標トーン値が第1のトーン値下限値と等しいと判定された場合、サブステップ725において、中央処理装置5は、目標トーン値と第2のトーン値変動値に基づいて第2のトーン値下限値を算出し、目標トーン値と第2のトーン値下限値に基づいて、U個の再調整トーン値を算出する。続いて、サブステップ726において、中央処理装置5は、同一目標輝度及びそれぞれ異なる再調整トーン値を含む1×U個の再調整照射パラメータセットを算出する。そして、ステップ73に進む。本実施形態における第2の再調整手順に関わる第2のトーン値上限値及び第2のトーン値下限値は、第1の再調整手順に関わる第2のトーン値上限値及び第2のトーン値下限値の算出方法によるものであることに留意されたい。
As a second pattern, when it is determined that the target tone value is equal to the first tone value lower limit value, in
ステップ73において、中央処理装置5は、照明光源3を制御して、各再調整照射パラメータセットに従って、複数の再調整照射モードで被写体を照射する。
In
ステップ74において、撮影装置4は、各再調整照射パラメータセットに、被写体を複数回撮影して得た複数の再調整画像を記憶装置2に記録する。前述のステップ52及びステップ63のように、例えば、第1の再調整照射モードに対応する関連画像セットは、第1の再調整照射モードで照射する際に撮影された複数の再調整画像からなる集合であり、第1の再調整関連画像セットである。
In
ステップ75において、中央処理装置5は、ステップ74の実行によって得られた複数の再調整関連画像セットを分析して、複数の再調整画像属性データセットを取得して記憶装置2に記録する。それらの再調整画像属性データセットは、それぞれ複数の再調整照射パラメータセットに対応すると共に、それぞれ複数の画像属性の数値に関連付けられた複数の画像属性数値セットを含む。各再調整画像属性データセットの属性数値セットは、それぞれ対応する画像特性に関連する第5の参考値及び第6の参考値を含む。第5の参考値を得る方法は第1の参考値と同じであり、第6の参考値を得る方法も第2の参考値と同じである。本実施形態において、第5の参考値は関連する画像属性における平均値であり、第6の参考値は関連する画像属性における標準偏差値である。
In
ステップ76において、中央処理装置5は、選別条件に基づいて、複数の再調整画像属性データセットから1つを選択して、最適画像属性データセットとする。そして、ステップ77において、中央処理装置5は、更に該最適画像属性データセットに対応する1つの再調整画像属性データセットを選択して最適照射パラメータセットとする。最適画像属性データセットの選択方法は、下記のサブステップ761〜764により実行される。
In
図9は、該光源最適化の手順に含まれる他の一部のステップを示すフローチャートであり、特に、本実施形態におけるステップ76に含まれるサブステップ761〜764を示すフローチャートである。
FIG. 9 is a flowchart showing some other steps included in the light source optimization procedure, and in particular, is a
サブステップ761において、中央処理装置5は、選別条件を分析して選別条件が画像属性のうちの1つのみに関連するかどうかを判断する。選別条件が画像属性のうちの1つのみに関連すると判定された場合(例えば、画像コントラストのみ)、サブステップ762に進む。選別条件が複数の画像属性(例えば、画像コントラスト及び画像安定性)に関連すると判定された場合、サブステップ763に進む。
In
サブステップ762において、中央処理装置5は、再調整画像属性データセットごとに、下記の数式5に従って各再調整画像属性データセットの画像属性数値セットに基づいて再調整評価点V”sを算出する。再調整画像属性データセットに含まれる画像属性数値セットの何れか1つは、選別条件に関する1つの画像属性に関連することに留意されたい。
In
数式5において、V”sは再調整評価点であり、u1、u2は重み付けであり、V”は選別条件に関する1つの画像属性に関連する画像属性数値セットに含まれる第5の参考値であり、σ”は選別条件に関連する1つの画像属性に関連する画像属性数値セットに含まれる画像属性の1つに含まれる第6の参考値である。
In
選別条件が複数の画像属性に関連する場合、複数の画像属性に対してそれぞれ重み付けがされている。サブステップ653において、中央処理装置5は、再調整画像属性データセットごとに、下記の数式6に従って、各再調整画像属性データセットに含まれる複数の画像属性数値セットに基づいて再調整評価点V”sを算出する。再調整画像属性データセットに含まれる複数の画像属性数値セットは、それぞれ異なる画像属性に関連していることに留意されたい。
When the selection condition is associated with a plurality of image attributes, the plurality of image attributes are respectively weighted. In
数式6において、Nは入力された選別条件における画像属性の数であり、Wnはn番目の画像属性における重み付けであり、V”nは各再調整照射パラメータセットに対応する複数の再調整画像属性データセットの画像属性数値セットに含まれ、入力された選別条件におけるn番目の画像属性に関連する第5の参考値であり、σ”nは各再調整照射パラメータセットに対応する複数の再調整画像属性データセットの画像属性数値セットに含まれ、入力された選別条件におけるn番目の画像属性に関連する第6の参考値である。 In Equation 6, N is the number of image attributes in the input sorting condition, Wn is a weighting in the n-th image attribute, and V ′ ′ n is a plurality of readjusted image attributes corresponding to each readjusted irradiation parameter set The fifth reference value that is included in the image attribute numerical value set of the data set and is related to the n-th image attribute in the input sorting condition, and σ ′ ′ n is a plurality of readjustments corresponding to each readjustment irradiation parameter set This is a sixth reference value that is included in the image attribute numerical value set of the image attribute data set and is associated with the n-th image attribute in the input sorting condition.
サブステップ764において、中央処理装置5は、再調整画像属性データセットのうち、最も大きな再調整評価点V”sを有する1つの再調整画像属性データセットを最適画像属性データセットとして選択する。
In
フローチャートのステップ及びサブステップは特定の順序で示されているが、これらのステップの順序は変更可能であることに留意されたい。 Although the flowchart steps and substeps are shown in a particular order, it should be noted that the order of these steps can be changed.
一部の実施形態において、照明光源の調整方法は、中央処理装置5が目標パラメータセットに従って、目標照射モードで被写体を照射するように照明光源3を制御するステップと、撮影装置4が目標照射モードで照射されている被写体を複数回撮影して、複数の画像を得て記憶装置2に記録するステップと、中央処理装置5が被写体を検査するために目標照射モードで得られた複数の画像を分析するステップと、を更に含む。
In some embodiments, the method of adjusting the illumination light source comprises the steps of: controlling the
一部の実施形態において、照明光源の調整方法は、中央処理装置5が最適パラメータセットに従って、最適照射モードで被写体を照射するように照明光源3を制御するステップと、撮影装置4が最適照射モードで照射されている被写体を複数回撮影して、複数の画像を得て記憶装置2に記録するステップと、中央処理装置5が被写体を検査するために最適照射モードで得られた複数の画像を分析するステップと、を更に含む。
In some embodiments, the method of adjusting the illumination light source comprises: controlling the
上記の説明は、本発明の実施例に過ぎず、これを以って特許請求の範囲を限定するものではない。また、本発明の特許請求の範囲及び明細書の内容に簡単な付加や変化を加えたに過ぎないものについても、特許請求の範囲に記載された発明の技術的範囲に属するものとする。 The above descriptions are merely examples of the present invention, and do not limit the scope of the claims. In addition, only the simple additions and changes to the contents of the claims and the specification of the present invention also belong to the technical scope of the invention described in the claims.
以上のように、本発明の実施形態による照明光源の調整方法は、最も高い初期評価点を有する初期画像属性データセットを候補画像属性データセットとして選択する。そして、中央処理装置5は候補照射パラメータセットの候補輝度及び候補トーン値を調整して複数の調整後照射パラメータセットを算出し、最も高い調整後評価点を有する調整後照射パラメータセットを目標照射パラメータセットとして選択する。従って、被写体が目標照射モードで照明光源3によって照射されている時に、撮像装置4によって撮影され、使用者の要求に最も適合する画像属性を有する被写体の画像を得ることができる。また、目標照射パラメータセットを更に調整する必要があると判定された場合(即ち、輝度条件またはトーン値条件が満たされている場合)、中央処理装置5は、目標照射パラメータセットの目標輝度及び目標トーン値を調整して複数の再調整照射パラメータセットを算出し、最も高い再調整評価点を有する再調整画像属性データセットに対応する再調整照射パラメータセットを最適照射パラメータセットとして選択する。従って、最適照射モードで照明光源3により被写体が照射されると、撮影装置4によって撮影された被写体の画像は、使用者の要求に最も適合する画像属性を有する。その結果、例えば、これらの画像に基づいて被写体に対して検査を行うと、より詳しい結果を得ることが出来る。
As described above, the method of adjusting the illumination light source according to the embodiment of the present invention selects an initial image attribute data set having the highest initial evaluation point as a candidate image attribute data set. Then, the
1 入力装置
2 記憶装置
3 照明光源
4 撮影装置
5 中央処理装置
1
Claims (15)
前記中央処理装置の制御により、
前記記憶装置に記録されていると共に前記照明光源の照射に関する照射パラメータを含む複数の初期照射パラメータセットにそれぞれ基づいて、前記照明光源が前記被写体を照射し、前記撮影装置が前記初期照射パラメータセットごとに、前記被写体を複数回撮影して得た複数の初期画像を前記記憶装置に記録し、前記中央処理装置が各前記初期照射パラメータセットに対応する複数の前記初期画像を分析することにより、各前記初期照射パラメータセットに対応し、且つ、各前記初期画像に対応する1種類の画像属性の数値に関連付けられた画像属性数値セットを含む複数の初期画像属性データセットを取得して前記記憶装置に記録する、初期画像撮影工程と、
使用者により前記被写体に対して入力され、且つ、少なくとも1つの前記画像属性を含む選別条件に基づいて、前記複数の初期画像属性データセットから1つを選別して該選別した初期画像属性データセットが対応する前記初期照射パラメータセットを候補照射パラメータセットとして選択する、候補選択工程と、
前記候補選択工程において選択された前記候補照射パラメータセットに含まれる少なくとも1つの照射パラメータに対して、所定範囲内の数値を変数としてそれぞれ代入して、各前記変数にそれぞれ対応する複数の調整後照射パラメータセットを得て前記記憶装置に記録する、調整工程と、
前記調整工程において得られた前記複数の調整後照射パラメータセットにそれぞれ基づいて、前記被写体を照射するように前記照明光源を制御する、調整照射工程と、
前記撮影装置により、前記調整照射工程で照射された前記被写体を、各前記調整後照射パラメータセットに、前記被写体を複数回撮影して、各前記調整後照射パラメータセットに対応する複数の調整後画像を得て前記記憶装置に記録する、撮影工程と、
前記撮影工程によって得られた前記複数の調整後画像を分析して、それぞれ前記複数の調整後照射パラメータセットに対応すると共にそれぞれ複数の前記画像属性の数値に関連付けられた複数の画像属性数値セットを含む複数の調整後画像属性データセットを得て前記記憶装置に記録する、分析工程と、
前記分析工程において得られた前記複数の調整後画像属性データセットから、前記選別条件に基づいて1つを選別し、該選別した1つの調整後画像属性データセットが対応する前記調整後照射パラメータセットを目標照射パラメータセットとして選択する、目標選択工程と、
を含むことを特徴とする照明光源の調整方法。 A method of adjusting an illumination light source implemented by an illumination system comprising: a storage device; an illumination light source capable of illuminating an object; an imaging device capable of imaging the object illuminated by the illumination source; and a central processing unit. ,
Under control of the central processing unit
The illumination light source illuminates the subject based on a plurality of initial illumination parameter sets recorded in the storage device and including illumination parameters related to the illumination of the illumination light source, and the imaging device is configured for each of the initial illumination parameter sets The plurality of initial images obtained by photographing the subject a plurality of times are recorded in the storage device, and the central processing unit analyzes the plurality of initial images corresponding to the respective initial irradiation parameter sets. A plurality of initial image attribute data sets corresponding to the initial irradiation parameter set and including image attribute numerical value sets associated with numerical values of one type of image attribute corresponding to each of the initial images are acquired and stored in the storage device. Initial image shooting process to record,
An initial image attribute data set obtained by selecting one of the plurality of initial image attribute data sets based on a selection condition input to the subject by the user and including at least one of the image attributes A candidate selection step of selecting the initial irradiation parameter set corresponding to as a candidate irradiation parameter set;
For at least one irradiation parameter included in the candidate irradiation parameter set selected in the candidate selection step, a numerical value within a predetermined range is substituted as a variable, respectively, and a plurality of post-adjustment irradiations respectively corresponding to each of the variables An adjustment step of obtaining a parameter set and recording it in the storage device;
An adjusting irradiation step of controlling the illumination light source to irradiate the subject based on each of the plurality of after-adjustment irradiation parameter sets obtained in the adjusting step;
A plurality of post-adjustment images corresponding to each of the post-adjustment illumination parameter sets by photographing the subject for each of the post-adjustment illumination parameter sets a plurality of times by using the photographing device for the post-adjustment illumination parameter set Obtaining and recording in the storage device;
The plurality of adjusted images obtained in the photographing step are analyzed to respectively correspond to the plurality of adjusted irradiation parameter sets and to associate a plurality of image attribute numerical sets respectively associated with the plurality of image attribute numerical values. An analysis step of obtaining a plurality of adjusted image attribute data sets including the above and storing them in the storage device;
One of the plurality of adjusted image attribute data sets obtained in the analysis step is sorted based on the sorting condition, and the adjusted illumination parameter set corresponding to the sorted one adjusted image attribute data set Selecting a target irradiation parameter set,
A method of adjusting an illumination light source, comprising:
前記候補選択工程において、
入力された前記選別条件における前記画像属性が1つのみの場合、各前記初期照射パラメータセットに対応する前記初期画像属性データセットに含まれると共に前記画像属性に対応する前記画像属性数値セットに対し、下記の数1によって、各前記初期照射パラメータセットに対応する初期評価点を算出し、
入力された前記選別条件における前記画像属性が複数で且つ、それぞれ重み付けがされている場合、各前記初期照射パラメータセットに対応する前記初期画像属性データセットに含まれ、且つ入力された前記選別条件における前記複数の画像属性にそれぞれ対応する前記画像属性数値セットに対し、下記の数2によって、各前記初期照射パラメータセットに対応する初期評価点を算出し、
算出した前記初期評価点が最も高い前記初期画像属性データセットが対応する前記初期照射パラメータセットを候補照射パラメータセットとして選択し、
下記数1において、VSは前記初期評価点であり、u1及びu2は重み付けであり、Vは各前記初期照射パラメータセットに対応する前記初期画像属性データセットの前記画像属性数値セットに含まれ、入力された前記選別条件における前記画像属性に関連する前記第1の参考値であり、σは各前記初期照射パラメータセットに対応する前記初期画像属性データセットの前記画像属性数値セットに含まれ、入力された前記選別条件における前記画像属性に関連する前記第2の参考値
下記数2において、VSは前記初期評価点であり、u1及びu2は重み付けであり、Nは入力された前記選別条件における前記画像属性の数であり、Wnはn番目の前記画像属性における重み付けであり、Vnは各前記初期照射パラメータセットに対応する前記初期画像属性データセットの前記画像属性数値セットに含まれ、入力された前記選別条件におけるn番目の前記画像属性に関連する前記第1の参考値であり、σnは各前記初期照射パラメータセットに対応する前記初期画像属性データセットの前記画像属性数値セットに含まれ、入力された前記選別条件におけるn番目の前記画像属性に関連する前記第2の参考値
In the candidate selection step,
When there is only one image attribute in the input sorting condition, for the image attribute numerical value set that is included in the initial image attribute data set corresponding to each of the initial irradiation parameter sets and that corresponds to the image attribute, An initial evaluation point corresponding to each of the initial irradiation parameter sets is calculated by the following equation 1:
When a plurality of the image attributes in the input selection condition are weighted and each is weighted, the input selection condition is included in the initial image attribute data set corresponding to each initial irradiation parameter set With respect to the image attribute numerical value set respectively corresponding to the plurality of image attributes, an initial evaluation point corresponding to each of the initial irradiation parameter sets is calculated by the following equation 2.
The initial irradiation parameter set corresponding to the initial image attribute data set having the highest calculated initial evaluation point is selected as a candidate irradiation parameter set,
In the following equation 1, V S is the initial evaluation point, u 1 and u 2 are weightings, and V is included in the image attribute numerical value set of the initial image attribute data set corresponding to each of the initial irradiation parameter set Is the first reference value associated with the image attribute in the input sorting condition, and σ is included in the image attribute numerical value set of the initial image attribute data set corresponding to each of the initial irradiation parameter set The second reference value associated with the image attribute in the input sorting condition
In the following equation 2, V S is the initial evaluation point, u 1 and u 2 are weightings, N is the number of image attributes in the input sorting conditions, and W n is the n-th image attribute And Vn is included in the image attribute numerical value set of the initial image attribute data set corresponding to each of the initial irradiation parameter set, and the n th image attribute related to the nth image attribute in the input sorting condition is The reference value is 1, σ n is included in the image attribute numerical value set of the initial image attribute data set corresponding to each of the initial irradiation parameter set, and is associated with the n-th image attribute in the input sorting condition Said second reference value
前記調整工程において、前記候補照射パラメータセットに含まれる輝度である候補輝度に対して、第1の所定範囲内の数値を第1の変数としてそれぞれ代入し、
且つ、前記候補照射パラメータセットに含まれるトーン値である候補トーン値に対して、第2の所定範囲内の数値を第2の変数としてそれぞれ代入することによって、
各前記第1の変数及び前記第2の変数にそれぞれ対応する前記複数の調整後照射パラメータセットを得て前記記憶装置に記録することを特徴とする請求項1に記載の照明光源の調整方法。 The initial irradiation parameter set and the candidate irradiation parameter set include luminance and tone values as types of irradiation parameters,
In the adjustment step, a numerical value within a first predetermined range is substituted as a first variable for candidate luminances that are luminances included in the candidate irradiation parameter set,
And by substituting a numerical value within a second predetermined range as a second variable for candidate tone values which are tone values included in the candidate irradiation parameter set,
The method according to claim 1, wherein the plurality of adjusted irradiation parameter sets respectively corresponding to the first variable and the second variable are obtained and recorded in the storage device.
前記候補輝度及び所定の第1の輝度変動値に基づいて、第1の輝度上限値と、第1の輝度下限値と、を算出し、前記第1の輝度上限値と前記第1の輝度下限値との間の範囲を、前記第1の所定範囲とする、第1の輝度算出工程と、
前記第1の所定範囲内の数値を前記第1の変数としてそれぞれ代入することにより、P個の調整後輝度を算出する、調整後輝度算出工程と、
前記候補トーン値及び所定の第1のトーン値変動値に基づいて、第1のトーン値上限値と、第1のトーン値下限値と、を算出し、前記第1のトーン値上限値と前記第1のトーン値下限値との間の範囲を、前記第2の所定範囲とする、第1のトーン値算出工程と、
前記第2の所定範囲内の数値を前記第2の変数としてそれぞれ代入することにより、Q個の調整後トーン値を算出する、調整後トーン値算出工程と、
それぞれ1つの前記調整後輝度及び1つの前記調整後トーン値を含むP×Q個の前記調整後照射パラメータセットを生成する、パラメータセット生成工程と、
を実行することを特徴とする請求項3に記載の照明光源の調整方法。 In the adjustment step, the central processing unit
A first upper luminance limit and a first lower luminance limit are calculated based on the candidate luminance and a predetermined first luminance fluctuation value, and the first upper luminance limit and the first lower luminance limit are calculated. A first brightness calculating step, wherein a range between values is a first predetermined range;
An adjusted luminance calculation step of calculating P adjusted luminances by substituting a numerical value within the first predetermined range as the first variable;
A first tone value upper limit value and a first tone value lower limit value are calculated based on the candidate tone value and a predetermined first tone value fluctuation value, and the first tone value upper limit value and the first tone value upper limit value are calculated. A first tone value calculating step, wherein a range between the first tone value lower limit value and the second tone value lower limit value is the second predetermined range;
An adjusted tone value calculating step of calculating Q adjusted tone values by respectively substituting a numerical value within the second predetermined range as the second variable;
Generating a set of P × Q adjusted illumination parameters, each including one adjusted brightness and one adjusted tone value;
4. A method of adjusting an illumination light source according to claim 3, wherein:
前記第1の輝度上限値及び前記第1の輝度下限値は、それぞれ前記候補輝度に対して前記第1の輝度変動値を加算及び減算することにより算出されるものであり、
前記第1のトーン値上限値及び前記第1のトーン値下限値は、それぞれ前記候補トーン値に対して前記第1のトーン値変動値を加算及び減算することにより算出されるものであることを特徴とする請求項4に記載の照明光源の調整方法。 In the adjusted brightness calculation step,
The first brightness upper limit value and the first brightness lower limit value are calculated by adding and subtracting the first brightness variation value to and from the candidate brightness, respectively.
The first tone value upper limit value and the first tone value lower limit value are each calculated by adding and subtracting the first tone value fluctuation value to and from the candidate tone value. The adjustment method of the illumination light source of Claim 4 characterized by the above-mentioned.
前記目標選択工程において、
入力された前記選別条件における前記画像属性が1つのみの場合、各前記調整後照射パラメータセットに対応する前記調整後画像属性データセットに含まれると共に前記画像属性に対応する前記画像属性数値セットに対し、下記の数3によって、各前記調整後照射パラメータセットに対応する調整後評価点を算出し、
入力された前記選別条件における前記画像属性が複数で且つ、それぞれ重み付けされている場合、各前記調整後照射パラメータセットに対応する前記調整後画像属性データセットに含まれ、且つ入力された前記選別条件における前記複数の画像属性にそれぞれ対応する前記画像属性数値セットに対し、下記の数4によって、各前記調整後照射パラメータセットに対応する調整後評価点を算出し、
算出した前記調整後評価点が最も高い前記調整後画像属性データセットが対応する前記調整後照射パラメータセットを目標照射パラメータセットとして選択し、
下記数3において、V’sは前記調整後評価点であり、u1及びu2は重み付けであり、V’は各前記調整後照射パラメータセットに対応する前記調整後画像属性データセットの前記画像属性数値セットに含まれ、入力された前記選別条件における前記画像属性に関連する前記第1の参考値であり、σ’は各前記調整後照射パラメータセットに対応する前記調整後画像属性データセットの前記画像属性数値セットに含まれ、入力された前記選別条件における前記画像属性に関連する前記第2の参考値
下記数4において、V’sは前記調整後評価点であり、u1及びu2は重み付けであり、Nは入力された前記選別条件における前記画像属性の数であり、Wnはn番目の前記画像属性における重み付けであり、V’nは各前記調整後照射パラメータセットに対応する前記調整後画像属性データセットの前記画像属性数値セットに含まれ、入力された前記選別条件におけるn番目の前記画像属性に関連する前記第1の参考値であり、σ’nは各前記調整後照射パラメータセットに対応する前記調整後画像属性データセットの前記画像属性数値セットに含まれ、入力された前記選別条件におけるn番目の前記画像属性に関連する前記第2の参考値
In the target selection step,
When there is only one image attribute in the input sorting condition, the image attribute numerical value set corresponding to the image attribute is included in the adjusted image attribute data set corresponding to each adjusted irradiation parameter set On the other hand, the adjusted evaluation points corresponding to each of the adjusted irradiation parameter sets are calculated by the following Equation 3:
When a plurality of the image attributes under the input selection conditions are weighted and each is weighted, the input selection conditions included in the adjusted image attribute data set corresponding to each of the adjusted irradiation parameter sets The adjusted evaluation score corresponding to each of the post-adjustment irradiation parameter set is calculated by the following equation 4 for the image attribute numerical value set respectively corresponding to the plurality of image attributes in
Selecting the adjusted irradiation parameter set corresponding to the adjusted image attribute data set having the highest calculated adjusted evaluation point as a target irradiation parameter set;
In Equation 3, V's is the adjusted evaluation point, u 1 and u 2 are weightings, and V 'is the image attribute numerical value of the adjusted image attribute data set corresponding to each adjusted irradiation parameter set The first reference value included in the set and associated with the image attribute in the input sorting condition, and σ ′ is the image of the adjusted image attribute data set corresponding to each adjusted illumination parameter set The second reference value included in the attribute numerical value set and associated with the image attribute in the input sorting condition
In the following equation 4, V's is the adjusted evaluation point, u 1 and u 2 are weightings, N is the number of image attributes in the input sorting condition, and Wn is the n-th image attribute V ′ n is included in the image attribute numerical value set of the adjusted image attribute data set corresponding to each adjusted light irradiation parameter set, and V ′ n is the n-th image attribute under the input sorting condition The associated first reference value, σ ′ n is included in the image attribute numerical value set of the adjusted image attribute data set corresponding to each adjusted irradiation parameter set, and n in the input sorting condition The second reference value associated with the second image attribute
前記目標照射パラメータセットに含まれる前記調整後輝度を分析して、前記第1の輝度上限値と等しいか否かを判断する、判断工程と、
前記判断工程における判断結果が前記第1の輝度上限値と等しい場合、前記調整後輝度及び第2の輝度変動値に基づいて第2の輝度上限値を算出する、第2の輝度算出工程と、
前記調整後輝度及び前記第2の輝度上限値に基づいて複数の再調整輝度を算出する、再調整輝度生成工程と、
それぞれ1つの前記再調整輝度を含む複数の再調整照射パラメータセットを算出する、再調整照射パラメータセット生成工程と、
前記照明光源が前記複数の再調整照射パラメータセットにそれぞれ基づいて前記被写体を照射する、再調整照射工程と、
前記撮影装置が前記再調整照射工程によって照射される前記被写体を撮影して複数の再調整画像を得る、再調整撮影工程と、
前記再調整撮影工程によって得られた前記複数の再調整画像を分析して、それぞれ前記複数の再調整照射パラメータセットに対応すると共に複数の前記画像属性数値セットを含む複数の再調整画像属性データセットを得る、再調整分析工程と、
前記再調整分析工程によって得られた前記複数の再調整画像属性データセットから、前記選別条件に基づいて1つを選別して最適画像属性データセットとして選択する、最適選別工程と、
前記最適選別工程によって選択された前記最適画像属性データセットに対応する前記再調整照射パラメータセットを選択して最適照射パラメータセットとする、最適選択工程と、
を更に含むことを特徴とする請求項6に記載の照明光源の調整方法。 Under control of the central processing unit
A determination step of analyzing the adjusted luminance included in the target irradiation parameter set to determine whether it is equal to the first luminance upper limit value;
A second brightness calculating step of calculating a second brightness upper limit value based on the adjusted brightness and the second brightness variation value, when the determination result in the determining step is equal to the first brightness upper limit value;
A readjustment luminance generation step of calculating a plurality of readjustment luminances based on the adjusted luminance and the second luminance upper limit value;
A readjustment irradiation parameter set generating step of calculating a plurality of readjustment irradiation parameter sets each including the one readjustment luminance;
A readjustment illumination process, wherein the illumination light source illuminates the subject based on the plurality of readjustment illumination parameter sets respectively;
A readjustment imaging step of imaging the subject illuminated by the readjustment illumination step to obtain a plurality of readjustment images;
A plurality of readjusted image attribute data sets respectively corresponding to the plurality of readjusted illumination parameter sets and analyzing the plurality of readjusted image parameters obtained by the readjustment imaging process, and including a plurality of the image attribute numerical value sets Obtaining the readjustment analysis process,
An optimal selection step of selecting one of the plurality of readjusted image attribute data sets obtained by the readjustment analysis step based on the selection condition and selecting it as an optimum image attribute data set;
An optimum selection step of selecting the readjustment irradiation parameter set corresponding to the optimum image attribute data set selected by the optimum selection step as an optimum irradiation parameter set;
The method according to claim 6, further comprising:
前記目標照射パラメータセットに含まれる前記調整後輝度を分析して、前記第1の輝度下限値と等しいか否かを判断する、判断工程と、
前記判断工程における判断結果が肯定の場合、前記調整後輝度及び第2の輝度変動値に基づいて第2の輝度下限値を算出する、第2の輝度算出工程と、
前記調整後輝度及び前記第2の輝度下限値に基づいて複数の再調整輝度を算出する、再調整輝度生成工程と、
それぞれ1つの前記再調整輝度を含む複数の再調整照射パラメータセットを算出する、再調整照射パラメータセット生成工程と、
前記照明光源が前記複数の再調整照射パラメータセットにそれぞれ基づいて前記被写体を照射する、再調整照射工程と、
前記撮影装置が前記再調整照射工程によって照射される前記被写体を撮影して複数の再調整画像を得る、再調整撮影工程と、
前記再調整撮影工程によって得られた前記複数の再調整画像を分析して、それぞれ前記複数の再調整照射パラメータセットに対応すると共に複数の前記画像属性数値セットを含む複数の再調整画像属性データセットを得る、再調整分析工程と、
前記再調整分析工程によって得られた前記複数の再調整画像属性データセットから、前記選別条件に基づいて1つを選別して最適画像属性データセットとする、最適選別工程と、
前記最適選別工程によって選別された前記最適画像属性データセットに対応する前記再調整照射パラメータセットを選択して最適照射パラメータセットとする、最適選択工程と、
を更に含むことを特徴とする請求項6に記載の照明光源の調整方法。 Under control of the central processing unit
A determination step of analyzing the adjusted luminance included in the target irradiation parameter set to determine whether it is equal to the first lower luminance limit value;
A second brightness calculating step of calculating a second brightness lower limit value based on the adjusted brightness and the second brightness variation value, if the determination result in the determining step is affirmative;
A readjustment luminance generation step of calculating a plurality of readjustment luminances based on the adjusted luminance and the second lower limit luminance;
A readjustment irradiation parameter set generating step of calculating a plurality of readjustment irradiation parameter sets each including the one readjustment luminance;
A readjustment illumination process, wherein the illumination light source illuminates the subject based on the plurality of readjustment illumination parameter sets respectively;
A readjustment imaging step of imaging the subject illuminated by the readjustment illumination step to obtain a plurality of readjustment images;
A plurality of readjusted image attribute data sets respectively corresponding to the plurality of readjusted illumination parameter sets and analyzing the plurality of readjusted image parameters obtained by the readjustment imaging process, and including a plurality of the image attribute numerical value sets Obtaining the readjustment analysis process,
An optimal selection step of selecting one of the plurality of readjusted image attribute data sets obtained by the readjustment analysis step based on the selection condition to obtain an optimum image attribute data set;
An optimal selection step of selecting the readjustment illumination parameter set corresponding to the optimal image attribute data set sorted by the optimal sorting step as an optimal illumination parameter set;
The method according to claim 6, further comprising:
前記目標照射パラメータセットに含まれる前記調整後トーン値を分析して、前記第1のトーン値上限値と等しいか否かを判断する、判断工程と、
前記判断工程における判断結果が肯定の場合、前記調整後トーン値及び第2のトーン値変動値に基づいて第2のトーン値上限値を算出する、第2のトーン値算出工程と、
前記調整後トーン値及び前記第2のトーン値上限値に基づいて複数の再調整トーン値を算出する、再調整トーン値生成工程と、
それぞれ1つの前記再調整トーン値を含む複数の再調整照射パラメータセットを算出する、再調整照射パラメータセット生成工程と、
前記照明光源が前記複数の再調整照射パラメータセットにそれぞれ基づいて前記被写体を照射する、再調整照射工程と、
前記撮影装置により、前記再調整照射工程によって照射される前記被写体を撮影して複数の再調整画像を得る、再調整撮影工程と、
前記再調整撮影工程によって得られた前記複数の再調整画像を分析して、それぞれ前記複数の再調整照射パラメータセットに対応すると共に複数の前記画像属性数値セットを含む複数の再調整画像属性データセットを得る、再調整分析工程と、
前記再調整分析工程によって得られた前記複数の再調整画像属性データセットから、前記選別条件に基づいて1つを選別して最適画像属性データセットとする、最適選別工程と、
前記最適選別工程によって選別された前記最適画像属性データセットに対応する前記再調整照射パラメータセットを選択して最適照射パラメータセットとする、最適選択工程と、
を更に含むことを特徴とする請求項6に記載の照明光源の調整方法。 Under control of the central processing unit
Analyzing the adjusted tone values included in the target illumination parameter set to determine if they are equal to the first tone value upper limit value;
A second tone value calculating step of calculating a second tone value upper limit value based on the adjusted tone value and the second tone value fluctuation value, if the determination result in the determining step is affirmative;
A readjustment tone value generation step of calculating a plurality of readjustment tone values based on the adjusted tone value and the second tone value upper limit;
Generating a readjustment illumination parameter set, calculating a plurality of readjustment illumination parameter sets each including one of the readjustment tone values;
A readjustment illumination process, wherein the illumination light source illuminates the subject based on the plurality of readjustment illumination parameter sets respectively;
A readjustment photographing step of photographing the subject irradiated in the readjustment irradiation step by the photographing device to obtain a plurality of readjustment images;
A plurality of readjusted image attribute data sets respectively corresponding to the plurality of readjusted illumination parameter sets and analyzing the plurality of readjusted image parameters obtained by the readjustment imaging process, and including a plurality of the image attribute numerical value sets Obtaining the readjustment analysis process,
An optimal selection step of selecting one of the plurality of readjusted image attribute data sets obtained by the readjustment analysis step based on the selection condition to obtain an optimum image attribute data set;
An optimal selection step of selecting the readjustment illumination parameter set corresponding to the optimal image attribute data set sorted by the optimal sorting step as an optimal illumination parameter set;
The method according to claim 6, further comprising:
前記目標照射パラメータセットに含まれる前記調整後トーン値を分析して、前記第1のトーン値下限値と等しいか否かを判断する、判断工程と、
前記判断工程における判断結果が肯定の場合、前記調整後トーン値及び第2のトーン値変動値に基づいて第2のトーン値下限値を算出する、第2のトーン値算出工程と、
前記調整後トーン値及び前記第2のトーン値下限値に基づいて複数の再調整トーン値を算出する、再調整トーン値生成工程と、
それぞれ1つの前記再調整トーン値を含む複数の再調整照射パラメータセットを算出する、再調整照射パラメータセット生成工程と、
前記照明光源が前記複数の再調整照射パラメータセットにそれぞれ基づいて前記被写体を照射する、再調整照射工程と、
前記撮影装置により、前記再調整照射工程によって照射される前記被写体を撮影して複数の再調整画像を得る、再調整撮影工程と、
前記再調整撮影工程によって得られた前記複数の再調整画像を分析して、それぞれ前記複数の再調整照射パラメータセットに対応すると共に複数の前記画像属性数値セットを含む複数の再調整画像属性データセットを得る、再調整分析工程と、
前記再調整分析工程によって得られた前記複数の再調整画像属性データセットから、前記選別条件に基づいて1つを選別して最適画像属性データセットとする、最適選別工程と、
前記最適選別工程によって選別された前記最適画像属性データセットに対応する前記再調整照射パラメータセットを選択して最適照射パラメータセットとする、最適選択工程と、
を更に含むことを特徴とする請求項6に記載の照明光源の調整方法。 Under control of the central processing unit
Analyzing the adjusted tone values contained in the target illumination parameter set to determine if they are equal to the first lower tone value limit;
A second tone value calculating step of calculating a second tone value lower limit value based on the adjusted tone value and the second tone value fluctuation value if the determination result in the determining step is affirmative;
A readjustment tone value generation step of calculating a plurality of readjustment tone values based on the adjusted tone value and the second tone value lower limit value;
Generating a readjustment illumination parameter set, calculating a plurality of readjustment illumination parameter sets each including one of the readjustment tone values;
A readjustment illumination process, wherein the illumination light source illuminates the subject based on the plurality of readjustment illumination parameter sets respectively;
A readjustment photographing step of photographing the subject irradiated in the readjustment irradiation step by the photographing device to obtain a plurality of readjustment images;
A plurality of readjusted image attribute data sets respectively corresponding to the plurality of readjusted illumination parameter sets and analyzing the plurality of readjusted image parameters obtained by the readjustment imaging process, and including a plurality of the image attribute numerical value sets Obtaining the readjustment analysis process,
An optimal selection step of selecting one of the plurality of readjusted image attribute data sets obtained by the readjustment analysis step based on the selection condition to obtain an optimum image attribute data set;
An optimal selection step of selecting the readjustment illumination parameter set corresponding to the optimal image attribute data set sorted by the optimal sorting step as an optimal illumination parameter set;
The method according to claim 6, further comprising:
前記照明光源が前記複数の初期照射パラメータセットにそれぞれ基づいて、前記被写体を照射する、初期照射工程と、
前記撮影装置が前記初期照射工程によって照射される前記被写体を撮影して前記複数の初期画像を得る、初期撮影工程と、
前記初期撮影工程によって得られた前記複数の初期画像を分析して、各前記初期照射パラメータセットに対応すると共に前記画像属性数値セットをそれぞれ含む前記複数の初期画像属性データセットを得る、初期分析工程と、
前記複数の初期画像属性データセットを前記記憶装置に記録する初期記録工程と、
を含むことを特徴とする請求項1〜14の何れか1項に記載の照明光源の調整方法。 The initial image photographing process is
An initial illumination step, wherein the illumination light source illuminates the subject based on the plurality of initial illumination parameter sets respectively;
An initial imaging step of imaging the subject illuminated by the initial irradiation step to obtain the plurality of initial images;
An initial analysis step of analyzing the plurality of initial images obtained by the initial imaging step to obtain the plurality of initial image attribute data sets corresponding to the respective initial irradiation parameter sets and respectively including the image attribute numerical value set When,
An initial recording step of recording the plurality of initial image attribute data sets in the storage device;
The adjustment method of the illumination light source as described in any one of the Claims 1-14 characterized by including.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW106143524 | 2017-12-12 | ||
TW106143524A TWI631319B (en) | 2017-12-12 | 2017-12-12 | Automatic light source adjustment method |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2019106696A true JP2019106696A (en) | 2019-06-27 |
JP6649439B2 JP6649439B2 (en) | 2020-02-19 |
Family
ID=63959606
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2018118712A Active JP6649439B2 (en) | 2017-12-12 | 2018-06-22 | Adjusting the light source |
Country Status (2)
Country | Link |
---|---|
JP (1) | JP6649439B2 (en) |
TW (1) | TWI631319B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111464753A (en) * | 2020-05-21 | 2020-07-28 | 北京小米移动软件有限公司 | Picture shooting method and device and storage medium |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105744262A (en) * | 2014-12-12 | 2016-07-06 | 致茂电子(苏州)有限公司 | Detection system capable of correcting light source, and light source correction method thereof |
CN108604042B (en) * | 2016-01-20 | 2021-07-23 | 亮锐控股有限公司 | Driver for adaptive light source |
TWI594631B (en) * | 2016-03-08 | 2017-08-01 | 晶睿通訊股份有限公司 | Automatic light adjusting method and related camera |
-
2017
- 2017-12-12 TW TW106143524A patent/TWI631319B/en active
-
2018
- 2018-06-22 JP JP2018118712A patent/JP6649439B2/en active Active
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111464753A (en) * | 2020-05-21 | 2020-07-28 | 北京小米移动软件有限公司 | Picture shooting method and device and storage medium |
CN111464753B (en) * | 2020-05-21 | 2022-04-08 | 北京小米移动软件有限公司 | Picture shooting method and device and storage medium |
Also Published As
Publication number | Publication date |
---|---|
TW201928304A (en) | 2019-07-16 |
JP6649439B2 (en) | 2020-02-19 |
TWI631319B (en) | 2018-08-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR101232010B1 (en) | Method for calculating brightness level in the area of interest of the digital x-ray image for medical applications | |
TWI539812B (en) | Automatic white balance methods for electronic cameras | |
CN105122943A (en) | A method of characterizing a light source and a mobile device | |
JP2013501264A (en) | Brightness adjustment of digital images using range information | |
JP5914688B2 (en) | Color analysis for digital images | |
JPWO2015102057A1 (en) | Image processing method, image processing system, and program | |
JP2012078176A (en) | Image processing system | |
US10520424B2 (en) | Adaptive method for a light source for inspecting an article | |
CN105445570B (en) | A kind of wide-angle shot machine signal-to-noise test system and measuring method | |
CN115225820A (en) | Automatic shooting parameter adjusting method and device, storage medium and industrial camera | |
JP2020155128A (en) | System and method for evaluating symbols | |
JP6649439B2 (en) | Adjusting the light source | |
US10481378B2 (en) | Interactive graphical representation of image quality and control thereof | |
CN109238461A (en) | Room lighting dazzle measurement method based on digital camera images | |
TW201633254A (en) | Automatic white balance systems for electronic cameras | |
JP6395455B2 (en) | Inspection device, inspection method, and program | |
US20220260420A1 (en) | Method For Determining A Tooth Colour | |
JP5860970B2 (en) | Post-processing to improve eigenimage generation | |
CN109357754A (en) | Luminance meter scaling method and system inside and outside a kind of Tunnel based on deep learning | |
CN112165616B (en) | Camera module testing method and device, electronic equipment and storage medium | |
KR102049172B1 (en) | Adaptive method for a light source | |
TW202022694A (en) | Optical detecting device and calibrating method | |
KR102171773B1 (en) | Inspection area determination method and visual inspection apparatus using the same | |
JP2010121955A (en) | Height information acquisition device, height information acquisition method, and program | |
JP2020153759A (en) | Evaluation device, genuine feeling evaluation method, and program |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20180622 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20180703 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20190729 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20191029 |
|
TRDD | Decision of grant or rejection written | ||
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20191223 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20200116 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 6649439 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |