Maybe i didn't word that clearly. I mean to generate a normal map from a image.
for example texture image on the left the normal map on the right.
while i have a function in gimp to do this id like to generate them myself programmatically.
found here however im terrible at translating algebra to code as i simply have no formal mathematical training for all the symbolism used and reading the functions below into regular math is for me the equivalent of decoding assembly language or translating hieroglyphs,,, extremely time consuming and painfully annoying.
I figured maybe someone did this already and has it in a class file im sure its much simpler looking in code.