Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6172629
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T23:25:38+00:00 2026-05-23T23:25:38+00:00

I have an assignment to implement a Ram-Lak filter, but nearly no information given

  • 0

I have an assignment to implement a Ram-Lak filter, but nearly no information given on it (except look at fft, ifft, fftshift, ifftshift).

I have a sinogram that I have to filter via Ram-Lak. Also the number of projections is given.

I try to use the filter

                      1/4              if I == 0

(b^2)/(2*pi^2)  *     0                if I even

                      -1/(pi^2 * I^2)  if I odd

b seems to be the cut-off frequency, I has something to do with the sampling rate?

Also it is said that the convolution of two functions is a simple multiplication in Fourier space.

I do not understand how to implement the filter at all, especially with no b given, not told what I is and no idea how to apply this to the sinogram, I hope someone can help me here. I spent 2hrs googling and trying to understand what is needed to do here, but I could not understand how to implement it.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T23:25:40+00:00Added an answer on May 23, 2026 at 11:25 pm

    The formula you listed is an intermediate result if you wanted to do an inverse Radon transform without filtering in the Fourier domain. An alternative is to do the entire filtered back projection algorithm using convolution in the spatial domain, which might have been faster 40 years ago; you would eventually rederive the formula you posted. However, I wouldn’t recommended it now, especially not for your first reconstruction; you should really understand the Hilbert transform first.

    Anyway, here’s some Matlab code which does the obligatory Shepp-Logan phantom filtered back projection reconstruction. I show how you can do your own filtering with the Ram-Lak filter. If I was really motivated, I would replace radon/iradon with some interp2 commands and summations.


    phantomData=phantom();

    N=size(phantomData,1);
    
    theta = 0:179;
    N_theta = length(theta);
    [R,xp] = radon(phantomData,theta);
    
    % make a Ram-Lak filter. it's just abs(f).
    N1 = length(xp);
    freqs=linspace(-1, 1, N1).';
    myFilter = abs( freqs );
    myFilter = repmat(myFilter, [1 N_theta]);
    
    % do my own FT domain filtering
    ft_R = fftshift(fft(R,[],1),1);
    filteredProj = ft_R .* myFilter;
    filteredProj = ifftshift(filteredProj,1);
    ift_R = real(ifft(filteredProj,[],1));
    
    % tell matlab to do inverse FBP without a filter
    I1 = iradon(ift_R, theta, 'linear', 'none', 1.0, N);
    
    subplot(1,3,1);imagesc( real(I1) ); title('Manual filtering')
    colormap(gray(256)); axis image; axis off
    
    % for comparison, ask matlab to use their Ram-Lak filter implementation
    I2 = iradon(R, theta, 'linear', 'Ram-Lak', 1.0, N);
    
    subplot(1,3,2);imagesc( real(I2) ); title('Matlab filtering')
    colormap(gray(256)); axis image; axis off
    
    % for fun, redo the filtering wrong on purpose
    % exclude high frequencies to create a low-resolution reconstruction
    myFilter( myFilter > 0.1 ) = 0;
    ift_R = real(ifft(ifftshift(ft_R .* myFilter,1),[],1));
    I3 = iradon(ift_R, theta, 'linear', 'none', 1.0, N);
    
    subplot(1,3,3);imagesc( real(I3) ); title('Low resolution filtering')
    colormap(gray(256)); axis image; axis off
    

    Demonstration of manual filtering

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

For a school assignment I have to write x86 assembly code, except I can't
I have an assignment that requires us to implement a doubly linked list class.
for a programming assignment I have been asked to implement a solution to the
For an assignment I have to make a multi-agent system (very open ended, but
I have an assignment where I need to implement church numerals in SML using
I have an assignment in a language-independent class, and part of it is using
So I am being taught assembly and we have an assignment which is to
For my assignment I have been assigned the task of creating a DTD for
I currently have a school assignment that involves both PHP and asp.net. Now the
For my university assignment I have to design some basic managment system for sicknesses

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.