Write regions on file.
The operator write_region writes 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 read via the operator read_region. If no extension has been specified in FileName, the extension '.reg' is appended to FileName.
|
Region (input_object) |
region(-array) -> object |
| Region of the images which are returned. | |
|
FileName (input_control) |
filename -> string |
| Name of region file. | |
| Default value: 'region.reg' | |
regiongrowing(Img,Segmente,3,3,5,10) write_region(Segmente,'result1').
If the parameter values are correct the operator write_region returns the value 2 (H_MSG_TRUE). If the file cannot be opened 5 (H_MSG_FAIL) is returned. Otherwise an exception handling is raised.
write_region is reentrant and processed without parallelization.
open_window, read_image, read_region, threshold, regiongrowing
Image / region / XLD management