How to change pixel values of background to zero

4 次查看(过去 30 天)
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

采纳的回答

Matt J
Matt J 2013-6-18
How about
image(image<airthreshold)=0;
  2 个评论
Kavitha Srinivasan
Kavitha Srinivasan 2013-6-18
thanks for your reply. But how to get the airthreshold value?
Matt J
Matt J 2013-6-18
编辑:Matt J 2013-6-18
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.

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Startup and Shutdown 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by