In this work, we present a novel quantum algorithm for edge detection in digital grayscale images. The proposed algorithm relies on the quantum advantage obtained by performing a Quantum Walsh-Hadamard Transform (QWHT) over the Quantum Fourier Transform (QFT), which is generally preferred for decomposing images into orthogonal basis functions. This is because for an n-qubit system, the circuit depth required to perform a QWHT has a polynomial advantage over the circuit depth required for QFT. We adopt the Quantum Probability Image Encoding (QPIE) as our quantum image representation, inspired by the Quantum Hadamard Edge Detection (QHED) algorithm. In addition to the data qubits required for image encoding, we would require ancilla qubits to perform high-pass filtering. The ancilla qubits segregate high sequencies and low sequencies in the Walsh domain. Postselecting the ancilla qubits, we obtain a state vector containing information about the edges in an image. The proposed algorithm has a polynomial advantage over the QHED approach. We present computational examples to validate the algorithm’s capability in accurately detecting edges in a given image.