Liboi requires that the image source be specified prior to Init() being called. If you initialize your images after this, then liboi will not internally allocate buffers correctly. For host memory, you can do something like this:
'''
float * image_liboi_bug = 0;
liboi.SetImageSource(image_liboi_bug); //
'''
Ideally you should be able to say where your images come from without defining the memory location.
Liboi requires that the image source be specified prior to
Init()
being called. If you initialize your images after this, then liboi will not internally allocate buffers correctly. For host memory, you can do something like this:''' float * image_liboi_bug = 0; liboi.SetImageSource(image_liboi_bug); // ''' Ideally you should be able to say where your images come from without defining the memory location.