set_greyval__ ( Image : : Row, Column, Greyval : )

Set single gray values in an image.

set_greyval__ sets the gray values of the input image Image at the positions (Row,Column) to the values specified by Greyval. The number of values in Greyval must match the number of points passed to the operator.


Parameters

Image (input_object)
image -> object
Image to be modified.

Row (input_control)
point.y(-array) -> integer
Row coordinates of the pixels to be modified.
Default value: 0
Suggested values: 0, 10, 50, 127, 255, 511
Range of values: 0 <= Row
Restriction: (0 <= Row) && (Row < height(Image))

Column (input_control)
point.x(-array) -> integer
Column coordinates of the pixels to be modified.
Default value: 0
Suggested values: 0, 10, 50, 127, 255, 511
Range of values: 0 <= Column
Restriction: (0 <= Column) && (Column < width(Image))

Greyval (input_control)
number(-array) -> real / integer
Gray values to be used.
Default value: 255.0
Suggested values: 0.0, 1.0, 10.0, 128.0, 255.0


Result

set_greyval__ returns TRUE if all parameters are correct. If the input is empty the behaviour can be set via set_system(::'no_object_result',<Result>:). If necessary, an exception is raised.


Possible Predecessors

read_image, get_image_pointer__, clear_image, create_image


Alternatives

get_image_pointer__, paint_grey__, paint_region__


See also

get_greyval__, new_image__, create_image, clear_image



Copyright © 1996-1997 MVTec Software GmbH