d3d9.dllExtractPCA
Microsoft DirectX 9.0 SDK Update (October 2004)

ID3DXPRTCompBuffer::ExtractPCA Method


Extracts the per-sample principal component analysis (PCA) projection coefficients from an ID3DXPRTCompBuffer compressed data buffer.

Syntax

HRESULT ExtractPCA(      

    UINT StartPCA,     UINT NumExtract,     FLOAT *pPCACoefficients );

Parameters

StartPCA
[in] Starting index for PCA projection coefficients to extract from the buffer.
NumExtract
[in] Number of PCA projection coefficients to extract from the buffer.
pPCACoefficients
[in] Pointer to the location where clustered principal component analysis (CPCA) coefficients are written. The size of the data written is (Number of Samples) * (Number of PCA Coefficients).

Return Value

If the method succeeds, the return value is S_OK.

If the method fails, the following value will be returned.

D3DERR_INVALIDCALLThe method call is invalid. For example, a method's parameter may have an invalid value.




© 2004 Microsoft Corporation. All rights reserved.
Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center.