Converts a <Float32Array> containing slope angles into a <ColorArray> containing quantized values from 0-255. 0 is 0 degrees and 255 is 90 degrees.
int32 ComputeSlopeAngleMap( Float32Array p_afElevation, ColorArray p_acSlopeAnglesRGB )
Parameter Type | Parameter Name | Documentation |
---|---|---|
<Float32Array> | p_afElevation | A pointer to a <Float32Array> containing the slope angle data. |
<ColorArray> | p_acSlopeAnglesRGB | A pointer to a <ColorArray> that will contain the quantized slope angles in RGB colorspace. You can pass in a non-null zero count array and this function will allocate sufficient storage. Alternatively, you can pre-allocate enough storage if you need precise control over when memory allocation occurs. |
None published. Please look for an example in the Scenome Scripting Language code base.