Adding a filter to only white regions of image.

5 views (last 30 days)
Hello, i have grayscale image and black and white image of the grayscale image. I want to add laplace filter to grayscale image pixels where the pixel's values are 1 in black and white image. How can i do this.

Accepted Answer

KALYAN ACHARJYA on 14 Nov 2021
%Now you can apply the filter on result_image
voidspecialist on 14 Nov 2021
Is there any way to select the only zeros and apply a filter to that pixels ?

Sign in to comment.

More Answers (1)

Image Analyst
Image Analyst on 14 Nov 2021
Looks like you've already accepted an answer so I guess you got it figured out. But here is where I'd refer you:
Fast local Laplacian filtering of images
B = locallapfilt(I,sigma,alpha) filters the grayscale or RGB image I with an edge-aware, fast local Laplacian filter. sigma characterizes the amplitude of edges in I. alpha controls smoothing of details.
B = locallapfilt(I,sigma,alpha,beta) filters the image using beta to control the dynamic range of A.
B = locallapfilt(___,Name,Value) uses name-value pairs to control advanced aspects of the filter.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by