-
Notifications
You must be signed in to change notification settings - Fork 648
feat(iv): area probe #4767
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
feat(iv): area probe #4767
Conversation
|
Hi, Danielle, it's great to see you here, and this is a good start! I tried this out on my end, and I have a number of comments. I'm just going to list them all, in no particular order. Some of this is going to be pretty picky about minor UI issues. I think they are all fairly minor in the grand scheme of things, so don't be discouraged that it's not 100% on the first try. (Nothing I do with UIs ever is.)
|
7c28435 to
f2fef03
Compare
|
@lgritz, I made the suggested changes to the feature if you would like to take a look at it. |
Signed-off-by: Danielle Imogu <[email protected]>
Signed-off-by: Danielle Imogu <[email protected]>
Signed-off-by: Danielle Imogu <[email protected]>
Signed-off-by: Danielle Imogu <[email protected]>
Signed-off-by: Danielle Imogu <[email protected]>
Signed-off-by: Danielle Imogu <[email protected]>
Signed-off-by: Danielle Imogu <[email protected]>
Signed-off-by: Danielle Imogu <[email protected]>
Signed-off-by: Danielle Imogu <[email protected]>
Signed-off-by: Danielle Imogu <[email protected]>
|
I think the problem is that you tried to "merge". That's rarely necessary for a PR unless you're pretty sure there is a direct conflict between what you're working on and something committed since you branched off. I think that doing a "rebase" on top of the new main is much better, and yields a simple linear history. Hang on, I think I can fix this for you... Do you mind if I push a fix to your branch? |
|
By the way, it's good to see you back here, Danielle! I was really hoping you were going to pick up this work again and be able to get it fully merged. |
|
I don't mind at all, thank you so much! Sorry, I took time with it; school was winding down. It's good to be back! |
Signed-off-by: Larry Gritz <[email protected]>
|
ok, I pushed the changes to your fork -- cleanly rebased on top of main, fixed the one broken signature that was holding up the DCO. You'll need to fetch or pull on your end to get my changes to your local machine, and move your branch marker to the new one. (Or do a fresh checkout.) |
Signed-off-by: Danielle Imogu <[email protected]>
|
Thank you @lgritz! I did a bit of cleaning, so everything should work now. When you have time, I would appreciate feedback |
Signed-off-by: Larry Gritz <[email protected]>
Signed-off-by: Larry Gritz <[email protected]>
|
I pulled this to my machine, did a build, and played around with it a bit. Behavior-wise, this looks really good to me! I like how it works. It's also handy that when you're in area mode, if you just click, it shows you the value of that pixel. I don't have any additional complaints or suggestions about the behavior at this time. I'll take one more look at the code itself and see if I have any suggestions there. |
lgritz
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The code totally looks great. I made some incredibly minor suggestions, I think all about whitespace (we like 3 blank lines between standalone functions, and at most 1 consecutive blank line within a function body), and pointed out some areas of commented-out code that I suspect are code you were trying out at one point but but now can be removed from the final commit.
That's it. Quickly fix those things up, and we are definitely ready to merge!
This is a cool new feature, Danielle. Thanks for the great work.
|
No problem! I'll deal with those now |
Co-authored-by: Larry Gritz <[email protected]> Signed-off-by: Danielle Imogu <[email protected]>
Co-authored-by: Larry Gritz <[email protected]> Signed-off-by: Danielle Imogu <[email protected]>
Co-authored-by: Larry Gritz <[email protected]> Signed-off-by: Danielle Imogu <[email protected]>
Co-authored-by: Larry Gritz <[email protected]> Signed-off-by: Danielle Imogu <[email protected]>
Signed-off-by: Danielle Imogu <[email protected]>
Signed-off-by: Danielle Imogu <[email protected]>
Signed-off-by: Larry Gritz <[email protected]>
lgritz
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, Danielle. Thanks for making the corrections quickly. Looks great, congrats!
Fixes AcademySoftwareFoundation#4714 This PR adds support for selecting a rectangular region within an image to compute and display per-channel minimum, maximum, and average values. The feature can be activated through the Tools menu or by using a keyboard shortcut (Ctrl-A / Cmd-A) . Once active, the user can click and drag with the left mouse button to define a rectangular area, which is visually indicated by a blue outline. Upon releasing the mouse button, the tool calculates statistics for all pixels within the selected area and displays the results in the status bar. --------- Signed-off-by: Danielle Imogu <[email protected]>
Fixes AcademySoftwareFoundation#4714 This PR adds support for selecting a rectangular region within an image to compute and display per-channel minimum, maximum, and average values. The feature can be activated through the Tools menu or by using a keyboard shortcut (Ctrl-A / Cmd-A) . Once active, the user can click and drag with the left mouse button to define a rectangular area, which is visually indicated by a blue outline. Upon releasing the mouse button, the tool calculates statistics for all pixels within the selected area and displays the results in the status bar. --------- Signed-off-by: Danielle Imogu <[email protected]>
Fixes #4714
Description
This PR adds support for selecting a rectangular region within an image to compute and display per-channel minimum, maximum, and average values.
The feature can be activated through the Tools menu or by using a keyboard shortcut (Ctrl-A / Cmd-A) . Once active, the user can click and drag with the left mouse button to define a rectangular area, which is visually indicated by a blue outline. Upon releasing the mouse button, the tool calculates statistics for all pixels within the selected area and displays the results in the status bar.
Checklist:
need to update the documentation, for example if this is a bug fix that
doesn't change the API.)
(adding new test cases if necessary).
corresponding Python bindings (and if altering ImageBufAlgo functions, also
exposed the new functionality as oiiotool options).
already run clang-format before submitting, I definitely will look at the CI
test that runs clang-format and fix anything that it highlights as being
nonconforming.