当前位置:网站首页>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 
边栏推荐
- Nebula diagram_ Object detection and measurement_ nanyangjx
- Deploy wiki system Wiki in kubesphere JS and enable Chinese full-text retrieval
- 批量执行SQL文件
- Mapping '/var/mobile/Library/Caches/com. apple. keyboards/images/tmp. gcyBAl37' failed: 'Invalid argume
- Record the problem yaml file contains Chinese message 'GBK' error
- Design of reverse five times voltage amplifier circuit
- Learning signal integrity from scratch (SIPI) -- 3 challenges faced by Si and Si based design methods
- Polka lines code recurrence
- CodeBlocks integrated Objective-C development
- GHUnit: Unit Testing Objective-C for the iPhone
猜你喜欢

Euler function: find the number of numbers less than or equal to N and coprime with n

Embedded Software Engineer (6-15k) written examination interview experience sharing (fresh graduates)

Principle of playing card image segmentation

opencv学习笔记三

Stream analysis of hevc learning

Intra class data member initialization of static const and static constexpr

Relationship extraction --tplinker

Structure diagram of target detection network

Convex optimization of quadruped

Cause analysis of serial communication overshoot and method of termination
随机推荐
STM32 project design: an e-reader making tutorial based on stm32f4
Recyclerview item gets the current position according to the X and Y coordinates
Relationship extraction -- casrel
[unity mirror] use of networkteam
2020-10-29
STM32 porting mpu6050/9250 DMP official library (motion_driver_6.12) modifying and porting DMP simple tutorial
Embedded Software Engineer (6-15k) written examination interview experience sharing (fresh graduates)
ZLMediaKit推流拉流测试
Timer code guide in optee
pgsql_ UDF01_ jx
1GHz active probe DIY
Apple motherboard decoding chip, lightning Apple motherboard decoding I.C
软件工程-个人作业-提问回顾与个人总结
Use a switch to control the lighting and extinguishing of LEP lamp
Formula understanding in quadruped control
optee中的timer代码导读
Esp8266wifi module tutorial: punctual atom atk-esp8266 for network communication, single chip microcomputer and computer, single chip microcomputer and mobile phone to send data
nn. Modulelist and nn Sequential
Jupyter的安装
Using transformers of hugging face to realize text classification