Implement an edge detection filter. Do this by analyzing the nine pixels in a three-by-three square around each pixel (similar to the smooth filter), and then set the value of the middle pixel to the difference between the highest and the lowest value found. Do this for each color component (red, green, blue). This also looks good if you invert the image at the same time.