-
Notifications
You must be signed in to change notification settings - Fork 11
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
WIP: Add baseline comparisons to tests. #48
base: main
Are you sure you want to change the base?
WIP: Add baseline comparisons to tests. #48
Conversation
Add baseline comparisons to tests. Add the corresponding SHA512 hash files.
Folks, I had a look at the issue #36, and have some questions:
The test at issue are
On the other hand, Thanks. |
@jhlegarreta good questions. My general go-to format is MetaImage, .mha, because it supports all pixel components types (like |
Hey @jhlegarreta, you caught another one, thanks! About the |
@phcerdan @thewtex I tried using metaimage format to save the images. Setting the compression to Correct me if I'm wrong but we've got at least two possibilities:
Any thoughts? Thanks [1] https://itk.org/ItkSoftwareGuide (Section 9.4) |
@jhlegarreta that compression is great. I wonder, we can reduce the size of the 2D image from 512x512 to something smaller (128x128?) to fit under 50kb. |
@phcerdan I guess that's doable, but:
@thewtex @fbudin69500 for the second question? |
@jhlegarreta regarding casting, I think setting the tolerance with the many option of the ITK test driver image comparison tool offers more flexibility. |
@jhlegarreta yeah, I mean changing the input image, so the output will be shrinked as well. |
If reducing the input does not impact on the range of frequency and spatial analysis, I'm fine with it then. Yep, Matt, you're right. We could use the appropriate tolerance option for the comparison command in May be |
I searched for a smaller checker board image used in tests with no luck. We are using a 512x512 and 540x3--, right now. |
Then I guess keeping the existing ones is acceptable. Now, we should figure out how to resolve the hashing issue with |
Another solution if it is simple enough is to generate your image with a
few lines of code. I don't think there is a checkerboard image source
filter in ITK, but maybe it would be helpful to add that.
But a 2D image 521x512 should not be too large, so it should not be a
problem to incorporate it in the test images.
…On Fri, Aug 11, 2017 at 2:10 PM, Jon Haitz Legarreta Gorroño < ***@***.***> wrote:
Then I guess keeping the existing ones is acceptable.
Now, we should figure out how to resolve the hashing issue with float/
double pixel types. and how we can perform the regression on image
baselines/add the tolerance for MetaImage output format files.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<https://github.com/phcerdan/ITKIsotropicWavelets/pull/48#issuecomment-321882102>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAYZGNSLZjbiDmalCeitwOj1ROzhdVEMks5sXJj-gaJpZM4Nx_Xc>
.
|
@jhlegarreta This is getting stale. It looks like important testing improvements. Should this be changed from a WIP and submitted? |
@hjmjohnson I do not have the necessary time to devote to this at this time unfortunately. Sooner or later, I'd like to come back over this, but I'd leave it as it is for now. But the present CI status will not be fixed by this. Commit 80fefd4 should have fixed the errors reported in discourse but CI shows that this has brought other consequences. |
Add baseline comparisons to tests.
Add the corresponding SHA512 hash files.