dtrans.h

来自「Hausdorff Distance for Image Recognition」· C头文件 代码 · 共 44 行

H
44
字号
/* * * $Header: /usr/u/wjr/src/support/RCS/dtrans.h,v 1.4 1993/07/26 22:16:16 wjr Exp $ * * Copyright (c) 1990, 1991, 1992, 1993 Cornell University.  All Rights * Reserved. * * Copyright (c) 1991, 1992 Xerox Corporation.  All Rights Reserved. *   * Use, reproduction, preparation of derivative works, and distribution * of this software is permitted.  Any copy of this software or of any * derivative work must include both the above copyright notices of * Cornell University and Xerox Corporation and this paragraph.  Any * distribution of this software or derivative works must comply with all * applicable United States export control laws.  This software is made * available AS IS, and XEROX CORPORATION DISCLAIMS ALL WARRANTIES, * EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE, * AND NOTWITHSTANDING ANY OTHER PROVISION CONTAINED HEREIN, ANY * LIABILITY FOR DAMAGES RESULTING FROM THE SOFTWARE OR ITS USE IS * EXPRESSLY DISCLAIMED, WHETHER ARISING IN CONTRACT, TORT (INCLUDING * NEGLIGENCE) OR STRICT LIABILITY, EVEN IF XEROX CORPORATION IS ADVISED * OF THE POSSIBILITY OF SUCH DAMAGES. */#ifndef DTRANS_H#define DTRANS_H#include "image.h"#include "readpts.h"/* The scale factor of the distance values produced */#define	DSCALE	100extern LongImage dtrans_pts(unsigned width, unsigned height,			    int xbase, int ybase,			    unsigned npts, point *points);extern LongImage dtrans_image(BinaryImage bim);extern ShortImage dtrans_plusx(LongImage dtrans, long thresh);extern ShortImage dtrans_plusy(LongImage dtrans, long thresh);#endif

⌨️ 快捷键说明

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