I have a binary vtkImageData that a user can modify through some tools I provide them.  However, the user has requested an undo stack be made so they can go back through their changes.  In my case, storing a new binary vtkImageData every time the user changes it costs too much memory (these are large 3D volume sets).  Is there a way to store a difference between two binary vtkImageData&#39;s?  Ideally I&#39;d like to have just one vtkImageData which is the current image and then a stack of vtkImageDifferences (I made that class up) which are themselves small, but say how to go to either the next or previous state of a binary vtkImageData.<div>
<br></div><div>Does such a method exist?</div><div><br></div><div>Thanks</div>