代码搜索:Nearest
找到约 1,596 项符合「Nearest」的源代码
代码结果 1,596
www.eeworm.com/read/219349/14887054
m examp8_1.m
x=0:.12:1;
y=(x.^2-3*x+5).*exp(-5*x).*sin(x); plot(x,y,x,y,'o')
x1=0:.02:1; y0=(x1.^2-3*x1+5).*exp(-5*x1).*sin(x1);
y1=interp1(x,y,x1); y2=interp1(x,y,x1,'cubic');
y3=interp1(x,y,x1,'spline'); y
www.eeworm.com/read/117859/14902024
m odd.m
function y=odd(x);
%ODD Round towards nearest odd value.
% Y=ODD(X) rounds each element of X towards the nearest odd
% integer value. If an element of X is even, ODD adds +1 to
% this value. X can b
www.eeworm.com/read/216389/15015593
txt 10-10.txt
%例10-10 switch - case - otherwise - end分支语句的使用。
function lower1(method)
switch method
case {'linear','bilinear'}
disp('Method is linear')
case 'cubic'
www.eeworm.com/read/216263/15022215
m odd.m
function y=odd(x);
%ODD Round towards nearest odd value.
% Y=ODD(X) rounds each element of X towards the nearest odd
% integer value. If an element of X is even, ODD adds +1 to
% this value. X can b
www.eeworm.com/read/215709/15051694
m odd.m
function y=odd(x);
%ODD Round towards nearest odd value.
% Y=ODD(X) rounds each element of X towards the nearest odd
% integer value. If an element of X is even, ODD adds +1 to
% this value. X can b
www.eeworm.com/read/114384/15055461
m example5_1.m
I=imread('rice.tif');
imshow(I);
I1=imresize(I,1.5,'nearest neighber'); %最近邻插值
figure,imshow(I1);
I2=imresize(I,1.5,'bilibear'); %双线形插值
figure,imshow(I2);
I3=imresize(I,1.5,'bicubic'); %双三次插值
www.eeworm.com/read/114384/15055463
m example5_2.m
I=imread('eight.tif');
I1=imrotate(I,30,'bilinear','crop');
I2=imrotate(I,30,'nearest neighber');
imshow(I);
figure,imshow(I1);
figure,imshow(I2);
www.eeworm.com/read/215321/15065268
m ch3_2_5.m
A = imread('moon.tif');
resamp = makeresampler({'nearest','cubic'},'fill');
stretch = maketform('affine',[1 0; 0 1.3; 0 0]);
B = imtransform(A,stretch,resamp);
www.eeworm.com/read/212307/15160128
m knnfwd.m
function [y, l] = knnfwd(net, x)
%KNNFWD Forward propagation through a K-nearest-neighbour classifier.
%
% Description
% [Y, L] = KNNFWD(NET, X) takes a matrix X of input vectors (one vector
% per ro
www.eeworm.com/read/211973/15168988
m example5_1.m
I=imread('rice.tif');
imshow(I);
I1=imresize(I,1.5,'nearest neighber'); %最近邻插值
figure,imshow(I1);
I2=imresize(I,1.5,'bilibear'); %双线形插值
figure,imshow(I2);
I3=imresize(I,1.5,'bicubic'); %双三次插值