EMAN2
salio.h
Go to the documentation of this file.
1/*
2 * Author: Steven Ludtke, 04/10/2003 (sludtke@bcm.edu)
3 * Copyright (c) 2000-2006 Baylor College of Medicine
4 *
5 * This software is issued under a joint BSD/GNU license. You may use the
6 * source code in this file under either license. However, note that the
7 * complete EMAN2 and SPARX software packages have some GPL dependencies,
8 * so you are responsible for compliance with the licenses of these packages
9 * if you opt to use BSD licensing. The warranty disclaimer below holds
10 * in either instance.
11 *
12 * This complete copyright notice must be included in any revised version of the
13 * source code. Additional authorship citations may be added, but existing
14 * author citations must be preserved.
15 *
16 * This program is free software; you can redistribute it and/or modify
17 * it under the terms of the GNU General Public License as published by
18 * the Free Software Foundation; either version 2 of the License, or
19 * (at your option) any later version.
20 *
21 * This program is distributed in the hope that it will be useful,
22 * but WITHOUT ANY WARRANTY; without even the implied warranty of
23 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24 * GNU General Public License for more details.
25 *
26 * You should have received a copy of the GNU General Public License
27 * along with this program; if not, write to the Free Software
28 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
29 *
30 * */
31
32#ifndef eman__salio_h__
33#define eman__salio_h__ 1
34
35#include "imageio.h"
36
37namespace EMAN
38{
47 class SalIO : public ImageIO
48 {
49 public:
50 explicit SalIO(const string & fname, IOMode rw_mode = READ_ONLY);
51 ~SalIO();
52
54 static bool is_valid(const void *first_block);
55
56 private:
57 static const char *HDR_EXT;
58 static const char *IMG_EXT;
59 static const char *MAGIC;
60
62 {
65 };
66
68 {
71 };
72
73 private:
74 int nx;
75 int ny;
78 float pixel;
79 };
80
81}
82
83
84#endif //eman__salio_h__
ImageIO classes are designed for reading/writing various electron micrography image formats,...
Definition: imageio.h:127
IOMode rw_mode
Definition: imageio.h:353
A SAL image is an image from Perkin Elmer PDS Microdensitometer.
Definition: salio.h:48
SalIO(const string &fname, IOMode rw_mode=READ_ONLY)
Definition: salio.cpp:53
int ny
Definition: salio.h:75
int nx
Definition: salio.h:74
@ NON_RASTER_SCAN
Definition: salio.h:69
@ RASTER_SCAN
Definition: salio.h:70
DEFINE_IMAGEIO_FUNC
Definition: salio.h:53
static const char * MAGIC
Definition: salio.h:59
@ Y_SCAN_AXIS
Definition: salio.h:64
@ X_SCAN_AXIS
Definition: salio.h:63
float pixel
Definition: salio.h:78
static const char * IMG_EXT
Definition: salio.h:58
int record_length
Definition: salio.h:76
ScanMode scan_mode
Definition: salio.h:77
static bool is_valid(const void *first_block)
Definition: salio.cpp:141
static const char * HDR_EXT
Definition: salio.h:57
E2Exception class.
Definition: aligner.h:40