Package org.apache.sis.image
Class Transferer.FloatToUShort
java.lang.Object
org.apache.sis.image.Transferer
org.apache.sis.image.Transferer.FloatToInteger
org.apache.sis.image.Transferer.FloatToUShort
- Enclosing class:
- Transferer
Read
float values from the source raster and write unsigned 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, transferFields inherited from class org.apache.sis.image.Transferer
band, region, source, target -
Constructor Summary
ConstructorsConstructorDescriptionFloatToUShort(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) voidclamp(int length) Clamps data to the range of target integer type.Methods inherited from class org.apache.sis.image.Transferer.FloatToInteger
computeStrip, prepareTransferRegionMethods inherited from class org.apache.sis.image.Transferer
compute, create, create, length
-
Constructor Details
-
FloatToUShort
FloatToUShort(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:
clampin classTransferer.FloatToInteger
-