forked from pixmeo/osirix
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathOrthogonalReslice.h
65 lines (47 loc) · 1.63 KB
/
OrthogonalReslice.h
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
/*=========================================================================
Program: OsiriX
Copyright (c) OsiriX Team
All rights reserved.
Distributed under GNU - LGPL
See http://www.osirix-viewer.com/copyright.html for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.
=========================================================================*/
#import <Cocoa/Cocoa.h>
#import "DCMPix.h"
/** \brief Reslcie volume sagittally and Coronally */
@interface OrthogonalReslice : NSObject {
NSMutableArray *originalDCMPixList, *xReslicedDCMPixList, *yReslicedDCMPixList;
NSMutableArray *newPixListX, *newPixListY;
short thickSlab;
float sign;
BOOL useYcache;
float *Ycache;
NSConditionLock *resliceLock;
long minI, maxI, newX, newY, newTotal, currentAxe;
DCMPix *firstPix;
NSOperationQueue *yCacheQueue;
NSLock *processorsLock;
volatile int numberOfThreadsForCompute;
}
// init
- (id) initWithOriginalDCMPixList: (NSMutableArray*) pixList;
- (void) setOriginalDCMPixList: (NSMutableArray*) pixList;
// processors
- (void) reslice: (long) x : (long) y;
- (void) xReslice: (long) x;
- (void) yReslice: (long) y;
- (void) axeReslice: (short) axe : (long) sliceNumber;
// accessors
- (NSMutableArray*) originalDCMPixList;
- (NSMutableArray*) xReslicedDCMPixList;
- (NSMutableArray*) yReslicedDCMPixList;
// thickSlab
- (short) thickSlab;
- (void) setThickSlab : (short) newThickSlab;
- (void) flipVolume;
- (void)freeYCache;
- (BOOL)useYcache;
- (void)setUseYcache:(BOOL)boo;
@end