Skip to main content
Question

Create minimum bounding triangle?

  • December 19, 2018
  • 5 replies
  • 52 views

gcarmich
Participant
Forum|alt.badge.img+1

Is it possible to create minimum bounding triangles for groups of points using FME desktop?

5 replies

jdh
Contributor
Forum|alt.badge.img+28
  • Contributor
  • December 19, 2018

Not natively.

A linear-time algorithm is described in https://link.springer.com/article/10.1007/s40314-014-0198-8 and the corresponding c++ implementation is available at https://github.com/ovidiuparvu/minimal-area-triangle

OpenCV also has an implementation of the minimumEnclosingTriangle based on O'Rourke's algorithm.

 

https://docs.opencv.org/master/d3/dc0/group__imgproc__shape.html#ga1513e72f6bbdfc370563664f71e0542f

gcarmich
Participant
Forum|alt.badge.img+1
  • Author
  • Participant
  • December 20, 2018
jdh wrote:

Not natively.

A linear-time algorithm is described in https://link.springer.com/article/10.1007/s40314-014-0198-8 and the corresponding c++ implementation is available at https://github.com/ovidiuparvu/minimal-area-triangle

OpenCV also has an implementation of the minimumEnclosingTriangle based on O'Rourke's algorithm.

 

https://docs.opencv.org/master/d3/dc0/group__imgproc__shape.html#ga1513e72f6bbdfc370563664f71e0542f

Can I easily integrate these implementation into a Transform for use directly in FME?


jdh
Contributor
Forum|alt.badge.img+28
  • Contributor
  • December 20, 2018
gcarmich wrote:

Can I easily integrate these implementation into a Transform for use directly in FME?

If you know a bit of python and install OpenCV it should be relatively straightforward to extract the geometry of the features and convert them to the point array needed for the MEC algorithm using the pythonCaller.

 

https://knowledge.safe.com/articles/841/install-python-modules-into-fme.html

 

 


fmelizard
Safer
Forum|alt.badge.img+18
  • Safer
  • December 22, 2018

Out of curiosity, what is the application of this? Seems like an interesting thing we could eventually support natively.


gcarmich
Participant
Forum|alt.badge.img+1
  • Author
  • Participant
  • December 22, 2018

It could be helpful in aligning wireless field measurement back to their point of origin when propagated by a directional antenna.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings