Ideal low-pass filter in the Frequency Domain
The rule should be something like this i suppose $$D(|U - U_o/2|,|V - V_o/2|)≤ D0$$ where $U_o$ is the length of image in horizontal dimension and $V_o$ is the length of image in vertical dimension