-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathImage.h
More file actions
42 lines (36 loc) · 835 Bytes
/
Copy pathImage.h
File metadata and controls
42 lines (36 loc) · 835 Bytes
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
//
// Image.h
// RMi
//
// Created by Marcelo da Mata. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "FileInfo.h"
#import "DicomDecoder.h"
@interface Image : NSObject {
@private
short *pixels;
int location;
int bytesPerPixel, bufferSize, nPixels;
int skipCount;
int minPixel, maxPixel;
BOOL minMaxSet;
long long byteCount;
char *pixels8;
int width, height, numPixels;
}
@property (nonatomic, strong) DicomDecoder *dd;
@property (nonatomic, strong) FileInfo *fi;
-(id)init:(DicomDecoder*) decoder;
-(void)loadPixels;
-(void)skip:(char*)bytes;
-(void)read16biImage:(char*)bytes;
-(int)read:(unsigned char*)buffer :(int)len :(char*)bytesFile;
-(char*)create8BitImage;
-(int)getMax;
-(int)getMin;
-(void)findMinMax;
-(int)getHeight;
-(int)getWidth;
-(char*)getPixels8;
@end