pfsstat(1)

โœจ pfsstat โ€” it's giving statistics, bestie โœจ

okay so real talk: pfsstat is a lil command from the General Commands Manual, section 1, and it does exactly one thing and does it gorgeously. It's pfsstat, and it shows you frame / image statistics. That's it. That's the whole vibe. ๐Ÿ’…


๐ŸŒธ SYNOPSIS ๐ŸŒธ

pfsstat

no flags. no options. no arguments. she just exists. main character energy fr fr. ๐ŸŽ€


๐Ÿ’– DESCRIPTION ๐Ÿ’–

So here's the tea โ˜• โ€” this command shows a short text statistic on each image in the pfs stream. One image at a time, stats on stats on stats. And in those statistics you're gonna find:

  • File โ€” name of the input file ๐Ÿ“
  • Width, Height โ€” image dimensions ๐Ÿ“
  • Minimum โ€” minimum luminance of an image(<span style="color:red">*</span>), given in linear units (relative luminance in cd/m^2) and logarithmic units
  • Maximum โ€” maximum luminance of an image(<span style="color:red">*</span>)
  • Average โ€” average luminance of an image(<span style="color:red">*</span>)
  • Mean โ€” mean luminance of an image(<span style="color:red">*</span>)

(<span style="color:red">*</span>) okay bestie, this footnote is important, don't skip it ๐Ÿ™ˆ โ€” before min, max, average, median and dynamic range is computed, the following processing is performed on an image:

  1. negative and zero values are replaced with the smallest positive value (to compute logarithms); ๐Ÿงฎ
  2. the image is low-pass filtered. ๐ŸŒŠ

The low-pass filtering removes few very dark or very bright pixels that can significantly influence estimation of the dynamic range. The percentile, instead of a low-pass filter, is sometimes used for the same purpose. However, a low-pass filter is preferred to the percentile in pfstools since, taking into account the processing that is happening in the human visual system, low-frequency band filter is more plausible. ๐Ÿง โœจ

โš ๏ธ Note: This command requires GNU Octave. like, actually requires it. no Octave, no stats, no slay. ๐Ÿ˜ญ

๐ŸŒˆ EXAMPLES ๐ŸŒˆ

pfsin memorial.hdr | pfsstat

Show statistics for the memorial image. iconic pipeline behavior, lowkey the moment. ๐Ÿซถ


๐Ÿ’€ BUGS ๐Ÿ’€

Please report bugs and comments to Rafal Mantiuk <mantiuk@mpi-sb.mpg.de>. he's the one who needs to hear about it, not me, I'm just the messenger ๐Ÿงš


and that's the whole page, bestie!! ๐ŸŽ€ written for the General Commands Manual, pfsstat(1), and there's no date stamped on this footer so we're just gonna say it's giving timeless. ๐Ÿ’œ go forth and get those luminance numbers. periodt. ๐Ÿ‘‘