|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--jwo.landserf.structure.Raster | +--jwo.landserf.structure.RastSurf
Class for storing, visualising and analysing raster surfaces. Creates raster images based on colour table and/or shaded relief calculation. The two can be blended together as a single image. It is applicable to rasters containing ratio scale data. Allows multi-scale window analysis of surface.
Field Summary |
Fields inherited from class jwo.landserf.structure.Raster |
ADJACENT, ASPECT, CENTRE_RES, CROSC, ELEV, ENCLOSES, FEATURE, FIRST_PARAM, LAST_PARAM, LONGC, MATCHES, MAXIC, MEAN_RES, MEANC, MINIC, NETWORK_FEATURE, OTHER, OUT_OF_BOUNDS, OVERLAPS, PLANC, PROFC, rast, rastColours, rastHead, RELIEF, SEPARATE, SLOPE, WITHIN |
Constructor Summary | |
RastSurf()
Creates minimal raster surface. |
|
RastSurf(int nRows,
int nCols)
Creates empty raster surface of given dimensions. |
|
RastSurf(int nRows,
int nCols,
double west,
double south,
double xRes,
double yRes)
Creates an empty raster surface with given dimensions and position. |
|
RastSurf(RastSurf oldSurf)
Creates a copy of an existing raster surface, |
Method Summary | |
float |
getCurveTol()
Returns the currently selected curvature tolerance for feature extraction. |
double |
getDecayExp()
Returns the currently selected local window distance decay exponent. |
float |
getDiffuse()
Returns the diffuse constant used in surface for relief calculation. |
float |
getpBlend()
Returns the currently selected weighting for this surface when image blending. |
float |
getShine()
Returns the 'shininess' of the surface for relief calculation. |
float |
getSlopeTol()
Returns the currently selected slope tolerance for feature extraction. |
float |
getSpecular()
Returns the specular constant used in surface for relief calculation. |
void |
getSurfBlend(int[] img,
RastSurf drape)
Creates a blended image from this and the draped raster. |
void |
getSurfHueSat(int[] img,
RastSurf drape)
Creates a combined 'hue-saturation' image from this and another raster. |
void |
getSurfImg(int[] img)
Converts raster into colour image for display. |
void |
getSurfShade(int[] img,
RastSurf drape)
Converts raster into shaded relief image for display. |
int |
getWSize()
Returns the currently selected local window size. |
void |
setCurveTol(float ct)
Sets a new curvature tolerance for feature extraction. |
void |
setDecayExp(double de)
Sets a new local window distance decay exponent. |
void |
setDiffuse(float diffuse)
Sets the diffuse constant used in surface for relief calculation. |
void |
setpBlend(float p)
Sets the weighting for given to this surface when blending with another. |
void |
setShine(float shine)
Sets the 'shininess' of the surface for relief calculation. |
void |
setSlopeTol(float st)
Sets a new slope tolerance for feature extraction. |
void |
setSpecular(float specular)
Sets the specular constant used in surface for relief calculation. |
void |
setWSize(int ws)
Sets a new local window size. |
Methods inherited from class jwo.landserf.structure.Raster |
compare, getAttribute, getAttribute, getAzimAngle, getCol, getCol, getColourTable, getEast, getEasting, getEasting, getElevAngle, getFrequencyDist, getFrequencyDist, getFrequencyDist, getHammockDist, getHammockDist, getHeader, getMax, getMin, getNorth, getNorthing, getNorthing, getNotes, getNumCols, getNumRows, getpShade, getRastArray, getRaster, getRow, getRow, getSouth, getTitle, getType, getWest, getWindow, getXRes, getYRes, readFile, readFile, setAttribute, setAttribute, setAzimAngle, setColourTable, setEast, setElevAngle, setHeader, setNorth, setNotes, setNumCols, setNumRows, setpShade, setRastArray, setSouth, setTitle, setType, setWest, setXRes, setYRes, subset, toString, writeFile |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public RastSurf()
public RastSurf(int nRows, int nCols)
nRows
- Number of rows in raster surface.nCols
- Number of columns in raster surface.public RastSurf(int nRows, int nCols, double west, double south, double xRes, double yRes)
nRows
- Number of rows in raster.nCols
- Number of columns in raster.west
- Western boundary of raster.south
- Southern boundary of raster.xRes
- X-resolution of raster.yRes
- Y-resolution of raster.public RastSurf(RastSurf oldSurf)
oldSurf
- Original raster surface to copy.Method Detail |
public void getSurfImg(int[] img)
img
- Image array to store colours.public void getSurfShade(int[] img, RastSurf drape)
img
- Image array to store colours.drape
- Raster to drape over surface.Raster
public void getSurfBlend(int[] img, RastSurf drape)
img
- Image array to store colours.drape
- Raster holding the hue value to combine.public void getSurfHueSat(int[] img, RastSurf drape)
img
- Image array to store colours.drape
- Raster holding the hue value to combine.public int getWSize()
public float getShine()
public float getDiffuse()
public float getSpecular()
public double getDecayExp()
public float getSlopeTol()
SurfParam.RIDGE
,
SurfParam.CHANNEL
,
SurfParam.PLANAR
public float getCurveTol()
public float getpBlend()
public void setWSize(int ws)
ws
- New local window size.public void setShine(float shine)
shine
- Shininess value (typically 0 - 50).public void setDiffuse(float diffuse)
diffuse
- Diffuse constant(0 - 1).public void setSpecular(float specular)
specular
- Specular constant(0 - 1).public void setDecayExp(double de)
de
- New local window distance decay exponent.public void setSlopeTol(float st)
st
- New slope tolerance in radians for feature extraction.SurfParam
public void setCurveTol(float ct)
ct
- New curvature tolerance for feature extraction.SurfParam
public void setpBlend(float p)
p
- Weighting (0-1) used for image blending.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |