FDLSGM: Fast Directed Line Segment Grouping Method
Project description
Fast Directed Line Segment Grouping Method
Overview
This package will provide an algorithm and interface to group elementary line segments in terms of direction and vicinity. The algorithm used is based on the algorithm developed by Jang & Hong (2002)[^JH2002]. The software efficiently finds line segments from a bunch of elemental directed line segments placed in a three-dimensional space.
Interfaces
C++
const std::vector<baseline_view>
find_segments(const std::vector<dls>& pool,
const size_t& size_threshold = 6,
const parameter& param_insert = default_param_insert,
const parameter& param_reallocate = default_param_reallocate,
const parameter& param_coalesce = default_param_coalesce);
const std::vector<baseline_view>
find_segments(const size_t& n_elements,
const double* pool,
const size_t& size_threshold = 6,
const parameter& param_insert = default_param_insert,
const parameter& param_reallocate = default_param_reallocate,
const parameter& param_coalesce = default_param_coalesce);
Python
def solve(ndarray pool, object param = None):
''' Find line segments from a set of elementary line segments.
Parameters:
pool (numpy.ndarray): N x 6 array containing the coordinates.
param (solve_parameters): Parameter set for solver.
Return:
list of baseline.
'''
Dependencies
The library is written in C++11 and do not depends on any library outside of STL
. The Python interface is depends on NumPy
. The library is developed on g++
version 5.4 installed in Linux Mint 18.1 (serena) and Python 3.7.1.
References
[^JH2002]: Jeong-Hun Jang & Ki-Sang Hong, Pattern Recognition 35 (2002), 2235–2247 (doi: 10.1016/S0031-3203(01)00175-3)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for fdlsgm-0.2.6-cp37-cp37m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 95c8debecdd124917f5ab00f50aaa5b939e38efe7d458d8e0458f850868072e4 |
|
MD5 | 70181cafd53a57f1d34ef15e4c625bfd |
|
BLAKE2b-256 | 17452024a8aaf0b4429bd550604b4fa28ed002468d1b3f1b67d404310537bc18 |