Gradient Based Edge Detection. The gradient method detects the edges by looking for the maximum and minimum in the first derivative of the image. When the gradient is above the threshold there is object in the image. The popular edge detection operat