View Single Post
  #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: 103
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, 132 views)
File Type: java Points.java (2.9 KB, 74 views)
File Type: java WPIImageWrapper.java (418 Bytes, 128 views)
Reply With Quote