Skip to content

Commit

Permalink
Low resolution pixels with NaN value are always of bad quality
Browse files Browse the repository at this point in the history
  • Loading branch information
radosuav committed Oct 4, 2017
1 parent 0570fa3 commit 18e62c2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pyDMS.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,9 @@ def trainSharpener(self):
quality_LR = None
else:
qualityPix = np.ones(data_LR.shape).astype(bool)

# Low resolution pixels with NaN value are always of bad quality
qualityPix = np.logical_and(qualityPix, ~np.isnan(data_LR))

# Then resample high res scene to low res pixel size while
# extracting sub-low-res-pixel homogeneity statistics
Expand Down

0 comments on commit 18e62c2

Please sign in to comment.