Adding a filter to only white regions of image.

8 ビュー (過去 30 日間)
voidspecialist
voidspecialist 2021 年 11 月 14 日
コメント済み: voidspecialist 2021 年 11 月 14 日
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.

採用された回答

KALYAN ACHARJYA
KALYAN ACHARJYA 2021 年 11 月 14 日
result_image=gray_image.*bw_image;
%Now you can apply the filter on result_image
  4 件のコメント
KALYAN ACHARJYA
KALYAN ACHARJYA 2021 年 11 月 14 日
You may apply the filter on whole image, and later discard its effect on those 0 pixels??
voidspecialist
voidspecialist 2021 年 11 月 14 日
Is there any way to select the only zeros and apply a filter to that pixels ?

サインインしてコメントする。

その他の回答 (1 件)

Image Analyst
Image Analyst 2021 年 11 月 14 日
Looks like you've already accepted an answer so I guess you got it figured out. But here is where I'd refer you:
locallapfilt
Fast local Laplacian filtering of images
Syntax
Description
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.
  1 件のコメント
voidspecialist
voidspecialist 2021 年 11 月 14 日
Thank you very much.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeImage Filtering and Enhancement についてさらに検索

製品


リリース

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by