AVIOuputSession works only with 16 bit Image

I'm trying to save incoming data to an AVI file using the AVIOutputSession in c# (.Net VS 2008).

The data is a grayscale image and is captured as ImageType.I16, but when I try to use the WriteFrame() method, I get an error of invalid image type.

I read the forum and I've seen a few similar problems with the fix is to convert the images in ImageType.U8 and I can confirm that it works, however, he destroyed the upper 8 bits of my image and (obviously) can not be recovered by trying to read the AVI later (using AVIInputSession).

I'm under the impression (good, bad or indifferent) support than AVI 16 bits per pixel, correct?

Is this a bug in the NOR-IMAQdx?

Any help is appreciated,

Thank you

-Tom

Code snippet:

August AviOutputSession = new AviOutputSession(@"C:\TEMP\temp.avi");

VisionImage im = new VisionImage();
for (int i = 0; i)< updwnmultiple.value;="">
{
_SESSION. Enter (im, true);
aOut.WriteFrame (im);<------------error>

}
aOut.Dispose ();

LEADTOOLS encoders that support 16-bit grayscale are the following:
-DRIVE the CPSM/MJPEG Codec (2.0)
-(3.0) LEAD MCMW encoder
-Encoder MJ2K LEAD (2.0)

But you won't be able to use it through functions, OR the function uses the standard Windows way for interfacing with the codec, you will not be able to pass your 16-bit image to the codec because this type is not supported in Windows. I already tried to change GenAVI example comes with the LEAD library (located in "C:\Program Files\LEAD Technologies\LEADTOOLS multimédia EVAL 16.5\Examples\Ltmm\C\GenAVI\") and it failed.

You must have Microsoft SDK, then put the filter DirectShow (Source), which will push your images for the codec of LEAD. On the other hand, this filter should receive your images IMAQ. The example of 'Start' for this filter located in "C:\Program Files\Microsoft SDKs\Windows\v7.0\Samples\multimedia\directshow\filters\pushsource\"...

Currently there is no other way, because "some of the internal objects inside of controls ltmmConvert do have the ability to communicate the media type gray of 16 bits, so a color converter filter is inserted resulting in 8-bit grayscale conversion". (Italic highlighted text is the response of the CHIEF engineer).

Andrey.

Tags: NI Hardware

Similar Questions

  • iTunes CD & DVD registry settings works only with 32-bit Windows Vista - Help!

    Since the update to iTunes 9.0, everytime I open iTunes, I get the error message:

    Caveat! The registry settings used by iTunes for importing and burning CD DVD drivers & lack. This can occur as a result of installing other CD burning software. Please reinstall iTunes. "Device filter entries exist to somehow change how a device works. If you encounter problems using CD, follow these steps to temporarily disable other third-party optical drive software entries.

    It says that I have to reinstall iTunes.  I click OK and it goes to open iTunes.  Everything works normally except when I go to burn to a CD.  When I click on burn, he says: "disk not found... recorder. "and will not burn the discs.
    I contacted Apple, and we tried to reinstall the CD/DVD from GEAR Software drivers.  I also tried to uninstall and reinstall iTunes.

    Apple technology gave me a link to try with instructions for fixing Windows registry info.  I followed that, thanks to step 10, but can go no further because I can not find the buttons, they are askking me to click.  The link he gave me is:

    iTunes for Windows Vista or Windows 7: CD troubleshooting problems caused by device filters

    Click on the link above or copy and paste the following address into your Web browser to view the corresponding article: http://support.apple.com/kb/HT2615?viewlocale=en_US>

    Help?

    Hi Behnke

    What other burning software CD do you have on the system? I suggest you to remove for this test. And install it again after the test.

    Try these methods step by step to help resolve your problem:

    Step 1: Uninstall iTunes completely with Windows Installer Cleanup Utility.

    Download windows install Cleanup utility and clean all traces of Itunes on your system. Remember that Windows Installer CleanUp Utility does not remove the actual program from your computer. However, it will remove the installation files so that you can start the installation, upgrade, or uninstall on. Download here.

    1. Save the Windows Installer Cleanup Utility package on your computer

    2. right click on the Windows Installer Cleanup Utility and run as administrator

    3. follow you prompt in the installation wizard.

    4. Once completed the installation, click on the Start button.

    5. click on all programs. Click on Windows Installer CleanUp.

    6. click on iTunes (if active list). Click on Remove. Click on OK. Click exit

    Step 2: uninstall and reinstall Itunes.

    NOTE: Using third-party software, including hardware drivers can cause serious problems that may prevent your computer from starting properly. Microsoft cannot guarantee that problems resulting from the use of third-party software can be solved. Software using third party is at your own risk.

    Step 3: Configure iTunes as the default player on your system.

    Step 4: Solve the problem of CD/DVD

    To resolve this issue automatically, click the fix this problem link. Click run in the file download dialog box, and then follow the steps in this wizard.

    Solve this problem
    Microsoft Fix it 50028

    Or you can manually fix KB314060.

    See also: http://discussions.apple.com/thread.jspa?threadID=1535328

    After back and let us know if it helped to solve your problem.

    Thank you and best regards,

    R uma - Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • DeskJet 722C works only with Windows 7

    OK, so I applied the DJ_Patch as described. (See http://h30434.www3.hp.com/t5/Printer-All-in-One-Software-and/Deskjet-710-720-810-820-100-Series-prin... ) I have Windows 7, 64-bit and a HP Deskjet 722 C printer.  Tried to print the test page, but received the error from the printer.  Tried to add a printer, you are looking for the 722C, but it is not on the list, even tried to do Windows Update to search for my printer.   Tried to restart, which did not work or the other.  Still get error printer.  I appreciate any other suggestions.  BTW, the printer is connected via a USB to parallel port cable.

    My HP Deskjet 722C now works!  I spent several hours trying different things only to find out it was the cable use to connect the printer to our new computer.  He is there not a lot of info on the package of cable but if you watched closely he said it worked only with Win XP, me and Vista.  Who would have thought that the cable wasn't working with some BONE... me!  Once we went and bought a new cable ($40, Ouch!), we were running a few minutes.  I don't know that a cheaper cable is available online.

    I wanted to post this in the hope of saving someone money, time and frustration on the other.

  • RoboForm does not work with your new browser. It is very fustrating and works only with Windows Explorer. I need to reinstall the old FIREFOX program?

    RoboForm does not work with your new browser. It is very fustrating and works only with Windows Explorer. I need to reinstall the old FIREFOX program?

    RoboForm has already released a version with support for the latest version of Firefox. See http://www.roboform.com/support/news. Try upgrading to the latest version of Roboform.

  • Windows 7 works only with canon MX 340

    Canon MX 340 printer works only with windows 7.

    Canon MX 340 printer works only with windows 7.

    You mean the Canon PIXMA MX340?

    You have the following drivers installed? :
    http://www.USA.Canon.com/nw3s/CanonUSA/DownloadContents/English/0100461601EN.htm
    (As of 10/23/12)

  • External speakers work only with powerpoint.

    External speakers work only with powerpoint. DVD, internet, music files, are not. They worked for the first few weeks.

    I have a HP dv7-6c27cl with intel core i5 and Windows 7.

    When I have the system check it, it finds no problem.  Apparently, I have the latest drivers. The fact that the speakers work with powerpoint, which is confusing.

    When I play a video file or music, I get an error message: "Windows Media Player has encountered a problem while playing the file."

    The headset works for internet but not DVD.

    I've installed Weatherbug a week ago and had to uninstall other garbage that come with it. I think that's when the problem started.

    Well, I set myself just now. I did a system restore to a point before that I installed Weatherbug, and now everything's fine.

  • Lightroom works only with reduced funktionality. Develop module is not available.  Adobe can not find the license associated with my Adobe why identification code? Every month I pay an amount for PS and LR...

    After the upgrade to Windows 10 Lightroom works only with reduced funktionality. Develop module is not available.  Adobe can not find the license associated with my Adobe why identification code? I bought the license more than 1 year ago. Every month I pay an amount for PS and LR, and for the past 4 months I can't work. Russian support team cannot solve this problem and sent me here.

    Thank you! I reset my password, the problem was in it.

  • Adobe Acrobat dc works only with Microsoft office 2016

    Adobe Acrobat dc works only with Microsoft office 2016

    Hey Nick Villani,

    Desktop stand 2016 for Windows and MAC OS versions of Acrobat DC will be available in the next major update quarterly Acrobat, tentatively scheduled for October.

    Kind regards

    Ana Maria

  • CS6 Production Premium supports AMD graphics cards? Specifically over-pants M6100. If so, all the features work with the M6100, or are there features that work only with nVidia video cards?

    CS6 Production Premium supports AMD graphics cards? Specifically over-pants M6100. If so, all the features work with the M6100, or are there features that work only with nVidia video cards?

    CS6 does support OpenCL and OpenGL?

    Are all features that CS6 supports for NVidia Cuda available for the M6100 OpenCL?

    Bill supposed to first Pro CC (not CS6) response. Windows of Premiere Pro CS6 version does not support OpenCL for accelerating GPU of MPE. Therefore, there is no "opencl_supported_cards.txt" file in the folder of Premiere Pro, and the code to OpenCL is disabled permanently in all versions of Windows from Premiere Pro CS6. So, for your over-pants M6100 Premiere Pro CS6 will be permanently locked to only software MPE mode. (Acceleration GPU of MSES in the Windows of Premiere Pro CS6 version is limited to the CUDA only, which means that only NVIDIA for GPU - no AMD over-pants or GPU Radeon support CUDA at all.)

  • I have the code for an Adobe Creative Cloud, it is alphanumeric, but the registry works only with numeric codes ¿where I can use my code?

    Hi, I have a problem with code for my Adobe Creative cloud, it is alphanumeric, but the registry works only with numeric codes ¿where I can use my code? is a subscription to creative cloud of throughout the year.

    Probably you have a redemption code... especially if you did not purchase directly from Adobe

    Redemption Code http://helpx.adobe.com/x-productkb/global/redemption-code-help.html

    -or https://forums.adobe.com/thread/1572504

  • This calculator works only with round numbers

    I need help,

    This calculator works only with the numbers series, but is this 1.9 * 6 the result is 11.399999999999999 instead of 11.4

    Ware is the problem, can it be resolved?

    Theanks in advace.

    <? XML version = "1.0" encoding = "utf-8"? >

    < mx:Application ' xmlns:mx = ' http://www.Adobe.com/2006/MXML "layout =" " vertical " >

    < mx:Script >

    <! [CDATA]

    private function getTotal():Sub

    {

    var myInt:int = parseInt (input.text);

    var myFloat:Number = parseFloat (input.text);

    var myNumber:Number = new Number (Input.Text);

    var myInt2:int = parseInt (input2.text);

    var myFloat2:Number = parseFloat (input2.text);

    var myNumber2:Number = new Number (INPUT2. (Text);

    total. Data = (myNumber) * (myNumber2);

    }

    []] >

    < / mx:Script >

    < mx:TextInput id=" entry " />

    < mx:TextInput id=" INPUT2 " />

    < mx:TextInput id=" total " />

    < mx:Button " label = ' Button "click ="getTotal ();" />

    < / mx:Application >

    Welcome to the joys of IEEE 754 floating-point arithmetic. For more fun, try ".1 + 1 - 1»

    The simplest answer is probably to limit your result with Number.toFixed (). The answer is not so easy is to write your own class BigDecimal (in Java).

    --
    Maciek Sakrejda
    Truviso, Inc..
    www.truviso.com
    Truviso recruiting: http://www.truviso.com/company-careers.php?i=87

  • Is - this calculation Manager works only with EPMA?

    It seems calculation Manager works only with EPMA for the application of the classic plsnning, I cannot use the module of business rule and cannot use the Manager of computing to work on business rules, is good? correct me and advise, thank you!

    Sorry I disagree

    You can use the calc for classic version 11.1.1.3 planning
    When you create a planning application in 11.1.1.3 classic, you have the option to choose if you use business rules or calc for the app Manager.

    See you soon

    John
    http://John-Goodwin.blogspot.com/

  • Re: Toshiba Store Alu 3.5 "1 TB HARD drive works only with Windows 2008 64-bit

    Just bought this as a backup device for Small Business Server 2008 running on Windows 2008 64-bit. However it does not? Are there drivers anywhere for this or it is simply not supported and I need to buy an alternative solution?

    Plugged into my laptop Windows 7 64 bit and no problems.

    Someone else had the same problem?

    Hello

    Unfortunately, there is no other software by download.
    I checked the driver page Toshiba in the Options area but didn't find anything

    AFAIK it of a plug & play HARD drive if you n t need any software to recognize the HARD drive

    There may be a password.
    Try this:
    Connect your HARD drive to the computer when the HARD drive is working
    Select the CD drive with your browser (password)
    Run the ONSPCLCK.exe
    Select 'Options '.
    Select "Disable security password"
    Enter your current password
    Unplug the HARD drive
    connect the HARD drive

    Now, it will work, but with no password protection. Perhaps it would work

  • Flash CS4 works only with Windows 7 64-bit and Kaspersky Internet Security

    I have a new computer to core i5 Windows 7 64 bit retail. With Kaspersky Internet Security 2010 installed Flash CS4 answers so that it is completely unusable. Uninstall KIS and it works quite well. I already read on another forum that someone of another encounter the same problem with the same combination of products. Does anyone else have this problem amd If Yes, how do you solve? I posted on the forum of Kaspersky without solution so far.

    Norton works OK with Windows 7 (64) and CS4?

    Your chance.  After a week of research I found someone who has thought about it.  Apparently his self-defense of Kaspersky which is causing the problem.  Under options disable control external sevice disable.  For me, that did the trick.  If it does not for you also try to disable self-defense under both options.  Once I did it was moving smooth again.

  • How can I add image 8-bit with 32-bit image in vision assistant

    Salvation;

    I want to match image 8 bits with a 32 bit image assistant vision. I have a research topic on my doctoral thesis on the treatment of the image and I found a picture on the internet like that but I couldn't solve this problem in vision assistant. I have attached to it. Corresponding to the original image and its State binarize on the same image. Please help me, how can I do?

    The proposed script was just erase the area of interest, replace seuillees with zeros pixel. To fill this area with a given color, a possible solution is to invert the mask, it allows to make a new image of the area of binarize, multiply by the chosen color (use a saturated color, otherwise you will get color variations) and add the result to the previous image.

    That's what made the attached script.

Maybe you are looking for

  • How to set up a "dummy" or "virtual" port

    Hi, I'm relatively new to Labview programming.  I work with the NI USB-6212.  I was wondering if it is possible to create a "dummy" or "virtual" port, so I can finally create a port for example line output. port0/line16.  Basically I want some bits t

  • Replacement battery Pavilion dv6-1334us

    Hello I bought a replacement battery for my laptop.  The package says that it can be used in a Pavillion dv6.  I brought home and visited the battery replacement account is supposed to be 484170-001.  The battery I bought is 484171-001.  It is the sa

  • I would like to be able to use my CD rw as big floopys IE selectively erase some files rather than all the files.

    Original title: DLA is compatible with Internet Explorer 8 on xp home? I would like to be able to use my CD rw as big floopys IE selectively erase some files rather than all the files. I understand this formatting the disc for DLA (not sure if DLA me

  • Uninstall and reinstall

    How can I uninstall a windows xp that the guy who fixed my computer put about it he doesn't save and reinstall the origanal?

  • Parental control - restriction of site Web

    I tried to introduce parental controls for my 11 year old granddaughter. Everything seems OK until I propose restricted Web sites. I'm not trying to be too restrictive, so I named about 10 websites that can not be visited. I do not check the box to "