why matlab rounding the result itself?
이전 댓글 표시
my code is given below-
w=imread('win.png');%its a 32X32 picture
for i=1:32
for j=1:32
wrr(i,j)=w(i,j)*.02;
end
end
disp('wrr');
disp(wrr);
the problem is- its rounding the pixel values,like if w(i,j)=178 then after multiplication with .02 wrr(i,j)=4 where it should be 3.56. i need the floating point for further work. can anyone help?
댓글 수: 7
anika hossain
2015년 8월 19일
Star Strider
2015년 8월 19일
I’m completely lost. I have no idea what you’re doing.
anika hossain
2015년 8월 19일
Star Strider
2015년 8월 19일
Guessing what your code is doing is extremely difficult for me. Perhaps posting it would help.
Walter Roberson
2015년 8월 19일
How are you doing the writing to the file?
Star Strider
2015년 8월 19일
I’m not familiar enough with wavelets or watermarking to answer. Please post this as a new Question, so those with the necessary background can see it and respond to it.
I will delete it from this Question in a few days.
anika hossain
2015년 8월 19일
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 GPU Computing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

