sis-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From desruisse...@apache.org
Subject [sis] branch geoapi-4.0 updated (11c6b74 -> eceea7f)
Date Tue, 29 Dec 2020 17:27:23 GMT
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 11c6b74  Avoid the call to `Arrays.binarySearch(…)`. It has been identified by
profiling as a performance bottleneck (in the context of `Isolines`).
     new e5142b5  Retrofit `DefaultIterator` into `PixelIterator`. This change allows slightly
better encapsulation (more fields can be made private) and reduce the need to create `WritablePixelIterator`
when only read operations are desired. The previous abstraction level was apparently not needed
in practice.
     new 4f8f236  Add `BandedIterator`, a specialization of `PixelIterator` for the case of
images using a `BandedSampleModel`. This is an attempt to resolve a performance bootleneck
observed during `Isolines` calculations.
     new eceea7f  Make possible to use `BandedIterator` with multi-tiled images. It required
to retrofit `LinearIterator` into `PixelIterator`.

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/GridViewApp.java   |   3 +-
 .../java/org/apache/sis/image/BandedIterator.java  | 446 +++++++++++++
 .../java/org/apache/sis/image/DefaultIterator.java | 725 --------------------
 .../java/org/apache/sis/image/LinearIterator.java  | 124 ----
 .../java/org/apache/sis/image/PixelIterator.java   | 741 +++++++++++++++++++--
 .../org/apache/sis/image/StatisticsCalculator.java |   2 +-
 .../apache/sis/image/WritablePixelIterator.java    |  85 ++-
 .../coverage/grid/ResampledGridCoverageTest.java   |   3 +-
 .../sis/coverage/grid/ReshapedImageTest.java       |   3 +-
 .../org/apache/sis/image/BandSelectImageTest.java  |   2 +-
 .../org/apache/sis/image/BandedIteratorTest.java   |  79 +++
 .../sis/image/BandedSampleConverterTest.java       |   3 +-
 .../org/apache/sis/image/ImageCombinerTest.java    |   6 +-
 .../org/apache/sis/image/LinearIteratorTest.java   |  42 +-
 ...ultIteratorTest.java => PixelIteratorTest.java} |  48 +-
 .../java/org/apache/sis/image/PlanarImageTest.java |   3 +-
 .../org/apache/sis/image/ResampledImageTest.java   |   3 +-
 .../apache/sis/image/StatisticsCalculatorTest.java |   3 +-
 .../java/org/apache/sis/image/TiledImageMock.java  |  10 +-
 .../apache/sis/test/suite/FeatureTestSuite.java    |   3 +-
 20 files changed, 1345 insertions(+), 989 deletions(-)
 create mode 100644 core/sis-feature/src/main/java/org/apache/sis/image/BandedIterator.java
 delete mode 100644 core/sis-feature/src/main/java/org/apache/sis/image/DefaultIterator.java
 delete mode 100644 core/sis-feature/src/main/java/org/apache/sis/image/LinearIterator.java
 create mode 100644 core/sis-feature/src/test/java/org/apache/sis/image/BandedIteratorTest.java
 rename core/sis-feature/src/test/java/org/apache/sis/image/{DefaultIteratorTest.java =>
PixelIteratorTest.java} (96%)


Mime
View raw message