Skip to content

hdf: add IEEE 754 special value round-trip test for CV_16F#4099

Open
Utkarshkhandka wants to merge 1 commit intoopencv:4.xfrom
Utkarshkhandka:feature/cv16f-hdf5-nan-inf-test
Open

hdf: add IEEE 754 special value round-trip test for CV_16F#4099
Utkarshkhandka wants to merge 1 commit intoopencv:4.xfrom
Utkarshkhandka:feature/cv16f-hdf5-nan-inf-test

Conversation

@Utkarshkhandka
Copy link
Copy Markdown

Adds a test case for HDF5 CV_16F datasets to verify that IEEE 754 special values are preserved correctly during a write → read round-trip.

The test ensures that the following values are not corrupted or implicitly promoted to float32:

  • Positive Infinity (+Inf)
  • Negative Infinity (-Inf)
  • NaN
  • Negative zero (-0.0)

This improves reliability of half-precision floating point support in the HDF5 module.

Related Issues

Type of Change

  • Bug fix
  • Test addition

Notes

  • No impact on existing functionality
  • Focused on validation of edge-case floating point behavior

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[feature] CV_16F support in HDF5

1 participant