I currently use a NDA-library (non commercial) which has zero documentation and uses EMGU. Here is a example for my Question:
public void example()
{
Image<Gray,byte> exp = new Image<Gray,byte>(128,128);
foo(exp);
exp.Dispose();
}
public bool foo(Image<Gray,byte> bar)
{
//magic here
//bar.Dispose() ??
return true;
}
When I pass an EMGU-Image from one function to another, do i have to call .Dispose()
in the called function, too? Or is it sufficient to call it in the callee?