aimsdata
6.0.0
Neuroimaging data handling
jpegheader.h
Go to the documentation of this file.
1
/* This software and supporting documentation are distributed by
2
* Institut Federatif de Recherche 49
3
* CEA/NeuroSpin, Batiment 145,
4
* 91191 Gif-sur-Yvette cedex
5
* France
6
*
7
* This software is governed by the CeCILL-B license under
8
* French law and abiding by the rules of distribution of free software.
9
* You can use, modify and/or redistribute the software under the
10
* terms of the CeCILL-B license as circulated by CEA, CNRS
11
* and INRIA at the following URL "http://www.cecill.info".
12
*
13
* As a counterpart to the access to the source code and rights to copy,
14
* modify and redistribute granted by the license, users are provided only
15
* with a limited warranty and the software's author, the holder of the
16
* economic rights, and the successive licensors have only limited
17
* liability.
18
*
19
* In this respect, the user's attention is drawn to the risks associated
20
* with loading, using, modifying and/or developing or reproducing the
21
* software by the user in light of its specific status of free software,
22
* that may mean that it is complicated to manipulate, and that also
23
* therefore means that it is reserved for developers and experienced
24
* professionals having in-depth computer knowledge. Users are therefore
25
* encouraged to load and test the software's suitability as regards their
26
* requirements in conditions enabling the security of their systems and/or
27
* data to be ensured and, more generally, to use and operate it in the
28
* same conditions as regards security.
29
*
30
* The fact that you are presently reading this means that you have had
31
* knowledge of the CeCILL-B license and that you accept its terms.
32
*/
33
34
#ifndef AIMS_IO_JPEGHEADER_H
35
#define AIMS_IO_JPEGHEADER_H
36
37
// #ifdef WIN32
38
// #include <windows.h>
39
// #endif
40
41
#include <
aims/data/sliceformatheader.h
>
42
#include <
aims/def/general.h
>
43
#include <string>
44
#include <vector>
45
46
namespace
aims
47
{
48
52
class
JpegHeader
:
public
SliceFormatHeader
53
{
54
public
:
55
JpegHeader
(
const
std::string& name,
const
std::string&
type
=
"UNKNOWN"
,
56
int
x=1,
int
y=1,
int
z=1,
int
t=1,
57
float
sx=1,
float
sy=1,
float
sz=1,
float
st=1 ) :
58
SliceFormatHeader
( name, x, y, z, t, sx, sy, sz, st ),
59
_type(
type
), _dimX(x), _dimY(y),
60
_dimZ(z), _dimT(t), _sizeX(sx), _sizeY(sy), _sizeZ(sz), _sizeT(st)
61
{ }
62
virtual
~JpegHeader
() { }
63
64
int
dimX
()
const
{
return
_dimX; }
65
int
dimY
()
const
{
return
_dimY; }
66
int
dimZ
()
const
{
return
_dimZ; }
67
int
dimT
()
const
{
return
_dimT; }
68
69
float
sizeX
()
const
{
return
_sizeX; }
70
float
sizeY
()
const
{
return
_sizeY; }
71
float
sizeZ
()
const
{
return
_sizeZ; }
72
float
sizeT
()
const
{
return
_sizeT; }
73
75
std::string
dataType
()
const
{
return
_type; }
76
void
setType
(
const
std::string & t );
78
std::vector<std::string>
possibleDataTypes
()
const
;
79
80
virtual
std::string
extension
()
const
;
81
virtual
std::set<std::string>
extensions
()
const
;
82
void
read
();
83
84
private
:
85
std::string _type;
86
int
_dimX;
87
int
_dimY;
88
int
_dimZ;
89
int
_dimT;
90
float
_sizeX;
91
float
_sizeY;
92
float
_sizeZ;
93
float
_sizeT;
94
};
95
96
}
97
98
#endif
99
aims::JpegHeader::~JpegHeader
virtual ~JpegHeader()
Definition
jpegheader.h:62
aims::JpegHeader::extensions
virtual std::set< std::string > extensions() const
possible filename extensions for specialized formats
aims::JpegHeader::setType
void setType(const std::string &t)
aims::JpegHeader::JpegHeader
JpegHeader(const std::string &name, const std::string &type="UNKNOWN", int x=1, int y=1, int z=1, int t=1, float sx=1, float sy=1, float sz=1, float st=1)
Definition
jpegheader.h:55
aims::JpegHeader::dataType
std::string dataType() const
Get type of items ("U08", "S08", "U16", "S16", ...)
Definition
jpegheader.h:75
aims::JpegHeader::sizeX
float sizeX() const
Definition
jpegheader.h:69
aims::JpegHeader::sizeY
float sizeY() const
Definition
jpegheader.h:70
aims::JpegHeader::dimZ
int dimZ() const
Definition
jpegheader.h:66
aims::JpegHeader::possibleDataTypes
std::vector< std::string > possibleDataTypes() const
Get the file name of the header.
aims::JpegHeader::dimY
int dimY() const
Definition
jpegheader.h:65
aims::JpegHeader::dimT
int dimT() const
Definition
jpegheader.h:67
aims::JpegHeader::sizeT
float sizeT() const
Definition
jpegheader.h:72
aims::JpegHeader::dimX
int dimX() const
Definition
jpegheader.h:64
aims::JpegHeader::extension
virtual std::string extension() const
standard file format extension of specialized headers
aims::JpegHeader::sizeZ
float sizeZ() const
Definition
jpegheader.h:71
aims::JpegHeader::read
void read()
aims::SliceFormatHeader::SliceFormatHeader
SliceFormatHeader(const std::string &filename, int dimx=1, int dimy=1, int dimz=1, int dimt=1, float vsx=1, float vsy=1, float vsz=1, float vst=1)
general.h
aims
The class for EcatSino data write operation.
Definition
borderfiller.h:13
sliceformatheader.h
type
aims
io
jpegheader.h
Generated by
1.13.2