I have done wavedec2 on an image and extracted the approximate coefficients using appcoef2.I want to display the approximate image but its showing total white.why is it so. how to get the image?

댓글 수: 1

Dishant Arora
Dishant Arora 2014년 2월 21일
편집: Dishant Arora 2014년 2월 21일
show us your code, it would be easier to find where you went wrong.

댓글을 달려면 로그인하십시오.

 채택된 답변

Walter Roberson
Walter Roberson 2014년 2월 21일

1 개 추천

use imagesc() or use imshow() with [] as the second parameter.

댓글 수: 3

Image Analyst
Image Analyst 2014년 2월 21일
The reason "why" is because it's probably a floating point image, and if so, imshow() expects all floating point images to be inthe range 0-1. If it's more than 1, it will get clipped to 1 and show up as all white (255 on your display). Using [] will scale your image to 0-1, which is the range it wants, and then display it. If you use imagesc() it picks some funky default colormap (not grayscale like it should default to) that you will probably want to change if you use that.
Walter Roberson
Walter Roberson 2014년 2월 21일
imagesc() picks up the current colormap, whatever that happens to be.
Sapam Jaya
Sapam Jaya 2014년 2월 22일
it helped..thnx

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

john
john 2019년 5월 24일

0 개 추천

please solve this issue , i have try hundred of times
command line error is
Attempt to execute SCRIPT image as a function:
C:\Users\ejaz\Desktop\working space\image.m
Error in images.internal.basicImageDisplay (line 24)
hh = image(cdata, ...
Error in imshow (line 293)
hh = images.internal.basicImageDisplay(fig_handle,ax_handle,...

카테고리

도움말 센터File Exchange에서 AI for Signals and Images에 대해 자세히 알아보기

태그

질문:

2014년 2월 21일

답변:

2019년 5월 24일

Community Treasure Hunt

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

Start Hunting!

Translated by