Package org.apache.sis.image
Class Transferer.DoubleToByte
java.lang.Object
org.apache.sis.image.Transferer
org.apache.sis.image.Transferer.DoubleToInteger
org.apache.sis.image.Transferer.DoubleToByte
- Enclosing class:
Transferer
Read
double
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.DoubleToInteger
buffer, transfer
Fields inherited from class org.apache.sis.image.Transferer
band, region, source, target
-
Constructor Summary
ConstructorsConstructorDescriptionDoubleToByte
(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.DoubleToInteger
computeStrip, prepareTransferRegion
Methods inherited from class org.apache.sis.image.Transferer
compute, create, create, length
-
Constructor Details
-
DoubleToByte
DoubleToByte(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.DoubleToInteger
-