FLATTENIMAGES Procedure

PROC FLATTENIMAGES Statement

  • PROC FLATTENIMAGES options;

The PROC FLATTENIMAGES statement invokes the procedure. Table 1 summarizes the options in this statement.

Table 1: PROC FLATTENIMAGES Statement Options

Option Description
Required Options
DATA= Specifies the name of the input table
HEIGHT= Specifies the height of the output images in pixels
NUMCHANNELS= Specifies whether the output images are in gray scale or color
WIDTH= Specifies the width of the output images in pixels


You must specify the following options:

DATA=libref.data-table

names the input data table for PROC FLATTENIMAGES to use. The default is the most recently created data table. libref.data-table is a two-level name, where

libref

refers to a collection of information that is defined in the LIBNAME statement and includes the library, which includes a path to the data, and a session identifier, which defaults to the active session but which can be explicitly defined in the LIBNAME statement. For more information about libref, see the section Using CAS Sessions and CAS Engine Librefs.

data-table

specifies the name of the input data table.

HEIGHT=number

specifies the height of the output images in pixels, where number is a positive integer.

NUMCHANNELS=COLOR |GRAYSCALE

specifies whether the output images are in gray scale or color. Gray-scale images have one channel, and color images have three channels.

WIDTH=number

specifies the width of the output images in pixels, where number is a positive integer.

Last updated: March 26, 2026