JP3132315U - Image measuring device - Google Patents

Image measuring device Download PDF

Info

Publication number
JP3132315U
JP3132315U JP2007001819U JP2007001819U JP3132315U JP 3132315 U JP3132315 U JP 3132315U JP 2007001819 U JP2007001819 U JP 2007001819U JP 2007001819 U JP2007001819 U JP 2007001819U JP 3132315 U JP3132315 U JP 3132315U
Authority
JP
Japan
Prior art keywords
image
unit
edge detection
detection tool
enlargement
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 - Lifetime
Application number
JP2007001819U
Other languages
Japanese (ja)
Inventor
章平 鵜戸
誠 海江田
浩一 小松
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Mitutoyo Corp
Original Assignee
Mitutoyo Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Mitutoyo Corp filed Critical Mitutoyo Corp
Priority to JP2007001819U priority Critical patent/JP3132315U/en
Application granted granted Critical
Publication of JP3132315U publication Critical patent/JP3132315U/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Images

Abstract

【課題】画像の拡大縮小表示により操作性を悪化させることを抑制した画像測定装置を提供する。
【解決手段】画像測定装置は、表示制御部にて、撮像部において撮像されたワーク画像、及びワーク画像に基づきワークの所定領域のエッジ検出を行うためのエッジ検出ツール画像を表示する。画像測定装置は、第1拡大縮小部にて、エッジ検出ツール画像の線幅を一定の所定幅に保持しつつ、所定の表示領域に合わせるように、エッジ検出ツール画像を拡大及び縮小する(ステップS103、S104)。一方、画像測定装置は、第2拡大縮小部にて、ワーク画像を、所定の表示領域に合わせるように拡大或いは縮小する(ステップS105)。そして、画像測定装置は、合成部にて、第1拡大縮小部にて拡大或いは縮小されたエッジ検出ツール画像、及び第2拡大縮小部にて拡大或いは縮小されたワーク画像を合成する(ステップS106)。
【選択図】図5
An image measuring apparatus that suppresses deterioration of operability due to enlargement / reduction display of an image is provided.
An image measuring apparatus displays a workpiece image captured by an imaging unit and an edge detection tool image for performing edge detection of a predetermined region of the workpiece based on the workpiece image in a display control unit. The image measuring apparatus enlarges and reduces the edge detection tool image in the first enlargement / reduction unit so that the line width of the edge detection tool image is maintained at a predetermined predetermined width, and is adjusted to a predetermined display area (step S103, S104). On the other hand, the image measuring apparatus enlarges or reduces the work image so as to fit a predetermined display area in the second enlargement / reduction unit (step S105). Then, the image measuring device combines the edge detection tool image enlarged or reduced by the first enlargement / reduction unit and the work image enlarged or reduced by the second enlargement / reduction unit by the synthesis unit (step S106). ).
[Selection] Figure 5

Description

本考案は、非接触三次元測定機等の画像測定装置に関する。   The present invention relates to an image measuring apparatus such as a non-contact three-dimensional measuring machine.

画像測定装置には、通常、カメラにより撮像したワーク画像を表示するビデオウィンドウが存在する。そして、そのウィンドウ内に画像上のエッジ検出を行うための各種エッジ検出ツール画像を描画し、画像計測を行うことが一般的になされている(例えば、特許文献1、2参照)。   The image measuring apparatus usually has a video window for displaying a work image captured by a camera. Then, various edge detection tool images for performing edge detection on the image are drawn in the window, and image measurement is generally performed (see, for example, Patent Documents 1 and 2).

従来、ビデオウィンドウに表示される「ワーク画像」と「エッジ検出ツール画像」とのメモリサイズは、同じ画像サイズのデータとして取り扱われる。そして、「ワーク画像」と「エッジ検出ツール画像」とをビデオウィンドウに表示する際には、同じ画像サイズの「ワーク画像」と「エッジ検出ツール画像」とを合成した後、表示される。このような表示形式が、一般的である。   Conventionally, the memory sizes of the “work image” and the “edge detection tool image” displayed in the video window are handled as data having the same image size. When displaying the “work image” and the “edge detection tool image” on the video window, the “work image” and the “edge detection tool image” having the same image size are combined and displayed. Such a display format is common.

近年、撮像装置の画素数増加に伴い、「ワーク画像」の画像データサイズも高まっている。例えば、撮像装置がメガピクセルとなり、データサイズは、Quad−VGAサイズ(1280×960)又は、それ以上となっている。   In recent years, the image data size of the “work image” is also increasing with the increase in the number of pixels of the imaging device. For example, the imaging device is a megapixel, and the data size is Quad-VGA size (1280 × 960) or larger.

そして、このような高画素数の撮像装置を使用する場合、「エッジ検出ツール画像」を「ワーク画像」のサイズへ拡大し、拡大された「エッジ検出ツール画像」と「ワーク画像」とを合成後、ビデオウィンドウへ表示する処理が行われる。ビデオウィンドウに対してディジタルズーム処理を行う場合には、合成後の画像の拡大・縮小処理を行い、全体画像の表示や測定対象部分の画像のみ拡大表示するという処理が行われる。
特開平11−201738号公報 特開2001−319219号公報
When using an imaging device with such a high pixel count, the “edge detection tool image” is enlarged to the size of the “work image”, and the enlarged “edge detection tool image” and “work image” are combined. Thereafter, a process for displaying on the video window is performed. When digital zoom processing is performed on the video window, enlargement / reduction processing of the combined image is performed, and processing for displaying the entire image or displaying only the image of the measurement target portion is performed.
JP-A-11-201738 JP 2001-319219 A

しかしながら、ビデオウィンドウ表示される画像に対してディジタルズームを行う場合、「エッジ検出ツール画像」と「ワーク画像」とを合成した後の画像データに対して、拡大・縮小処理を行っている為、ビデオウィンドウに表示される測定用ツールの描画線幅が、ズーム倍率によって変更されてしまう。   However, when performing digital zoom on the image displayed in the video window, because the enlargement / reduction processing is performed on the image data after combining the “edge detection tool image” and the “work image”, The drawing line width of the measurement tool displayed in the video window is changed depending on the zoom magnification.

つまり、ユーザが測定を行う際に、ビデオウィンドウに表示されるワーク撮像画面の測定対象部分をディジタルズームにて拡大表示させてエッジ検出ツールを表示させる場合には、拡大表示させていくに従って、エッジ検出ツール画像の線幅が太くなってしまう。   In other words, when the user performs measurement, when the edge detection tool is displayed by enlarging the measurement target portion of the workpiece imaging screen displayed in the video window with the digital zoom, The line width of the detection tool image becomes thick.

この場合、見栄えが悪いばかりでなく、ワークのエッジ部分へエッジ検出ツール画像を配置する操作が困難となる問題が生じる。   In this case, there is a problem that not only the appearance is bad, but also the operation of arranging the edge detection tool image on the edge portion of the work becomes difficult.

本考案は、このような問題に鑑みてなされたものであって、画像の拡大縮小表示により操作性を悪化させることを抑制した画像測定装置を提供することを目的とする。   The present invention has been made in view of such problems, and an object of the present invention is to provide an image measurement apparatus that suppresses deterioration of operability due to enlargement / reduction display of an image.

上記の目的の達成のため、本考案に係る画像測定装置は、ワークを撮像する撮像部と、当該撮像部にて撮像された前記ワーク画像、及び当該ワーク画像に基づき前記ワークの所定領域のエッジ検出を行うためのエッジ検出ツール画像を表示部に表示する表示制御部と、前記エッジ検出ツール画像の線幅を一定の所定幅に保持しつつ、前記エッジ検出ツール画像を所定の倍率で拡大及び縮小する第1拡大縮小部と、前記ワーク画像を、前記所定の倍率で拡大或いは縮小する第2拡大縮小部と、前記第1拡大縮小部にて拡大或いは縮小されたエッジ検出ツール画像、及び前記第2拡大縮小部にて拡大或いは縮小されたワーク画像を合成する合成部とを備え、前記表示制御部は、前記合成部にて合成した画像を前記表示部に表示することを特徴とする。   To achieve the above object, an image measuring apparatus according to the present invention includes an imaging unit that images a workpiece, the workpiece image captured by the imaging unit, and an edge of a predetermined region of the workpiece based on the workpiece image A display control unit for displaying an edge detection tool image for detection on a display unit; and the edge detection tool image is enlarged and enlarged at a predetermined magnification while maintaining a line width of the edge detection tool image at a predetermined predetermined width. A first enlargement / reduction unit to reduce, a second enlargement / reduction unit to enlarge or reduce the work image at the predetermined magnification, an edge detection tool image enlarged or reduced by the first enlargement / reduction unit, and And a synthesis unit that synthesizes the work image enlarged or reduced by the second enlargement / reduction unit, and the display control unit displays the image synthesized by the synthesis unit on the display unit. .

上記構成により、本考案に係る画像測定装置は、第1拡大縮小部にて線幅を一定の所定幅に保持しつつエッジ検出ツール画像を所定の倍率で拡大或いは縮小し、第2拡大縮小部にてワーク画像を所定の倍率に拡大或いは縮小し、合成部にて各々拡大或いは縮小されたエッジ検出ツール画像とワーク画像とを合成する。つまり、エッジ検出ツール画像が拡大或いは縮小された場合であっても、その線幅は、常に一定に保持される。よって、ユーザは、ワークエッジ部分へエッジ検出ツール画像を配置する操作を容易に行うことができる。   With the above configuration, the image measuring apparatus according to the present invention enlarges or reduces the edge detection tool image at a predetermined magnification while maintaining the line width at a predetermined predetermined width in the first enlargement / reduction unit, and the second enlargement / reduction unit The work image is enlarged or reduced to a predetermined magnification at, and the edge detection tool image and the work image which are respectively enlarged or reduced by the synthesis unit are synthesized. That is, even when the edge detection tool image is enlarged or reduced, the line width is always kept constant. Therefore, the user can easily perform an operation of arranging the edge detection tool image on the work edge portion.

また、表示部に表示される前記ワーク画像、及び前記エッジ検出ツール画像の特定領域の指定を受け付ける特定領域受付部を備え、前記第1拡大縮小部は、前記特定領域内の前記エッジ検出ツール画像を拡大或いは縮小し、前記第2拡大縮小部は、前記特定領域内の前記ワーク画像を拡大或いは縮小する構成としてもよい。   In addition, the work image displayed on the display unit and a specific region receiving unit that receives specification of a specific region of the edge detection tool image, the first enlargement / reduction unit includes the edge detection tool image in the specific region The second enlargement / reduction unit may enlarge or reduce the work image in the specific area.

また、前記第1拡大縮小部は、前記エッジ検出ツール画像の描画データを座標変換する座標変換部と、当該座標変換部にて座標変換された前記描画データに基づいて線幅を前記一定の所定幅に保持したエッジ検出ツール画像を生成するエッジ検出ツール画像生成部とを備える構成としてもよい。   In addition, the first enlargement / reduction unit includes a coordinate conversion unit that converts the drawing data of the edge detection tool image, and a line width based on the drawing data coordinate-converted by the coordinate conversion unit. It is good also as a structure provided with the edge detection tool image generation part which produces | generates the edge detection tool image hold | maintained at the width | variety.

本考案によれば、画像の拡大縮小表示により操作性を悪化させることを抑制した画像測定装置を提供することができる。   According to the present invention, it is possible to provide an image measurement device that suppresses deterioration of operability due to enlargement / reduction display of an image.

以下、添付図面を参照して本考案に係る画像測定装置の好ましい一実施形態について説明する、図1は、本実施の形態に係る画像測定装置の全体構成を示す斜視図である。この画像測定装置は、非接触型の測定機本体1と、この測定機本体1を駆動制御すると共に、必要なデータ処理を実行するコンピュータシステム2と、計測結果をプリントアウトするプリンタ3とにより構成されている。   Hereinafter, a preferred embodiment of an image measuring apparatus according to the present invention will be described with reference to the accompanying drawings. FIG. 1 is a perspective view showing an overall configuration of the image measuring apparatus according to the present embodiment. This image measuring apparatus includes a non-contact type measuring machine main body 1, a computer system 2 that drives and controls the measuring machine main body 1 and executes necessary data processing, and a printer 3 that prints out measurement results. Has been.

測定機本体1は、次のように構成されている。即ち、架台11上には、ワーク12を載置する測定テーブル13が装着されており、この測定テーブル13は、図示しないY軸駆動機構によってY軸方向に駆動される。架台11の両側縁中央部には上方に延びる支持アーム14、15が固定されており、この支持アーム14、15の両上端部を連結するようにX軸ガイド16が固定されている。このX軸ガイド16には、撮像ユニット17が支持されている。撮像ユニット17は、図示しないX軸駆動機構によってX軸ガイド16に沿って駆動される。撮像ユニット17の下端部には、CCDカメラ18が測定テーブル13と対向するように装着されている。また、撮像ユニット17の内部には、図示しない照明装置及びフォーカシング機構の他、CCDカメラ18のZ軸方向の位置を移動させるZ軸駆動機構と、撮影位置でのCCDカメラ18のZ方向の位置を検知する位置センサ19が内蔵されている。   The measuring machine main body 1 is configured as follows. That is, a measurement table 13 on which the workpiece 12 is placed is mounted on the gantry 11, and this measurement table 13 is driven in the Y-axis direction by a Y-axis drive mechanism (not shown). Support arms 14 and 15 extending upward are fixed to the center of both side edges of the gantry 11, and an X-axis guide 16 is fixed so as to connect both upper ends of the support arms 14 and 15. An imaging unit 17 is supported on the X-axis guide 16. The imaging unit 17 is driven along the X-axis guide 16 by an X-axis drive mechanism (not shown). A CCD camera 18 is mounted on the lower end of the imaging unit 17 so as to face the measurement table 13. Further, in the imaging unit 17, in addition to a lighting device and a focusing mechanism (not shown), a Z-axis drive mechanism that moves the position of the CCD camera 18 in the Z-axis direction, and a position of the CCD camera 18 in the Z-direction at the shooting position A position sensor 19 for detecting is incorporated.

コンピュータシステム2は、コンピュータ本体21、キーボード22、ジョイスティックボックス(以下、J/Sと呼ぶ)23、マウス24及びCRT25を備えて構成されている。コンピュータ本体21は、例えば図2に示すように構成されている。即ち、CCDカメラ18から入力されるワーク12の画像情報は、インタフェース(以下、I/Fと呼ぶ)31を介して画像メモリ32に格納される。   The computer system 2 includes a computer main body 21, a keyboard 22, a joystick box (hereinafter referred to as J / S) 23, a mouse 24, and a CRT 25. The computer main body 21 is configured, for example, as shown in FIG. That is, the image information of the workpiece 12 input from the CCD camera 18 is stored in the image memory 32 via the interface (hereinafter referred to as I / F) 31.

また、図示しないCADシステムにより作成されるワーク12のCADデータは、例えば、CADデータによるオフラインティーチングが実行される場合、I/F33を介してCPU35に入力され、CPU35でビットマップの画像情報に展開された後、画像メモリ32に格納される。画像メモリ32に格納された画像情報は、表示制御部36を介してCRT25に表示される。   The CAD data of the work 12 created by a CAD system (not shown) is input to the CPU 35 via the I / F 33 when, for example, offline teaching using CAD data is executed, and is developed into bitmap image information by the CPU 35. Is stored in the image memory 32. The image information stored in the image memory 32 is displayed on the CRT 25 via the display control unit 36.

一方、キーボード22、J/S23、及びマウス24から入力されるコード情報及び位置情報は、I/F34を介してCPU35に入力される。CPU35は、ROM37に格納されたマクロプログラム及びHDD38からI/F39を介してRAM40に格納された測定実行プログラム、測定結果表示プログラム、パートプログラム生成プログラム、パートプログラム等の各種制御プログラムに従って、測定実行処理、パートプログラム作成処理、測定結果の表示処理等を実行する。   On the other hand, code information and position information input from the keyboard 22, J / S 23, and mouse 24 are input to the CPU 35 via the I / F 34. The CPU 35 performs measurement execution processing in accordance with a macro program stored in the ROM 37 and various control programs such as a measurement execution program, a measurement result display program, a part program generation program, and a part program stored in the RAM 40 from the HDD 38 via the I / F 39. Execute part program creation processing, measurement result display processing, and the like.

CPU35は、測定実行処理に従って、I/F41を介して測定機本体1を制御する。HDD38は、CADデータ、測定実行プログラム、測定結果表示プログラム、パートプログラム等の各種制御プログラムを格納する記録媒体である。RAM40は、各種プログラムを格納する他、各種処理のワーク領域を提供する。   The CPU 35 controls the measuring instrument main body 1 via the I / F 41 according to the measurement execution process. The HDD 38 is a recording medium that stores various control programs such as CAD data, a measurement execution program, a measurement result display program, and a part program. The RAM 40 stores various programs and provides a work area for various processes.

図3は、画像測定装置の機能ブロック図である。なお、図3に示される機能は、HDD38等に格納されたプログラムをCPU35によって実行することによって、実現される。   FIG. 3 is a functional block diagram of the image measuring apparatus. Note that the functions shown in FIG. 3 are realized by the CPU 35 executing a program stored in the HDD 38 or the like.

ワーク12の画像は、画像取得部51によって撮影される。画像取得部51は、キーボード22、マウス24などの操作に基づいて、ワーク12の指定された範囲において、CCDカメラ18を駆動させて画像を撮影する。撮影されたワークの画像は、ワーク画像展開部52において、ラスタ画像の形式に変換されて、それぞれ記憶部53に格納される。座標系設定部54は、ワーク画像の座標系と、ワーク12の座標系とを一致させるための座標系設定を行う。図形選択部55は、マウス24の操作に応じて、後述するエッジ検出ツールを配置し、記憶部53に格納されたワーク画像の一部を選択する。測定条件設定部56は、図形選択部55にて選択されたワーク画像に対して、後述するエッジ検出ツール等の種類を含む測定条件を設定する。パートプログラム生成部57は、測定条件設定部56で設定された測定条件に基づいてパートプログラムファイルを生成する。生成されたパートプログラムファイルは、パートプログラム編集部58で適宜編集処理される。生成及び編集されたパートプログラムファイルは、パートプログラム出力部59を介してHDD38等に格納される。   The image of the work 12 is taken by the image acquisition unit 51. The image acquisition unit 51 captures an image by driving the CCD camera 18 within a specified range of the work 12 based on the operation of the keyboard 22 and the mouse 24. The photographed workpiece image is converted into a raster image format by the workpiece image development unit 52 and stored in the storage unit 53. The coordinate system setting unit 54 performs a coordinate system setting for making the coordinate system of the workpiece image coincide with the coordinate system of the workpiece 12. The graphic selection unit 55 arranges an edge detection tool to be described later according to the operation of the mouse 24 and selects a part of the work image stored in the storage unit 53. The measurement condition setting unit 56 sets measurement conditions including types such as an edge detection tool to be described later for the work image selected by the graphic selection unit 55. The part program generation unit 57 generates a part program file based on the measurement conditions set by the measurement condition setting unit 56. The generated part program file is appropriately edited by the part program editing unit 58. The generated and edited part program file is stored in the HDD 38 or the like via the part program output unit 59.

また、上述した図形選択部55、測定条件設定部56、パートプログラム生成部57、パートプログラム編集部58から出力された情報は、表示設定部60にて所定の表示設定が行われ、表示制御部36を介してCRT25に表示される。   In addition, the information output from the graphic selection unit 55, the measurement condition setting unit 56, the part program generation unit 57, and the part program editing unit 58 described above is subjected to predetermined display settings by the display setting unit 60, and the display control unit. 36 is displayed on the CRT 25.

表示設定部36は、特定領域受付部60a、第1拡大縮小部60b、第2拡大縮小部60c、合成部60dを有する。特定領域受付部60aは、CRT25に表示されるワーク画像、及びエッジ検出ツール画像の特定領域の指定を受け付ける。ここで、特定領域とは、画像の拡大、及び縮小表示を行う領域であり、特定領域の指定は、ユーザによるマウス操作等により行われる。第1拡大縮小部60bは、エッジ検出ツール画像の線幅を一定の所定幅に保持しつつ、特定領域内のエッジ検出ツール画像を所定の倍率で拡大或いは縮小する。第2拡大縮小部60cは、所定の倍率(第1拡大縮小部60bと同じ倍率)で、特定領域内のワーク画像を拡大或いは縮小する。合成部60dは、第1拡大縮小部60bにて拡大或いは縮小されたエッジ検出ツール画像と、第2拡大縮小部60cにて拡大或いは縮小されたワーク画像とを合成する。   The display setting unit 36 includes a specific area receiving unit 60a, a first enlargement / reduction unit 60b, a second enlargement / reduction unit 60c, and a composition unit 60d. The specific area receiving unit 60a receives specification of a specific area of the work image displayed on the CRT 25 and the edge detection tool image. Here, the specific area is an area for enlarging and reducing the image, and the specific area is designated by a mouse operation or the like by the user. The first enlargement / reduction unit 60b enlarges or reduces the edge detection tool image in the specific region at a predetermined magnification while maintaining the line width of the edge detection tool image at a constant predetermined width. The second enlargement / reduction unit 60c enlarges or reduces the work image in the specific area at a predetermined magnification (the same magnification as the first enlargement / reduction unit 60b). The composition unit 60d synthesizes the edge detection tool image enlarged or reduced by the first enlargement / reduction unit 60b and the work image enlarged or reduced by the second enlargement / reduction unit 60c.

次に、図4を参照して、画像測定装置において使用されるエッジ検出ツールについて説明する。図4(a)は最もシンプルなツール(以下、シンプルツールと呼ぶ)71で、ワークを撮像して得られる画像情報72の濃度レベルが、矢印の基端から先端の間で急激に変化している点をエッジ点として検出するためのものである。このシンプルツール71は、中点の位置座標(X、Y)と、その長さW1と、角度θとによって定義され、マウス操作により、ワークの画像の任意の箇所に配置可能である。同図(b)は、矩形の箱形のツール(以下、ボックスツールと呼ぶ)73で、直線画像情報72aの検出に適しており、中点の位置座標(X、Y)と、両側の矢印の長さW1と、両側の矢印間の幅H1と、角度θとによって定義される。ボックスツール73の場合、幅Hの中に予め設定された間隔ΔHで、矢印の基端から先端に向かうエッジ検出が繰り返される。同図(c)は、円形のツール(以下、円ツールと呼ぶ)74で、円形画像情報72bの検出に適しており、位置座標(X、Y)と、測定を開始する内径r1と、測定を終了する外径r2によって定義される。円ツール74の場合、予め設定された角度Δθで、座標(X、Y)を中心として回転し、矢印の基端から先端に向かうエッジ検出が繰り返される。また、上記ボックスツール、円ツールの他に、円弧ツール等もある。   Next, an edge detection tool used in the image measurement apparatus will be described with reference to FIG. FIG. 4A shows the simplest tool 71 (hereinafter referred to as a simple tool), in which the density level of image information 72 obtained by imaging a workpiece changes abruptly from the proximal end to the distal end of the arrow. This is for detecting a point as an edge point. The simple tool 71 is defined by the position coordinates (X, Y) of the midpoint, its length W1, and the angle θ, and can be placed at any position on the workpiece image by a mouse operation. FIG. 6B is a rectangular box-shaped tool (hereinafter referred to as a box tool) 73, which is suitable for detecting the straight line image information 72a. The middle point position coordinates (X, Y) and arrows on both sides are shown. Defined by the length W1, the width H1 between the arrows on both sides, and the angle θ. In the case of the box tool 73, edge detection from the base end of the arrow toward the tip is repeated at a preset interval ΔH in the width H. FIG. 5C is a circular tool (hereinafter referred to as a circular tool) 74, which is suitable for detection of circular image information 72b. The position coordinates (X, Y), the inner diameter r1 for starting measurement, and the measurement Defined by the outer diameter r2. In the case of the circular tool 74, it rotates around the coordinates (X, Y) at a preset angle Δθ, and edge detection from the base end of the arrow toward the tip is repeated. In addition to the box tool and the circle tool, there are an arc tool and the like.

次に、図5、及び適宜図6〜図10を参照して、上記のように構成された画像測定装置における画像の拡大・縮小処理について説明する。図5は、画像の拡大・縮小処理を示すフローチャートである。図6〜図10は、エッジ検出ツールを上述した円ツールとした場合の、画像の拡大・縮小処理の具体例を示す。   Next, an image enlargement / reduction process in the image measuring apparatus configured as described above will be described with reference to FIG. 5 and FIGS. 6 to 10 as appropriate. FIG. 5 is a flowchart showing image enlargement / reduction processing. 6 to 10 show specific examples of image enlargement / reduction processing when the edge detection tool is the circular tool described above.

先ず、図形選択部55にて、ユーザによるマウス操作等によるワーク画像上のエッジ検出ツールの配置の指定を受け付ける(ステップS101)。例えばステップS101において、エッジ検出ツールの配置指定を受け付けると、表示制御部36は、図6に示すビデオウィンドウ100をCRT25に表示する。ビデオウィンドウ100には、ワーク画像102、及びエッジ検出ツール画像101が表示される。ここで、ビデオウィンドウ100は、縦方向にHピクセル、横方向にWピクセルを有し、エッジ検出ツール画像101を描画する線の幅は、Tピクセルとする。なお、例えば、H=1280、W=960(Quad−VGA)であり、T=1等である。   First, the figure selection unit 55 accepts designation of the arrangement of the edge detection tool on the work image by a user's mouse operation or the like (step S101). For example, in step S <b> 101, when receiving the designation of the edge detection tool arrangement, the display control unit 36 displays the video window 100 shown in FIG. 6 on the CRT 25. In the video window 100, a work image 102 and an edge detection tool image 101 are displayed. Here, the video window 100 has H pixels in the vertical direction and W pixels in the horizontal direction, and the width of the line for drawing the edge detection tool image 101 is T pixels. For example, H = 1280, W = 960 (Quad-VGA), and T = 1.

次に、特定領域受付部60は、CRT25上に表示する特定領域の指定を受け付ける(ステップS102)。例えばステップS102にて特定領域の指定を受け付けると、表示制御部36は、図7に示すビデオウィンドウ100をCRT25に表示する。ビデオウィンドウ100には、ワーク画像102、及びエッジ検出ツール画像101に加え、特定領域を指定するための特定領域線103a(又は103b、103c)が表示される。ここで、図7(a)は、縦方向にHピクセル、横方向にWピクセルの特定領域線103aを指定した場合を示す。また、図7(b)は、縦方向に1/2Hピクセル、横方向に1/2Wピクセルの特定領域線103bを指定した場合を示す。図7(c)は、縦方向に1/4Hピクセル、横方向に1/4Wピクセルの特定領域線103cを指定した場合を示す。   Next, the specific area receiving unit 60 receives specification of a specific area to be displayed on the CRT 25 (step S102). For example, when the designation of the specific area is accepted in step S102, the display control unit 36 displays the video window 100 shown in FIG. In the video window 100, in addition to the workpiece image 102 and the edge detection tool image 101, a specific area line 103a (or 103b, 103c) for designating a specific area is displayed. Here, FIG. 7A shows a case where a specific area line 103a of H pixels in the vertical direction and W pixels in the horizontal direction is designated. FIG. 7B shows a case where a specific area line 103b of 1 / 2H pixel in the vertical direction and 1 / 2W pixel in the horizontal direction is designated. FIG. 7C shows a case where the specific area line 103c of 1 / 4H pixel in the vertical direction and 1 / 4W pixel in the horizontal direction is designated.

続いて、第1拡大縮小部60bは、特定領域線で囲まれたエッジ検出ツール画像の描画データを所定領域に合わせるように、拡大或いは縮小して座標変換する(ステップS103)。   Subsequently, the first enlargement / reduction unit 60b performs coordinate conversion by enlarging or reducing the drawing data of the edge detection tool image surrounded by the specific area line so as to match the predetermined area (step S103).

上記ステップS103にて座標変換された描画データそのものに基づき生成されるエッジ検出ツール画像の線幅は、座標変換前のエッジ検出ツール画像と比較して太く或いは細く表示されてしまう。そこで、次に、第1拡大縮小部60bは、座標変換前と同じ所定幅の線幅を保持しつつ、座標変換した後の描画データに基づきエッジ検出ツール画像を生成する(ステップS104)。例えばステップS103及びS104において、第1拡大縮小部60bは、図8に示す処理を行う。図8(a)〜(c)は、図7(a)〜(c)に対応するものであり、特定領域線103a(或いは103b、103c)にて囲まれた領域の画像を、高さ1/2Hピクセル、幅1/2Wピクセルの画像に変換する例を示すものである。つまり、図8(a)に示す場合にあっては、特定領域線103aで囲まれた領域のエッジ検出ツール画像101を、1/2倍した画像200aを生成し、図8(b)に示す場合にあっては、特定領域線103bで囲まれた領域のエッジ検出ツール画像101を、等倍した画像200bを生成し、図8(c)に示す場合にあっては、特定領域線103cで囲まれた領域のエッジ検出ツール画像101を、2倍した画像200cを生成する。ただし、図8に示すように、エッジ検出ツール画像は、描画データを座標変換した後に所定の幅を持たして生成されるので、エッジ検出ツール画像を拡大縮小表示した場合であっても、その前後におけるエッジ検出ツール画像の線幅は、一定のTピクセルに保持される。   The line width of the edge detection tool image generated based on the drawing data itself subjected to coordinate conversion in step S103 is displayed thicker or thinner than the edge detection tool image before coordinate conversion. Therefore, next, the first enlargement / reduction unit 60b generates an edge detection tool image based on the drawing data after the coordinate conversion while maintaining the same predetermined line width as before the coordinate conversion (step S104). For example, in steps S103 and S104, the first enlargement / reduction unit 60b performs the process shown in FIG. FIGS. 8A to 8C correspond to FIGS. 7A to 7C. An image of an area surrounded by the specific area line 103a (or 103b, 103c) is represented by height 1. An example of conversion into an image of / 2H pixels and a width of 1/2 W pixels is shown. That is, in the case shown in FIG. 8A, an image 200a obtained by halving the edge detection tool image 101 in the region surrounded by the specific region line 103a is generated and shown in FIG. 8B. In that case, an image 200b obtained by magnifying the edge detection tool image 101 in the area surrounded by the specific area line 103b is generated, and in the case shown in FIG. 8C, the specific area line 103c is used. An image 200c obtained by doubling the edge detection tool image 101 in the enclosed region is generated. However, as shown in FIG. 8, since the edge detection tool image is generated with a predetermined width after coordinate conversion of the drawing data, even if the edge detection tool image is enlarged and reduced, The line width of the edge detection tool image before and after is held at a constant T pixel.

次に、第2拡大縮小部60cは、特定領域線で囲まれたワーク画像を拡大/縮小する(ステップS105)。例えばステップS105において、第2拡大縮小部60cは、図9に示す処理を行う。図9(a)〜(c)は、図7(a)〜(c)に対応するものであり、特定領域線103a(或いは103b、103c)にて囲まれた領域の画像を、高さ1/2Hピクセル、幅1/2Wピクセルの画像に変換する例を示すものである。つまり、図9(a)に示す場合にあっては、特定領域線103aで囲まれた領域のワーク画像102を、1/2倍した画像300aを生成し、図9(b)に示す場合にあっては、特定領域線103bで囲まれた領域のワーク画像102を、等倍した画像300bを生成し、図8(c)に示す場合にあっては、特定領域線103cで囲まれた領域のワーク画像102を、2倍した画像300cを生成する。   Next, the second enlargement / reduction unit 60c enlarges / reduces the work image surrounded by the specific area line (step S105). For example, in step S105, the second enlargement / reduction unit 60c performs the process shown in FIG. FIGS. 9A to 9C correspond to FIGS. 7A to 7C, and show an image of a region surrounded by the specific region line 103a (or 103b, 103c) with a height of 1. An example of conversion into an image of / 2H pixels and a width of 1/2 W pixels is shown. That is, in the case shown in FIG. 9A, an image 300a obtained by halving the work image 102 in the area surrounded by the specific area line 103a is generated and shown in FIG. 9B. In this case, an image 300b obtained by sizing the work image 102 in the area surrounded by the specific area line 103b is generated, and in the case shown in FIG. 8C, the area surrounded by the specific area line 103c. An image 300c obtained by doubling the work image 102 is generated.

次に、合成部60dは、ステップS104にて生成されたエッジ検出ツール画像と、ステップS105にて生成されたワーク画像とを画像合成する(ステップS106)。そして、表示制御部36は、ステップ106にて合成した合成画像をビデオウィンドウに表示する(ステップS107)。図10(a)〜(c)は、図8及び図9(a)〜(c)に対応する。例えば、ステップS106及びステップS107において、合成部60dは、図10に示すように、ステップS104にて生成されたエッジ検出ツール画像200a(或いは、200b、200c)とステップS105にて生成されたワーク画像300a(或いは、300b、300c)とを合成し、表示制御部36は、その合成画像をビデオウィンドウ400a(或いは400b、400c)に表示する。   Next, the synthesizing unit 60d synthesizes the edge detection tool image generated in step S104 and the work image generated in step S105 (step S106). Then, the display control unit 36 displays the composite image synthesized in step 106 on the video window (step S107). 10A to 10C correspond to FIGS. 8 and 9A to 9C. For example, in step S106 and step S107, the composition unit 60d, as shown in FIG. 10, the edge detection tool image 200a (or 200b, 200c) generated in step S104 and the work image generated in step S105. 300a (or 300b, 300c) is combined, and the display control unit 36 displays the combined image on the video window 400a (or 400b, 400c).

上記のような画像測定装置の構成及びその処理により、エッジ検出ツール画像を拡大及び縮小した場合であっても、その線幅が変わることはない。よって、拡大表示した場合であっても、エッジ検出ツール画像を配置する際の操作性が悪化することはない。また、エッジ検出ツールを見栄え良く表示することができる。   Even when the edge detection tool image is enlarged and reduced by the configuration and processing of the image measuring apparatus as described above, the line width does not change. Therefore, even when the enlarged display is performed, the operability when the edge detection tool image is arranged does not deteriorate. Further, the edge detection tool can be displayed with good appearance.

本考案の実施の形態に係る画像測定装置の構成を示す斜視図である。It is a perspective view which shows the structure of the image measuring device which concerns on embodiment of this invention. 本考案の実施の形態に係る画像測定装置におけるコンピュータ本体の構成を示すブロック図である。It is a block diagram which shows the structure of the computer main body in the image measuring device which concerns on embodiment of this invention. 本考案の実施の形態に係る画像測定装置の機能ブロック図である。It is a functional block diagram of an image measuring device concerning an embodiment of the invention. エッジ検出ツールの一例を示す図である。It is a figure which shows an example of an edge detection tool. 画像の拡大・縮小処理を示すフローチャートである。It is a flowchart which shows the expansion / reduction process of an image. エッジ検出ツールを円ツールとした、画像の拡大・縮小処理の具体例を示す図である。It is a figure which shows the specific example of the expansion / contraction process of an image which used the edge detection tool as the circle tool. エッジ検出ツールを円ツールとした、画像の拡大・縮小処理の具体例を示す図である。It is a figure which shows the specific example of the expansion / contraction process of an image which used the edge detection tool as the circle tool. エッジ検出ツールを円ツールとした、画像の拡大・縮小処理の具体例を示す図である。It is a figure which shows the specific example of the expansion / contraction process of an image which used the edge detection tool as the circle tool. エッジ検出ツールを円ツールとした、画像の拡大・縮小処理の具体例を示す図である。It is a figure which shows the specific example of the expansion / contraction process of an image which used the edge detection tool as the circle tool. エッジ検出ツールを円ツールとした、画像の拡大・縮小処理の具体例を示す図である。It is a figure which shows the specific example of the expansion / contraction process of an image which used the edge detection tool as the circle tool.

符号の説明Explanation of symbols

1…測定機本体、2…コンピュータシステム、3…プリンタ、11…架台、12…ワーク、13…測定テーブル、14、15…支持アーム、16…X軸ガイド、17…撮像ユニット、18…CCDカメラ、19…位置センサ、21…コンピュータ本体、22…キーボード、23…ジョイスティックボックス、24…マウス、25…CRT、31、33、34、39、41…I/F、32…画像メモリ、35…CPU、36…表示制御部、37…ROM、38…HDD、40…RAM、51…画像取得部、52…ワーク画像展開部、53…記憶部、54…座標系設定部、55…図形選択部、56…測定条件設定部、57…パートプログラム生成部、58…パートプログラム編集部、59…パートプログラム出力部、60…表示設定部、60a…特定領域受付部、60b…第1拡大縮小部、60c…第2拡大縮小部、60d…合成部。   DESCRIPTION OF SYMBOLS 1 ... Measuring machine main body, 2 ... Computer system, 3 ... Printer, 11 ... Mount, 12 ... Workpiece, 13 ... Measurement table, 14, 15 ... Support arm, 16 ... X-axis guide, 17 ... Imaging unit, 18 ... CCD camera , 19 ... Position sensor, 21 ... Computer main body, 22 ... Keyboard, 23 ... Joystick box, 24 ... Mouse, 25 ... CRT, 31, 33, 34, 39, 41 ... I / F, 32 ... Image memory, 35 ... CPU 36 ... Display control unit, 37 ... ROM, 38 ... HDD, 40 ... RAM, 51 ... Image acquisition unit, 52 ... Work image development unit, 53 ... Storage unit, 54 ... Coordinate system setting unit, 55 ... Graphic selection unit, 56 ... Measurement condition setting unit, 57 ... Part program generation unit, 58 ... Part program editing unit, 59 ... Part program output unit, 60 ... Display setting unit, 60a ... Constant region accepting unit, 60b ... first scaling unit, 60c ... second scaling unit, 60d ... synthesis unit.

Claims (3)

ワークを撮像する撮像部と、
当該撮像部にて撮像された前記ワーク画像、及び当該ワーク画像に基づき前記ワークの所定領域のエッジ検出を行うためのエッジ検出ツール画像を表示部に表示する表示制御部と、
前記エッジ検出ツール画像の線幅を一定の所定幅に保持しつつ、前記エッジ検出ツール画像を所定の倍率で拡大及び縮小する第1拡大縮小部と、
前記ワーク画像を、前記所定の倍率で拡大或いは縮小する第2拡大縮小部と、
前記第1拡大縮小部にて拡大或いは縮小されたエッジ検出ツール画像、及び前記第2拡大縮小部にて拡大或いは縮小されたワーク画像を合成する合成部と
を備え、
前記表示制御部は、前記合成部にて合成した画像を前記表示部に表示する
ことを特徴とする画像測定装置。
An imaging unit for imaging a workpiece;
A display control unit that displays on the display unit the work image captured by the imaging unit, and an edge detection tool image for performing edge detection of a predetermined region of the work based on the work image;
A first enlargement / reduction unit that enlarges and reduces the edge detection tool image at a predetermined magnification while maintaining a line width of the edge detection tool image at a constant predetermined width;
A second enlargement / reduction unit that enlarges or reduces the work image at the predetermined magnification;
An edge detection tool image enlarged or reduced by the first enlargement / reduction unit, and a synthesis unit for synthesizing the work image enlarged or reduced by the second enlargement / reduction unit,
The display control unit displays an image synthesized by the synthesis unit on the display unit.
当該表示部に表示される前記ワーク画像、及び前記エッジ検出ツール画像の特定領域の指定を受け付ける特定領域受付部を備え、
前記第1拡大縮小部は、前記特定領域内の前記エッジ検出ツール画像を拡大或いは縮小し、前記第2拡大縮小部は、前記特定領域内の前記ワーク画像を拡大或いは縮小する
ことを特徴とする請求項1記載の画像測定装置。
A specific area receiving unit that receives specification of a specific area of the work image displayed on the display unit and the edge detection tool image;
The first enlargement / reduction unit enlarges or reduces the edge detection tool image in the specific region, and the second enlargement / reduction unit enlarges or reduces the work image in the specific region. The image measurement apparatus according to claim 1.
前記第1拡大縮小部は、
前記エッジ検出ツール画像の描画データを座標変換する座標変換部と、
当該座標変換部にて座標変換された前記描画データに基づいて線幅を前記一定の所定幅に保持したエッジ検出ツール画像を生成するエッジ検出ツール画像生成部と
を備えることを特徴とする請求項1又は請求項2記載の画像測定装置。
The first enlargement / reduction unit includes:
A coordinate conversion unit for converting the drawing data of the edge detection tool image;
An edge detection tool image generation unit configured to generate an edge detection tool image in which a line width is held at the predetermined predetermined width based on the drawing data subjected to coordinate conversion by the coordinate conversion unit. The image measuring device according to claim 1 or 2.
JP2007001819U 2007-03-19 2007-03-19 Image measuring device Expired - Lifetime JP3132315U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007001819U JP3132315U (en) 2007-03-19 2007-03-19 Image measuring device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007001819U JP3132315U (en) 2007-03-19 2007-03-19 Image measuring device

Publications (1)

Publication Number Publication Date
JP3132315U true JP3132315U (en) 2007-06-07

Family

ID=43283054

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007001819U Expired - Lifetime JP3132315U (en) 2007-03-19 2007-03-19 Image measuring device

Country Status (1)

Country Link
JP (1) JP3132315U (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2016040677A (en) * 2014-08-12 2016-03-24 東芝機械株式会社 Image processor
JP2016070779A (en) * 2014-09-30 2016-05-09 オリンパス株式会社 Measuring apparatus

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2016040677A (en) * 2014-08-12 2016-03-24 東芝機械株式会社 Image processor
JP2016070779A (en) * 2014-09-30 2016-05-09 オリンパス株式会社 Measuring apparatus

Similar Documents

Publication Publication Date Title
JP5088018B2 (en) Image processing apparatus and control program
KR20170092127A (en) Image processing device, image processing method, non-transitory computer readable recording medium and photographing assist equipment
JP5438333B2 (en) Display control apparatus and display control method
JP4639135B2 (en) Probe observation device, surface texture measurement device
JP2011007872A (en) Observation device and magnification correction method
JP2007266667A (en) Camera-equipped mobile apparatus, control method thereof, and photographing support method thereof
JP2008079026A (en) Image processor, image processing method, and program
US6266129B1 (en) Digital photograph processing system
TW468055B (en) Method and device for controlling manipulator
US20060178561A1 (en) Endoscope apparatus
JP4932202B2 (en) Part program generating apparatus for image measuring apparatus, part program generating method for image measuring apparatus, and part program generating program for image measuring apparatus
JP5079973B2 (en) Endoscope device for measurement and program for endoscope device for measurement
JP3132315U (en) Image measuring device
JP4346742B2 (en) Image composition method, image composition apparatus, and storage medium
JP3672970B2 (en) Non-contact image measurement system
JP2005277510A (en) Image display control apparatus, image print control apparatus, image display control method, image print control method, and program
JP2006015117A (en) Endoscope apparatus
US20100060750A1 (en) Image processing apparatus, imaging apparatus, image processing method and computer program product for the same
JP4665696B2 (en) X-ray inspection equipment
JP2003028812A (en) Radioscopic apparatus
JP2006287365A (en) Digital camera
JP2007281650A (en) Trimming device, method and computer program
JP2001223934A (en) Image input device
JP3853638B2 (en) Image measuring apparatus, image measuring method, and image measuring program
JP2003203216A (en) Image measuring device part program generating device and image forming device part program generating program

Legal Events

Date Code Title Description
R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20100516

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20130516

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20130516

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20160516

Year of fee payment: 9