Implement correlation #66
Labels
No Label
bug
Context-Adaptive Interpolator
duplicate
enhancement
epic
help wanted
high priority
invalid
left for future work
low priority
medium
medium priority
meta
question
quick
wontfix
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: Benjamin_Loison/Robust_image_source_identification_on_modern_smartphones#66
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The Stack Overflow answer 15192809 is very slow for real resolution images. Why is it so slow, is not the element result only dependent of the associated initial elements, as it seems to be the case on the trivial example described in the git issue comment issues/63#issuecomment-1811?
https://en.wikipedia.org/w/index.php?title=Cross-correlation&oldid=1220518127#Cross-correlation_of_deterministic_signals
https://en.wikipedia.org/wiki/Digital_image_correlation_and_tracking
Related to the Stack Overflow question 189943.
Treat image as a single array? This does not seem correct. Can think for the 2D case about a subimage scanning a greater sized image. Then for the same size images correlation can think how would proceed in a subimage case and generalize. The Wikipedia example shows how to proceed for valued functions so it is identical. The question is then when have the correlation matrix how do we attribute a source camera?
Should give a try and verify the correctness of the Stack Overflow answer 75690643.
Related to #63.
https://en.wikipedia.org/wiki/Pearson_correlation_coefficient
https://numpy.org/doc/1.26/reference/generated/numpy.corrcoef.html
Still returns a matrix it seems, see:
https://docs.scipy.org/doc/scipy-1.13.0/reference/generated/scipy.stats.pearsonr.html (source: Wikipedia)
Unclear if correlation should in absolute be close to 1 or just close to 1.
According to supervisors the absolute distance to 1 makes sense, for instance for a signal with a phase offset of half its period, then the correlation should be -1 but it is the same signal to some extent.
Should implement an enum to choose between RMS and correlation.Done, see6a9900df91
.Should execute one more time to see if face negative Pearson correlation with current setup.