From 1d222ff2eb3435c35c188b7a8f8cda62e0aaa30a Mon Sep 17 00:00:00 2001 From: Cyberes Date: Sun, 12 Nov 2023 13:08:12 -0700 Subject: [PATCH] fix incorrectly copied code --- exfiltrate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exfiltrate.py b/exfiltrate.py index a3572f1..958a0cb 100755 --- a/exfiltrate.py +++ b/exfiltrate.py @@ -179,7 +179,7 @@ if __name__ == '__main__': mask = np.any(tile_data == 0, axis=-1) & np.any(tile_data != 0, axis=-1) # Identify pixels where not all bands are zero and at least one band is zero. for i in range(3): # Iterate over each band. # For these pixels, set zero bands to one. - tile_data[mask & (tile_data[:, :, i] == 0), i] = 0.1 + tile_data[mask & (tile_data[:, :, i] == 0), i] = 1 # Calculate the position of the tile in the image data array. row_pos = (row - min_row) * tile_size