代码搜索:Nearest
找到约 1,596 项符合「Nearest」的源代码
代码结果 1,596
www.eeworm.com/read/160256/10548727
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/423552/10550921
m mfbox_pkmeans.m
function [centroids,clusters,err,qerrs]=mfbox_pkmeans(method,D,n,epochs,verbose)
% k-means clustering method in projective space
%
% [centroids,clusters,err,qerrs] = mfbox_pkmeans(method,D,n[,epochs
www.eeworm.com/read/350382/10745866
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/349839/10797149
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/275728/10799144
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/417350/10993571
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/417309/10995515
txt 05-09.txt
>> x=0:0.5:10;
>> y=cos(x);
>> y1=cos(x1);
>> y2=interp1(x,y,x1,'nearest') %没有制定外插算法,估值都返回NaN
>> y2=interp1(x,y,x1,'nearest','extrap') %指明插值算法也用于外插运算
>> y3=interp1(x,y,x1,'linear','ext
www.eeworm.com/read/271255/11001697
m gobad.m
close all; clear; clc;
%J=imread('cmanJ.tif');
J=imread('b.tif');
se = translate(strel(1), [30 20]);
J = imdilate(I,se);
J = imrotate(J,45,'nearest','crop');
%imwrite(J,'cmanJother.tif');
ims
www.eeworm.com/read/417000/11007606
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/270432/11038731
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,