| 838 | |
| 839 | |
| 840 | int Mat::checkVector(int _elemChannels, int _depth, bool _requireContinuous) const |
| 841 | { |
| 842 | return (depth() == _depth || _depth <= 0) && |
| 843 | (isContinuous() || !_requireContinuous) && |
| 844 | ((dims == 2 && (((rows == 1 || cols == 1) && channels() == _elemChannels) || |
| 845 | (cols == _elemChannels && channels() == 1))) || |
| 846 | (dims == 3 && channels() == 1 && size.p[2] == _elemChannels && (size.p[0] == 1 || size.p[1] == 1) && |
| 847 | (isContinuous() || step.p[1] == step.p[2]*size.p[2]))) |
| 848 | ? (int)(total()*channels()/_elemChannels) : -1; |
| 849 | } |
| 850 | |
| 851 | |
| 852 | void scalarToRawData(const Scalar& s, void* _buf, int type, int unroll_to) |
no test coverage detected