skimage2.filters.prewitt_v#

skimage2.filters.prewitt_v(image, mask=None)[source]#

Find the vertical edges of an image using the Prewitt transform.

Parameters:
imagendarray of shape (M, N)

Image to process.

maskndarray of shape (M, N), optional

An optional mask to limit the application to a certain area. Note that pixels surrounding masked regions are also masked to prevent masked regions from affecting the result.

Returns:
outputndarray of shape (M, N) and dtype float

The Prewitt edge map.

Notes

We use the following kernel:

1/3   0  -1/3
1/3   0  -1/3
1/3   0  -1/3