forked from nasa/georef_imageregistration
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoffline_config.py
77 lines (55 loc) · 2.41 KB
/
offline_config.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
#__BEGIN_LICENSE__
# Copyright (c) 2017, United States Government, as represented by the
# Administrator of the National Aeronautics and Space Administration.
# All rights reserved.
#
# The GeoRef platform is licensed under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0.
#
# Unless required by applicable law or agreed to in writing, software distributed
# under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
# CONDITIONS OF ANY KIND, either express or implied. See the License for the
# specific language governing permissions and limitations under the License.
#__END_LICENSE__
'''
Main config file that stores settings needed by the offline
registration tools.
'''
# ==================================================
# Input paths
# Path to the DCRAW tool used to convert from raw images to tiffs
DCRAW_PATH = '/home/smcmich1/repo/dcraw/dcraw'
# Top level folder containing the input RAW images
RAW_IMAGE_FOLDER = '/media/network/ImagesDrop/RawESC'
# We can either process the RAW file or an already converted JPEG file
USE_RAW = False
# ==================================================
# Output paths
# The location of the results database
OUTPUT_DATABASE_PATH = '/home/smcmich1/log_db_test.sqlt'
# Top level folder where we write our output files
# OUTPUT_IMAGE_FOLDER = '/media/network/GeoRef'
OUTPUT_IMAGE_FOLDER = '/tmp/sourceFiles'
OUTPUT_ZIP_FOLDER = '/media/network/GeoRef/export'
# ==================================================
# Input image filters
# Maximum tilt angle of images that we will try to process
MAX_TILT_ANGLE = 70
# Maximum cloud percentage that we will try to process.
# - For convenience, convert it to an integer here.
MAX_CLOUD_PERCENTAGE = 0.34
MAX_CLOUD_PERCENTAGE_INT = int(MAX_CLOUD_PERCENTAGE*100)
# ==================================================
# ==================================================
# Processing settings
# ==================================================
# "Local" alignment settings
# Only try to match a certain number of times
LOCAL_ALIGNMENT_MAX_ATTEMPTS = 4
# Limit to the frame count that we can match to in each direction
LOCAL_ALIGNMENT_MAX_FRAME_RANGE = 20
# How far the center point can differ in lat or lon
# - TODO: This should differ by the resolution
LOCAL_ALIGNMENT_MAX_DIST = 0.5