GSoC/2019/StatusReports/hellozee: Difference between revisions
Line 69: | Line 69: | ||
* [https://invent.kde.org/kde/krita/commit/1615e9129bcd31b21b3bde6d44e3d4d76a1e159e Checkpoints are drawn now, :)] | * [https://invent.kde.org/kde/krita/commit/1615e9129bcd31b21b3bde6d44e3d4d76a1e159e Checkpoints are drawn now, :)] | ||
* [https://invent.kde.org/kde/krita/commit/34386d2f7ea0ca09fad2ca7ca904575769d77025 Implemented dual checkpoint procedure, somewhat like PS] | * [https://invent.kde.org/kde/krita/commit/34386d2f7ea0ca09fad2ca7ca904575769d77025 Implemented dual checkpoint procedure, somewhat like PS] | ||
* [https://invent.kde.org/kde/krita/commit/faa1e5597cd0d98ed8d400eca3e38b42932566a8 Selection can be canceled on the fly now] | |||
* [https://invent.kde.org/kde/krita/commit/6a3c01182d3298977599d763ae3b51a433467ce4 Fixed crashing while completing the selection, can finish selection] | |||
* [https://invent.kde.org/kde/krita/commit/f430367d54d15bd6f76d7bcd449d89ebf0a3045d Reimplemented the frequency-based checkpoint procedure] | |||
* [https://invent.kde.org/kde/krita/commit/0e5e553f34d70c8430940f8cc342d91cfaf5c50e Updated the cursor and adjusted the checkpoint procedure] |
Revision as of 04:01, 22 July 2019
Porting Magnetic Lasso to Krita
Summary
- Project Name: Porting Magnetic Lasso to Krita
- Proposal: View Proposal
- Abstract: The Magnetic Lasso was lost during the port from Qt3 to Qt4, this project tries to continue the working to port the tool to the current version of Krita
Project Goals
- Add the Magnetic Lasso Selection Tool in Krita.
- The tool when used should stick to the edges found in the picture.
- Starts after user left clicks and makes an anchor, edges are scanned from the anchor point.
- After the mouse moves a fixed amount of distance the tool automatically places another anchor point and uses it as a reference.
- The user can also manually set an anchor point, him/herself.
- The search radius which is used to determine, upto what area the tool would search for an edge as well as the frequency of anchors can be adjusted by the user.
- The above-mentioned parameters as well as the threshold for determining edges can be adjusted using the tool options widget.
Implementations Status
Status report on each goal implementation.
KisMagneticWorker
Goal: Implement the worker for the algorithm and the corresponding unit test.
Current Status Done
Related blog posts
- Initial Post
- Understanding boost::astar_search
- Another week with boost
- Done with boost
- Deliverable 1 : [✓]
Commits and Differentials
- Adding an initial framework for the test
- Applying Laplacian of Gaussian on KisPaintDevice
- Added the heuristic function for the boost::astar_search
- Implemented boost::graph interface for KisPaintDevice
- an intesity function to the graph for reading threshold
- Implemented boost::astar_search using the KisMagneticGraph wrapper
- heuristic function takes threshold into account now
- Fixed the intensity function
- Finished the Algorithm
- Added docs and completed the test
KisToolSelectMagnetic
Goal: Implement the frontend required for the tool
Current Status Improving user experience and finishing up the UI
Related blog posts
Commits and Differentials
- Initial take on the UI
- Reduced the number of calls KisPaintDevice::exactBounds() is called
- Creates a bouding rectangle before searching
- LoG now runs on tool activation
- Optimized the algorithm, implemented checkpoints
- Selection can be done with the Magnetic Lasso
- Anchor points are saved now
- Selection works as expected
- Checkpoints are drawn now, :)
- Implemented dual checkpoint procedure, somewhat like PS
- Selection can be canceled on the fly now
- Fixed crashing while completing the selection, can finish selection
- Reimplemented the frequency-based checkpoint procedure
- Updated the cursor and adjusted the checkpoint procedure