|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jwo.landserf.process.ScaleSurfParam
public class ScaleSurfParam
Calculates surface parameters from a raster map over a range of window sizes.
Field Summary | |
---|---|
static int |
AVERAGE
Indicates multiscale summary should be in form of mean and dispersion. |
static int |
RANGE
Indicates multiscale summary should be in form of minimum and maximum. |
Constructor Summary | |
---|---|
ScaleSurfParam(GISFrame gisFrame,
int paramType,
int summaryType,
boolean isSurface)
Sets up a surface ready for parameterisation (slope, aspect etc) or feature extraction from a raster surface. |
|
ScaleSurfParam(RasterMap rasterMap,
int paramType,
int summaryType,
boolean isSurface)
Sets up a surface ready for parameterisation (slope, aspect etc) or feature extraction from a raster surface. |
Method Summary | |
---|---|
void |
calcParams()
Calculates a surface parameter (slope, aspect etc) for an entire raster over a range of scales. |
void |
calcParams(float e,
float n)
Calculates a surface parameter (slope, aspect etc) at a single point over a given range of scales. |
int |
getMaxWSize()
Returns the maximum size window used for scale-based parameterisation. |
float[] |
getParam()
Returns the array holding surface parameter results. |
float |
getParamAverage()
Returns the average parameter value for a particular point over a given range of scales. |
RasterMap |
getParamAverageSurf()
Deprecated. Use getSummarySurf1() instead. This performs an identical function
but its new name reflects the fact that it can return either a surface of
averages or minimum values. |
float |
getParamMax()
Returns the maximum parameter value for a particular point over a given range of scales. |
float |
getParamMin()
Returns the minimum parameter value for a particular point over a given range of scales. |
int |
getParamType()
Returns the type of parameter type calculated. |
float |
getParamVariation()
Returns the variation of parameter values for a particular point over a given range of scales. |
RasterMap |
getParamVariationSurf()
Deprecated. Use getSummarySurf2() instead. This performs an identical function
but its new name reflects the fact that it can return either a surface of
variation or maximum values. |
RasterMap |
getSummarySurf1()
Returns a surface of either averages or minimum values over a range of window sizes depending on the summaryType defined in the constructor. |
RasterMap |
getSummarySurf2()
Returns a surface of either variation or maximum values over a range of window sizes depending on the summaryType defined in the constructor. |
void |
setCallingThread(LSThread lsThread)
Passes the thread that calls this process to the processor. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int AVERAGE
public static final int RANGE
Constructor Detail |
---|
public ScaleSurfParam(RasterMap rasterMap, int paramType, int summaryType, boolean isSurface)
rasterMap
- RasterMap object to calculate parameter from.paramType
- Parameter type to calculate.summaryType
- Summary type (either RANGE or AVERAGE).isSurface
- Flag indicating whole surface to be calculated.public ScaleSurfParam(GISFrame gisFrame, int paramType, int summaryType, boolean isSurface)
gisFrame
- GUI holding the raster DEM from which to calculate parameter.paramType
- Parameter type to calculate.summaryType
- Summary type (either RANGE or AVERAGE).isSurface
- Flag indicating whole surface to be calculated.Method Detail |
---|
public void calcParams(float e, float n)
e
- Easting of point to parameterise.n
- Northing of point to parameterise.public void setCallingThread(LSThread lsThread)
lsThread
- Thread that called this process.public void calcParams()
public int getParamType()
SurfParam
public float[] getParam()
public float getParamAverage()
public float getParamVariation()
public float getParamMin()
public float getParamMax()
public RasterMap getParamAverageSurf()
getSummarySurf1()
instead. This performs an identical function
but its new name reflects the fact that it can return either a surface of
averages or minimum values.
summaryType
defined in the constructor. If summaryType
was AVERAGE
, the average parameter value is returned, if it was RANGE
the minimum parameter value is returned.
public RasterMap getSummarySurf1()
summaryType
defined in the constructor. If summaryType
was AVERAGE
, the average parameter value is returned, if it was RANGE
the minimum parameter value is returned. The measure of average will depend on whether the
original surface is measurement scale (in which case, the mean is returned) or categorical
(in which case, the mode is returned).
public RasterMap getParamVariationSurf()
getSummarySurf2()
instead. This performs an identical function
but its new name reflects the fact that it can return either a surface of
variation or maximum values.
summaryType
defined in the constructor. If summaryType
was AVERAGE
, the variation (standard deviation or entropy) in parameter value
is returned, if it was RANGE
, the maximum parameter value is returned. The measure
of variation will depend on whether the original surface is measurement scale (in which case,
the standard deviation is returned) or categorical (in which case, entropy is returned).
public RasterMap getSummarySurf2()
summaryType
defined in the constructor. If summaryType
was AVERAGE
, the variation (standard deviation or entropy) in parameter value
is returned, if it was RANGE
, the maximum parameter value is returned.
public int getMaxWSize()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |