oa::image::moments
Compute the ten spatial moments m00, m10, m01, m20, m11, m02, m30, m21, m12, m03 per image plane through a serial per-plane reduction, following cv::moments. The result Matrix carries the image’s leading plane dimensions plus a final extent-10 moment dimension. Errors Returns an error unless the image is a nonempty FP32 NCHW/CHW image and all sizes fit the shader ABI.
Function Documentation
Compute the ten spatial moments m00, m10, m01, m20, m11, m02, m30, m21, m12, m03 per image plane through a serial per-plane reduction, following cv::moments. The result Matrix carries the image’s leading plane dimensions plus a final extent-10 moment dimension. Errors Returns an error unless the image is a nonempty FP32 NCHW/CHW image and all sizes fit the shader ABI.