From: S. Masih on 27 Sep 2009 12:39 Hi, when I transform my image into log scale, I face problems showing that image with the following error: >> M=double(imread('Mammogram.jpeg')); >> LogM=log(1/512+M); >> imshow(LogM,[]) ??? Error using ==> checkDisplayRange at 22 HIGH must be greater than LOW. Error in ==> imageDisplayValidateParams at 57 common_args.DisplayRange = checkDisplayRange(common_args.DisplayRange,mfilename); Error in ==> imageDisplayParseInputs at 79 common_args = imageDisplayValidateParams(common_args); Error in ==> imshow at 199 [common_args,specific_args] = ... How can I solve this problem? Thanks for your attention
From: Ishtiaq Ahmad on 19 Oct 2009 03:11 Convert image1 in to double by "image1=double(image1)" then take log i.e. s(i,j)=log(image1(i,j)) Chears lekosmoth(a)yahoo.com wrote in message <1189968464.304874.39280(a)w3g2000hsg.googlegroups.com>... > Hi, > > I am trying to get a log value for an image. This is what I have done > so far... > > image1=imread(image.jpg) > [m,n]=size(image1) > > for j=1:n > for i=1:m > > s(i,j)=log(image1(i,j)) > > end > end > > When i do this I get an error msg saying 'log' is not defined for > values of class 'uint8'. How can I correct this. > > Thanks, > LS >
|
Pages: 1 Prev: eigenvalues and eigenvectors in decreasing order Next: binary matrix inversion |