apt-getでOpenCV

10月にリリースされた、Ubuntu 12.10を入れてみた。
毎回のことだが、OpenCVインストールなどの開発環境を整える作業。

sudo apt-get install libopencv- でTabキーを押したら、
libopencv-calib3d-dev libopencv-flann-dev libopencv-legacy2.3 libopencv-calib3d2.3 libopencv-flann2.3 libopencv-ml-dev
libopencv-contrib-dev libopencv-gpu-dev libopencv-ml2.3
libopencv-contrib2.3 libopencv-gpu2.3 libopencv-objdetect-dev
libopencv-core-dev libopencv-highgui-dev libopencv-objdetect2.3
libopencv-core2.3 libopencv-highgui2.3 libopencv-video-dev
libopencv-dev libopencv-imgproc-dev libopencv-video2.3
libopencv-features2d-dev libopencv-imgproc2.3
libopencv-features2d2.3 libopencv-legacy-dev

と表示された。libopencv-gpu-devとかも入ってる!?なので、

sudo apt-get install "libopencv-.*-dev"

で一発インストール。