What does Intel IPP status -20 (ippStsMoment00ZeroErr) mean?

 
Previous Next
ippStsMirrorFlipErr ippStsThreshNegLevelErr

ippStsMoment00ZeroErr

The zeroth moment M(0,0) represents the accumulated mass or area used as a denominator for centroid and normalized moment calculations. If it is zero or too small, those derived values are not meaningful.

This often points to an empty binary mask, a threshold that removed every pixel or a wrong ROI. The moment formulas cannot be repaired by changing output buffers.

Check these details

  • Whether the mask or ROI contains any nonzero pixels.
  • Threshold polarity and input scaling before moment calculation.
  • Whether the caller should treat empty objects as a separate result.

Intel IPP Error Reporting · Intel IPP Image Processing Reference · OpenCV image moments


Looking for a different code? Search another status or error code.