mirror of
https://github.com/opencv/opencv.git
synced 2026-12-03 05:33:03 -06:00
dnn: support CV_32U, CV_64U and CV_Bool values in OneHot Add the missing case labels, calling the existing runKernel<uint32_t>, runKernel<uint64_t> and runKernel<bool>. tensorToScalar could not read CV_64U tensors. It now reads them as uint64_t and writes the result without going through int64_t, so values above INT64_MAX are not cut down. The output conversion moved into a small storeScalar template, called with double, int64_t or uint64_t; the results for the other input types are unchanged.