Skip to content

Commit

Permalink
Add gdal_minmax_element.hpp public header, that can also be vendored,…
Browse files Browse the repository at this point in the history
… to find the min/max elements in a buffer

Refs qgis/QGIS#59285

NaN values are taken into account for float/double
Contains a SSE2 optimized version for int8/uint8/int16/uint16/int32/uint32/float/double in the no-nodata case (also taking into account NaN)
  • Loading branch information
rouault committed Nov 3, 2024
1 parent 779871e commit f23b059
Show file tree
Hide file tree
Showing 6 changed files with 2,309 additions and 0 deletions.
1 change: 1 addition & 0 deletions autotest/cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ add_executable(
test_gdal_aaigrid.cpp
test_gdal_dted.cpp
test_gdal_gtiff.cpp
test_gdal_minmax_element.cpp
test_gdal_pixelfn.cpp
test_gdal_typetraits.cpp
test_ogr.cpp
Expand Down
Loading

0 comments on commit f23b059

Please sign in to comment.