Lines Matching refs:file_reader
334 void ReadMatrix3x3(const EndianAwareFileReader &file_reader,
337 (*matrix)(i % 3, i / 3) = file_reader.Read<float>();
342 void ReadVector3(const EndianAwareFileReader &file_reader,
345 (*vector)(i) = file_reader.Read<float>();
372 EndianAwareFileReader file_reader;
373 if (!file_reader.OpenFile(file_name)) {
378 unsigned char is_image_space_flag = file_reader.Read<unsigned char>();
389 camera_intrinsics[i] = file_reader.Read<float>();
393 int number_of_cameras = file_reader.Read<int>();
397 camera.image = file_reader.Read<int>();
398 ReadMatrix3x3(file_reader, &camera.R);
399 ReadVector3(file_reader, &camera.t);
413 int number_of_points = file_reader.Read<int>();
417 point.track = file_reader.Read<int>();
418 ReadVector3(file_reader, &point.X);
431 int number_of_markers = file_reader.Read<int>();
435 marker.image = file_reader.Read<int>();
436 marker.track = file_reader.Read<int>();
437 marker.x = file_reader.Read<float>();
438 marker.y = file_reader.Read<float>();