Comment on page
Find Object - Multiple Image
The Find Object - Multiple Image
Compare
node in AugeLab Studio is used to compare multiple template images with a main image using template matching. It divides the main image and template images into sub-images based on slice rates and performs template matching to find instances of the templates within the corresponding sub-images. It provides the main image with highlighted matched areas, the count of matched templates, and a flag indicating whether all templates were matched.The Find Object - Multiple Image node performs template matching on multiple template images with a main image. It divides the main image and template images into sub-images based on slice rates and matches the templates within the corresponding sub-images. It provides the main image with highlighted matched areas, the count of matched templates, and a flag indicating whether all templates were matched.
- Node Title: Find Object - Multiple Image
- Node ID: OP_NODE_TEMPLATE_MATCH_COMPARE
The Find Object - Multiple Image node has the following input sockets:
- 1.Main Image: The input image in which the template objects will be searched.
- 2.Object Image: The template image representing the object to be found.
The Find Object - Multiple Image
Compare
node has the following output sockets:- 1.Detected Image: The main image with the matched areas highlighted.
- 2.Match Count: The count of matched templates found in the main image.
- 3.Matched All: A boolean flag indicating whether all templates were matched in the main image.
The Find Object - Multiple Image
node provides the following parameters for configuration:- Method: The template matching method to be used. It can be one of the following options:
- TM_CCOEFF_NORMED: Normalized cross-correlation coefficient method.
- TM_CCORR_NORMED: Normalized cross-correlation method.
- TM_SQDIFF: Sum of squared differences method.
- TM_SQDIFF_NORMED: Normalized sum of squared differences method.
- TM_CCORR: Cross-correlation method.
- TM_CCOEFF: Cross-correlation coefficient method.
- Match Threshold %: The threshold value for considering a match. It is expressed as a percentage of the maximum value. Adjust this value to control the sensitivity of the matching.
- Horizontal Slice Rate: The number of horizontal slices to divide the main image and template images. Enter an integer value to specify the number of slices.
- Vertical Slice Rate: The number of vertical slices to divide the main image and template images. Enter an integer value to specify the number of slices.
- 1.Drag and drop the Find Object - Multiple Image node from the node library onto the canvas in AugeLab Studio.
- 2.Connect the main image to the Main Image input socket of the Find Object - Multiple Image node.
- 3.Connect the object image (template) to the Object Image input socket of the Find Object - Multiple Image node.
- 4.Configure the desired parameters of the Find Object - Multiple Image node, such as the matching method, match threshold, horizontal slice rate, and vertical slice rate.
- 5.Run the pipeline.
- 6.The Find Object - Multiple Image node will perform template matching between the object images and the corresponding sub-images of the main image.
- 7.The matched areas will be highlighted in the Detected Image output, which represents the main image with the highlighted matched areas.
- 8.The Match Count output will indicate the total number of matched templates found in the main image.
- 9.The Matched All output will be a boolean flag indicating whether all templates were matched in the main image.
- 10.Retrieve the outputs for further analysis, processing, or visualization.
- The Find Object - Multiple Image node performs template matching on multiple template images with a main image.
- It divides the main image and template images into sub-images based on the specified horizontal and vertical slice rates.
- Template matching is performed between the template images and the corresponding sub-images of the main image.
- Adjust the match threshold to control the sensitivity of the matching process.
- The outputs include the main image with the matched areas highlighted, the count of matched templates, and a flag indicating whether all templates were matched.
- Use the outputs for further analysis, processing, or visualization.
- If no match is found for a template in a sub-image, the corresponding area in the main image will be highlighted.
- The node supports input images and templates of various sizes.
- Proper error handling is implemented in case the main image or template images are not sliced properly.
- Experiment with different template matching methods, slice rates, and match threshold values to achieve the desired results.
That concludes the documentation for the
Template Match Compare
node in AugeLab Studio. Use this node to compare multiple template images with a main image and perform template matching to find instances of the templates. This node is useful for scenarios where multiple objects need to be detected in an image.