PANDORE Version 6 |
GREYC-IMAGE |
pproperty
Gets Pandore object property value.
Synopsis
pproperty property_index [im_in|-]
Description
pproperty returns the property value of the
given Pandore object.
The property is specified by a number based on a
pure convention (see parameters).
The value is got using the operator pstatus.
Parameters
- property_index is based on the following convention:
- 0: the number of columns (for image, region map and graph);
- 1: the number of rows (for image, region map and graph);
- 2: the number of planes (for image, region map and graph);
- 3: the number of bands for image, or
the number of labels for region map, or
the number of nodes for graph (size).
- 4 : the color space number:
[-1: no color space (or gray scale), 0: RGB; 1: XYZ; 2: LUV; 3: LAB; 4: HSL; 5: AST; 6: I1I2I3; 7: LCH;
8: WRY; 9: RNGNBN; 10: YCBCR; 11: YCH1CH; 12: YIQ; 13: YUV].
Inputs
Result
Returns the value of the selected property.
Examples
- Unix/Linux/MACOS: Build a new image with the same
dimension than tangram.pan which contains
a white disc of radius 50:
pproperty 0 tangram.pan; w=`pstatus`
pproperty 1 tangram.pan; h=`pstatus`
pshapedesign $w $h 0 1 50 50 a.pan
- MsDos: Build a new image with the same
dimension than tangram.pan which contains
a white disc of radius 50:
pproperty 0 tangram.pan
call pstatus
call pset w
pproperty 1 tangram.pan
call pstatus
call pset h
pshapedesign $w $h 0 1 50 50 a.pan
See also
Information
C++ prototype
Errc PProperty( const Img2duc &img, int property_index );
Author: Régis Clouard