|
Re: SmartDashboard Vision Processing
I found the bug in edu.wpi.first.wpijavacv.WPIBinaryImage.java in project WPIJavaCV. The findContours() method was doing
final CvMemStorage storage = CvMemStorage.create();
without calling deallocate()
I moved the "storage" variable to an instance variable and added method
protected void disposed() {
super.disposed();
this.storage.deallocate();
}
all better now.
|