.net - fastest/performance approach to share large Bitmap object between managed and unmanaged functions -
while working on computer vision application having gui in wpf.net , being processed using native libraries (opencv , more),
fastest way send , receive large size bitmaps between managed (c#.net) , un-managed (native c/c++ ) functions ? feel copying bitmap data managed unmanaged memory not fastest way , there should better alternative...
i found out few approaches, if approve or suggest better alternatives:
approach 1: using pin_ptr
'pin' memory, use pin_ptr instead of copying (marshalling) pixel data of bitmap object managed unmanaged increasing performance / speed
approach 2: unmanaged wpf imaging component.
approach 3: hbitmap::lockbits()
it lock bitmap , makes available pixel data handle, have seen allocate memory.
Comments
Post a Comment