Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

AVI creation with 8-bit Image Type specified

I am NOT able to create an AVI using 8-bit Image Type (specified for IMAQ create)

I am able to create AVI using RGB Image Type (specified for IMAQ create)

The help for IMAQ AVI Write Frame states that "This image must be either an 8-bit or RGB image."

Why does this not work for 8-bit image type. Using LV71, Vision7.

Thanks,

Don
0 Kudos
Message 1 of 6
(3,779 Views)
Hi Don,

Here is a KB that should answer your question:
http://digital.ni.com/public.nsf/websearch/4FAC615B62919BA5C1256ED00046997A?OpenDocument

Regards

Dan Q
National Instruments
0 Kudos
Message 2 of 6
(3,779 Views)
Hi Dan:

This does not answer my question because

1) I am using 8-bit image type that the AVI Write Help tells me is valid (8-bit image frame shows up fine in image control)

2) I don't get an error (which is what your KB talks about). I just get a messed up .avi that when played is all garbled and looks nothing like the image frames.

The code is very simple, I just followed the examples. Does not work with 8-bit image type. I am not acquiring images for this particular work. I am converting 8-bit normalized 2d arrays to IMAQ image types. CAn send you a simple version of the code if you want but it just follows the example for creating AVI (except I tried 8-bit which does not work whereas RGB image type worked). Can you check on this? AGain, you w
ill not get an error message but the AVI file will be strange.

Don
0 Kudos
Message 3 of 6
(3,779 Views)
Don -

A copy of the code would be helpful, as well as the images you used to create the AVI and the garbled AVI itself.

Thanks!

Greg Stoll
IMAQ R & D
National Instruments
Greg Stoll
LabVIEW R&D
0 Kudos
Message 4 of 6
(3,779 Views)
Here is basic code including resulting AVI...Don
Download All
0 Kudos
Message 5 of 6
(3,779 Views)
Don -

I was able to reproduce this behavior on my machine with Vision 7.0. This is a bug, and has been fixed in Vision 7.1.

Greg Stoll
IMAQ R & D
National Instruments
Greg Stoll
LabVIEW R&D
0 Kudos
Message 6 of 6
(3,779 Views)