120eaf563f WIP: Add .nef support
a0b366e98a Use shebang compatible with venv
Benjamin_Loison commented on issue Benjamin_Loison/Robust_image_source_identifica…#49 2024-04-15 21:38:21 +02:00
RAW image processing

Can verify the consistency of the subset of pixels by verifying areas using as most as possible a single color channel.

from PIL import Image

with Image.open('r01b6aed6t.png') as
Benjamin_Loison commented on issue Benjamin_Loison/Robust_image_source_identifica…#49 2024-04-15 20:34:52 +02:00
RAW image processing

Let us give a try with red as above red image looks easier to understand than the blue one.

What precisely generates the PRNU? The sensor, the Bayer filter...?
Benjamin_Loison commented on issue Benjamin_Loison/Robust_image_source_identifica…#49 2024-04-15 20:04:58 +02:00
RAW image processing

r01b6aed6t.NEF_R

r01b6aed6t.NEF_G

![r01b6aed6t.NEF_B](/attachments/b12256e5-080b-4e…

bddfa4c8d5 Clean datasets/raise/extract_noise.py
Benjamin_Loison commented on issue Benjamin_Loison/Robust_image_source_identifica…#29 2024-04-15 16:14:53 +02:00
Estimate PRNU on easy real images

Tried estimating PRNU on not flat-field PNG from NEF images but I get the following for Nikon D7000 4946x3278 4,651 images:

100%
9a7f68b1b7 Clean datasets/raise/extract_noise.py
bb0b43194f Clean datasets/raise/extract_noise.py
0445d98f52 Clean datasets/raise/extract_noise.py
a09f2ba1c0 #29: Add Nikon D7000 4946x3278 PRNU estimation from NEF to PNG images
Benjamin_Loison commented on issue Benjamin_Loison/Robust_image_source_identifica…#49 2024-04-15 15:30:51 +02:00
RAW image processing

np.unique(raw_image_visible) shows that values 1, 2 etc are also taken, there is no gap.

Benjamin_Loison commented on issue Benjamin_Loison/Robust_image_source_identifica…#49 2024-04-15 15:04:49 +02:00
RAW image processing

Raw script:

import rawpy
import imageio

filename = 'r01b6aed6t.NEF'

def printWithName(variable):
    print(variable, '=', repr(eval(variable)))

with rawpy.imread(filename) as
Benjamin_Loison commented on issue Benjamin_Loison/Robust_image_source_identifica…#49 2024-04-15 12:08:10 +02:00
RAW image processing
def printWithName(variable):
    print(variable, '=', repr(eval(variable)))

with rawpy.imread(filename) as raw:
    printWithName('raw.color_desc')
    printWithName('raw.color_matrix'
RAW image processing
Benjamin_Loison opened issue Benjamin_Loison/linux#15 2024-04-14 18:48:20 +02:00
Configure a key to act like suppr