|
static float | computeUndersegmentationError (const cv::Mat &labels, const cv::Mat >) |
| Compute the Undersegmentation error as follows: More...
|
|
static float | computeOversegmentationError (const cv::Mat &labels, const cv::Mat >) |
|
static float | computeBoundaryRecall (const cv::Mat &labels, const cv::Mat >, float d=0.0025) |
| Compute boundary recall: More...
|
|
static float | computeBoundaryPrecision (const cv::Mat &labels, const cv::Mat >, float d=0.0025) |
| Compute boundary precision: More...
|
|
static float | computeExplainedVariation (const cv::Mat &labels, const cv::Mat &image) |
| Compute the explained variation of the given segmentation. More...
|
|
static float | computeNPUndersegmentationError (const cv::Mat &labels, const cv::Mat >) |
| Computes the Undersegmentation Error (Neubert, Protzel): More...
|
|
static float | computeLevinUndersegmentationError (const cv::Mat &labels, const cv::Mat >) |
| Compute the Undersegmentation Error (Levinshtein et al.): More...
|
|
static float | computeAchievableSegmentationAccuracy (const cv::Mat &labels, const cv::Mat >) |
| Compute achievable segmentation accuracy as follows: More...
|
|
static float | computeSumOfSquaredErrorRGB (const cv::Mat &labels, const cv::Mat &image) |
| Compute Sum-of-Squared Error on RGB. More...
|
|
static float | computeSumOfSquaredErrorXY (const cv::Mat &labels, const cv::Mat &image) |
| Compute Sum-of-Squared Error XY. More...
|
|
static float | computeMeanDistanceToEdge (const cv::Mat &labels, const cv::Mat >) |
| Compute Mean Distance to Edge: More...
|
|
static float | computeIntraClusterVariation (const cv::Mat &labels, const cv::Mat &image) |
| Compute Intra-Cluster Variation, that is the average standard deviation over all superpixels. More...
|
|
static float | computeCompactness (const cv::Mat &labels) |
| Compute Compactness as follows: More...
|
|
static float | computeContourDensity (const cv::Mat &labels) |
| Contour Density is given as. More...
|
|
static float | computeRegularity (const cv::Mat &labels) |
| Regularity can be computed as the fraction of boundary pixels of a superpixels and the boundary pixels of the corresponding bounding boxes. More...
|
|
static int | computeSuperpixels (const cv::Mat &labels) |
| Count the number of superpixels. More...
|
|
static void | computeSuperpixelSizes (const cv::Mat &labels, float &average_size, int &min_size, int &max_size, float &size_variation) |
| Compute superpixel size statistics. More...
|
|
static float | computeEdgeRecall (const cv::Mat &labels, const cv::Mat &edges, float d=0.0025) |
| Compute edge recall based on a computed edge map. More...
|
|
static float | computeAverageMetric (const std::vector< float > &values, const std::vector< float > &superpixels, int min_superpixels=200, int max_superpixels=5200) |
| Computes the average of a metric, i.e. computes the integral of the metric in the given superpixel range using the trapezoidal rule. More...
|
|
Provides measures to evaluate (over-) segmentations.
Copyright (c) 2016, David Stutz Contact: david.nosp@m..stu.nosp@m.tz@rw.nosp@m.th-a.nosp@m.achen.nosp@m..de, davidstutz.de All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
- Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
- Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
- Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- Author
- David Stutz
float Evaluation::computeBoundaryRecall |
( |
const cv::Mat & |
labels, |
|
|
const cv::Mat & |
gt, |
|
|
float |
d = 0.0025 |
|
) |
| |
|
static |
Compute boundary recall:
where TP is the number of true positives, and FN is the number of false negatives.
For each boundary pixel in the G, the corresponding boundary pixel in S is allowed to deviate by a euclidean distance of d times the image diagonal.
- Parameters
-
[in] | labels | superpixel labels as int image |
[in] | gt | ground truth segmentation as int image |
[in] | d | fraction of the diagonal to use as tolerance |
- Returns
- Rec(labels, gt)
Copyright (c) 2016, David Stutz Contact: david.nosp@m..stu.nosp@m.tz@rw.nosp@m.th-a.nosp@m.achen.nosp@m..de, davidstutz.de All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
- Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
- Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
- Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.