how to compute Radon transform
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Elysi Cochin
am 12 Feb. 2014
Beantwortet: Matt J
am 12 Feb. 2014
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....
0 Kommentare
Akzeptierte Antwort
Matt J
am 12 Feb. 2014
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 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Interpolation finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!