Image Resolution and Channel Value

This function block allows you to retrieve the resolution and channel information of an input image. It displays the width, height, and the number of channels contained in the image.

πŸ“₯ Inputs

Image Any An image whose resolution and channel count you wish to determine.

πŸ“€ Outputs

Width The width of the image in pixels.

Height The height of the image in pixels.

Channel The number of channels in the image (e.g., 1 for grayscale, 3 for RGB).

πŸ•ΉοΈ Controls

Resolution A label displaying the current resolution and channel count of the input image.

🎨 Features

Dynamic Resolution Update The block updates the displayed resolution and channel information in real time based on the input image.

Support for Various Image Formats Can handle both monochrome (grayscale) and color images effectively.

πŸ“ Usage Instructions

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

  2. Evaluate: Execute the function block to receive the image width, height, and channel count.

  3. Review Results: The Resolution label will show the current resolution in the format <Width>x<Height> Channel:<Channel Count>.

πŸ“Š Evaluation

The function block processes the input image to extract and return the width, height, and channel count, updating the label with this information.

πŸ’‘ Tips and Tricks

Combining with Other Blocks

Combine this block with Resize or Image ROI Select to adjust or focus on specific parts of the image before analyzing resolution.

Monitoring Native Image Size

Use this block to check the native size of images before performing operations that depend on specific dimensions, such as Image Concatenate.

πŸ› οΈ Troubleshooting

No Image Data

If no image data is processed, ensure you have connected a valid image source to the input socket. The image should not be empty.

Unsupported Image Format

If an unsupported format is detected, make sure to convert the image into a compatible format supported by the function block, preferably RGB or Grayscale.

Last updated