bkloppenborg / liboi

OpenCL Interferometry Library
https://github.com/bkloppenborg/liboi/wiki
GNU Lesser General Public License v3.0
5 stars 6 forks source link

liboi host memory image must be defined prior to Init() being called. #40

Open bkloppenborg opened 10 years ago

bkloppenborg commented 10 years ago

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.