JP2017038292A - Image processing system, image processing method, image processing program and recording medium - Google Patents
Image processing system, image processing method, image processing program and recording medium Download PDFInfo
- Publication number
- JP2017038292A JP2017038292A JP2015159420A JP2015159420A JP2017038292A JP 2017038292 A JP2017038292 A JP 2017038292A JP 2015159420 A JP2015159420 A JP 2015159420A JP 2015159420 A JP2015159420 A JP 2015159420A JP 2017038292 A JP2017038292 A JP 2017038292A
- Authority
- JP
- Japan
- Prior art keywords
- image data
- image
- subject
- coordinate
- coordinates
- 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
- 238000003672 processing method Methods 0.000 title claims description 12
- 238000000034 method Methods 0.000 claims description 44
- 238000004458 analytical method Methods 0.000 claims description 24
- 235000019557 luminance Nutrition 0.000 abstract description 58
- 238000010586 diagram Methods 0.000 description 16
- 239000002131 composite material Substances 0.000 description 12
- 238000003384 imaging method Methods 0.000 description 4
- 241000870659 Crassula perfoliata var. minor Species 0.000 description 1
- 238000010030 laminating Methods 0.000 description 1
Images
Landscapes
- Stereoscopic And Panoramic Photography (AREA)
- Image Processing (AREA)
- Studio Devices (AREA)
Abstract
Description
本発明は、被写体とカメラを相対移動させながらカメラで撮像した画像を時系列的に順次貼り合わせてリアルタイムでディスプレイ上にパノラマ画像として表示する画像処理を行う画像処理装置、画像処理方法、画像処理プログラム、記録媒体に関する。 The present invention relates to an image processing apparatus, an image processing method, and an image processing for performing image processing to display images as panoramic images on a display in real time by sequentially pasting images captured by the camera while moving the subject and the camera relative to each other. It relates to a program and a recording medium.
特許文献1には、物体の全焦点画像を作成するシステムであって、物体を階層的に順次撮影する撮影装置と、前記物体を載置する載置台と、前記撮影装置と載置台との間隔を調整可能な間隔調整手段と、前記撮影装置で撮影した画像をデータ化する画像変換器と、該画像変換器から出力された撮影データを処理する画像処理手段と、該画像処理手段から出力された画像データを表示する表示手段とを具備して構成され、前回得られた各画素の画像輝度数値と今回撮影された各画素の画像輝度数値とを比較演算して得られた画像輝度数値に基づいて再構築されていく前記画像処理手段によって得られた最新の全焦点画像データが順次更新されて表示手段に画像として表示させる技術が開示されている。
また、画像処理手段として、特許第2775121号公報に開示されたイラスト作成支援方法によるイラストの輪郭線を強調する演算を行うと開示されている。 In addition, as an image processing unit, it is disclosed that an operation for emphasizing an outline of an illustration by an illustration creation support method disclosed in Japanese Patent No. 2775121 is performed.
特許文献2には、移動する被写体に対する連続撮影によって得られる複数の画像の各々を原画像として、複数の原画像の画像データに対して画像処理を行う画像処理装置であって、被写体が撮影された順序と、原画像の画像データにおける被写体の画像データの位置情報と、に基づいて、時間的に未来の被写体が、時間的に過去の被写体に対して筆触が異なるように、動体連写合成画像の画像データに含まれる画素の少なくとも色を基準としての相関に基づいて生成された画素のグループの形状を、時間的に未来の被写体の画素データの筆触を細かくし、時間的に過去の被写体の画素データの筆触を荒くするように変化させる画像処理装置が開示されている。
特許文献1の発明は、物体に対する撮影がXY軸方向は変えずにZ軸方向のみ移動させて撮影した画像を貼り合わせていく技術であるので、カメラをXY軸方向に移動させた場合は画像の貼り合わせができず、リアルタイムでパノラマ画像をディスプレイで見ることができないという問題があった。
The invention of
また、画像輝度数値を比較演算する処理は、閾値を設定し輪郭線を抽出する処理であるので、画像全体を鮮明にする技術ではないことから、画像に不鮮明な部分が生ずるという問題があった。 In addition, since the process of comparing and calculating the image luminance value is a process of setting a threshold value and extracting a contour line, it is not a technique for sharpening the entire image, so there is a problem that an unclear portion is generated in the image. .
特許文献2の発明は、XY軸方向に移動する被写体に対して前後の画像データの位置情報に基づいて合成画像を作成する技術であり、カメラをZ軸方向に移動させた場合は画像の貼り合わせができず、リアルタイムで立体的な被写体のパノラマ画像をディスプレイで見ることができないという問題があった。
The invention of
また、時間的に未来の被写体の画素データの色調・明暗等の表現を形成する画筆のタッチを細かくし、時間的に過去の被写体の画素データの画筆のタッチを荒くするように変化させる画像処理を行うので、ディスプレイ上の画像に鮮明さが異なる画像が表示されるという問題があった。 Also, image processing that changes the touch of the paint brush that forms the color tone, lightness, and darkness of the pixel data of the future subject in time, and changes the touch to make the touch of the pixel data of the past subject temporally rough. Therefore, there is a problem that images with different sharpness are displayed on the image on the display.
そこで、本発明の課題は、物体をカメラでXY軸方向やZ軸方向に移動させながら、カメラで撮像した画像を時系列的に順次貼り合わせてディスプレイ上にリアルタイムで鮮明なパノラマ画像を表示させることができる画像処理装置、画像処理方法、画像処理プログラム、記録媒体を提供することである。 Accordingly, an object of the present invention is to display a clear panoramic image in real time on a display by sequentially pasting together images captured by a camera while moving an object in the XY axis direction or the Z axis direction with the camera. An image processing apparatus, an image processing method, an image processing program, and a recording medium are provided.
本発明においてパノラマ画像とは、被写体とカメラをXY軸方向やZ軸方向に相対移動させながらカメラで被写体を撮影した撮像を、順次、横方向や縦方向に貼り合わせて連続した1枚の画像を意味する。 In the present invention, a panoramic image is a continuous image in which images of a subject taken by the camera while the subject and the camera are moved relative to each other in the XY axis direction or the Z axis direction are sequentially pasted in the horizontal direction or the vertical direction. Means.
請求項1に記載の画像処理装置1の発明は、被写体とカメラとを相対移動させながらカメラで撮像した画像を時系列的に順次貼り合わせてリアルタイムでディスプレイ上にパノラマ画像として表示する画像処理を行う画像処理装置1であって、載置した被写体又はカメラをXY軸方向又はZ軸方向に移動させる移動手段4と、前記移動手段4により移動させながら被写体を撮像し画像を連続的に取得する画像取得手段3と、前記取得した状態の又は取得し複数の画像データを貼り合わせた状態の第一の画像データの座標ごとの輝度成分を周波数解析した周波数と、前記第一の画像データの1フレーム後に取得した第二の画像データの座標ごとの輝度成分を周波数解析した周波数とを比較して、座標ごとの周波数の差分が最少となる座標範囲を探索し、さらにそれぞれの画像データの前記探索で対応する前記座標範囲の輝度の差分が最少となる座標を探索し、該探索した座標を第一の画像データと第二の画像データでの被写体の一致する部位の座標としてそれぞれ特定し、前記特定した第一の画像データの座標と第二の画像データの座標が異なる場合は被写体がXY軸方向に相対移動したと判断し、前記座標が一致する場合は被写体がZ軸方向に相対移動したと判断する移動方向判断手段と、前記移動方向判断手段で被写体がXY軸方向に相対移動したと判断した場合は、第一の画像データと第二の画像データとを前記移動方向判断手段で特定したそれぞれの座標をXY軸方向で一致させて時系列的に順次貼り合わせるXY軸方向貼り合わせ手段と、
前記移動方向判断手段で被写体がZ軸方向に相対移動したと判断した場合は、第一の画像データ及び第二の画像データそれぞれの数画素範囲からなる座標範囲ごとに各画素間の輝度の差分を算出し、それぞれの該差分を同一座標の画素ごとに比較し、第二の画像データのうちの該差分が大きい座標の画素を時系列的に順次第一の画像データに貼り合わせていくZ軸方向貼り合わせ手段と、を備えることを特徴とする。
The
When the moving direction determining means determines that the subject has moved relatively in the Z-axis direction, the luminance difference between the pixels for each coordinate range consisting of several pixel ranges of the first image data and the second image data. Z is calculated, and the respective differences are compared for each pixel having the same coordinate, and the pixels having the larger difference in the second image data are sequentially pasted to the first image data in time series. And an axial direction laminating means.
請求項2に記載の画像処理装置は、請求項1において、前記移動方向判断手段における、輝度成分の周波数の差分が最少となる座標範囲の探索を、第一及び第二の画像データをそれぞれ第一及び第二の縮小画像データに画像縮小し、前記第一の縮小画像データの座標ごとの輝度成分を周波数解析した周波数と、前記第二の縮小画像データの座標ごとの輝度成分を周波数解析した周波数とを比較して、それぞれの周波数の差分が最少となる座標範囲を探索することを特徴とする。 An image processing apparatus according to a second aspect is the image processing apparatus according to the first aspect, wherein the moving direction determination unit searches the coordinate range in which the difference in the frequency of the luminance component is minimized, The image was reduced to the first and second reduced image data, and the frequency analysis was performed on the luminance component for each coordinate of the first reduced image data, and the frequency component was analyzed for the luminance component for each coordinate of the second reduced image data. The frequency range is compared, and a coordinate range in which the difference between the frequencies is minimized is searched for.
請求項3に記載の画像処理方法10は、被写体とカメラとを相対移動させながらカメラで撮像した画像を時系列的に順次貼り合わせてリアルタイムでディスプレイ上にパノラマ画像として表示する画像処理を行う画像処理方法であって、載置した被写体又はカメラをXY軸方向又はZ軸方向に移動させる移動工程と、前記移動手段により移動させながら被写体を撮像し画像を連続的に取得する画像取得工程と、前記取得した状態の又は取得し複数の画像データを貼り合わせた状態の第一の画像データの座標ごとの輝度成分を周波数解析した周波数と、前記第一の画像データの1フレーム後に取得した第二の画像データの座標ごとの輝度成分を周波数解析した周波数とを比較して、座標ごとの周波数の差分が最少となる座標範囲を探索し、さらにそれぞれの画像データの前記探索で対応する前記座標範囲の輝度の差分が最少となる座標を探索し、該探索した座標を第一の画像データと第二の画像データでの被写体の一致する部位の座標としてそれぞれ特定し、前記特定した第一の画像データの座標と第二の画像データの座標が異なる場合は被写体がXY軸方向に相対移動したと判断し、前記座標が一致する場合は被写体がZ軸方向に相対移動したと判断する移動方向判断工程と、前記移動方向判断手段で被写体がXY軸方向に相対移動したと判断した場合は、第一の画像データと第二の画像データとを前記移動方向判断手段で特定したそれぞれの座標をXY軸方向で一致させて時系列的に順次貼り合わせるXY軸方向貼り合わせ工程と、前記移動方向判断手段で被写体がZ軸方向に相対移動したと判断した場合は、第一の画像データ及び第二の画像データそれぞれの数画素範囲からなる座標範囲ごとに各画素間の輝度の差分を算出し、それぞれの該差分を同一座標の画素ごとに比較し、第二の画像データのうちの該差分が大きい座標の画素を時系列的に順次第一の画像データに貼り合わせていくZ軸方向貼り合わせ工程と、を備えることを特徴とする。
The
請求項4に記載の画像処理方法は、請求項3において、前記移動方向判断工程における、輝度成分の周波数の差分が最少となる座標範囲の探索を、第一及び第二の画像データをそれぞれ第一及び第二の縮小画像データに画像縮小し、前記第一の縮小画像データの座標ごとの輝度成分を周波数解析した周波数と、前記第二の縮小画像データの座標ごとの輝度成分を周波数解析した周波数とを比較して、それぞれの周波数の差分が最少となる座標範囲を探索することを特徴とする。 According to a fourth aspect of the present invention, there is provided the image processing method according to the third aspect, wherein in the moving direction determining step, the search of the coordinate range in which the difference in the frequency of the luminance component is minimized is performed for the first and second image data. The image was reduced to the first and second reduced image data, and the frequency analysis was performed on the luminance component for each coordinate of the first reduced image data, and the frequency component was analyzed for the luminance component for each coordinate of the second reduced image data. The frequency range is compared, and a coordinate range in which the difference between the frequencies is minimized is searched for.
請求項5に記載の画像処理プログラムは、被写体とカメラとを相対移動させながらカメラで撮像した画像を時系列的に順次貼り合わせてリアルタイムでディスプレイ上にパノラマ画像として表示する画像処理を行う画像処理プログラムであって、載置した被写体又はカメラをXY軸方向又はZ軸方向に移動させる移動手順と、前記移動手段により移動させながら被写体を撮像し画像を連続的に取得する画像取得手順と、前記取得した状態の又は取得し複数の画像データを貼り合わせた状態の第一の画像データの座標ごとの輝度成分を周波数解析した周波数と、前記第一の画像データの1フレーム後に取得した第二の画像データの座標ごとの輝度成分を周波数解析した周波数とを比較して、座標ごとの周波数の差分が最少となる座標範囲を探索し、さらにそれぞれの画像データの前記探索で対応する前記座標範囲の輝度の差分が最少となる座標を探索し、該探索した座標を第一の画像データと第二の画像データでの被写体の一致する部位の座標としてそれぞれ特定し、前記特定した第一の画像データの座標と第二の画像データの座標が異なる場合は被写体がXY軸方向に相対移動したと判断し、前記座標が一致する場合は被写体がZ軸方向に相対移動したと判断する移動方向判断手順と、前記移動方向判断手段で被写体がXY軸方向に相対移動したと判断した場合は、第一の画像データと第二の画像データとを前記移動方向判断手段で特定したそれぞれの座標をXY軸方向で一致させて時系列的に順次貼り合わせるXY軸方向貼り合わせ手順と、前記移動方向判断手段で被写体がZ軸方向に相対移動したと判断した場合は、第一の画像データ及び第二の画像データそれぞれの数画素範囲からなる座標範囲ごとに各画素間の輝度の差分を算出し、それぞれの該差分を同一座標の画素ごとに比較し、第二の画像データのうちの該差分が大きい座標の画素を時系列的に順次第一の画像データに貼り合わせていくZ軸方向貼り合わせ手順と、を備えることを特徴とする。
6. The image processing program according to
請求項6に記載の画像処理プログラムは、請求項5において、前記移動方向判断手順における、輝度成分の周波数の差分が最少となる座標範囲の探索を、第一及び第二の画像データをそれぞれ第一及び第二の縮小画像データに画像縮小し、前記第一の縮小画像データの座標ごとの輝度成分を周波数解析した周波数と、前記第二の縮小画像データの座標ごとの輝度成分を周波数解析した周波数とを比較して、それぞれの周波数の差分が最少となる座標範囲を探索することを特徴とする。 According to a sixth aspect of the present invention, there is provided the image processing program according to the fifth aspect, wherein the search for the coordinate range in which the difference in the frequency of the luminance component is minimized in the moving direction determination procedure is performed for the first and second image data. The image was reduced to the first and second reduced image data, and the frequency analysis was performed on the luminance component for each coordinate of the first reduced image data, and the frequency component was analyzed for the luminance component for each coordinate of the second reduced image data. The frequency range is compared, and a coordinate range in which the difference between the frequencies is minimized is searched for.
請求項7に記載の画像処理プログラムは、請求項5又は6において、前記XY軸方向貼り合わせ手順又はZ軸方向貼り合わせ手順により時系列的に順次貼り合わされた画像の全体画像が、アスペクト比を固定にした状態でディスプレイの画面の大きさに合うように表示する画像表示手順を備えることを特徴とする。
The image processing program according to
請求項8に記載の記録媒体は、請求項5乃至7のいずれかに記載の画像処理プログラムをコンピュータ読み取り可能に記録したことを特徴とする。 A recording medium according to an eighth aspect is characterized in that the image processing program according to any one of the fifth to seventh aspects is recorded so as to be readable by a computer.
請求項1乃至8のいずれかに記載の発明は、被写体とカメラとを相関関係でXY軸方向やZ軸方向にずらしながら、カメラで撮像した画像をリアルタイムで時系列的に順次貼り合わせて、ディスプレイ上にリアルタイムで物体の鮮明な画像を奥行も含めたパノラマ画像として表示させることができる。
The invention according to any one of
被写体とカメラとの相対位置関係が、XY軸方向に移動したか、Z軸方向に移動したかを瞬時に判断することができるので、立体的な被写体を対象にしてもリアルタイムで鮮明な画像をディスプレイに表示することができる。 Since it is possible to instantly determine whether the relative positional relationship between the subject and the camera has moved in the XY-axis direction or the Z-axis direction, a clear image can be obtained in real time even for a three-dimensional subject. Can be displayed on the display.
請求項2、4、6に記載の発明は、輝度の周波数解析を、画像を縮小させた状態で行うことにより、画面全体を範囲とした周波数解析を極めて短時間に行うことができるようになり、これによりさらに画像処理時間の短縮化ができた。 According to the second, fourth, and sixth aspects of the present invention, the frequency analysis of the luminance can be performed in a very short time by performing the luminance frequency analysis in a state where the image is reduced. This further shortened the image processing time.
請求項7に記載の発明は、ディスプレイにカメラで撮像した範囲の被写体の画像をすべて表示させることができるので、被写体のカメラで撮像した範囲全体を常時把握することができる。 According to the seventh aspect of the present invention, since all the images of the subject within the range captured by the camera can be displayed on the display, the entire range captured by the camera of the subject can be always grasped.
以下、図面を参照しながら本発明に係る実施形態について説明する。 Embodiments according to the present invention will be described below with reference to the drawings.
図1は本発明の一実施形態の画像処理装置1の基本構成を示す図である。パソコン等の画像処理手段2、カメラ等の画像取得手段3、被写体5を載置しXY軸方向やZ軸方向に移動する移動手段4、画像を表示するディスプレイ等の画像表示手段6を備える。移動手段4はカメラ等の画像取得手段3をXY軸方向やZ軸方向に移動させる手段でもよい。画像処理手段2には、移動方向判断手段、XY軸方向貼り合わせ手段、Z軸方向貼り合わせ手段、画像表示手段が含まれる。
FIG. 1 is a diagram showing a basic configuration of an
また、本発明の画像処理方法10は、図9に示すように、移動手順61、画像取得手順62、移動方向判断手順63を経て、XY軸方向貼り合わせ手順64又はZ軸方向貼り合わせ手順65を実施し、画像表示手順66を備える。
Further, as shown in FIG. 9, the
本願発明の画像処理装置1は、被写体とカメラとを相対移動させながらカメラで撮像した画像をリアルタイムでディスプレイ上にパノラマ画像として表示する画像処理を行う画像処理装置1であって、載置した被写体又はカメラをXY軸方向又はZ軸方向に移動させる移動手段4と、前記移動手段4により移動させながら被写体を撮像し画像を連続的に取得する画像取得手段3と、
前記取得した状態の又は取得し複数の画像データを貼り合わせた状態の第一の画像データの座標ごとの輝度成分を周波数解析した周波数と、前記第一の画像データの1フレーム後に取得した第二の画像データの座標ごとの輝度成分を周波数解析した周波数とを比較して、座標ごとの周波数の差分が最少となる座標範囲を探索し、さらにそれぞれの画像データの前記探索で対応する前記座標範囲の輝度の差分が最少となる座標を探索し、該探索した座標を第一の画像データと第二の画像データでの被写体の一致する部位の座標としてそれぞれ特定し、前記特定した第一の画像データの座標と第二の画像データの座標が異なる場合は被写体がXY軸方向に相対移動したと判断し、前記座標が一致する場合は被写体がZ軸方向に相対移動したと判断する移動方向判断手段と、前記移動方向判断手段で被写体がXY軸方向に相対移動したと判断した場合は、第一の画像データと第二の画像データとを前記移動方向判断手段で特定したそれぞれの座標をXY軸方向で一致させて時系列的に順次貼り合わせるXY軸方向貼り合わせ手段と、前記移動方向判断手段で被写体がZ軸方向に相対移動したと判断した場合は、第一の画像データ及び第二の画像データそれぞれの数画素範囲からなる座標範囲ごとに各画素間の輝度の差分を算出し、それぞれの該差分を同一座標の画素ごとに比較し、第二の画像データのうちの該差分が大きい座標の画素を時系列的に順次第一の画像データに貼り合わせていくZ軸方向貼り合わせ手段と、を備える。
An
The frequency obtained by frequency analysis of the luminance component for each coordinate of the first image data in the acquired state or in a state in which a plurality of image data is pasted together, and the second acquired after one frame of the first image data The luminance component for each coordinate of the image data is compared with the frequency obtained by frequency analysis, the coordinate range in which the frequency difference for each coordinate is minimized is searched, and the corresponding coordinate range is further determined in the search for each image data The coordinates where the luminance difference between the two images is minimized are searched for, and the searched coordinates are specified as the coordinates of the matching part of the subject in the first image data and the second image data, respectively. If the coordinates of the data and the coordinates of the second image data are different, it is determined that the subject has moved relative to the XY axis, and if the coordinates match, it is determined that the subject has moved relative to the Z axis. Moving direction determining means and the moving direction determining means determine that the subject has relatively moved in the XY axis direction, the first image data and the second image data are identified by the moving direction determining means, respectively. When the XY axis direction pasting means for matching the coordinates in the XY axis direction and sequentially pasting them in time series and the movement direction judging means determine that the subject has moved relative to the Z axis direction, the first image The difference in luminance between each pixel is calculated for each coordinate range consisting of several pixel ranges of each of the data and the second image data, and each difference is compared for each pixel of the same coordinate, Z-axis direction pasting means for pasting together pixels of coordinates having a large difference in time sequence in sequence to the first image data.
前記移動手段4は、被写体を載置した台をXY軸方向又はZ軸方向に移動させる機構か、あるいはカメラをXY軸方向又はZ軸方向に移動させる機構であれば、手動による移動でも自動による移動でもよい。 If the moving means 4 is a mechanism that moves the stage on which the subject is placed in the XY axis direction or the Z axis direction, or a mechanism that moves the camera in the XY axis direction or the Z axis direction, it can be automatically moved by manual movement. It may be moved.
前記画像取得手段3は、前記移動手段4により被写体又はカメラを移動させながら被写体を撮像し画像を連続的に取得するカメラであればよい。取得される画像はカラー画像でもモノクロ画像でもよく、撮像した被写体の画像の範囲と次の1フレーム後に撮像した被写体の画像の範囲は少なくとも部分的に同じ範囲の撮像部分を取得できるように撮影する。カメラで撮影された画像は、時系列的に順次画像データとして画像処理装置1に記憶される。
The image acquisition unit 3 may be a camera that captures images of a subject while the subject or camera is moved by the moving unit 4 and continuously acquires images. The acquired image may be a color image or a monochrome image, and the range of the captured subject image and the range of the subject image captured after the next frame are photographed so that at least a part of the captured range can be acquired. . Images taken by the camera are sequentially stored in the
前記移動方向判断手段を説明する。まず、前記取得した状態の又は取得し複数の画像データを貼り合わせた状態の第一の画像データ、並びに前記第一の画像データの1フレーム後に取得した第二の画像データを比較する。第一の画像データは、撮像した1枚の画像の画像データ、又は、時系列的に順次貼り合わせていった画像データをいい、次に撮像した1フレーム後の画像の画像データを貼り付ける先の画像データをいう。第二の画像データは、1フレーム後に撮像し次に貼り付けようとする画像データをいう。第一及び第二の画像データはともにカラー画像でもモノクロ画像でもよい。 The moving direction determining means will be described. First, the first image data in the acquired state or in a state in which a plurality of image data is acquired and the second image data acquired after one frame of the first image data are compared. The first image data refers to image data of one captured image or image data that has been sequentially pasted together in time series, and a destination to which image data of the next captured image is pasted. Image data. The second image data is image data to be imaged after one frame and then to be pasted. Both the first and second image data may be color images or monochrome images.
次に、前記第一の画像データと第二の画像データのそれぞれの座標ごとの輝度成分を周波数解析した周波数とを比較して、座標ごとの周波数の差分が最少となる座標範囲を探索する。それぞれの画像データがモノクロ画像の場合は単色のグレースケール画像としてそのままで色変換せず、カラー画像の場合は単色のグレースケール画像データに色変換する。 Next, the luminance range for each coordinate of the first image data and the second image data is compared with the frequency obtained by frequency analysis, and a coordinate range in which the frequency difference for each coordinate is minimized is searched. When each image data is a monochrome image, it is not converted as it is as a single-color grayscale image, and when it is a color image, it is converted into single-color grayscale image data.
輝度成分の周波数の差分が最少となる座標範囲の探索を、撮像した画像の大きさのグレースケール画像で行ってもいいし、該グレースケール画像を縮小した縮小画像で行ってもいい。縮小画像にすると画像全体の探索時間の短縮化ができる。 The search for the coordinate range in which the frequency difference of the luminance component is minimized may be performed using a grayscale image having the size of the captured image, or may be performed using a reduced image obtained by reducing the grayscale image. When the reduced image is used, the search time for the entire image can be shortened.
輝度成分の周波数の波形の差分が最少となる座標範囲の探索は、被写体の一部の部位を共通にして撮像した画像ならば該共通範囲の周波数の波形は略同一になるので、第一の画像及び第二の画像から周波数の波形が略同一になるそれぞれの座標範囲を探索する。 The search for the coordinate range where the difference in the frequency waveform of the luminance component is minimized is because the waveform of the frequency in the common range is substantially the same if the image is taken with a part of the subject in common. Each coordinate range in which the frequency waveform is substantially the same is searched from the image and the second image.
まず、第一の画像データと第二の画像データで、ともに被写体の一部の部位を共通にして撮影している座標範囲の概要範囲を求める。この段階の座標範囲の探索は粗い探索をする。そのため、第一及び第二のグレースケール画像データ、あるいは、第一及び第二のグレースケール画像データの縮小画像データの各画素の輝度の周波数解析を例えば横列に順に又は縦列に順に全画素に亘って行う。そして、第一及び第二のグレースケール画像データ、あるいは、前記第一及び第二の縮小画像データの周波数の波形を比較し、周波数の波形が略一致する、第一及び第二のグレースケール画像データのそれぞれの座標範囲、あるいは、前記第一及び第二の縮小画像データのそれぞれの座標範囲を探索し特定する。この段階は、図10における「座標ごとの輝度成分を周波数解析した周波数の波形を比較し差分最少の座標範囲特定」631に該当する。この段階は画像データ7又は縮小画像データ8を使用する。
First, the outline range of the coordinate range in which the first image data and the second image data are both photographed with a part of the subject in common is obtained. The search of the coordinate range at this stage is a rough search. Therefore, the frequency analysis of the luminance of each pixel of the first and second grayscale image data or the reduced image data of the first and second grayscale image data is performed, for example, in the horizontal order or in the vertical order over all the pixels. Do it. Then, the first and second grayscale image data, or the first and second reduced-scale image data are compared in frequency waveform, and the first and second grayscale images substantially match in frequency waveform. Each coordinate range of the data or each coordinate range of the first and second reduced image data is searched and specified. This stage corresponds to “Identify coordinate range with minimum difference by comparing frequency waveforms obtained by frequency analysis of luminance components for each coordinate” 631 in FIG. This stage uses
周波数の波形の比較を図4で説明する。図4(b)は第一の画像11の座標に対する周波数21を示し、図4(c)は第二の画像12の座標に対する周波数22を示している。第一の画像11と第二の画像12が図4(a)に示すような位置関係で撮像された場合は、被写体5の同一部位を撮影した個所は第一の画像11からも第二の画像12からも略同一の周波数の波形20が示される。そこで、周波数の波形20を示した座標範囲は周波数の波形が略一致するとして、第一の画像11の座標範囲201及び第二の画像12の座標範囲202をそれぞれ特定する。
Comparison of frequency waveforms will be described with reference to FIG. FIG. 4B shows the
縮小画像の場合は、縮小前に比較してXY軸方向の大きさを1/2〜1/20に、好ましくは1/10〜1/20に縮小する。これにより、前記周波数の波形が略同一の座標範囲を探索する時間が、画像サイズなどの画像データなどにより多少変わるが、発明者の実験では1枚の画像に対する探索時間をグレースケール画像では略1秒かかるのを縮小画像では略30μ秒に短縮させることができた。カメラでの撮影では1撮影当り略30μ秒を要するので使用者にとってはリアルタイムで貼り合わせが時系列的に順次実現されていると実感することができる。 In the case of a reduced image, the size in the XY-axis direction is reduced to 1/2 to 1/20, preferably 1/10 to 1/20, compared to before reduction. As a result, although the time for searching for the coordinate range in which the waveform of the frequency is substantially the same varies depending on the image data such as the image size, the search time for one image is approximately 1 for the gray scale image in the experiment of the inventors. The time required for the reduced image could be reduced to about 30 μsec. Since shooting with a camera requires approximately 30 μsec per shooting, it is possible for the user to realize that the bonding is realized sequentially in real time in real time.
次に、第一及び第二の画像データの前記探索で求めて特定した座標範囲を中心にその周囲の座標範囲も含めて精緻な探索を行い、第一及び第二の画像データにともに被写体の一部の部位を共通にして撮影している座標範囲を探索する。精緻な探索では、被写体の一部の部位を共通にして撮像した画像ならば該共通範囲の輝度は略一致するので、第一の画像及び第二の画像から輝度が略一致するそれぞれの座標を探索する。この探索では縮小画像は粗い探索になるので使用しない。 Next, an elaborate search is performed with the coordinate range obtained by the search for the first and second image data as a center, including the surrounding coordinate range, and both the first and second image data are searched for the subject. Search for a coordinate range in which some parts are shared. In an elaborate search, the brightness of the common range is substantially the same if the image is taken with some parts of the subject in common, so the coordinates where the brightness is substantially the same from the first image and the second image are obtained. Explore. In this search, the reduced image is not used because it is a rough search.
特定した第一及び第二のグレースケール画像データのそれぞれの座標範囲、あるいは、特定した前記第一及び第二の縮小画像データのそれぞれの座標範囲に対して、前記探索結果で得られたそれぞれの対応する座標範囲に対して輝度が略一致する座標を探索する。その探索結果輝度が略一致する座標を、第一のグレースケール画像データと第二のグレースケール画像データでの被写体の一致する部位の座標としてそれぞれ特定する。この特定により、被写体の同一部位の第一の画像データの座標と第二の画像データの座標が求められた。この段階は、図10における「特定した座標範囲の座標ごとの輝度を比較し差分最少の座標特定」632に該当する。この段階は画像データ7を使用する。
With respect to the respective coordinate ranges of the specified first and second grayscale image data, or the respective coordinate ranges of the specified first and second reduced image data, each obtained by the search result. A search is made for a coordinate whose luminance substantially matches the corresponding coordinate range. The coordinates where the luminances of the search results substantially match are specified as the coordinates of the matching part of the subject in the first grayscale image data and the second grayscale image data, respectively. By this specification, the coordinates of the first image data and the coordinates of the second image data of the same part of the subject are obtained. This stage corresponds to “Identify coordinates with minimum difference by comparing brightness for each coordinate in the specified coordinate range” 632 in FIG. This stage uses
前記精緻な探索で求められた、第一の画像データの座標と第二の画像データの座標とが異なる場合は被写体がXY軸方向に相対移動したと判断し、第一の画像データの座標と第二の画像データの座標が一致する場合は被写体がZ軸方向に相対移動したと判断する。この段階は、図10における「特定した座標が略一致すればZ軸方向移動、特定した座標がずれていればXY軸方向移動と判断」633に該当する。この段階は画像データ7を使用する。
When the coordinates of the first image data and the coordinates of the second image data obtained by the precise search are different, it is determined that the subject has moved relatively in the XY axis direction, and the coordinates of the first image data If the coordinates of the second image data match, it is determined that the subject has moved relative to the Z-axis direction. This step corresponds to “determine movement in the Z-axis direction if the specified coordinates substantially match, and move in the XY-axis direction if the specified coordinates are shifted” 633 in FIG. This stage uses
次に、XY軸方向貼り合わせ手段について説明する。XY軸方向に移動させた場合は、被写体の同一部位に対する、第一の画像データと第二の画像データとのそれぞれのXY軸方向の座標は同一ではない。そこで、第一の画像データと第二の画像データとを前記移動方向判断手段で特定したそれぞれの座標をXY軸方向で一致させて、第一の画像データに第二の画像データを時系列的に順次貼り合わせる。このときに撮像した画像がカラー画像の場合はカラー画像データ同士を貼り合わせ、モノクロ画像の場合はモノクロ画像同士を貼り合わせる。 Next, the XY axis direction bonding means will be described. When moved in the XY-axis direction, the coordinates in the XY-axis directions of the first image data and the second image data for the same part of the subject are not the same. Therefore, the first image data and the second image data are made to coincide with each other in the XY-axis directions with the coordinates specified by the moving direction determination means, and the second image data is time-sequentially added to the first image data. Are pasted together. When the image captured at this time is a color image, the color image data are pasted together, and when the image is a monochrome image, the monochrome images are pasted together.
前記貼り合わせにより、万一第一の画像と第二の画像がずれて貼り合わされた場合には第一の画像と第二の画像の境界が目立つが、本発明のXY軸方向貼り合わせ手段では第一の画像と第二の画像がずれないので第一の画像と第二の画像の境界が全く目立たずに貼り合わせることができる。 In the unlikely event that the first image and the second image are pasted together by the pasting, the boundary between the first image and the second image is noticeable. Since the first image and the second image do not deviate from each other, the boundary between the first image and the second image is not noticeable at all and can be bonded together.
図2でXY軸方向貼り合わせについて説明する。図2(a)に被写体5aを示し、図2(b)に第一の画像11と第二の画像12の被写体5aに対する撮像位置を示す。そして第一の画像11と第二の画像12ともに、座標ハは被写体5aの共通して撮像された部位に相当する。座標ハにおける周波数の波形や輝度は略一致する。
XY axis direction bonding will be described with reference to FIG. FIG. 2A shows the subject 5a, and FIG. 2B shows the imaging positions of the
前記座標ハは、図3(a)における第一の画像11の座標ハaと図3(b)における第二の画像12の座標ハbに相当する。すると、第一の画像11の座標イと第二の画像12の座標ロとは同じ座標であるのに対して、座標ハaと座標ハbとは座標がずれていることがわかる。これにより、第二の画像12は第一の画像11に対してXY軸方向に移動して撮影したことがわかる。そして、図3(c)に示すように第一の画像11すべてに対して、第二の画像12の第一の画像11と輝度が略一致した部分を、輝度の一致不一致の境界である境界線g及びhで切り取って、図3(d)に示すように貼り合わせる。貼り合わせた画像には境界線が見えない1枚の貼り合わせ画像13ができる。
The coordinate c corresponds to the coordinate c a of the
次に、図8(a)に示すような第三の画像14を撮像し、第三の画像14の座標範囲14Aと、図8(b)に示す、貼り合わせ画像13の座標範囲13Aの輝度が略一致し、第三の画像14の座標範囲14Bと貼り合わせ画像13の座標範囲13Bの輝度が略一致したとする。すると、図8(b)に示すように第三の画像14から貼り合わせ画像13と輝度が一致する範囲を切り取り、図8(c)に示すように貼り付けて貼り合わせ画像15を作成する。貼り合わせ画像15には画像間の境界線は見えない状態で貼り合わされている。このように、時系列的に順次画像を貼り合わせることができる。
Next, the
次に、Z軸方向貼り合わせ手段について説明する。Z軸方向に移動させた場合は、被写体の同一部位に対する、第一の画像データ及び第二の画像データのそれぞれのXY軸方向の座標は一致しているが、第一の画像と第二の画像は、焦点が合っている座標が異なっている状態である。そこで、後から撮影した第二の画像から焦点が合っている画素を第一の画像に貼りつける処理を行う。 Next, the Z-axis direction bonding means will be described. When moved in the Z-axis direction, the coordinates of the first image data and the second image data in the XY-axis direction for the same part of the subject coincide with each other. The image is in a state where the in-focus coordinates are different. Therefore, a process of pasting in-focus pixels from the second image taken later to the first image is performed.
第一のグレースケール画像及び第二のグレースケール画像において、それぞれ数画素範囲からなる座標範囲ごとに該座標範囲の中心の注目画素と該注目画素に隣接する画素である周囲画素との各画素間の輝度の差分を求める演算を、1画素ずつ順にずらしながらそれぞれのグレースケール画像の全画素について行う。そして、それぞれの該差分を同一座標の画素ごとに比較し、第二の画像データのうちの該差分が大きい座標の画素を時系列的に順次第一の画像データに貼り合わせていく。 In each of the first grayscale image and the second grayscale image, for each coordinate range consisting of several pixel ranges, between each pixel between the target pixel at the center of the coordinate range and surrounding pixels that are adjacent to the target pixel The calculation for obtaining the luminance difference is performed for all the pixels of each grayscale image while sequentially shifting one pixel at a time. Then, the respective differences are compared for each pixel having the same coordinate, and the pixels having the larger difference in the second image data are sequentially pasted to the first image data in time series.
図5において前記輝度の差分を求める演算について説明する。図5(a)において、注目画素31を周囲画素32の8つが取り囲んでいる。まず8つの周囲画素32の輝度の平均を求め、求めた平均周囲画素輝度と、周囲画素32の中心に位置する注目画素31の輝度との差分を求める。これを図5(b)に示すように、注目画素31を画素一つずつずらしながらすべての画素に亘って実施する。
The calculation for obtaining the luminance difference will be described with reference to FIG. In FIG. 5A, the
次に、Z軸方向貼り合わせについて図6及び図7で説明する。図6(a)に示した被写体5bを画像取得手段3であるカメラで撮影した画像を、図6(b)に示すように第一の画像41とし、次に図6(c)に示す撮影した画像を第二の画像42とする。そして、第一の画像41の座標ニaと第二の画像42の座標ニbにおける周波数の波形と輝度が略一致したとする。そして、第一の画像41は全体的に不明瞭な画像であり、第二の画像42は被写体5bの最上位の平面部51の部分が鮮明な画像で他の範囲は不鮮明な画像とする。この場合、第一の画像41の画素ごとの輝度の差分より第二の画像12の前記平面部51の画素ごとの輝度の差分が大きく現れるから、図6(d)に示すように第二の画像42から前記平面部51の画素範囲のみを切り取り、図6(e)に示すように貼り付けて貼り合わせ画像43を作成する。
Next, Z-axis direction bonding will be described with reference to FIGS. An image obtained by photographing the subject 5b shown in FIG. 6A with the camera which is the image acquisition means 3 is set as a
次に、カメラがZ軸方向に移動して、図7(a)に示すように、第三の画像44は円盤形部52の画像が鮮明に表示された画像が得られ、かつ座標ニcにおける周波数の波形と輝度が貼り合わせ画像43の座標ニaと略一致したとする。すると、第三の画像44は貼り合わせ画像43からZ軸方向に移動したと判断する。次に、第三の画像44と貼り合わせ画像43とを比較して、第三の画像44の円盤形部52の画素範囲が貼り合わせ画像43の画素範囲より大きく輝度の差分が現れるから、図7(b)に示すように前記円盤形部52の画素範囲を切り取り、図7(c)に示すように貼り付けて貼り合わせ画像45を作成する。同じようにして外枠部53が鮮明な画像が得られると貼り合わせて貼り合わせ画像46を作成する。各画像における座標ニa、ニb、ニc、ニd及びニeは同一の座標とする。
Next, the camera moves in the Z-axis direction, and as shown in FIG. 7A, the
次に、ディスプレイの画像表示手順である。XY軸方向貼り合わせ手順又はZ軸方向貼り合わせ手順により時系列的に順次貼り合わされた画像の全体画像を、アスペクト比を固定にした状態でディスプレイの画面の大きさに合うように表示する。 Next, an image display procedure on the display will be described. The entire image of the images sequentially combined in time series by the XY-axis direction combining procedure or the Z-axis direction combining procedure is displayed to fit the display screen size with the aspect ratio fixed.
図8(c)に示すように、貼り合わせ画像15がディスプレイ画面80より大きく画像全体が表示されないのを防ぐために、図8(d)に示すようにアスペクト比を固定にした状態でディスプレイの画面80の大きさに合うように縮小して表示する。
As shown in FIG. 8 (c), in order to prevent the combined
1 画像処理装置
2 画像処理手段
3 画像取得手段
4 移動手段
5 被写体
6 画像表示手段
7 画像データ
8 縮小画像データ
10 画像処理方法
11 第一の画像
12 第二の画像
13 貼り合わせ画像
20 波形
21 波形
22 波形
30 画像
31 注目画素
32 周囲画素
41 第一の画像
42 第二の画像
43 貼り合わせ画像
44 第三の画像
45 貼り合わせ画像
46 貼り合わせ画像
61 移動手順
62 画像取得手順
63 移動方向判断手順
64 XY軸方向貼り合わせ手順
65 Z軸方向貼り合わせ手順
66 画像表示手順
80 ディスプレイ画面
DESCRIPTION OF
Claims (8)
載置した被写体又はカメラをXY軸方向又はZ軸方向に移動させる移動手段と、
前記移動手段により移動させながら被写体を撮像し画像を連続的に取得する画像取得手段と、
前記取得した状態の又は取得し複数の画像データを貼り合わせた状態の第一の画像データの座標ごとの輝度成分を周波数解析した周波数と、前記第一の画像データの1フレーム後に取得した第二の画像データの座標ごとの輝度成分を周波数解析した周波数とを比較して、座標ごとの周波数の差分が最少となる座標範囲を探索し、さらにそれぞれの画像データの前記探索で対応する前記座標範囲の輝度の差分が最少となる座標を探索し、該探索した座標を第一の画像データと第二の画像データでの被写体の一致する部位の座標としてそれぞれ特定し、前記特定した第一の画像データの座標と第二の画像データの座標が異なる場合は被写体がXY軸方向に相対移動したと判断し、前記座標が一致する場合は被写体がZ軸方向に相対移動したと判断する移動方向判断手段と、
前記移動方向判断手段で被写体がXY軸方向に相対移動したと判断した場合は、第一の画像データと第二の画像データとを前記移動方向判断手段で特定したそれぞれの座標をXY軸方向で一致させて時系列的に順次貼り合わせるXY軸方向貼り合わせ手段と、
前記移動方向判断手段で被写体がZ軸方向に相対移動したと判断した場合は、第一の画像データ及び第二の画像データそれぞれの数画素範囲からなる座標範囲ごとに各画素間の輝度の差分を算出し、それぞれの該差分を同一座標の画素ごとに比較し、第二の画像データのうちの該差分が大きい座標の画素を時系列的に順次第一の画像データに貼り合わせていくZ軸方向貼り合わせ手段と、を備えることを特徴とする画像処理装置。 An image processing apparatus that performs image processing to display images as panoramic images on a display in real time by sequentially pasting images captured by the camera while moving the subject and the camera relatively,
Moving means for moving the placed subject or camera in the XY-axis direction or the Z-axis direction;
Image acquisition means for continuously capturing images by capturing an image of a subject while being moved by the movement means;
The frequency obtained by frequency analysis of the luminance component for each coordinate of the first image data in the acquired state or in a state in which a plurality of image data is pasted together, and the second acquired after one frame of the first image data The luminance component for each coordinate of the image data is compared with the frequency obtained by frequency analysis, the coordinate range in which the frequency difference for each coordinate is minimized is searched, and the corresponding coordinate range is further determined in the search for each image data The coordinates where the luminance difference between the two images is minimized are searched for, and the searched coordinates are specified as the coordinates of the matching part of the subject in the first image data and the second image data, respectively. If the coordinates of the data and the coordinates of the second image data are different, it is determined that the subject has moved relative to the XY axis, and if the coordinates match, it is determined that the subject has moved relative to the Z axis. And the moving direction determination means that,
When the movement direction determination unit determines that the subject has moved relative to the XY axis direction, the coordinates specified by the movement direction determination unit between the first image data and the second image data are set in the XY axis direction. XY axial direction bonding means for matching and sequentially bonding in time series,
When the moving direction determining means determines that the subject has moved relatively in the Z-axis direction, the luminance difference between the pixels for each coordinate range consisting of several pixel ranges of the first image data and the second image data. Z is calculated, and the respective differences are compared for each pixel having the same coordinate, and the pixels having the larger difference in the second image data are sequentially pasted to the first image data in time series. An image processing apparatus comprising: an axial direction bonding unit.
第一及び第二の画像データをそれぞれ第一及び第二の縮小画像データに画像縮小し、前記第一の縮小画像データの座標ごとの輝度成分を周波数解析した周波数と、前記第二の縮小画像データの座標ごとの輝度成分を周波数解析した周波数とを比較して、それぞれの周波数の差分が最少となる座標範囲を探索することを特徴とする請求項1に記載の画像処理装置。 In the movement direction determining means, searching for a coordinate range in which the difference in frequency of the luminance component is minimized,
The first and second image data are reduced to first and second reduced image data, respectively, and the frequency of the luminance component for each coordinate of the first reduced image data is analyzed, and the second reduced image The image processing apparatus according to claim 1, wherein a luminance range for each coordinate of the data is compared with a frequency obtained by frequency analysis, and a coordinate range in which a difference between the frequencies is minimized is searched for.
載置した被写体又はカメラをXY軸方向又はZ軸方向に移動させる移動工程と、
前記移動手段により移動させながら被写体を撮像し画像を連続的に取得する画像取得工程と、
前記取得した状態の又は取得し複数の画像データを貼り合わせた状態の第一の画像データの座標ごとの輝度成分を周波数解析した周波数と、前記第一の画像データの1フレーム後に取得した第二の画像データの座標ごとの輝度成分を周波数解析した周波数とを比較して、座標ごとの周波数の差分が最少となる座標範囲を探索し、さらにそれぞれの画像データの前記探索で対応する前記座標範囲の輝度の差分が最少となる座標を探索し、該探索した座標を第一の画像データと第二の画像データでの被写体の一致する部位の座標としてそれぞれ特定し、前記特定した第一の画像データの座標と第二の画像データの座標が異なる場合は被写体がXY軸方向に相対移動したと判断し、前記座標が一致する場合は被写体がZ軸方向に相対移動したと判断する移動方向判断工程と、
前記移動方向判断手段で被写体がXY軸方向に相対移動したと判断した場合は、第一の画像データと第二の画像データとを前記移動方向判断手段で特定したそれぞれの座標をXY軸方向で一致させて時系列的に順次貼り合わせるXY軸方向貼り合わせ工程と、
前記移動方向判断手段で被写体がZ軸方向に相対移動したと判断した場合は、第一の画像データ及び第二の画像データそれぞれの数画素範囲からなる座標範囲ごとに各画素間の輝度の差分を算出し、それぞれの該差分を同一座標の画素ごとに比較し、第二の画像データのうちの該差分が大きい座標の画素を時系列的に順次第一の画像データに貼り合わせていくZ軸方向貼り合わせ工程と、を備えることを特徴とする画像処理方法。 An image processing method for performing image processing for displaying a panoramic image on a display in real time by sequentially pasting together images captured by a camera while relatively moving a subject and a camera,
A moving step of moving the placed subject or camera in the XY-axis direction or the Z-axis direction;
An image acquisition step of continuously capturing images by capturing an image of a subject while being moved by the moving means;
The frequency obtained by frequency analysis of the luminance component for each coordinate of the first image data in the acquired state or in a state in which a plurality of image data is pasted together, and the second acquired after one frame of the first image data The luminance component for each coordinate of the image data is compared with the frequency obtained by frequency analysis, the coordinate range in which the frequency difference for each coordinate is minimized is searched, and the corresponding coordinate range is further determined in the search for each image data The coordinates where the luminance difference between the two images is minimized are searched for, and the searched coordinates are specified as the coordinates of the matching part of the subject in the first image data and the second image data, respectively. If the coordinates of the data and the coordinates of the second image data are different, it is determined that the subject has moved relative to the XY axis, and if the coordinates match, it is determined that the subject has moved relative to the Z axis. The moving direction determination step that,
When the movement direction determination unit determines that the subject has moved relative to the XY axis direction, the coordinates specified by the movement direction determination unit between the first image data and the second image data are set in the XY axis direction. XY axial direction bonding step of matching and sequentially bonding in time series,
When the moving direction determining means determines that the subject has moved relatively in the Z-axis direction, the luminance difference between the pixels for each coordinate range consisting of several pixel ranges of the first image data and the second image data. Z is calculated, and the respective differences are compared for each pixel having the same coordinate, and the pixels having the larger difference in the second image data are sequentially pasted to the first image data in time series. An image processing method comprising: an axial direction bonding step.
第一及び第二の画像データをそれぞれ第一及び第二の縮小画像データに画像縮小し、前記第一の縮小画像データの座標ごとの輝度成分を周波数解析した周波数と、前記第二の縮小画像データの座標ごとの輝度成分を周波数解析した周波数とを比較して、それぞれの周波数の差分が最少となる座標範囲を探索することを特徴とする請求項3に記載の画像処理方法。 In the moving direction determining step, searching for a coordinate range in which the difference in frequency of the luminance component is minimized,
The first and second image data are reduced to first and second reduced image data, respectively, and the frequency of the luminance component for each coordinate of the first reduced image data is analyzed, and the second reduced image 4. The image processing method according to claim 3, wherein a luminance range for each coordinate of data is compared with a frequency obtained by frequency analysis, and a coordinate range in which a difference between the frequencies is minimized is searched.
載置した被写体又はカメラをXY軸方向又はZ軸方向に移動させる移動手順と、
前記移動手段により移動させながら被写体を撮像し画像を連続的に取得する画像取得手順と、
前記取得した状態の又は取得し複数の画像データを貼り合わせた状態の第一の画像データの座標ごとの輝度成分を周波数解析した周波数と、前記第一の画像データの1フレーム後に取得した第二の画像データの座標ごとの輝度成分を周波数解析した周波数とを比較して、座標ごとの周波数の差分が最少となる座標範囲を探索し、さらにそれぞれの画像データの前記探索で対応する前記座標範囲の輝度の差分が最少となる座標を探索し、該探索した座標を第一の画像データと第二の画像データでの被写体の一致する部位の座標としてそれぞれ特定し、前記特定した第一の画像データの座標と第二の画像データの座標が異なる場合は被写体がXY軸方向に相対移動したと判断し、前記座標が一致する場合は被写体がZ軸方向に相対移動したと判断する移動方向判断手順と、
前記移動方向判断手段で被写体がXY軸方向に相対移動したと判断した場合は、第一の画像データと第二の画像データとを前記移動方向判断手段で特定したそれぞれの座標をXY軸方向で一致させて時系列的に順次貼り合わせるXY軸方向貼り合わせ手順と、
前記移動方向判断手段で被写体がZ軸方向に相対移動したと判断した場合は、第一の画像データ及び第二の画像データそれぞれの数画素範囲からなる座標範囲ごとに各画素間の輝度の差分を算出し、それぞれの該差分を同一座標の画素ごとに比較し、第二の画像データのうちの該差分が大きい座標の画素を時系列的に順次第一の画像データに貼り合わせていくZ軸方向貼り合わせ手順と、を備えることを特徴とする画像処理プログラム。 An image processing program for performing image processing for displaying images on a display as a panoramic image in real time by sequentially pasting images captured by the camera while moving the subject and the camera relatively,
A moving procedure for moving the placed subject or camera in the XY-axis direction or the Z-axis direction;
An image acquisition procedure in which the subject is imaged while being moved by the moving means and images are continuously acquired;
The frequency obtained by frequency analysis of the luminance component for each coordinate of the first image data in the acquired state or in a state in which a plurality of image data is pasted together, and the second acquired after one frame of the first image data The luminance component for each coordinate of the image data is compared with the frequency obtained by frequency analysis, the coordinate range in which the frequency difference for each coordinate is minimized is searched, and the corresponding coordinate range is further determined in the search for each image data The coordinates where the luminance difference between the two images is minimized are searched for, and the searched coordinates are specified as the coordinates of the matching part of the subject in the first image data and the second image data, respectively. If the coordinates of the data and the coordinates of the second image data are different, it is determined that the subject has moved relative to the XY axis, and if the coordinates match, it is determined that the subject has moved relative to the Z axis. The moving direction judgment procedure that,
When the movement direction determination unit determines that the subject has moved relative to the XY axis direction, the coordinates specified by the movement direction determination unit between the first image data and the second image data are set in the XY axis direction. XY axis direction bonding procedure for matching and sequentially bonding in time series,
When the moving direction determining means determines that the subject has moved relatively in the Z-axis direction, the luminance difference between the pixels for each coordinate range consisting of several pixel ranges of the first image data and the second image data. Z is calculated, and the respective differences are compared for each pixel having the same coordinate, and the pixels having the larger difference in the second image data are sequentially pasted to the first image data in time series. An image processing program comprising: an axial direction bonding procedure.
第一及び第二の画像データをそれぞれ第一及び第二の縮小画像データに画像縮小し、前記第一の縮小画像データの座標ごとの輝度成分を周波数解析した周波数と、前記第二の縮小画像データの座標ごとの輝度成分を周波数解析した周波数とを比較して、それぞれの周波数の差分が最少となる座標範囲を探索することを特徴とする請求項5に記載の画像処理プログラム。 In the moving direction determination procedure, searching for a coordinate range in which the difference in frequency of the luminance component is minimized,
The first and second image data are reduced to first and second reduced image data, respectively, and the frequency of the luminance component for each coordinate of the first reduced image data is analyzed, and the second reduced image 6. The image processing program according to claim 5, wherein a luminance range for each coordinate of data is compared with a frequency obtained by frequency analysis, and a coordinate range in which a difference between the frequencies is minimized is searched.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2015159420A JP6366108B2 (en) | 2015-08-12 | 2015-08-12 | Image processing apparatus, image processing method, image processing program, and recording medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2015159420A JP6366108B2 (en) | 2015-08-12 | 2015-08-12 | Image processing apparatus, image processing method, image processing program, and recording medium |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2017038292A true JP2017038292A (en) | 2017-02-16 |
JP6366108B2 JP6366108B2 (en) | 2018-08-01 |
Family
ID=58048012
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2015159420A Active JP6366108B2 (en) | 2015-08-12 | 2015-08-12 | Image processing apparatus, image processing method, image processing program, and recording medium |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP6366108B2 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114125304A (en) * | 2021-11-30 | 2022-03-01 | 维沃移动通信有限公司 | Shooting method and device thereof |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH06231254A (en) * | 1993-02-03 | 1994-08-19 | Kokusai Denshin Denwa Co Ltd <Kdd> | High-speed recognition and retrieval method for moving image |
JP2006319578A (en) * | 2005-05-11 | 2006-11-24 | Sharp Corp | Depth direction movement determining device, blurring correction system having the same, and blurring correction method, program, computer readable record medium recording the program, and electronic apparatus equipped with the blurring correction system |
JP2011109644A (en) * | 2009-10-15 | 2011-06-02 | General Electric Co <Ge> | System and method for imaging with enhanced depth of field |
JP2013034208A (en) * | 2012-09-05 | 2013-02-14 | Keyence Corp | Imaging apparatus |
-
2015
- 2015-08-12 JP JP2015159420A patent/JP6366108B2/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH06231254A (en) * | 1993-02-03 | 1994-08-19 | Kokusai Denshin Denwa Co Ltd <Kdd> | High-speed recognition and retrieval method for moving image |
JP2006319578A (en) * | 2005-05-11 | 2006-11-24 | Sharp Corp | Depth direction movement determining device, blurring correction system having the same, and blurring correction method, program, computer readable record medium recording the program, and electronic apparatus equipped with the blurring correction system |
JP2011109644A (en) * | 2009-10-15 | 2011-06-02 | General Electric Co <Ge> | System and method for imaging with enhanced depth of field |
JP2013034208A (en) * | 2012-09-05 | 2013-02-14 | Keyence Corp | Imaging apparatus |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114125304A (en) * | 2021-11-30 | 2022-03-01 | 维沃移动通信有限公司 | Shooting method and device thereof |
CN114125304B (en) * | 2021-11-30 | 2024-04-30 | 维沃移动通信有限公司 | Shooting method and device thereof |
Also Published As
Publication number | Publication date |
---|---|
JP6366108B2 (en) | 2018-08-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP4750859B2 (en) | Data processing apparatus, method, and recording medium | |
JP5281972B2 (en) | Imaging device | |
JP2010139890A (en) | Imaging apparatus | |
JP2012248001A (en) | Image processing apparatus, image processing method, and program | |
JP5886242B2 (en) | Image processing apparatus, image processing method, and image processing program | |
KR100888235B1 (en) | Image processing device and method | |
KR20140109406A (en) | Method of 3d reconstruction of a scene calling upon asynchronous sensors | |
US8908012B2 (en) | Electronic device and method for creating three-dimensional image | |
JP6366108B2 (en) | Image processing apparatus, image processing method, image processing program, and recording medium | |
JP2017220885A (en) | Image processing system, control method, and control program | |
KR101841750B1 (en) | Apparatus and Method for correcting 3D contents by using matching information among images | |
CN117196955A (en) | Panoramic image stitching method and terminal | |
JP2013038454A (en) | Image processor, method, and program | |
JP6690637B2 (en) | Medical observation device, information processing method, program, and video microscope device | |
JPH09237348A (en) | Method for estimating posture of human body | |
WO2016158184A1 (en) | Medical observation device, lens driving control device, lens driving control method, program, and video microscope device | |
JP2005141655A (en) | Three-dimensional modeling apparatus and three-dimensional modeling method | |
JP2005031800A (en) | Thermal image display device | |
JP2008217330A (en) | Speed estimation method and speed estimation program | |
JP5149984B2 (en) | Imaging device | |
JP2013016933A (en) | Terminal device, imaging method, and program | |
JP2019036902A (en) | Video processing apparatus, video processing method, and video processing program | |
CN107516339B (en) | Information processing method and information processing device | |
JP6843319B2 (en) | Information processing equipment, programs and information processing methods | |
JP2013034208A (en) | Imaging apparatus |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20170822 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20180514 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20180522 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20180604 |
|
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: 20180619 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20180628 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 6366108 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
S531 | Written request for registration of change of domicile |
Free format text: JAPANESE INTERMEDIATE CODE: R313531 |
|
R350 | Written notification of registration of transfer |
Free format text: JAPANESE INTERMEDIATE CODE: R350 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |