FORS Pipeline Reference Manual 4.9.20
|
00001 /* $Id: fors_pattern.h,v 1.3 2010/09/14 07:49:30 cizzo Exp $ 00002 * 00003 * This file is part of the FORS Library 00004 * Copyright (C) 2002-2010 European Southern Observatory 00005 * 00006 * This program is free software; you can redistribute it and/or modify 00007 * it under the terms of the GNU General Public License as published by 00008 * the Free Software Foundation; either version 2 of the License, or 00009 * (at your option) any later version. 00010 * 00011 * This program is distributed in the hope that it will be useful, 00012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00014 * GNU General Public License for more details. 00015 * 00016 * You should have received a copy of the GNU General Public License 00017 * along with this program; if not, write to the Free Software 00018 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 00019 */ 00020 00021 /* 00022 * $Author: cizzo $ 00023 * $Date: 2010/09/14 07:49:30 $ 00024 * $Revision: 1.3 $ 00025 * $Name: fors-4_9_20 $ 00026 */ 00027 00028 #ifndef FORS_PATTERN_H 00029 #define FORS_PATTERN_H 00030 00031 #include <fors_point.h> 00032 00033 #include <stdbool.h> 00034 00035 typedef struct _fors_pattern fors_pattern; 00036 00037 #undef LIST_ELEM 00038 #define LIST_ELEM fors_pattern 00039 #include <list.h> 00040 00041 fors_pattern *fors_pattern_new(const fors_point *ref, 00042 const fors_point *p1, 00043 const fors_point *p2, 00044 double sigma); 00045 00046 fors_pattern_list * 00047 fors_pattern_new_from_points(struct fors_point_list *points, 00048 double tolerance, 00049 double sigma); 00050 00051 void 00052 fors_pattern_delete(fors_pattern **p); 00053 00054 void fors_pattern_print(const fors_pattern *p); 00055 00056 const fors_point * 00057 fors_pattern_get_ref(const fors_pattern *p); 00058 00059 double fors_pattern_get_scale(const fors_pattern *p, 00060 const fors_pattern *q); 00061 double fors_pattern_get_angle(const fors_pattern *p, 00062 const fors_pattern *q); 00063 00064 void fors_pattern_get_shift(const fors_pattern *p, 00065 const fors_pattern *q, 00066 double *shift_x, 00067 double *shift_y); 00068 00069 double fors_pattern_distsq(const fors_pattern *p, 00070 const fors_pattern *q); 00071 00072 double fors_pattern_dist_per_error(const fors_pattern *p, 00073 const fors_pattern *q); 00074 00075 void fors_pattern_error(const fors_pattern *p, 00076 double *dr2, 00077 double *dtheta); 00078 00079 #endif