Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Distance Transform in Labview

[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. 

0 Kudos
Message 1 of 3
(4,251 Views)

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

0 Kudos
Message 2 of 3
(4,223 Views)

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.

0 Kudos
Message 3 of 3
(4,215 Views)