Has anyone considered the possibility of adding a rudimentary image
hashing/fingerprinting capability to sage?

I can think of one very useful application. Currently (to my
knowledge) sage tests have no way of comparing graphical output. One
can test certain datasets, for example the complex_to_rgb data
provided by complex_plot. You can't however perform any check other
than a visual sanity check on the final image. If there were some
method for hashing the png outputs, one could write doctests that
either check that the image has not been changed in any way (hashing),
or that the image remains fundamentally the same (fingerprinting).

My cursory research reveals no portable libraries to do this sort of
thing in sage, so implementing it would probably be a fair amount of
work (not to mention improving a whole bunch of extant tests). Still,
it might be worth it.

Ethan

-- 
To post to this group, send an email to [email protected]
To unsubscribe from this group, send an email to 
[email protected]
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

Reply via email to