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

Plot features in 2D #123

Closed
pypoulp opened this issue May 29, 2018 · 2 comments
Closed

Plot features in 2D #123

pypoulp opened this issue May 29, 2018 · 2 comments

Comments

@pypoulp
Copy link

pypoulp commented May 29, 2018

Quick feature suggestion :
It would be nice to have the ability to plot detected features in 2D image view. I use it a lot in other photogrammetry solutions to select the right detector sensitivity for each specific dataset.

Not sure what would be the best way to implement it, C++ QT extension, or pure python solution ?

Thanks.

@yann-lty
Copy link
Member

This is something we started prototyping and it can actually be done in pure Python/QML, since generated feature files are easily parseable text files - one feature per line with x y orientation scale data.
Regarding implementation: the idea is to create a custom QQuickItem (i.e FeatureReader) in Python, taking a path to a feature file through a 'source' property. When this property is set, it loads/parses the feature file and turns the raw text data into a simple model (Python list of dicts, like: [{'x': 10.1, 'y': 20.5}, {'x': 50.2, 'y': 300.8}]). On the QML side, this model can then be used in a Repeater over the 2D viewer to instantiate points for each feature.
Hopefully, we'll be able to plug this very soon !

@natowi
Copy link
Member

natowi commented Jul 5, 2019

#539

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants