Multi-camera acq w/IMAQ-Vision processing; how to translate buffers?

I have a multi-camera system using genlocked cameras and a PCI-1408. I'm developing my application using LabWindows/CVI. I can acquire from each camera in turn using NI-IMAQ low-level functions (ref.: scan 1408 channels.c), but I want to process the images using high-level IMAQ-Vision functions. How do I translate an image captured into a low-level buffer (imgCreateBuffer) into an Image buffer (imaqCreateImage)? Are the buffer structures from imgCreateBuffer the same as imaqCreateImage, so that I can simply cast the void* returned from imgCreateBuffer to an Image* parameter in an imaq_xxx function? If not, how do I move an image from one buffer type to the other?
Thanks!
Jesse

Well, I'm answering my own question!
Turns out that the image buffer from imgCreateBuffer is an integer array. To get this into an Image structure from imaqCreateImage, use imaqArrayToImage.
Hope this helps the next person.
Jesse

Similar Messages

  • Multi cam shoot using  P2 cards. How to move clis to timecode positions

    multi cam shoot using P2 cards. How to move clis to timecode positions. We were using free TC. I want to a large # of clips from both cams. and have them move to the correct TC position on the timline. In Nuendo eith audio u hit apple a or ctrl a right click move to orgin. Avid will take care of it for u. FCP???

    If you read the "Apple Pro Training Sereis; Final Cut Pro 5" book, it's very easy. You can sync the clips manually by setting In or Out points, specifying TC, or using one of the two Aux TC fields. Since this is the first, and most basic step in doing Multiclip editing, I'd suggest you get the book, or read the appropriate section of the User Manual. I don't think anyone wants to post a full "how to" article in a forum.
    It can be done, you're clips have to all have been recorded with synced TC, or they simply won't sync up in any NLE. Read the book. Cause even if I did have the time to explain FCP's Multiclip editing in this forum, you'd still have questions that are in the book.
    If you actually walk through the first steps of building a Multiclip to edit, it's blatatnly obvious in the first step. I'd give it a try first.
    Problem is the DVCPRO-HD codec is going to require a higher end Mac with tons of RAM and either RAID, or internal drives to do a DVCPRO-HD Multiclip, as DVCPRO-HD (P2) is a pretty high bandwidth codec. I use it daily, I know, it takes horsepower to do.

  • How can I in IMAQ Vision know to which blob a pixel belongs to?

    Hi,
    How can I in IMAQ Vision know to which blob (particle) a pixel belongs to?
    I use IMAQ Complexmeasure and Complexparticle to get data about every particle in the image and then use this data (position, length and direction) to see if two particles "belong to each other". I want to start from one particle and from the data (position, length and direction) find a search area and in that area look for pixels (binary image), if I find one I want to know to which blob that pixel belongs to. (Programmatically) How can I do that?
    Deeper explanation: The image I send is just a small part of a bigger image. As you can see there are a lot of streaks on the image, they are generated by small particle
    s moving in the air. I use a long exposure time and have a chopper in front of the camera that will generate a short streak, a middle long streak and a long streak. By doing this I can see how the air is moving around in a room. As you can see I must know which streaks are generated by the same particle. As I said earlier I use IMAQ Complexmeasure and Complexparticle to get data about every blob (streak in this case) in the image and then use this data (position, length and direction) to see if two streaks "belong to each other". I start from one streak and from that streaks data (position, length and direction) I can find a search area and in that area look for pixels ( hopefully belonging to a streak generated by the same particle ), if I find a pixel I want to know to which streak (blob) that pixel belongs to so I can look at this new streaks data (length, direction) to verify if these two streaks are generated by the same particle. So my questions are:
    How can I see to which strea
    k (blob) an individual pixel belongs to? (programmatically)
    What is the best way to create a search area, ROI? (programmatically)
    What is the best way to look for a pixel in the search area, IMAQ GetPixelValue? (programmatically)
    Thanks
    Pelle
    Attachments:
    streak.jpg ‏6 KB
    scan0001.PNG ‏66 KB

    Pelle,
    This is an interesting project. It will be difficult to use blob processing, because there are a large number of intersecting paths.
    A few ideas to start with:
    For each particle, the path is essentially the same brightness. I would start with white and gradually decrease the threshold level to locate the different blobs.
    Also, for each particle, the alignment is roughly the same. I would only consider blobs that have about the same orientation of the long axis. They don't seem to make sudden right angle turns.
    I would search by doing a particle analysis, select a particle and search for related particles by comparing the centroid of nearby particles to see if they fall in the area +/- 15 degrees from the long axis orientation of the
    particle. You should be able to locate a best choice at each end of the particle.
    Bruce
    Bruce Ammons
    Ammons Engineering

  • Image processing with imaq vision with 2 webcams on the same computer

    Hi,
    I'm currently trying to set up 2 usb webcams (logitech quickcam for notebooks pro). I want to be able to have them both run simultaneously and do some image processing with the images that I get from both cameras with labview and imaq vision.
    As of right now, I'm having trouble getting both cameras to run at the same time. Any help would be gladly appreciated. Thanks.

    The USB IMAQ driver will not support running 2 USB cameras at a time (I believe it is a limitation of the DirectShow interface). You could open one camera, acuqire an image, close the reference to that camera and then do the same for the second camera.
    If you need simultaneous acquisition, look at possibly moving to 1394 cameras or analog cameras.

  • Work flow? How to link multi-cam sequences for DVD output?

    Pr cs4 (very new)
    Still taking baby steps each day... please take my hand and help me!
    Final output will be 2 DVD's (each DL) each about 2 hrs. Content are chamber music student groups in two recitals.
    I have assets from two camera angles. I have successfully practiced on one of the groups performance (10 min.) following the steps illustrated in a multi-cam tutorial.  http://www.adobe.com/designcenter/video_workshop/?id=vid0234
    This leaves me with a great multi-cam sequence for that group located in the Project Panel, exactly what I want.
    Now, I want to know what is the best method (workflow?) to ultimately produce a DVD containing about 10 of these type performances (one after the other) with chapter markings for each group, titles etc.?
    I have yet to use Encore and I'm guessing that is where I'll send the finished edit for DVD production, though I don't know at what step I jump there?
    Do I try to create one very long multi cam sequence of all the content, then send to Encore? Or can I create seperate multi-cam sequences (each performance) then link them together, adding transitions and make the DVD? This would be my preference to keep things more manageable, especially with audio synching.
    With my practice multi-cam sequence on the timeline, I tried to drag the same sequence from the Project Panel to the end of the timeline to simulate how this would work, but it does not add to the timeline as a clip would.
    This is probably childs play for you pro's, but we were all baby's at one time...I just happen to still be one!
    Thanks for your patience and advice,
    Kenny

    Yes I did...now toss me a cookie please.
    I am trying to quickly get up to speed in Pr CS4 to get this project completed. In the process, I'm trying to learn and understand the interface and correct terminology so as to make my questions intelligible to a community that posses vastly greater understanding than myself.
    Is there anyone who can help with my main question at hand? Namely, how to go about creating a full length sequence (in the timeline) made via the nesting of synchronized multi-camera clips within a new "multi-cam sequence"?
    As I said, I have completed a small test sequence in this fashion, nesting clips in a new sequence then using multi-cam monitor to record cuts. Now I need to add about 10 more of these together in a completed sequence to then send to DVD production.
    Is this intelligible?
    Thanks, Kenny 
          __0
       _ \<,_
    Date: Wed, 4 Nov 2009 09:11:06 -0700
    From: [email protected]
    To: [email protected]
    Subject: Work flow? How to link multi-cam sequences for DVD output?
    please take my hand and help me!
    Well, at least you had the gumption to admit that up front.
    >

  • Is it possible to use numerical camera with Imaq Vision?

    For the price and because my application is static I want to use a numerical camera for take photos

    If you mean by numerical camera, a commercial camera, there are several possibilities. If the camera has an analog video output (NTSC, PAL), then an NI analog image acquisition card (1407, 1411 or 1409) can be used. It may be possible to import images to LabVIEW/IMAQ Vision if the camera has a TWAIN driver. Alliance Vision sells a TWAIN driver for LabVIEW/IMAQ Vision. Note, IMAQ Vision is able to retrieve images from file for analysis, so as long as you can store the image on the PC in an acceptable file format (.bmp, .tif, .jpg, .png, .avi), then you will be able to process your images using IMAQ.
    Robert Eastlund
    Graftek Imaging, Inc.
    Phone: (512) 416-1099 x101
    Email: [email protected]

  • When importing files into fcpx from go pro hero2, some are importing as .mov and some as .mp4. when making a multi cam clip it will only add one type, if you try and add the other it says camera clip cannot be processed.

    when importing files into fcpx from go pro hero2, some are importing as .mov and some as .mp4. when making a multi cam clip it will only add one type, if you try and add the other it says camera clip cannot be processed. need to figure out why it randomly imports differently, or how to add different file tyoes to multi cam.

    here is one that is imported and stays .mp4. the specs are same as original file before import.
    here is one that has changed somehow during import. specs on original file are same as above, but once it is imported it changes to this in event folder, and others randomly keep the above specs.

  • Insert source clip after multi-cam editing, how?

    hello
    I created a sequence using multiple clips and did all my colour corrections. Then I created a new sequence by dragging on new items, sequence is now green. Enabled Mulit-cam editing and started the process.
    After i finished, I noticed two clips have blown highlights. Looking at original source I accidentally add two levels. I tried deleting the blown highlight clips and replace them with the original, this did not work too well.
    Is there a method I can insert clips after multi-cam editing?
    I hope all this makes senses.

    Here's how I did it a few times:
    1. Add video tracks (and audio tracks if needed) to your timeline to equal the number of cameras you have. Of course if you have more than 4 this will start to get impractical.
    2. Edit in your clips from your different camera angles, one to each video track.
    3. Double click each clip in turn to get it into the viewer and click the Motion tab. Change its scale to 50%.
    4. Select each clip in turn in the timeline and move it to one corner of the canvas. You need to have "image + wireframe" selected in the Canvas popup menu in order to move it with the mouse.
    You should now have up to 4 different camera angles shown at the same time in the Canvas, each in its own quadrant.
    5. Now the hard part is to align each clip according to time. Hopefully you have some sort of visual cue you can use to align the clips.
    6. Then play through the timeline and use the razor tool to cut the clips where you want a camera angle change.
    7. Select each camera angle piece you want from each cut you made and change its scale back to 100% and center it at 0,0. Delete the unused clips.
    8. If you want, you can move all the clips that remain back to v1 so that you can use transitions between them.
    What to do with all the various audio is another question. I usually use the audio from the best source all the way through, only changing to the other camera angle's audio when necessary.

  • How to add newly imported audio - as a new storyline/angle to existing multi cam Project??

    I have a 6 camera multi cam Music Video Project I have been working on in depth for 5 days. The "band" has sent me a new & improved .wav file to replace the audio I have been working with on one "song". I have imported it into the event, cannot figure out how to add it as a new angle (that I will manually sync on the timeline) and then make it the active audio monitor angle. I see ways to "connect it" but not how to have it appear in the 6up display & on its own story/time line in the precision editor. This is like reinventing the wheel. I am losing mu mind. Please help?
    Thanks

    Man oh man. I need to take a break & eat somthing, how embarassing. I swear I knew that but had an attack of hysterical blindness or... the disclose arrow>add new...  Thank You Tom for your quick & thouriough reply. Have a swell holiday.

  • 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

  • My camera won't work with IMAQ vision builder

    I have a Hitachi camera , and a PCI 1407 frame grabber
    the camera works well in MAX under devices , but when I open the IMAQ vision builder , it not visible in the devices , and I can't open MAX from the vision builder. It's gets me that error "1074397163" at the end it has bad interface
    it's not the power supply of the camera since it works well at MAX , so its like the camera's name is img0 in MAX , and another thing in IMAQ vision builder, I tried updating my softwares but nothing happened, can anyone help please ??
    thanks

    Dalia, 
    I think I may need some clarification on what exact program and function you are using. Are you getting this error with the Vision Builder for Automated Inspection (VBAI)? Or are you using LabVIEW and are receiving this error from the IMAQ Init.vi?
    If it is in VBAI, and you are trying to acquire an image, the Devices should auto-populate in the Main tab of the Acquire Image setup. Simply select the camera and press Grab or Snap. 
    If it is in LabVIEW, right-click on the interface input of the IMAQ Init.vi to create either a constant or a control. If it does not auto-populate with the correct camera name as it is in MAX, "img0". Or you can change the interface name in MAX by simply right-clicking on the camera and selecting "Rename"
    Can you elaborate on what you are referring to when you say "the MAX explorer won't work in IMAQ"?
    Huntington W
    National Instruments
    Applications Engineer
    ***Don't forget to give Kudos and Accepted as Solution where it is deserved***

  • How to load .raw files within IMAQ Vision?

    Does IMAQ Vision support .raw format? How do I load an .raw image into an IMAQ Viewr?

    IMAQ Vision supports the following standard image formats; BMP, TIFF, JPEG, PNG, and AIPD. Non-standard or other images can be read with IMAQ Vision and converted to the IMAQ image data type. In LabVIEW, the IMAQ ReadFile.vi has a set of options to be used for non-standard or other image types. Depending on how your .raw file is stored, you might have to do some other types manipulation before you will be able to read the file in. I would start with the option in the ReadFile command. Once the image has been successfully read into Vision, you can attach it to an IMAQ Viewer just like other images.
    Hope this helps.
    Jack Arnold
    Application Engineer
    National Instruments

  • How to use the examples in IMAQ Vision Builder?

    I tried many times to use the examples brought in IMAQ Vision Builder(or LabView 6i ?) or download the similar examples from website of NI in order to learn some skills(I am really new with it!). But Whenever I click the example I want to run and a new dialog window always opened and ask me to find a VI named ???(??? is like for emample: IMAQ Windraw) and I always failed to find this VI!!! Where are this VI or How to use those emamples??? Thank you advanced!!!
    Swedlin
    [email protected]

    Hello Swedlin,
    IMAQ WindDraw is a VI that is included in the IMAQ Vision toolkit (see http://sine.ni.com/apps/we/nioc.vp?lang=US&pc=mn&cid=1305 for ordering information).
    If you are tring to run examples that include IMAQ WindDraw (or any other functions that are in IMAQ Vision), a dialog message will prompt you locate the VI manually (because the initial search failed).
    - Installing IMAQ Vision for LabVIEW will remove the message, and the examples will run.

  • Multi cam sequence - how to take audio from multiple tracks?

    I have a multi cam sequence with multiple audio sources (cameras plus separate audio tracks).
    According to this page, in order to have multiple audio sources, I need to mix them into a track in the source sequence:
    http://help.adobe.com/en_US/PremierePro/4.0/WSADF1BC06-B8FB-4f23-8446-8D8F8539D7BD.html
    So I mixed several tracks into submix 1. But when I use the multi cam monitor, submix 1 is not available as an audio source.
    Is it perhaps possible to mix audio into a non submix track? If so, how?
    premiere cs4

    Multicam can only use audio 1, or audio follows video (you hear whichever track you see).  There's no way to hear more than one track at a time.

  • How do I enable "create multi-cam source sequence" option?

    I am trying to create a multi-cam sequence of an interview. I have one audio file (.wav) and two different camera angles (.mov's). I highlight all three and right click, but the "Create Multi-Cam Source Sequence" option is disabled. I tried going to Clip in the menu as well. No luck. How do I enable this so I can create a multi-cam sequence?

    If you are in Premiere version CS6, unselect the audio and sync your video with in or out points, timecode or clip marker. I am assuming you are prior version CC as I believe audio disables 'creating multicam source sequence'. Versions CC and beyond have the ability to sync with audio, so not sure as to why your option is greyed out.

Maybe you are looking for