Draw Point

This function block allows you to draw points on a given image at specified coordinates. It is useful for visualizing key points or markings on images.

πŸ“₯ Inputs

Image Any The image on which you want to draw points.

Points The coordinates of the points to be drawn. This can be a single point or multiple points.

πŸ“€ Outputs

Image Any The modified image with the specified points drawn on it.

πŸ•ΉοΈ Controls

There are no direct controls for this function block, as it operates based on the input sockets.

🎨 Features

Point Visualization Vertically and horizontally draws points on the image passing the provided coordinates.

Customizable Point Size The size of the drawn points is dynamically adjusted based on the dimensions of the input image.

πŸ“ Usage Instructions

  1. Connect Input Image: Link an image to the Image Any input.

  2. Specify Points: Provide coordinates to the Points input. These can be given as a single point or as a list of points.

  3. Evaluate: Run the block to draw the points on the input image, and get back the modified image.

πŸ“Š Evaluation

Once executed, this function block outputs an image with the specified points drawn, allowing for effective visual reference.

πŸ’‘ Tips and Tricks

Using Multiple Points

You can provide multiple coordinates in the form of a list, allowing you to draw numerous points on the image in one go.

Choosing Point Color

Currently, the colors are fixed in this implementation; however, you can modify the function code to use different RGB colors based on your needs.

πŸ› οΈ Troubleshooting

Points Not Appearing

If you do not see the points on the image, ensure that the coordinates provided to the Points input are within the image dimensions.

Circular Points Look Weird

If the circles appear distorted, check the aspect ratio and dimensions of the input image, as well as the scaling settings in other blocks that manipulate images.

Last updated