Package org.apache.sis.image
Class Transferer.FloatToShort
java.lang.Object
org.apache.sis.image.Transferer
org.apache.sis.image.Transferer.FloatToInteger
org.apache.sis.image.Transferer.FloatToShort
- Enclosing class:
- Transferer
Read
float
values from the source raster and write signed short
values in a temporary buffer.
The floating point values will be rounded and clamped to the range of the integer type.-
Field Summary
Fields inherited from class org.apache.sis.image.Transferer.FloatToInteger
buffer, transfer
Fields inherited from class org.apache.sis.image.Transferer
band, region, source, target
-
Constructor Summary
ConstructorsConstructorDescriptionFloatToShort
(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
clamp
(int length) Clamps data to the range of target integer type.Methods inherited from class org.apache.sis.image.Transferer.FloatToInteger
computeStrip, prepareTransferRegion
Methods inherited from class org.apache.sis.image.Transferer
compute, create, create, length
-
Constructor Details
-
FloatToShort
FloatToShort(Raster source, WritableRaster target, Rectangle aoi) Creates a new instance for transferring data between the two specified rasters.
-
-
Method Details
-
clamp
void clamp(int length) Clamps data to the range of target integer type.- Overrides:
clamp
in classTransferer.FloatToInteger
-