read_memory_block — Read a memory block from a file.
read_memory_block( : : FileName : MemoryBlockHandle)
该算子 read_memory_block reads the file FileName and
creates a new memory block in MemoryBlockHandle that is an identical
copy of the bytes in the file.
The default HALCON file extension for memory block files is '.bin'.
This operator returns a handle. Note that the state of an instance of this handle type may be changed by specific operators even though the handle is used as an input parameter by those operators.
FileName (input_control) filename.read → (string)
Name of the file.
Default: 'memory_block.bin'
File extension:
.bin
MemoryBlockHandle (output_control) memory_block → (handle)
Memory block handle.
该算子 read_memory_block 返回值 2 (
H_MSG_TRUE)
if the named
file was found and correctly read. Otherwise, an exception is raised.
Foundation