PrtCompressedBuffer.ExtractBasis Method

Language:

Extracts the mean and principal component analysis (PCA) basis vectors for a given cluster from a PrtCompressedBuffer object.

Definition

Visual Basic Public Sub ExtractBasis( _
    ByVal cluster As Integer, _
    ByVal clusterBasis() As Single _
)
C# public void ExtractBasis(
    int cluster,
    float[] clusterBasis
);
C++ public:
void ExtractBasis(
    int cluster,
    array<float>^ clusterBasis
);
JScript public function ExtractBasis(
    cluster : int,
    clusterBasis : float[]
);

Parameters

cluster System.Int32
Cluster for which the basis will be extracted.
clusterBasis System.Single[]
An array of basis vector data for cluster.

Remarks

The size of the clusterBasis data will be:

(1 + Number of PCA vectors per cluster) * (Number of coefficients) * (Number of color channels)

Exceptions
InvalidCallException The method call is invalid. For example, a method's parameter might contain an invalid value.


Send comments about this topic to Microsoft. © Microsoft Corporation. All rights reserved.

Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center