libExtrema.h File Reference
#include <algorithm>
#include <vector>
#include <stdio.h>
#include <ary.h>
#include "extremaConfig.h"
#include "extremaParams.h"

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...
 

Namespaces

 extrema
 

Functions

BoundaryExtrema extrema::getBoundaryExtrema (const ExtremaParams &params, 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 -. More...
 
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 -. More...
 
void extrema::extremaPrepareImage (const ExtremaParams &params, const ExtremaImage &image)
 Prepares image for detection of MSER regions. More...
 
void extrema::extremaAttachImage (const ExtremaParams &params, utls::BAry *image)
 Assigns already prepared image for detection of MSER regions. More...
 
void extrema::extremaInvertImage ()
 Inverts image in internal structure. More...
 
void extrema::extremaBoundaryRegions (const ExtremaParams &params, bool inverted, vector< BoundaryRegion > &result)
 Detects MSERs inverted or not inverted image. More...
 
void extrema::extremaBoundaryEllRegions (const ExtremaParams &params, bool inverted, vector< BoundaryRegion > &result)
 Detects MSERs inverted or not inverted image and computes centroids and second moments of each region. More...
 
void extrema::extremaRLERegions (const ExtremaParams &params, bool inverted, vector< RLERegion > &result)
 Detects MSERs inverted or not inverted image and computes centroids and second moments of each region. More...
 
void extrema::extremaCleanup (bool detach_only=false)
 Cleans up internal image structure. More...
 
const ExtremaStats & extrema::extremaStats ()
 Returns timing statistics. More...
 
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)
 

Detailed Description

Interface of MSER detector.

This file contains main external interface of the MSERs detector.