Track track = parser.parse(new FileInputStream(file));
TrackStatistics profile = new TrackStatistics(track);
- profile.writeHeightProfileJpg(new FileOutputStream("x.jpg"), 600, 300);
+ profile.writeHeightProfilePng(new FileOutputStream("x.png"), 600, 300);
List<Pair<Double,Double>> elevationProfile = computeElevationProfile(track);
printTrack(elevationProfile);