Intercepting image buffer data

I'm trying to develop a program which needs some image processing to occur on the stream of data being drawn to the screen as displayed by the camera. I don't actually need to capture the video, just process portions of the screen space.
How should I go about intercepting the data being drawn to the screen buffer?

I'm trying to develop a program which needs some image processing to occur on the stream of data being drawn to the screen as displayed by the camera. I don't actually need to capture the video, just process portions of the screen space.
How should I go about intercepting the data being drawn to the screen buffer?

Similar Messages

  • Unable to create image buffer after RAM preview

    Running into an odd and frustrating error. Built a comp using the new Ray-traced 3D renderer and now I'm regretting being an early adopter big time with all the problems I've been encountering with it. The latest comes whenever I do a longer RAM preview in an attempt to watch the whole duration of my comp. It will get to about 170 frames or so, at which point I've interrupted by pressing spacebar because I don't need to see all the way to the end of my work area (around 220 frames). It'll play the RAM preview back fine, and even loop it, but as soon as I stop playback, I get this error message: "After Effects warning: Unable to create image buffer." There's only one button: "okay" and as soon as I click it the same error pops up again and it will never go away, forcing me to close AE from the task manager. I've taken to saving before every RAM preview like I used to do with Flash before previewing my buggy swfs for fear I'll lose all my work after previewing. Any ideas about what might be causing this?
    Some more details about my comp:
    1920x1080 @ 29.97
    Ray-traced 3D
    About 70 3D layers (I'm guessing this is my downfall - new renderer not designed for this many layers?)
    Running Windows 7 Professional
    i7 2600K
    32GB RAM
    2x GTX 570 video cards running latest driver (301.42, CUDA 4.2.1)
    508GB free on my 2TB internal drive where the project and cache lives
    From my GPU info window in case it's useful:
    Fast Draft:
    Available
    Texture Memory:
    600.00 MB
    Ray-tracing:
    GPU
    OpenGL
    Vendor:
    NVIDIA Corporation
    Device:
    GeForce GTX 570/PCIe/SSE2
    Version:
    3.0.0
    Total Memory:
    1.20 GB
    Shader Model:
    4.0 or later
    CUDA
    Driver Version:
    4.2
    Devices:
    2 (GeForce GTX 570, GeForce GTX 570)
    Current Usable Memory:
    1.04 GB (at application launch)
    Maximum Usable Memory:
    1.25 GB

    Yeah, some buffer is very likely not flushing when you interrupt the preview and then there is no more memory on the graphics hardware. Consider setting the work area and your preview options to use only the work area. if it finishes the preview "correctly", it may not suffer the issue. Beyond that - raytracing doesn't/ shouldn't care about the number of items. The math is such, that it makes no difference whether you render a million polygons or just one. Of course there are still limitations due to the GPU dependency, but I doubt you ever truly exhaust the cards' geometry buffers. Compared to pixel data that is a small amount...
    Mylenium

  • Does anyone know how to display (in LabVIEW) the memory use during execution of an image and data acquisition VI to predict when it is time to cease the acquisition to prevent the program crashing?

    Does anyone know how to display (in LabVIEW) the memory use during execution of an image and data acquisition VI to predict when it is time to cease the acquisition to prevent the program crashing?
    I am acquiring images and data to a buffer on the edge of the while loop, and am finding that the crashing of the program is unpredictable, but almost always due to a memory saturation when the buffers gets too big.
    I have attached the VI.
    Thanks for the help
    Attachments:
    new_control_and_acquisition_program.vi ‏946 KB

    Take a look at this document that discusses how to monitor IMAQ memory usage:
    http://digital.ni.com/public.nsf/websearch/8C6E405861C60DE786256DB400755957
    Hope this helps -
    Julie

  • How do I convert an IMAQ image buffer into an IMAQ Vision 'Image'?

    Using NI IMAQ and IMAQ Vision with LabWindows/CVI 6.0...
    I have some acquisition code that uses IMAQ img functions to set up a
    triggered image acquisition and stores the image into an 1D unsigned char
    array buffer.
    I would now like to add code that uses the IMAQ Vision functions. The IMAQ
    Vision function use an Image data type, which from what I can glean from the
    ..h files, is a structure.
    Is it possible to convert the 1D unsigned char array image buffer to an
    Image? How would I do this?
    An inefficiant brute-force way would be to write the image to a BMP file
    from IMAQ using imgSessionSaveBufferEx, then read the same file back in
    using IMAQ Vision imaqReadVisionFile. I am hoping there is a more elegant
    way to perform the conversion in memory without needing to write disk files.
    Thank you,
    Robert Rafuse
    Etec, Inc.
    tel: (978)531-5025
    e-mail: [email protected]
    web: http://www.etec-inc.com

    Bob Rafuse wrote:
    > Is it possible to convert the 1D unsigned char array image buffer to
    > an Image? How would I do this?
    Never mind. I found:
    http://sine.ni.com/apps/we/niepd_web_display.DISPLAY_EPD4?p_guid=B45EACE3F11556A4E034080020E74861&p_node=DZ52490&p_submitted=N&p_rank=&p_answer=&p_source=External
    which indicates that the img functions actually return a 2D array, so I can
    use imaqArraytoImage after all.
    My bad.
    Bob

  • Does anyone know how to display (in LabVIEW) the memory use during execution of an image and data acquisitio​n VI to predict when it is time to cease the acquisitio​n to prevent the program crashing?

    Does anyone know how to display (in LabVIEW) the memory use during execution of an image and data acquisition VI to predict when it is time to cease the acquisition to prevent the program crashing?
    I am acquiring images and data to a buffer on the edge of the while loop, and am finding that the crashing of the program is unpredictable, but almost always due to a memory saturation when the buffers gets too big.
    I have attached the VI.
    Thanks for the help
    Attachments:
    new_control_and_acquisition_program.vi ‏946 KB

    got these vi's off ni site a while ago - see if they help
    Attachments:
    Memory_Monitor.zip ‏132 KB

  • Developing filter plug-in: having trouble storing image buffer in the registry

    Hi guys, I'm new to plug-in development and having a bit of trouble with storing information to the photoshop registry. My plug-in has two buttons, "capture" and "apply". When the capture button is pressed, the filter needs to grab whatever image data has focus. Then the user would give a different image focus, run the filter again and press "apply", transfering information from the captured image to the new image. The problem is that filter memory is wiped between executions so I need to save the captured image to the registry (I think anyway, please let me know if there's anything easier I could be doing).
    Anyway, I'm modifying the dissolve example from the SDK, I'm in DissolveRegistry.cpp
    In dissolve.h I define an image buffer and it's length
    Ptr transferBuffer;
    int32 transferBufferLength;
    Then in DissolveRegistry.cpp I try to write and read this information as follows
    //WRITE BUFFER
    err = descriptorProcs->PutInteger(descriptor, keyTransferLength, gData->transferBufferLength);
    if (err) goto returnError;
    err = descriptorProcs->PutData(descriptor, KeyTransfer, gData->transferBufferLength, gData->transferBuffer);
    if (err) goto returnError;
    //READ BUFFER
    err = descriptorProcs->GetInteger(descriptor, keyTransferLength, &gData->transferBufferLength);
    if (err) goto returnError;
    err = descriptorProcs->GetData(descriptor, KeyTransfer, gData->transferBuffer);
    if (err) goto returnError;
    It seems to write okay (by okay I mean it doesn't actually throw an error), and the buffer length seems to be working okay (unless I'm missunderstanding my debugger). When I try to read the buffer though, I get a "bad pointer" error. I guess I don't understand how the PutData function works, does it not set the pointer to the buffer I saved? Does anyone have any example code for how to do this correctly?
    Sorry if this code is terrible. I have almost no experience with this sort of thing and I can't find any documentation. Any help would be much appreciated!
    Kindest Regards,
    Eric

    You need to create space to copy the data before the GetData call.
    Something like
    gData->transferBuffer = new char[gData->transferBufferLength];

  • My back up failed and I get a messageTime Machine couldn't complete the backup to "TimeCap".  The backup disk image "/Volumes/Data/Mary Fleming's MacBook Pro .sparsebundle" is already in use.

    I noticed today that my last back-up was this a.m. and it has tried several times to back up since but I keep getting this message
    Time Machine couldn’t complete the backup to “TimeCap”.
    The backup disk image “/Volumes/Data/ MacBook Pro ."sparsebundle” is already in use.
    I have never had this problem before and don't know what to do. I am not that great around computers so if anyone can help I would appreciate it. I did try to do some research but could not understand any of the content I read. I sure don't know what "sparsebundle" is and this is the first time I ever heard the term.
    If anyone can help woold appreciate it.
    I have Version 10.9.1

    This is a standard issue..
    Been around since LION but you missed out.. !! Well the old rule applies.. there are three types of Mac users.
    1. The bugs have bitten you, and you have done the work arounds.
    2. The bugs are biting you and you are now trying to find out what is going on.
    3. The bugs will bite you. And in the meantime you laugh at everyone with problems and say it must be all their fault. Doesn't happen to my system. 
    You were simply in the last group.. now, with the wonders of mavericks to help, you got bit.
    The solution is simple.. unplug the power cord from the TC .. count to 10.. power up the TC again.
    No luck look at the more technical help.
    C12 here. http://pondini.org/TM/Troubleshooting.html
    Your naming might also be an issue if this continues to happen.. see C9.

  • How to display image and data in module pool screen?

    Hi,
    I want to display image and relevant data besides the image in module pool screen, I am using docking container to display the image.
    Actually I am able to display image or data any one but not both.
    one more thing I want to display multiple images and their data.
    Please suggest some one if you have any idea.
    Regards,
    Dileep.

    You can try below way, I have used in report.
    DATA: gc_docking              TYPE REF TO cl_gui_docking_container, "#EC NEEDED  "Docking Container
           gc_split                 TYPE REF TO cl_gui_easy_splitter_container, "#EC NEEDED  "Splitter
           gc_top_container         TYPE REF TO cl_gui_container, "#EC NEEDED  "Top Container
           gc_bottom_container      TYPE REF TO cl_gui_container, "#EC NEEDED  "Bottom Container
          gc_document              TYPE REF TO cl_dd_document, "#EC NEEDED  "Document
           gc_events                TYPE REF TO lcl_event_class, "#EC NEEDED  " Local Event Class
           gc_grid                  TYPE REF TO cl_gui_alv_grid, "#EC NEEDED  " ALV Class
    " Creating Docking
    CREATE OBJECT gc_docking
           EXPORTING
             ratio = c_95.
         IF sy-subrc EQ 0.
    * Splitting the Docking container
           CREATE OBJECT gc_split
             EXPORTING
               parent        = gc_docking
               sash_position = c_10 "Position of Splitter Bar (in Percent)
               with_border   = c_1. "With Border = 1 Without Border = 0
         ENDIF.
    *   Placing the containers in the splitter
         gc_top_container = gc_split->top_left_container .
         gc_bottom_container = gc_split->bottom_right_container .
    *   Creating Grid
         CREATE OBJECT gc_grid
           EXPORTING
             i_parent = gc_bottom_container.
       ELSE.
    * Background job handling
         CREATE OBJECT gc_grid
           EXPORTING
             i_parent = gc_docking.
       ENDIF.
    *   Creating the document
       CREATE OBJECT gc_document
         EXPORTING
           style = 'ALV_GRID'.
    Regards,
    Sameer

  • MacPro backed up to Time Machine, added Mac Mini now get "The backup disk image "/Volumes/Data/Jerry Booher's MacBook Pro.sparsebundle" is already in use." error when Mac Pro tries to back up

    MacPro backed up to Time Machine, added Mac Mini now get "The backup disk image “/Volumes/Data/Jerry Booher’s MacBook Pro.sparsebundle” is already in use." error when Mac Pro tries to back up

    It is standard Mountain Lion error due to the networking ability which is comparable to wet string. (actually that was lion.. it dried out some with Mountain Lion.. higher in the hills perhaps!!)
    See C12 and C17
    http://pondini.org/TM/Troubleshooting.html
    But many people are suffering the same issue..
    And the above is even a little out of date.. you might need to do a reset to the TC.
    Welcome to Apple's beta program for everyone.

  • HT3275 For the past several days, I have been getting this message during backups: Time Machine could not complete the back up.  The backup disk image "Volumes/Data/iMac.sparsebundle" could not be accessed (error-1).

    For the past several days, I have been getting this message during backups:
    Time Machine could not complete the back up.  The backup disk image "Volumes/Data/bhoppy2's iMac.sparsebundle" could not be accessed (error-1).  When I click on the 'help' icon on the message, it reverts to a blank page, and I cannot find anything online regarding the term 'sparsebundle.'  In addition, I cannot access previous backups any longer. 
    Help?

    See C17 in Time Machine Troubleshooting by Time Machine guru Pondini:
    http://pondini.org/TM/Troubleshooting.html

  • I get this error message when I try to back up my laptop:  Time machine could not complete the backup.  The backup disc image "/Volumes/Data/Lou Ann Buesing's Mac Book Pro. sparse bundle is already in use.  Anyone know how to fix it?

    I get this error message when I try to back up my laptop:
    ' Time machine could not complete the backup.  The backup disc image "/Volumes/Data/Lou Ann Buesing's Mac Book Pro. sparse bundle' is already in use. "
    Anyone know how to fix it?

    Reboot the TC.. Sometimes you need to reboot the whole network.
    This is what comes of Lion and then made worse in Mountain Lion of Apple not spending enough time to fix the bugs.
    Read C12 in pondini.
    http://pondini.org/TM/Troubleshooting.html
    C17 can be related I think.

  • When backing up on time machine is get " The back up disk image'/volume/data/eric balnchard's Macbook.sparbundle"could not be accessed (error-1). what does it mean? it's a new time machine

    when backing up on time machine is get " The back up disk image'/volume/data/eric balnchard's Macbook.sparbundle"could not be accessed (error-1). what does it mean? it's a new time machine

    Expect to see this error again due to a bug in Lion (and Mountain Lion).
    See # C17 in Pondini's excellent support document below, or look over to the right of this web page under the heading of More Like This
    http://pondini.org/TM/Troubleshooting.html

  • HT3546 I get an error when trying to back up on my TC. Message says - The backup disk image "/Volumes/Data/Macintosh.sparsebundle" could not be accessed (error -1).

    I get an error when trying to back up on my TC. Message says - The backup disk image “/Volumes/Data/Macintosh.sparsebundle” could not be accessed (error -1).
    Any suggestions

    See here...
    https://discussions.apple.com/message/20933934#20933934

  • HT1218 ?My time machine could not complete back up.  Says backup disk image"/volumes/data/name's iMac.sparsebundle" could not be accessed error 1??

    Time Machine could not complete the backup.
    The backup disk image "/Volumes/Data/Name's iMacsparsebundle" could not be accessed (error -1 )

    I checked the pondini fixes and ended up doing the following - in case this could help someone else with OSX Lion and Time Capsule... http://pondini.org/TM/Troubleshooting.html
    First, I downloaded and used Airport Utility 5.6 instead of 6.1 - BTW, I had to attempt download and installation THREE times before the program actually installed.  Be persistant.
    Pondini #5: It's possible some names (of all things!) may be a problem.    See item C9.  I had to re-name my Mac, Time Capsule, network, etc... to remove all apostrophes and spaces.
    Pondini #7:  If you have WD SmartWare installed on Lion, it's not compatible, per RoaringApps, and there are reports it can cause this problem as well.   Use Western Digital's uninstaller, or delete the app from /Applications and the files com.wdc.WDDMservice.plist and com.wdc.WDSmartWareServer.plist from /Library/LaunchDaemons.   There may also be a file in Library/Application Support.
    I then had to shut down computer, unplug Time Capsule, unplug modem; plug everything in again, then reboot computer; then had to go to Apple- System Preferences- Network- and reselect my Time Capsule to connect to WiFi again.
    Then opened Time Machine preferences again and attempted back up - it worked!

  • HT3275 My time machine does not back up and giving me this error message: The backup disk image "/Volumes/Data-1/Amiel's MacBook Pro.sparsebundle" is already in use. Pls help.

    My time machine does not back up and giving me this error message: The backup disk image “/Volumes/Data-1/Amiel’s MacBook Pro.sparsebundle” is already in use. Pls help.

    Make sure that there are no other Macs backing up at the present time.
    Pull the power cord from the back of the Time Capsule
    Count to ten
    Plug the power cord back in
    This will "fix" things about 98% of the time. Post back if you are in the unlucky 2% category.

Maybe you are looking for

  • Adding new item in SAP logon

    Hi, when adding a new item in SAP GUI, we get an option for the connection type------ Custom application server Group/Server selection On selection the Group/Server selection we need to add the System ID, Message server, SAP Router and Group/Server.

  • Grouping in Column itself.

    Hello , I am bit confused to use which function to group the data inside the column. I have a Category codes for a job such as A , A1 , A2 , B , C . I would like to group A , A1, A2 together into one group and B & C separately . If i do group sort ,

  • ITunes has stopped syncing my music

    A day ago, I discovered that my ipod touch 5th gen had only some of my recently purcahsed content on it even though I have instructed iTunes to sync most of my iTunes Library (and it has been this way for months). I  went back to iTunes to verify the

  • Why doesn't my ipad have a hole to open sim tray?

    got the sim ejector tool but no hole to put it in ??

  • How to obtain information which jar files was updated

    Hello. How to obtain information after launched application by jnlp file or shortcut which jar files was updated. Do JWS have some log file which I can display after running application?