⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 iffeature.h

📁 A tutorial and open source code for finding edges and corners based on the filters used in primary v
💻 H
字号:
// IFFeature.h

/*
** Copyright (C) 1994, 2003 Tyler C. Folsom
**
** Permission to use, copy, modify, and distribute this software and its
** documentation for any purpose and without fee is hereby granted, provided
** that the above copyright notice appear in all copies and that both that
** copyright notice and this permission notice appear in supporting
** documentation.  This software is provided "as is" without express or
** implied warranty.
*/
#ifndef IFFEATURE_H
#define IFFEATURE_H

#include <iostream.h>
#include <fstream.h>
#include <afxtempl.h>

// The detected feature
enum feature_type
{
    eNOT_AVAILABE,  // indicates no data (e.g. no answer)
    eNO_FEATURE,    // there is nothing in the circle
    eEDGE,    /* Edge: A dark to light step. */
    /* Until 2/27/00, eDARK_BAR meant 0,255,0
       Changed so that eBAR_LIGHT is 0,255,0.  0 is black; 255 white. */
    /* 6/27/03: replace with the new names eWHITE_LINE and eBLACK_LINE */
    eWHITE_LINE,  // eBAR_DARK,
    eBLACK_LINE,  // eBAR_LIGHT,
    eCORNER,  /* Corner: A corner or point of high curvature. */
    eDARK_CORNER,
    eLIGHT_CORNER,
    eBLOB,     /* Blob: A spot or region not strongly connected
                to the borders of the receptive field. */
    eDARK_BLOB,
    eLIGHT_BLOB,
    eSTOPPED_BAR_DARK,
    eSTOPPED_BAR_LIGHT,
	eFEATURE_TYPE_SIZE
};


// The number of nearest neighbors
const NEIGHBORS = 6;

// Gives the points defining the outline of a feature
struct Outline
{
    // points defining the shape to draw
    CArray< POINT, POINT&> segment;
    COLORREF color; // of line
    int thickness;  // of line to draw
};
// One dimensional data found in a receptive field
struct Data_1D
{
    float m_degrees; /*  The orientation of the feature in degrees.
       A vertical edge has 0

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -