-
Notifications
You must be signed in to change notification settings - Fork 618
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Automatic testing on Travis with reference images #156
Comments
@lcampagn your idea of a |
I have added a "test-data" repository for storing test images. I'll suggest a very basic API:
In a standard test (started with There would also be a separate testing "audit" mode (maybe by running |
I am not really concerned if average users are not able to run the image tests. The purpose of this is to ensure that we generate consistent results across code changes. We have plenty of other tests that are skipped if the requisite packages are not importable. |
@suraj, would you like to start a vispy.util.testing module with a simple test_image_match function (just the test, not the audit)? For now you can use git manually to handle the image data, and later on we can decide on the best way to automate it. |
That would be good. |
Maybe best to make a PR based on the master branch, and then merge the same code into your visuals PR. |
This should all just go in |
Oops! |
I was motivated by a few things to separate it out a couple months back. First, it's more consistent with |
I think not. You're not getting there with rigid registration, and elastic registration (apart from being hard) will result in wobbling. The whole points is that the two images to compare are already almost aligned. Instead I propose we compare the images in a way that small variations in the location of edges are tolerated. We could do this in the Fourier domain, or perhaps using morphology. |
Having |
@suraj, I pushed a first commit to the test-data repo, so it should be forkable now. |
Thanks. It's forkable now. |
@mssurajkaiga FYI I have a little bit of code you might find useful. Testing for https://github.com/LABSN/expyfun/blob/master/expyfun/_git.py#L12 But the actually useful thing is the convenience wrapper it uses for https://github.com/LABSN/expyfun/blob/master/expyfun/_utils.py#L178 |
@Eric89GXL Thanks. |
We have this now. |
Requires basic image registration algorithm. I think some work may have been done during the code camp?
Related to #89.
The text was updated successfully, but these errors were encountered: