Skip to content

Image enhancements#1200

Merged
BryonLewis merged 9 commits into
mainfrom
image-enhancements
Mar 28, 2022
Merged

Image enhancements#1200
BryonLewis merged 9 commits into
mainfrom
image-enhancements

Conversation

@BryonLewis
Copy link
Copy Markdown
Collaborator

@BryonLewis BryonLewis commented Mar 15, 2022

fixes #1197

I added in a small basic image enhancement to modify the filter on SVG filter.

I added a context menu because I have a feeling these effects might expand in the future beyond just doing contrast adjustments. I guess it could be a small pop-up like the playback speed, but I'm guessing that we want to add more stuff in the future to this.

Image/Video Annotators have been modified to accepting an intercept as well as a brightness setting. So you can adjust both to adjust the brightness and contrast of the image.

I created useImageEnhancments.ts with the idea that in the future the image enhancements may be more complex with more data being transferred. That's also why it accepts markChangesPending, so that the setting could be saved in the future for the dataset metadata.

image

@BryonLewis BryonLewis changed the title [WIP] Image enhancements Image enhancements Mar 28, 2022
@BryonLewis BryonLewis marked this pull request as ready for review March 28, 2022 13:48
@subdavis subdavis self-requested a review March 28, 2022 15:23
Copy link
Copy Markdown
Contributor

@subdavis subdavis left a comment

Choose a reason for hiding this comment

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

Works perfectly, code looks great.

Just need to remove markChangesPending

Edit: can you also add this line to documentation in UI-Timeline.md

* ==:material-contrast-box:== will open the image contrast adjustment dialog.

Comment thread client/src/use/useImageEnhancements.ts Outdated
{blackPoint?: number; whitePoint?: number }) => {
VueSet(imageEnhancements.value, 'blackPoint', blackPoint);
VueSet(imageEnhancements.value, 'whitePoint', whitePoint);
markChangesPending();
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This composition function should not call markChangesPending. There's nothing to save. It should probably not take it as a param.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

🤦 - I was in the middle of adding saving of the metadata, and I must have forgot to remove it.

Copy link
Copy Markdown
Contributor

@subdavis subdavis left a comment

Choose a reason for hiding this comment

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

💯

@BryonLewis BryonLewis merged commit 9e06426 into main Mar 28, 2022
@BryonLewis BryonLewis deleted the image-enhancements branch March 28, 2022 18:09
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.

Client Side Image Enhancement

2 participants