how to compute Radon transform

2 views (last 30 days)
Elysi Cochin
Elysi Cochin on 12 Feb 2014
Answered: Matt J on 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....

Accepted Answer

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

More Answers (0)

Categories

Find more on Interpolation in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!