Ask Your Question
0

Is opencv's Ptr implementation in 3.4 same as 2.4?

asked 2018-08-16 07:07:37 -0500

Rakshith gravatar image

In opencv 2.4 Ptr is a template class and in opencv 3.4 Ptr is a struct. Are these both same?

I'm trying to port opencv 2.4's GenericDescriptorMatcher class to 3.4 and it uses Ptr, so I'm confused how to proceed.

edit retag flag offensive close merge delete

Comments

May be this example will help you (or this one)

LBerger gravatar imageLBerger ( 2018-08-16 07:24:15 -0500 )edit

That example uses the struct version.

Rakshith gravatar imageRakshith ( 2018-08-16 07:33:48 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
1

answered 2018-08-16 07:48:37 -0500

berak gravatar image

though the implementation has changed, the usage is still the same.

can you be a bit more specific about the problematic parts ?

edit flag offensive delete link more

Comments

I haven't tested my code, I just wanted to make sure the usage is exactly the same.

Rakshith gravatar imageRakshith ( 2018-08-16 08:03:25 -0500 )edit
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2018-08-16 07:07:37 -0500

Seen: 33 times

Last updated: Aug 16 '18