shading 源代码

渐晕效应是指在光学系统中,当远离光轴的物点成像时,由于光阑的存在,使能够到达像面上的光束逐渐变得窄小起来,结果使离轴的像点逐渐变暗,这个过程叫做渐晕效应。为了使像平面内视场边界清晰,可以把视场光阑放在物平面、物的中间实像位置或像平面上。[1]

收录资源 500 份 全站深度检索
源码文件

function shili27 h0=figure('toolbar','none',... 'position',[200 150 450 350],... 'name','实例27'); subplot(2,2,1) spher…

源码文件

h0=figure('toolbar','none',... 'position',[198 56 450 468],... 'name','实例56'); h1=axes('parent',h0,... 'position',…

源码文件

function shili27 h0=figure('toolbar','none',... 'position',[200 150 450 350],... 'name','实例27'); subplot(2,2,1) spher…

源码文件

function Surface_Callback(hObject, eventdata, handles) file=get(handles.edit1,'string'); % 得到图像文件名和路径 X=imread(file);…

源码文件

>> surf(Z,'FaceColor','interp','FaceLighting','phong') >> camlight right %在右上方视角方向增加入射光 >> colormap hot %色…

源码文件

clear all; % 清空内存 close all; % 关闭窗口 clc; % 英文Clear Command Window的缩写,清空命令窗口 % 上面的…

源码文件

clear clc [X0,Y0,Z0]=sphere(30); %产生单位球面的三维坐标 X=2*X0;Y=2*Y0;Z=2*Z0; %产生半径为2的球面的三维坐标 clf subplot(1,2,1); surf(X0…

源码文件

[x,y,z]=sphere(20); subplot(1,2,1); surf(x,y,z);axis equal; light('Posi',[0,1,1]); shading interp; hold on; plot3(0,1,1,'p')…

源码文件

[x,y,z]=sphere(20); colormap(copper); subplot(1,3,1); surf(x,y,z); axis equal subplot(1,3,2); surf(x,y,z);shading flat; axi…

源码文件

[x,y]=meshgrid(-5:0.1:5); z=cos(x).*cos(y).*exp(-sqrt(x.^2+y.^2)/4); surf(x,y,z);shading interp; pause %程序暂停 i…