Code covered by the BSD License  

Highlights from
Filter noise and interpolate microscopy images in frequency domain

image thumbnail

Filter noise and interpolate microscopy images in frequency domain

by

 

07 Feb 2013 (Updated )

Remove spatial frequencies beyond the optical cutoff and perform physically accurate interpolation.

y=jinc(r)
function y=jinc(r)
% y=jinc(r) returns the jinc function [J1(2*pi*r)/(2*pi*r)] evaluated
% at r. Per this definition, the first zero of jinc function is at 0.61.

y=real(2*besselj(1,2*pi*r)./ (2*pi*r)); 
%Imaginary parts due to numerical error are of order 1E-16. 

%Division by zero leads to NaN.
y(isnan(y))=1;

end

Contact us