answered Oct 28 '0
if i understand you question correctly you want to create your custom library using OpenCV functions. You can create your module mimicking other OpenCV modules and compile. you can find a sample here