#include <algorithm>
#include <vector>
#include <stdio.h>
#include <ary.h>
#include "extremaConfig.h"
#include "extremaParams.h"
Namespaces | |
namespace | extrema |
namespace | std |
Classes | |
struct | extrema::BoundaryPoint |
A structure that holds coordinates of a point in BoundaryRegion i.e. the boundary representation of a region. More... | |
struct | extrema::RLEItem |
A structure that holds coordinates of a RLE element in RLERegion i.e. the RLE representation of a region. More... | |
struct | extrema::Region |
A structure with common statistics of BoundaryRegion and RLERegion. More... | |
struct | extrema::RLERegion |
Description of a RLE region. More... | |
struct | extrema::BoundaryRegion |
Description of a boundary region. More... | |
struct | extrema::ExtremaStats |
Timing statistics of the detector, gathered only if TIME_STATS is set. More... | |
struct | extrema::RLEExtrema |
Old interface structure that holds result of getRLEExtrema. More... | |
struct | extrema::BoundaryExtrema |
Old interface structure that holds result of getBoundaryExtrema. More... | |
Functions | |
BoundaryExtrema | extrema::getBoundaryExtrema (const ExtremaParams ¶ms, const ExtremaImage &image, int both=3) |
Old interface function, produces BoundaryRegions for a given image. Computes MSERs: both=1 +, both = 2 -, or both = 3 + and -. | |
RLEExtrema | extrema::getRLEExtrema (const ExtremaParams &par, const ExtremaImage &image, int both=3) |
Old interface function, produces RLERegions for a given image. Computes MSERs: both=1 +, both = 2 -, or both = 3 + and -. | |
void | extrema::extremaPrepareImage (const ExtremaParams ¶ms, const ExtremaImage &image) |
Prepares image for detection of MSER regions. | |
void | extrema::extremaAttachImage (const ExtremaParams ¶ms, utls::BAry *image) |
Assigns already prepared image for detection of MSER regions. | |
void | extrema::extremaInvertImage () |
Inverts image in internal structure. | |
void | extrema::extremaBoundaryRegions (const ExtremaParams ¶ms, bool inverted, vector< BoundaryRegion > &result) |
Detects MSERs inverted or not inverted image. | |
void | extrema::extremaBoundaryEllRegions (const ExtremaParams ¶ms, bool inverted, vector< BoundaryRegion > &result) |
Detects MSERs inverted or not inverted image and computes centroids and second moments of each region. | |
void | extrema::extremaRLERegions (const ExtremaParams ¶ms, bool inverted, vector< RLERegion > &result) |
Detects MSERs inverted or not inverted image and computes centroids and second moments of each region. | |
void | extrema::extremaCleanup (bool detach_only=false) |
Cleans up internal image structure. | |
const ExtremaStats & | extrema::extremaStats () |
Returns timing statistics. | |
void | extrema::exportRLEVector (FILE *fid, vector< RLERegion > &rle_vector) |
void | extrema::exportBoundaryVector (FILE *fid, vector< BoundaryRegion > &boundary_vector) |
void | extrema::exportBoundaryVectorGF (FILE *fid, vector< BoundaryRegion > &boundary_vector) |
void | extrema::exportAffVector (FILE *fid, vector< RLERegion > &rle_vector, double factor, int krys_compat) |
void | extrema::RLE2Ellipse (const vector< RLEItem > &rle, double &barX, double &barY, double &sumX2, double &sumXY, double &sumY2) |
void | extrema::ReducedBoundary2RLE (vector< BoundaryPoint > &reduced_boundary, vector< RLEItem > &rle) |
This file contains main external interface of the MSERs detector.