-
-
Notifications
You must be signed in to change notification settings - Fork 322
Create "Add" node #2528
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
Create "Add" node #2528
Conversation
Create a new chaiNNer node that "adds" values to an input image.
Is this functionality not already covered by the Brightness & Contrast node? |
I would say that is a form of "combined functionality" in the Brightness/Contrast node. As I plan to add more atomic image processing operations to chaiNNer having individual Core Image processing operators available such as Add, Multiply, Divide, etc allows the users to be much more granular in their processing steps with the application. |
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.
A few more thoughts I had while reviewing:
- Considering your plan, it might be good to make a new node group for these nodes. You can do that later of course.
- Please note that chainner's images are always in the range 0-1. So if the Add node returns values outside that range, chainner will automatically clip them (with
np.clip(img, 0, 1)
).
backend/src/packages/chaiNNer_standard/image_adjustment/adjustments/add.py
Outdated
Show resolved
Hide resolved
backend/src/packages/chaiNNer_standard/image_adjustment/adjustments/add.py
Outdated
Show resolved
Hide resolved
Cleanup and remove unneeded items.
remove unused imports
Anything to make the CI happy!
(What's left to do here? @joeyballentine @RunDevelopment ) |
Ci, so formatting. |
Ruff says its good, what do ye say?
backend/src/packages/chaiNNer_standard/image_adjustment/adjustments/add.py
Outdated
Show resolved
Hide resolved
Normalize the domain of the Add operation.
linting
Create a new chaiNNer node that "adds" values to an input image.