How to run the code?

3 ビュー (過去 30 日間)
Darsana P M
Darsana P M 2018 年 4 月 15 日
コメント済み: Darsana P M 2018 年 4 月 15 日
https://in.mathworks.com/matlabcentral/fileexchange/45038-generate-digital-signature-of-images?focused=3805874&tab=function
I found this link for digital signature for images. This is exactly what I wanted. I saved all the functions. The main program is hash.m right? I tried running it, but got an error stating:
hash
Undefined function or variable 'METH'.
Error in hash (line 7)
if(METH=='SHA160')

採用された回答

David Fletcher
David Fletcher 2018 年 4 月 15 日
From the overview given by your link, the main function is:
function [digest, MSG_PADDED] = image_hash(V_LEN,H_LEN,METH,IMG_FILE)
There is also a list indicating what the arguments are, including METH
  11 件のコメント
David Fletcher
David Fletcher 2018 年 4 月 15 日
編集済み: David Fletcher 2018 年 4 月 15 日
It was running on my computer for over an hour before I interrupted it. Maybe it will eventually give an answer, or maybe it is badly written and gone into an infinite loop. Sorry, but I'm not much inclined trying to debug other people's submitted code. It might be worth putting a question out there asking for any recommendations for functions that do what you need. It's not really my area of expertise (not that I have any real areas of expertise anyway)
Darsana P M
Darsana P M 2018 年 4 月 15 日
ok sir. Thanks a lot

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeHistorical Contests についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by