modifying OPENCV library

I am new to Jetson development system and trying to apply a modification to a cpp file of OpenCV4Tegra, then recompile and create a new library.
Is there any specific instruction for doing this? Can someone point me to the right direction?

Thanks

Hi AliMohseni,

Have your compile environment been setting up well?
You could refer to below 2 links first:
[url]http://elinux.org/Jetson/Installing_OpenCV[/url]
[url]http://developer.download.nvidia.com/embedded/L4T/r23_Release_v1.0/OpenCV4Tegra-2.4.12.3-README.txt[/url]

Thanks