代码搜索:Nearest
找到约 1,596 项符合「Nearest」的源代码
代码结果 1,596
www.eeworm.com/read/400577/11573350
m resizem.m
%RESIZEM Mapping for resizing object images in datasets and datafiles
%(outdated, rplaced by im_resize)
%
% B = RESIZEM(A,SIZE,METHOD)
% B = A*RESIZEM([],SIZE,METHOD)
%
% INPUT
% A Dat
www.eeworm.com/read/348214/11605458
m exp2_16.m
%curve interpolation
ys=[0 0.9 0.6 1 0 0.1 -0.3 -0.7 -0.9 -0.2]; %已有的样本点ys
xs=0:length(ys)-1; %已有的样本点xs
x=0:0.1:length(ys)-1;%新的样本点x
y1=interp1(xs,ys,x,'nearest'); %插值产生新的样本点y1
y2=interp1(xs,ys,
www.eeworm.com/read/261326/11654404
m exp2_16.m
%curve interpolation
ys=[0 0.9 0.6 1 0 0.1 -0.3 -0.7 -0.9 -0.2]; %已有的样本点ys
xs=0:length(ys)-1; %已有的样本点xs
x=0:0.1:length(ys)-1;%新的样本点x
y1=interp1(xs,ys,x,'nearest'); %插值产生新的样本点y1
y2=interp1(xs,ys,
www.eeworm.com/read/157737/11667272
m chazhi.m
%%program chazhi.m
x=0:10; y=sin(x); xi=0:.25:10;
yi1=interp1(x,y,xi,'nearest');
yi2=interp1(x,y,xi,'linear');
yi3=interp1(x,y,xi,'spline');
yi4=interp1(x,y,xi,'cubic');
subplot(2,2,1)
plot(xi,
www.eeworm.com/read/260913/11686925
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/157533/11694165
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/157533/11694169
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/346715/11728781
java relieffattributeeval.java
/*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either vers
www.eeworm.com/read/346367/11752709
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/156874/11758088
txt 10-10.txt
%例10-10 switch - case - otherwise - end分支语句的使用。
function lower1(method)
switch method
case {'linear','bilinear'}
disp('Method is linear')
case 'cubic'