Give PixyMon a graphical editor for color signatures. #24
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR adds a dialog to PixyMon which maps colors from the incoming raw video onto the UV plane and allows drag and drop editing of color signatures as rectangles in UV space. This allows for more precise visualization and editing of signatures. I'm happy to make adjustments or correct any areas where I haven't properly understood the "pixy way".
The UI is fairly straightforward, recognizing the following gestures:
To simplify control of the signature area, when a signature is edited in this dialog its range is set to 1.0 and its (u,v) mean is placed at the center of the box. The range can later be adjusted as normal, but there's less need to do this when you can precisely place the signature area itself.
Changes are previewed in real time, and the dialog buttons have the same meanings as the ones on the config dialog. I've included a screenshot below: