Prev: How to calculate image hash as a bit sequence of 0's and 1's
Next: Variable name for a table in matlab?
From: Jan Simon on 16 Jun 2010 07:10 Dear fiza! > >>thankyou 4 your support but please tell me the code which u refer to me how i can run that as i got error when i tried to run that.that code is using java files.i need to know which java files i need to install to run that code in Matlab.please do reply me and help me. You do not need to install Java for this function - but this works for newer Matlab versions only. Please tell us the exact error message and your Matlab version. If you spend your time to search the FEX, you'd find this MD5 calculator, which is fast and does not call Java: http://www.mathworks.com/matlabcentral/fileexchange/25463 Jan
From: Randima Hettiarachchi on 16 Jun 2010 10:46 "Jan Simon" <matlab.THIS_YEAR(a)nMINUSsimon.de> wrote in message <hv5uog$dee$1(a)fred.mathworks.com>... > Dear Randima! > > > I'm doing a research, which requires the hash value of an image to be calculated as a sequence of 0's and 1's (eg:- 11100101). Any standard algorithm MD5, MD4 or SHA would be fine in calculating image. If some one can help me or give some hints I would be thankful... > > Perhaps I've overseen it - did you define, what "image" means in your case? Do you mean a [X, Y, 3] double RGB array, an image file or a the reply of IMREAD (X and MAP)? > In all three cases a few lines are enough to convert the data to a UINT8 vector and call Kleder's function to calculate the hash as [1 x 16] UINT8 vector. This vector can be casted to a DOUBLE and DEC2BIN creates your bitsequence. > > Jan Dear Jan, Thanks a lot for the help. I used imread in this case. I was successful in getting a 128 bit hash for a given image. Thanks, Randima
From: fiza khalid on 17 Jun 2010 13:29 "Randima Hettiarachchi" <randishi(a)yahoo.com> wrote in message <hvao3d$gem$1(a)fred.mathworks.com>... > "Jan Simon" <matlab.THIS_YEAR(a)nMINUSsimon.de> wrote in message <hv5uog$dee$1(a)fred.mathworks.com>... > > Dear Randima! > > > > > I'm doing a research, which requires the hash value of an image to be calculated as a sequence of 0's and 1's (eg:- 11100101). Any standard algorithm MD5, MD4 or SHA would be fine in calculating image. If some one can help me or give some hints I would be thankful... > > > > Perhaps I've overseen it - did you define, what "image" means in your case? Do you mean a [X, Y, 3] double RGB array, an image file or a the reply of IMREAD (X and MAP)? > > In all three cases a few lines are enough to convert the data to a UINT8 vector and call Kleder's function to calculate the hash as [1 x 16] UINT8 vector. This vector can be casted to a DOUBLE and DEC2BIN creates your bitsequence. > > > > Jan > > Dear Jan, > > Thanks a lot for the help. I used imread in this case. I was successful in getting a 128 bit hash for a given image. > > Thanks, > Randima >Hey Randima plz send me that piece of code for calculating image hash i also need that i tried to do it but i cant plz let me know how do that.u can snd me that code on my mail id that is princess.2050(a)hotmail.com plz do reply me i'll be very thamkfull to you.
From: fiza khalid on 18 Jun 2010 00:26 "Jan Simon" <matlab.THIS_YEAR(a)nMINUSsimon.de> wrote in message <hvabeg$2sl$1(a)fred.mathworks.com>... > Dear fiza! > > > >>thankyou 4 your support but please tell me the code which u refer to me how i can run that as i got error when i tried to run that.that code is using java files.i need to know which java files i need to install to run that code in Matlab.please do reply me and help me. > > You do not need to install Java for this function - but this works for newer Matlab versions only. Please tell us the exact error message and your Matlab version. > If you spend your time to search the FEX, you'd find this MD5 calculator, which is fast and does not call Java: > http://www.mathworks.com/matlabcentral/fileexchange/25463 > > Jan >thanx jan the error i m getting to run this is >Error in ==> hash at 52 inp=typecast(inp,'uint8'); how can i rectify this please tell me.
From: fiza khalid on 18 Jun 2010 01:15
"fiza khalid" <princess.2050(a)hotmail.com> wrote in message <hvesgs$qfc$1(a)fred.mathworks.com>... > "Jan Simon" <matlab.THIS_YEAR(a)nMINUSsimon.de> wrote in message <hvabeg$2sl$1(a)fred.mathworks.com>... > > Dear fiza! > > > > > >>thankyou 4 your support but please tell me the code which u refer to me how i can run that as i got error when i tried to run that.that code is using java files.i need to know which java files i need to install to run that code in Matlab.please do reply me and help me. > > > > You do not need to install Java for this function - but this works for newer Matlab versions only. Please tell us the exact error message and your Matlab version. > > If you spend your time to search the FEX, you'd find this MD5 calculator, which is fast and does not call Java: > > http://www.mathworks.com/matlabcentral/fileexchange/25463 > > > > Jan > >thanx jan the error i m getting to run this is > >Error in ==> hash at 52 > inp=typecast(inp,'uint8'); > how can i rectify this please tell me. i am using Matlab version 7.0.0.1 |