View Single Post
  #4   Spotlight this post!  
Unread 04-02-2010, 07:21
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,748
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Reticle for camera

If you are writing your dashboard in Java, you have a couple choices.

The images from the cRIO are just a jpeg. There is a small header in front when it comes in the TCP port, but that is easily skipped and is there for identifying future image formats that may be used. So, you can use whatever Java libs you like to display the jpg. Then in the same drawing canvas, use line, circle, or possibly even pixel operations to draw your reticule. I'm not familiar enough with Java libs to help you with the exact drawing commands.

Presumably you are not using Imaq Vision on the dashboard PC, but if you happen to be, the C version of the Imaq libraries also contain the routines to overlay graphics on an image and display the result. I suspect it isn't worth the effort to call those from Java.

Finally, the code is there in LV if you would like to look at it and consider making your dashboard in LV.

Greg McKaskle
Reply With Quote