关于图像的中心平移问题
dirname='.\new\00002.txt';channelnum = 4;
datafile = fopen(dirname);
data_tmp = fread(datafile,'integer*2');
fclose(datafile);
data = zeros(channelnum,length(data_tmp)/channelnum);
for i = 1:channelnum
data(i,:) = (data_tmp(i:channelnum:end)).';
data(i,:) = data(i,:)-mean(data(i,:));
end
data_pro = data(4,:);
data_len = 6400;
figure;plot(data_pro);
这段程序中怎么将图像的中心平移到原点,也就是左移3200个单位,最好有程序阿
[ 本帖最后由 eight 于 2008-1-7 09:27 编辑 ] 图像和矩阵的平移有专门的指令fftshift
页:
[1]