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

Implemented new features: first issue and second issue #5

Closed
wants to merge 37 commits into from

Conversation

davide-scintu
Copy link

@davide-scintu davide-scintu commented Jan 27, 2023

Changelog

What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)

  • Image Histogram
    This feature allows a user to choose an image from the dataset, saving it and have its histogram shown compared to its original feedback image.

  • Image Transformation
    This feature allows a user to choose an image from the dataset and choose a value from -10.0 to +10.0 (with 0.1 step) to pass to enhancements factors to modify it. The result shows the difference between the output image and the original one.

Old functionalities preserved

Other information:(does the pr fix some issues? Tag them with #)

davide-scintu and others added 30 commits November 27, 2022 19:07
…e home.html file, always preserving the previous functionalities
Deleted classifications_histogram.py because the portion of code I needed now is inside classifications.py
Modified home.html to have another 'here' button for the new functionality to implement
… the plotted image in the created imagenet_histogram directory
…code. Transformed images are saved in a new folder
…t, putting default value to 1.0 to all enhancement's factors
Copy link
Contributor

@maurapintor maurapintor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The code looks good. The only thing left is removing some comments in two of the files. Also, I would suggest that you improve the documentation of the pull request itself. You can add the links to the issues of the original repository to clarify what you are solving ("first and second issue" is not much informative). As soon as these things are fixed, the assignment will be considered done.



img_one_ch = 'app/static/imagenet_subset/n01443537_goldfish.JPEG'
# print(img_one_ch)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think these are leftover comments that can be removed. @davide-scintu Can you fix this?

# print(type(img_one_ch))
plot_histogram(img_one_ch)

# img_rgb = 'app/static/imagenet_subset/n01443537_goldfish.JPEG'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here 🔍

trans_test.py Outdated
"""IMAGE TRANSFORMATIONS"""

"""Open and image and show it"""
# im = Image.open('app/static/imagenet_subset/n01443537_goldfish.JPEG')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cleanup comments in this file as well please

@davide-scintu davide-scintu changed the title Pull request project Implemented new features: first issue and second issue Jan 30, 2023
Copy link
Contributor

@maurapintor maurapintor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, now it looks good.
👍
Well done!

As discussed, I will not merge this pull request to the main branch of the original repository, as it would cause merge conflicts with the other students working individually on the same project.

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

Successfully merging this pull request may close these issues.

2 participants