필터 지우기
필터 지우기

Code about getting different features from the image

조회 수: 2 (최근 30일)
Ayesha
Ayesha 2014년 1월 29일
댓글: Image Analyst 2014년 1월 30일
Hello everyone,
I have attached an image which is basically the output of my code. It performs in the same way as dwt2 function does except that I have written it myself this time. I've been wondering: why is the background black while it should be grey. What are your intuitive thoughts at the first look?

채택된 답변

Image Analyst
Image Analyst 2014년 1월 29일
It may be a uint8 image. They clip negative numbers so the lowest you get is 0. So you're seeing only the positive numbers, and they're dark. If you have an image that went from, say, -5 to +5 doing imshow(doubleImage) will show only values from 0 to +5 and they'll be 0 to +5. If you use imshow(doubleImage, []) then it will scale so that -5 shows as 0, +5 shows as 255 (brightest white), and 0 (which is in the middle) will show as 128, which is the gray you were expecting.
  댓글 수: 6
Ayesha
Ayesha 2014년 1월 29일
and how are the dynamic ranges matched?
Image Analyst
Image Analyst 2014년 1월 30일
Try running them both through mat2gray(), or imadjust().

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Discrete Multiresolution Analysis에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by