How to set a threshold in data

I have a 3D images stored in a matrix A. Some pixels are outliers and I want to put a threshold.
When the value at particular pixel is bigger than 300 then set it to 300.
Can anyone help with that?

类别

在 帮助中心 和 File Exchange 中查找有关 Image Processing Toolbox 的更多信息

提问:

2019-3-25

回答:

2019-3-25

Community Treasure Hunt

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

Start Hunting!

Translated by