Exemple #1
0
void TpsRegistration::PrepareOwnOptions(const char* f_config) {
  MultiScaleOptions(f_config);
  char delims[] = " -,;";
  char s_lambda[256] = {0};
  GetPrivateProfileString(section_, "lambda", NULL, s_lambda, 255, f_config);
  utils::parse_tokens(s_lambda, delims, v_lambda_);
  if (v_lambda_.size() < level_) {
    std::cerr<< " too many levels " << std::endl;
    exit(1);
  }
  char s_affine[256] = {0};
  GetPrivateProfileString(section_, "fix_affine", NULL,
      s_affine, 255, f_config);
  utils::parse_tokens(s_affine, delims, v_affine_);
  if (v_affine_.size() < level_) {
    std::cerr<< " too many levels " << std::endl;
    exit(1);
  }
}
Exemple #2
0
int RigidRegistration::PrepareOwnOptions(const char* f_config)
{
  return MultiScaleOptions(f_config);
}