mirror of
https://github.com/azaion/annotations.git
synced 2026-04-22 12:06:31 +00:00
clean postbuild script
clean warnings
This commit is contained in:
@@ -27,9 +27,9 @@ public class Constants
|
||||
|
||||
public static readonly AnnotationConfig DefaultAnnotationConfig = new()
|
||||
{
|
||||
DetectionClasses = DefaultAnnotationClasses,
|
||||
VideoFormats = DefaultVideoFormats,
|
||||
ImageFormats = DefaultImageFormats,
|
||||
DetectionClasses = DefaultAnnotationClasses!,
|
||||
VideoFormats = DefaultVideoFormats!,
|
||||
ImageFormats = DefaultImageFormats!,
|
||||
AnnotationsDbFile = DEFAULT_ANNOTATIONS_DB_FILE
|
||||
};
|
||||
|
||||
|
||||
@@ -51,7 +51,7 @@ public class SatelliteDownloader(
|
||||
Directory.CreateDirectory(_satDirectory);
|
||||
|
||||
var downloadTilesResult = await DownloadTiles(centerLat, centerLon, radiusM, zoomLevel, token);
|
||||
var image = await ComposeTiles(downloadTilesResult.Tiles, token);
|
||||
var image = ComposeTiles(downloadTilesResult.Tiles, token);
|
||||
if (image != null)
|
||||
await SplitToTiles(image, downloadTilesResult, token);
|
||||
}
|
||||
@@ -104,7 +104,7 @@ public class SatelliteDownloader(
|
||||
await Task.Run(() => Parallel.ForEach(cropTasks, action => action()), token);
|
||||
}
|
||||
|
||||
private async Task<Image<Rgba32>?> ComposeTiles(ConcurrentDictionary<(int x, int y), byte[]> downloadedTiles, CancellationToken token = default)
|
||||
private Image<Rgba32>? ComposeTiles(ConcurrentDictionary<(int x, int y), byte[]> downloadedTiles, CancellationToken token = default)
|
||||
{
|
||||
if (downloadedTiles.IsEmpty)
|
||||
return null;
|
||||
@@ -148,8 +148,6 @@ public class SatelliteDownloader(
|
||||
}
|
||||
});
|
||||
|
||||
// await largeImage.SaveAsync(Path.Combine(_satDirectory, "full_map.tif"),
|
||||
// new TiffEncoder { Compression = TiffCompression.Deflate }, token);
|
||||
return largeImage;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user