-
Notifications
You must be signed in to change notification settings - Fork 26
Description
I would like to be able to do DIC on in-memory images without having to write them to a file (they are not stored in a standard format). I'd be happy to implement the capability and submit a pull request.
Any suggestions on the approach?
One simple option would be to modify the Image2D class to handle both cases (filename, and Array2D, only one of which is valid at any given time.
Another option could be to make the Image2D class a superclass with subclasses for file input and array input.
A third option could be to make the existing Image2D class no longer "final" and make its methods virtual, so that a derived class could be externally defined. In this case the interface functions would need to become virtual methods (or thin layers over virtual methods) so that they will properly call the derived class's methods.
Thoughts?