zlacker

[parent] [thread] 17 comments
1. elliek+(OP)[view] [source] 2020-05-31 15:34:42
I’m reminded of a reddit thread a while back about the US government paying a large sum to create an “unblur” function for photoshop. Someone in the comments was able to rotate and flip a photo and use the photoshop blur tool to effectively undo a blur for free.

Perhaps it’s better to remove the section of photo with a person’s face instead? Or draw a shape over their face and flatten the image? It seems to me as long as the pixels are there the identifying data is there for anyone willing to spend the time and effort to find it.

Edit: Apparently it was interpol, not the US government. I can't find the reddit thread but here's a NYT article with the photo: https://thelede.blogs.nytimes.com/2007/10/08/interpol-untwir...

replies(4): >>dmos62+R3 >>andrew+k6 >>wongar+27 >>siberi+47
2. dmos62+R3[view] [source] 2020-05-31 16:06:22
>>elliek+(OP)
> rotate and flip a photo and use the photoshop blur tool to effectively undo a blur

I'm not sure I follow. Did he say "enhance" at any point during the process?

3. andrew+k6[view] [source] 2020-05-31 16:25:02
>>elliek+(OP)
In the case you posted, the image is not blurred. Instead pixels are simply moved from one location to another via the "swirl" effect. Very little pixel information is lost in this process, and if you can recover the position transformation, you can easily undo it.
replies(1): >>thephy+uz
4. wongar+27[view] [source] 2020-05-31 16:31:30
>>elliek+(OP)
Blurring isn't that good at destroying information, I think we mostly use it because it's the best looking censoring attempt.

I would pixelate the faces to be just 4x4 giant pixels. It destroys nearly as much information as blacking them out while still not disrupting the image too much

replies(3): >>noja+T7 >>dehrma+Oc >>Siempr+Uk
5. siberi+47[view] [source] 2020-05-31 16:31:47
>>elliek+(OP)
That wasn't really a "blur", though. A swirl like that is just moving pixels around. If know how the algorithm works, you can reverse it. Probably, it was done with a common program like Adobe Photoshop or Gimp or something. One could write a program that would just "unswirl" with various parameters and generate a bunch of images, and a human could pick out the one that looks like an unswirled image. If you can pick out the right paramaters to the unswirl, then no image information is lost.

That can't be done with a blur. In a blur, pixels are merged or averaged together and information is lost. In some cases you could sharpen it a little, but it's still not going to be as good as the original image. In a really good blur, even the best sharpen algorithm isn't going to give you something that looks like an identifiable face.

replies(2): >>DanBC+C7 >>Mauran+gh
◧◩
6. DanBC+C7[view] [source] [discussion] 2020-05-31 16:36:29
>>siberi+47
The swirl was done with photoshop, and Interpol got Adobe to create an unswirl tool. Interpol was involved because a man had been sexually abusing children, and photographing the abuse, and he released those photographs.

https://en.wikipedia.org/wiki/Christopher_Paul_Neil

◧◩
7. noja+T7[view] [source] [discussion] 2020-05-31 16:38:54
>>wongar+27
I would guess that pixelisation for videos rather than pictures probably reveals more information the longer the video.
replies(1): >>GreedC+hN
◧◩
8. dehrma+Oc[view] [source] [discussion] 2020-05-31 17:23:32
>>wongar+27
Here's a good read on undoing blurs: https://yuzhikov.com/articles/BlurredImagesRestoration1.htm

The short explanation is blurs are kernels that spread a pixel's value across other pixels, so knowing this, you can treat blurred pixel values as a system of equations to solve.

◧◩
9. Mauran+gh[view] [source] [discussion] 2020-05-31 17:55:43
>>siberi+47
> That can't be done with a blur. In a blur, pixels are merged or averaged together and information is lost.

I'd be careful with that assumption. The only thing that really loses information is the discretization back into 0-255 range, and that naturally loses very little information.

If you consider the pixels as a large vector of values, you're effectively multiplying it by a matrix (plus discretization afterwards). If that matrix has (near) full rank, you can restore (close to) all the information.

Consider an grayscale image with two pixels a = 10, b = 20. I apply a blur that transfers 10% of each pixel to the other one. I end up with 11, 19. I'm left with the information 0.9 a + 0.1 b = 11, 0.1 a + 0.9 b = 19. Clearly this system can be solved uniquely. Or equivalently, the blur matrix (and I don't mean the kernel but the full blur operation matrix) is [[ 0.9 0.1 ] [ 0.1 0.9]], which has full rank and is thus invertible.

You'd be surprised at the amount of image detail that can be recovered by filtering when the original distortion function is known. See also https://en.wikipedia.org/wiki/Deconvolution and the lower half of that page's "See also" links section.

replies(3): >>dqv+mj >>kzrdud+VK >>wizzwi+VL
◧◩◪
10. dqv+mj[view] [source] [discussion] 2020-05-31 18:14:06
>>Mauran+gh
What about in the case of a mosaic blur?
replies(1): >>Mauran+lH1
◧◩
11. Siempr+Uk[view] [source] [discussion] 2020-05-31 18:25:53
>>wongar+27
If final appearance is important, just blur a bunch of pictures of Trump and paste the appropriate one over the face. Or an unblurred face for that matter.
replies(1): >>egyptu+qB
◧◩
12. thephy+uz[view] [source] [discussion] 2020-05-31 20:22:41
>>andrew+k6
This makes 100% sense compared to "undoing a blur" by applying another blur (with negative radius?).
◧◩◪
13. egyptu+qB[view] [source] [discussion] 2020-05-31 20:36:44
>>Siempr+Uk
Shit, how about just pasting Trump’s face over everyone’s and not bothering to blur it? There’s probably enough pictures of him out there to match any angle and expression. Detect face, deep fake that area into Trump.
◧◩◪
14. kzrdud+VK[view] [source] [discussion] 2020-05-31 21:49:24
>>Mauran+gh
So it would seem we should use a 0.5x + 0.5y blur to be sure to lose information - something that makes the matrix close to singular.

Also, how to handle the boundaries? We select a box in the image and blur that; we'd want to handle the boundaries in a way that also makes sure we lose information.

replies(1): >>Mauran+dH1
◧◩◪
15. wizzwi+VL[view] [source] [discussion] 2020-05-31 21:57:42
>>Mauran+gh
You actually do lose information around the edges (it's cropped). But not much; the images are pretty compressible, so you can just predict those pixels.
◧◩◪
16. GreedC+hN[view] [source] [discussion] 2020-05-31 22:08:39
>>noja+T7
Yes, you would need to fix the pixels to an initial or average value. I remember Nintendo didn't do this a couple years ago, accidentally leaking the name of a new game mode [1] for Smash Ultimate.

[1] https://twitter.com/Lattie9001/status/1027204063811850240

◧◩◪◨
17. Mauran+dH1[view] [source] [discussion] 2020-06-01 09:35:07
>>kzrdud+VK
Yes, you could set each pixel in the blurred region to the same color (i.e. each matrix entry is identical) - that could be black or the average of the blurred region. "Pixelation" does the same but in smaller boxes.
◧◩◪◨
18. Mauran+lH1[view] [source] [discussion] 2020-06-01 09:36:39
>>dqv+mj
The matrix is far from full rank in that case - its rank will be the number of mosaic pieces instead of the number of pixels. If you have 100 pixels per block, you actually lose 99% of the information with this blur.
[go to top]