Question about how to create cameraparams object

조회 수: 1 (최근 30일)
Aman Singh
Aman Singh 2018년 7월 23일
편집: Florian Morsch 2018년 7월 23일
I am trying to use pointsToWorld https://www.mathworks.com/help/vision/ref/cameraparameters.pointstoworld.html#d119e170063 I am wondering how to create the cameraParameters object; I have all the necessary values. https://www.mathworks.com/help/vision/ref/cameraparameters.html
Thanks

답변 (1개)

Florian Morsch
Florian Morsch 2018년 7월 23일
편집: Florian Morsch 2018년 7월 23일
You already linked the answer to your question: https://www.mathworks.com/help/vision/ref/cameraparameters.html
If you get the camera parameters with the Camera Calibrator App from MATLAB you can save the parameters as object directly to workspace and from there to a .m-file.
If you have the parameters yourself, just build the camera parameter object with the syntax in the link:
cameraParams = cameraParameters(Name,Value)
where Name is is your properties and Value the value of the properties. For example:
cameraParams = cameraParameters('ImageSize',YourImageSize, 'RadialDistortion', YourRadialDistortion, 'TangentialDistortion', YourTangentialDistortion,...and so on).
There is already a example at the end of the link.

카테고리

Help CenterFile Exchange에서 MATLAB Support Package for IP Cameras에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by