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

10 vues (au cours des 30 derniers jours)
SASA
SASA le 26 Avr 2016
Commenté : Image Analyst le 27 Avr 2016
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?

Réponse acceptée

Image Analyst
Image Analyst le 26 Avr 2016
Use imread(). Then, once it's in, what value is it giving to the "transparent" pixels?
  6 commentaires
SASA
SASA le 26 Avr 2016
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 le 27 Avr 2016
Glad it worked for you. Please don't delete this question since it might help someone else some day.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur White dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by