Skip to content

send_imageSendImageSendImagesend_imageT_send_image🔗

Short description🔗

send_imageSendImageSendImagesend_imageT_send_image — Send an image over a socket connection.

Signature🔗

send_image( image Image, socket Socket )void SendImage( const HObject& Image, const HTuple& Socket )static void HOperatorSet.SendImage( HObject image, HTuple socket )def send_image( image: HObject, socket: HHandle ) -> None

Herror T_send_image( const Hobject Image, const Htuple Socket )

void HSocket::SendImage( const HImage& Image ) const

void HImage::SendImage( const HSocket& Socket ) const

void HSocket.SendImage( HImage image )

void HImage.SendImage( HSocket socket )

Description🔗

send_imageSendImage sends an image object over the socket connection determined by Socketsocketsocket. The receiving HALCON process must call receive_imageReceiveImage to read the image from the socket. For a detailed example, see open_socket_acceptOpenSocketAccept.

Execution information🔗

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🔗

Imageimageimage (input_object) (multichannel-)image(-array) → object (byte / direction / cyclic / int1 / int2 / uint2 / int4 / int8 / real / complex / vector_field)HObject (byte / direction / cyclic / int1 / int2 / uint2 / int4 / int8 / real / complex / vector_field)HImage (byte / direction / cyclic / int1 / int2 / uint2 / int4 / int8 / real / complex / vector_field)HObject (byte / direction / cyclic / int1 / int2 / uint2 / int4 / int8 / real / complex / vector_field)Hobject (byte / direction / cyclic / int1 / int2 / uint2 / int4 / int8 / real / complex / vector_field)

Image to be sent.

Socketsocketsocket (input_control) socket → (handle)HTuple (HHandle)HSocket, HTuple (IntPtr)HHandleHtuple (handle)

Socket number.

Combinations with other operators🔗

Combinations

Possible predecessors

open_socket_connectOpenSocketConnect, socket_accept_connectSocketAcceptConnect

See also

receive_imageReceiveImage, send_regionSendRegion, receive_regionReceiveRegion, send_tupleSendTuple, receive_tupleReceiveTuple, get_next_socket_data_typeGetNextSocketDataType

Module🔗

Foundation