receive_imageT_receive_imageReceiveImageReceiveImage (Operator)
Name
receive_imageT_receive_imageReceiveImageReceiveImage
— Receive an image over a socket connection.
Signature
Herror T_receive_image(Hobject* Image, const Htuple Socket)
Description
receive_imagereceive_imageReceiveImageReceiveImageReceiveImage
reads an image object that was sent over the
socket connection determined by SocketSocketSocketSocketsocket
by another HALCON
process using the operator send_imagesend_imageSendImageSendImageSendImage
. If no image has been
sent, the HALCON process calling receive_imagereceive_imageReceiveImageReceiveImageReceiveImage
blocks until
enough data arrives. For a detailed example, see
open_socket_acceptopen_socket_acceptOpenSocketAcceptOpenSocketAcceptOpenSocketAccept
.
Attention
'int8' images can be received by 64 bit systems only!
Execution Information
- Multithreading type: reentrant (runs in parallel with non-exclusive operators).
- Multithreading scope: global (may be called from any thread).
- Processed without parallelization.
Parameters
ImageImageImageImageimage
(output_object) image(-array) →
objectHImageHImageHobject * (byte / direction / cyclic / int1 / int2 / uint2 / int4 / int8 / real / complex / vector_field)
Received image.
SocketSocketSocketSocketsocket
(input_control) socket →
HSocket, HTupleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)
Socket number.
Possible Predecessors
open_socket_connectopen_socket_connectOpenSocketConnectOpenSocketConnectOpenSocketConnect
,
socket_accept_connectsocket_accept_connectSocketAcceptConnectSocketAcceptConnectSocketAcceptConnect
,
get_socket_paramget_socket_paramGetSocketParamGetSocketParamGetSocketParam
,
set_socket_paramset_socket_paramSetSocketParamSetSocketParamSetSocketParam
See also
send_imagesend_imageSendImageSendImageSendImage
,
send_regionsend_regionSendRegionSendRegionSendRegion
,
receive_regionreceive_regionReceiveRegionReceiveRegionReceiveRegion
,
send_tuplesend_tupleSendTupleSendTupleSendTuple
,
receive_tuplereceive_tupleReceiveTupleReceiveTupleReceiveTuple
,
get_next_socket_data_typeget_next_socket_data_typeGetNextSocketDataTypeGetNextSocketDataTypeGetNextSocketDataType
Module
Foundation