I'm trying to implement a solution that would, to some extent, evaluate a picture telling what are the chances that it was upscaled from the smaller image.
My approach is as follows:
- Take a picture of unknown origin (scaled or not)
- Perform sharpening using some technique which sharpens only evident edges (1)
- Extract edges using Difference of Gaussians
- Measure entropy of resulting image
Then downscale the image and upscale it back to the same size and compare entropies. OR Then upscale the image and downscale it back to the same size and compare entropies.
Does it sound reasonable? What technique should I use as (1)? Also, maybe I should do it in small steps so I don't introduce too many artificial points? I mean if the image was upscaled (preferably instantly, to target size) it won't matter a lot - but it the image weren't upscaled this incremental improvement will be better for the picture than taking it and upscaling instantly?