フィルターのクリア

Change Pixel intensity value

2 ビュー (過去 30 日間)
Pugazhendhi
Pugazhendhi 2012 年 2 月 21 日
コメント済み: Image Analyst 2018 年 2 月 17 日
Hi all,
I have an image(gray scale) whose pixel intensity values ranges from -0.5373 to 0.4744. I would like to change the intensity value which is lesser than 0 to 0. Can any one help me to solve this.
Thanks.

採用された回答

Honglei Chen
Honglei Chen 2012 年 2 月 21 日
Say your image is x,
x(x<0) = 0;
  5 件のコメント
Honglei Chen
Honglei Chen 2012 年 2 月 21 日
I'm just making an example, make sure there are negative numbers in x.
Image Analyst
Image Analyst 2012 年 2 月 22 日
No, you don't need all that reshaping stuff. "x(x<0)=0" is sufficient to work on the whole 3D matrix (e.g., a color image) - no reshaping is needed.

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

その他の回答 (2 件)

Walter Roberson
Walter Roberson 2012 年 2 月 21 日
X = max(0, X); %another way of changing anything less than 0 to 0
  1 件のコメント
Pugazhendhi
Pugazhendhi 2012 年 2 月 22 日
Thanks for the help

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


vishnu lohith
vishnu lohith 2018 年 2 月 16 日
use a suitable transformation to change the intensities from ( 0,255) to (65,180).
  1 件のコメント
Image Analyst
Image Analyst 2018 年 2 月 17 日
Are you sure you posted to the correct six year old question? Not sure what your answer has to do with the original question about clamping the signal to zero.

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

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by