regions.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
#ifndef _LIBCP_REGIONS_H_
00026
#define _LIBCP_REGIONS_H_
00027
00028
#include <cstdlib>
00029
#include <iostream>
00030
00031
using namespace std;
00032
00033
#include "globals.h"
00034
#include "image.h"
00035
#include "chaincode.h"
00036
00037
namespace LIBCP{
00038
00043 class Regions
00044 {
00045
public:
00046
static int aglomerationOperator(
Image* dst,
Image* src );
00047
static int fillConcavitiesOperator(
Image* dst,
Image* src );
00048
static int enhanceModeOperator(
Image* dst,
Image* src );
00049
static int labelBlobs(
Image* dst,
Image* src );
00050
static int convertToChainCode(
ChainCode* chainCode,
Image* src );
00051
00052
private:
00053
static void chain4 (
Image* img,
const int x,
const int y,
00054 vector<int> *chain,
00055
int &xMin,
int &yMin,
00056
int &xMax,
int &yMax);
00057
static int mapping4(
int comingFrom,
int index);
00058
static void initChainCodeImage(
ChainCodeImage *chainCode,
00059
const int x,
const int y,
00060
const int xMin,
const int yMin);
00061
00062 };
00063 }
00064
00065
#endif //_LIBCP_REGIONS_H_
Generated on Wed May 26 16:43:53 2004 for libcp by
1.3.7