Generate a normal map from a given image

Hi ya! 

I have an upcoming assignment and need blender to do a specific task. I need Blender to take an image like the one attached and recognise the the colour diffence and only produce a smooth interpolated normal map for the white area. Is this possible? if not how could I begin to make this possible?