Results 1 to 9 of 9

Thread: How to acquire 16(12) bits image using Labview?

  1. #1
    Join Date
    Nov 2013
    Posts
    4

    How to acquire 16(12) bits image using Labview?

    Hi Stefan,

    I've been trying to acquire a 16-bits format image (12bits) using labview, but so far not successful.

    I followed the example "IMAQ Image.vi" and set the VideoFormats to Y16 (testVi_block.png), however the property "ImageBitsPerPixel" remains 8 and acquired image is 8-bit as well (testVi_front_U8.png).

    So I did some change to the "IC_Grab_IMAQ.vi" (IC_Grab_IMAQ_blockU16.png), which doesn't seem to ever consider using 16bits, however the output image is just wrong (testVi_front_U16.png).

    thank you,
    Attached Images Attached Images

  2. #2
    Join Date
    Jan 2003
    Location
    Bremen, Germany
    Posts
    4,886

    Re: How to acquire 16(12) bits image using Labview?

    I've been trying to acquire a 16-bits format image (12bits) using labview, but so far not successful.
    I am very sorry, but this is not supported by the IC LabVIEW extension. The IC_Grab*.vi handle Y800 and RGB32 only.

    However, if you want to try, you must disable the OverlayBitmap of IC Imaging Control. This is done by invoking the OverlayBitmapPositionas property node and set it to PATHPOSITION_NONE. If the OverlayBitmap is enabled, the video images will be converted to 8 bits.

    Please refer to
    http://www.imagingcontrol.com/en_US/...apPosition.htm
    Best regards
    Stefan
    IC Imaging Control Support

  3. #3
    Join Date
    Nov 2013
    Posts
    4

    Re: How to acquire 16(12) bits image using Labview?

    Hi Stefan,

    So I set OverlayBitmapPosition to PATHPOSITION_NONE before calling IC_Gab_IMAQ, in which I changed IMAQ Create to U16, but left bpp of IC LabVIEW Extension 2.dll (func IC_LabViewExt_CopyBuffer) to 8. I still couldn't get a proper 16 bit image. It looks like it copied the image buffer but resized and duplicated? If I change the bpp to 16 it shifts to the bottom like the pic posted last time (testVi_front_U16.jpg).

    So if I really want to use Labview, is there a library other than the LabVIEW Extension 2.dll that I can call upon to get the image? What about the IC controll C++ one? Or do I have to program in C++ altogether instead?

    thank you,

    Lei

    PS: the camera is DMK 23U618
    Attached Images Attached Images
    Last edited by njsss; November 12, 2013 at 19:30:52.

  4. #4
    Join Date
    Jan 2003
    Location
    Bremen, Germany
    Posts
    4,886

    Re: How to acquire 16(12) bits image using Labview?

    Hello

    As I already wrote:

    I am very sorry, but this is not supported by the IC LabVIEW extension. The IC_Grab*.vi handle Y800 and RGB32 only.
    Sorry for that. Since I am running out of time due to release phase of products, I can not say, when I will add this to the ActiveX.

    I case, you have the NI IMAQ library, I suggest to use the IMAQ driver instead of the LabVIEW extension. If you have a GigE camera, this is the recommended method.
    Best regards
    Stefan
    IC Imaging Control Support

  5. #5
    Join Date
    Nov 2013
    Posts
    4

    Re: How to acquire 16(12) bits image using Labview?

    Hi Stefan,

    Thank you for your reply, and I really appreciate your time. The NI-MAX, NI-IMAQdx and NI-IMAQ were the first things I tried. However neither options gave me a 16bit image. There are only two VideoModes available, both give RGB formations; and the PixelFormat is read-only (BGRA 8 Packed). This is a USB3.0 camera, which I thought may be the reason that NI-IMAQ didn't support.

    Will the c++ package also has this type of problem? I'm planning to switch over.

    thanks,

    Lei
    Attached Images Attached Images
    Last edited by njsss; November 13, 2013 at 20:53:44.

  6. #6
    Join Date
    Jan 2003
    Location
    Bremen, Germany
    Posts
    4,886

    Re: How to acquire 16(12) bits image using Labview?

    Hi Lei,

    DANKE

    This is a USB3.0 camera, which I thought may be the reason that NI-IMAQ didn't support.
    Right.

    Will the c++ package also has this type of problem?
    No.

    (Short answers )
    Best regards
    Stefan
    IC Imaging Control Support

  7. #7
    Join Date
    Mar 2014
    Posts
    2

    Re: How to acquire 16(12) bits image using Labview?

    I've acquired a 16-bits format image (12bits) using labview

    imaq.png

  8. #8
    Join Date
    Mar 2014
    Posts
    2

    Re: How to acquire 16(12) bits image using Labview?

    I've acquired a 16-bits format image (12bits) using labview
    Attachment 1675

  9. #9
    Join Date
    Apr 2014
    Posts
    1

    Re: How to acquire 16(12) bits image using Labview?

    Quote Originally Posted by neo-ti View Post
    I've acquired a 16-bits format image (12bits) using labview

    imaq.png
    I think, that this example does not work too well. I wrote it in the LV and I still have shifted image like njsss (example : testVi_front_U16b.jpg). The difference is - all images are superimposed on each other. Maybe I'm doing something wrong?
    Does anyone have an idea how to solve "problem with 16-bits"Y16.jpg?

Similar Threads

  1. problem acquire memory to my image model, happen flicker
    By Ean.Lee in forum IC Imaging Control C++ Class Library
    Replies: 1
    Last Post: November 7, 2011, 12:21:44
  2. image processing with LAbview
    By dinesh8_10 in forum IC Imaging Control ActiveX
    Replies: 1
    Last Post: July 20, 2006, 08:09:21
  3. LabVIEW: Acquire triggered images from 2 Cameras
    By sitejasshah in forum IC Imaging Control ActiveX
    Replies: 1
    Last Post: May 5, 2006, 14:31:44
  4. labview image processing
    By Gurtej Singh in forum IC Imaging Control ActiveX
    Replies: 0
    Last Post: November 10, 2003, 11:28:17
  5. Image format in LabView
    By Tom in forum IC Imaging Control ActiveX
    Replies: 1
    Last Post: October 9, 2003, 08:03:06

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •