** This is part of the CTSim program
** Copyright (C) 1983-2000 Kevin Rosenberg
**
-** $Id: ct.h,v 1.40 2000/12/04 04:15:48 kevin Exp $
+** $Id: ct.h,v 1.41 2000/12/04 05:36:57 kevin Exp $
**
** This program is free software; you can redistribute it and/or modify
** it under the terms of the GNU General Public License (version 2) as
#ifndef CT_H
#define CT_H
-#ifdef _WIN32
+#ifdef MSVC
extern "C" {int strcasecmp(const char*, const char*);}
typedef long off_t;
#define HAVE_STRING_H 1
** This is part of the CTSim program
** Copyright (C) 1983-2000 Kevin Rosenberg
**
-** $Id: imagefile.h,v 1.19 2000/12/04 04:15:48 kevin Exp $
+** $Id: imagefile.h,v 1.20 2000/12/04 05:36:57 kevin Exp $
**
** This program is free software; you can redistribute it and/or modify
** it under the terms of the GNU General Public License (version 2) as
class F32Image : public Array2dFile
{
public:
- F32Image (int nx, int ny)
- : Array2dFile::Array2dFile (nx, ny, sizeof(kfloat32), Array2dFile::PIXEL_FLOAT32)
- {
- }
-
- F32Image (void)
- : Array2dFile::Array2dFile()
- {
- setPixelFormat (Array2dFile::PIXEL_FLOAT32);
- setPixelSize (sizeof(kfloat32));
- }
+ F32Image (int nx, int ny);
+ F32Image (void);\r
kfloat32** getArray (void)
{ return (kfloat32**) (m_arrayData); }
{
public:
- F64Image (int nx, int ny)
- : Array2dFile::Array2dFile (nx, ny, sizeof(kfloat64), Array2dFile::PIXEL_FLOAT64)
- {
- }
-
- F64Image (void)
- : Array2dFile::Array2dFile ()
- {
- setPixelFormat (PIXEL_FLOAT64);
- setPixelSize (sizeof(kfloat64));
- }
+ F64Image (int nx, int ny);
+ F64Image (void);
kfloat64** getArray (void)
{ return (kfloat64**) (m_arrayData); }
** This is part of the CTSim program
** Copyright (C) 1983-2000 Kevin Rosenberg
**
-** $Id: phantom.h,v 1.14 2000/09/04 09:06:46 kevin Exp $
+** $Id: phantom.h,v 1.15 2000/12/04 05:36:57 kevin Exp $
**
** This program is free software; you can redistribute it and/or modify
** it under the terms of the GNU General Public License (version 2) as
#ifndef PHANTOM_H
#define PHANTOM_H
+#ifndef MSVC\r
#include <slist>
+#endif\r
#include "ctsupport.h"
using namespace std;
double* m_yOutline;
double m_rectLimits[4];
- static const int POINTS_PER_CIRCLE = 360;
- static const double SCALE_PELEM_EXTENT=0.005; // increase pelem limits by 0.5%
+ static const int POINTS_PER_CIRCLE;
+ static const double SCALE_PELEM_EXTENT; // increase pelem limits by 0.5%
static PhmElemType PhantomElement::convertNameToType (const char* const typeName);
** This is part of the CTSim program
** Copyright (C) 1983-2000 Kevin Rosenberg
**
-** $Id: projections.h,v 1.14 2000/09/02 05:10:39 kevin Exp $
+** $Id: projections.h,v 1.15 2000/12/04 05:36:57 kevin Exp $
**
**
** This program is free software; you can redistribute it and/or modify
class Scanner;
class DetectorArray;
class Array2dFileLabel;
-class ostringstream;
+\r
+#include <sstream>\r
+
// Projections
class Projections
private:
int m_headerSize; // Size of disk file header
int m_geometry; // Geometry of scanner
- struct DetectorArray **m_projData; // Pointer to array of detarray_st pointers
+ class DetectorArray **m_projData; // Pointer to array of detarray_st pointers
string m_remark; // description of raysum data
int m_nDet; // number of detectors in array
int m_nView; // number of rotated views
string m_filename;
Array2dFileLabel m_label;
- const static kuint16 m_signature = ('P'*256 + 'J');
+ const static kuint16 m_signature;
bool headerRead ();
bool headerWrite ();
** This is part of the CTSim program
** Copyright (C) 1983-2000 Kevin Rosenberg
**
-** $Id: pol.cpp,v 1.2 2000/07/31 14:48:35 kevin Exp $
+** $Id: pol.cpp,v 1.3 2000/12/04 05:36:57 kevin Exp $
**
** This program is free software; you can redistribute it and/or modify
** it under the terms of the GNU General Public License (version 2) as
/* */
/*----------------------------------------------------------------------*/
+#include "ct.h"\r
#include <math.h>
#include <stdio.h>
#include <ctype.h>
** This is part of the CTSim program
** Copyright (C) 1983-2000 Kevin Rosenberg
**
-** $Id: imagefile.cpp,v 1.15 2000/11/22 16:39:59 kevin Exp $
+** $Id: imagefile.cpp,v 1.16 2000/12/04 05:36:57 kevin Exp $
**
** This program is free software; you can redistribute it and/or modify
** it under the terms of the GNU General Public License (version 2) as
#include "ct.h"
+F32Image::F32Image (int nx, int ny)\r
+ : Array2dFile::Array2dFile (nx, ny, sizeof(kfloat32), Array2dFile::PIXEL_FLOAT32)\r
+ {\r
+ }\r
+\r
+F32Image::F32Image (void)[\r
+ : Array2dFile::Array2dFile()\r
+ {\r
+ setPixelFormat (Array2dFile::PIXEL_FLOAT32);\r
+ setPixelSize (sizeof(kfloat32));\r
+ }\r
+\r
+F64Image::F64Image (int nx, int ny)\r
+ : Array2dFile::Array2dFile (nx, ny, sizeof(kfloat64), Array2dFile::PIXEL_FLOAT64)\r
+ {\r
+ }\r
+\r
+F64Image::F64Image (void)\r
+ : Array2dFile::Array2dFile ()\r
+ {\r
+ setPixelFormat (PIXEL_FLOAT64);\r
+ setPixelSize (sizeof(kfloat64));\r
+ }\r
void
ImageFile::filterResponse (const char* const domainName, double bw, const char* const filterName, double filt_param)
** This is part of the CTSim program
** Copyright (C) 1983-2000 Kevin Rosenberg
**
-** $Id: phantom.cpp,v 1.19 2000/11/09 00:12:25 kevin Exp $
+** $Id: phantom.cpp,v 1.20 2000/12/04 05:36:57 kevin Exp $
**
** This program is free software; you can redistribute it and/or modify
** it under the terms of the GNU General Public License (version 2) as
#include "ct.h"
+const int Phantom::POINTS_PER_CIRCLE = 360;\r
+const double Phantom::SCALE_PELEM_EXTENT=0.005; // increase pelem limits by 0.5% \r
const int Phantom::PHM_INVALID = -1;
const int Phantom::PHM_HERMAN = 0;
** This is part of the CTSim program
** Copyright (C) 1983-2000 Kevin Rosenberg
**
-** $Id: projections.cpp,v 1.26 2000/09/07 05:51:52 kevin Exp $
+** $Id: projections.cpp,v 1.27 2000/12/04 05:36:57 kevin Exp $
**
** This program is free software; you can redistribute it and/or modify
** it under the terms of the GNU General Public License (version 2) as
******************************************************************************/
#include "ct.h"
-
+\r
+const kuint16 Projections::m_signature = ('P'*256 + 'J');\r
/* NAME
* Projections Constructor for projections matrix storage