1rgb2pct(1)                  General Commands Manual                 rgb2pct(1)
2
3
4

NAME

6       rgb2pct - rgb2pct.py converts an image into a pseudo-colored image
7

SYNOPSIS

9       rgb2pct.py [-n colors] [-of format] source_file dest_file
10

DESCRIPTION

12       This utility will compute an optimal pseudo-color table for a given RGB
13       image using a median cut algorithm on a downsampled RGB histogram. Then
14       it converts the image into a pseudo-colored image using the color
15       table. This conversion utilizes Floyd-Steinberg dithering (error
16       diffusion) to maximize output image visual quality.
17
18       -n colors:
19           Select the number of colors in the generated color table. Defaults
20           to 256. Must be between 2 and 256.
21
22       -of format:
23           Format to generated (defaults to GeoTIFF). Same semantics as the
24           -of flag for gdal_translate. Only output formats supporting
25           pseudocolor tables should be used.
26
27       source_file:
28           The input RGB file.
29
30       dest_file:
31           The output pseudo-colored file that will be created.
32
33       NOTE: rgb2pct.py is a Python script, and will only work if GDAL was
34       built with Python support.
35

AUTHORS

37       Frank Warmerdam <warmerdam@pobox.com>
38
39
40
41GDAL                              31 Jul 2007                       rgb2pct(1)
Impressum