Package org.vast.swe.helper
Class RasterHelper
java.lang.Object
org.vast.swe.SWEHelper
org.vast.swe.helper.VectorHelper
org.vast.swe.helper.RasterHelper
Helper class to create SWE structures used for various kinds of raster
datasets, including various images and coverage types
- Since:
- May 2020
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
Fields inherited from class org.vast.swe.helper.VectorHelper
DEF_ACCELERATION, DEF_ANGLE, DEF_ANGULAR_ACCEL, DEF_ANGULAR_VELOCITY, DEF_COORD, DEF_DISTANCE, DEF_LOCATION, DEF_ORIENTATION, DEF_ORIENTATION_EULER, DEF_ORIENTATION_QUAT, DEF_ROT_MATRIX, DEF_ROW, DEF_UNIT_VECTOR, DEF_VELOCITY
Fields inherited from class org.vast.swe.SWEHelper
ACCEL_UNIT, ANGLE_UNIT, ANGULAR_SPEED_UNIT, CURRENT_UNIT, DEFAULT_SWE_FACTORY, DISTANCE_UNIT, ENERGY_UNIT, fac, MASS_UNIT, PATH_SEPARATOR, POWER_UNIT, SPEED_UNIT, SURFACE_UNIT, TEMP_UNIT, TIME_UNIT, UNITLESS, uomParser, VOLTAGE_UNIT, VOLUME_UNIT
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreates a 2D vector with x,y pixel coordinatesnewGrayscaleImage
(int width, int height, DataType dataType) Creates a fixed size 2D-array representing a generic grayscale imagenewGrayscaleImage
(Count width, Count height, DataType dataType) Creates a 2D-array representing a generic grayscale image.newRasterImage
(int width, int height, ScalarComponent... channels) Creates a fixed size 2D-array representing a raster imagenewRasterImage
(Count width, Count height, ScalarComponent... channels) Creates a 2D-array representing a raster imagenewRgbImage
(int width, int height, DataType dataType) Creates a fixed size 2D-array representing a generic RGB imagenewRgbImage
(Count width, Count height, DataType dataType) Creates a 2D-array representing a generic RGB image.Methods inherited from class org.vast.swe.helper.VectorHelper
createAccelerationVector, createAngularVelocityVector, createEulerAngles, createLocationVectorXYZ, createUnitVectorXYZ, createVector3, createVelocityVector, newAccelerationVector, newAngularVelocityVector, newEulerAngles, newLocationVectorXYZ, newMatrix, newMatrix, newRotationMatrix, newUnitVectorXYZ, newVector3, newVector3D, newVelocityVector
Methods inherited from class org.vast.swe.SWEHelper
assignBinaryEncoding, checkUom, checkUom, checkUom, createArray, createBoolean, createCategory, createCategoryRange, createChoice, createCount, createCountRange, createDataParser, createDataWriter, createGeometry, createMatrix, createQuantity, createQuantityRange, createRecord, createText, createTime, createTimeRange, createVector, ensureXmlCompatible, findComponent, findComponentByDefinition, findComponentByName, findComponentByPath, findComponentByPath, getCfUri, getComponentPath, getDBpediaUri, getDefaultBinaryEncoding, getDefaultEncoding, getEpsgUri, getPropertyUri, getQudtUri, getRootComponent, getTimeStampIndexer, newAllowedTimes, newAllowedTokens, newAllowedValues, newBinaryBlock, newBinaryComponent, newBinaryEncoding, newBinaryEncoding, newBoolean, newBoolean, newCategory, newCategory, newCategoryRange, newCount, newCount, newCount, newCount, newCountRange, newCountRange, newDataArray, newDataArray, newDataArray, newDataChoice, newDataRecord, newDataRecord, newDataStream, newDataStream, newEncodedValuesProperty, newLinkProperty, newLinkProperty, newLinkProperty, newMatrix, newMatrix, newNilValue, newNilValues, newPhenomenonTimeIsoUTC, newQuantity, newQuantity, newQuantity, newQuantity, newQuantityRange, newQuantityRange, newSystemIdComponent, newText, newText, newTextEncoding, newTextEncoding, newTime, newTime, newTime, newTime, newTimeIsoUTC, newTimeRange, newTimeRange, newTimeStampIsoGPS, newTimeStampIsoUTC, newTimeStampOnBoardClock, newUnitReference, newVector, newVector, newXMLEncoding, wrapWithTimeStamp, wrapWithTimeStampUTC
-
Field Details
-
DEF_IMAGE
-
DEF_RASTER_WIDTH
-
DEF_RASTER_HEIGHT
-
DEF_RASTER_DEPTH
-
DEF_RED_CHANNEL
-
DEF_GREEN_CHANNEL
-
DEF_BLUE_CHANNEL
-
DEF_GRAY_CHANNEL
-
DEF_GRID_CRS_1D
- See Also:
-
DEF_GRID_CRS_2D
- See Also:
-
DEF_GRID_CRS_3D
- See Also:
-
-
Constructor Details
-
RasterHelper
public RasterHelper()
-
-
Method Details
-
newRasterImage
Creates a 2D-array representing a raster image- Parameters:
width
- Image width componentheight
- Image height componentchannels
- List of image channels- Returns:
- the new DataArray component object
-
newRasterImage
Creates a fixed size 2D-array representing a raster image- Parameters:
width
- Image widthheight
- Image heightchannels
- List of image channels- Returns:
- the new DataArray component object
-
newGrayscaleImage
Creates a 2D-array representing a generic grayscale image.- Parameters:
width
- Width component (fixed or variable size, seeDataArray.setElementCount(Count)
)height
- Height component (fixed or variable size, seeDataArray.setElementCount(Count)
)dataType
- Data type used for image samples- Returns:
- the new DataArray component object
-
newGrayscaleImage
Creates a fixed size 2D-array representing a generic grayscale image- Parameters:
width
- Image width in pixelsheight
- Image height in pixelsdataType
- Data type of each image sample- Returns:
- the new DataArray component object
-
newRgbImage
Creates a 2D-array representing a generic RGB image.- Parameters:
width
- Width component (fixed or variable size, seeDataArray.setElementCount(Count)
)height
- Height component (fixed or variable size, seeDataArray.setElementCount(Count)
)dataType
- Data type of each image sample (3 samples per pixel)- Returns:
- the new DataArray component object
-
newRgbImage
Creates a fixed size 2D-array representing a generic RGB image- Overrides:
newRgbImage
in classSWEHelper
- Parameters:
width
- Image width in pixelsheight
- Image height in pixelsdataType
- Data type of each image sample (3 samples per pixel)- Returns:
- the new DataArray component object
-
createGridCoordinates2D
Creates a 2D vector with x,y pixel coordinates- Returns:
- A builder to set other options and build the final vector
-