Go to Post Transparency is the sign of BAD LARD! - ExcuseBoy [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 06-02-2012, 17:25
slibert slibert is offline
Software Mentor
AKA: Scott Libert
FRC #2465 (Kauaibots)
Team Role: Mentor
 
Join Date: Oct 2011
Rookie Year: 2005
Location: Kauai, Hawaii
Posts: 343
slibert has much to be proud ofslibert has much to be proud ofslibert has much to be proud ofslibert has much to be proud ofslibert has much to be proud ofslibert has much to be proud ofslibert has much to be proud ofslibert has much to be proud ofslibert has much to be proud of
Drawing a Circle on a BinaryImage within a WPICameraExtension

We're hoping to be able to draw a few circles on top of the video within a custom WPICameraExtension we are developing so that the aggregate result can be displayed on the SmartDashboard.

The BinaryImage Java class has methods to draw polygons and lines. We're having trouble figuring out how to draw circles using these methods. If we could get ahold of the underlying IplImage we could use OpenCV to draw the circles.

Does anyone have any advice for us?

Thanks,

- scott
Reply With Quote
  #2   Spotlight this post!  
Unread 06-02-2012, 21:34
pblankenbaker pblankenbaker is offline
Registered User
FRC #0868
 
Join Date: Feb 2012
Location: Carmel, IN, USA
Posts: 102
pblankenbaker is a glorious beacon of lightpblankenbaker is a glorious beacon of lightpblankenbaker is a glorious beacon of lightpblankenbaker is a glorious beacon of lightpblankenbaker is a glorious beacon of light
Re: Drawing a Circle on a BinaryImage within a WPICameraExtension

See this post it has a attached WPIImageWrapper.java file which we have been using to gain access to the underlying IplImage associated with the WPIImage derived classes.

I'm not sure if you are going to want to draw on a binary image. You will probably want to convert it to a color image so you can use a different color when drawing your circles.
Reply With Quote
  #3   Spotlight this post!  
Unread 07-02-2012, 16:44
slibert slibert is offline
Software Mentor
AKA: Scott Libert
FRC #2465 (Kauaibots)
Team Role: Mentor
 
Join Date: Oct 2011
Rookie Year: 2005
Location: Kauai, Hawaii
Posts: 343
slibert has much to be proud ofslibert has much to be proud ofslibert has much to be proud ofslibert has much to be proud ofslibert has much to be proud ofslibert has much to be proud ofslibert has much to be proud ofslibert has much to be proud ofslibert has much to be proud of
Re: Drawing a Circle on a BinaryImage within a WPICameraExtension

Thanks very much; this helps tremendously!
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 09:48.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi