For my project I made changes and added two functions in hog.cpp under opencv/modules/gpu/src. Following are the two functions that I added to get the functionality that I want.
- getDescriptorsMultiScale
- getDescriptorsBlock
I also have to add the definition of these two functions under opencv/modules/gpu/include/opencv2/gpu/gpu.hpp
At the moment I am just replacing these files under specified folders mentioned above. My supervisor asked me to separate the original OpenCV implementation and my own version and add symbolic link to my implementation. At the moment I have no clue how I can do that. Can someone please let me know how I can do that please.
EDIT
I rename the original opencv file with hog_original.cpp and created another directory structure similar to opencv and created the file hog.cpp(my implementation) and when I tried to link the file. I got the following error. ln: failed to create symbolic link file exist
ln -s /your/file.cpp /opencv/folder/file.cpp, and use an absolute path for your file. Anyway, you can also copy-paste it.ln -s /home/shah/Projects/TUE_Multiclass_Detector/src/opencv/modules/gpu/src/hog.cpp /home/shah/Downloads/opencv-2.4.9/modules/gpu/src/hog_original.cppln -s /home/shah/Projects/TUE_Multiclass_Detector/src/opencv/modules/gpu/src/hog.cpp /home/shah/Downloads/opencv-2.4.9/modules/gpu/src/hog.cpp