-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMIVSpoonController.h
100 lines (82 loc) · 3.18 KB
/
CMIVSpoonController.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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
/*=========================================================================
CMIVSpoonController
Binary mathematic morphology operation on 2d/3d images with vtk.
Author: Chunliang Wang ([email protected])
Program: CMIV CTA image processing Plugin for OsiriX
This file is part of CMIV CTA image processing Plugin for OsiriX.
Copyright (c) 2007,
Center for Medical Image Science and Visualization (CMIV),
Linkšping University, Sweden, http://www.cmiv.liu.se/
CMIV CTA image processing Plugin for OsiriX 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 3 of the License, or (at your option)
any later version.
CMIV CTA image processing Plugin for OsiriX 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, see <http://www.gnu.org/licenses/>.
=========================================================================*/
#import <Cocoa/Cocoa.h>
#import "DCMObject.h"
#import "DCMCalendarDate.h"
#import "CMIV_CTA_TOOLS.h"
#include <Accelerate/Accelerate.h>
#import "PluginFilter.h"
#define id Id
#include <vtkImageImport.h>
#include <vtkImageData.h>
#include <vtkImageContinuousErode3D.h>
#include <vtkImageContinuousDilate3D.h>
#include <vtkImageMathematics.h>
#include <vtkImageThreshold.h>
#include <vtkImageOpenClose3D.h>
#include <vtkImageDilateErode3D.h>
#undef id
enum DCM_CompressionQuality {DCMLosslessQuality, DCMHighQuality, DCMMediumQuality, DCMLowQuality};
@interface CMIVSpoonController : NSObject
{
IBOutlet NSWindow *window;
IBOutlet NSMatrix *exportOption;
IBOutlet NSSlider *imageSlider;
IBOutlet NSMatrix *operationOption;
IBOutlet DCMView *viewer;
IBOutlet NSTextField *xRadius;
IBOutlet NSTextField *yRadius;
IBOutlet NSTextField *zRadius;
IBOutlet NSSlider *thresholdSlider;
IBOutlet NSMatrix *binaryOrROIOption;
IBOutlet NSPopUpButton *existedROI;
IBOutlet NSTextField *maskName;
IBOutlet NSButton *deleteCurrentSeries;
IBOutlet NSTextField *thresholdText;
ViewerController *originalViewController;
int isFirstTime;
NSMutableArray *viewROIList;
NSMutableArray *resultROIList;
NSMutableArray *controllorROIList;
NSMutableArray *existedMaskList;
NSArray *pixList;
DCMPix* curPix;
RGBColor color;
int imageWidth , imageHeight , imageAmount;
int isShowingResult;
NSMutableArray *toolbarList;
CMIV_CTA_TOOLS* parent;
}
- (IBAction)applyOperation:(id)sender;
- (IBAction)cancelDialog:(id)sender;
- (IBAction)exportImages:(id)sender;
- (IBAction)goNextStep:(id)sender;
- (IBAction)setThreshold:(id)sender;
- (IBAction)setBinaryOrROI:(id)sender;
- (IBAction)selectANewROI:(id)sender;
- (IBAction)pageDownorUp:(id)sender;
- (IBAction)deleteCurrentMask:(id)sender;
- (int) showSpoonPanel:(ViewerController *) vc:(CMIV_CTA_TOOLS*) owner;
- (void) initExistedMaskList;
- (void)updateROI:(int)imageIndex;
@end