Testing an integer array for emptyness
CubaMadre from Germany  [12 posts]
8 years
I need to test in a robo file if there exists a Harris_Corner, how can I achieve it?
Does "if HARRIS_CORNERS[0] > -1 then" work?

Steven Gentner from United States  [1442 posts] 8 years
If you specify an array just by itself it will return the size of the array so

if HARRIS_CORNERS > 0 then
end if

should work since the size will be zero if no information is in that array.


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