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
    OfficeFloor
    OfficeFloor
    OfficeFloor provides inversion of
    coupling control, with its: - dependency
    injection - continuation injection -
    thread injection For more information
    visit the...
    Download OfficeFloor
  • 2
    DivKit
    DivKit
    DivKit is an open source Server-Driven
    UI (SDUI) framework. It allows you to
    roll out server-sourced updates to
    different app versions. Also, it can be
    used fo...
    Download DivKit
  • 3
    subconverter
    subconverter
    Utility to convert between various
    subscription format. Shadowrocket users
    should use ss, ssr or v2ray as target.
    You can add &remark= to
    Telegram-liked HT...
    Download subconverter
  • 4
    SWASH
    SWASH
    SWASH is a general-purpose numerical
    tool for simulating unsteady,
    non-hydrostatic, free-surface,
    rotational flow and transport phenomena
    in coastal waters as ...
    Download SWASH
  • 5
    VBA-M (Archived - Now on Github)
    VBA-M (Archived - Now on Github)
    Project has moved to
    https://github.com/visualboyadvance-m/visualboyadvance-m
    Features:Cheat creationsave statesmulti
    system, supports gba, gbc, gb, sgb,
    sgb2Tu...
    Download VBA-M (Archived - Now on Github)
  • 6
    Stacer
    Stacer
    Linux System Optimizer and Monitoring
    Github Repository:
    https://github.com/oguzhaninan/Stacer.
    Audience: End Users/Desktop. User
    interface: Qt. Programming La...
    Download Stacer
  • More »

Linux commands

  • 1
    7za
    7za
    7za - A file archiver with highest
    compression ratio ...
    Run 7za
  • 2
    7zr
    7zr
    7zr - A file archiver with highest
    compression ratio ...
    Run 7zr
  • 3
    cpan
    cpan
    cpan - easily interact with CPAN from
    the command line ...
    Run cpan
  • 4
    cpan2debp
    cpan2debp
    dh-make-perl - Create debian source
    packages from Perl modules ...
    Run cpan2debp
  • 5
    fweelin
    fweelin
    freewheeling � live looping musical
    instrument ...
    Run fweelin
  • 6
    fwexec
    fwexec
    fwexec - program to upload and rexecute
    image file to a connected NXT device ...
    Run fwexec
  • More »

Ad