필터 지우기
필터 지우기

how to compute Radon transform

조회 수: 1 (최근 30일)
Elysi Cochin
Elysi Cochin 2014년 2월 12일
답변: Matt J 2014년 2월 12일
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