ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

GPU Computing

cancel
Showing results for 
Search instead for 
Did you mean: 

Vision Image Buffer location

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?

0 Kudos
Message 1 of 2
(5,196 Views)

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!

0 Kudos
Message 2 of 2
(3,852 Views)