get_grayval — 访问图像对象的灰度值。
The parameter Grayval is a tuple of floating point numbers
or integer numbers which returns the gray values of several pixels
of Image. For a multi-channel image, a group of elements,
in particular one value for each channel (or two values for each
channel for complex or vector field images), is returned for each
pixel. The row coordinates of the pixels are specified in the tuple
Row, the column coordinates are specified in the tuple
Column。
Note that get_grayval does not take the domain of the image
into account, i.e., if the domain has been reduced, e.g., with
reduce_domain, gray values are returned even for points that
lie outside the domain.
The type of the values of Grayval depends on the type of
the gray values of the channels of the image Image. The
operator get_grayval produces quite some overhead.
Typically, it is used to get single gray values of an image (e.g.,
get_mposition followed by get_grayval). It is not
suitable for programming image processing operations such as
filters. In this case it is more useful to use the operator
get_image_pointer1 and to directly use the C or C++
interface for integrating own procedures.
Image (输入对象) (multichannel-)image → object (byte / direction / cyclic / int1 / int2 / uint2 / int4 / int8 / real / complex / vector_field)
Image whose gray value is to be accessed.
Row (输入控制) point.y(-array) → (integer)
Row coordinates of pixels to be viewed.
默认值: 0
建议值: 0, 64, 128, 256, 512, 1024
值范围:
0
≤
Row
≤
32767 (lin)
最小增量: 1
建议增量: 1
限制:
0 <= Row && Row < height(Image)
Column (输入控制) point.x(-array) → (integer)
Column coordinates of pixels to be viewed.
元素数量: Column == Row
默认值: 0
建议值: 0, 64, 128, 256, 512, 1024
值范围:
0
≤
Column
≤
32767 (lin)
最小增量: 1
建议增量: 1
限制:
0 <= Column && Column < width(Image)
Grayval (输出控制) grayval-array → (real / integer)
Gray values of indicated pixels.
If the state of the parameters is correct, the operator
get_grayval 返回值 2 ( H_MSG_TRUE )。当输入为空(无可用输入图像)时可设置行为通过算子 set_system('no_object_result',<Result>)。如有必要,则抛出异常。
get_image_pointer1,
get_grayval_interpolated,
get_grayval_contour_xld
基础