-
Notifications
You must be signed in to change notification settings - Fork 23
/
GeoAlgorithms.h
66 lines (50 loc) · 2.61 KB
/
GeoAlgorithms.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
/*##############################################################################
# GIPPY: Geospatial Image Processing library for Python
#
# Copyright (C) 2015 Applied Geosolutions
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
##############################################################################*/
#ifndef GIP_GEOALGORITHMS_H
#define GIP_GEOALGORITHMS_H
#include <gip/GeoImage.h>
#include <gip/GeoRaster.h>
#include <initializer_list>
namespace gip {
//! Create cloudmask using ACCA
GeoImage ACCA(const GeoImage&, std::string, float, float, int = 5, int = 10, int = 4000, dictionary=dictionary());
//! Stretch image into byte
std::string BrowseImage(const GeoImage&, int quality=75);
//! Create single image from multiple input images using vector file footprint
GeoImage CookieCutter(std::vector<std::string>, std::string, std::string,
float=1.0, float=1.0, bool crop=false, unsigned char=0, dictionary=dictionary());
//! Create new file with a Fmask cloud mask
GeoImage Fmask(const GeoImage&, std::string, int=3, int=5, dictionary=dictionary());
//! Kmeans
//GeoImage kmeans(const GeoImage&, std::string, int classes=5, int iterations=5, float threshold=1.0);
//! Create indices in one pass: NDVI, EVI, LSWI, NDSI, BI {product, filename}
dictionary Indices(const GeoImage&, dictionary, dictionary=dictionary());
//! Create output based on linear combinations of input
GeoImage LinearTransform(const GeoImage&, std::string, CImg<float>);
//! Runs the RX Detector (RXD) anamoly detection algorithm
GeoImage RXD(const GeoImage&, string);
//! Calculate spectral statistics and output to new image
GeoImage SpectralStatistics(const GeoImage&, std::string);
//! Spectral Matched Filter
//GeoImage SMF(const GeoImage& image, std::string, CImg<double>);
//! Calculate spectral correlation
//CImg<double> SpectralCorrelation(const GeoImage&, CImg<double> covariance=CImg<double>() );
//! Calculate spectral covariance
CImg<double> SpectralCovariance(const GeoImage&);
} // namespace gip
#endif // GIP_GEOALGORITHMS_H