-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathDicomDecoder.h
More file actions
71 lines (61 loc) · 1.76 KB
/
Copy pathDicomDecoder.h
File metadata and controls
71 lines (61 loc) · 1.76 KB
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
//
// DicomDecoder.h
// RMi
//
// Created by Marcelo da Mata on 26/03/2013.
//
//
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import "FileDecoder.h"
#import "DicomDictionary.h"
#import "FileStream.h"
@interface DicomDecoder : FileDecoder {
@private
//int location;
//int bufferLenght;
int elementLenght;
int vr; //valuer representation
int previousGroup;
double windowCenter;
double windowWidth;
double rescaleIntercept;
double rescaleSlope;
//unsigned char *bytes;
BOOL dicmFound;
BOOL littleEndian;
BOOL bigEndianTransferSyntax;
BOOL oddLocations;
BOOL inSequence;
//char buf8[8];
//char buf10[11];
NSString *previousInfo;
NSString *dicomInfo;
NSString *modality;
}
@property (nonatomic, strong) FileStream *dicomStream;
@property (nonatomic, strong) NSMutableDictionary *values;
@property (nonatomic, strong) NSMutableDictionary *informations;
@property (nonatomic, retain) UIImage *dicomImage;
-(id)init: (NSString *) dir : (NSString *) name;
-(BOOL)isDicom;
- (void)addInfo:(int) tag : (NSString*) value;
- (void)addInfoInt:(int) tag : (int) value;
- (NSString*)getHeaderInfo:(int) tag : (NSString*) value;
-(int)getNextTag;
-(int)getShort;
-(int)getInt;
-(int)getLenght;
-(float)getFloat;
-(double)getDouble;
- (void)getSpatialScale:(FileInfo*)fi : (NSString*)scale;
- (char*)getLut:(int) length;
-(void)generateUIImage:(UInt32*)buffer : (int) width :(int) height;
- (char*)getBytes;
- (long long)getPosition;
- (UIImage*)getDicomImage;
- (long long)getBufferLenght;
- (NSMutableDictionary *)getValues;
- (NSMutableDictionary *)getInformations;
-(int)indexOf:(NSString*)str : (NSString *)index;
@end