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 1 Jul 2010 12:33 Dear Fiza, > inp=input('hello'); > error is in x.update(inp); > but if i comment this x.update(inp) it is giving me hash value but same for all type of input not changing it. Please show us a complete part of your program. Seeing single lines does not contain enough information to reproduce your problems. Jan
From: fiza khalid on 2 Jul 2010 07:29 "Jan Simon" <matlab.THIS_YEAR(a)nMINUSsimon.de> wrote in message <i0ifvv$djt$1(a)fred.mathworks.com>... > Dear Fiza, > > > inp=input('hello'); > > error is in x.update(inp); > > but if i comment this x.update(inp) it is giving me hash value but same for all type of input not changing it. > > Please show us a complete part of your program. Seeing single lines does not contain enough information to reproduce your problems. > > Jan >>thnx jan for ur help i have done that now i m trying to do that on images.
From: fiza khalid on 2 Jul 2010 08:54 "fiza khalid" <princess.2050(a)hotmail.com> wrote in message <i0kii0$5m5$1(a)fred.mathworks.com>... > "Jan Simon" <matlab.THIS_YEAR(a)nMINUSsimon.de> wrote in message <i0ifvv$djt$1(a)fred.mathworks.com>... > > Dear Fiza, > > > > > inp=input('hello'); > > > error is in x.update(inp); > > > but if i comment this x.update(inp) it is giving me hash value but same for all type of input not changing it. > > > > Please show us a complete part of your program. Seeing single lines does not contain enough information to reproduce your problems. > > > > Jan > >>thnx jan for ur help i have done that now i m trying to do that on images. >>plz tell me as i am converting image to dec2bin()than how i can pass it to "inp" i tried that but it gives me error plz do reply thnku soo much.
From: fiza khalid on 2 Jul 2010 11:27 "fiza khalid" <princess.2050(a)hotmail.com> wrote in message <i0knhd$2ah$1(a)fred.mathworks.com>... > "fiza khalid" <princess.2050(a)hotmail.com> wrote in message <i0kii0$5m5$1(a)fred.mathworks.com>... > > "Jan Simon" <matlab.THIS_YEAR(a)nMINUSsimon.de> wrote in message <i0ifvv$djt$1(a)fred.mathworks.com>... > > > Dear Fiza, > > > > > > > inp=input('hello'); > > > > error is in x.update(inp); > > > > but if i comment this x.update(inp) it is giving me hash value but same for all type of input not changing it. > > > > > > Please show us a complete part of your program. Seeing single lines does not contain enough information to reproduce your problems. > > > > > > Jan > > >>thnx jan for ur help i have done that now i m trying to do that on images. > >>plz tell me as i am converting image to dec2bin()than how i can pass it to "inp" > i tried that but it gives me error > plz do reply thnku soo much. >>this is chunk of my program to give image as input >>I=imread('img2.jpg'); [m,n]=size(I) X=uint8(I); [m,n]=size(X) image=dec2bin(X)-48; [m,n]=size(image) inp=image; % convert strings and logicals into uint8 format if ischar(inp) || islogical(inp) inp=uint8(inp); else % convert everything else into uint8 format without loss of data if ~isreal(inp) inp=reshape([real(inp(:)).'; imag(inp(:)).'],[],1); end inp=typecast(inp,'uint8'); end >>the error is as under >>??? Error using ==> typecast The first input argument must be a vector. Error in ==> hash2 at 70 inp=typecast(inp,'uint8'); plz let me know how to remove that error. thnx.
From: Jan Simon on 2 Jul 2010 11:38
Dear Fiza, > i tried that but it gives me error What did you try and which error occurred? Jan |