| 324 | } |
| 325 | |
| 326 | CamTrajectory CVStabilization::GetCamTrajectoryTrackedData(size_t frameId){ |
| 327 | |
| 328 | // Check if the stabilizer info for the requested frame exists |
| 329 | if ( trajectoryData.find(frameId) == trajectoryData.end() ) { |
| 330 | |
| 331 | return CamTrajectory(); |
| 332 | } else { |
| 333 | |
| 334 | return trajectoryData[frameId]; |
| 335 | } |
| 336 | } |
| 337 | |
| 338 | // Load JSON string into this object |
| 339 | void CVStabilization::SetJson(const std::string value) { |
no test coverage detected