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

조회 수: 12 (최근 30일)
SASA
SASA 2016년 4월 26일
댓글: Image Analyst 2016년 4월 27일
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