EnglishFrenchSpanish

OnWorks favicon

pnmhisteq - Online in the Cloud

Run pnmhisteq in OnWorks free hosting provider over Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

This is the command pnmhisteq that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

PROGRAM:

NAME


pnmhisteq - histogram equalise a portable anymap

SYNOPSIS


pnmhisteq [-gray] [-rmap pgmfile] [-wmap pgmfile] [-verbose] [pnmfile]

DESCRIPTION


pnmhisteq increases the contrast of a portable graymap or pixmap through the technique of
histogram equalisation[1]. A histogram of the luminance of pixels in the map is computed,
from which a transfer function is calculated which spreads out intensity levels around
histogram peaks and compresses them at troughs. This has the effect of using the
available levels of intensity more efficiently and thereby increases the detail visible in
the image.

Mathematically, if N[i] is the number of pixels of luminosity i in the image and T is the
total number of pixels, luminosity j is replaced by:

j
---
\
> N[i] / T

---
i=0

If you're processing a related set of images, for example frames of an animation, it's
generally best to apply the same intensity map to every frame, since otherwise you'll get
distracting frame-to-frame changes in the brightness of objects. pnmhisteq's -wmap option
allows you to save, as a portable graymap, the luminosity map computed from an image
(usually a composite of the images you intend to process created with pnmcat). Then, you
can subsequently process each of the individual images using the luminosity map saved in
the file, supplied with the -rmap option.

OPTIONS


-gray When processing a pixmap, only gray pixels (those with identical red, green, and
blue values) are included in the histogram and modified in the output image.
This is a special purpose option intended for images where the actual data are
gray scale, with colour annotations you don't want modified. Weather satellite
images that show continent outlines in colour are best processed using this
option. The option has no effect when the input is a graymap.

-rmap mapfile
Process the image using the luminosity map specified by the portable graymap
mapfile. The graymap, usually created by an earlier run of pnmhisteq with the
-wmap option, contains a single row with number of columns equal to the maxval
(greatest intensity) of the image. Each pixel in the image is transformed by
looking up its luminosity in the corresponding column in the map file and
changing it to the value given by that column.

-wmap mapfile
Creates a portable graymap, mapfile, containing the luminosity map computed from
the histogram of the input image. This map file can be read on subsequent runs
of pnmhisteq with the -rmap option, allowing a group of images to be processed
with an identical map.

-verbose Prints the histogram and luminosity map on standard error.

All flags can be abbreviated to their shortest unique prefix.

Use pnmhisteq online using onworks.net services


Free Servers & Workstations

Download Windows & Linux apps

  • 1
    archlabs_repo
    archlabs_repo
    Package repo for ArchLabs This is an
    application that can also be fetched
    from
    https://sourceforge.net/projects/archlabs-repo/.
    It has been hosted in OnWorks in...
    Download archlabs_repo
  • 2
    Zephyr Project
    Zephyr Project
    The Zephyr Project is a new generation
    real-time operating system (RTOS) that
    supports multiple hardware
    architectures. It is based on a
    small-footprint kernel...
    Download Zephyr Project
  • 3
    SCons
    SCons
    SCons is a software construction tool
    that is a superior alternative to the
    classic "Make" build tool that
    we all know and love. SCons is
    implemented a...
    Download SCons
  • 4
    PSeInt
    PSeInt
    PSeInt is a pseudo-code interpreter for
    spanish-speaking programming students.
    Its main purpose is to be a tool for
    learning and understanding the basic
    concep...
    Download PSeInt
  • 5
    oStorybook
    oStorybook
    oStorybook l'outil privil�gi� des
    �crivains. ATTENTION : voir sur
    http://ostorybook.tuxfamily.org/v5/
    --en_EN oStorybook the right tool for
    writers. WARNIN...
    Download oStorybook
  • 6
    Asuswrt-Merlin
    Asuswrt-Merlin
    Asuswrt-Merlin is a third party
    firmware for select Asus wireless
    routers. Based on the Asuswrt firmware
    developed by Asus, it brings tweaks, new
    features and ...
    Download Asuswrt-Merlin
  • More »

Linux commands

  • 1
    aafigure
    aafigure
    aafigure - convert ASCII art to an
    image ...
    Run aafigure
  • 2
    aafire
    aafire
    aafire, aainfo, aasavefont, aatest -
    aalib example programs ...
    Run aafire
  • 3
    coqtop.opt
    coqtop.opt
    coqtop.opt - The native-code Coq
    toplevel ...
    Run coqtop.opt
  • 4
    coqwc
    coqwc
    coqwc - print the number of
    specification, proof and comment lines
    in Coq files ...
    Run coqwc
  • 5
    g15composer
    g15composer
    g15composer - Scriptable command
    interface to libg15render(3) drawing
    functions DESCRIPTION: G15composer is a
    scriptable command interface to the
    libg15render ...
    Run g15composer
  • 6
    g15daemon
    g15daemon
    g15daemon - provides access to extra
    keys and the LCD available on the
    logitech G15 keyboard. DESCRIPTION:
    G15Daemon allows users access to all
    extra keys by d...
    Run g15daemon
  • More »

Ad