Extract code from scalarToRawData
authorIgor Wodiany <igor.wodiany@gmail.com>
Sat, 7 Oct 2017 18:46:45 +0000 (19:46 +0100)
committerIgor Wodiany <igor.wodiany@gmail.com>
Sat, 7 Oct 2017 18:46:45 +0000 (19:46 +0100)
commitffb9554787192131473b6edc3f9d3eb94fd7e6d0
tree67da7f9c16347d5d0bceba475ae9537e058390c1
parentd25ee8a273233a35a6dc62f7ded840f8e85366c0
Extract code from scalarToRawData

The same code was repeated several time for different data types, so
it was extracted as a templated function to improve maintability and
make a code more clear.
modules/core/src/matrix.cpp