man > pgmtexture(1)

⚡ TLDR: pgmtexture (tldr-pages)

Extract textural features from a PGM image.

  • Extract textural features from a PGM image
    pgmtexture {{path/to/image.pgm}} > {{path/to/output.pgm}}
  • Specify the distance parameter for the feature extraction algorithm
    pgmtexture -d {{distance}} {{path/to/image.pgm}} > {{path/to/output.pgm}}
Pgmtexture User Manual(1)              General Commands Manual             Pgmtexture User Manual(1)

NAME
       pgmtexture - calculate textural features on a PGM image


SYNOPSIS
       pgmtexture

       [-d d]

       [pgmfile]


DESCRIPTION
       This program is part of Netpbm(1).

       pgmtexture  reads  a PGM image as input and calculates textural features based on spatial de‐
       pendence matrices at 0, 45, 90, and 135 degrees for a distance d (default = 1).

       Textural features include:



       •      Angular Second Moment

       •      Contrast

       •      Correlation

       •      Variance

       •      Inverse Difference Moment

       •      Sum Average

       •      Sum Variance

       •      Sum Entropy

       •      Entropy

       •      Difference Variance

       •      Difference Entropy

       •      Information Measures of Correlation

       •      Maximal Correlation Coefficient



       Algorithm taken from: Haralick, R.M., K. Shanmugam, and I. Dinstein. 1973. Textural  features
       for   image   classification.    IEEE   Transactions  on  Systems,  Man,  and  Cybertinetics,
       SMC-3(6):610-621.


OPTIONS
       In addition to the options common to all programs based on libnetpbm  (most  notably  -quiet,
       see  Common Options ), pgmtexture recognizes the following command line option:




       -d distance
              The distance.  Default is 1.




LIMITATIONS
       The method for finding the Maximal Correlation Coefficient, which requires finding the second
       largest eigenvalue of a matrix Q, does not always converge.


SEE ALSO
       pgm(1), pamsharpness(1), pamsharpmap(1), pgmedge(1), pgmminkowski(1)


AUTHOR
       Copyright  (C) 1991 by Texas Agricultural Experiment Station, employer for hire of James Dar‐
       rell McCauley.

DOCUMENT SOURCE
       This manual page was generated by the Netpbm tool 'makeman' from  HTML  source.   The  master
       documentation is at

              http://netpbm.sourceforge.net/doc/pgmtexture.html

netpbm documentation                       22 August 1991                  Pgmtexture User Manual(1)
pgmtexture(1) □✕
NAME SYNOPSIS
pgmtexture
DESCRIPTION OPTIONS LIMITATIONS SEE ALSO AUTHOR DOCUMENT SOURCE

Generated by phpman v4.12.13 · Markdown · JSON Author: Che Dong Under GNU General Public License
2026-10-21 02:44 @216.73.217.130
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Valid XHTML 1.0 Transitional!Valid CSS!

^_top_^