File:Deconvolution with imperfect kernels.png
Size of this preview: 639 × 599 pixels. Other resolutions: 256 × 240 pixels | 512 × 480 pixels | 678 × 636 pixels.
Original file (678 × 636 pixels, file size: 171 KB, MIME type: image/png)
File information
Structured data
Captions
Summary edit
DescriptionDeconvolution with imperfect kernels.png |
English: If you know the response function of your instrument, you can deconvolve it from your measurement to obtain a much sharper signal. But deconvolution is a dangerous procedure, as small mistakes in the kernel can result in heavy artifacts. |
Date | |
Source | https://twitter.com/j_bertolotti/status/1126058724722917377 |
Author | Jacopo Bertolotti |
Permission (Reusing this file) |
https://twitter.com/j_bertolotti/status/1030470604418428929 |
Mathematica 11.0 code edit
data = Abs[ExampleData[{"TestImage", "Tree"}, "GrayLevels"] - 1]; size = Dimensions[data][[1]]; kernel = RotateRight[ PadRight[GaussianMatrix[30], {size, size}], {-30, -30}]; cd = InverseFourier[Fourier[data]*Conjugate[Fourier[kernel]]]; ikernel = kernel; ikernel[[20, 20]] = Max[kernel]; nkernel = RotateRight[ PadRight[ GaussianMatrix[30]*RandomReal[{0.5, 1.5}, {61, 61}], {size, size}], {-30, -30}]; p1 = Grid[{{ ArrayPlot[cd, Frame -> False], "deconvolved\n with", ArrayPlot[RotateRight[kernel, {size/2, size/2}] , PlotLabel -> "Perfect kernel"], "\[Rule]", ArrayPlot[InverseFourier[Fourier[cd]/Conjugate[Fourier[kernel]]], Frame -> False]}, { ArrayPlot[cd, Frame -> False], "deconvolved\n with", ArrayPlot[RotateRight[ikernel, {size/2, size/2}] , PlotLabel -> "Imperfect kernel\n(one pixel wrong)"], "\[Rule]", ArrayPlot[InverseFourier[Fourier[cd]/Conjugate[Fourier[ikernel]]], Frame -> False]}, { ArrayPlot[cd, Frame -> False], "deconvolved\n with", ArrayPlot[RotateRight[nkernel, {size/2, size/2}], PlotLabel -> "Imperfect kernel\n(noisy)" ], "\[Rule]", ArrayPlot[InverseFourier[Fourier[cd]/Conjugate[Fourier[nkernel]]], Frame -> False]} }, Alignment -> {Center, Center, {{1, 1} -> Bottom, {2, 1} -> Bottom, {3, 1} -> Bottom, {1, 5} -> Bottom, {2, 5} -> Bottom, , {3, 5} -> Bottom}}]
Licensing edit
I, the copyright holder of this work, hereby publish it under the following license:
This file is made available under the Creative Commons CC0 1.0 Universal Public Domain Dedication. | |
The person who associated a work with this deed has dedicated the work to the public domain by waiving all of their rights to the work worldwide under copyright law, including all related and neighboring rights, to the extent allowed by law. You can copy, modify, distribute and perform the work, even for commercial purposes, all without asking permission.
http://creativecommons.org/publicdomain/zero/1.0/deed.enCC0Creative Commons Zero, Public Domain Dedicationfalsefalse |
File history
Click on a date/time to view the file as it appeared at that time.
Date/Time | Thumbnail | Dimensions | User | Comment | |
---|---|---|---|---|---|
current | 09:17, 9 May 2019 | 678 × 636 (171 KB) | Berto (talk | contribs) | User created page with UploadWizard |
You cannot overwrite this file.
File usage on Commons
There are no pages that use this file.
Metadata
This file contains additional information such as Exif metadata which may have been added by the digital camera, scanner, or software program used to create or digitize it. If the file has been modified from its original state, some details such as the timestamp may not fully reflect those of the original file. The timestamp is only as accurate as the clock in the camera, and it may be completely wrong.
Horizontal resolution | 28.35 dpc |
---|---|
Vertical resolution | 28.35 dpc |
Software used | |
Date and time of digitizing |
|