image_to_mean ( Image : ImageResult : : )

Paint regions with their average gray value.

image_to_mean returns an image in which its regions are painted with their average gray value. This operator is mainly intended to visualize segmentation results.


Parameters

Image (input_object)
image(-array) -> object : byte
Input images (regions with gray value data).

ImageResult (output_object)
image -> object : byte
Result image with painted regions.


Example
read_image(:Image:'Eingabebild':) >
...
/*  */
...
image_to_mean(Segments:Disp::) >
disp_image(Disp:::) >
set_draw(::'margin':) >
set_color(::'black':) >
disp_region(Segments:::).

Result

image_to_mean 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 Successors

disp_image


Alternatives

paint_region__, intensity__



Copyright © 1996-1997 MVTec Software GmbH