oa::vision::binary_mask_counts

Count [true_positive, false_positive, false_negative, true_negative] for two equally-shaped U8 masks. Every nonzero byte is true. Errors Returns an error unless inputs are nonempty, equal-shaped U8 matrices on one engine and their element count fits the shader ABI.

FnRust public API

Function Documentation

pub fn binary_mask_counts( predicted: &Matrix, target: &Matrix ) -> Result<Matrix>
Count [true_positive, false_positive, false_negative, true_negative] for two equally-shaped U8 masks. Every nonzero byte is true. Errors Returns an error unless inputs are nonempty, equal-shaped U8 matrices on one engine and their element count fits the shader ABI.