Name
write_regionwrite_regionWriteRegionwrite_regionWriteRegionWriteRegion — Write regions to a file.
The operator write_regionwrite_regionWriteRegionwrite_regionWriteRegionWriteRegion writes the regions in
RegionRegionRegionRegionRegionregion 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 FileNameFileNameFileNameFileNameFileNamefileName. If no extension
is specified or if the file extension is '.reg'".reg"".reg"".reg"".reg"".reg", the
regions are stored in the HALCON region file format in packed form.
If no extension is specified in FileNameFileNameFileNameFileNameFileNamefileName, the extension
'.reg'".reg"".reg"".reg"".reg"".reg" is appended to FileNameFileNameFileNameFileNameFileNamefileName. If the extension
'.tif'".tif"".tif"".tif"".tif"".tif" or '.tiff'".tiff"".tiff"".tiff"".tiff"".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_regionread_regionReadRegionread_regionReadRegionReadRegion.
- Multithreading type: reentrant (runs in parallel with non-exclusive operators).
- Multithreading scope: global (may be called from any thread).
- Processed without parallelization.
Region of the images which are returned.
Name of region file.
Default value:
'region.reg'
"region.reg"
"region.reg"
"region.reg"
"region.reg"
"region.reg"
File extension: .reg, .tif, .tiff
regiongrowing(Img,Segments,3,3,5,10)
write_region(Segments,'result1')
regiongrowing(Img,&Segments,3,3,5,10) ;
write_region(Segments,"result1") ;
regiongrowing(Img,Segments,3,3,5,10)
write_region(Segments,'result1')
regiongrowing(Img,Segments,3,3,5,10)
write_region(Segments,'result1')
regiongrowing(Img,Segments,3,3,5,10)
write_region(Segments,'result1')
regiongrowing(Img,Segments,3,3,5,10)
write_region(Segments,'result1')
If the parameter values are correct the operator
write_regionwrite_regionWriteRegionwrite_regionWriteRegionWriteRegion returns the value 2 (H_MSG_TRUE). Otherwise an exception
handling is raised.
open_windowopen_windowOpenWindowopen_windowOpenWindowOpenWindow,
read_imageread_imageReadImageread_imageReadImageReadImage,
read_regionread_regionReadRegionread_regionReadRegionReadRegion,
thresholdthresholdThresholdthresholdThresholdThreshold,
regiongrowingregiongrowingRegiongrowingregiongrowingRegiongrowingRegiongrowing
read_regionread_regionReadRegionread_regionReadRegionReadRegion
Foundation