Hi,
I was trying various things to make text stand out more in images. A hack which I came up with was by applying the sobel filter for vertical then horizontal to the rgb image then adding it an equalized version of the original image (code snippet below). However I couldn't segment or binarize the image, but it seems to make all text and well defined features darker almost as if it added some texture to the image. Please let me know if anyone knows what's going on here, im quite interested to find out whats happening.
IM=imread('image.jpg');% Apply horizontal and vertical sobel filters:
h=fspecial('sobel');filt=imfilter(IM,h);filt=imfilter(filt,h');% Equalize the image:
r=squeeze(IM(:,:,1));g=squeeze(IM(:,:,2));b=squeeze(IM(:,:,3));rgb=r+g+b;R=r./rgb;G=g./rgb;B=b./rgb;EQ=cat(3,R,G,B);% Resultant image seems to have amplified curves:
IMNEW= filt + EQ;
Best Answer