ConvertToFP64 Data Member Function

Converts a channel of the source <Image> object to FP64 ( raw <float64> ) and stores the results in the destination array. This method is type safe, and correctly converts values such as <uint8> or <float16> to floating point values.

Prototype

int32 ConvertToFP64( Image p_oSource, int32 p_eChannel, Float64Array p_adDest )

Parameters

Parameter Type Parameter Name Documentation
<Image>p_oSourceA pointer to the source <Image> object.
int32p_eChannelThe channel of the <Image> to extract. Refers to the ImageChannel enumeration. Please see TYPE_SERVICE_ENUMERATION_UTIL.SSL in the application scripts folder for more information.
<Float64Array>p_adDestA pointer to the destination array. You can pass in a non-nullptr, empty array, and this function will allocate storage ( once ). Allocation assumes that you wish to allocate enough storage to store all the data in the source <Image> object.

Examples

Copy Text To Clipboard

None published. Please look for an example in the Scenome Scripting Language code base.