Azzera filtri
Azzera filtri

how to compute Radon transform

1 visualizzazione (ultimi 30 giorni)
Elysi Cochin
Elysi Cochin il 12 Feb 2014
Risposto: Matt J il 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....

Risposta accettata

Matt J
Matt J il 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);

Più risposte (0)

Community Treasure Hunt

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

Start Hunting!

Translated by