clear;X=imread('text.JPG');X=double(X(18:50,:,1));X=255-X;
E=X(24:32,194:200);Y=conv2(X,fliplr(flipud(E)),'same');Y(Y<900000)=0;
%figure,imagesc(X),colormap(gray),figure,imagesc(Y),colormap(gray)
Z(:,:,2)=X/255;Z(:,:,1)=Y/1007814;Z(:,:,3)=0;figure,imagesc(Z)

%WORKS:
clear;X=imread('text.JPG');X=double(X(18:50,:,1));X=255-X;
e=X(6:12,66:71);a=X(6:12,127:132);m=X(2:13,82:93);
Ye=conv2(X,fliplr(flipud(e)),'same');Ye(Ye<800000)=0;
Ze(:,:,2)=X/255;Ze(:,:,1)=Ye/max(max(Ye));Ze(:,:,3)=0;figure,imagesc(Ze)
Ya=conv2(X,fliplr(flipud(a)),'same');Ya(Ya<1100000)=0;
Za(:,:,2)=X/255;Za(:,:,1)=Ya/max(max(Ya));Za(:,:,3)=0;figure,imagesc(Za)
Ym=conv2(X,fliplr(flipud(m)),'same');Ym(Ym<1800000)=0;
Zm(:,:,2)=X/255;Zm(:,:,1)=Ym/max(max(Ym));Zm(:,:,3)=0;figure,imagesc(Zm)


ALMOST WORKS (also gets 3d and p)
o=X(6:12,19:24);
Yo=conv2(X,fliplr(flipud(o)),'same');Yo(Yo<900000)=0;
Zo(:,:,2)=X/255;Zo(:,:,1)=Yo/max(max(Yo));Zo(:,:,3)=0;figure,imagesc(Zo)

DON'T WORK:
t=X(2:13,51:55);i=X(3:13,41:43);
Yi=conv2(X,fliplr(flipud(i)),'same');Yi(Yi<550000)=0;
Zi(:,:,2)=X/255;Zi(:,:,1)=Yi/max(max(Yi));Zi(:,:,3)=0;figure,imagesc(Zi)
Yt=conv2(X,fliplr(flipud(t)),'same');Yt(Yt<500000)=0;
Zt(:,:,2)=X/255;Zt(:,:,1)=Yt/max(max(Yt));Zt(:,:,3)=0;figure,imagesc(Zt)
