Get the parameters of a residual block.
| 609 | |
| 610 | // Get the parameters of a residual block. |
| 611 | Map::ParameterBlockCollection Map::parameters( |
| 612 | ::ceres::ResidualBlockId residualBlockId) const { // get the parameter blocks connected |
| 613 | ResidualBlockId2ParameterBlockCollection_Map::const_iterator it = |
| 614 | residualBlockId2ParameterBlockCollection_Map_.find(residualBlockId); |
| 615 | if (it == residualBlockId2ParameterBlockCollection_Map_.end()) { |
| 616 | ParameterBlockCollection empty; |
| 617 | return empty; // empty vector |
| 618 | } |
| 619 | return it->second; |
| 620 | } |
| 621 | |
| 622 | } // namespace ceres |
| 623 | } // namespace okvis |
no outgoing calls