08-12-2010 05:04 PM
Hi, I would like for my GPU function to write directly to page-locked host memory allocated by cudaHostAlloc, but don't want to copy to another IMAQ image. Is there a way to set the IMAQ buffer pointer? I looked in nivision.h and the function imaqGetImageInfo() seemed might let me change the pointer, but apparently not because the imageInfo_struct is a user supplied buffer, so you can't actually change what's inside. Any ideas?
08-13-2010 02:42 PM
It's been awhile since I've worked on the internals of the IMAQ Vision library. I implemented a number of the algorithms in the image library include the original pattern matching and color pattern matching routines (non-geometric versions).
Your problem is not specific to GPUs. It's equivalent to asking if you can supply a memory manager for image allocations. I would pose that question one of the LabVIEW forums. I see a number of posts related to image management under LabVIEW, LabVIEW /CVI and Machine Vision. You might even find an answer to your question there.
Good luck!