Classes | |
struct | ExtremaImage |
A structure holding image parameters. More... | |
struct | ExtremaParams |
A structure with MSER detector parameters. More... | |
struct | t_ipoint |
Internal structure, holds 2D point coordinates. More... | |
struct | s_sortpixels |
Internal structure with intensity histogram. More... | |
struct | s_region |
Internal region structure. More... | |
struct | s_region_equiv |
Internal structure with a node of the label equivalency tree. More... | |
struct | s_thresh_par |
Internal structure with processed detector's parameters. More... | |
struct | s_borderpixel |
Structure with pixel of the extended boundary. More... | |
struct | s_thresh_def |
Internal structure holding threshold paramaters. More... | |
struct | BoundaryPoint |
A structure that holds coordinates of a point in BoundaryRegion i.e. the boundary representation of a region. More... | |
struct | RLEItem |
A structure that holds coordinates of a RLE element in RLERegion i.e. the RLE representation of a region. More... | |
struct | Region |
A structure with common statistics of BoundaryRegion and RLERegion. More... | |
struct | RLERegion |
Description of a RLE region. More... | |
struct | BoundaryRegion |
Description of a boundary region. More... | |
struct | ExtremaStats |
Timing statistics of the detector, gathered only if TIME_STATS is set. More... | |
struct | RLEExtrema |
Old interface structure that holds result of getRLEExtrema. More... | |
struct | BoundaryExtrema |
Old interface structure that holds result of getBoundaryExtrema. More... | |
class | CPreprocess |
class | CPreprocessRGBSeq |
class | CPreprocessRGBPlanes |
struct | s_suballocator |
Internal structure with suballocator's data. More... | |
Typedefs | |
typedef unsigned int | t_label |
typedef extrema::s_sortpixels | t_sortpixels |
Internal structure with intensity histogram. | |
typedef unsigned int | t_mregion |
typedef extrema::s_region | t_region |
Internal region structure. | |
typedef extrema::s_region_equiv | t_region_equiv |
Internal structure with a node of the label equivalency tree. | |
typedef extrema::s_thresh_par | t_thresh_par |
Internal structure with processed detector's parameters. | |
typedef extrema::s_borderpixel | t_borderpixel |
Structure with pixel of the extended boundary. | |
typedef std::vector< t_borderpixel > | point_vector |
Vector with extended boundary. | |
typedef extrema::s_thresh_def | t_thresh_def |
Internal structure holding threshold paramaters. | |
typedef extrema::s_suballocator | t_suballocator |
Internal structure with suballocator's data. | |
Enumerations | |
enum | EXTREMA_PREPROCESS { PREPROCESS_CHANNEL_none = 0x00000000, PREPROCESS_CHANNEL_intensity = 0x00000001, PREPROCESS_CHANNEL_saturation = 0x00000002, PREPROCESS_CHANNEL_hue = 0x00000003, PREPROCESS_CHANNEL_redblue = 0x00000004, PREPROCESS_CHANNEL_red = 0x00000005, PREPROCESS_CHANNEL_green = 0x00000006, PREPROCESS_CHANNEL_blue = 0x00000007, PREPROCESS_CHANNEL_greenmagenta = 0x00000008, PREPROCESS_CHANNEL_intensity_half = 0x00000009, PREPROCESS_CHANNEL_MASK = 0x0000ffff, PREPROCESS_INTENSITY_none = 0x00000000, PREPROCESS_INTENSITY_MASK = 0xffff0000 } |
An enumeration that encodes different preprocessings of an image. More... | |
Functions | |
void | RegionBoundaries (utls::BAry *img, t_LL regions) |
void | InitRegionRecycling () |
void | DestRegionRecycling () |
t_LL | GetExtrema (utls::BAry *img, t_sortpixels pixels, const ExtremaParams &par, bool invert) |
void | DestRegions (t_LL regions) |
BoundaryExtrema | 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 | 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 | extremaPrepareImage (const ExtremaParams ¶ms, const ExtremaImage &image) |
Prepares image for detection of MSER regions. | |
void | extremaAttachImage (const ExtremaParams ¶ms, utls::BAry *image) |
Assigns already prepared image for detection of MSER regions. | |
void | extremaInvertImage () |
Inverts image in internal structure. | |
void | extremaBoundaryRegions (const ExtremaParams ¶ms, bool inverted, vector< BoundaryRegion > &result) |
Detects MSERs inverted or not inverted image. | |
void | 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 | 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 | extremaCleanup (bool detach_only=false) |
Cleans up internal image structure. | |
const ExtremaStats & | extremaStats () |
Returns timing statistics. | |
void | exportRLEVector (FILE *fid, vector< RLERegion > &rle_vector) |
void | exportBoundaryVector (FILE *fid, vector< BoundaryRegion > &boundary_vector) |
void | exportBoundaryVectorGF (FILE *fid, vector< BoundaryRegion > &boundary_vector) |
void | exportAffVector (FILE *fid, vector< RLERegion > &rle_vector, double factor, int krys_compat) |
void | RLE2Ellipse (const vector< RLEItem > &rle, double &barX, double &barY, double &sumX2, double &sumXY, double &sumY2) |
void | ReducedBoundary2RLE (vector< BoundaryPoint > &reduced_boundary, vector< RLEItem > &rle) |
void | FastSetOptThresholds4StableRegion (t_region *p_r) |
void | CalcHistogram (utls::BAry *&img, t_sortpixels &pixels) |
void | BinSortPixels (utls::BAry *&img, t_sortpixels &pixels) |
void | InvertImageAndHistogram (utls::BAry *img, t_sortpixels &pixels) |
void | InitSuballocator (t_suballocator *s, size_t blocksize, size_t itemsize, int clear_blocks=0) |
void | DestSuballocator (t_suballocator *s) |
void | SuballocatorAddBlock (t_suballocator *s) |
Variables | |
t_thresh_par | g_thresh_params |
typedef unsigned int extrema::t_label |
typedef struct extrema::s_sortpixels extrema::t_sortpixels |
Internal structure with intensity histogram.
typedef unsigned int extrema::t_mregion |
typedef struct extrema::s_region extrema::t_region |
Internal region structure.
typedef struct extrema::s_region_equiv extrema::t_region_equiv |
Internal structure with a node of the label equivalency tree.
typedef struct extrema::s_thresh_par extrema::t_thresh_par |
Internal structure with processed detector's parameters.
typedef struct extrema::s_borderpixel extrema::t_borderpixel |
Structure with pixel of the extended boundary.
typedef std::vector<t_borderpixel> extrema::point_vector |
Vector with extended boundary.
typedef struct extrema::s_thresh_def extrema::t_thresh_def |
Internal structure holding threshold paramaters.
typedef struct extrema::s_suballocator extrema::t_suballocator |
Internal structure with suballocator's data.
An enumeration that encodes different preprocessings of an image.
void extrema::RegionBoundaries | ( | utls::BAry * | img, | |
t_LL | regions | |||
) |
void extrema::InitRegionRecycling | ( | ) |
void extrema::DestRegionRecycling | ( | ) |
t_LL extrema::GetExtrema | ( | utls::BAry * | img, | |
t_sortpixels | pixels, | |||
const ExtremaParams & | par, | |||
bool | invert | |||
) |
void extrema::DestRegions | ( | t_LL | regions | ) |
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 -.
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 & | params, | |
const ExtremaImage & | image | |||
) |
Prepares image for detection of MSER regions.
params | a structure ExtremaPars with detector parameters. | |
image | a structure ExtremaImage with image data. |
void extrema::extremaAttachImage | ( | const ExtremaParams & | params, | |
utls::BAry * | image | |||
) |
Assigns already prepared image for detection of MSER regions.
params | a structure ExtremaParams with detector parameters. | |
image | a structure utls::BAry (byte image) with image, please note image boundaries should be extended by one pixel, i.e. for an image of size width x height one should use constructor BAry(-1,-1,width,height), that results in array of width+2 x height+2 elements. |
void extrema::extremaInvertImage | ( | ) |
Inverts image in internal structure.
void extrema::extremaBoundaryRegions | ( | const ExtremaParams & | params, | |
bool | inverted, | |||
vector< BoundaryRegion > & | result | |||
) |
Detects MSERs inverted or not inverted image.
params | a structure ExtremaParams with detector parameters. | |
inverted | a boolean that signalise if internal image structure was or was not inverted. | |
result | a vector of BoundaryRegion structures containing regions. |
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.
params | a structure ExtremaParams with detector parameters. | |
inverted | a boolean that signalise if internal image structure was or was not inverted. | |
result | a vector of BoundaryRegion structures containing regions. |
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.
params | a structure ExtremaParams with detector parameters. | |
inverted | a boolean that signalise if internal image structure was or was not inverted. | |
result | a vector of RLERegion structures containing regions. |
void extrema::extremaCleanup | ( | bool | detach_only = false |
) |
Cleans up internal image structure.
detach_only | a boolean that specifies if the image is deallocated (false) or not. |
const ExtremaStats& extrema::extremaStats | ( | ) |
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 | |||
) |
void extrema::FastSetOptThresholds4StableRegion | ( | t_region * | p_r | ) |
void extrema::CalcHistogram | ( | utls::BAry *& | img, | |
t_sortpixels & | pixels | |||
) |
void extrema::BinSortPixels | ( | utls::BAry *& | img, | |
t_sortpixels & | pixels | |||
) |
void extrema::InvertImageAndHistogram | ( | utls::BAry * | img, | |
t_sortpixels & | pixels | |||
) |
void extrema::InitSuballocator | ( | t_suballocator * | s, | |
size_t | blocksize, | |||
size_t | itemsize, | |||
int | clear_blocks = 0 | |||
) |
void extrema::DestSuballocator | ( | t_suballocator * | s | ) |
void extrema::SuballocatorAddBlock | ( | t_suballocator * | s | ) |