Commit 37d3dfeb authored by Sebastian's avatar Sebastian

Readjust dynamic range after first sync

parent 612891e9
......@@ -84,6 +84,7 @@ namespace gr
d_synchronize_opt (sync),
d_flip (flip),
d_history_length (40),
d_has_sync (false),
d_current_x (0),
d_current_y (0),
d_num_images (0),
......@@ -249,9 +250,19 @@ namespace gr
if(d_synchronize_opt) {
if(is_marker(i, in) == noaa_apt_sync_marker::SYNC_A) {
skip_to(39, i, in);
if(!d_has_sync) {
f_max_level = 0.0;
f_min_level = 1.0;
d_has_sync = true;
}
}
else if(is_marker(i, in) == noaa_apt_sync_marker::SYNC_B) {
skip_to(d_width / 2 + 39, i, in);
if(!d_has_sync) {
f_max_level = 0.0;
f_min_level = 1.0;
d_has_sync = true;
}
}
}
......
......@@ -44,6 +44,7 @@ namespace gr
bool d_synchronize_opt;
bool d_flip;
size_t d_history_length;
bool d_has_sync;
png::image<png::gray_pixel> d_full_image;
png::image<png::gray_pixel> d_left_image;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment