pfstmo_durand02(1)
π pfstmo_durand02 π
okay so bestie, welcome to pfstmo_durand02 from the General Commands Manual β it's the tone mapping operator that makes your HDR pics not look like a cursed screenshot, and honestly? she ate. π¦
β¨ NAME β¨
pfstmo_durand02 β Fast bilateral filtering for the display of HDR images π
πΈ SYNOPSIS πΈ
pfstmo_durand02 [--sigma-s <val>] [--sigma-r <val>] [--base-contrast
<val>] [--quiet] [--verbose] [--help]
like yes, that's the whole vibe. run it, pipe stuff into it, live your truth. β¨
π DESCRIPTION π
This command implements a tone mapping operator as described in:
F. Durand and J. Dorsey. Fast Bilateral Filtering for the Display of High-Dynamic-Range Images. In: In ACM Transactions on Graphics, 2002.
According to the paper, results of this TMO require gamma correction. so like, don't skip that step bestie, it's not optional, it's the whole point π
Unless -g option is specified, this operator also employs color correction mechanism from:
Radoslaw Mantiuk, Rafal Mantiuk, Anna Tomaszewska, Wolfgang Heidrich. Color Correction for Tone Mapping. In: Computer Graphics Forum (Proc. of EUROGRAPHICS'09), 28(2), 2009. http://zgk.wi.ps.pl/color_correction/
so by default you get the glow-up plus the color correction, and only if you pass -g does it go full original-recipe. iconic behavior tbh. π
π OPTIONS π
--sigma-s <val>,-s <val>β Sigma value for spatial kernel. Default value:40. this is the "how far apart do we care about pixels" knob, fr fr.--sigma-r <val>,-r<val>β Sigma value for range kernel. Default value:0.4. (yes, the short one is written as-r<val>with no space, no cap, that's just how she is π«Ά)--base-contrast <val>,-c <val>β Contrast of the base layer. Default value is5.0f. Lower value causes higher contrast compression and results in darker picture β can help if after tone mapping too many pixels remain saturated. Increasing this value will results in brighter and more 'dynamic' picture. so like, dial it down when everything's blown out, dial it up when you want DRAMA. π--original,-gβ Use original algorithm as described in the paper with no extensions. For this operator the switch will disable color correction. periodt β no extra sauce, just the paper.--verboseβ Print additional information during program execution. she's chatty. we love her for it. π£οΈ--quiet,-qβ Do not display progress report. for when the progress bar is giving main character energy and you need her to chill π--help,-hβ Print list of commandline options. the classic "help me bestie" move. β¨
π EXAMPLES π
pfsin memorial.hdr | pfstmo_durand02 | pfsgamma -g 2.2 | pfsout memorial.png
Tone map image and save it in png format.
look at that pipeline. in β tone map β gamma β out. chef's kiss, no notes. ππ
π SEE ALSO π
pfsgamma(1) pfsin(1) pfsout(1) pfsview(1)
go read those too, they're the friend group. π
π BUGS π
Please report bugs and comments on implementation to Grzegorz Krawczyk <krawczyk@mpi-sb.mpg.de>.
like actually report them, don't just suffer in silence bestie π
k bye, that's the whole page β pfstmo_durand02(1), straight out of the General Commands Manual, no date on this one so don't come for me πΈ stay shiny, go tone map something pretty β¨π
π¦ where this page comes from
- debian bookworm: pfstmo 2.2.0-5+b1 Β· GPL-2.0-or-later
- debian trixie: pfstmo 2.2.0-9 Β· GPL-2.0-or-later
- fedora 43: pfstmo 2.2.0-23.fc43 Β· GPL-2.0-or-later
- fedora 44: pfstmo 2.2.0-25.fc44 Β· GPL-2.0-or-later
- opensuse-leap 16.0: pfstmo 2.2.0-bp160.1.20 Β· GPL-2.0-or-later AND LGPL-2.1-or-later
- opensuse-leap 16.0: pfstmo 2.2.0-bp160.1.20 Β· GPL-2.0-or-later AND LGPL-2.1-or-later
- opensuse-leap 16.0: pfstmo 2.2.0-bp160.1.20 Β· GPL-2.0-or-later AND LGPL-2.1-or-later
- opensuse-leap 16.0: pfstmo 2.2.0-bp160.1.20 Β· GPL-2.0-or-later AND LGPL-2.1-or-later
- ubuntu jammy: pfstmo 2.2.0-2 Β· GPL-2.0-or-later
- ubuntu noble: pfstmo 2.2.0-7build3 Β· GPL-2.0-or-later
- ubuntu questing: pfstmo 2.2.0-9
- ubuntu resolute: pfstmo 2.2.0-10 Β· GPL-2.0-or-later
- ubuntu stonking: pfstmo 2.2.0-12 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms