Home
last modified time | relevance | path

Searched refs:cost_function (Results 1 – 25 of 35) sorted by relevance

12

/external/ceres-solver/internal/ceres/
Dnumeric_diff_cost_function_test.cc49 internal::scoped_ptr<CostFunction> cost_function; in TEST() local
50 cost_function.reset( in TEST()
58 functor.ExpectCostFunctionEvaluationIsNearlyCorrect(*cost_function, CENTRAL); in TEST()
62 internal::scoped_ptr<CostFunction> cost_function; in TEST() local
63 cost_function.reset( in TEST()
71 functor.ExpectCostFunctionEvaluationIsNearlyCorrect(*cost_function, FORWARD); in TEST()
75 internal::scoped_ptr<CostFunction> cost_function; in TEST() local
76 cost_function.reset( in TEST()
84 functor.ExpectCostFunctionEvaluationIsNearlyCorrect(*cost_function, CENTRAL); in TEST()
88 internal::scoped_ptr<CostFunction> cost_function; in TEST() local
[all …]
Dnumeric_diff_functor_test.cc52 internal::scoped_ptr<CostFunction> cost_function; in TEST() local
55 cost_function.reset( in TEST()
59 functor.ExpectCostFunctionEvaluationIsNearlyCorrect(*cost_function, CENTRAL); in TEST()
61 cost_function.reset( in TEST()
64 functor.ExpectCostFunctionEvaluationIsNearlyCorrect(*cost_function, CENTRAL); in TEST()
71 internal::scoped_ptr<CostFunction> cost_function; in TEST() local
74 cost_function.reset( in TEST()
78 functor.ExpectCostFunctionEvaluationIsNearlyCorrect(*cost_function, FORWARD); in TEST()
80 cost_function.reset( in TEST()
83 functor.ExpectCostFunctionEvaluationIsNearlyCorrect(*cost_function, FORWARD); in TEST()
[all …]
Dproblem.cc46 CostFunction* cost_function, in AddResidualBlock() argument
49 return problem_impl_->AddResidualBlock(cost_function, in AddResidualBlock()
55 CostFunction* cost_function, in AddResidualBlock() argument
58 return problem_impl_->AddResidualBlock(cost_function, in AddResidualBlock()
64 CostFunction* cost_function, in AddResidualBlock() argument
67 return problem_impl_->AddResidualBlock(cost_function, in AddResidualBlock()
73 CostFunction* cost_function, in AddResidualBlock() argument
76 return problem_impl_->AddResidualBlock(cost_function, in AddResidualBlock()
82 CostFunction* cost_function, in AddResidualBlock() argument
85 return problem_impl_->AddResidualBlock(cost_function, in AddResidualBlock()
[all …]
Dproblem_impl.h73 ResidualBlockId AddResidualBlock(CostFunction* cost_function,
76 ResidualBlockId AddResidualBlock(CostFunction* cost_function,
79 ResidualBlockId AddResidualBlock(CostFunction* cost_function,
82 ResidualBlockId AddResidualBlock(CostFunction* cost_function,
85 ResidualBlockId AddResidualBlock(CostFunction* cost_function,
89 ResidualBlockId AddResidualBlock(CostFunction* cost_function,
93 ResidualBlockId AddResidualBlock(CostFunction* cost_function,
97 ResidualBlockId AddResidualBlock(CostFunction* cost_function,
102 ResidualBlockId AddResidualBlock(CostFunction* cost_function,
107 ResidualBlockId AddResidualBlock(CostFunction* cost_function,
[all …]
Dproblem_impl.cc163 residual_block->cost_function() != NULL) { in DeleteBlock()
165 const_cast<CostFunction*>(residual_block->cost_function())); in DeleteBlock()
219 CostFunction* cost_function, in AddResidualBlock() argument
222 CHECK_NOTNULL(cost_function); in AddResidualBlock()
224 cost_function->parameter_block_sizes().size()); in AddResidualBlock()
228 cost_function->parameter_block_sizes(); in AddResidualBlock()
265 CHECK_EQ(cost_function->parameter_block_sizes()[i], in AddResidualBlock()
268 << " of size " << cost_function->parameter_block_sizes()[i] in AddResidualBlock()
275 new ResidualBlock(cost_function, in AddResidualBlock()
294 CostFunction* cost_function, in AddResidualBlock() argument
[all …]
Dautodiff_cost_function_test.cc55 CostFunction* cost_function = in TEST() local
75 cost_function->Evaluate(parameters, &residuals, NULL); in TEST()
77 cost_function->Evaluate(parameters, &residuals, jacobians); in TEST()
90 delete cost_function; in TEST()
112 CostFunction* cost_function = in TEST() local
127 cost_function->Evaluate(parameters, &residuals, NULL); in TEST()
130 cost_function->Evaluate(parameters, &residuals, jacobians); in TEST()
142 delete cost_function; in TEST()
Ddynamic_autodiff_cost_function_test.cc77 DynamicAutoDiffCostFunction<MyCostFunctor, 3> cost_function( in TEST() local
79 cost_function.AddParameterBlock(param_block_0.size()); in TEST()
80 cost_function.AddParameterBlock(param_block_1.size()); in TEST()
81 cost_function.SetNumResiduals(21); in TEST()
88 EXPECT_TRUE(cost_function.Evaluate(&parameter_blocks[0], in TEST()
105 DynamicAutoDiffCostFunction<MyCostFunctor, 3> cost_function( in TEST() local
107 cost_function.AddParameterBlock(param_block_0.size()); in TEST()
108 cost_function.AddParameterBlock(param_block_1.size()); in TEST()
109 cost_function.SetNumResiduals(21); in TEST()
128 EXPECT_TRUE(cost_function.Evaluate(parameter_blocks.data(), in TEST()
[all …]
Dresidual_block_test.cc93 TernaryCostFunction cost_function(3, 2, 3, 4); in TEST() local
96 ResidualBlock residual_block(&cost_function, NULL, parameters, -1); in TEST()
99 EXPECT_EQ(&cost_function, residual_block.cost_function()); in TEST()
232 LocallyParameterizedCostFunction cost_function; in TEST() local
235 ResidualBlock residual_block(&cost_function, NULL, parameters, -1); in TEST()
238 EXPECT_EQ(&cost_function, residual_block.cost_function()); in TEST()
Dnumeric_diff_test_utils.cc58 const CostFunction& cost_function, in ExpectCostFunctionEvaluationIsNearlyCorrect() argument
70 ASSERT_TRUE(cost_function.Evaluate(&parameters[0], in ExpectCostFunctionEvaluationIsNearlyCorrect()
103 const CostFunction& cost_function, in ExpectCostFunctionEvaluationIsNearlyCorrect() argument
140 ASSERT_TRUE(cost_function.Evaluate(&parameters[0], in ExpectCostFunctionEvaluationIsNearlyCorrect()
Dc_api.cc68 CallbackCostFunction(ceres_cost_function_t cost_function, in CallbackCostFunction() argument
73 : cost_function_(cost_function), in CallbackCostFunction()
143 ceres_cost_function_t cost_function, in ceres_problem_add_residual_block() argument
154 new CallbackCostFunction(cost_function, in ceres_problem_add_residual_block()
Dcost_function_to_functor_test.cc40 void ExpectCostFunctionsAreEqual(const CostFunction& cost_function, in ExpectCostFunctionsAreEqual() argument
42 EXPECT_EQ(cost_function.num_residuals(), in ExpectCostFunctionsAreEqual()
44 const int num_residuals = cost_function.num_residuals(); in ExpectCostFunctionsAreEqual()
46 cost_function.parameter_block_sizes(); in ExpectCostFunctionsAreEqual()
86 EXPECT_TRUE(cost_function.Evaluate(parameter_blocks.get(), in ExpectCostFunctionsAreEqual()
96 EXPECT_TRUE(cost_function.Evaluate(parameter_blocks.get(), in ExpectCostFunctionsAreEqual()
246 scoped_ptr<CostFunction> cost_function( \
258 ExpectCostFunctionsAreEqual(*cost_function, *actual_cost_function); \
Druntime_numeric_diff_cost_function_test.cc91 CostFunction *cost_function = cfs[c].get(); in TEST() local
103 ASSERT_TRUE(cost_function->Evaluate(&parameters[0], in TEST()
163 CostFunction *cost_function = cfs[c].get(); in TEST() local
199 ASSERT_TRUE(cost_function->Evaluate(&parameters[0], in TEST()
Dnumeric_diff_test_utils.h48 const CostFunction& cost_function,
73 const CostFunction& cost_function,
Dresidual_block.h72 ResidualBlock(const CostFunction* cost_function,
106 const CostFunction* cost_function() const { return cost_function_; } in cost_function() function
Dresidual_block.cc52 ResidualBlock::ResidualBlock(const CostFunction* cost_function, in ResidualBlock() argument
56 : cost_function_(cost_function), in ResidualBlock()
60 cost_function->parameter_block_sizes().size()]), in ResidualBlock()
Dresidual_block_utils_test.cc46 void CheckEvaluation(const CostFunction& cost_function, bool is_good) { in CheckEvaluation() argument
52 ResidualBlock residual_block(&cost_function, in CheckEvaluation()
Dgradient_checking_cost_function.cc219 const CostFunction *cost_function, in CreateGradientCheckingCostFunction() argument
223 return new GradientCheckingCostFunction(cost_function, in CreateGradientCheckingCostFunction()
288 CreateGradientCheckingCostFunction(residual_block->cost_function(), in CreateGradientCheckingProblemImpl()
Druntime_numeric_diff_cost_function.cc208 const CostFunction* cost_function, in CreateRuntimeNumericDiffCostFunction() argument
211 return new RuntimeNumericDiffCostFunction(cost_function, in CreateRuntimeNumericDiffCostFunction()
/external/ceres-solver/include/ceres/
Dproblem.h209 ResidualBlockId AddResidualBlock(CostFunction* cost_function,
216 ResidualBlockId AddResidualBlock(CostFunction* cost_function,
219 ResidualBlockId AddResidualBlock(CostFunction* cost_function,
222 ResidualBlockId AddResidualBlock(CostFunction* cost_function,
225 ResidualBlockId AddResidualBlock(CostFunction* cost_function,
229 ResidualBlockId AddResidualBlock(CostFunction* cost_function,
233 ResidualBlockId AddResidualBlock(CostFunction* cost_function,
237 ResidualBlockId AddResidualBlock(CostFunction* cost_function,
242 ResidualBlockId AddResidualBlock(CostFunction* cost_function,
247 ResidualBlockId AddResidualBlock(CostFunction* cost_function,
[all …]
/external/ceres-solver/examples/
Ddenoising.cc97 ceres::CostFunction* cost_function = in CreateProblem() local
100 problem->AddResidualBlock(cost_function, in CreateProblem()
108 std::vector<ceres::CostFunction*> cost_function(foe.NumFilters()); in CreateProblem() local
111 cost_function[alpha_index] = foe.NewCostFunction(alpha_index); in CreateProblem()
129 problem->AddResidualBlock(cost_function[alpha_index], in CreateProblem()
Dbundle_adjuster.cc258 CostFunction* cost_function; in BuildProblem() local
262 cost_function = new AutoDiffCostFunction< in BuildProblem()
268 cost_function = in BuildProblem()
289 problem->AddResidualBlock(cost_function, in BuildProblem()
295 problem->AddResidualBlock(cost_function, loss_function, camera, point); in BuildProblem()
Dhelloworld_numeric_diff.cc65 CostFunction* cost_function = in main() local
67 problem.AddResidualBlock(cost_function, NULL, &x); in main()
Dhelloworld.cc69 CostFunction* cost_function = in main() local
71 problem.AddResidualBlock(cost_function, NULL, &x); in main()
Dhelloworld_analytic_diff.cc93 CostFunction* cost_function = new QuadraticCostFunction; in main() local
94 problem.AddResidualBlock(cost_function, NULL, &x); in main()
Drobust_curve_fitting.cc147 CostFunction* cost_function = in main() local
150 problem.AddResidualBlock(cost_function, NULL, &m, &c); in main()

12