Proper picture display for 16 bits/ 24 bits image

Hi,
I want to use 24 bits bits display for data that is saved as 8 bits. I also want to display image which is stored as 16 bits.
Please open the attached word document, if you are willing to help me.
This document would contain the detail of what I am trying to do.
I have also attached two codes; "PD_Display_From_Spreadsheet" is the main vi and the other one is subvie.
Thanks,
DK
Attachments:
Display Coord to Motor Coord_XY.vi ‏47 KB
Labview Help.doc ‏52 KB
PD_Display_From_Spreadsheet.vi ‏186 KB

Ok, here is what I am seeing.  You have a file that contains an image.  The data in that file seems to be 10-bit greyscale format (from the data and what you have described it as).  The image is approximatily 100x300 pixels in size.
Now, some background.  The graphic VIs expect that color data is going to be in the format of 0x00RRGGBB (in hex) in a 32-bit word.  Each color gets 8 bits of that word and there are 8 bits unused.
If you try to display your image which fills 0x00000XXX you will get a mostly blue/black image (which you have already observed).  If you copy the XX data up to the other red and green bits you will get a grey scale image (actually a color image with only grey pixels).  See the attached image.  The down side of this is that you will lose data because you have a 10-bit image (greyscale).  It may be benifical to copy the most significant bits of the image (i.e. bits 9:2, not 7:0).  Using the flatten pixmap VI and using the 8-bit option will also loose the extra 2 bits.
If this doesn't satisfy you,  you may have to look into finding a different way to display this 10-bit greyscale image.  Of the top of my head I know that the Visions software would do this quick and easily.
Hope this helps
Message Edited by paulmw on 11-14-2006 07:46 AM
Attachments:
grVScl.JPG ‏21 KB

Similar Messages

  • How can I use IMGPLOT to display a 12-bit image in false color?

    I want to use IMGPLOT to display a 12-bit image in false color employing VC++ 7.0 . Actually it is stilla grey level. The only difference is to customize a new palette. I guess Ni should have a API for me change the palette. I donot want to convert my image into color image since its processing speed is slow.
    Any people has the silimar experience to do this?
    Thanks a lot in advance!
    zmt

    Hi Bruce Ammons,
    Thank you very much for your answer. I still need your clear instruction.
    I can directly display 12 bit image in 256 grey level just using IMGPLOT function without any mapping operation. That is because IMGPLOT directly supports to draw a 12 bit image through IMGPLOT_MONO_12 flag.
    IMGPLOT prototype is imgPlot(GUIHNDL window, void* buffer, uInt32 leftBufOffset, uInt32 topBufOffset, uInt32 xsize, uInt32 ysize, uInt32 xpos, uInt32 ypos, uInt32 flags=IMGPLOT_MONO_12 ).
    Hence I just need a C++ function to change the palette. I believe that IMGPLOT automatically does the 12bit to 8 bit mapping for me. What I need to do is just to change the palette. The question is which NI'S API can change the palette and work well with IMGPLOT. Or I have
    to use IMGPLOTDC and change the palette in the selected DC by myself.
    Your great help is much appreicated!
    zmt

  • How to convert for 1 bit image

    dir sir;
    i want to make a programe by it i want to upload image real image and then it converted it for 1 bit image ;
    can i use java to do that?
    and if soo what method and package and function helps me to do that .
    if you can provide me with simple code i will be thankfull.
    beast regards.

    Try using the IMAQ Cast Image function under Motion & Vision>>Vision Utilities>>Image Management>>IMAQ Cast Image.
    Regards,
    Steve

  • Layer won't unlock for 32 bit image in CS4

    I'm running Photoshop CS4 11.0.1 on Windows XP SP3. When I generate a 32 bit image from FILE > AUTOMATE > MERGE TO HDR, the resulting image has a single layer that cannot be unlocked. Consequently, when converting to 16 bit, I can't manually adjust the sliders in the Toning Curve & Histogram area of the HDR Conversion dialog box. What am I missing?

    Ah, that's why I've been pulling my hair out! Thanks for preventing me from losing any more, Chris. I'm not using Extended, so that explains it. I did find the sliders, and they were helpful.

  • What type of BufferedImage is needed for 24 bit image data

    Hello, i am using an image processing api, i have a 24 bit image data, i want to form a BufferedImage and set its pixel values with my data such as
    BufferedImage image = new BufferedImage(w, h, what type?);
    WritableRaster raster = image.getRaster();
    int[] imgpixels = ((DataBufferInt) raster.getDataBuffer()).getData();
    for (int i = 0; i < image.getHeight() * image.getWidth(); i++)
    imgpixels[i] = ((myArray).getRed()) << 16 | ((myArray[i]).getGreen()) << 8 | ((myArray[i]).getBlue());
    Then i will save the Buf. image to file as png. So what type of BufferedImage do i need?
    Regards.

    what is the reason when i read a 24 bit png image...it shows the type as 0 (TYPE_CUSTOM) ?
    From the the Field Detail section for the TYPE_CUSTOM field in BufferedImage: the image type is not recognized.
    You could make a new BufferedImage with TYPE_INT_RGB, or TYPE_INT_ARGB if the image has or will have transparent pixels, and copy the TYPE_CUSTOM image into it. Then you can manipulate/process the new image.

  • RGB statistics for 32-bit image

    Hi friends, I am trying to get the RGB information of an image.I created a labview VI using vision assistant for this.
    But the issue is that, although it draws histogram for all the three colors, it displays "Statistics"
    (i.e. max min value,standard deviation etc.) for only red color and not for blue and green too.
    What should i do in order to get statistics for all the three colors.
    Best Wishes,
    Automator
    Solved!
    Go to Solution.

    Hi,
    Did you just drop an express VI created from vision assistant or did you create the VI yourself from the vision palette?
    I suggest you do the latter and use this function :
    If you have problems doing this, post the VI you came up with, it will be easier for people to help you
    Hope this helps
    When my feet touch the ground each morning the devil thinks "bloody hell... He's up again!"

  • How to display 16 bit image in VBAI custom inspection interface?

    I'm working with 16 bit grey scale images in VBAI. In configuration mode, there is an option on how to handle 16 bit display mapping, and it works very well to preview the effect of the different display possibilities. However, those settings do not carry over into inspection mode. In the custom inspection interface, if I right click on the image display area it also has an option for 16 bit image mapping, with a default value of "Full Dynamic". It allows me to choose something else, but if I save the custom interface and reopen it, the value always reverts back to "Full Dynamic" For the time being, I've worked around it by adding a vision assistant step to convert the 16 bit image to 8 bit, but I would really prefer to take this step out. Are there any tricks to getting the image mapping setting to work properly within the custom interface? Thanks, Jason

    I would not expect that to happen. I will investigate. In the mean time if you have LabVIEW you can export the custom ui and edit the block diagram in LabVIEW. Then you can add a property node for the image display control to set the 16 bit display mapping when the vi runs. Make sure to reimport this updated ui and edit the step that updates the custom ui to run the code when the step executes. I'll let you know what I find out about why it reverts when you try to set it from the editor in VBAI.
    Thanks
    Brad

  • I want to convert pictures to 1 bit image

    dir sir;
    i want to make a programe by it i want to upload image real image and then it converted it for 1 bit image ;
    can i use java to do that?
    and if soo what method and package and function helps me to do that .
    if you can provide me with simple code i will be thankfull.
    beast regards.

    Hi,
    if you have vision, you could use the functin IMAQ Image to Array to have a 2D array of the pixel values.
    You can then compare pixel by pixel; if your images come from a camera, I would recommend to set a treshold of acceptance.
    This is a time consuming solution anyway.
    Alternative methods:
    1) Make a subtraction of the two images, the resulting image will be the difference of them
    2 ) Use IMAQ LogDiff function (operators palette)
    3) Calculate the histogram of both image and compare the histogram reports
    Good luck,
    Alberto

  • Exposure adjustment layer for 32 bit HDR images

    I know I can adjust exposure in Camera Raw. I can use the adjustment brush to make local exposure adjustments in ACR too. Is it possible to make exposure adjustments to 32 bit images in Photoshop? My attempts at using the exposure adjustment layer weren't successful. Although I'm told "exposure" was designed for 32bit, the adjustment layer doesn't seem to be to access and manipulate any of the exposure data thats I know is in the file, but is not visible. It would be should be so useful, but from what I gather the exposure adjustment is totally useless for 32 bit images. Are I doing something wrong? 

    Thanks for the reply. I'm struggling to explain so i'll try and illustrate instead. Basically the Exposure adjustment layer does not work on the 32 bit file in the same way that ACR does. ACR changes exposure in the predictable way it should (like a raw file). The Exposure adjustment layer in photoshop doesn't work the same way. Or at all?

  • Unsigned 16-Bit Image Brightness Contrast

    Hello, Everyone
    I have Unsigned 16-Bit Image , I want to change the brightness & Contrast of this Image.
    I dont found any VI in LabVIEW to do that with this format (there is BCG but only for 8-Bit).
    I found this link for that issue:Adjusting Brightness and Contrast for 16-Bit Image
    So, I used the Operators function to do that. but i dont know if  the order of that functions is sensitive or NOT. see Picture
    and did i realy need to use Subtract operators and Divide operators .
    Best wishes
    Alzhrani

    Hi Al-Zahrani,
    I don't believe that it matters whether you do brightness or contrast first. You can verify this by looking at a picture using both methods you showed below. However, when I did this, I did not see much of a difference and believe that you can place either brightness or contrast first. Also, you will need to include the math functions in order to perform the image processing you are trying to do. Hope this helps!
    Mychal F
    Applications Engineer
    National Instruments

  • Understanding 32 bits image mode

    Hi
    i'm developping a plugin in which higher image quality means higher sound quality.
    though when i'm in mode 32 bits, colors don't behave the same way as in 8 bits or 16 bits.
    for example, in 8 bits i have
    R = 128;
    g = 255;
    b = 128;
    it will not be the same color as in 32 bits:
    R = 0.5;
    G = 1;
    B = 0.5;
    (in 32 bits, is it much brighter)
    how come ?
    how do i do to use 32 bits mode with the same color scheme as in 8 or 16 bits?
    thanks
    Jeff

    thank you
    8 bits and 16 bits images have a gamma 1.0, this is in 32 bits that the gamma is higher.
    How do i set gamma = 1 for 32 bits images? I want 8, 16 and 32 bits images behave the same.
    thanks
    Jeff

  • Blending 32-bit images into panorama clips brightness in CC (Windows)

    Hi all,
    I'm running Photoshop CC on Windows and am trying to stitch a HDR panorama.  I have several 32-bit HDRI images, and I can open them individually and see that the full range of brightness is present by reducing the exposure and seeing the detail come up in the bright areas.
    However when I try to run them through Photomerge, I end up with an image that has the brightness clipped - reducing the exposure no longer brings out the highlights in the bright areas.
    The culprit seems to be the auto-blending part of the process.
    How can I blend 32-bit images to end up with a panorama that has the same dynamic range as the original images?  There doesn't seem to be much point having panorama support for 32-bit images if it clips the dynamic range.  Am I doing something wrong?
    Thanks in advance
          -Matthew

    It's been out for months.
    You're using CC, not CC 2014 -- it may already be installed, and you're just launching the wrong version.

  • AVI creation with 8-bit Image Type specified

    I am NOT able to create an AVI using 8-bit Image Type (specified for IMAQ create)
    I am able to create AVI using RGB Image Type (specified for IMAQ create)
    The help for IMAQ AVI Write Frame states that "This image must be either an 8-bit or RGB image."
    Why does this not work for 8-bit image type. Using LV71, Vision7.
    Thanks,
    Don

    Here is basic code including resulting AVI...Don
    Attachments:
    test.avi ‏195 KB
    test_8bit_avi.llb ‏212 KB

  • Lenovo c260 AIO - Display Drivers for 32-bit Windows 7

    Hi,
    I am using a Lenovo c260 AIO.
    I purchased it without any OS i.e. DOS.
    I installed Win 7 32-bit OS.
    Now the display isn't working fine. 
    When I try to access other facilities like YouCam or play a game, it asks me to install VGA display driver.
    I tried searching on Lenovo site, but couldn't find a display driver for 32- bit Windows 7.
    Please help.

    i think your one has the intel drivers try these https://downloadcenter.intel.com/Detail_Desc.aspx?DwnldID=23636
    Thx dave
    yoga 2, lenovo b540
    3 custom gaming pc systems

  • I got a new Mac Pro and I am using my 30 inch cinema display.  It has been flickering grey sometimes and then will stay grey and I have to reboot... this is very annoying..help.  I have reset the pram and that seems to help for a bit but then it starts up

    I got a new Mac Pro and I am using my 30 inch cinema display.  It has been flickering grey sometimes and then will stay grey and lock up my computer and I have to reboot... this is very annoying..help.  I have reset the pram and that seems to help for a bit but then it starts up again...and please don't tell me to check for software updates:)

    I got a new Mac Pro and I am using my 30 inch cinema display.  It has been flickering grey sometimes and then will stay grey and lock up my computer and I have to reboot... this is very annoying..help.  I have reset the pram and that seems to help for a bit but then it starts up again...and please don't tell me to check for software updates:)

Maybe you are looking for

  • F4 help for field in ALV grid control (using ABAP objects)

    Hi All,     I have created a z table ZTAB which is a master table( with single column X). field X should be a input field in ALV Grid through F4 key. I have created searchelp and assigned it to data element of X feild, and in domain level I have assi

  • Found grease on disks after burning DVDs or CDs

    I own a brand new iMAC G5. After burning couple DVDs using the super drive, I found some grease spots on some of the disks. The grease spots had caused the DVDs unusable/unreadable anymore. I called AppleCare, they said they will replace my drive. Gr

  • Cant see the native groups on the forms and reports

    We are migrating 9.3.3 to 11.1.2.1. We recently found the issue after the migration. Even after migrating the users, groups and provisioning using LCM; we cant see the groups in the forms and reports. We did the migration for test environment, but di

  • MAIL: Can send group addresses Bcc

    I have Bcc activated and when I try to put Group addresses in the Bcc area they won't go but immediately go to the "To" area. Can't get Group addresses in "Bcc" address area. Thanks.

  • HT4527 transferring my iTunes library

    I'd like to transfer my iTunes library from an old G4 to a new Macbook Pro. It seems Migration Assistant looks for an ethernet connection to conduct the transfer but my Macbook Pro does not have an ethernet port. Any suggestions?