aimstil  5.0.5
RAWImage.h
Go to the documentation of this file.
1 #ifndef TIL_RAWIMAGE_H
2 #define TIL_RAWIMAGE_H
3 
4 #include "til/til_common.h"
5 
6 #include <stdio.h>
7 
8 FILE *openRawImage( char *filename, int xs, int ys, int bytesPerPixel, int *zs );
9 unsigned short *readRawImage16( char *filename, int xs, int ys,
10  int bytesPerPixel, int *zs );
11 unsigned short *readRawImage16ByNumber( FILE *fp, int slice, int xs, int ys,
12  int bytesPerPixel );
13 unsigned short *readRawImage16Sequentially( FILE *fp, int xs, int ys,
14  int bytesPerPixel );
15 short *readRawImageS16Sequentially( FILE *fp, int xs, int ys,
16  int bytesPerPixel );
17 unsigned char *readRawImage8( char *filename, int xs, int ys, int zs );
18 unsigned char*readRawImage8ByNumber( FILE *fp, int slice, int xs, int ys );
19 unsigned char *readRawImage8Sequentially( FILE *fp, int xs, int ys );
20 int writeRawImage16( char *filename,
21  unsigned short *sPtr, int xs, int ys, int zs );
22 int writeRawImage16Sequentially( FILE *fp,
23  unsigned short *sPtr, int xs, int ys );
24 int writeRawImageS16SequentiallyBO( FILE *fp,
25  short *sPtr, int xs, int ys, int bpp );
26 int writeRawImage16BO( char *filename,
27  unsigned short *sPtr, int xs, int ys, int zs, int bpp );
28 int writeRawImage16SequentiallyBO( FILE *fp,
29  unsigned short *sPtr, int xs, int ys, int bpp );
30 int writeRawImage8( char *filename,
31  unsigned char *cPtr, int xs, int ys, int zs );
32 int writeRawImage8Sequentially( FILE *fp,
33  unsigned char *cPtr, int xs, int ys );
34 
35 #endif
36 
unsigned char * readRawImage8(char *filename, int xs, int ys, int zs)
unsigned char * readRawImage8ByNumber(FILE *fp, int slice, int xs, int ys)
int writeRawImage16SequentiallyBO(FILE *fp, unsigned short *sPtr, int xs, int ys, int bpp)
unsigned short * readRawImage16Sequentially(FILE *fp, int xs, int ys, int bytesPerPixel)
unsigned char * readRawImage8Sequentially(FILE *fp, int xs, int ys)
General macros, definitions and functions.
int writeRawImage16BO(char *filename, unsigned short *sPtr, int xs, int ys, int zs, int bpp)
int writeRawImage8Sequentially(FILE *fp, unsigned char *cPtr, int xs, int ys)
unsigned short * readRawImage16(char *filename, int xs, int ys, int bytesPerPixel, int *zs)
int writeRawImage8(char *filename, unsigned char *cPtr, int xs, int ys, int zs)
int writeRawImageS16SequentiallyBO(FILE *fp, short *sPtr, int xs, int ys, int bpp)
int writeRawImage16Sequentially(FILE *fp, unsigned short *sPtr, int xs, int ys)
unsigned short * readRawImage16ByNumber(FILE *fp, int slice, int xs, int ys, int bytesPerPixel)
short * readRawImageS16Sequentially(FILE *fp, int xs, int ys, int bytesPerPixel)
int writeRawImage16(char *filename, unsigned short *sPtr, int xs, int ys, int zs)
FILE * openRawImage(char *filename, int xs, int ys, int bytesPerPixel, int *zs)