jwo.landserf.process
Class FuzzyFeatureThread

java.lang.Object
  extended byjava.lang.Thread
      extended byjwo.landserf.process.LSThread
          extended byjwo.landserf.process.FuzzyFeatureThread
All Implemented Interfaces:
JWInterruptionListener, Runnable

public class FuzzyFeatureThread
extends LSThread

Performs a fuzzy feature classification of a DEM. Feature membership is based on the degree to which any given location is classified as a particular feature over a range of window sizes. For example, a location that is classified as a peak using windows of size 3x3, 5x5, 7x7 and 9x9 would have a peak membership of 1 and pit, channel, pass, ridge and planar membership of 0. A location classified as a peak at 3x3, and 5x5, but a ridge at 7x7 and planar at 9x9 would have a peak membership of 2/4=0.5, a ridge membership of 1/4=0.25 and planar membership of 1/4=0.25.

This class produces 6 new rasters, one for each feature membership type (PIT, CHANNEL, PASS, RIDGE, PEAK and PLANAR).

Version:
2.2, 26th February, 2005.
Author:
Jo Wood

Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
FuzzyFeatureThread(GISFrame gisFrame)
          Calculates the fuzzy feature classification.
 
Method Summary
 void doProcessing()
          Performs the fuzzy feature classification on the DEM stored as the primary raster stored in GISFrame provided to the constructor.
 RasterMap getChannelMembershipMap()
          Retrieves the channel membership raster map.
 RasterMap getPassMembershipMap()
          Retrieves the pass membership raster map.
 RasterMap getPeakMembershipMap()
          Retrieves the peak membership raster map.
 RasterMap getPitMembershipMap()
          Retrieves the pit membership raster map.
 RasterMap getPlanarMembershipMap()
          Retrieves the planar membership raster map.
 RasterMap getRidgeMembershipMap()
          Retrieves the ridge membership raster map.
 
Methods inherited from class jwo.landserf.process.LSThread
checkStoppedThread, interruptionRequested, resetTimer, run, setErrorMessage, setMessage
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FuzzyFeatureThread

public FuzzyFeatureThread(GISFrame gisFrame)
Calculates the fuzzy feature classification.

Parameters:
gisFrame - GIS frame containing raster to process.
Method Detail

doProcessing

public void doProcessing()
Performs the fuzzy feature classification on the DEM stored as the primary raster stored in GISFrame provided to the constructor. The newly created raster maps, one each for the 6 feature types, are added to the GISFrame provided to the constructor. They can be retrieved directly via this class's accessor methods (getPeakMembershipMap() etc.), or by calling gisFrame.getRasterMaps(); and selecting the last 6 maps from the list.

Note that this method will be called automatically if this is run as a threaded process (e.g. myFuzzyFeatureThread.start()). Alternatively it can be called directly as a non-threaded process.

Specified by:
doProcessing in class LSThread
See Also:
GISFrame

getPitMembershipMap

public RasterMap getPitMembershipMap()
Retrieves the pit membership raster map.

Returns:
Pit membership raster map, or null if processing yet to complete.

getChannelMembershipMap

public RasterMap getChannelMembershipMap()
Retrieves the channel membership raster map.

Returns:
Channel membership raster map, or null if processing yet to complete.

getPassMembershipMap

public RasterMap getPassMembershipMap()
Retrieves the pass membership raster map.

Returns:
Pass membership raster map, or null if processing yet to complete.

getRidgeMembershipMap

public RasterMap getRidgeMembershipMap()
Retrieves the ridge membership raster map.

Returns:
Ridge membership raster map, or null if processing yet to complete.

getPeakMembershipMap

public RasterMap getPeakMembershipMap()
Retrieves the peak membership raster map.

Returns:
Peak membership raster map, or null if processing yet to complete.

getPlanarMembershipMap

public RasterMap getPlanarMembershipMap()
Retrieves the planar membership raster map.

Returns:
Planar membership raster map, or null if processing yet to complete.


Copyright Jo Wood, 1996-2005, last modified, 11th March, 2005