MATLAB Answers

Perform operations on non-zero locations of the matrix

1 view (last 30 days)
lech king
lech king on 8 Oct 2020
Commented: Ameer Hamza on 8 Oct 2020
pic1=rgb2gray(pic);
pic2 = imnoise(pic1,'salt & pepper',0.05);
%%%%%%%Hard Thresholding%%%%%%
Container=pic2>80;
Container=uint8(Container);
pic3=pic2.*Container;
Hi
this is my Hard Thresholding in pic3
now i want Soft Thresholding by subtracting the places have non-zero values in pic3 from 80 without using a loop
Thanks for your guidance

  0 Comments

Sign in to comment.

Accepted Answer

More Answers (0)

Products


Release

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by