Is there an easy way to calculate the surface normal on a 2d jpg or png image? If so how is this possible could someone write out some pseudo code and explain for me? I have been reading online but haven't found anything that makes sense yet. This isn't a depth image it is simply a jpg of anything.
Edit: or is there anything in openCV or anywhere that can automatically do this for you?