ImgBayerColorDecode of NOR-IMAQ to produce 64-bit RGB images?

According to reference Help feature, imgBayerColorDecode can be called with a void * pointer source and destination, so in principle it should be able to handle Bayer encoded images to 16 bits per pixel, right?

However, when I look at this old net, it seems that it is not possible, because only 32-bit RGB can be taken out. When I look at the "Bayer Color Decode.vi IMAQ" on our system, the dll call is one of:

"int32_t imgBayerColorDecode (int32_t dst, int32_t CBC, lines uint32_t, CLO uint32_t, int32_t dstRowPixels, int32_t srcRowPixels, const uint32_t * redGain, const uint32_t * greenGain, const uint32_t * blueGain, uint8_t bayerPattern, int32_t bitDepth, uint32_t reserved);

But settings can be changed apparently. So my guess is that imgBayerColorDecode can now convert 16 bit Bayer coded images in RGB (A) 48-bit or 64-bit images (+ alpha), but I can't find any mention of this in the page "What's new with NOR-IMAQ".

Can someone from OR Please confirm that it is possible today or is the old NET still valid?

Hi Oliver,.

During the period of SP1 2012, new Bayer decoding support added to the Vision. Bayer functions exported from the DLL IMAQ are discouraged because they don't have any of the new features. The functions are now in the Vision, but I think they do not need a license of the Vision Development Module (they are part of the basic API).

The new functions of Bayer are significantly faster, have many algorithms of quality varying and support the conversion of > 8 bit to RGB64.

imaqBayerToRGB() is what you should look into nivision.h.

Eric

Tags: NI Hardware

Similar Questions

  • Cannot save a big TIFF 16-bit RGB Image in JPEG format

    Hi all

    I use Photoshop CS5 Extended on Windows 7 64 bit (Home Premium).

    I sewed a panorama in Photoshop using the fusion of 19 RAW (Canon 5 d mkII) files in 16-bit. Everything was fine, I saved the image merged under TIFF 16 and worked on it. Panoramic image resolution is approximately 33000 x 4900. Place the flattened selections and active left.

    Once I was happy, I ran the Image processor on it with a watermark action and add the copyright EXIF data. There is no need to say that it cannot save in JPEG format (he performed the action correctly, just stopped to save). Normally, this works very well with other images RGB TIFF 16 I did.

    I tried to save it manually, but at this time, I noticed that the "Save for web" option is grayed out and the dialog box "save under" showed no JPEG options.

    What I did:

    1.) tried to open it with ACR and save it in JPEG format. It worked well

    2.) tried to resize to 20000 x 3600 (more or less) and it worked fine (which means that the option to save it as a JPEG back where it)

    3.) tried to convert it to full-size 8-bit and who did not

    I'm not too bothered because I have the solution of ACR, but it's boring and in the past, I've done more large panoramas with CS4 and I never had this problem before.

    Any ideas?

    The image is nearly 1 GB, so I'll not post...

    Thanks for your help!

    The CAB code has a limit of 64 k according to the width and height of JPEG files.

    The Photoshop code has a 32 KB limit, because of the old code for JPEG.

  • NOR-IMAQ library for the 64 bit version does exist?

    I use PCIe-1429 and NOR-IMAQ 4.1 and programming on VS2005.

    NOR-IMAQ library for the 64 bit version does exist?

    Wooddoll,

    In general, 64-bit import libraries are installed in C:\Program Files (x 86) \National Instruments\Shared\ExternalCompilerSupport\C\Lib64\MSVC\imaq.lib for 64-bit variants.

    The 64 bits real DLL is usually installed in C:\windows\system32\imaq.dll.

    Eric

  • With the help of NOR-IMAQ imgSnap (ANSI C) with Windows 7 x 64

    Hello

    I am trying to make a few acquisition base image using ANSI C to NOR-IMAQ calls (as distributed by the release of November 2009 Vision of OR). I develop on Windows 7 x 64.

    The Installer seems to work very well, but when I do the following call:

    void * theTempBuffer = NULL;

    Int32 theRetVal = imgSnap (mSession, & theTempBuffer);

    I get the following error:

    This 32-bit device works on a 64-bit with more than 3 GB of memory OS physics. This configuration could allocate memory 64-bit that is not supported by the device. To resolve this issue, reduce the amount of physical memory in the system.

    I see that I compile to a target 32-bit or 64-bit. I would have concluded that the PCI-1422, quite simply, is not supported under Windows 7 x 64, but the card (and attached camera) work very well for smacking or grabbing of images when I go to the Measurement & Automation Explorer.

    Thanks for your help.

    Eric, that did the trick. Thank you very much!

  • NOR-IMAQ: The interface passed or the session is invalid

    Hello

    I try to use a USB (thorlabs DCC1240c) camera with the "Grab and save in AVI.vi ' example.

    When I run the file that I had ' NOR-IMAQ: the session or the interface passed is not valid.

    I checked NEITHER MAX and the name of the interface of the camera is cam0 and that's what I entered in the 'Name of the Interface' box in the front panel.

    What is the problem?

    Thanks in advance,

    Gabriel

    -Replace all screws by screws IMAQ IMAQdx.

  • nor-imaq help

    I'm looking the help of labview (v8.5 on Win Vista) for information about the functions that are part of OR-IMAQ of image processing.  I don't understand something useful in help OR when I search the index or search for a keyword (for example, feret, feret length).  Is there something I need to do to install the help files for NOR-IMAQ?  NOR-IMAQ help is separate from the help of labview 'main '?

    Thank you.

    WCR,

    I understand that this isn't the best way, and for that I apologize. My best suggestion would be to use the search for LabVIEW (of screws, no help) then go directly to aid advanced from there. However, you should always know the names of VI, that could be a problem. You can always use NI.com research to see if it can be done with some screws, and then get more info VI from there.

    Again, I am sorry that it is not a very simple way to search all at once, the reason that's not everything in one help it is due to install different files with different toolkits of chm / Add-ons, SO someone with no Add-ons and only basic LabVIEW would not much wrong information.

  • Should I purchase Measurement Studio and NI-IMAQ separately or NOR-Imaq included in measurement studio?


    Hi Vjuno,

    Thank you for your interest in Measurement Studio and NOR-IMAQ. Measurement Studio and NOR-Vision are separate software packages. If you are considering comes to acquire, save and display images from a camera IEEE our NI Vision Acquisition software located on our website (http://sine.ni.com/nips/cds/view/p/lang/en/nid/12892). If you want to set up a system of image analysis then you can buy the Module OR Vision Development, this includes NI Vision Acquisition (http://sine.ni.com/nips/cds/view/p/lang/en/nid/2881).

    Thank you for your interest in our products!

    Eric Reid

  • Image from 16 bits to 8 bits/RGB

    Hi all

    I have been using the clip and save to AVI examples OR but it does not work for me.  My mistake is that my images are 16-bit and the necessary images are either 8 bit/RGB to be converted to avi.

    How would I achieve that?  Please see screenshot.

    Kind regards

    Miika

    After a bit of a Eureka! now, a solution has been found.

    IMAQ Vision module and development as well as other LabVIEW software has not been downloaded.  Downloaded and the vi IMAQ Cast Image (among others) jumped upward and the program now works perfectly.

    Thank you very much!!

  • Convert 8 bit RGB Bayer Image in Monochrome

    I'm looking for a way to perform an edge detect algorithm on the camera sensor image which was released in 8 bit RGB of Bayer (cannot specify the monochrome output sensor).  The image is read on the gray u8 IMAQ camera, but then the edge detect does not work because of the rasterization of bayer.  After the conversion of bayer in a u32, vi of detection errors color image edge by saying the image type is not supported (logic).  I wonder if there is a function that would allow me to take the image RGB U32 and then convert it back into an image in grayscale which has no pixel with the raw data read problems and will work with the edge detection algorithm.

    If there is a function to convert an image IMAQ from color to grayscale so I could make the edge detect would be great (I didn't see one).  I think it would be a common place because many functions run only with images in grayscale.  If a function does not exist, what is the best way to go on the conversion of the image using LabVIEW.  I'm not an image of expertise so I'm not sure of the best way to go about it.

    Thanks for your help.

    Use IMAQ Convolution with a 3 x 3 table.  The elements of the array are numbers that I entered previously.  The convolution function only like arrays of odd sizes so that the image does not move during the convolution.  You can ignore the idea of 2 x 2 - I think it is cleaner.

    So, to summarize:

    1 acquire U8 Bayer image as grayscale image.

    2. apply the filter convolution 3 x 3 to remove artifacts from Bayer.

    3. use the Sobel filter to find the edges.

    4. use IMAQ quantify for the average or STD dev of intensity.  It is a very good measure of the development.

    Now to confuse you even more: you can speed up the extent of the development if necessary by reducing the resolution of the image.  You must insert a step after 2 (or instead of 2) allowing to extract from every other column and row of the image.  The focus indicator always follows the development very well, and treatment is a bit faster.  I used this trick a few years back, but it is perhaps not necessary on modern computers.

    Bruce

  • How could import a 16-bit png image in a table on LabVIEW?

    Hello:

    It seems that LabVIEW support only 1, 4, 8 and 24-bit image, I want to import a 16-bit png image in a table (the value is between 0 and 65535), how can I?

    Thank you very much!

    Hi Wanghh

    Look at this example of table Image located by launching the example Finder, OR by selecting 'Toolkits' and Modules > 'Vision' > 'Functions' and the opening of the Example.vi "ImageToArray".

    If you look at the schema for this example, the Subvi "IMAQ Create" has the option to configure for 16-bit images.

    Kind regards

  • 16-bit to 8-bit conversion image problem

    Hello, I am projecting a 16 bit image to 8 bits for the special criteria. I met a problem when the image is 8-bit cast, the entire image is black, creating an error that correctly says that the contrast is low (which makes sense since there is no value). With the help of one other programs I am able to convert 16-bit to 8-bit fine. I tried to play with the update option several times in the distribution of images vi nothing helps. The 16-bit and are both the 8-bit unsigned image. I'll attach pictures and a photo of the code below.

    I thought about it, I had to convert manually to 8 bits to get the right values for the pixels. The 8-bit image resembles the 16 bits one now, allowing me to pattern matching in my vi. It seems as if the use of unsigned 16-bit images and try to convert to 8-bit through the Image of cast iron work sometimes it pixel values are not converted correctly.

  • How to convert U32 matrix 8-bit grayscale image?

    Good day to all,

    I got a U32 512 * 512 data table of photomultiplier using the analog inputs of the DAQ card. My question is how to convert this matrix 32-bit to 8-bit monochrome image for display.

    I tried the method in this post to convert grayscale image https://decibel.ni.com/content/docs/DOC-4155 table but the result resembles an outline rather than the actual image. I guess that's because their contribution to flatten Pixmap is 8 bits, but mine is 32-bit. I have a gamma correction to the scale of my data? But how?

    I have attached the original image, which is a particle. I have also attached my labview code and the processed image.  Thank you!

    Then, you will likely make you own custom conversion then increasing the difference between the brightest and darkest. You could just do 4294963840 the zero and 4293967276 the max and scale up to 0-255

  • 32-bit Windows Imaging Component (WIC) download

    I have reinstalled my software on my computer and I was instructed that I must download 32-bit Windows Imaging Component (WIC). There are many downloads with different extensions.  How do you know that one to download?

    Hi Mary,

    The Windows Imaging Component is available in different languages. The one chosen will depend on the language of your system. For example, wic_x86_enu.exe is English - United States, and the wic_x86_fra.exe is French.

  • vmplayer 64 bit refuses to rund 64 bit VM Image under SLES11SP2 64-bit.

    Hello!

    I apologize if this is a duplicate, but I did some superficial googling and a scan through the forum and have not found

    something relating to this (and will accept my humiliating punishment if I forgot something...).

    I created a 64-bit SLES11SP2 VMware install with VMware Workstation 9.0.2 which works ok under my VMplayer.

    VMWorkstation under Win7 64 bit.

    I downloaded the last VMware-Player - 5.0.2 - 1031769.x86_64 installed and tried to launch the Image under 64-bit SLES11SP2.

    I've kept, also after a reboot, a message the VMWare Player couldn't run the image, as my host (s11sp2) system

    would not support 64 bit VMWare images.

    Checked with uname, my System Architecture x86_64.

    Of course, I had installed the subsystem of 32-bit/libs of SUSE that I need for the compatibility of the other SW on the host.

    the player will stop looking for 64-bit libs, when it detects 32-bit libs?


    I'm a bit confused on this one, any help?

    concerning

    Klaus

    Welcome to the community,

    in order to be able to run 64-bit guests, there are certain Requirements of Installation for the host processor. Often, it's just the BIOS (VT - x, NX/XD) settings that are not turned on. Please check.

    André

  • Convert a sweep of 16-bit grayscale tif to DNG and getting 48-bit RGB?

    I have scanned hundreds of old black and white negative using Vuescan to TIFF 16-bit grayscale. If I open in Photoshop CC2014 the tab indicates that they are a single 16-bit grayscale channel. But if I have Lightroom convert them into DNG and then open them in Photoshop, they appear as 48 bit RGB or three 16-bit RGB channels. The three channels are identical. What happens here? Is it only returned as a 48-bit RGB or the DNG image byPhotoshop to store the RGB image? The DNG format is not much bigger than the TIF, so it doesn't seem to be store 48 - bits of information. I lose all the data on your way to the DNG format with a scanning in grayscale?

    Given that I can export the DNGs to a tif and it refers to a single channel 16-bit, I suppose I don't lose all the information, but I'd rather not use DNG for scans in grayscale? Or should I edit in Photoshop with the three RGB channels on and understand that I am change the grayscale channel should ever export back to tiff?

    It seems at least that there is a gap in the rendering of the shades of gray DNG in Photoshop?

    I think that the best way to answer here is to explain my own workflow.

    I have to be a little brief: it's getting very late, and I start tomorrow a roadtrip of six weeks.

    I do a lot of work with TIFF scanned, and it never occurred to me to convert to DNG.

    I start with rough tonal corrections, noise reduction and retouching in PS and then import the image (with all the shadow and highlight details present) in LR.

    Here, I'm very good tuning and capture sharpening, but sometimes the image must return to the PS for editing. I use then change the Original and the image opens grayscale in PS. After check-in PS, I click on the exclamation mark on the thumbnail and choose import disk settings and updates to images in LR.

    Given that I find the release of LR sharpening unsuitable for scanned images (it's probably optimized for digital capture), I export a new LR tiff image, open it in PS, conversion of RGB to grayscale and use Smart Sharpen for output sharpening. I wish you that LR could export in grayscale, but I've learned to live with it. You could easily implement an action of conversion in levels of gray (and 8 bits) and use it regularly.

    My knowledge of the technical aspects of the dng files is limited, but my impression is that they are files in grayscale, which explains the small size of the file.

    The color is added in the process of deconvolution in LR.

    I do not think that your workflow with convertin to DNG will affect the quality, so stick with it if you wish.

    I gladly carry on this discussion, but since I'll be on the road, you answer could take some time.

Maybe you are looking for