Skip to content

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

Merged
merged 8 commits into from
Feb 3, 2024
Merged

Create "Add" node #2528

merged 8 commits into from
Feb 3, 2024

Conversation

mrjschulte
Copy link
Contributor

Create a new chaiNNer node that "adds" values to an input image.

Create a new chaiNNer node that "adds" values to an input image.
@joeyballentine
Copy link
Member

Is this functionality not already covered by the Brightness & Contrast node?

@mrjschulte
Copy link
Contributor Author

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.

Copy link
Member

@RunDevelopment RunDevelopment left a 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:

  1. Considering your plan, it might be good to make a new node group for these nodes. You can do that later of course.
  2. 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)).

Cleanup and remove unneeded items.
remove unused imports
Anything to make the CI happy!
@mrjschulte
Copy link
Contributor Author

(What's left to do here? @joeyballentine @RunDevelopment )

@RunDevelopment
Copy link
Member

Ci, so formatting.

Normalize the domain of the Add operation.
linting
@joeyballentine joeyballentine merged commit 25d9271 into chaiNNer-org:main Feb 3, 2024
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.

3 participants