mirror of
https://github.com/opencv/opencv.git
synced 2026-11-23 09:47:57 -06:00
getNormFunc and getNormDiffFunc had no entries for CV_8F_E4M3FN and CV_8F_E4M3FNUZ, so cv::norm failed with "func != 0". Add the fp8 kernels with float accumulators and the same block accumulation as CV_16F and CV_16BF. Add cv_absdiff overloads for fp8_t and fp8a_t that return float, so the difference of two fp8 values is not rounded back to fp8. Add a Core_Norm_FP8 test.