金子邦彦研究室インストールオープンデータ,データファイル処理パノラマ画像

パノラマ画像

前準備

curl のインストール

ここで説明のためにサンプルとして使用する画像

curl コマンドを用いてダウンロードできる.あるいは Web ブラウザでもダウンロードできる.

curl -L https://github.com/opencv/opencv_extra/raw/4.x/testdata/stitching/boat1.jpg?raw=true -o boat1.jpg
curl -L https://github.com/opencv/opencv_extra/raw/4.x/testdata/stitching/boat2.jpg?raw=true -o boat2.jpg
curl -L https://github.com/opencv/opencv_extra/raw/4.x/testdata/stitching/boat3.jpg?raw=true -o boat3.jpg
curl -L https://github.com/opencv/opencv_extra/raw/4.x/testdata/stitching/boat4.jpg?raw=true -o boat4.jpg
curl -L https://github.com/opencv/opencv_extra/raw/4.x/testdata/stitching/boat5.jpg?raw=true -o boat5.jpg
curl -L https://github.com/opencv/opencv_extra/raw/4.x/testdata/stitching/boat6.jpg?raw=true -o boat6.jpg

複数画像からのパノラマ画像の生成ツール Hugin

  1. Hugin のインストール

    Windows の場合は, https://hugin.sourceforge.io/

    Ubuntu の場合は, 次のコマンドを実行.

    sudo add-apt-repository ppa:ubuntuhandbook1/apps
    sudo apt -y install hugin hugin-tools
    
  2. Hugin を起動する

    ファイル名を指定している.あとで,Hugin の画面で,ファイルを読み込むこともできる.

    hugin boat*.jpg
    

    [image]
  3. 「配置」をクリック
  4. 「パノラマを作成」をクリック

    その後は,画面の指示に従う

  5. .tif ファイルができるので確認