write_regionwrite_regionWriteRegionWriteRegionwrite_region (算子名称)
名称
write_regionwrite_regionWriteRegionWriteRegionwrite_region — Write regions to a file.
参数签名
Herror write_region(const Hobject 区域, const char* FileName)
Herror T_write_region(const Hobject 区域, const Htuple FileName)
描述
该算子 write_regionwrite_regionWriteRegionWriteRegionWriteRegionwrite_region writes the regions in 区域区域区域区域区域区域
into a binary file. The regions can be written in the HALCON Iconic Object
format (HOBJ), as TIFF files or as HALCON region files. The
format is selected via the file name extension of FileNameFileNameFileNameFileNamefileNamefile_name. If
no extension is specified or if the file extension is '.hobj'".hobj"".hobj"".hobj"".hobj"".hobj",
the regions are stored in the HOBJ format. If no extension is specified
in FileNameFileNameFileNameFileNamefileNamefile_name, the extension '.hobj'".hobj"".hobj"".hobj"".hobj"".hobj" will be appended.
See write_objectwrite_objectWriteObjectWriteObjectWriteObjectwrite_object for more information about the
HOBJ format. If the extension '.tif'".tif"".tif"".tif"".tif"".tif" or '.tiff'".tiff"".tiff"".tiff"".tiff"".tiff" is
specified, the regions are stored as TIFF files. If the extension
'.reg'".reg"".reg"".reg"".reg"".reg" is specified, the regions are stored as a HALCON region file.
The HALCON region file format is now legacy and the file format HOBJ should
be used instead unless the files must be readable with HALCON versions older
than 12.0. Iconic object tuples with an arbitrary number of regions
can be written. The output data can be read via 该算子
read_regionread_regionReadRegionReadRegionReadRegionread_region.
运行信息
- 多线程类型:可重入(与非独占操作符并行运行)。
- 多线程作用域:全局(可以从任何线程调用)。
- 未经并行化处理。
参数表
区域区域区域区域区域区域 (input_object) region(-array) → objectHRegionHObjectHRegionHobject
Region of the images which are returned.
FileNameFileNameFileNameFileNamefileNamefile_name (input_control) filename.write → HTuplestrHTupleHtuple (string) (string) (HString) (char*)
Name of region file.
Default:
'region.hobj'
"region.hobj"
"region.hobj"
"region.hobj"
"region.hobj"
"region.hobj"
File extension:
.hobj, .reg, .tif, .tiff
例程 (HDevelop)
regiongrowing(Img,Segments,3,3,5,10)
write_region(Segments,'result1')
例程 (C)
regiongrowing(Img,&Segments,3,3,5,10);
write_region(Segments,"result1");
例程 (HDevelop)
regiongrowing(Img,Segments,3,3,5,10)
write_region(Segments,'result1')
例程 (HDevelop)
regiongrowing(Img,Segments,3,3,5,10)
write_region(Segments,'result1')
例程 (HDevelop)
regiongrowing(Img,Segments,3,3,5,10)
write_region(Segments,'result1')
结果
If the parameter values are correct 该算子
write_regionwrite_regionWriteRegionWriteRegionWriteRegionwrite_region 返回值 2 (
H_MSG_TRUE)
. Otherwise an exception
handling is raised.
可能的前置算子
open_windowopen_windowOpenWindowOpenWindowOpenWindowopen_window,
read_imageread_imageReadImageReadImageReadImageread_image,
read_regionread_regionReadRegionReadRegionReadRegionread_region,
read_objectread_objectReadObjectReadObjectReadObjectread_object,
thresholdthresholdThresholdThresholdThresholdthreshold,
regiongrowingregiongrowingRegiongrowingRegiongrowingRegiongrowingregiongrowing
参考其它
read_regionread_regionReadRegionReadRegionReadRegionread_region
模块
Foundation