Filter löschen
Filter löschen

How to change pixel values of background to zero

4 Ansichten (letzte 30 Tage)
Kavitha Srinivasan
Kavitha Srinivasan am 18 Jun. 2013
I have an gray image as uint16. the background of the image (air region)has got some pixel values. I want to make them all zero. Any idea how do do it? Your help is much appreciated. Thanks

Akzeptierte Antwort

Matt J
Matt J am 18 Jun. 2013
How about
image(image<airthreshold)=0;
  2 Kommentare
Kavitha Srinivasan
Kavitha Srinivasan am 18 Jun. 2013
thanks for your reply. But how to get the airthreshold value?
Matt J
Matt J am 18 Jun. 2013
Bearbeitet: Matt J am 18 Jun. 2013
That depends on noise and what's going on in the rest of the image. In one of your tags, you seem to say that this is a CT image. In my experience, anything below 500 HU can usually be classified as air, but extreme noise-levels could change that.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Startup and Shutdown finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by