Package org.apache.sis.image
Class Transferer.FloatToDirect
java.lang.Object
org.apache.sis.image.Transferer
org.apache.sis.image.Transferer.FloatToDirect
- Enclosing class:
- Transferer
Read
float values from the source and write float values directly in the target raster,
without intermediate buffer. This strategy is possible only when the target raster uses the float
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
ConstructorsConstructorDescriptionFloatToDirect(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) voidcomputeStrip(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
-
FloatToDirect
FloatToDirect(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:
computeStripin 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.
-