Uploaded image for project: 'Spatial Information Systems'
  1. Spatial Information Systems
  2. SIS-530

Change Interpolation interface to an abstract class

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.1
    • 1.2
    • Coverage
    • None

    Description

      org.apache.sis.image.Interpolation is currently an interface. There is some benefits to make it an abstract class instead. It would allow the addition of a package-private method for handling special cases that we do not want to expose in public API (those special cases are needed for resolving some exceptions observed with Visualization). Another potential (but not verified) benefit is a potential performance gain. The Interpolation.interpolate(…) method can be invoked million of times for each image, and benchmarks report slightly faster method calls on abstract classes compared to interfaces.

      Attachments

        Activity

          People

            desruisseaux Martin Desruisseaux
            desruisseaux Martin Desruisseaux
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: