Package org.apache.sis.image
Class Transferer.DoubleToDirect
java.lang.Object
org.apache.sis.image.Transferer
org.apache.sis.image.Transferer.DoubleToDirect
- Enclosing class:
- Transferer
Read
double
values from the source and write double
values directly in the target raster,
without intermediate buffer. This strategy is possible only when the target raster uses the double
type for storing sample values. This operation is executed in one step, without subdivisions in strips.-
Field Summary
FieldsFields inherited from class org.apache.sis.image.Transferer
band, region, source, target
-
Constructor Summary
ConstructorsConstructorDescriptionDoubleToDirect
(Raster source, WritableRaster target, Rectangle aoi) Creates a new instance for transferring data between the two specified rasters. -
Method Summary
Modifier and TypeMethodDescription(package private) void
computeStrip
(org.opengis.referencing.operation.MathTransform1D converter) Copies source values directly in the target, then applies the conversion in-place.Methods inherited from class org.apache.sis.image.Transferer
compute, create, create, length, prepareTransferRegion
-
Field Details
-
buffer
Data buffer of target raster.
-
-
Constructor Details
-
DoubleToDirect
DoubleToDirect(Raster source, WritableRaster target, Rectangle aoi) Creates a new instance for transferring data between the two specified rasters.
-
-
Method Details
-
computeStrip
void computeStrip(org.opengis.referencing.operation.MathTransform1D converter) throws org.opengis.referencing.operation.TransformException Copies source values directly in the target, then applies the conversion in-place.- Specified by:
computeStrip
in classTransferer
- Parameters:
converter
- the operation to apply on sample values in current region and current band number.- Throws:
org.opengis.referencing.operation.TransformException
- if an error occurred during calculation.
-