source: trunk/indexers/mg/src/images/match.h@ 3745

Last change on this file since 3745 was 3745, checked in by mdewsnip, 21 years ago

Addition of MG package for search and retrieval

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 1.5 KB
Line 
1/**************************************************************************
2 *
3 * match.h -- Functions related to matching marks
4 * Copyright (C) 1994 Stuart Inglis
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
19 *
20 * $Id: match.h 3745 2003-02-20 21:20:24Z mdewsnip $
21 *
22 **************************************************************************/
23
24#ifndef __MATCH_H
25#define __MATCH_H
26
27#include "marklist.h"
28#include "pbmtools.h"
29#include "utils.h"
30
31
32/*
33 #define NOT_SCREENED(b1,b2) ((abs(b1.w-b2.w)<=4) && (abs(b1.h-b2.h)<=4))
34 */
35
36#define NOT_SCREENED(b1,b2) ((abs(b1.xcen-b2.xcen)+abs(b1.ycen-b2.ycen))<=3)
37
38#define MATCH_VAL 1000
39#define MATCH(b1,b2) (CSIS_match(b1,b2))
40
41int XOR_match (marktype b1, marktype b2);
42int WXOR_match (marktype b1, marktype b2);
43int WAN_match (marktype b1, marktype b2);
44int PMS_match (marktype b1, marktype b2);
45int CSIS_match (marktype * b1, marktype * b2);
46
47#endif
Note: See TracBrowser for help on using the repository browser.