Go to Post I think there is much to be learned from working in teams, and team projects, but even more when you go out on your own some time for something you are truly passionate about. - paul_v [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

 
 
 
Thread Tools Rating: Thread Rating: 4 votes, 5.00 average. Display Modes
Prev Previous Post   Next Post Next
  #4   Spotlight this post!  
Unread 06-02-2012, 11:30
pblankenbaker pblankenbaker is offline
Registered User
FRC #0868
 
Join Date: Feb 2012
Location: Carmel, IN, USA
Posts: 105
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: SmartDashboard Vision Processing

No problem dominique.

a - I've attached the PolygonFinder.java source file (and Points.java helper class) that we are/were using to access the javacv stuff outside of the WPI API.

b - I've attached the WPIImageWrapper.java class which we are using to get access to the underlying IplImage object associated with each WPIImage object. To use this wrapper class, you construct a instance passing in a WPIImage object to the constructor. You can then use the getIplImage() method to gain access to the underlying IplImage.

NOTE: There appears to be a fix to the WPI image processing classes in the SmartDashboard that takes care of the memory leak. See this post.

The PolygonFinder.java file attached has two entry points (one that takes a WPIBinaryImage and one that takes a IplImage).

Hope that helps,
Paul
Attached Files
File Type: java PolygonFinder.java (12.0 KB, 133 views)
File Type: java Points.java (2.9 KB, 75 views)
File Type: java WPIImageWrapper.java (418 Bytes, 130 views)
Reply With Quote
 


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 18:01.

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