当前位置:网站首页>Matlab drawing checkerboard (camera calibration)
Matlab drawing checkerboard (camera calibration)
2022-06-26 08:46:00 【NBb-666】
MATLAB The 3D graphics made have a default view angle , You can usually control the view by using the camera toolbar ( For details, please refer to MATLAB help ). The most intuitive calibration of the camera is done by the checkerboard . Use here fill3 Function to draw a checkerboard :
function [] = chessborad(d,h,n,m)
% d Control the distribution of checkerboards
% n,m Control the length and width of the checkerboard respectively
hold on
z = [h h h h h]; % The height position of the checkerboard in the coordinate system
for i = -n:d:n
for j = -m:d:m
x = [i-d/2 i+d/2 i+d/2 i-d/2 i-d/2];
y = [j-d/2 j-d/2 j+d/2 j+d/2 j-d/2];
if mod(i+j,2)==0
c = [0 0 0];
else
c = [1 1 1];
end
s = fill3(x,y,z,c,'Edgecolor','none');
alpha(s,.3);
hold on
end
end
axis equal off
% camera settings View the checker's response to the camera
campos([0 -11 15])
camtarget([0 -1 0.5])
camlight(0,70)
camzoom(1.5)
camproj('perspective')
end
Input in the command line window
chessborad(1,0,20,20);
Available 
边栏推荐
- ZLMediaKit推流拉流测试
- Embedded Software Engineer (6-15k) written examination interview experience sharing (fresh graduates)
- GHUnit: Unit Testing Objective-C for the iPhone
- Parameter understanding of quad dataloader in yolov5
- Exploration of webots and ROS joint simulation (I): software installation
- Zlmediakit push pull flow test
- Deploy wiki system Wiki in kubesphere JS and enable Chinese full-text retrieval
- What is Qi certification Qi certification process
- Software engineering - personal assignment - question review and personal summary
- Using transformers of hugging face to realize named entity recognition
猜你喜欢

Whale conference provides digital upgrade scheme for the event site

Comparison between Apple Wireless charging scheme and 5W wireless charging scheme

关于极客时间 | MySQL实战45讲的部分总结

Digital image processing learning (II): Gaussian low pass filter

Relation extraction model -- spit model

Opencv learning notes II

Compiling owncloud client on win10

XXL job configuration alarm email notification

Koa_mySQL_Ts 的整合

Use a switch to control the lighting and extinguishing of LEP lamp
随机推荐
Addition of attention function in yolov5
批量执行SQL文件
Using MySQL and Qt5 to develop takeout management system (I): environment configuration
Using transformers of hugging face to realize multi label text classification
Fourier transform of image
在 KubeSphere 部署 Wiki 系统 wiki.js 并启用中文全文检索
Recovering the system with Clonezilla USB disk
How to Use Instruments in Xcode
KNN resolution
Degree of freedom analysis_ nanyangjx
STM32 project design: smart door lock PCB and source code based on stm32f1 (4 unlocking methods)
Whale conference provides digital upgrade scheme for the event site
Partial summary of 45 lectures on geek time MySQL
在同花顺开户证券安全吗,
Discrete device ~ diode triode
Object extraction_ nanyangjx
Exploration of webots and ROS joint simulation (I): software installation
drf的相关知识
Convex optimization of quadruped
Is it safe to open an account in flush,