std::cout<<"Warning: Number of shape dimensions is not equal to three times the number of vertices. Something will probably go wrong during the loading."<<std::endl;
}
// Read shape projection matrix
Matorthonormal_pca_basis_shape(numShapeDims,numShapePcaCoeffs,CV_32FC1);// m x n (rows x cols) = numShapeDims x numShapePcaCoeffs
Matorthonormal_pca_basis_shape(num_shape_dims,num_shape_pca_coeffs,CV_32FC1);// m x n (rows x cols) = numShapeDims x numShapePcaCoeffs
std::cout<<"Loading shape PCA basis matrix with "<<orthonormal_pca_basis_shape.rows<<" rows and "<<orthonormal_pca_basis_shape.cols<<" cols."<<std::endl;
std::cout<<"Warning: Number of shape dimensions is not equal to the number of dimensions of the mean. Something will probably go wrong during the loading."<<std::endl;
std::cout<<"Warning: Number of coefficients in the PCA basis matrix is not equal to the number of eigenvalues. Something will probably go wrong during the loading."<<std::endl;
std::cout<<"Loading color PCA basis matrix with "<<orthonormal_pca_basis_color.rows<<" rows and "<<orthonormal_pca_basis_color.cols<<" cols."<<std::endl;
texCoords.push_back(std::array<double,2>{(xCoords[i]-*minMaxX.first)/divisorX,1.0f-(yCoords[i]-*minMaxY.first)/divisorY});// We rescale to [0, 1] and at the same time flip the y-coords (because in the isomap, the coordinates are stored upside-down).
tex_coords.push_back(std::array<double,2>{(x_coords[i]-*min_max_x.first)/divisor_x,1.0f-(y_coords[i]-*min_max_y.first)/divisor_y});// We rescale to [0, 1] and at the same time flip the y-coords (because in the isomap, the coordinates are stored upside-down).