필터 지우기
필터 지우기

problm on imwrite fuction...

조회 수: 2 (최근 30일)
ARJUN K P
ARJUN K P 2015년 9월 21일
댓글: ARJUN K P 2015년 9월 21일
here i cant get what iam write on the pixel value.. what to do?
  댓글 수: 1
Jan
Jan 2015년 9월 21일
Please add only tags, which have a connection to your question.

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

채택된 답변

Guillaume
Guillaume 2015년 9월 21일
Please post snippets of code (using the {} Code formatting button) instead of images.
ffwinread is not a matlab function so there may very well be a problem with it.
Another possibility is that your orignal rebuilt is of type double. You can check that easily with
whos rebuilt
Images of type double are assumed by matlab to be in the range 0-1. When it comes to writing a double image to bmp, matlab maps 0 and below to uint8 0 and 1 and above to uint8 255. This could explain what you're seeing. In that case,
imwrite(uint8(rebuilt), 'as.bmp');
should fix it. Even better would be to declare rebuilt as uint8 in the first place.
  댓글 수: 1
ARJUN K P
ARJUN K P 2015년 9월 21일
thanku sir...
your ans is working.
the prblm is rebuilt data type is doublt... so your code imwrite(uint8(rebuilt), 'as.bmp'); is correctly changed my pgm..

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Read, Write, and Modify Image에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by