how to compute Radon transform

1 次查看(过去 30 天)
I wanted to "compute Radon transform with a resolution of 30 with six bins each, creating a compact feature vector of dimension 36"
Please can someone help me how to do it... i tried the radon function in matlab.... but i get an output getter than dimension 36...
R = radon(ROI,30);
please can someone correct it for me how to do it.... please do reply....

采纳的回答

Matt J
Matt J 2014-2-12
You can downsample the result with the following
function M=downsampn(M,bindims)
%DOWNSAMPN - simple tool for downsampling n-dimensional nonsparse arrays
%
% M=downsampn(M,bindims)
%
%in:
%
% M: an array
% bindims: a vector of integer binning dimensions
%
%out:
%
% M: the downsized array
nn=length(bindims);
[sz{1:nn}]=size(M); %M is the original array
sz=[sz{:}];
newdims=sz./bindims;
args=num2cell([bindims;newdims]);
M=reshape(M,args{:});
for ii=1:nn
M=mean(M,2*ii-1);
end
M=reshape(M,newdims);

更多回答(0 个)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by