![]() |
![]() |
![]() |
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_INVALIDCALL The method call is invalid. For example, a method's parameter may have an invalid value.