What is the frequency response of binning 2x2 pixels into 1 pixel in software? Can the binning introduce aliasing?
Since the Fourier of the 2D boxcar function is a 2D sinc I would intuitively think that the sharp edges of the 2x2 filter would cause ringing in the frequency domain?
Would it not be better to window this filter? E.g. use a 4x4 filter with low weights along the edge and higher weights inside the 2x2 core?
Consider a greyscale image: $I(x_i,y_j)$ where $0 < i < 2*m$ and $0 < j < 2*n$.
Bin together 2x2 pixels:
$$\begin{align}
I_b(x_I,y_J) =\ & 0.25\ [I(2x_I,2y_J)+I(2x_I+1,2y_J)+ \\ &I(2x_I,2y_J+1)+I(2x_I+1,2y_J+1)]
\end{align} \tag 1$$
where $0 < I < m$ and $0 < J < n$.
The two dimensional frequency of the image before binning: $F(u,v)$.
The two dimensional frequency of the image after binning: $F_b(u,v)$.
What is $$H(u,v)=F(u,v)/F_b(u,v) ?\tag 2 $$