-
Notifications
You must be signed in to change notification settings - Fork 239
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Solved `ImportError: cannot import name 'convert_dict_qtables' from…
… 'PIL.JpegImagePlugin'` error (#72) - Avoid clipping when importing RAW files (#86) - Added Image Resampling tool (#88) - Updated README.md
- Loading branch information
1 parent
8ecde49
commit 37eb1c5
Showing
9 changed files
with
640 additions
and
692 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,7 +16,7 @@ | |
import numpy as np | ||
import numpy.linalg as numpyl | ||
from scipy.ndimage.filters import uniform_filter, maximum_filter | ||
import skimage.morphology as ski | ||
This comment has been minimized.
Sorry, something went wrong. |
||
import cv2 as cv | ||
|
||
from .feat_spam.spam_np_opt import getSpamRes | ||
from .utility.gaussianMixture import gm | ||
|
@@ -61,7 +61,8 @@ def getWeights(img, res): | |
|
||
th_White = 253.0 / 256 | ||
rd_White = 3 | ||
sat_mask = ski.binary_opening(img > th_White, ski.disk(rd_White)) | ||
kernel = cv.getStructuringElement(cv.MORPH_ELLIPSE, (rd_White, rd_White)) | ||
sat_mask = cv.morphologyEx((img > th_White).astype(np.uint8), cv.MORPH_OPEN, kernel) | ||
This comment has been minimized.
Sorry, something went wrong.
Ray9T
|
||
mm = np.logical_or(mm, sat_mask) | ||
mm = maximum_filter(mm, (win_z, win_z)) | ||
weights = np.logical_not(mm) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Edited images are no longer showing noise anomalies after this change. We are seeing uniform noise in this version, while the previous 0.85c version was great at picking noise anomalies.
Now even known manipulated images appear like unaltered ones.