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.
|
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. | |
read_image(:Image:'Eingabebild':) > ... /**/ ... image_to_mean(Segments:Disp::) > disp_image(Disp:::) > set_draw(::'margin':) > set_color(::'black':) > disp_region(Segments:::).
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.