# the example program on shearlet transform code not working

5 views (last 30 days)
hp on 8 Dec 2017
Answered: Walter Roberson on 7 Mar 2018
I have the code below:
% simple example for FFST
% computes the shearlet transform of some geometric image
%
%--------------------------------------------------------------------------
% SÃ¶ren HÃ¤user ~ FFST ~ 2014-07-22 ~ last edited: 2014-07-22 (SÃ¶ren HÃ¤user)
% create image
% shearlet transform
[ST,Psi] = shearletTransformSpect(A);
% inverse shearlet transform
C = inverseShearletTransformSpect(ST,Psi);
% plot results
subplot(2,2,1)
imagesc(A)
axis image off
colormap(gray)
title('original image')
subplot(2,2,2)
imagesc(abs(ST(:,:,18)))
axis image off
colormap(gray)
title('shearlet coefficients')
subplot(2,2,3)
imagesc(Psi(:,:,18))
axis image off
colormap(gray)
title('shearlet')
subplot(2,2,4)
imagesc(C)
axis image off
colormap(gray)
title('reconstructed image')
-----------------------------------------------------------
plz how to make it work....
------------------------------------------------
its giving error like:
>> simple_example
Warning: Image is integer valued!
> In checkImage at 19
In shearletTransformSpect at 56
In simple_example at 12
Error using shearletTransformSpect (line 56)
Argument 'A' failed validation checkImage.
Error in simple_example (line 12)
[ST,Psi] = shearletTransformSpect(A);
------------------------------------------------------------------
gm.jpg is a natural image
hp on 8 Dec 2017
Image

hp on 8 Dec 2017
this is wat input image i have given to simple_example program to obtain shearlet coefficients and shearlets
##### 2 CommentsShowHide 1 older comment
Walter Roberson on 7 Mar 2018
shearletTransform is from http://www.shearlab.org/

Walter Roberson on 7 Mar 2018
You have to put
A = double(A);
after your