フィルターのクリア

need help in function

1 回表示 (過去 30 日間)
SHALU SINGH
SHALU SINGH 2014 年 9 月 21 日
編集済み: SHALU SINGH 2014 年 9 月 22 日
is my idea of using a function in em2.m, here is correct?? because i am getting an error,, unknown c0. here i am trying to insert bits of wm into hi.... basically im doing lsb watermarking using function

採用された回答

Jan
Jan 2014 年 9 月 21 日
編集済み: Jan 2014 年 9 月 21 日
You export the variables c0, c1, ... from your function, but you do not import it in the main function. So replace
a=my_mod_idea(m,n);
by
[c0,c1,c2,c3,c4,c5,c6,c7] = my_mod_idea(m,n)
Note: Your code will run much faster, if you read the file once in the main function and provide wm as input argument to the my_mod_idea function.
The line
bitset(hi(i,k),1,c0);
does not store the results anywhere. I guess you want:
hi(i,k) = bitset(hi(i,k),1,c0);
  1 件のコメント
SHALU SINGH
SHALU SINGH 2014 年 9 月 22 日
編集済み: SHALU SINGH 2014 年 9 月 22 日
well..!! thank you, now its work correctly, but now i get problem in extracting an image, here i am using bitget function but it give a blurred image.. should i write a code as i write a code for embedding an image.

サインインしてコメントする。

その他の回答 (0 件)

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by