Commit Graph

186 Commits

Author SHA1 Message Date
Benjamin Loison
faaf3eb263
Ease support for single or multiple colors 2024-04-18 00:35:34 +02:00
Benjamin Loison
cca81927dd
Move Color Enum to utils.py 2024-04-18 00:19:01 +02:00
Benjamin Loison
eac2cf2174
Add a missing parameter 2024-04-18 00:18:20 +02:00
fb58d78fed
Name output file the same way as the input one 2024-04-18 00:13:21 +02:00
Benjamin Loison
8c9dfc2e41
Output an estimated PRNU per color channel 2024-04-17 20:25:14 +02:00
Benjamin Loison
f15af68bba
Add and use Color enumeration 2024-04-17 20:15:33 +02:00
Benjamin Loison
f4d8c028b2
Remove unnecessary spaces
Thanks to:

```bash
sed -i 's/^ *$//g' extract_noise.py
```
2024-04-17 14:32:55 +02:00
Benjamin Loison
3760164622
Add and use colorRawImageVisible 2024-04-17 14:27:03 +02:00
Benjamin Loison
83a12f4e0a
Add and use SKY and WALL 2024-04-17 14:26:13 +02:00
Benjamin Loison
e080e841f5
Add and use raiseNotFlatFields 2024-04-17 14:10:11 +02:00
Benjamin Loison
a6ef3977dd
Add comment concerning printing {min,max}Color 2024-04-16 16:48:29 +02:00
Benjamin Loison
8ca1972ddb
Correct raise not flat-fields processing 2024-04-16 16:48:00 +02:00
Benjamin Loison
817c016815
Give a try to get image size with rawpy but it seems far slower
As got:

```
Filtering images:   0%|▏                                                                               | 21/8156 [00:11<1:17:28,  1.75it/s]
```
2024-04-16 04:06:49 +02:00
Benjamin Loison
04e0de4d33
Try making not flat-images compatible 2024-04-16 03:59:26 +02:00
Benjamin Loison
3a4f774e28
Make denoise arguments depend on denoiser 2024-04-16 03:27:26 +02:00
Benjamin Loison
caf7025504
Correct typos in previous commit 2024-04-16 03:15:53 +02:00
Benjamin Loison
d4e13ed123
Compute automatically extreme values 2024-04-16 03:11:38 +02:00
Benjamin Loison
a8fa053687
#49: Get PRNU by using RAW images 2024-04-16 03:02:58 +02:00
Benjamin Loison
6251c487e2
Add temporarily maxGreen computation
And got:

```
Denoising images:   0%|                                                                      | 0/100 [00:00<?, ?it/s]maxGreen=2275
Denoising images:   1%|▌                                                             | 1/100 [00:00<01:11,  1.38it/s]maxGreen=2377
Denoising images:   2%|█▏                                                            | 2/100 [00:01<01:18,  1.24it/s]maxGreen=3468
Denoising images:  19%|███████████▌                                                 | 19/100 [00:11<00:46,  1.75it/s]maxGreen=4908
Denoising images: 100%|████████████████████████████████████████████████████████████| 100/100 [00:57<00:00,  1.74it/s]
```
2024-04-16 02:51:27 +02:00
Benjamin Loison
90df8a7cb9
Verify raw.raw_pattern as raw.color_desc does not seem enough
As got:

```bash
python3 extract_noise.py
```
```
Denoising images:   0%|                                                                                           | 0/8156 [00:00<?, ?it/s]/mnt/HDD0/raise/nef/ra2c888f8t.NEF
Denoising images:   0%|                                                                                           | 0/8156 [00:00<?, ?it/s]
Traceback (most recent call last):
  File "/home/benjamin/robust_image_source_identification_on_modern_smartphones/datasets/raise/extract_noise.py", line 73, in <module>
    treatImage(imageFileName)
  File "/home/benjamin/robust_image_source_identification_on_modern_smartphones/datasets/raise/extract_noise.py", line 46, in treatImage
    assert np.array_equal(raw.raw_pattern, np.array([[3, 2], [0, 1]], dtype = np.uint8))
AssertionError
```
2024-04-16 01:06:59 +02:00
Benjamin Loison
120eaf563f
WIP: Add .nef support 2024-04-15 23:39:47 +02:00
Benjamin Loison
a0b366e98a
Use shebang compatible with venv
See [Benjamin-Loison/cpython/issues/10](https://github.com/Benjamin-Loison/cpython/issues/10).
2024-04-15 23:17:04 +02:00
Benjamin Loison
bddfa4c8d5
Clean datasets/raise/extract_noise.py 2024-04-15 16:16:29 +02:00
Benjamin Loison
a09f2ba1c0
#29: Add Nikon D7000 4946x3278 PRNU estimation from NEF to PNG images 2024-04-15 16:06:05 +02:00
847d4bb42f
Update annotations 2024-04-11 23:52:38 +02:00
78b54bf169
Add articles/Mathématiques appliquées — Wikipédia/ 2024-04-11 23:47:20 +02:00
322e201048
Update annotations 2024-04-09 04:06:49 +02:00
fed5698e84
Update annotations 2024-04-09 03:43:17 +02:00
283fa781e5
Add articles/Bayer filter - Wikipedia/ 2024-04-09 03:16:11 +02:00
Benjamin Loison
bc06612501
Make extract_noise.py easier to configure by providing denoiser 2024-04-08 04:52:29 +02:00
38d29e3c8f
Add articles/Binomial distribution - Wikipedia/ 2024-04-07 22:59:09 +02:00
502ac5d14e
Update annotations 2024-04-07 22:58:50 +02:00
6f3623fb44
Add articles/Luminance — Wikipédia/ 2024-04-07 22:33:57 +02:00
1c264ff405
Update annotations 2024-04-07 22:31:28 +02:00
9ed68af7e1
Add articles/Luminance - Wikipedia/ 2024-04-07 22:22:23 +02:00
9468bda3df
Update annotations 2024-04-07 19:58:31 +02:00
3f47afb165
Add articles/Résumé de cours Variables aléatoires finies/ 2024-04-07 18:11:39 +02:00
68797b1470
Update annotations 2024-04-07 17:33:52 +02:00
dfe5b6ac38
Add articles/Random variable - Wikipedia/ 2024-04-07 17:24:05 +02:00
8651242c2b
Update annotations 2024-04-07 17:21:29 +02:00
08d9cdc900
Add articles/Bernoulli distribution - Wikipedia/ 2024-04-07 17:17:36 +02:00
75f674cd95
Update annotations 2024-04-07 17:11:41 +02:00
ca1fa73c49
Add articles/Inflection point - Wikipedia/ 2024-04-07 17:09:30 +02:00
3d366eb426
Update annotations 2024-04-07 16:59:19 +02:00
70e5ef902d
Add articles/Central limit theorem - Wikipedia/ 2024-04-07 16:52:25 +02:00
7301e2fe35
Update annotations 2024-04-07 16:50:40 +02:00
93663e1044
Add articles/Additive white Gaussian noise - Wikipedia/ 2024-04-07 16:42:10 +02:00
2d3830848b
Update annotations 2024-04-07 16:40:49 +02:00
9d1527c5c4
Add articles/Gaussian noise - Wikipedia/ 2024-04-07 16:30:58 +02:00
Benjamin Loison
8748e648b5
Remove no more relevant commented code for a test 2024-04-06 00:06:13 +02:00