The source code for the functions is in modules/[module_name]/src. However I don't know why you would be interested in reading the source code if you are new to OpenCV (believe me, it's not so easy to understand).
The source code for the functions is in modules/[module_name]/src. Just look for the *.cpp files.