From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
Is there any function that can measure the distance from any pixel in an image to all the surrounding pixels which represent a border?. Just like a Laser Range Finder would work. I Just want to compare real distances to simulated distances in an image.
I tried with almost all the Labview examples but no one seems very useful to me.
The above will give you the shortest distance to the border. If you truely want the distance to each pixel contained within the border, you will first need to establish the coordinates for each pixel that creates the border. Then, you can use distance equations to calcluate the distance (in pixels) for each using a for loop.
I'll try what you said. I also saw clamp Horizontal Min/Max and clamp vertical Min/Max that detect dinstances in search areas.
The problem that I see in "Find edge" is that it only searches for lines, so when I get angles it maybe doesn't recognize them. Also, searching directions dont include diferent angles, just from left to righ, top to bottom and vice versa