copied code from opencv into our project to see where failure is occurring.

something weird with vector of vectors not converting properly into
array of arrays.