you could try to split it into 2 projects, put the legacy code into a dll
(and link only that to older opencv),
and your current algo into main
you could try to split it into 2 projects, put the legacy code into a dll
(and link only that to older opencv),
and your current algo into main