fix#9570: implement mat ptr for generic types
authortz70s <su3g4284zo6y7@gmail.com>
Tue, 10 Oct 2017 05:28:07 +0000 (13:28 +0800)
committertz70s <su3g4284zo6y7@gmail.com>
Tue, 10 Oct 2017 13:46:49 +0000 (21:46 +0800)
commit6c1247b38c5035451d19633599264206ab933acb
tree474fd5b4bd81ca00560c4acc6bcb446b5e69e526
parent92a0808379034b914a225cd21515d0fa62d9e4c5
fix#9570: implement mat ptr for generic types

The original template based mat ptr for indexing is not implemented,
add the similar implementation as uchar type, but cast to
user-defined type from the uchar pointer.
modules/core/include/opencv2/core/mat.inl.hpp
modules/core/test/test_mat.cpp