Last change
on this file since 3492 was
2877,
checked in by ldelgass, 12 years ago
|
Some minor refactoring, also add some more fine grained config.h defines
(e.g. replace NV40 define with feature defines). Add tests for some required
OpenGL extensions (should always check for extensions or base version before
calling entry points from the extension). Also, clamp diffuse and specular
values on input and warn when they are out of range.
|
-
Property svn:eol-style set to
native
|
File size:
542 bytes
|
Line | |
---|
1 | /* -*- mode: c++; c-basic-offset: 4; indent-tabs-mode: nil -*- */ |
---|
2 | #ifndef GRADIENT_FILTER_H |
---|
3 | #define GRADIENT_FILTER_H |
---|
4 | |
---|
5 | typedef enum { |
---|
6 | DATRAW_UCHAR, |
---|
7 | DATRAW_FLOAT, |
---|
8 | DATRAW_USHORT |
---|
9 | } DataType; |
---|
10 | |
---|
11 | extern void computeGradients(float *gradients, void *volData, |
---|
12 | int *sizes, float *spacing, DataType dataType); |
---|
13 | |
---|
14 | extern void filterGradients(float *gradients, int *sizes); |
---|
15 | |
---|
16 | extern void quantizeGradients(float *gradientsIn, void *gradientsOut, |
---|
17 | int *sizes, DataType dataType); |
---|
18 | |
---|
19 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.