10-16-2015 08:42 AM
[dist, Index]=bwdist(image) is the Distance Transform in Matlab. It returns the shortest distance and location of the nearest pixel. Is there an equivelent function in LabView before I figure how to implement such one? Thanks.
10-19-2015 02:57 PM
Hi MengHuiHanTang,
Below I’ve linked some resources that may be helpful for you.
http://zone.ni.com/reference/en-XX/help/370281AA-01/nivisionlvbasics/improve_the_binary_image/
http://zone.ni.com/reference/en-XX/help/370281AA-01/imaqvision/morphology_pal/
It seems that the IMAQ Danielsson VI might be close to what you’re looking for. I hope this helps!
- Kale
10-19-2015 03:47 PM
IMAQ Danielsson and IMAS Distance both are the close equivalent functions to bwdist in Matlab.
The big difference is that neither function returns the location of the nearest pixels, which is what I am trying to get.
[D,IDX] = bwdist(BW)
also computes the closest-pixel map in the form of an index array, IDX
.