Get Pixel

This function block retrieves the color values of a specific pixel from an input image. It is useful for applications requiring color analysis or region-based processing.

📥 Inputs

Image Any This input accepts any image data from which you want to obtain pixel information.

Point This input specifies the (x, y) coordinates of the pixel whose color you wish to retrieve.

📤 Outputs

(Blue, Green, Red) This output provides the color value of the specified pixel in the format of BGR (Blue, Green, Red).

🎨 Features

Pixel Value Retrieval Easily get the color values of any pixel in the input image.

Coordinate Validation Ensures that the specified coordinates are within the valid range of the image dimensions.

📝 Usage Instructions

  1. Connect Image Input: Link any image-producing function block to the Image Any input to provide the image data.

  2. Specify Pixel Position: Input the x and y coordinates of the pixel you want to analyze in the Point input. Ensure that these coordinates are valid.

  3. Evaluate: Run the block to retrieve the color value of the specified pixel.

📊 Evaluation

Upon evaluation, the function block will provide the BGR values of the pixel specified by the position input.

🛠️ Troubleshooting

Invalid Image Input

If you receive an error regarding invalid input type, ensure that the image input is correctly connected and is of appropriate type.

Invalid Position Error

When providing coordinates, ensure they are within the bounds of the image dimensions. The pixel position must be within the width and height of the image, or you may receive an invalid height or width error.

No Image Selected

If the output is not what you expect, verify that the image input is not empty (None). A successful connection should yield valid pixel data.

Last updated