• Removed user
    Dec. 13, 2023, 4:29 p.m.

    I've been trying to understand Fourier transforms - not easy for an 83-yr old geezer!

    But today I deleted low frequencies from an FFT plot and was quite surprised at the result ...

    The Victim:

    SDIM8301-SPP-RT-2.jpg

    The result:

    Inverse FFT of SDIM8301-SPP-RT-2.jpg

    Kind of like wavelet processing but where frequency is the inverse of detail size ...

    Inverse FFT of SDIM8301-SPP-RT-2.jpg

    JPG, 1.2 MB, uploaded by xpatUSA on Dec. 13, 2023.

    SDIM8301-SPP-RT-2.jpg

    JPG, 4.3 MB, uploaded by xpatUSA on Dec. 13, 2023.

  • Members 128 posts
    Dec. 13, 2023, 4:50 p.m.
  • Removed user
    Dec. 13, 2023, 5:25 p.m.

    My computer is Adobe-free - but an interesting read nevertheless. Quite a lot of steps needed, it seems.

    In the FFT plot, I deleted a small circle in the middle and then inverse FFT'd back to a 2D image.

  • Members 128 posts
    Dec. 13, 2023, 6:55 p.m.

    Your photo is interesting and successful in itself, but without lighting effects it is far from something that looks real as a night photo.

  • Members 360 posts
    Dec. 13, 2023, 7:06 p.m.

    ¡Hola!
    It depends a little on each specific photo, but achieving a more or less credible effect is usually a laborious process.This is my try...

    IMG_7217.jpeg

    IMG_7217.jpeg

    JPG, 2.2 MB, uploaded by doctor on Dec. 13, 2023.

  • Dec. 13, 2023, 8:09 p.m.

    They are related, Fourier transform is equivalent to very special case of wavelet processing. Wavelet transforms decompose image into frequency+time components, Fourier transform only into frequency components. Both transforms are reversible.

    About getting your night scene using fourier transform.

    If you remove low frequencies, then you start from zero frequency, which corresponds to average value of your signal (image) - average of sky and field; removing it makes average value zero (shifts all values). Then removing next low fequency component (we are talking about discrete FT here - in continous case there is continous spectrum of frequencies) approximately removes differences between halves of your image (in every direction) - making sky and field same brightness (if you process colors seprately, then same color too). Then removing next low frequency component (again approximately) removes difference between image center and border areas and so on.

    You could get similar effect using high-pass filter with very steep transmission curve.

  • Removed user
    Dec. 13, 2023, 9:35 p.m.

    Agreed. The posted image was an accident while playing with FFT, so wasn't actually trying to create a realistic night scene.

  • Removed user
    Dec. 13, 2023, 9:36 p.m.

    Not bad! I like the lighted windows ...

  • Removed user
    Dec. 13, 2023, 9:40 p.m.

    Thanks, Arvo. Good to see that you are in the team!

  • Members 1546 posts
    Dec. 13, 2023, 10:43 p.m.

    Me too 😎 👍🏻

  • Dec. 13, 2023, 10:57 p.m.

    I liked the tutorial. Gives me some ideas (if I ever get time).

  • Removed user
    Dec. 16, 2023, 8:02 a.m.

    What?

    What?! There are no negative values to truncate!

    ah.jpg

    Please define "a proper rendering" ...

    ah.jpg

    JPG, 377.3 KB, uploaded by xpatUSA on Dec. 16, 2023.

  • Removed user
    Dec. 17, 2023, 2:36 p.m.

    I fold

  • edit

    Thread title has been changed from How to turn Day into Night.