How to save an imaq image starting from a continuous stream, like a snapshot

Hello

I spent hours trying to find a solution for this on the internet for what I think should be really simple:

I have a camera that gives me a stream of images, which I show in a chart of the image.

Now, when the user clicks a button 'save', I want that picture that was shown at the moment where the user was hit 'save' is recorded. However, the user is prompted for a file location and name, so some time passes between hitting 'save' and write the image to disk.

Meanwhile, the new images will be at the position of the pointer in the image that I wanted to save.

It is clear to me why this happens, but how about him?

I tried to make a copy copy Imaq, but this will give me just a new pointer that is always related to the old.

I tried to convert it to an array, the same effect.

I also tried writing a queue that contains a single element that has a buffer of image. The queue was not in a loop (which of course would replace the picture there), but again, the queue also just seemed to save the position of the pointer, while creating a new blank image in advance and I copied the image that I want with Imaq copy in this image buffer.

So, how to store the actual image (not pointer) in memory to save a few seconds later?

Basically I want something similar to what does the 'snapshot' of the curve of the image function.

Any ideas?

Thank you very much!
Philipp

Hello

Thank you very much.

I consider your solution already, however, I thought it's kinda an overdose.

For some reason any, I don't know, he now works as I wanted. See example below (really just, I always wanted a picture).

The only difference from what I tried earlier, is that now I did not specify the data type and the size of the new image... do not know if this is the reason why it did not work.

Uday thank you very much for your help!

Philipp

PS: How did you make the image you posted in your message visible? Mine is just a link.

Tags: NI Hardware

Similar Questions

  • How to save a binary image

    Hello everyone.

    How to save a binary image in a computer? If I right click on the image, then choose "Save Image... ', the saved image will appear empty. I understand that the image is in 0 and 1 but I do not know how to implement the code.

    Thank you.

    Use IMAQ multiply to multiply the image 255 times.

    Bruce

  • How to save a modified image on SD card on Photoshop Touch?

    I do not know how to save a photo that I made for my SD card

    If it helps, I have the latest version of Photoshop Touch, Samsung Galaxy Tab 2 Tablet 10.1 Jelly Bean

    Thank you

    You are in the wrong forum.

    This Photoshop forum has nothing to do with Photoshop Touch for mobile devices.

    Try here for Tablet:

    http://forums.Adobe.com/community/creative_cloud_touch_apps/adobe_photoshop_touch

    or here for the phone:

    http://forums.Adobe.com/community/photoshop_touch_for_phone

  • How to 'save for web' with information from a dataset

    I created psd to design web page set up with a master image.  The main image is defined as a pixel replacement variable and uses a dataset to load in images of a local folder.  I have more than 100 images in this folder and I need to resize the image to 250 pixels wide and "save for web".   Resizing and registration is easy with an action, but the thing, it's that I need to use a different column in my DataSet as the name of the saved files.

    Is it possible to create an action that will loop through each row in my dataset, do the replacement of pixel on the image, enter the name of the file in the next column, flatten & resize the image and then save it as the file name?  Of course, would cancel the flattening and resizing to start on the next line.

    I guess I could break in two actions.  One who reads the dataset, to replace the pixels and export for the web with the new file name.  Then I could set up a second action to run in batch on the folder that contains the images recently exported and just resize all the.

    I don't know how (if it is even possible) is to loop through the dataset by using the action, get the variable of the object dataset for file name and export for the web with that name.  Any ideas?  Thank you.

    Here's a function I use. With this function, you can import a CSV dataset to your document. Get names of groups of data csv form. Then in a loop applies a set of data by name, and then save as in any format you like. The loop repeats until all sets of data are processed.

    fileImportDataSets = function( file ) {
        var desc = new ActionDescriptor();
            var ref = new ActionReference();
            ref.putClass( stringIDToTypeID( "dataSetClass" ) );
        desc.putReference( charIDToTypeID( "null" ), ref );
        desc.putPath( charIDToTypeID( "Usng" ), new File( file ) );
        desc.putEnumerated( charIDToTypeID( "Encd" ), stringIDToTypeID( "dataSetEncoding" ), stringIDToTypeID( "dataSetEncodingAuto" ) );
        desc.putBoolean( stringIDToTypeID( "eraseAll" ), true );
        desc.putBoolean( stringIDToTypeID( "useFirstColumn" ), true );
    executeAction( stringIDToTypeID( "importDataSets" ), desc, DialogModes.NO );
    };
    function applyDataSet(setName);{
        var desc = new ActionDescriptor();
            var setRef = new ActionReference();
            setRef.putName( stringIDToTypeID( "dataSetClass" ), setName );
        desc.putReference( charIDToTypeID( "null" ), setRef );
    executeAction( charIDToTypeID( "Aply" ), desc, DialogModes.NO );
    };
    function getDataSetNames(csvFileRef) {
        _ftn = function(string){
        var csvItems = string.split(",");
        datasetName = csvItems[0]
        return datasetName;
    };
    csvFileRef.open();
    var datasetArray = new Array();
    var i = 0;// assumes the dataSet name is the first field
    while (csvString = csvFileRef.readln()) {
       if (csvString.length < 2) continue; // Skip empty lines
      datasetArray[i] = _ftn(csvString);
      i++;
    }
    csvFileRef.close();
    return datasetArray;
    } 
    
    //sample usage
    var csvFileRef = File.openDialog("Please select CSV file");
    var datasetNames = getDataSetNames(csvFileRef);
    alert(datasetNames.length-1);//number of data sets
    alert(datasetNames[1]);// first data set name
    
  • Envy4500: How to save a scanned image

    I scanned a picture. I don't see any way to save her.

    Hello and welcome to the community of HP @shamacson,

    I understand that you are looking to put a scan of a photo. I'll be happy to help you.

    Below, I've posted a link to a document that has some instructions on how to analyze. Please try all the steps in order and get back to me with the results.
  • How to save multiple JPEG images in a single file

    I scanned 22 photos (1800 KB total) and I need to transfer all of them for a job application.

    The problem is, when I'm on the job site and I hit the icon of the file attached, I can only select one file.

    The site will only allow a single file transfer only.

    So, is it possible to save all jpeg in jepg files one file, so I can send them into a single file?

    What email program are you using? If you used Windows Mail for example, you could highlight all 22 JPEG files, and then drag them into the text box of a new message and they will settle.
     
    You can put all the JPEG images in a single folder and then right-click | Send to | Compressed (zipped) folder and attach that. The recipient would save the file and then right-click | Extract all.
  • How to save a PDF image in jpeg format?

    Hi people,

    There is a pdf image, I want to save as a jpeg, so I can post on the likes of LinkedIn. Can I use Adobe for this? If so, pointers would be much appreciated. Thank you

    Yes. You can do this with any version of Adobe Acrobat (not Adobe Acrobat

    Player) or with the online service export to PDF.

    Tuesday, March 15, 2016 to 20:19, admccaawake [email protected]>

  • How can I load the images down from my Camers via cable usb and foxfire

    I do not have a place to put a camera chip in my computer and I want to download my pictures from the camera via cable usb with fire fox

    Firefox can not be used to import files from a USB, card SD or other external storage device. Firefox is a Web browser for viewing and downloading content on the web.

  • Question - how to save a transparent image to JPEG? - But we know all THAT JPEG does not support transparency.

    We know all that JPEG doesn't support transparency, but the attached file is in JPEG format with transparency and opening the file in Photoshop cs4 its error display (screen shot below) and I tried out in the procedure below

    Opening files in ms-paint and new re-registration in png or JPEG, but shows error like this "complete transparency will be lost" (screenshot attached)

    File ms paint

    paint.jpg

    Image to the site with transparent

    insite.jpg

    Original image - in JPEG format

    399831-siteheader.jpg

    Photoshop error

    Ps-error.jpg

    Please help me with this problem

    Thank you

    Another thing to try in photoshop cs4 is to go to file > open as and select PNG and then click Open.

  • How to automate the two images in a loop continues

    I'm a newbie to Flex and enjoy two images that I have and post them essentially in the same place one after another in a loop continues (Automation good cheap?).  I looked into different effects as bland, but I'm puzzled how to do something like this loop continues.  Most of the samples show different effects after clicking on a button or by positioning the mouse on an image... Thank you!

    http://www.Adobe.com/2006/mxml '.

    creationComplete = "init (); »

    layout = "absolute" >

    Import mx.core.UIComponent;

    [Bindable]

    private var vs: int = 0;

    private function init (): void

    {

    var: timer = new Timer (3000);

    timer.addEventListener (TimerEvent.TIMER, onTimerStart);

    Timer.Start ();

    }

    private void onTimerStart(event:TimerEvent):void

    {

    if(vs == 0)

    vs = 1;

    on the other

    vs = 0;

    }

    ]]>

    I hope this helps...
    BaBo,
  • How to save an Illustrator CS6 document to an earlier version like CS2?

    I thought I saw a way to save up to previous versions before, but I can't find it now.

    I googled for the answer, but what I found seems to be on previous versions of Illustrator, because the screenshots don't match my CS6 Illustrator for Mac.

    A few Google results say try export instead of Save as, but I don't see older versions as options when I try one or the other.

    No doubt I'm missing something obvious.

    File > save

    then give a name to the file

    then click on the "Save" button.

    This should bring up a box similar to the one below (which comes from the CS4). Choose the version in the menu drop-down circled in red.

    Edit to add; Too slow on the keyboard again!

  • In the 'paint', how can I reverse the image of a drawing: I would like a black background with white lines.

    I have a few line drawings for which I would like to return to the background and colors of drawing. I need assistance browsing through the steps, using the tools of "painting".

    Original response

    I don't know that you can do in painting.

    But you can do it in Paint.net (free).


    -Goto http://www.getpaint.NET/index.html Download (AV check for reasons of security, but its fine) and install Paint.Net


    There are some downloads on this page, look for:

    Get it now (free download):
    Paint.NET v3.5.10



    Open the images in Paint.Net and pick "Settings" "Invert colors" and it seems to do what you want (I think).


    It will be useful.

    Late EDIT - sorry, bit more tweaking, it seems you can do it in paint.

    1 load the image

    House 2 - Select - Select all

    3 your selected image right-click and click "Invert colors".

    There is also a shortcut keys, just press the keys all at the same time. (Control Shift I have)

  • How to save data from the COM port to file?

    Hi all

    can someone tell me please how to save data from the COM port on file? I transfer 1 byte of serial port... attached is the image of the vi... very basic.

    I would like to save the data in a table... I mean, 1 data--> data--> data tab 2 tab 3rd--> tab

    and so on... can anyone help?


  • How to save an image is faster? spreadsheet or png file?

    Hi, I am currently working on a program to make an image processing. Basically I'm save lots of images without my optical system treatment and be treated thereafter. So I wish I could find the fastest way to deal with image i/o files. currently, I think images of read/write to/from the spreadsheet or using IMAQ vi png files. Does anyone has experience or guess where is the fastest? Or any other even better option? I'll do a little test later. I just want to see what you think.

    Thanks for reading

    Jingyu

    Hi, Jingyu

    Just measure it. Simple benchmark can be created in a few minutes:

    Andrey.

  • is it possible to save an image downloaded from net?

    Hi I need to save an image downloaded from the net? How can I make it possible? is it possible to result in the RecordStore? and then use it later when we want?

    am in a difficult deadline please help me!

    Hello

    use code below...

     String Imagedirectory= System.getProperty("fileconn.dir.photos");
    
                try
                {
                    System.out.println("Imageurl="+imageurl.trim());
                    HttpConnection ImagehttpConn = (HttpConnection)Connector.open(imageurl);//,Connector.READ_WRITE, true);
                    ImagehttpConn.setRequestMethod(HttpConnection.POST);
                //  ImagehttpConn.setRequestProperty("Content-Type", "Image/jpeg");
    
                    int status= ImagehttpConn.getResponseCode();
    
                    if(status== HttpConnection.HTTP_OK)
                    {
    
                        is = ImagehttpConn.openDataInputStream();
    
                        StringBuffer Imagedata=new StringBuffer();
                         int chr;
    
                            while ((chr = is.read()) != -1)
                            {
                                Imagedata.append((char) chr);
                            }
                            System.out.println("Imagedirectory"+Imagedirectory+imagename);
                            writeFile(Imagedata.toString().getBytes(),Imagedirectory+imagename);
                        }
    
                    if(is!= null)
                    is.close();
                     if(ImagehttpConn!=null)
                         ImagehttpConn.close();     
    
                }
                catch (IOException e)
                   {
                    Dialog.alert("IOException2");
    
                } 
    
    and this for write the image //
    
    private void writeFile(byte[] data, String fileName)
          {
                FileConnection fconn = null;
                try {
                        fconn = (FileConnection) Connector.open(fileName,
                                        Connector.READ_WRITE);
                } catch (IOException e) {
                        System.out.print("Error opening file");
                }
    
                if (fconn.exists())
                        try {
                                fconn.delete();
                        } catch (IOException e) {
                                System.out.print("Error deleting file");
                        }
                try {
                        fconn.create();
                } catch (IOException e) {
                        System.out.print("Error creating file");
                }
                OutputStream out = null;
                try {
                        out = fconn.openOutputStream();
                } catch (IOException e) {
                        System.out.print("Error opening output stream");
                }
    
                try {
                        out.write(data);
                } catch (IOException e) {
                        System.out.print("Error writing to output stream");
                }
    
                try {
                        fconn.close();
                } catch (IOException e) {
                        System.out.print("Error closing file");
                }
            }
    

Maybe you are looking for

  • New e-mail notifications does not.

    In recent weeks I get no alerts, tray icon or the same sounds so I haven't changed any settings. I have been using Thunderbird for years and this machine for over a year, and yet I've had no problems until recently. I looked through the boards and th

  • Impossible to download the mkv online

    I went to a website to download a video file mkv recently, but there is an error indicating that the video file no is not corrupt and unable to play.i have downloaded via the website using firefox for the past few weeks until recently, it has become

  • 42RL833 - latest Firmware installed and cannot access the YouTube app

    I have 42RL833 Toshiba which is updated to the latest firmware, however I still cannot access the application on my YouTube. I get an error saying that Youtube XL is no longer supported. What can I do to fix this?

  • Satellite P200 - after the BIOS update I can't start the machine

    After the BIOS update I can't boot the laptop because the system doesn't recognize the relecommunicarions password. Before updating the password is 0000.After when I try to set the password incorrect password start apeeras

  • NI MAX with USB devices access violation

    I found a lot of messages about access violation, but most of them are about LabView and not MAX OR, as is the case here. I get an access violation error (0xC0000005 at PPC = 0x106399AE) whenever I try to create a new task of MAX OR by selecting a US