From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

U16 image anomaly in Imaq Vision Image Container

Solved!
Go to solution

Anyone seen this type of anomaly and know of a workaround.  What is weird is I have not seen in consistently.  Image shows up correctly in ImageJ.U16-anomaly.PNG

0 Kudos
Message 1 of 4
(4,924 Views)

The image display control allows you to set the mapping for displaying 16-bit images.

Right click on the control and select 16-Bit Display Mapping.

Select the mapping that is appropriate for you image. For better results, if the bit-depth is not set in your file, you might want to set it using IMAQ Image Bit Depth to specify the correct bit depth (10 instead of 16 for example).

Message 2 of 4
(4,914 Views)

Here is the info for the U16 image from ImageJ Image 'Show Info' menu item.   No adjustments in mapping, including changing the display range, changed anything.

 

SCIFIO version: 0.15.4
File format: Tagged Image File Format
--- Dataset Information ---
BitsPerPixel = 16
PixelType = 3
Dataset name = TOP VIEW TIFS\54_TOP_0534.tif
Image 0 Information
Dimension order = X,Y
Dimension lengths = 1658,1631
--- Global Metadata ---
BitsPerSample = 16
CellLength = -1
CellWidth = -1
Compression = PackBits
DotRange = -1
ExtraSamples = -1
FreeByteCounts = -1
FreeOffsets = -1
GrayResponseCurve = -1
GrayResponseUnit = -1
HalftoneHints = -1
ImageLength = 1631
ImageWidth = 1658
InkNames = -1
JPEGACTables = -1
JPEGDCTables = -1
JPEGInterchangeFormat = -1
JPEGLosslessPredictors = -1
JPEGPointTransforms = -1
JPEGQTables = -1
JPEGRestartInterval = -1
Make = -1
MaxSampleValue = -1
MetaDataPhotometricInterpretation = Monochrome
MetaMorph = no
MinSampleValue = -1
Model = -1
NumberOfChannels = 1
NumberOfInks = -1
PageNumber = -1
PhotometricInterpretation = BlackIsZero
PlanarConfiguration = Chunky
PrimaryChromacities = -1
ReferenceBlackWhite = -1
ResolutionUnit = Inch
SMaxSampleValue = -1
SMinSampleValue = -1
SampleFormat = unsigned integer
SamplesPerPixel = 1
T4Options = -1
T6Options = -1
TileByteCounts = -1
TileLength = -1
TileOffsets = -1
TileWidth = -1
TransferFunction = -1
TransferRange = -1
WhitePoint = -1
XPosition = -1
XResolution = 206
YCbCrCoefficients = -1
YCbCrPositioning = -1
YPosition = -1
YResolution = 206
--- Image Metadata ---

------------------------

Title: 54_TOP_0534.tif
Width:  203854.2626 pixels (1658)
Height:  200534.5611 pixels (1631)
Resolution:  0.0081 pixels per pixel
Pixel size: 122.9519x122.9519 pixel
ID: -3
Coordinate origin:  0,0
Bits per pixel: 16 (unsigned)
Display range: 0 - 27108
No Threshold
Magnification: 0.50
Uncalibrated
Path: \TOP VIEW TIFS\54_TOP_0534.tif
Screen location: 12,110 (1280x1024)
No Overlay
No Selection

0 Kudos
Message 3 of 4
(4,894 Views)
Solution
Accepted by topic author DonRothGE

Folks -

 

For whatever reason, u16 TIF images are sometimes not read in properly and this is clearly a Vision problem for NI to look into. The solution is below not unexpectedly from Andrey who is on the Mount Rushmore of Vision programming experts.

 

http://forums.ni.com/t5/Machine-Vision/open-greyscale-U16-image-problem/m-p/2414022#M38645

 

safest way to read U16 Tif.PNG

 

 

 

 

Sincerely,

 

Don

0 Kudos
Message 4 of 4
(4,886 Views)