The overall complexity of the pixel selection is finally
$\theta(n^2 +2 \times 343^2 + 2\times 343^2 \times n^2 + 2 \times n^2 \ln(n))$, \textit{i.e},
$\theta(2 \times n^2(343^2 + \ln(n)))$.
The overall complexity of the pixel selection is finally
$\theta(n^2 +2 \times 343^2 + 2\times 343^2 \times n^2 + 2 \times n^2 \ln(n))$, \textit{i.e},
$\theta(2 \times n^2(343^2 + \ln(n)))$.