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

How to Invert a Mask Image? #2706

Open
Affonso-Gui opened this issue Jun 30, 2022 · 4 comments
Open

How to Invert a Mask Image? #2706

Affonso-Gui opened this issue Jun 30, 2022 · 4 comments

Comments

@Affonso-Gui
Copy link
Member

How to invert a mask image in the jsk_recognition pipeline?
I have the following:
mask

And want this:
mask_invert

@iory
Copy link
Member

iory commented Jun 30, 2022

@Affonso-Gui
Copy link
Member Author

Thanks, it worked for me with negative: true and clip: false, although with significant drops in performance (10Hz -> 6Hz).

Maybe we could also add a negative option directly to the RobotToMask node?

@iory
Copy link
Member

iory commented Jun 30, 2022

Maybe we could also add a negative option directly to the RobotToMask node?

I think the general direction is to create a node that inverts the mask.

@Affonso-Gui
Copy link
Member Author

Looking forward to an InvertMask node.

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

No branches or pull requests

2 participants