Click or drag to resize

CIMUrSlopeStandardDeviation Method

Return the standard deviation of the slopes.

Namespace:  GeoEngine.Core.GXNetX
Assembly:  geoengine.core.gxnetx (in geoengine.core.gxnetx.dll) Version: 2024.2.0.25
Syntax
public static double rSlopeStandardDeviation(
	CGXNETCore gxNetShared,
	CIMG img
)

public static double rSlopeStandardDeviation(
	CGXNETCore gxNetShared,
	CIMG img
)

Parameters

gxNetShared
Type: GeoEngine.Core.GXNetXCGXNETCore
A shared CGXNETCore
img
Type: GeoEngine.Core.GXNetXCIMG
Grid object

Return Value

Type: Double
Standard deviation of grid slopes
Remarks
This method calculates the standard deviation of the horizontal differences in the X and Y directions for the supplied image. This is useful for shading routines. A good default scaling factor is 2.5 / standard deviation. The image will be sub-sampled to a statistically meaningful number. The cell sizes are used to determine the slopes.
See Also