ProjectEquirect2FovFile.m 698 B

12345678910111213141516171819
  1. % ProjectEquirect2FovFile.m
  2. %
  3. % This function projects the gaze vectors from the equirectangular
  4. % representation into the FOV and stores the new data in the output file. The
  5. % change in the new file is indicated throught the relation name, which is set
  6. % to gaze_fov.
  7. %
  8. %
  9. % input:
  10. % arffFile - file to process
  11. % outputFile - file to store converted data
  12. function Projectequirect2Fov(arffFile, outputFile)
  13. [data, metadata, attributes, relation, comments] = LoadArff(arffFile);
  14. [fovData, fovMetadata, fovAttributes, fovRelation] = ProjectEquirect2Fov(data, metadata, attributes, relation);
  15. SaveArff(outputFile, fovData, fovMetadata, fovAttributes, fovRelation, comments);
  16. end