Comment on page
Measure Object Distance
The
Measure Object Distance
node in AugeLab Studio measures the distance between two objects in an image. It uses template matching to locate the objects and calculates the distance between them based on a measure factor.The
Measure Object Distance
node takes three inputs: the main image and the images of the two objects to measure the distance between. It provides the following outputs:- Measured distance: The distance between the two objects.
- X distance: The horizontal distance between the two objects.
- Y distance: The vertical distance between the two objects.
- Node Title: Measure Object Distance
- Node ID: OP_NODE_TM_MEASURE
The
Measure Object Distance
node has the following input sockets:- 1.Main Image: The main image containing the objects.
- 2.1st Object Image: The image of the first object to measure.
- 3.2nd Object Image: The image of the second object to measure.
The
Measure Object Distance
node has the following output sockets:- 1.Measured distance: The distance between the two objects.
- 2.X distance: The horizontal distance between the two objects.
- 3.Y distance: The vertical distance between the two objects.
- 1.Drag and drop the
Measure Object Distance
node from the node library onto the canvas in AugeLab Studio. - 2.Connect the main image to the Main Image input socket of the
Measure Object Distance
node. - 3.Connect the image of the first object to measure to the 1st Object Image input socket.
- 4.Connect the image of the second object to measure to the 2nd Object Image input socket.
- 5.Specify the measure factor by entering a value in the Measure Factor text box. This factor determines the scale of the measured distance.
- 6.Run the pipeline.
- 7.The
Measure Object Distance
node will locate the two objects in the main image using template matching. - 8.The measured distance, horizontal distance, and vertical distance will be computed based on the template matching results and the measure factor.
- 9.The measured distance will be displayed in the Measured distance output socket.
- 10.The horizontal distance will be displayed in the X distance output socket.
- 11.The vertical distance will be displayed in the Y distance output socket.
- 12.Retrieve the output values for further analysis, processing, or visualization.
- The
Measure Object Distance
node uses template matching to locate the two objects in the main image. - The measure factor determines the scale of the measured distance. Adjust the measure factor based on the size and distance between the objects.
- The node outputs the measured distance, horizontal distance, and vertical distance between the two objects.
- The measured distance is computed based on the template matching results and the measure factor.
- The horizontal distance is the distance between the centroids of the two objects in the x-axis.
- The vertical distance is the distance between the centroids of the two objects in the y-axis.
- The node supports input images in various formats.
- Experiment with different main images and object images to measure the distance between different objects.
- The
Measure Object Distance
node can be combined with other nodes in AugeLab Studio to create complex computer vision pipelines.
That concludes the documentation for the
Measure Object Distance
node in AugeLab Studio. Use this node to measure the distance between two objects in an image using template matching and a measure factor.