How do I read image with transparent background in MATLAB code?

11 次查看(过去 30 天)
I am analyzing an image using a code. My images have an object with transparent background. How do I make the code read the object region and leave out the background?

采纳的回答

Image Analyst
Image Analyst 2016-4-26
Use imread(). Then, once it's in, what value is it giving to the "transparent" pixels?
  6 个评论
SASA
SASA 2016-4-26
I have applied your advice "Don't use imagesc(), use imshow(). If you do want a colormap for some reason, you can still use it with imshow() - just call colormap() and pass it some colormap that you like" and it worked.
Thanks
Image Analyst
Image Analyst 2016-4-27
Glad it worked for you. Please don't delete this question since it might help someone else some day.

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 White 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by