GuidoBartoli / sherloq

An open-source digital image forensic toolset
GNU General Public License v3.0
2.66k stars 251 forks source link

Issue with Splicing Probability Heatmap #30

Closed jtlz2 closed 3 years ago

jtlz2 commented 3 years ago

In the image below, there are some red circular artifacts. What is the significance of these? Is there a way to mitigate them to see what the underlying heatmap looks like?

heatmap

Thanks!

GuidoBartoli commented 3 years ago

Those regions appear where there is not enough detail (too low brightness variance) to determine the splicing probability. You can see them also in the original Noiseprint description here (they are shown as blue patches because the colormap is inverted with respect to Sherloq). Does this make sense for your input image?

Please note that the algorithm works better with large images because the block size is quite large and it also perform a border padding that introduces an additional border where the probability is not computed.

jtlz2 commented 3 years ago

Yes that makes sense in principle and thanks for the helpful link.

Would anything reduce the contribution from these regions / enhance the signal-to-noise/combine bins in order to increase the surface brightness?

Yep I saw the padding effect.

GuidoBartoli commented 3 years ago

Would anything reduce the contribution from these regions / enhance the signal-to-noise/combine bins in order to increase the surface brightness?

I don't know if I understood your question correctly, however these regions are completely ignored at the level of classifications and by default receive probability 0, so they result as "not tampered" at all.

jtlz2 commented 3 years ago

Put another way, is there a way to reduce the size (radius) of these regions? Thanks!

GuidoBartoli commented 3 years ago

Well, they are dependent on the content of the image and generally appear in "flat" areas with no texture. If you want them to disappear, you have to alter the image, but maybe that's not what you want in Forensics, right? :wink: