本文整理汇总了C++中mat::quiet_save方法的典型用法代码示例。如果您正苦于以下问题:C++ mat::quiet_save方法的具体用法?C++ mat::quiet_save怎么用?C++ mat::quiet_save使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类mat
的用法示例。
在下文中一共展示了mat::quiet_save方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: FitSegments
void Optimizer::FitSegments(mat& alpha,
mat& beta,
mat& rho,
mat& lamda,
InputPtr input,
ModelPtr model,
MeshPtr mesh,
ShapePtr shape,
TexturePtr texture)
{
mat eye_alpha = alpha;
mat eye_beta = beta;
mat nose_alpha = alpha;
mat nose_beta = beta;
mat mouth_alpha = alpha;
mat mouth_beta = beta;
mat rest_alpha = alpha;
mat rest_beta = beta;
Face3dModel face3d_model(shape, texture);
mesh = face3d_model.Construction(alpha, beta);
TwoPassZbuffer(rho, lamda, mesh, model, true); // cal segment two pass z-buffer
for (int c = 0; c < 3; ++c)
{
model->EnableIterator(ModelImage::NOSE);
FitNose(nose_alpha, nose_beta, rho, lamda, input, model, mesh, shape, texture);
model->EnableIterator(ModelImage::EYE);
FitEye(eye_alpha, eye_beta, rho, lamda, input, model, mesh, shape, texture);
model->EnableIterator(ModelImage::MOUTH);
FitMouth(mouth_alpha, mouth_beta, rho, lamda, input, model, mesh, shape, texture);
model->EnableIterator(ModelImage::REST);
FitRest(rest_alpha, rest_beta, rho, lamda, input, model, mesh, shape, texture);
}
mat all_alpha(PrincipalNum,SegmentsNum);
all_alpha.cols(0, 0) = nose_alpha;
all_alpha.cols(1, 1) = eye_alpha;
all_alpha.cols(2, 2) = mouth_alpha;
all_alpha.cols(3, 3) = rest_alpha;
mat all_beta(PrincipalNum, SegmentsNum);
all_beta.cols(0, 0) = nose_beta;
all_beta.cols(1, 1) = eye_beta;
all_beta.cols(2, 2) = mouth_beta;
all_beta.cols(3, 3) = rest_beta;
mesh = face3d_model.Construction(all_alpha, all_beta);
mesh->Blend();
rho.quiet_save("rho_para", arma_binary);
lamda.quiet_save("lamda_para", arma_binary);
}