1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
|
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* filename: m-transf.h *
* *
* UTIL C-source: Medical Image Conversion Utility *
* *
* purpose : m-transf.c header file *
* *
* project : (X)MedCon by Erik Nolf *
* *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* $Id: m-transf.h,v 1.14 2007/05/21 20:16:15 enlf Exp $
*/
/*
Copyright (C) 1997-2007 by Erik Nolf
This program is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
Free Software Foundation; either version 2, or (at your option) any later
version.
This program is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
Public License for more details.
You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
59 Place - Suite 330, Boston, MA 02111-1307, USA. */
#ifndef __M_TRANSF_H__
#define __M_TRANSF_H__
/****************************************************************************
D E F I N E S
****************************************************************************/
/* image transformations */
#define MDC_TRANSF_HORIZONTAL 1 /* flip horizontal */
#define MDC_TRANSF_VERTICAL 2 /* flip vertical */
#define MDC_TRANSF_REVERSE 3 /* reverse sorting */
#define MDC_TRANSF_CINE_APPLY 4 /* cine apply sorting */
#define MDC_TRANSF_CINE_UNDO 5 /* cine undo sorting */
#define MDC_TRANSF_SQR1 6 /* make square */
#define MDC_TRANSF_SQR2 7 /* make square pwr2 */
#define MDC_TRANSF_CROP 8 /* crop image dims */
/* crop structure */
typedef struct Mdc_Crop_Info_t {
Uint32 xoffset;
Uint32 yoffset;
Uint32 width;
Uint32 height;
} MDC_CROP_INFO;
/****************************************************************************
F U N C T I O N S
****************************************************************************/
int MdcFlipImgHorizontal(IMG_DATA *id);
int MdcFlipImgVertical(IMG_DATA *id);
char *MdcFlipHorizontal(FILEINFO *fi);
char *MdcFlipVertical(FILEINFO *fi);
char *MdcSortReverse(FILEINFO *fi);
char *MdcSortCineApply(FILEINFO *fi);
char *MdcSortCineUndo(FILEINFO *fi);
char *MdcMakeSquare(FILEINFO *fi, int SQR_TYPE);
char *MdcCropImages(FILEINFO *fi, MDC_CROP_INFO *ecrop);
char *MdcMakeGray(FILEINFO *fi);
char *MdcHandleColor(FILEINFO *fi);
char *MdcContrastRemap(FILEINFO *fi);
#endif
|