1 /**********
2 *
3 * This file is part of the TINA Open Source Image Analysis Environment
4 * henceforth known as TINA
5 *
6 * TINA is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU Lesser General Public License as
8 * published by the Free Software Foundation.
9 *
10 * TINA is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public License
16 * along with TINA; if not, write to the Free Software Foundation, Inc.,
17 * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 *
19 **********
20 *
21 * Program : TINA
22 * File : $Source: /home/tina/cvs/tina-libs/tina/medical/med_SroiDef.h,v $
23 * Date : $Date: 2004/02/13 12:30:33 $
24 * Version : $Revision: 1.5 $
25 * CVS Id : $Id: med_SroiDef.h,v 1.5 2004/02/13 12:30:33 neil Exp $
26 *
27 * Author : Legacy TINA
28 *
29 * Notes : Structure definitions and constants for the Smart VOI functionality
30 *
31 *********
32 */
33
34 #include "tina/math/math_MatrDef.h"
35 #include "tina/math/math_VecDef.h"
36 #include "tina/image/imgDef.h"
37
38 #ifndef TINA_MED_SROI_DEF_HDR
39 #define TINA_MED_SROI_DEF_HDR
40
41 #define PLEN 40
42
43 typedef struct _sroi_dparams
44 {
45 double sparams[PLEN];
46 double lambda[PLEN];
47
48 double s_min;
49 double s_max;
50 double theta_min;
51 double theta_max;
52 double m_max;
53 double p_max;
54 double g_max;
55 double ftol;
56
57 int points;
58 int outer;
59 int rows;
60 int vsize;
61 int pcavsize;
62 int m_modes;
63 int p_modes;
64 int p_length;
65 Bool profile_on;
66 Bool gradient_on;
67 Bool mse_on;
68 } Sroi_dparams;
69
70 typedef struct pdm{
71 int vsize; /* size of profile sampled to file */
72 int pcavsize; /* size of profile used in pca model */
73 int m_modes; /* number of shape modes used in search */
74 int p_modes; /* number of profile models used in search */
75 int p_length; /* not used NAT */
76 double s_min; /* minimum scale limit allowed during search */
77 double s_max; /* maximum scale limit allowed during search */
78 double theta_min; /* allowed angle changes */
79 double theta_max;
80 double m_max; /* max shape parameter value S.D. */
81 double p_max; /* max profile parameter value S.D. */
82 double g_max; /* max global model parameter va;lue S.D. */
83 int r; /* storage for co-ordinates 0-x 1-y +rotated */
84 int c; /* number of sample data points around profile */
85 int o; /* number of sample points on outer profile */
86 double tx; /* origin x */
87 double ty; /* origin y */
88 double s; /* length */
89 double theta; /* orientation */
90 Bool normalise_on; /* grey level nromalisation */
91 Bool global_on; /* shape and grey level pca */
92 Vector *alpha; /* or of each sample */
93 Vector *maxgrad;
94 Matrix *m; /* double of locations in various co-ordinates */
95 Matrix *profile; /* int of grey levels */
96 Matrix *g_profile;
97 Matrix *M_Evec;
98 Vector *M_Eval;
99 Matrix *G_Evec;
100 Vector *G_Eval;
101 Matrix **P_Evec;
102 Vector **P_Eval;
103 Vector *m_weight;
104 Matrix *p_weight;
105 Sroi_dparams *params; /* pass through parameters for optimisation */
106 Imrect *im_grad; /* pass through image for optimisation */
107 }Model;
108
109
110 #endif
111
This page was automatically generated by the
LXR engine.
Visit the LXR main site for more
information.