3D Human Airway Tree
Program generuje ludzkie drzewo oskrzelowe
pinkRawToPgm.h
Idź do dokumentacji tego pliku.
1 /*=========================================================================
2 
3  Program: 3D Human Airway Tree
4  Module: pinkRawToPgm.h
5 
6  Copyright (c) ESIEE - Michel Couprie and Kacper Pluta <kacperp@wsinf.edu.pl>
7  All rights reserved.
8  See Copyright.txt or http://leo.wsinf.edu.pl/~kacperp/3dtree for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
15 
16 
17 #ifndef RAWTOPGM_H
18 #define RAWTOPGM_H
19 
20 #include <boost/tuple/tuple.hpp>
21 #include <QThread>
22 #include <mccodimage.h>
23 
24 class pinkRawToPgm : public QThread
25 {
26 Q_OBJECT
27 
28 private:
29  boost::tuple<std::string,int,int,int,int,int,int,std::string> &argv;
30  FILE *fd;
31  index_t rs, cs, ds, N, headersize, i;
32  int32_t littleendian, datatype;
33  struct xvimage *image;
34 protected:
35  virtual void run();
36 public:
37  pinkRawToPgm(boost::tuple<std::string,int,int,int,int,int,int,std::string> &);
38  virtual ~pinkRawToPgm();
39 signals:
40  void endCompute(QThread *);
41 };
42 
43 #endif // RAWTOPGM_H