loading
 
Sampled edges missing last y coordinate
Anonymous
16 year
Hi, STeven

I think the "SAMPLED_EDGES - an x,y array of the location of the detected edges." is missing the last y coordinate. I always get odd number in the array. Could you please look into that?

Thanks

Calvenn

Anonymous 16 year
Calvenn,

It will always be an odd number when using ubound as the VB arrays start from 0.

Thus,

arr = GetArrayVariable("SAMPLED_EDGES")

for i = 0 to ubound(arr) step 2
  write arr(i) & ":" & arr(i+1) & vbCRLF
next

should write out the entire array contents even when ubound(arr) is an odd number. (the extents are inclusive)

STeven.

This forum thread has been closed due to inactivity (more than 4 months) or number of replies (more than 50 messages). Please start a New Post and enter a new forum thread with the appropriate title.

 New Post   Forum Index