This is an automated email from the ASF dual-hosted git repository. desruisseaux pushed a change to branch geoapi-4.0 in repository https://gitbox.apache.org/repos/asf/sis.git.
from be6450a Fix a `NullPointerException` when visualizing an image with a "no data" value and no other category. In such case we have to synthetize a temporary category (not shown to user) for the remaining range of values. new 64a4335 Fix the range of signed data type in GeoTIFF images. new 42473c5 More filtering of values on which statistics are computed: - Added a `DoubleUnaryOperator[] sampleFilters` argument as a way to specify "no data" values to ignore. - Finer check of `areaOfInterest` shape for determining which tiles need to be computed (optimization). new 1ec1320 Specify the "no data" values when computing statistics for stretching the color ramp of an image. It makes a difference for image having no "quantitative" categories, because those images are not converted to units of measurement, which implies that their "no data" values were not set to NaN. The 3 revisions listed above as "new" are entirely new to this repository and will be described in separate emails. The revisions listed as "add" were already present in the repository and have only been added to this reference. Summary of changes: .../org/apache/sis/gui/coverage/RenderingData.java | 7 +- .../apache/sis/internal/gui/ImageConverter.java | 9 +- .../org/apache/sis/internal/gui/PropertyView.java | 2 + .../java/org/apache/sis/image/AnnotatedImage.java | 50 +++++++-- .../java/org/apache/sis/image/ImageProcessor.java | 114 ++++++++++++++++----- .../java/org/apache/sis/image/PlanarImage.java | 5 +- .../java/org/apache/sis/image/RecoloredImage.java | 40 +++++--- .../org/apache/sis/image/StatisticsCalculator.java | 111 ++++++++++++++++++-- .../java/org/apache/sis/image/Visualization.java | 5 +- .../sis/internal/coverage/SampleDimensions.java | 87 ++++++++++++++++ .../internal/coverage/j2d/ColorModelFactory.java | 3 +- .../sis/internal/coverage/j2d/Colorizer.java | 2 +- .../sis/internal/coverage/j2d/TileOpExecutor.java | 100 +++++++++++++++--- .../apache/sis/internal/coverage/package-info.java | 2 +- .../apache/sis/image/StatisticsCalculatorTest.java | 99 ++++++++++++++++-- .../main/java/org/apache/sis/util/ArraysExt.java | 2 +- .../sis/storage/geotiff/ImageFileDirectory.java | 4 + 17 files changed, 553 insertions(+), 89 deletions(-) create mode 100644 core/sis-feature/src/main/java/org/apache/sis/internal/coverage/SampleDimensions.java