Jump to content

monzue

Members
  • Posts

    26
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by monzue

  1. QUOTE(Neville D @ Oct 26 2007, 03:08 PM) Attached in the previous Comment by me is a screenshot of the IMAQ JPEG Demo Code with a while loop. After your suggestion about killing the buffer after decode, then using a fresh buffer on the next iteration. I have implemented that concept (I think!) and have uploaded that code. See attached .zip file. Also noteworthy is the fact that I do not have NI Vision Module, so I had to slightly Modify the JPEG code by deleting the IMAQ Cast.vi inside JPEG Decode.vi I don't think that doing this would cause my memory error though. And noteworthy is the fact that the code from NU does not come with the current image datatype. I have tried converting the datatype with the utility provided by NI for this, and have tried just copying and pasting the new image datatype. I don't know if one works better than the other. I could save the string to a file then open the file, but that to me seems to involve an unnecessary step. What I am doing is recieving a JPEG Encoded String over a UDP connection. On the recieving end I, I simply want to view the imagery. This imagery comes across the UDP connection at a rate of ~3 frames / second. Thanks for your help, Neville What I would like is for someone to verify that I am performing the Imaq Functionality correctly, and am not missing something small. Also, If someone could verify or not verify that the JPEG Decode.vi is working correctly with RGB images. Ben
  2. QUOTE(mateo @ Jun 26 2007, 11:52 AM) QUOTE(Neville D @ Jul 9 2007, 12:48 PM) What do you mean by "great amount"? Is it affecting performance? How large of a JPEG file are you trying to encode? The buffer in Encode may be re-usable for future calls. I wouldn't worry about it unless it is drastically affecting performance. Neville. I am having this VERY SAME PROBLEM. What is meant by great amount is that the code eats at the system Memory until it is entirely taken up. Note, I didn't see this effect with grayscale images, only RGB images. This problem can be easily observed by downloading the JPEG code from NI at http://sine.ni.com/devzone/cda/epd/p/id/3314 Filename: 202724.zip Then, Modifying IMAQ JPEG Demo.vi inside IMAQ_JPEG.llb so that there is a while loop placed in such a way as to allow the Imaq JPEG Decode.vi to run continuously. See attached picture. The .zip file is really a Jpeg image. Just rename the .zip file to .jpg Any suggestions on what to do? Ben
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.