JP5441799B2 - Electronic camera - Google Patents
Electronic camera Download PDFInfo
- Publication number
- JP5441799B2 JP5441799B2 JP2010089335A JP2010089335A JP5441799B2 JP 5441799 B2 JP5441799 B2 JP 5441799B2 JP 2010089335 A JP2010089335 A JP 2010089335A JP 2010089335 A JP2010089335 A JP 2010089335A JP 5441799 B2 JP5441799 B2 JP 5441799B2
- Authority
- JP
- Japan
- Prior art keywords
- size
- image
- object scene
- display
- electronic camera
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
Images
Landscapes
- Length Measuring Devices By Optical Means (AREA)
- Exposure Control For Cameras (AREA)
- Indication In Cameras, And Counting Of Exposures (AREA)
- Studio Devices (AREA)
Description
この発明は、電子カメラに関し、特に被写界像に現れた物体のサイズを測定する、電子カメラに関する。 The present invention relates to an electronic camera, and more particularly to an electronic camera that measures the size of an object appearing in an object scene image.
この種の装置の一例が、特許文献1に開示されている。この背景技術によるデジタルカメラは、レンズから被写体までの距離を測定できる距離センサと、距離センサからの信号を距離に算出する距離算出部と、ディスプレイ上に映された被写体の任意部分に自由に合わせられるカーソルと、カーソルを操作するカーソル操作部を有し、距離センサにより測定された距離データLと、カーソルにて決定されるディスプレイ上に映された被写体の任意部分のデータXd、Ydと、レンズの固有値であるX軸方向撮影画角θx、Y軸方向撮影画角θyとの関係式を用い、ディスプレイ上で、撮影方向と垂直な面の被写体の任意部分実際寸法を測定する。
An example of this type of device is disclosed in
しかし、背景技術では、電子カメラが距離センサを備えている必要がある。距離センサを電子カメラに組み込むことは、電子カメラ自体のコスト上昇の要因となり、また、電子カメラの小型化または軽量化を妨げる要因ともなる。 However, in the background art, the electronic camera needs to include a distance sensor. Incorporating the distance sensor into the electronic camera increases the cost of the electronic camera itself, and also prevents the electronic camera from being reduced in size or weight.
それゆえに、この発明の主たる目的は、所望の物体のサイズを簡便に測定することができる、電子カメラを提供することである。 Therefore, a main object of the present invention is to provide an electronic camera that can easily measure the size of a desired object.
この発明に従う電子カメラ(10:実施例で相当する参照符号。以下同じ)は、被写界を捉える撮像面を有し、被写界像を出力する撮像手段(16)、撮像手段から出力された被写界像をモニタ画面に表示する第1表示手段(26, 28)、既定方向において第1既定サイズを有する基準物体を表す物体像を撮像手段から出力された被写界像から探索する探索手段(36, S35, S37)、探索手段によって発見された物体像のサイズを基準サイズとして測定する第1測定手段(S41)、既定方向において第2既定サイズを定義する基準画像を探索手段の探索処理に関連してモニタ画面に表示する第2表示手段(34, S7)、および第2表示手段によって表示された基準画像を基準物体の位置で光軸に直交する平面に仮想的に投影した仮想投影画像のサイズを基準サイズと第1既定サイズと第2既定サイズとに基づいて算出する算出手段(S43)を備える。 An electronic camera according to the present invention (10: reference numeral corresponding to the embodiment; the same applies hereinafter) has an imaging surface for capturing a scene and is output from the imaging means (16) for outputting the scene image. First display means (26, 28) for displaying the object scene image on the monitor screen, and searching the object image representing the reference object having the first predetermined size in the predetermined direction from the object scene image output from the image pickup means. Search means (36, S35, S37), first measurement means (S41) for measuring the size of the object image found by the search means as a reference size, and a reference image defining a second default size in a predetermined direction Second display means (34, S7) for displaying on the monitor screen in relation to the search processing, and the reference image displayed by the second display means is virtually projected on a plane perpendicular to the optical axis at the position of the reference object The size of the virtual projection image is set to the reference size and the first default size Calculation means (S43) for calculating based on the second predetermined size is provided.
好ましくは、算出手段によって算出されたサイズを示す指標を第1表示手段の表示処理に関連してモニタ画面に表示する第3表示手段(S45, S73)をさらに備える。 Preferably, the apparatus further includes third display means (S45, S73) for displaying an index indicating the size calculated by the calculating means on the monitor screen in association with the display processing of the first display means.
さらに好ましくは、被写界像から基準物体を表す物体像を削除する削除手段(S71)をさらに備え、第3表示手段は削除手段の削除処理に関連して指標を表示する。 More preferably, it further comprises a deletion means (S71) for deleting the object image representing the reference object from the object scene image, and the third display means displays the index in connection with the deletion process of the deletion means.
好ましくは、撮像手段から出力された被写界像と算出手段によって算出されたサイズとをファイル形式で記録媒体に記録する記録手段(30, 32, S51, S81, S83)をさらに備える。 Preferably, the image processing apparatus further includes recording means (30, 32, S51, S81, S83) for recording the object scene image output from the imaging means and the size calculated by the calculating means in a file format on a recording medium.
さらに好ましくは、被写界像とサイズを示す指標とを合成した画像を作成する作成手段(S49)をさらに備え、記録手段は作成手段によって作成された画像に基づいた画像データを記録媒体に記録する。 More preferably, the image forming apparatus further includes a creation unit (S49) that creates an image in which the object scene image and the size index are combined, and the recording unit records image data based on the image created by the creation unit on a recording medium. To do.
さらに好ましくは、記録手段は、被写界像に基づいた画像データを記録し、サイズをファイルのヘッダに記録する。 More preferably, the recording means records image data based on the object scene image, and records the size in the header of the file.
好ましくは、基準物体は無彩色の模様が施された物体であって、第1既定サイズは模様の大きさであって、第1測定手段は被写界像に現れた模様の輝度を評価して模様の大きさを算出することにより基準サイズを測定する。 Preferably, the reference object is an object with an achromatic pattern, the first predetermined size is the size of the pattern, and the first measuring means evaluates the brightness of the pattern appearing in the object scene image. The reference size is measured by calculating the size of the pattern.
既定方向における所望の物体のサイズは、基準物体と所望の物体とを被写界に配置し、かつ所望の物体を表す物体像の既定方向におけるサイズが第2既定サイズと一致するように光軸方向における撮像面の位置或いはズーム倍率を調整することで算出される。これによって、所望の物体のサイズを簡便に測定することができる。 The size of the desired object in the predetermined direction is such that the reference object and the desired object are arranged in the field, and the size of the object image representing the desired object in the predetermined direction matches the second predetermined size. It is calculated by adjusting the position of the imaging surface in the direction or the zoom magnification. Thereby, the size of a desired object can be easily measured.
この発明の上述の目的,その他の目的,特徴および利点は、図面を参照して行う以下の実施例の詳細な説明から一層明らかとなろう。 The above object, other objects, features and advantages of the present invention will become more apparent from the following detailed description of embodiments with reference to the drawings.
以下、この発明の実施の形態を図面を参照しながら説明する。
[基本的構成]
Embodiments of the present invention will be described below with reference to the drawings.
[Basic configuration]
図1を参照して、この発明の電子カメラは、基本的に次のように構成される。撮像手段1は、被写界を捉える撮像面を有し、被写界像を出力する。第1表示手段2は、撮像手段1から出力された被写界像をモニタ画面に表示する。探索手段3は、既定方向において第1既定サイズを有する基準物体を表す物体像を撮像手段1から出力された被写界像から探索する。第1測定手段4は、探索手段3によって発見された物体像のサイズを基準サイズとして測定する。第2表示手段5は、既定方向において第2既定サイズを定義する基準画像を探索手段3の探索処理に関連してモニタ画面に表示する。算出手段6は、第2表示手段5によって表示された基準画像を基準物体の位置で光軸に直交する平面に仮想的に投影した仮想投影画像のサイズを基準サイズと第1既定サイズと第2既定サイズとに基づいて算出する。
Referring to FIG. 1, the electronic camera of the present invention is basically configured as follows. The imaging means 1 has an imaging surface that captures the object scene and outputs an object scene image. The first display means 2 displays the object scene image output from the imaging means 1 on the monitor screen. The searching means 3 searches the object image representing the reference object having the first predetermined size in the predetermined direction from the object scene image output from the imaging means 1. The first measuring unit 4 measures the size of the object image found by the searching
既定方向における所望の物体のサイズは、基準物体と所望の物体とを被写界に配置し、かつ所望の物体を表す物体像の既定方向におけるサイズが第2既定サイズと一致するように光軸方向における撮像面の位置或いはズーム倍率を調整することで算出される。これによって、所望の物体のサイズを簡便に測定することができる。
[実施例]
The size of the desired object in the predetermined direction is such that the reference object and the desired object are arranged in the field, and the size of the object image representing the desired object in the predetermined direction matches the second predetermined size. It is calculated by adjusting the position of the imaging surface in the direction or the zoom magnification. Thereby, the size of a desired object can be easily measured.
[Example]
図2を参照して、この実施例のディジタルカメラ10は、ドライバ18aおよび18bによってそれぞれ駆動されるフォーカスレンズ12および絞りユニット14を含む。被写界の光学像は、これらの部材を通してイメージセンサ16の撮像面に照射される。
Referring to FIG. 2, the
電源が投入されると、CPU40は、撮像タスクの下で動画取り込み処理を実行するべく、ドライバ18cを起動する。ドライバ18cは、1/60秒毎に発生する垂直同期信号Vsyncに応答して、撮像面を露光し、撮像面で生成された電荷をラスタ走査態様で読み出す。イメージセンサ16からは、被写界を表す生画像データが60fpsのフレームレートで出力される。
When the power is turned on, the
信号処理回路20は、イメージセンサ16からの生画像データに色分離,白バランス調整,YUV変換などの処理を施し、YUV形式の画像データを作成する。作成された画像データは、メモリ制御回路22を通してSDRAM24に書き込まれる。
The
LCDドライバ26は、SDRAM24に格納された画像データをメモリ制御回路22を通して繰り返し読み出し、読み出された画像データに基づいてLCDモニタ28を駆動する。この結果、被写界を表すリアルタイム動画像(スルー画像)がモニタ画面に表示される。
The
信号処理回路20はまた、YUV変換によって生成されたYデータをCPU40に与える。CPU40は、Yデータに簡易AE処理を施し、適正EV値を算出する。算出された適正EV値を定義する絞り量および露光時間はドライバ18bおよび18cにそれぞれ設定され、これによってスルー画像の明るさが適度に調整される。
The
動画取り込み処理の開始とともに、コンティニュアスAFタスクが起動される。CPU40は、信号処理回路20から出力されたYデータのうち評価エリア(図示せず)に属する一部のYデータの高周波成分を1/60秒毎に積分し、積分値つまりフォーカス評価値を算出する。CPU40は、算出したフォーカス評価値に基づいていわゆるコンティニュアスAF処理を実行し、フォーカスレンズ14を合焦点に配置する。この結果、LCDモニタ42から出力される動画像の鮮鋭度が継続的に向上する。
Along with the start of the moving image capturing process, the continuous AF task is activated. The
シャッタボタン38sが半押しされると、CPU40は、コンティニュアスAFタスクを停止し、信号処理回路20から与えられたYデータに厳格なAE処理を施して最適EV値を算出する。算出された最適EV値を定義する絞り量および露光時間は、上述と同様、ドライバ18bおよび18cにそれぞれ設定される。この結果、スルー画像の明るさが厳格に調整される。
When the
CPU40は続いて、信号処理回路20から与えられたYデータの高周波成分にAF処理を施す。フォーカスレンズ12はドライバ18aによって光軸方向に移動し、合焦点に配置される。この結果、スルー画像の鮮鋭度が向上する。
Subsequently, the
シャッタボタン38sが全押しされると、CPU40は、静止画取り込み処理を実行する。シャッタボタン38sが全押しされた時点の被写界を表す画像データは、SDRAM24に形成されたワークエリア(図示せず)に退避される。
When the
CPU40はその後、記録処理を実行するべく、I/F30を起動する。I/F30は、ワークエリアに退避された画像データをメモリ制御回路22を通して読み出し、読み出された画像データをファイル形式で記録媒体32に記録する。記録処理が完了すると、コンティニュアスAFタスクが起動され、スルー画像の表示が再開される。
Thereafter, the
ディジタルカメラ10の動作モードとして、所望の物体のサイズを算出するための処理を行うサイズ測定モードが準備される。サイズ測定モードにおける処理のために、図3に示す辞書36dが設けられる。また、図4に示す基準物体STDが準備される。
As an operation mode of the
基準物体STDは、カード状の紙からなり、黒色の正方形の内部に白色の円形部分を配した模様が施されている。辞書36dには、基準物体STDを示す画像が記述されている。また、円形部分の直径が、基準サイズSZ_stdとして記述されている。
The reference object STD is made of card-like paper and has a pattern in which a white circular portion is arranged inside a black square. An image showing the reference object STD is described in the
操作者によるキー入力装置38の操作によってサイズ測定モードが選択されると、グラフィックジェネレータ34は、カーソルCS1を表すグラフィックデータおよびカーソルCS2を表すグラフィックデータをLCDドライバ26に向けて出力する。
When the size measurement mode is selected by the operation of the key input device 38 by the operator, the
この結果、カーソルCS1およびCS2からなるガイドラインGLが、LCDモニタ28のモニタ画面SCに描画される。図5を参照して、カーソルCS1およびCS2の各々は垂直線分で構成される。また、カーソルCS1は画面の左側に、カーソルCS2は画面の右側に、互いに平行となるように各々表示される。なお、カーソルCS1およびCS2の間の画素数は、NP_csで表される。
As a result, the guide line GL including the cursors CS1 and CS2 is drawn on the monitor screen SC of the
以下、魚FSの口元から尾ひれの先端までの長さ(以下、「水平サイズ」と称する)を測定する場合を例にして、処理の詳細を説明する。 Hereinafter, the details of the processing will be described by taking as an example the case of measuring the length from the mouth of the fish FS to the tip of the tail fin (hereinafter referred to as “horizontal size”).
図6を参照して、操作者は、水平サイズを測定したい魚FSと基準物体STDとを、同一平面上に並べて配置する。この際、ディジタルカメラ10の同一の画角内に両者が収まるように、両者を近づけて配置する。次に、図7を参照して、操作者は、モニタ画面SCに表示されるスルー画像を見ながら、自らの立ち位置を調整して、モニタ画面SCに現れた魚FSの全体像がガイドラインGLにちょうど収まるようにする。すなわち、左向きに横たえられている魚FSの長さを測定する場合は、撮像面に現れた魚FSの口元がカーソルCS1と接し、かつ尾ひれの先端がカーソルCS2と接するように、調整する。
Referring to FIG. 6, the operator arranges fish FS whose reference size is to be measured and reference object STD side by side on the same plane. At this time, the
さらに、操作者は、モニタ画面SCを見て、魚FSと基準物体STDとが同一の画角内に収まっていることを確認する。 Further, the operator looks at the monitor screen SC and confirms that the fish FS and the reference object STD are within the same angle of view.
サイズ測定モードが選択された状態でシャッタボタン38sが全押しされると、静止画取り込み処理に続いて、グラフィックジェネレータ34は、グラフィックデータの出力を停止し、この結果、ガイドラインGLのLCDモニタ28への表示が停止する。
When the
次に、CPU40は、基準物体検出回路36を起動させる。基準物体検出回路36は、図8に示すように構成される。
Next, the
基準物体検出回路36は、照合枠FDをSDRAM24に格納された被写界像の先頭位置から末尾位置に向けてラスタ走査態様で移動させ、照合枠FDに属する一部の画像を辞書36dに登録された基準物体STDを示す画像と照合する。
The reference
探索エリアはまず、評価エリアEVAの全域を覆うように設定される。また、照合枠FDは、“200”〜“20”の範囲で変化するサイズを有して、図9に示す要領で評価エリアEVA上をラスタ方向に走査される。 First, the search area is set so as to cover the entire evaluation area EVA. Further, the verification frame FD has a size that changes in the range of “200” to “20”, and is scanned in the raster direction on the evaluation area EVA in the manner shown in FIG.
照合枠FDの画像と登録された画像とが符合すると、基準物体検出回路36は、現時点の照合枠FDのサイズおよび位置をレジスタ36eに登録する。照合枠FDは、末尾位置に到達する毎に縮小され、その後に先頭位置に再度設定される。最小サイズの照合枠FDが末尾位置に到達すると、探索終了通知が基準物体検出回路36からCPU40に向けて返送される。
When the image of the verification frame FD matches the registered image, the reference
CPU40は、基準物体検出回路36から返送された探索終了通知に応答して、基準物体STDの探索に成功したか否かを判別する。少なくとも1つの照合枠FDがレジスタ36eに登録されていれば、基準物体STDの探索に成功したと判別される。これに対して、照合枠FDがレジスタ36eに登録されていなければ、基準物体STDの探索に失敗したと判別される。
In response to the search end notification returned from the reference
基準物体STDの探索に失敗した場合は、CPU40は、魚FSの水平サイズの算出が不能である旨を操作者に向けて報知する。
When the search for the reference object STD fails, the
基準物体STDの探索に成功した場合は、撮像面に現れた基準物体STDの円形部分の直径に相当する画素数NP_stdを測定する。図10を参照して、基準物体STDの輝度信号のレベルを射影すると、黒色の部分は最小値となり、白色の部分は最大値となる。円形部分は白色であってその周囲は黒色であるので、最小値と最小値との間の画素数を測定することにより、円形部分の直径に相当する画素数NP_stdが検出される。 When the search of the reference object STD is successful, the number of pixels NP_std corresponding to the diameter of the circular portion of the reference object STD that appears on the imaging surface is measured. With reference to FIG. 10, when the level of the luminance signal of the reference object STD is projected, the black portion has the minimum value and the white portion has the maximum value. Since the circular portion is white and the periphery thereof is black, the number of pixels NP_std corresponding to the diameter of the circular portion is detected by measuring the number of pixels between the minimum value and the minimum value.
図7に戻って、モニタ画面SCに現れた魚FSの口元および尾ひれはそれぞれ、ガイドラインGLを形成するカーソルCS1およびCS2と一致する。基準物体STDの位置でディジタルカメラ10の光軸に直交する平面にガイドラインGLを仮想的に投影すると、ガイドラインGLに対応する仮想投影画像VGLが魚FSを挟むように描かれる。
Returning to FIG. 7, the mouth and tail fin of the fish FS appearing on the monitor screen SC coincide with the cursors CS1 and CS2 forming the guide line GL, respectively. When the guideline GL is virtually projected on a plane orthogonal to the optical axis of the
仮想投影画像VGLは、カーソルCS1に対応した仮想投影画像VCS1とカーソルCS2に対応した仮想投影画像VCS2とからなると仮定する。すると、魚FSの水平サイズSZ_objは、仮想投影画像VCS1とVCS2との間の距離SZ_vgを算出することによって、求めることができる。 It is assumed that the virtual projection image VGL includes a virtual projection image VCS1 corresponding to the cursor CS1 and a virtual projection image VCS2 corresponding to the cursor CS2. Then, the horizontal size SZ_obj of the fish FS can be obtained by calculating the distance SZ_vg between the virtual projection images VCS1 and VCS2.
したがって、魚FSの水平サイズSZ_objは、基準物体STDの基準サイズSZ_std、撮像面に現れた基準物体STDの円形部分の直径に相当する画素数NP_std、およびカーソル1およびカーソル2の間の画素数NP_csを用いて仮想投影画像VCS1とVCS2との間の距離SZ_vgを算出することによって、以下の数1に示す式で求めることができる。
CPU40は、このようにして求められた魚FSの水平サイズSZ_objを示す数字および単位等の指標を、SDRAM24から読み出した被写界を表す画像に重ねて、LCDモニタ28に表示させる。この際、指標は、基準物体STDの白色の円形部分に重ねて表示させる(図11参照)。
The
CPU40は次に、ワークエリアに退避された画像データをメモリ制御回路22を通して読み出す。そして、読み出した画像データに係る画像と魚FSの水平サイズSZ_objを示す指標の表示とを合成して、記録用画像データを作成する。
Next, the
CPU40はその後、記録処理を実行するべく、I/F30を起動する。I/F30は、作成された記録用画像データをファイル形式で記録媒体32に記録する。記録処理が完了すると、コンティニュアスAFタスクが再び起動され、LCD28はスルー画像の表示に戻る。
Thereafter, the
CPU40は、図12〜14に示す撮像タスク、および図15に示すコンティニュアスAFタスクを含む複数のタスクを並列的に実行する。なお、これらのタスクに対応する制御プログラムは、フラッシュメモリ44に記憶される。
The
図12を参照して、ステップS1では動画取り込み処理を開始し、ステップS3ではコンティニュアスAFタスクを起動する。ステップS5では動作モードがサイズ測定モードか否かを判別し、判別結果がNOであればステップS9に進む一方、YESであればステップS7で、ガイドラインGLをスルー画像に重ねてLCDモニタ28に表示させる。
Referring to FIG. 12, the moving image capturing process is started in step S1, and the continuous AF task is activated in step S3. In step S5, it is determined whether or not the operation mode is the size measurement mode. If the determination result is NO, the process proceeds to step S9. If YES, the guideline GL is superimposed on the through image and displayed on the
ステップS9ではシャッタボタン38sが半押しされた否かを判別し、判別結果がNOである限り、ステップS11で簡易AE処理を繰り返し実行する。スルー画像の明るさは、簡易AE処理によって適度に調整される。
In step S9, it is determined whether or not the
判別結果がNOからYESに更新されると、ステップS13ではコンティニュアスAFタスクを停止する。ステップS15では厳格AE処理を実行し、ステップS17ではAF処理を実行する。厳格AE処理およびAF処理の結果、スルー画像の明るさおよびフォーカスが厳格に調整される。 When the determination result is updated from NO to YES, the continuous AF task is stopped in step S13. In step S15, strict AE processing is executed, and in step S17, AF processing is executed. As a result of the strict AE process and the AF process, the brightness and focus of the through image are strictly adjusted.
ステップS19ではシャッタボタン38sが全押しされた否かを判別し、判別結果がNOであればステップS21に進み、YESであればステップS23に進む。
In step S19, it is determined whether or not the
ステップS21ではシャッタボタン38sが解除されたか否かを判別し、判別結果がYESであればステップS3に戻り、NOであればステップS19に戻る。
In step S21, it is determined whether or not the
ステップS23では静止画取り込み処理を実行し、シャッタボタン38sが全押しされた時点の被写界を表す画像データが、SDRAM24に形成されたワークエリアに退避される。
In step S23, a still image capturing process is executed, and the image data representing the object scene at the time when the
ステップS25では動作モードがサイズ測定モードか否かを判別し、判別結果がNOであればステップS29に進み、YESであればステップS33に進む。 In step S25, it is determined whether or not the operation mode is the size measurement mode. If the determination result is NO, the process proceeds to step S29, and if YES, the process proceeds to step S33.
ステップS29ではSDRAM24のワークエリアに退避された画像データをメモリ制御回路22を通して読み出し、ステップS31では読み出した画像データをファイル形式で記録媒体32に記録する。記録処理の完了後、ステップS3に戻る。
In step S29, the image data saved in the work area of the
ステップS33ではガイドラインGLのLCDモニタ28への表示を停止させ、ステップS35で基準物体検出回路36を起動させる。
In step S33, display of the guide line GL on the
ステップS37では基準物体検出回路36から返送された探索終了通知に応答して基準物体STDの探索に成功したか否かを判別する。判別結果がYESであればステップS41に進む一方、NOであればステップS39で物体の水平サイズの算出が不能である旨を操作者に向けて報知し、その後にステップS3に戻る。
In step S37, in response to the search end notification returned from the reference
ステップS41では撮像面に現れた基準物体STDの円形部分の直径に相当する画素数NP_stdを測定する。 In step S41, the number of pixels NP_std corresponding to the diameter of the circular portion of the reference object STD appearing on the imaging surface is measured.
ステップS43では、基準物体STDの基準サイズSZ_std、撮像面に現れた基準物体STDの円形部分の直径に相当する画素数NP_std、およびカーソルCS1およびCS2の間の画素数NP_csを用いて仮想投影画像VCS1とVCS2との間の距離SZ_vgを算出し、物体の水平サイズSZ_objを測定する。
In step S43, the virtual projection image VCS1 is obtained using the reference size SZ_std of the reference object STD, the number of pixels NP_std corresponding to the diameter of the circular portion of the reference object STD appearing on the imaging surface, and the number of pixels NP_cs between the cursors CS1 and CS2. And the distance SZ_vg between the VCS2 and the
ステップS45では、測定した物体の水平サイズSZ_objを示す指標を、SDRAM24から読み出した被写界を表す画像に重ねて、LCDモニタ28に表示させる。
In step S <b> 45, an index indicating the measured horizontal size SZ_obj of the object is displayed on the
ステップS47ではステップS23でワークエリアに退避された画像データをメモリ制御回路22を通して読み出す。ステップS49では、読み出した画像データに係る画像と物体の水平サイズSZ_objを示す指標の表示とを合成して、記録用画像データを作成する。
In step S47, the image data saved in the work area in step S23 is read through the
ステップS51ではステップS49で作成された記録用画像データをファイル形式で記録媒体32に記録する。記録処理が完了すると、その後にステップS3に戻る。
In step S51, the recording image data created in step S49 is recorded on the
図15を参照して、ステップS61では垂直同期信号Vsyncが発生したか否かを判別する。判別結果がNOからYESに更新されると、AF起動条件が満足されるか否かをステップS63で判別する。ここでNOであればそのままステップS51に戻る一方、YESであればステップS65でスルー画像用AF処理を実行してからステップS61に戻る。 Referring to FIG. 15, in step S61, it is determined whether or not the vertical synchronization signal Vsync is generated. If the determination result is updated from NO to YES, it is determined in step S63 whether or not the AF activation condition is satisfied. If “NO” here, the process directly returns to the step S51 while if “YES”, the through image AF process is executed in a step S65, and then, the process returns to the step S61.
以上の説明から分かるように、イメージセンサ16は、被写界を捉える撮像面を有し、被写界像を出力する。LCDドライバ26およびLCDモニタ28は、イメージセンサ16から出力された被写界像をモニタ画面に表示する。基準物体検出回路36は、既定方向において第1既定サイズを有する基準物体を表す物体像をイメージセンサ16から出力された被写界像から探索する(S35, S37)。CPU40は、基準物体検出回路36によって発見された物体像のサイズを基準サイズとして測定する(S41)。グラフィックジェネレータ34は、既定方向において第2既定サイズを定義する基準画像を基準物体検出回路36の探索処理に関連してモニタ画面に表示する(S7)。CPU40は、グラフィックジェネレータ34によって表示された基準画像を基準物体の位置で光軸に直交する平面に仮想的に投影した仮想投影画像のサイズを基準サイズと第1既定サイズと第2既定サイズとに基づいて算出する(S43)。
As can be seen from the above description, the
既定方向における所望の物体のサイズは、基準物体と所望の物体とを被写界に配置し、かつ所望の物体を表す物体像の既定方向におけるサイズが第2既定サイズと一致するように光軸方向における撮像面の位置或いはズーム倍率を調整することで算出される。これによって、所望の物体のサイズを簡便に測定することができる。 The size of the desired object in the predetermined direction is such that the reference object and the desired object are arranged in the field, and the size of the object image representing the desired object in the predetermined direction matches the second predetermined size. It is calculated by adjusting the position of the imaging surface in the direction or the zoom magnification. Thereby, the size of a desired object can be easily measured.
なお、この実施例では、物体の水平サイズSZ_objを示す指標を、SDRAM24から読み出した被写界を表す画像に重ねて、LCDモニタ28に表示させるようにした。この際、指標は、基準物体STDの白色の円形部分に重ねて表示させるようにした。しかし、被写界を表す画像から基準物体STDの物体像を削除した画像を作成し、作成した画像に重ねて指標を表示するようにしてもよい(図16参照)。
In this embodiment, the index indicating the horizontal size SZ_obj of the object is displayed on the
例えば、基準物体STDの物体像の画素に代えてその周辺の画素を4方向から折り返すように複製し、つなぎ目部分にぼかし処理を施すことによって、基準物体STDの物体像を画像から削除できる。また、モーフィング等の手法を用いてもよい。 For example, the object image of the reference object STD can be deleted from the image by duplicating the surrounding pixels from four directions instead of the pixel of the object image of the reference object STD and performing blurring processing on the joint portion. A technique such as morphing may be used.
ただし、この場合は、図14に示すステップS45に代えて図17に示すステップS71およびS73の処理を実行する必要がある。 However, in this case, it is necessary to execute steps S71 and S73 shown in FIG. 17 instead of step S45 shown in FIG.
図17を参照して、ステップS71では被写界を表す画像から基準物体STDの物体像を削除した画像を作成する。ステップS73では、測定した物体の水平サイズSZ_objを示す指標を、ステップS71で作成した画像に重ねて、LCDモニタ28に表示させる。
Referring to FIG. 17, in step S71, an image is created by deleting the object image of reference object STD from the image representing the object scene. In step S73, an index indicating the measured horizontal size SZ_obj of the object is superimposed on the image created in step S71 and displayed on the
また、この実施例では、測定した物体のサイズを示す指標と元画像とを合成した画像データを作成して、それを記録するようにした。しかし、ファイルに格納される画像データには元画像をそのまま使用し、ファイルのヘッダに物体のサイズを記述するようにしてもよい。この場合、画像の再生時には、ヘッダを読み取ることによって物体のサイズを示す指標を表示させることができる。 Further, in this embodiment, image data obtained by combining an index indicating the measured object size and the original image is created and recorded. However, the original image may be used as it is for the image data stored in the file, and the size of the object may be described in the file header. In this case, when the image is reproduced, an index indicating the size of the object can be displayed by reading the header.
ただし、この場合は、図14に示すステップS49およびS51に代えて図18に示すステップS81およびS83の処理を実行する必要がある。 However, in this case, it is necessary to execute steps S81 and S83 shown in FIG. 18 instead of steps S49 and S51 shown in FIG.
図18を参照して、ステップS81ではステップS47で読み出された画像データをファイル形式で記録媒体32に記録する。ステップS83ではステップS43で測定された物体の水平サイズSZ_objを同じファイルのヘッダに記録する。記録処理の完了後、ステップS3に戻る。
Referring to FIG. 18, in step S81, the image data read in step S47 is recorded on the
また、この実施例では、基準物体STDは、黒色の正方形の内部に白色の円形部分を配した模様が施されているものとした。しかし、黒色の部分と白色の部分とを入れ替えて、白色の正方形の内部に黒色の円形部分を配した模様が施されているものであってもよい。この場合、輝度信号の最大値と最大値との間の画素数を測定することにより、円形部分の直径を示す画素数NP_stdが検出される。 In this embodiment, the reference object STD is provided with a pattern in which a white circular portion is arranged inside a black square. However, the black part may be replaced with the white part, and a pattern in which a black circular part is arranged inside a white square may be applied. In this case, the number of pixels NP_std indicating the diameter of the circular portion is detected by measuring the number of pixels between the maximum value of the luminance signal.
また、この実施例では、所望の物体の水平方向のサイズを測定するようにした。しかし、垂直方向のサイズを測定するようにしてもよい。この場合、カーソルCS1およびCS2について、各々を水平線分で構成し、画面の上下に互いに平行となるように各々表示すればよい。 In this embodiment, the horizontal size of a desired object is measured. However, the vertical size may be measured. In this case, each of the cursors CS1 and CS2 may be constituted by a horizontal line segment and displayed so as to be parallel to each other above and below the screen.
また、この実施例では、被写界を表す画像に重ねて、測定した物体のサイズを表示および記録するようにした。しかし、それに加えて、操作者の指定によって、サイズ以外の情報を表示および記録するようにしてもよい。例えば、物体が魚である場合は、魚の種類、釣った日付、および釣った場所等を表示および記録するようにしてもよい。 In this embodiment, the size of the measured object is displayed and recorded on the image representing the object scene. However, in addition to this, information other than the size may be displayed and recorded according to the designation of the operator. For example, when the object is a fish, the type of fish, the date of fishing, the location of fishing, and the like may be displayed and recorded.
また、この実施例で用いた基準物体STDは、カード状の紙からなり、操作者がWebサイト等のデータに基づいてプリントアウトすることを想定している。しかし、プラスチック等の他の材質を用いてもよいし、ディジタルカメラの販売時に付属品として添付するようにしてもよい。また、釣具店等で販売するようにしてもよい。 The reference object STD used in this embodiment is made of card-like paper, and it is assumed that the operator prints out based on data such as a website. However, other materials such as plastic may be used, or they may be attached as accessories when the digital camera is sold. Moreover, you may make it sell at a fishing tackle store etc.
10 … ディジタルカメラ
16 … イメージセンサ
26 … LCDドライバ
28 … LCDモニタ
30 … I/F
32 … 記録媒体
34 … グラフィックジェネレータ
36 … 基準物体検出回路
40 … CPU
DESCRIPTION OF
32 ... Recording
Claims (9)
前記撮像手段から出力された被写界像をモニタ画面に表示する第1表示手段、
既定方向において第1既定サイズを有する基準物体を表す物体像を前記撮像手段から出力された被写界像から探索する探索手段、
前記探索手段によって発見された物体像のサイズを基準サイズとして測定する第1測定手段、
既定方向において第2既定サイズを定義する基準画像を前記探索手段の探索処理に関連して前記モニタ画面に表示する第2表示手段、および
前記第2表示手段によって表示された基準画像を前記基準物体の位置で光軸に直交する平面に仮想的に投影した仮想投影画像のサイズを前記基準サイズと前記第1既定サイズと前記第2既定サイズとに基づいて算出する算出手段を備える、電子カメラ。 An imaging means having an imaging surface for capturing an object scene and outputting an object scene image;
First display means for displaying an object scene image output from the imaging means on a monitor screen;
Search means for searching an object image representing a reference object having a first predetermined size in a predetermined direction from an object scene image output from the imaging means;
First measurement means for measuring the size of the object image found by the search means as a reference size;
A second display means for displaying a reference image defining a second predetermined size in a predetermined direction on the monitor screen in association with a search process of the search means; and a reference image displayed by the second display means as the reference object. An electronic camera comprising: calculation means for calculating a size of a virtual projection image virtually projected onto a plane orthogonal to the optical axis at a position based on the reference size, the first default size, and the second default size.
前記第3表示手段は前記削除手段の削除処理に関連して前記指標を表示する、請求項2記載の電子カメラ。 A deletion unit that deletes an object image representing the reference object from the object scene image;
The electronic camera according to claim 2, wherein the third display unit displays the index in association with the deletion process of the deletion unit.
前記記録手段は前記作成手段によって作成された画像に基づいた画像データを記録媒体に記録する、請求項4記載の電子カメラ。 A creation means for creating an image obtained by combining the object scene image and the index indicating the size;
The electronic camera according to claim 4, wherein the recording unit records image data based on the image created by the creating unit on a recording medium.
前記第1既定サイズは前記模様の大きさであって、
前記第1測定手段は前記被写界像に現れた前記模様の輝度を評価して前記模様の大きさを算出することにより前記基準サイズを測定する、請求項1ないし6のいずれかに記載の電子カメラ。 The reference object is an object with an achromatic pattern,
The first predetermined size is the size of the pattern,
The said 1st measurement means measures the said reference | standard size by calculating the magnitude | size of the said pattern by evaluating the brightness | luminance of the said pattern which appeared in the said object scene image. Electronic camera.
前記撮像手段から出力された被写界像をモニタ画面に表示する第1表示ステップ、
既定方向において第1既定サイズを有する基準物体を表す物体像を前記撮像手段から出力された被写界像から探索する探索ステップ、
前記探索ステップによって発見された物体像のサイズを基準サイズとして測定する第1測定ステップ、
既定方向において第2既定サイズを定義する基準画像を前記探索ステップの探索処理に関連して前記モニタ画面に表示する第2表示ステップ、および
前記第2表示ステップによって表示された基準画像を前記基準物体の位置で光軸に直交する平面に仮想的に投影した仮想投影画像のサイズを前記基準サイズと前記第1既定サイズと前記第2既定サイズとに基づいて算出する算出ステップを実行させるための、サイズ測定プログラム。 In the processor of an electronic camera equipped with an imaging means for repeatedly outputting the object scene image generated on the imaging surface that captures the object scene,
A first display step of displaying an object scene image output from the imaging means on a monitor screen;
A search step of searching for an object image representing a reference object having a first predetermined size in a predetermined direction from an object scene image output from the imaging means;
A first measuring step of measuring, as a reference size, the size of the object image found by the searching step;
A second display step of displaying a reference image defining a second predetermined size in a predetermined direction on the monitor screen in association with the search process of the search step; and the reference image displayed by the second display step as the reference object For executing a calculation step of calculating a size of a virtual projection image virtually projected onto a plane orthogonal to the optical axis at the position based on the reference size, the first default size, and the second default size, Size measurement program.
前記撮像手段から出力された被写界像をモニタ画面に表示する第1表示ステップ、
既定方向において第1既定サイズを有する基準物体を表す物体像を前記撮像手段から出力された被写界像から探索する探索ステップ、
前記探索ステップによって発見された物体像のサイズを基準サイズとして測定する第1測定ステップ、
既定方向において第2既定サイズを定義する基準画像を前記探索ステップの探索処理に関連して前記モニタ画面に表示する第2表示ステップ、および
前記第2表示ステップによって表示された基準画像を前記基準物体の位置で光軸に直交する平面に仮想的に投影した仮想投影画像のサイズを前記基準サイズと前記第1既定サイズと前記第2既定サイズとに基づいて算出する算出ステップを備える、サイズ測定方法。 A size measurement method executed by an electronic camera including an imaging unit that repeatedly outputs an object scene image generated on an imaging surface that captures an object scene,
A first display step of displaying an object scene image output from the imaging means on a monitor screen;
A search step of searching for an object image representing a reference object having a first predetermined size in a predetermined direction from an object scene image output from the imaging means;
A first measuring step of measuring, as a reference size, the size of the object image found by the searching step;
A second display step of displaying a reference image defining a second predetermined size in a predetermined direction on the monitor screen in association with the search process of the search step; and the reference image displayed by the second display step as the reference object A size measuring method comprising: calculating a size of a virtual projection image virtually projected onto a plane orthogonal to the optical axis at a position based on the reference size, the first default size, and the second default size .
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2010089335A JP5441799B2 (en) | 2010-04-08 | 2010-04-08 | Electronic camera |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2010089335A JP5441799B2 (en) | 2010-04-08 | 2010-04-08 | Electronic camera |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2011220797A JP2011220797A (en) | 2011-11-04 |
JP5441799B2 true JP5441799B2 (en) | 2014-03-12 |
Family
ID=45037977
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2010089335A Expired - Fee Related JP5441799B2 (en) | 2010-04-08 | 2010-04-08 | Electronic camera |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP5441799B2 (en) |
Families Citing this family (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP5884260B2 (en) * | 2010-09-29 | 2016-03-15 | カシオ計算機株式会社 | Image processing apparatus, image processing method, and program |
WO2013099271A1 (en) * | 2011-12-28 | 2013-07-04 | 山田電器工業株式会社 | Dimension measuring method, electronic device with camera, and program for electronic device with camera |
US9928611B2 (en) | 2016-05-10 | 2018-03-27 | Navico Holding As | Systems and associated methods for measuring the length of a fish |
US10275901B2 (en) * | 2016-05-10 | 2019-04-30 | Navico Holding As | Systems and associated methods for measuring the length of a fish |
EP3791130A4 (en) | 2018-05-09 | 2022-01-19 | 3M Innovative Properties Company | Determining dimensions for providing a precut window film |
CN113822104B (en) * | 2020-07-07 | 2023-11-03 | 湖北亿立能科技股份有限公司 | Artificial intelligence surface of water detecting system based on virtual scale of many candidates |
Family Cites Families (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH03114005U (en) * | 1990-03-07 | 1991-11-22 | ||
JPH0510721A (en) * | 1991-07-05 | 1993-01-19 | Iseki Tory Tech Inc | Target distance correcting method and target and distance correcting apparatus and drilling apparatus using distance correcting apparatus |
JP2531488B2 (en) * | 1993-08-10 | 1996-09-04 | 株式会社機動技研 | In-pipe measurement method |
JP3627249B2 (en) * | 1993-12-15 | 2005-03-09 | 松下電工株式会社 | Image processing device |
JPH09159413A (en) * | 1995-12-12 | 1997-06-20 | Olympus Optical Co Ltd | Image processor and modeling unit |
JP2003156311A (en) * | 2001-11-20 | 2003-05-30 | Sumitomo Heavy Ind Ltd | Method and apparatus for detection and registration of alignment mark |
JP2008014940A (en) * | 2006-06-08 | 2008-01-24 | Fast:Kk | Camera calibration method for camera measurement of planar subject and measuring device applying same |
-
2010
- 2010-04-08 JP JP2010089335A patent/JP5441799B2/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
JP2011220797A (en) | 2011-11-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP6116486B2 (en) | Dimension measurement method | |
JP5441799B2 (en) | Electronic camera | |
US20110181751A1 (en) | Imaging apparatus and imaging method | |
US20100111441A1 (en) | Methods, components, arrangements, and computer program products for handling images | |
CN103024265B (en) | The image capture method of camera head and camera head | |
TW201743602A (en) | Image processing device, image processing method, non-transitory computer readable recording medium and photographing assist equipment | |
JP5106142B2 (en) | Electronic camera | |
JP2011244046A (en) | Imaging apparatus, image processing method, and program storage medium | |
US20170111574A1 (en) | Imaging apparatus and imaging method | |
JP2009141475A (en) | Camera | |
JP2011176386A (en) | Imaging apparatus, image display device and image display program | |
US20050251741A1 (en) | Methods and apparatus for capturing images | |
JP2007110262A (en) | Software for image appreciation and image storage device | |
JP2011227692A (en) | Size measurement device | |
JP2005323015A (en) | Digital camera | |
JP2008288797A (en) | Imaging apparatus | |
JP5104645B2 (en) | Digital camera | |
JP2013258583A (en) | Captured image display, captured image display method, and program | |
US20100060750A1 (en) | Image processing apparatus, imaging apparatus, image processing method and computer program product for the same | |
JP3837882B2 (en) | Captured image management apparatus and program recording medium thereof | |
JP2004112550A (en) | Imaging apparatus, camera, program, and recording medium | |
JP5316083B2 (en) | camera | |
JP2007259004A (en) | Digital camera, image processor, and image processing program | |
JP2012151527A (en) | Electronic camera | |
JP2013174719A (en) | Image display device, camera, and image display program |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20130312 |
|
A711 | Notification of change in applicant |
Free format text: JAPANESE INTERMEDIATE CODE: A711 Effective date: 20130404 |
|
RD03 | Notification of appointment of power of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7423 Effective date: 20130521 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20131112 |
|
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: 20131119 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20131217 |
|
R150 | Certificate of patent or registration of utility model |
Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
LAPS | Cancellation because of no payment of annual fees |