- counting dx & dy parameters of luminance matrix
- filling zero values with ones