What are the inputs to the ridgelet functions??

function rt = ridgelet( x, L, md )
%x=imread('C:\Users\Public\Pictures\Sample Pictures\test.jpg');
%L=10;
%md=0;
%pt1=11;
%pt2=12;
if ~exist( 'md', 'var' ) md = 0; end
[l1, l2] = size( x );
if rem( l1,2 ) == 0 && rem( l2,2 ) == 0
pt1 = l1 + 1;
pt2 = l2 + 1;
end
yr = fft2( x, pt1, pt2 );
yp = cart_2_rectopolar( yr );
l = size( yp, 1 );
if md == 0
rt = fft_iso_dwt( yp(1,:), L, md );
elseif md == 1
rt = cell(l,1);
rt{1} = fft_iso_dwt( yp(1,:), L, md );
end
for jj = 2:l
if md == 0
rt(jj,:) = fft_iso_dwt( yp(jj,:), L, md );
elseif md == 1
rt{jj} = fft_iso_dwt( yp(jj,:), L, md );
end
imshow(rt);
end

Réponses (1)

Abhipsa
Abhipsa le 20 Juin 2025

0 votes

The inputs for the "ridgelet" function can be deduced as follows:
  • X = Input image of square size
  • L = Nunber of scales in ridgelet function
  • md = if 1, o/p is a cell ; if 0, o/p is a vector
You can refer to the below MathWorks File Exchange link for more information about "ridgelet" function:
After navigating to the above webpage, please navigate to the Functions tab, from the "curvelet_first_generation/", select the "ridgelet" function, then the relevant source code with appear.
This source code is very well-document along with relevant comments, which captures the information on the expected inputs and outputs of the function.
I hope this helps you.

Catégories

En savoir plus sur Mathematics and Optimization dans Centre d'aide et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by