Laplace Filter

This is a filtering method used to identify and highlight fine edges based on the 2nd derivative.

laplace_filter(img, k, scale, device, debug=None)

returns device, filtered image

Input grayscale image

Screenshot

from plantcv import plantcv as pcv

# Apply to a grayscale image
# Filtered image will highlight areas of rapid pixel intensity change
device, lp_img = pcv.laplace_filter(img, 1, 1, device, debug="print")

Image after Laplace filter

Screenshot