-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #138 from eEcoLiDAR/development
Development
- Loading branch information
Showing
70 changed files
with
262,541 additions
and
550 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -105,3 +105,5 @@ ENV/ | |
.idea/tasks.xml | ||
.idea/eEcoLiDAR.iml | ||
.idea/misc.xml | ||
.idea/dictionaries/ | ||
.idea/inspectionProfiles/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,6 @@ dist: trusty | |
sudo: false | ||
|
||
python: | ||
- "2.7" | ||
- "3.5" | ||
- "3.6" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
__version__ = '0.2.0' | ||
__version__ = '0.3.0' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
laserchicken/feature_extractor/density_absolute_mean_norm_z_feature_extractor.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
"""Pulse penetration ratio and density absolute mean calculations. | ||
See https://github.com/eEcoLiDAR/eEcoLiDAR/issues/23. | ||
""" | ||
|
||
import numpy as np | ||
|
||
from laserchicken.feature_extractor.abc import AbstractFeatureExtractor | ||
from laserchicken.feature_extractor.density_absolute_mean_z_feature_extractor import \ | ||
DensityAbsoluteMeanZFeatureExtractor | ||
from laserchicken.keys import point, normalized_height | ||
|
||
# classification according to | ||
# http://www.asprs.org/wp-content/uploads/2010/12/LAS_1-4_R6.pdf | ||
GROUND_TAGS = [2] | ||
|
||
|
||
class DensityAbsoluteMeanNormZFeatureExtractor(DensityAbsoluteMeanZFeatureExtractor): | ||
"""Feature extractor for the point density.""" | ||
DATA_KEY = normalized_height | ||
|
||
@classmethod | ||
def provides(cls): | ||
""" | ||
Get a list of names of the feature values. | ||
This will return as many names as the number feature values that will be returned. | ||
For instance, if a feature extractor returns the first 3 eigen values, this method | ||
should return 3 names, for instance 'eigen_value_1', 'eigen_value_2' and 'eigen_value_3'. | ||
:return: List of feature names | ||
""" | ||
return ['density_absolute_mean_norm_z'] |
Oops, something went wrong.