Benjamin_Loison commented on issue Benjamin_Loison/Robust_image_source_identifica...#49 2024-04-16 02:52:55 +02:00
RAW image processing

Are raw values bounded?

Benjamin_Loison commented on issue Benjamin_Loison/Robust_image_source_identifica...#49 2024-04-16 01:40:15 +02:00
RAW image processing

Could consider the channel having the most variance on the considered set of images.

Benjamin_Loison commented on issue Benjamin_Loison/Robust_image_source_identifica...#49 2024-04-16 01:16:20 +02:00
RAW image processing
import rawpy
import numpy as np
from tqdm import tqdm
import matplotlib.pyplot as plt

filename = 'ra2c888f8t.NEF'

colors = {
    'R': (255, 0, 0),
    'G': (0, 255, 0),
    'B':
Benjamin_Loison commented on issue Benjamin_Loison/Robust_image_source_identifica...#49 2024-04-16 01:14:29 +02:00
RAW image processing

ra2c888f8t was done with Nikon D7000.

Benjamin_Loison commented on issue Benjamin_Loison/Robust_image_source_identifica...#49 2024-04-16 01:11:51 +02:00
RAW image processing

Would be nice to not have to assert raw.raw_pattern.

90df8a7cb9 Verify raw.raw_pattern as raw.color_desc does not seem enough
Benjamin_Loison opened issue Benjamin_Loison/vpv#3 2024-04-16 00:48:36 +02:00
How to open whole .nef?
Benjamin_Loison commented on issue Benjamin_Loison/Robust_image_source_identifica...#49 2024-04-16 00:42:10 +02:00
RAW image processing
help(rawpy.RawPy.raw_pattern)
Help on getset descriptor rawpy._rawpy.RawPy.raw_pattern:

raw_pattern
    The smallest possible Bayer pattern of this image.
    
    :rtype:…
Move to Codeberg
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