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!

