Laplace Filter

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

plantcv.laplace_filter(gray_img, k, scale)

returns filtered image

Input grayscale image

Screenshot

from plantcv import plantcv as pcv

# Set global debug behavior to None (default), "print" (to file), or "plot" (Jupyter Notebooks or X11)
pcv.params.debug = "print"

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

Image after Laplace filter

Screenshot