Class Parallelized
java.lang.Object
org.apache.sis.internal.processing.image.TiledProcess<Isolines[]>
org.apache.sis.internal.processing.isoline.Parallelized
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 ClassesModifier and TypeClassDescriptionprivate 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 -
Constructor Summary
ConstructorsConstructorDescriptionParallelized
(RenderedImage data, double[][] levels, org.opengis.referencing.operation.MathTransform gridToCRS) Creates a process for parallel isoline computation. -
Method Summary
Modifier and TypeMethodDescriptionprotected TiledProcess<Isolines[]>.Task
Invoked byTiledProcess
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
-
Field Details
-
levels
private final double[][] levelsValues for which to compute isolines. An array should be provided for each band. If there is more bands thanlevels.length
, the last array is reused for all remaining bands.- See Also:
-
gridToCRS
private final org.opengis.referencing.operation.MathTransform gridToCRSTransform 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, ornull
if none.
-
-
Method Details
-
createSubTask
Invoked byTiledProcess
for creating a sub-task doing isoline computation on a sub-region of the image.- Specified by:
createSubTask
in classTiledProcess<Isolines[]>
- Returns:
- a sub-task over a sub-region of the image to process.
-