mirror of
https://github.com/azaion/annotations.git
synced 2026-04-22 08:36:29 +00:00
fix zooming in map matcher
This commit is contained in:
@@ -137,13 +137,13 @@
|
|||||||
HorizontalAlignment="Stretch"
|
HorizontalAlignment="Stretch"
|
||||||
VerticalAlignment="Stretch"/>
|
VerticalAlignment="Stretch"/>
|
||||||
|
|
||||||
<controls:CanvasEditor
|
<Border Grid.Column="2" ClipToBounds="True">
|
||||||
Grid.Column="2"
|
<controls:CanvasEditor
|
||||||
x:Name="GpsImageEditor"
|
x:Name="GpsImageEditor"
|
||||||
VerticalAlignment="Stretch"
|
VerticalAlignment="Stretch"
|
||||||
HorizontalAlignment="Stretch" >
|
HorizontalAlignment="Stretch" />
|
||||||
</controls:CanvasEditor>
|
</Border>
|
||||||
|
|
||||||
<GridSplitter
|
<GridSplitter
|
||||||
Background="DarkGray"
|
Background="DarkGray"
|
||||||
ResizeDirection="Columns"
|
ResizeDirection="Columns"
|
||||||
|
|||||||
@@ -118,7 +118,7 @@ public class Constants
|
|||||||
|
|
||||||
public static readonly GpsDeniedConfig DefaultGpsDeniedConfig = new()
|
public static readonly GpsDeniedConfig DefaultGpsDeniedConfig = new()
|
||||||
{
|
{
|
||||||
MinKeyPoints = 15
|
MinKeyPoints = 11
|
||||||
};
|
};
|
||||||
|
|
||||||
# endregion
|
# endregion
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ public class GpsMatcherService(IGpsMatcherClient gpsMatcherClient,
|
|||||||
private readonly DirectoriesConfig _dirConfig = dirConfig.Value;
|
private readonly DirectoriesConfig _dirConfig = dirConfig.Value;
|
||||||
private const int ZOOM_LEVEL = 18;
|
private const int ZOOM_LEVEL = 18;
|
||||||
private const int POINTS_COUNT = 10;
|
private const int POINTS_COUNT = 10;
|
||||||
private const int DISTANCE_BETWEEN_POINTS_M = 120;
|
private const int DISTANCE_BETWEEN_POINTS_M = 140;
|
||||||
private const double SATELLITE_RADIUS_M = DISTANCE_BETWEEN_POINTS_M * (POINTS_COUNT + 1);
|
private const double SATELLITE_RADIUS_M = DISTANCE_BETWEEN_POINTS_M * (POINTS_COUNT + 1);
|
||||||
private const int MAX_AVG_POINTS = 2;
|
private const int MAX_AVG_POINTS = 2;
|
||||||
|
|
||||||
@@ -88,7 +88,7 @@ public class GpsMatcherService(IGpsMatcherClient gpsMatcherClient,
|
|||||||
_currentIndex = _currentRouteImages[result.Image];
|
_currentIndex = _currentRouteImages[result.Image];
|
||||||
_currentRouteImages.Remove(result.Image);
|
_currentRouteImages.Remove(result.Image);
|
||||||
|
|
||||||
if (result.KeyPoints > gpsDeniedConfig.Value.MinKeyPoints)
|
if (result.KeyPoints >= gpsDeniedConfig.Value.MinKeyPoints)
|
||||||
{
|
{
|
||||||
var direction = _lastGeoPoint.DirectionTo(result.GeoPoint);
|
var direction = _lastGeoPoint.DirectionTo(result.GeoPoint);
|
||||||
_directions.Enqueue(direction);
|
_directions.Enqueue(direction);
|
||||||
|
|||||||
@@ -35,7 +35,7 @@
|
|||||||
"ModelBatchSize": 4
|
"ModelBatchSize": 4
|
||||||
},
|
},
|
||||||
"GpsDeniedConfig": {
|
"GpsDeniedConfig": {
|
||||||
"MinKeyPoints": 12
|
"MinKeyPoints": 11
|
||||||
},
|
},
|
||||||
"ThumbnailConfig": { "Size": "240,135", "Border": 10 }
|
"ThumbnailConfig": { "Size": "240,135", "Border": 10 }
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user