Skip to content
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

Resolution for output images #33

Open
ghost opened this issue Jul 31, 2017 · 1 comment
Open

Resolution for output images #33

ghost opened this issue Jul 31, 2017 · 1 comment

Comments

@ghost
Copy link

ghost commented Jul 31, 2017

Marcus, Thanks for sharing your nice augmentation tool. I really like it.

I am wondering how to keep output images to be the same resolution as input images after finishing augmentation. I do see that there is a loss of resolution for augmented images. Please let me know where I could make a change for the code in order to keep the same resolutions. Thank you for your advice!

Best regards,
Peter

@mdbloice
Copy link
Owner

mdbloice commented Aug 1, 2017

Hi Peter,
I assume you mean the quality of the images rather than the dimensions of the images? In that case, saving as PNG may help, but each operation is going to introduce some kinds of artefacts due to resampling and so on.

Right now, users do not have the ability to change the resampling method (most operations default to bicubic) but I will add the ability to specify this in a future version, which I plan to release soon.

Of course you can add a resize operation as the final operation to a pipeline using the resize(probability, width, height) method with probability set to 1, if you do mean the dimensions of the images.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant