View Single Post
  #5   Spotlight this post!  
Unread 29-07-2013, 15:17
Chadfrom308's Avatar
Chadfrom308 Chadfrom308 is offline
Slave to the bot
AKA: Chad Krause
FRC #0308 (The Monsters)
Team Role: Driver
 
Join Date: Jan 2013
Rookie Year: 2011
Location: Novi
Posts: 272
Chadfrom308 is a splendid one to beholdChadfrom308 is a splendid one to beholdChadfrom308 is a splendid one to beholdChadfrom308 is a splendid one to beholdChadfrom308 is a splendid one to beholdChadfrom308 is a splendid one to beholdChadfrom308 is a splendid one to behold
Re: Vision processing problem (black, jittery images)

Quote:
Originally Posted by jerry w View Post
This process, as coded, would normally show a black screen, with an overlay of a circle.
I would suggest that you define 3 IMAQ memory spaces outside the loop.
1. The first one would hold the streaming images from the camera.
2. the second should hold a fixed copy of one image.
3. The third would be your working memory area. (similar to the random one you now show)
4 . In the loop, copy the latest image from the camera to the fixed memory and also the working memory.
5 After processing, put the overlay onto the fixed image.

By trying to store everything in one memory space, you are sometimes displaying streamed camera images and sometimes processing images.

Hope this helps.

Jerry

Thank you so much, it made it work! I didn't realize that that's what happens. It is my first time doing vision tracking and I wanted to make it really nice and fast. Thank you!