|
OSSIM - Open Source Software Image Map
Version 1.9.0 (20180803)
|
#include <ossimKMeansClustering.h>
Classes | |
| class | Cluster |
Public Member Functions | |
| ossimKMeansClustering () | |
| ~ossimKMeansClustering () | |
| void | setNumClusters (ossim_uint32 K) |
| template<class T > | |
| void | setSamples (T *samples, ossim_uint32 num_entries) |
| template<class T > | |
| void | setPopulations (T *populations, ossim_uint32 num_entries) |
| bool | computeKmeans () |
| ossim_uint32 | getNumClusters () const |
| double | getMean (ossim_uint32 groupId) const |
| double | getSigma (ossim_uint32 groupId) const |
| double | getMinValue (ossim_uint32 groupId) const |
| double | getMaxValue (ossim_uint32 groupId) const |
| const ossimKMeansClustering::Cluster * | getCluster (ossim_uint32 i) const |
| void | setVerbose (bool v=true) const |
Public Member Functions inherited from ossimReferenced | |
| ossimReferenced () | |
| ossimReferenced (const ossimReferenced &) | |
| ossimReferenced & | operator= (const ossimReferenced &) |
| void | ref () const |
| increment the reference count by one, indicating that this object has another pointer which is referencing it. More... | |
| void | unref () const |
| decrement the reference count by one, indicating that a pointer to this object is referencing it. More... | |
| void | unref_nodelete () const |
| decrement the reference count by one, indicating that a pointer to this object is referencing it. More... | |
| int | referenceCount () const |
Private Attributes | |
| ossim_uint32 | m_numEntries |
| double * | m_samples |
| double * | m_populations |
| std::vector< Cluster > | m_clusters |
| bool | m_clustersValid |
| bool | m_verbose |
Additional Inherited Members | |
Protected Member Functions inherited from ossimReferenced | |
| virtual | ~ossimReferenced () |
Definition at line 25 of file ossimKMeansClustering.h.
| ossimKMeansClustering::ossimKMeansClustering | ( | ) |
Definition at line 13 of file ossimKMeansClustering.cpp.
| ossimKMeansClustering::~ossimKMeansClustering | ( | ) |
Definition at line 23 of file ossimKMeansClustering.cpp.
References m_clusters, m_populations, and m_samples.
| bool ossimKMeansClustering::computeKmeans | ( | ) |
Definition at line 37 of file ossimKMeansClustering.cpp.
References m_clusters, m_clustersValid, m_numEntries, m_populations, m_samples, m_verbose, max, min, n, OSSIM_DEFAULT_MAX_PIX_DOUBLE, and OSSIM_DEFAULT_MIN_PIX_DOUBLE.
Referenced by ossimShorelineTool::autoComputeThreshold(), and ossimKMeansFilter::computeKMeans().
| const ossimKMeansClustering::Cluster * ossimKMeansClustering::getCluster | ( | ossim_uint32 | i | ) | const |
Definition at line 233 of file ossimKMeansClustering.cpp.
References m_clusters.
Referenced by ossimKMeansFilter::getTile(), and ossimKMeansFilter::saveState().
| double ossimKMeansClustering::getMaxValue | ( | ossim_uint32 | groupId | ) | const |
Definition at line 224 of file ossimKMeansClustering.cpp.
References m_clusters, and ossim::nan().
| double ossimKMeansClustering::getMean | ( | ossim_uint32 | groupId | ) | const |
Definition at line 200 of file ossimKMeansClustering.cpp.
References m_clusters, and ossim::nan().
Referenced by ossimShorelineTool::autoComputeThreshold(), and ossimKMeansFilter::computeKMeans().
| double ossimKMeansClustering::getMinValue | ( | ossim_uint32 | groupId | ) | const |
Definition at line 216 of file ossimKMeansClustering.cpp.
References m_clusters, and ossim::nan().
|
inline |
Definition at line 50 of file ossimKMeansClustering.h.
Referenced by ossimKMeansFilter::computeKMeans().
| double ossimKMeansClustering::getSigma | ( | ossim_uint32 | groupId | ) | const |
Definition at line 208 of file ossimKMeansClustering.cpp.
References m_clusters, and ossim::nan().
Referenced by ossimShorelineTool::autoComputeThreshold(), and ossimKMeansFilter::computeKMeans().
| void ossimKMeansClustering::setNumClusters | ( | ossim_uint32 | K | ) |
Definition at line 30 of file ossimKMeansClustering.cpp.
References m_clusters, and m_clustersValid.
Referenced by ossimShorelineTool::autoComputeThreshold(), and ossimKMeansFilter::computeKMeans().
| void ossimKMeansClustering::setPopulations | ( | T * | populations, |
| ossim_uint32 | num_entries | ||
| ) |
Definition at line 81 of file ossimKMeansClustering.h.
References m_clustersValid, and m_populations.
Referenced by ossimShorelineTool::autoComputeThreshold(), and ossimKMeansFilter::computeKMeans().
| void ossimKMeansClustering::setSamples | ( | T * | samples, |
| ossim_uint32 | num_entries | ||
| ) |
Definition at line 69 of file ossimKMeansClustering.h.
References m_clustersValid, m_numEntries, and m_samples.
Referenced by ossimShorelineTool::autoComputeThreshold(), and ossimKMeansFilter::computeKMeans().
|
inline |
Definition at line 58 of file ossimKMeansClustering.h.
Referenced by ossimKMeansFilter::computeKMeans().
|
private |
Definition at line 64 of file ossimKMeansClustering.h.
Referenced by computeKmeans(), getCluster(), getMaxValue(), getMean(), getMinValue(), getSigma(), setNumClusters(), and ~ossimKMeansClustering().
|
private |
Definition at line 65 of file ossimKMeansClustering.h.
Referenced by computeKmeans(), setNumClusters(), setPopulations(), and setSamples().
|
private |
Definition at line 61 of file ossimKMeansClustering.h.
Referenced by computeKmeans(), and setSamples().
|
private |
Definition at line 63 of file ossimKMeansClustering.h.
Referenced by computeKmeans(), setPopulations(), and ~ossimKMeansClustering().
|
private |
Definition at line 62 of file ossimKMeansClustering.h.
Referenced by computeKmeans(), setSamples(), and ~ossimKMeansClustering().
|
mutableprivate |
Definition at line 66 of file ossimKMeansClustering.h.
Referenced by computeKmeans().
1.8.14