| Table of Contents / File / Region | Operators |
write_region — Write regions to a file.
The operator write_region writes the regions in Region into a binary file. The regions can be written in the HALCON region format or as TIFF files. The format is selected via the file name extension of FileName. If no extension is specified or if the file extension is '.reg', the regions are stored in the HALCON region file format in packed form. If no extension is specified in FileName, the extension '.reg' is appended to FileName. If the extension '.tif' or '.tiff' is used, the regions are stored as TIFF files. In both cases, iconic object tuples with an arbitrary number of regions can be written. The output data can be read via the operator read_region.
Region of the images which are returned.
Name of region file.
Default value: 'region.reg'
File extension: .reg, .tif, .tiff
regiongrowing(Img,Segments,3,3,5,10) write_region(Segments,'result1')
If the parameter values are correct the operator write_region returns the value 2 (H_MSG_TRUE). Otherwise an exception handling is raised.
open_window, read_image, read_region, threshold, regiongrowing
Foundation
| Table of Contents / File / Region | Operators |
| HALCON Reference Manual 10.0.2 | Copyright © 1996-2011 MVTec Software GmbH |