imnoise(I,'salt & pepper',rho) but with different proportion of salt and paper

조회 수: 4 (최근 30일)
Alex Dytso
Alex Dytso 2020년 3월 29일
답변: Anurag Agrawal 2020년 4월 1일
imnoise(I,'salt & pepper',rho) adds sal and paper noise to the image I so that rho percent of pixels is corrupted. However, the salt and paper is added in equal proportion. Can this be done such that we can can control also the proportion of salt to paper?
I can build this code myself. However, I was thinking maybe there is aleardy an implementation like that available online.

답변 (1개)

Anurag Agrawal
Anurag Agrawal 2020년 4월 1일
Hi
As of now, I can't find any direct implementation to do that. However, you can consider this file exchange submission :
I hope this will help you.

카테고리

Help CenterFile Exchange에서 Convert Image Type에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by