Is NI-Vision 16-bit BCG subvi incorrect?

I am attempting to do a BCG adjustment on a 16-bit image. I downloaded the 16-bit version of the NI-vision BCG adjust subvi, but I believe it to be working incorrectly. From the documentation, it seems that values of 0,45, and 1 for brightness, contrast, and gamma respectively should yield the exact same image as previously. This does not happen.
I have attached a little library containing an example of this and the BCG subvi. I picked a random image from my data and threw it in there. Also, I'm sure I could find some BCG values to make the output image the same as the input image, however these values do not stay constant from image to image.
Attachments:
BCG_incorrect.llb ‏389 KB

Christos,
Just a couple of things that I'd like to clarify...
At issue are two points:
1) Whether or not your acquired image is unsigned 16-bit, IMAQ only supports a signed 16-bit format. You'll see that the IMAQ buffer you're passing into the LUT VI in your code is actually a signed 16-bit image buffer.
2) It seems that you'd like to redefine "brightness" in a different way in which it was "defined" in the previous VI. This is fine, but we have to change the formulas a little bit.
Notes:
If I understand you correctly, you'd like to input a brightness of 0 and have your image be entirely dark. And you'd like to input a brightness of 65,535 and have the image be entirely light. That is not the way the VI has currently been set up. (Right now, the VI accepts a brightness input such that an input of 0 corresponds to a normal distribution of pixel values. Meaning that a 0 pixel value comes through the LUT as 0. If you increase the brightness to 1, at the input pixel value of 0 the output of the LUT is 1. Hence, the image is brighter. If you set the brightness to 32,767, then the input pixel value of 0 has an output of the LUT of 32,767. This is the brightest value in the signed 16-bit format. Every pixel value greater than 0 would rail at the 32,767 value.)
So if you're wanting to adjust the "definition" of brightness per my interpretation above (0=totally dark and 65,535=totally bright), you'd need to do the following:
* Brightness=65,535: The darkest pixel value (0 in the unsigned 16-bit format) would need to get the lightest LUT output (32,767 in the signed 16-bit format) for a brightness of 65,535. This would correspond to the lightest pixel value (65,535 in your unsigned 16-bit format) getting an LUT output value of 98,302. Values greater than 32,767 are coerced to 32,767 in the signed 16-bit format. Hence all pixel values would be the most bright possible.
* Brightness=0: The lightest pixel value (65,535 in your unsigned 16-bit) needs to get the darkest LUT output (-32,768 for signed 16-bit) at a brightness of 0. This would make the darkest pixel value (0 in your unsigned 16-bit) get an LUT output of -98,303. As above, pixel values less than -32,768 are coerced to -32,768 in the signed 16-bit format.
Code:
I've gone through your code as attached in your previous message and altered it slightly to where it will now exhibit the brightness behavior as described above. I've included some new text notes on the block diagram that kind of explain what's going on.
I hope this is helpful to you. And I hope this explanation is somewhere close to clear. It's a little involved, but ultimately do-able. Best of luck in getting this implemented...
Jim Laudie
Applications Engineer, National Instruments
Attachments:
bcg16bit-test adjusted for Christos.vi ‏327 KB

Similar Messages

  • The download address of itunes 10.4 for Win 7 64-bit is totally incorrect. The one I donwload was for itunes 8.2. Can anyone help

    The download address of itunes 10.4 for Win 7 64-bit is totally incorrect. The one I donwload was for itunes 8.2. Can anyone help?
    The link I download was
    Download for Windows 64 bit :
    http://appldnld.apple.com/iTunes10/041-0719.20110720.rE358/iTunes64Setup.exe

    what if they are turned off?  I cannot install iTunes or QuickTime Pro 7 on my WIN7/64 Lenovo W520. ran all the repair cycles uninstalls, reinstalls about 10X each, no luck

  • Trouble uploading website using iWeb 09 FTP

    Hello All,
    About 2 years ago I used iWeb to upload my website. At the time I had to use Website Maestro for the FTP. Recently I bought a new iMac and used iWeb 09 to change several things on my website.
    I viewed all the videos on how to upload your site using the iWeb FTP and I even used the "test connection" button and it said it was great. So I went ahead and uploaded my site and iWeb 09 confirmed that everything was fine, but it didn't change my website. The old pages were still there.
    I phoned my web hosting company (Host Papa) and they said iWeb 09 uploads the new pages to a folder in their cpanel and that I would have to log in to the cpanel and move folders around. I tried this but inside Host Papa's cpanel it was all greek to me. I phoned their help line and the guy switched all the files for me and the new pages published fine.
    My question is why can't iWeb publish my site without me having to log into their cpanel to change folders around? I noticed on the iWeb 09 publish site I had filled in one bit of information incorrectly. Where it said "Directory/Path" I typed in www/ Their help desk said I should have typed in /public_html/ If I did this would this make a difference? Would it publish directly without me having to go into their cpanel?
    Thanks for your help.
    Mike

    The old pages were still there.
    Did you try clearing your browser's cache (CommandOptionE for Safari) and reloading the page? The site and index.html file probably should be uploaded to the public_html folder in your account.
    I use WebSite Maestro and find it to be very good for uploading. You might try going back to that especially since iWeb's ftp client is posing problems. I would either try WSM or the free Cyberduck client.
    OT

  • How do you write an image threshold to a file

    Hi, I use IMAQ threshold to threshold an RGB image. How do I write this image to a file? Whenever I use the IMAQ Write JPG or Write PNG vI and try to view the file with the windows image viewer all I see is a black image. Does anyone know how to save a binary image?

    If you cast it to an eight bit image and save it as a BMP or JPEG does it show up correctly? If so the problem probably lies in the fact that a 16-bit image in LabVIEW is signed, while third party viewers usually assume that it is unsigned. So rather than pixel values going from -32766 to 32767, they go from 0 to 65536. There are example programs on ni.com to get around this. One is called "Mapping a 16-bit Image to an 8-bit Image," another is called "Bit Shift an IMAQ Vision 12-bit Image and Resave for External Viewer." If you search for these titles on the ni.com search bar, you should be able to find them.
    Kyle V

  • DigiDesign mBox, Soundtrack Pro Best Setup

    Hello,
    I have a DigiDesign mBox, current CoreAudio Drivers from DigiDesign, etc.
    Everything is great, but I think the bit depth is incorrect, all my VO sounds a bit high pitched, and I can figure out what is wrong. I read another post saying that I may be playing back at 48, but I change everything I can find to 44.1, which is what the mBox is set at. I think the mBox records at 16, but my file is 24, but I can't find anywhere to change the recording settings.
    Anyone have any ideas?
    Thanks!

    The Mbox can record at 24 bits and anyway, it's not the cause of your problem. Indeed, I think you may be playing back at 48 Khz something you recorded at 44.1 Khz. Make sure your STP project is set to 44.1Khz because I think the default setting is 48Khz (which is standard for video work)

  • Visa attribute error -1073807330

    When I run Agilent 546XX Serice Acq Digital Wfm Edge Triggered.vi, I get error...
    "Error -1073807330 occurred at Property Node (arg 6) in Agilent 546XX Series.lvlib:Initialize.vi->Agilent 546XX Series Acq Digital Wfm Edge Triggered.vi"
    The Knowledgebase refers to stop bit being set incorrectly.  But, it show "1" which matches MAX.
    Thanks.
    Solved!
    Go to Solution.

    That's not the actual problem. That driver has a bug in the Initialize VI in how the baud rate is configured. The baud rate is set as an integer value, e.g., 9600. The problem is that the Initialize VI has a front panel cluster where the "Baud Rate" is a ring, but the values it spits out are 0, 1, 2, 3, instead of 9600, 19200, 38400, 57600. One way to fix it is to insert a case structure in the Initialize VI so that it translates the 0, 1, 2, 3 to the proper baud rate values. I'm suggesting this method since the other way to fix it is to change the baud rate control so the control sends out the correct value. However, you'd need to do this in all VIs that use the Initialize VI - i.e., all the examples.
    I'm surprised the driver was released with this bug.

  • Integrity of backupset

    I am trying to find documentation on the above.
    Is there a checksum validation/verification done on a backupset before a restore is done - ie. is it possible that data-injection/changes can be done to a backupset. I need a document that states that for a DOD question on a project.

    Properly done, encryption becomes essentially unhackable (at least within reasonable time frames).
    At most, without encryption, Oracle can verify when you restore a backupset that the blocks are internally consistent. The checksums are there to handle the situation where, for example, in the process of writing the backupset to tape, storing it for a period of time, and reading it back in, a bit has been incorrectly flipped because of a read error or a write error. They are not intended (nor do they) protect you from a human manually tweaking your backup.
    Of course, the same can be said of regular data files. It is entirely possible for someone to hack an Oracle data file to change the data in a block and to adjust the block checksums unless you're using TDE.
    Justin

  • Regarding Server object Model in Custom Windows service

    Hi,
    I am writing a custom windows service to update the Sharepoint 2013 list every morning. But when i am try to create a SPSite object by passing the SITE URL it is throwing the below error.
    Code :
    using(SPSite site = new SPSite(SITE_URL))
    Error :
    "The Web application at "" could not be found. Verify that you have typed the URL correctly. If the URL should be serving existing content, the system administrator may need to add a new request URL mapping to the intended application."
    Even though the SITE URL is correct. It working while browsing in explorer. 
    Not sure why it is happening. 
    Thanks.
    Akhilesh Rao

    Hi Akhilesh,
    Please try to add yourself to the WSS_ADMIN_WPG group on the server.
    Or here are the most common reasons this error can occur:
    1.The code is executed on a different machine - The SharePoint object model (except the Client API) requires to be run on the SharePoint server itself. It is not possible to run the application on a server which is not within the same SharePoint farm the
    code is trying to access.
    2.Insufficient Rights on the site collection - The code is executed in context of an account which does not have read permission on the site collection
    3.Incorrect Url being used - Verify that the site works correct in a browser and double check that the server is correct registered in the AAM settings
    4.Incorrect bitness - The SharePoint object model needs to be executed with the same bitness as the operating system. That means you cannot use the SharePoint object model in a 32-bit application if the Operating System and SharePoint are installed as 64-bit
    version. Ensure to compile the project using the correct bitness (64-bit on a 64-bit machine vs. 32-bit on a 32-bit machine)
    5.Incorrect .NET framework version -  Ensure that the project is configured to use .NET 3.5 for SharePoint 2010 and below and .NET 4.0 for SharePoint 2013
    Best Regards
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Nomad Jukebox 6GB DAP6G01 Silver: Won't power up with batteries or AC cord after years of

    My very first MP3 player won't power up with batteries or AC cord after years of use.
    I take good care of my electronics, so it was a big surprise when I couldn't power it up.
    I've read of other owners of this type of player that there could be moisture built up inside the player, but that couldn't be the case. I keep the player in a cool dry storage place when I don't use it. I use my Zen Micro and Vision a bit more now.
    Since the player has no support or warranty anymore, are there any repair facilities that could diagnose the problem the player is experiencing.
    Does anyone else have the same problem and if so, what could be done to correct it's
    Thanks a lot for any comments.

    I have swapped the RAM DIMMS around (as previously mentioned), but no amount of swapping changes the pattern of failure. I tried running with 1GB RAM (one pair of sticks) instead ot 2GB, with no change to the pattern of failure.
    I'll probably just connect my drives to our G4, reinstall Tiger on the former G5 startup drive, and keep using what will run on the G4 until it croaks.

  • K8N SLI Platinum BSOD - RAM may be faulty? - Solved

    I have started having the occasional dreaded BSOD, when I look into the memory dump with windbg the analysis indicates that it was probably caused by memory corruption.
    I have a K8N Platinum SLI with 2 512MB sticks of Crucial Ballistix PC3200 RAM.
    I downloaded and burnt a copy of Memtest86+ to CD and it detects 100's of errors, there are about 6 - 12 memory addresses that keep coming up as troublesome.
    is Memtest86+ a reliable way to test your RAM?
    I'm thinking I may have to get the RAM replaced...

    Quote from: syar2003 on 11-October-06, 04:11:29
    Tweak cpu's memorycontroller:
    Relax max async latency from 6ns to 8ns and read preamble to 6ns . (thinks thoose timings are availible in your MS-7100)
    Tried those settings and it fails to boot, had to reset the BIOS, it will boot at 7ns & 6.5ns but made no difference.
    Quote from: syar2003 on 11-October-06, 04:11:29
    Probably no fauls with the modules at all , as I mentioned earlier .
    Could also be bad contact in a DIMM slot , or CPU may need a voltage bump for it's memory controller .
    Tried upping the CPU voltage , same result.
    Moved the memory modules to slots 3 & 4 and still fails.
    What gets me is that it is the same address every time and the same bit location that is failing every time.
    With Module A in Slot 1 and Module B in Slot 2 the faulty address = 0001C3AA704 and bit 0X000000 is incorrect.
    With Module A in Slot 3 and Module B in Slot 4 the faulty address = 0001C3AA704 and bit 0X000000 is incorrect.
    With Module A in Slot 2 and Module B in Slot 1 the faulty address = 00023C058FC and bit 0X000000 is incorrect.
    With Module A in Slot 4 and Module B in Slot 3 the faulty address = 00023C058FC and bit 0X000000 is incorrect.
    Where X is different from the expected value in the memory test.
    The same address fails even with relaxed timings to 3-3-3-8 2T
    Each Module on its own passes the tests for 10+ hours.
    BIOS Version 3.A
    I have now had a friend with a K8N Diamond test the memory and it passes in Dual Channel mode in his board which is basically the same bar the extra SATA controller and NIC.
    So is it my board that is the problem?
    Ideas? 

  • I just downloaded Itunes 11.1.4 (64-bit) and am running Windows 7, Itunes will not open and I get an error message about Microsoft runtime and I get an error R6034 and 1114 which says Itunes was installed incorrectly. Can anyone help?

    I just downloaded Itunes 11.1.4 (64-bit) update and am running Windows 7.  Itunes will not run after installing this update and I receive an error message R6034 on Loading Microsoft C Runtime Library incorrectly.  Also Error message 1114 the Itunes Installer was installed incorrectly.  Is there an new update for this problem? Is anyone else having this problem?  Please help.  Thanks.

    Click here and follow the instructions. You may need to completely remove and reinstall iTunes and all related components, or run the process multiple times; this won't normally affect its library, but that should be backed up anyway.
    (99425)

  • Windows 7 64 bit driver for the Zen Vision M?

    - Where EXACTLY can I find the Windows 7 64-bit driver for the Zen Vision M? My new computer came with it installed in Windows Media Player 2, but the driver became corrupt. I can't seem to find that driver on the Creative or Microsoft download websites. Please Help!

    The driver is nati've to Windows. Creative does not write the MTP driver. I would suggest re-install WMP2 or contact Microsoft for advice if it is corrupt. As for software to use the player on a 64 Win 7system? there is nothing for the Vision M. You may want to read this page? http://support.creative.com/KB/showarticle.aspx?sid=605&h=3

  • Trouble installing Photoshop CC 64 bit windows 8 - internal file signature incorrect

    I had a problem and fixed it, and thought I'd post in case others have the problem. I have a new Win 8 machine.  I subscribed to CC (LR+PS), but couldn't install PS 64 bit. Well, when I installed, I got a message it installed ok but had a problem. Adobe showed a log file I could access, but I couldn't access it, and I didn't want to look at a log file anyway. I was hoping for an answer in English.  I tried to open PS 64 and got this message:  "internal file signature is incorrect".  I googled the message, and the majority opinion was to try and reinstall.  Well, I had already tried that and failed.  Then I got an idea I wish I had had before.  When you get a new PC, first thing to do is update all the drivers, etc, and then go to Windows update.  There were many Windows update.  My PC is HP, so I went into it's support center, and clicked the button to update drivers, etc.  There were a lot of updates, including the bios.  After restarting the computer, the install of PS 64 worked, but then I got the other error I posted today (and fixed).  Hope these posts help some poor souls.

    Hi ArtfulToad,
    Thank you for sharing the information.
    Regards,
    Romit Sinha

  • HP System Recovery DVD incorrectly formats hard drive (WIN Vista HP SP1 64-bit 510141-001)

    HP Pavilion DV4-1225dx
    Vista Home Premium 64-bit
    AMD Turion x2
    I had previously posted the issue as "HP System Recovery Fails on new HDD", however it appears that the reason it is failing is due to incorrect formatting of the hard drive:
    Went to purchase the oem HDD @ Tiger Direct (Hitachi 0A56415 Travelstar 5K320 Mobile Hard Drive - 2.5", 5400 RPM, SATA 3G, 250GB, 8MB Cache) but found it was out of stock. I purchased the suggested replacement  (WD Blue 320GB Mobile Hard Drive - Designed for everyday computing - 2.5", SATA 3Gb/s, 5400RPM, 8MB C...)
    I have attemptted the System Recovery several times each failing with errors. But after each failure the HDD is found to be incorrectly formatted as documented in the following link:
    System Recovery Fails on new HDD
    hp G71-340US WIN 7 HP 64 Bit
    hp pavilion dv4-1225dx VIsta HP 64 Bit
    hp pavilion zd7000 WIN XP Pro
    hp pavilion xv886 WIN Millennium / WIN XP Pro
    hp deskjet 6980xi
    hp pavilion xt236 / ze4200 WIN XP Media Edition

    Slolearner,
    After doing a little research, I believe your issue may be related to your new hard drive being an AF (Advanced Format) drive. Please see "WD Scorpio® Blue™ SATA/PATA Hard Drives", which indicates your WD3200BPVT may an AF drive.
    Please see "Cannot Recover the PC after Replacing the Hard Drive with an AF Drive (Windows 7 and Vista)" for information on this subject. While this document isn't for your specific computer, it is generic enough that it applies to your situation. If you wish to use your HP Recovery Discs successfully, you may need to purchase a non-AF drive.
    If your computer boots into Windows, please see "Identifying an Advanced Format Hard Drive" to download and run the HP Advanced Format Hard Drive Information tool.
    If it is an AF drive, please see "Preparing Advanced Format Hard Drive for Windows" and "Improving the Performance of an Advanced Format Hard Drive" for more information on the subject and possible steps to be taken to resolve your issue.
    Lastly, it may be necessary to follow Paul_Tikkanen's advice and install Windows Vista from a Microsoft Windows Vista installation disc as follows;
    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
    If you can still read the 25 character Microsoft Vista product key on the bottom of your PC, you can make your own plain Vista installation media and use that to at least get the OS on your PC.
    Here is how to do that if you can read that key:
    Please click on the link below, click on the Windows Reinstallation Guide [27-07-2013] pdf link on the upper left of the page and then read the instructions for doing this starting on page 302.
    http://philipyip.wordpress.com/dell-community-forums/
    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
    You may also consider purchasing a copy of Windows 7 and installing that instead. Windows 7 SP1 has much better support for AF drives than the previous versions of Windows.
    Please click the white KUDOS star to show your appreciation
    Frank
    {------------ Please click the "White Kudos" Thumbs Up to say THANKS for helping.
    Please click the "Accept As Solution" on my post, if my assistance has solved your issue. ------------V
    This is a user supported forum. I am a volunteer and I don't work for HP.
    HP 15t-j100 (on loan from HP)
    HP 13 Split x2 (on loan from HP)
    HP Slate8 Pro (on loan from HP)
    HP a1632x - Windows 7, 4GB RAM, AMD Radeon HD 6450
    HP p6130y - Windows 7, 8GB RAM, AMD Radeon HD 6450
    HP p6320y - Windows 7, 8GB RAM, NVIDIA GT 240
    HP p7-1026 - Windows 7, 6GB RAM, AMD Radeon HD 6450
    HP p6787c - Windows 7, 8GB RAM, NVIDIA GT 240

  • Are 16-bit greyscale images in IMAQ Vision True 16-bit

    Does 16-bit image in Vision control display true 16-bit grayscale (or is it really mapped to 8-bit)?
    thanks,
    Don

    Most displays only provide 8 bits of each color (RGB). These can be combined to create millions of colors, but can still only display 8 bits of grayscale. Very few display are capable of 16 bit display, so the 16 bit images must be converted to 8 bit. It is useful that LV provides several options for the conversion.
    Bruce
    Bruce Ammons
    Ammons Engineering

Maybe you are looking for

  • Active Directory client not dynamically updating DNS

    Hi, There has been some other issues mentioned on other threads regarding the Active Directory Plugin within Lion, it does appear to be flaky. I just wanted to make sure that the issue I'm having is not down to a mis-config by myself. We have several

  • Hard coded links in R12.1.1 SOLARIS 10 64 bit Rapid Install stack

    Hi, Just a heads up for anyone using the Solaris 10 64 bit Rapid Install. I am doing a 11.5.10.2 > 12.1.1 upgrade on Solaris 10 64-bit. On my Rapid Install delivered R12.1.1 tech stack there are some hard coded links to Oracle test server files in th

  • How to make blank value as null in table using DQS

    Hi I am using DQS in SSIS. It makes null value from source table as blank in destination table by DQS_NULL feature. I want to make that null value as 'Null' in the destination table after applying DQS. How is it possible. Thanks Nidhi

  • AnyConnect won't download to client PC

    I have an ASA5510 ver 8.2(1)1 I have configured two anyconnect VPNS. I have enabled both clientless and svc mode on both. The clientless works. They can conenct to the webpage and access plugins and access hosts on the internal network. however the s

  • KDE. Font rendering without antialiasing

    I don't like antialiasing and always turn it off. Everything is ok, except modern fonts on the web. They look realy ugly. Is there any way to improve their rendering without antialiasing? Thanks in advance!