Class Parallelized

java.lang.Object
org.apache.sis.internal.processing.image.TiledProcess<Isolines[]>
org.apache.sis.internal.processing.isoline.Parallelized

final class Parallelized extends TiledProcess<Isolines[]>
Wraps Isolines.generate(…) calculation in a process for parallel execution. The source image is divided in sub-region and the isolines in each sub-region will be computed in a different thread.
Since:
1.1
Version:
1.3
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    private final class 
    A sub-task doing isoline computation on a sub-region of the image.

    Nested classes/interfaces inherited from class org.apache.sis.internal.processing.image.TiledProcess

    TiledProcess.Task
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final org.opengis.referencing.operation.MathTransform
    Transform from image upper left corner (in pixel coordinates) to geometry coordinates.
    private final double[][]
    Values for which to compute isolines.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Parallelized(RenderedImage data, double[][] levels, org.opengis.referencing.operation.MathTransform gridToCRS)
    Creates a process for parallel isoline computation.
  • Method Summary

    Modifier and Type
    Method
    Description
    Invoked by TiledProcess for creating a sub-task doing isoline computation on a sub-region of the image.

    Methods inherited from class org.apache.sis.internal.processing.image.TiledProcess

    execute

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • levels

      private final double[][] levels
      Values for which to compute isolines. An array should be provided for each band. If there is more bands than levels.length, the last array is reused for all remaining bands.
      See Also:
      • invalid reference
        #cloneAndSort(double[][])
    • gridToCRS

      private final org.opengis.referencing.operation.MathTransform gridToCRS
      Transform from image upper left corner (in pixel coordinates) to geometry coordinates.
  • Constructor Details

    • Parallelized

      Parallelized(RenderedImage data, double[][] levels, org.opengis.referencing.operation.MathTransform gridToCRS)
      Creates a process for parallel isoline computation.
      Parameters:
      data - image providing source values.
      levels - values for which to compute isolines.
      gridToCRS - transform from pixel coordinates to geometry coordinates, or null if none.
  • Method Details