I am trying to implement image-gradients from scratch. I understand that there are multiple ways to do it (including Sobel and other filters). My question is