Main Content

カメラのキャリブレーション

ピンホール カメラ モデルと魚眼カメラ モデルを使用して、単一カメラまたはステレオ カメラをキャリブレーションし、カメラの内部パラメーター、外部パラメーター、および歪みパラメーターを推定する

"カメラのキャリブレーション" は、キャリブレーション パターンを含むイメージを使用してカメラのパラメーターを推定する処理のことです。パラメーターには、カメラの内部パラメーター、歪み係数およびカメラの外部パラメーターがあります。これらのカメラ パラメーターは、イメージからのレンズ歪み効果の除去、平面オブジェクトの測定、複数のカメラからの 3 次元シーンの再構成およびその他のコンピューター ビジョン アプリケーションの実行に使用します。

カメラ キャリブレーター アプリと関数を使用して、単一カメラの内部パラメーター、外部パラメーター、およびレンズ歪みパラメーターを推定します。

ステレオ カメラ キャリブレーター アプリと関数を使用して、ステレオ カメラ ペアの両方のカメラのパラメーター、相対位置、方向を推定します。その後、カメラを使ってイメージから深度を復元します。また、1 番目のカメラを基準とした 2 番目のカメラの相対的な位置と方向も計算します。

Calibration patterns

アプリ

カメラ キャリブレーター単一カメラの幾何学的パラメーターの推定
ステレオ カメラ キャリブレーターステレオ カメラの幾何学的パラメーターの推定

関数

すべて展開する

detectCheckerboardPointsイメージ内のチェッカーボード パターンの検出
generateCheckerboardPointsチェッカーボード コーナーの位置の生成
detectCircleGridPointsDetect circle grid pattern in images (R2021b 以降)
generateCircleGridPointsGenerate circle grid point locations (R2021b 以降)
vision.calibration.PatternDetectorInterface for defining custom planar pattern detectors (R2021b 以降)

ピンホール カメラ

estimateCameraParameters単一カメラまたはステレオ カメラをキャリブレーションします。
estimateCameraProjectionEstimate camera projection matrix from world-to-image point correspondences (R2022b 以降)

魚眼カメラ

estimateFisheyeParameters魚眼カメラのキャリブレーション

ステレオ カメラ

estimateStereoBaselineEstimate baseline of stereo camera

単一カメラ

cameraParametersカメラ パラメーターを格納するオブジェクト
cameraIntrinsics内部カメラ パラメーターを格納するオブジェクト
cameraProjectionカメラ射影行列 (R2022b 以降)

魚眼カメラ

fisheyeIntrinsicsObject for storing intrinsic fisheye camera parameters
fisheyeParametersObject for storing fisheye camera parameters

ステレオ カメラ

stereoParametersステレオ カメラ システムのパラメーターを格納するオブジェクト

誤差メトリクス

cameraCalibrationErrorsObject for storing standard errors of estimated camera parameters
stereoCalibrationErrorsObject for storing standard errors of estimated stereo parameters
extrinsicsEstimationErrorsObject for storing standard errors of estimated camera extrinsics and distortion coefficients
intrinsicsEstimationErrorsObject for storing standard errors of estimated camera intrinsics and distortion coefficients
fisheyeCalibrationErrorsObject for storing standard errors of estimated fisheye camera parameters
fisheyeIntrinsicsEstimationErrorsObject for storing standard errors of estimated fisheye camera intrinsics

ピンホール カメラ

undistortImageイメージのレンズ歪みの修正
undistortPointsレンズ歪みの点座標の修正

魚眼カメラ

undistortFisheyeImage魚眼イメージのレンズ歪みの修正
undistortFisheyePointsCorrect point coordinates for fisheye lens distortion
pcshow3 次元点群のプロット
plotCamera3 次元座標でのカメラのプロット
showExtrinsicsVisualize extrinsic camera parameters
showReprojectionErrorsVisualize calibration errors
stereoAnaglyphCreate red-cyan anaglyph from stereo pair of images
estimateExtrinsicsキャリブレーションされたカメラの位置の計算 (R2022b 以降)
extr2poseConvert extrinsics to camera pose (R2022b 以降)
pose2extrConvert camera pose to extrinsics (R2022b 以降)
estrelposeカメラの姿勢間の相対的な回転と並進の計算 (R2022b 以降)
rotmat2vec3d3 次元回転行列から回転ベクトルへの変換 (R2022b 以降)
rotvec2mat3d3 次元回転ベクトルから回転行列への変換 (R2022b 以降)
cameraIntrinsicsToOpenCVConvert camera intrinsic parameters from MATLAB to OpenCV (R2021b 以降)
cameraIntrinsicsFromOpenCVConvert camera intrinsic parameters from OpenCV to MATLAB (R2021b 以降)
stereoParametersToOpenCVConvert stereo camera parameters from MATLAB to OpenCV (R2021b 以降)
stereoParametersFromOpenCVConvert stereo camera parameters from OpenCV to MATLAB (R2021b 以降)

トピック