Package org.apache.sis.image
Class Transferer.FloatToByte
java.lang.Object
org.apache.sis.image.Transferer
org.apache.sis.image.Transferer.FloatToInteger
org.apache.sis.image.Transferer.FloatToByte
- Enclosing class:
Transferer
Read
float
values from the source raster and write unsigned byte
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
ConstructorsConstructorDescriptionFloatToByte
(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
-
FloatToByte
FloatToByte(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
-