Convert Image to 8-bits
Downloads
Filename: 1576.zip
Requirements: View
Filename: 1577.zip
Requirements: View
Filename: 16to8bit_lv.zip
Requirements: View
Filename: convert_16_to_8_exe.zip
Requirements: View
Filename: convert_complex_image_lv70.llb
Requirements: View
There are some external viewers available that do not display 16-bit IMAQ Images correctly. Vision 7.1 or later 16-bit PNG files work with many viewers, but some don't handle 16-bit images correctly. External viewers will not display complex images correctly either. These examples illustrate how to convert images to 8-bits, which all viewers work with because it's more standard.
The first example converts a directory of 16-bit images to 8-bit images. It determines the dynamic range of the 16-bit image and maps the pixels to 0-255 range. This example is written in Visual Basic.
The second example converts three 16-bit images to their 8-bit version and then combines them into an RGB image. This example is written in Visual Basic.
The third example converts a directory of 16-bit images to 8-bit images. It determines the dynamic range of the 16-bit image and maps the pixels to 0-255 range.
The fourth example converts a complex IMAQ image into an 8-bit image so the display will look the same in other viewers. Complex images can only be saved in AIPD format, a proprietary National Instruments format. Since other viewers don't support AIPD, it's necessary to convert complex images to 8-bits if you need to display the image in other viewers.
The fifth example is an executable that doesn't require Vision, or other ADEs to convert a 16-bit image to 8-bits.
Requirements
Filename: 1576.zip
Software Requirements
Application Software: Measurement Studio Visual Basic Support 6.0
Toolkits and Add-Ons: Vision Development Module
Language(s): LabVIEW, Visual Basic
Hardware Requirements
Hardware Group: Vision (IMAQ)
Driver: NI-IMAQ
Software Requirements
Application Software: Measurement Studio Visual Basic Support 6.0
Toolkits and Add-Ons: LabVIEW Vision Development Module 6.1
Language(s): LabVIEW, Visual Basic
Hardware Requirements
Hardware Group: Vision (IMAQ)
Software Requirements
Application Software: LabVIEW Base Development System
Language(s): Visual Basic, LabVIEW
Hardware Requirements
Hardware Group: Vision (IMAQ)
Software Requirements
Application Software: LabVIEW Base Development System 7.0
Language(s): LabVIEW, Visual Basic
Hardware Requirements
Hardware Group: Vision (IMAQ)
Hardware Requirements
Hardware Group: Vision (IMAQ)
Reader Comments | Submit a comment »
super, but where is it for labview :-((((((
- Aug 10, 2007
Legal
This example program (this "program") was developed by a National Instruments ("NI") Applications Engineer. Although technical support of this program may be made available by National Instruments, this program may not be completely tested and verified, and NI does not guarantee its quality in any way or that NI will continue to support this program with each new revision of related products and drivers. THIS EXAMPLE PROGRAM IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND AND SUBJECT TO CERTAIN RESTRICTIONS AS MORE SPECIFICALLY SET FORTH IN NI.COM'S TERMS OF USE (http://ni.com/legal/termsofuse/unitedstates/us/).
