[Top] [Prev] [Next]

15.6 Converting 24-Bit Raw Raster Images to RIS8 Images: r24hdf8

15.6.1 General Description

The r24hdf8 utility quantizes a raw RGB 24-bit raster image, creating an 8-bit image with a 256-color palette, then it stores the palette and raster image data in an HDF file.

15.6.2 Command-line Syntax

r24hdf8 [x-dimension-length y-dimension-length] raw-24-bit-image-filename-hdf ris8-image-filename
The pixel order in the raw 24-bit image file is left-to-right and top-to-bottom. Each pixel data element consists of three contiguous bytes, the first representing the red intensity value, the second the green intensity value, and the third the blue intensity value. Use the ptox filter to convert the raster image data from a pixel-interlaced format to scan-plane interlaced.

15.6.3 Examples

A file named rawraster containing 24-bit raw raster images with x and y-dimensions of 480 x 640, respectively, must be converted to the HDF RIS8 format and stored in a file named hdfraster. The following command is used to do this:

r24hdf8 480 640 rawraster hdfraster


[Top] [Prev] [Next]

hdfhelp@ncsa.uiuc.edu
HDF User's Guide - 05/19/99, NCSA HDF Development Group.