Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
rgb-noise: Process Lightroom samples, with zero settings
# Read the TIFF files
vvm.tif <- vvm$new(has.RGGB.pattern = TRUE)
vvm.tif$digest.from.rgb(
file.name.from = '_ODL0415',
file.name.to = '_ODL1668',
file.path = 'ISO100/Selection/LR-zero'
)
# VVM plot
vvm.tif$plot(tlab = "VVM: sRGB images from Lightroom",
slab = 'With zero settings',
xlab = 'sRGB value',
ylab = 'sRGB value^2')
# Plot the SNR in dB vs gray scale (non log)
add.snr.ref.limits(
vvm.tif$plot(x = (mean/2.55), y = 20*log10(mean/sqrt(var)),
tlab = "SNR: sRGB images from Lightroom",
slab = 'With zero settings',
xlab = "sRGB gray scale",
ylab = "SNR (dB)")
+ scale_x_continuous(breaks = seq(0, 100, 25),
labels=c('0%', '25%', '50%', '75%', '100%'))
+ scale_y_continuous(breaks=seq(0, 64, 4))
)
# Plot the SNR in dB vs gray scale (log)
add.snr.ref.limits(
vvm.tif$plot(x = log10(mean/2.55), y = 20*log10(mean/sqrt(var)),
tlab = "SNR: sRGB images from Lightroom",
slab = 'With zero settings',
xlab = 'sRGB gray scale', ylab = 'SNR (dB)', print = FALSE)
+ scale_x_continuous(breaks=-1:2, labels=c('0.1%', '1%', '10%', '100%'))
+ scale_y_continuous(breaks=seq(0, 64, 4))
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.