write_region ( Region : : FileName : )

Write regions on file.

The operator write_region returns the regions of the input images (in runlength coding) to a binary file. The data is stored in packed form. The output data can be reread via the operator read_region. The file name is <FileName>.reg. The extension is not indicated.


Parameters

Region (input_object)
region(-array) -> object
Images, the regions of which are returned.

FileName (input_control)
filename.named -> string
Name of region file without extension.
Default value: '/tmp/region'


Example
regiongrowing__(Img:Segmente:3,3,5,10:) >
write_region(Segmente::'result1':).

Result

If the parameter values are correct the operator write_region returns the value TRUE. If the file cannot be opened FAIL is returned. Otherwise an exception is raised.


Possible Predecessors

open_window, read_image, read_picture, read_region, threshold__, regiongrowing__


See also

read_region



Copyright © 1996-1997 MVTec Software GmbH