How to calculate normal from normal pass

Hi all.

Im working on a small project where I render out a normal pass from cycles.
Then I need to calculate any normal on the image by pointing my mouse there and clicking.

Question: Do anybody have a good reference on how to calculate a normal by the normal map colors?

Thanks

I found the answer here:

http://liman3d.com/tutorial_normalmaps.html