IMAQdx Grab changing my images from 16 bit to 8 bit?

I have a labview application that I am trying to use with 16 bit images.  It is currently running and working with 8 bit images.  I though that if I changed the image type from 8 bit to 16 bit and changed the settings on my camera from 8 bit to 1 using MAX that the program would run the same but with 16 bit images instead.  However, even when I do this the camera only captures 8 bit images and then the application fails because of an incompatible image type error because all the settings are set to 16 bit images.  I set a few probes and realized that very early in my application all my images are 8 bit even when the camera is set to a 16 bit setting.  Also the resolution of my images is different than what the camera is set to.  I think that the culprit is IMAQdx Grab because I was reading in the help that if the image type does not match the video format of the camera then IMAQdx Grab changes the image type to a suitable format.  How can I make it so IMAQdx Grab wont change the image type?  I am fairly new with LabView so this might be something simple or not.  Thank you.

Hi Optical Intern,
It sound to me that you are having problems with getting the camera file to do what you want.  My guess is that you are not saving the attributes in Measurement and Automation (MAX) when you change them.  If you are saving them then I would try and set the attributes programmatically in your VI.  This should force it to what you want within the program.  Let me know how it goes.
Adam H
National Instruments
Applications Engineer

Similar Messages

  • Change loading image from skinning

    Hi,
    I want to change the default loading image to my custom image. There are couple of style class availabe.
    af|document::splash-screen,
    af|document::splash-screen-cell
    af|document::splash-screen-content
    af|document::splash-screen-icon
    af|document::splash-screen-message
    Can someone tell me which style class to use to change loading image?
    Thanks,
    $N
    Edited by: Saravanakumar Nanjappan on 4-May-2011 6:58 AM

    change this entry for the skins. the following snippet is from fusion-desktop.css skin styling
    /* Splash screen icon */
    af|document::splash-screen-icon {
    content: url(/afr/ss.gif);
    width: 43px;
    height: 48px;
    vertical-align: middle;
    }

  • How to create an Average Image from Gray Scale (8 bits) JPEG Images

    I�m trying to create a mean image from 9 JPEG Images, but this mean image has lots of "noise", is distorced, and doesnt�resemble at all the original ones.
    I need this mean image so I�ll correlate each of the original ones to find out the best image I�m going to choose ussing NCC (normalized cross correlation coeficient).
    When I use setRGB(x,y,rgb), it returns diferent "images" according to the number of zeros, for ex.: rgb = 028028028 is different from 28028028 and from 282828. I can�t find a way to work it out.
    My algorithm is the folowing:
            File f;
            double [] [] pixels = null;
            Color [] [] tempPixel = null;
            Integer [] [] byte0 = null;
            Integer [] [] byte1 = null;
            Integer [] [] byte2 = null;
            Integer [] [] byte3 = null;
         Integer [] [] tempPixels = null;
            mean = null;
            int w,h;
            fileNames = new String[numFrames];
            for (int i=1; i<numFrames; i++){
                fileName = path + "Frame#" + i + ".jpg";
                fileNames[i-1] = fileName;
            // just for getting width, height, for configuring pixels array and
            // buffered images - mean & best.
            fileName = path + "Frame#8.jpg";
            f= new File(fileName);
            try{
                temp = ImageIO.read(f);
            }catch(IOException io){ return false;}
            w = temp.getWidth();
            h = temp.getHeight();
            mean = new BufferedImage(w, h, BufferedImage.TYPE_BYTE_GRAY);
         pixels = new double [w][h];
            byte0 = new Integer [w][h];
            byte1 = new Integer [w][h];
            byte2 = new Integer [w][h];
            byte3 = new Integer [w][h];
            tempPixel = new Color[w][h];
              tempPixels = new Integer[w][h];
            f=null; temp = null;
            //reset pixels values.
            for(int x = 0; x < w; x++){
                for(int y = 0; y < h; y++){
                    byte0[x][y] =0;
                    byte1[x][y]=0;
                    byte2[x][y]=0;
                    byte3[x][y] = 0;
                    pixels[x][y] = 0;
            // read each file (image), and according to W & H and collects the
            // pixels values.
            for(int j=0; j<numFrames-1; j++) {
                f = new File(fileNames[j]);
                try{
                    temp = ImageIO.read(f);
                }catch(IOException io){ return false;}
                if(temp!=null)
                    for(int x=0 ; x< temp.getWidth(); x++){
                    for(int y=0; y<temp.getHeight(); y++){
                        tempPixel[x][y] = new Color(temp.getRGB(x,y));
                  pixels[x][y] = pixels[x][y] + temp.getRGB(x,y) / 16581375;
                        //BLUE
                        byte0[x][y] = byte0[x][y] + (tempPixel[x][y].getBlue());//tempPixel[x][y].getBlue(); //& 0xff;
                        //GREEN
                        byte1[x][y] = byte1[x][y] + (tempPixel[x][y].getGreen());// >>8 & 0xff;
                        //RED
                        byte2[x][y] = byte2[x][y] + (tempPixel[x][y].getRed()); //>>16 & 0xff;
                        //ALPHA
                        byte3[x][y] = byte3[x][y] + (tempPixel[x][y].getAlpha()); //>>24 & 0xff;
                f=null;
            }//end of loop for j<numFrames
            String t0, t1, t2, t3;
            for(int x=0 ; x< temp.getWidth(); x++){
                for(int y=0; y< temp.getHeight(); y++){
                     byte0[x][y] = byte0[x][y] / numFrames;
                    if((byte0[x][y])<10)
                             t0= "0" + byte0[x][y].toString();
                    //else if((byte0[x][y])>=10 & ((byte0[x][y])<100))
                    //    t0 = "0" + byte0[x][y].toString();
                    else
                        t0 = byte0[x][y].toString();
                    byte1[x][y] = byte1[x][y] / numFrames;
                    if((byte1[x][y])<10)
                             t1=  "0" + byte1[x][y].toString();
                    //else if((byte1[x][y])>=10 & ((byte1[x][y])<100))
                    //    t1= "0" + byte1[x][y].toString();
                    else
                        t1 = byte1[x][y].toString();
                    byte2[x][y] = byte2[x][y] / numFrames;
                    if((byte2[x][y])<10)
                             t2= "0" + byte2[x][y].toString();
                    //else if((byte2[x][y])>=10 & ((byte2[x][y])<100))
                    //    t2 = "0" + byte2[x][y].toString();
                    else
                        t2 = byte2[x][y].toString();
                    byte3[x][y] = byte3[x][y] / numFrames;
                    if((byte1[x][y])<10)
                        t3="0" + byte3[x][y].toString();
                    else
                        t3 = byte3[x][y].toString();
                        pixels[x][y] = (pixels[x][y]/numFrames) * 16581375;
                    try{
                        String rgbs = t2+t1+t0;
                        Integer rgb = Integer.valueOf(rgbs);
                              //System.out.println("Valor do rgb: " +rgb);
                        mean.setRGB(x,y,(int)pixels[x][y]);
                    }catch(NumberFormatException nfe){
                        System.out.println("ERROR: Integer to STRING: "  + nfe);
                        return false;
                    }// end of catch

    It�s ok, I�ve already found the solution.
    Thanks.

  • Making 3channel 32 bit images from 1 channel 8 bit images ( channel combining)

    Hi guys
    Although I have a simple problem, i could not solve it yet.
    I am tring to combine opencv and labview by using .dll.I succesfully process and read  8bit images from opencv to display on labview as a 8bit images.
    My problem encounters here. When i try to process 3 different 8bit images in opencv and display them as a single 3 channel RGB image, labview can not read image properly.
    I also think that can I combine these 3 different 8bit images in labview not in opencv? is there any .vi that can merge 3 8bit images and produces single 32bit RGB image?
    Thanks
    Baris Togrul
    I am sending my .vi,my dll. and my opencv function.it may give a idea. 
    IBO2_API int Convolution_OpenCV_NI (char* LVImagePtrSrc, int LVLineWidthSrc,
    char* LVImagePtrDst, int LVLineWidthDst,
    int LVWidth, int LVHeight)
    IplImage *CVImageSrc, *CVImageDst;
    //Create OpenCV headers and set pointers/geometry from LabVIEW:
    CVImagesrc=cvCreateImage( cvSize(LVWidth, LVHeight), 8, 4);
    CVImageSrc->imageData = LVImagePtrSrc;
    CVImageSrc->widthStep = LVLineWidthSrc;
    CVImageDst = cvCreateImage( cvSize(LVWidth, LVHeight), 8, 4);
    CVImageDst->imageData = LVImagePtrDst;
    CVImageDst->widthStep = LVLineWidthDst;
    //Create convolution kernel:
    cvSmooth(CVImageSrc,CVImageDst,CV_BLUR,3,3,0,0);
    return 0;
     by the way I am using opencv 2.1
    Attachments:
    opencv-labview.zip ‏22 KB

    Is this what you want? I saved it to LV2010.
    It lets you initialize the three planes to different colors and then merges them into a color RGB image.
    Attachments:
    IMAQ RGB planes to RGB image.vi ‏45 KB

  • Using Labview to save image from PCO camera(12 bit images)

    Hello,
     I have labview 8.5 version in my Winxp. I have PCO camera (pixelfly). So far I know that it saves 12 bit images. I used normal save pattern of labviewas png,tiff or jpeg. As .pngit saves the images as 32 bit and as bmp it takes 8 bit images. But the picture quality is not good. I used IMAQ to take single picture and to save it I used IMAQ Write File 2. I used the following mechanism.
    1) IMAQ ImageTo Array--> To unsigned word integer--->IMAQ ArrayToImage--->IMAQ Write File 2---> save it as .png file.
    Please inform where I made the problem. Why the picture is not as like as 12 bit images of PCO Camera.
    Thanks,
    Stuttgart University,Germany.

    IMAQ Create.vi supports Grayscale(I16) and RGB (U64). Both should be suitable for 12Bit Greyscale.
    Documentation of "IMAG Write File 2.vi" says:
    IMAQ Write TIFF File 2
    Writes an image to a file in TIFF format.
    Note  16-bit monochrome images and 64-bit RGB images are nonstandard extensions of the TIFF standard. Most third-party applications cannot read 16-bit monochrome or 64-bit RGB TIFF files. For compatibility with most applications, write 16-bit monochrome images or 64-bit RGB images into PNG files.
    Best regards
    chris
    CL(A)Dly bending G-Force with LabVIEW
    famous last words: "oh my god, it is full of stars!"

  • Change an image from drop down menu

    I am trying to build a mobile contact form for my company.  I want to add a selection for "Car", "SUV", and "Truck" to later do image mapping to make it easier for my customer to indicate the damaged area.  I want to do this for my regular site also, but once I learn the steps I will do that later.  Anyways this is as far as I have gotten:
    http://www.paintngoinc.com/contactmobile2.html
    I have dreamweaver CS5.5 but built that using the codiqa wysiwyg builder on http://jquerymobile.com/
    A little about my web building skills, consider me to be an amateur.

    Change the path and image to suit in the following
    <!DOCTYPE html>
    <html>
    <head>
    <title>Untitled</title>
    </head>
    <body>
    <select name="image" id="image" class="inputbox" size="1">
       <option value=""> - Select Image - </option>
       <option value="image1.jpg">image1.jpg</option>
       <option value="image2.jpg">image2.jpg</option>
       <option value="image3.jpg">image3.jpg</option>
    </select>
    <div id="imagePreview">
       displays image here
    </div>
    <script src="//ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>
    <script>
    $(document).ready(function() {
       $("#image").change(function() {
         $("#imagePreview").empty();
         if ( $("#image").val()!="" ){
            $("#imagePreview").append("<img src=\"" + $("#image").val()  + "\" />");
         else{
            $("#imagePreview").append("displays image here");
    </script>
    </body>
    </html>
    Gramps

  • Change in images from RAW to Editor

    Dear community,
    I open my Raw pictures in Photoshop Raw and make adjustments.  At this point the images are sharp, some pin sharp.  I then open the images in Editor to make other adjustments.  When the image opens I either have to zoom in or out to get the sharpness back.  Sometimes it is further than "fill the screen" and the consequence is that the composition is changed.  The pictures do become sharp again but they are not the pictures I wanted.  Am I just being stupid or is there an explanation?
    I would be grateful for any advice on this issue.
    Andrew

    Hi again Sarika,
    I think I've got it.
    1. Open in Camera Raw.
    2. Make adjustments
    3. Save image
    4. Open (comes up in Camera Raw again) and "open Image" into Editor
    5. Make adjustments in editor
    6. Save
    I have been making adjustments in Camera Raw and then, before saving it, have opened the image in Editor.  This has possibly caused my problem.  Do you think I'm right?
    Andrew

  • How do i change an image from 4:3 to 3:4

    I'm trying to take a portrait image and make it into a landscape image.
    If I put the 3:4 ratio in the crop custom it throws back the 4:3 at me.
    Any ideas or am I just being daft?
    Andy

    While the crop tool is active, you can "rotate" the crop orientation from menu Settings / Rotate Crop Aspect (shortcut key X)

  • Can i change my visio from 64 to 32 bit without having to buy it again.

    Hello my name is mike and i draw wiring harnesses for race cars and many other applications. Tyco electronics has an add in that is used by many companies to produce diagrams for harness construction. it will not work with 64 bit visio. Is there a way to
    run my visio as 32 bit or am i stuck buying the 32 bit version. 
    thanks for any help and have a good day 
    Mike Byrd

    Hi
    A 32 bit version product key cannot be used for 64 bit product. You need to purchase 32-bit license. However you can temporarily use a 64 bit trial using the instructions in the blog here:
    http://blogs.office.com/2013/10/07/get-started-quickly-with-the-visio-2013-trial/
    Thanks
    Ayushi

  • How can i change the image from a comand button

    i thought it works whit the folowing coden
    <h:commandButton id="but1"
    image="image1.gif"
    onmouseover="document.getElementById(\"but1\").image=\"image2.gif\""/>
    but is dont work
    is this the righet way, or i'm complite wrong
    can somebody help

    Use the folowing:onmouseover="this.src='images2.gif'"Good luck with the relative path to the image :-)

  • How can I change an image from .pdf to .jpg

    I need to reverse the file in .pdf to it's original .jpg Guys please advise.
    Thanks
    Jose

    http://osxdaily.com/2011/12/13/convert-a-pdf-to-jpg-with-preview-in-mac-os-x/

  • How to change an image size from MB to KB

    Okay I am at a loss how to change an image from 6.8MB to 290KB or at least in the KB's so we can keep from getting the file is too large message from where we want it to go to. I am at a loss when I move the inches smaller the size is still too small. Daughter is trying to move a picture to a site called my space and she keeps getting a message that the file is too large...

    Susan,
    Please see my posting to
    http://www.adobeforums.com/cgi-bin/webx/.3bc17071/4
    Mark

  • Need some help trying to generate thumbnail images from large Jpegs

    Hello,
    I have some ActionScript 3.0 code, created with Flex that
    will load a large JPEG image (say 3000x2000 pixels) that I'm trying
    to create a 100 pixel thumbnail. I have the code working where I
    generate the thumbnail, but it's not maintaining the aspect ratio
    of the original image. It's making it square, filling in white for
    the part that doesn't fit.
    I've tried just setting the height or width of the new
    image, but that doesnt render well, either.
    To see what I'm talking about, I made a screen shot, showing
    the before image, and the rendered as thumbnail image:
    http://www.flickr.com/photos/taude/533544558/.
    Now, there's a few things important to note. I'm saving the
    thumbnail off as a JPEG. As you can see in my sample application,
    the original renders fine with the proper aspect ratio, it's when
    I'm copying the bytes off the bitmapdata object, where I need to
    specify a width and height, that the trouble starts. I've also
    tried using .contentHeight and .contentWidth and some division to
    manually specify a new bitmapdatasize, but these values seem to
    always have NaN.
    private function makeThumbnail():void{
    // create a thumbnail of 100x100 pixels of a large file
    // What I want to create is a a thumbnail with the longest
    size of the aspect
    // ratio to be 100 pixels.
    var img:Image = new Image();
    //Add this event listener because we cant copy the
    BitmapData from an
    /// image until it is loaded.
    img.addEventListener(FlexEvent.UPDATE_COMPLETE,
    imageLoaded);
    img.width=100;
    img.height=100;
    img.scaleContent=true;
    img.visible = true;
    // This is the image we want to make a thumbnail of.
    img.load("file:///C:/T5.jpg");
    img.id = "testImage";
    this.addChildAt(img, 0);
    private function imageLoaded(event:Event):void
    // Grab the bitmap image from the Input Image and
    var bmd:BitmapData =
    getBitmapDataFromUIComponent(UIComponent(event.target));
    //Render the new thumbnail in the UI to see what it looks
    theImage.source = new Bitmap(bmd); //new Bitmap(bmd);
    public static function
    getBitmapDataFromUIComponent(component:UIComponent):BitmapData
    var bmd:BitmapData = new
    BitmapData(component.width,component.height );
    bmd.draw(component);
    return bmd;

    Dev is 10gR2 and Prod is earlier version of Oracle, 10gR1.
    The schema (or table(s)) export file created by Oracle Database Control in Oracle 10gR2 is not importable into 10gR1, by default.
    Workaround.
    Use the Schema (table(s) export wizard of in the Maintenance section
    of the Oracle Database Control in ver 10R2,
    but when you get to the end of the wizard (I recall Step 5),
    show the data pump export source PL/SQL code, cut and past to editor,
    and find the variable where you can set the Oracle database version
    to your prod database version,
    then run the script from the SQL Plus prompt in 10gR2 dev,
    and this creates an Oracle 10gR1 compatible data export file.
    Then go to Prod and run the schema (table(s)) import data wizard,
    and import the export file. You will have to option to move the data
    to another schema or tablespace if required.
    Just to not run into troubles, I use the same schema and tablespace name
    in both dev and prod.
    the variable you must modify in the 10gR2 datapump export script looks like
    h1 := dbms_datapump.open (operation => 'EXPORT', job_mode => 'SCHEMA', job_name => 'ExportTableToProdJob', version => 'COMPATIBLE');
    and you must change manually to
    h1 := dbms_datapump.open (operation => 'EXPORT', job_mode => 'SCHEMA', job_name => 'ExportTableToProdJob', version => '10.1.0.1');
    This creates a 10g1.0.1 or later compatible export data file.
    You must have read/write privileges to the folder were the export data file will be created, and imported from. (Oracle Directory Object)

  • When I put images from my digital camera to iphoto they register as jpegs with only 72 dpi. How can I get them to be 300dpi?

    I have a mac osx 10.6.8. iphoto 11 version 9.2.3.
    My camera is a Canon Power Shot SX700HS.
    I want to send high res. photos to a company who require 700dpi.
    When I attach my camera to my mac they turn into jpgs and then
    when I try to send them by email they come in at 72dpi.
    Can anyone advise me on the best way to send these photos?

    I notice that images on Image Capture come in at 180dpi.
    180 dpi isn't terrible, but defined edges that aren't perfectly vertical or horizontal will show jaggy pixel stepping. Not real obvious, but you'd see it. Overall, the picture would have a slightly pixelated look at that resolution.
    The maximum size picture your camera can take is 4608 x 3456 pixels. If you set the resolution to 300 dpi, that makes it 11.52" x 15.36". So without scaling/resampling the image up to keep it at the vendor required output resolution of 300 dpi to get larger sizes than that, your camera is best for 11" x 14" images or smaller.
    Whatever image editor you use to size your images, you need to finalize them at 300 dpi, which is what your service requires. If you were to send them for example an image sized to 16"x20" at 120 dpi, what their system will automatically do is scale the image to 300 dpi before printing it, which will cause pretty noticeable softening and pixelation on the final print.
    For that camera, it makes more sense that it comes off the camera as 180 dpi. That must have been Mail that was scaling them down to 72 dpi what added as an attachment.
    So how do you change the resolution? One way is with Preview. Here I'm working with a test image to show the difference in what happens depending on how you size it. I've purposely changed this image from it's original 300 dpi setting to 120.
    Open the image and choose Tools > Adjust Size.
    This image is 1816 × 1419 pixels. At 120 dpi, that makes it 15.13" x 11.83". If I reset the resolution to 300 dpi, not resample, the size changes to 6.05" x 4.73". It does that because I turned Resample image off. When you do that, the image doesn't physically change one bit. It still has the same number of pixels in the height and width it started with. All you've done in such a case is tell the output device to use 300 of the pixels per inch instead of 120. Since you're using more of the same original number of pixels in less space, it becomes effectively smaller.
    Now let's say I want this image to be output large enough for an 11" x 14" print, but also need it to be 300 dpi for the vendor. To do that, I need to resample it.
    There isn't enough pixel information in the image to do that without resampling up. Or said another way, adding more pixels than existed to begin with. Notice the scale percentage is 232.6, which directly translates to adding over twice as many pixels to the image (232.6 percent) as it started with in order to achieve 300 dpi at 11" x 14". Notice too of course that the size of the file will go from 7.8 MB to 55.7 MB (sizes are normally displayed as how it would be for an uncompressed format such as TIFF). The image will now have 4223 x 3300 pixels instead of its original 1816 × 1419. Such large resampling going up also makes most images soft and pixelated looking. Though since CS6, Adobe drastically changed the scaling algorithm. Larger up-sampling of images is much better than it used to be. You can scale most images up quite a ways before they start looking really bad.
    I know this is a lot. Hopefully, not too confusing.

  • If you change the image mode of this image from 8-bit RGB image to Grayscale mode while in PSCS – what will the new Pixel Count be?

    If you change the image mode of this image from 8-bit RGB image to Grayscale
    mode while in PSCS – what will the new Pixel Count be?

    If you mean by Pixel count the number of pixels, this will not change. The image will have the same size thus the same number of pixels.

Maybe you are looking for