Ignore:
Timestamp:
Dec 20, 2014, 1:00:34 AM (5 years ago)
Author:
ldelgass
Message:

Merge r3611:3618 from trunk

Location:
nanovis/branches/1.1
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • nanovis/branches/1.1

  • nanovis/branches/1.1/ReaderCommon.cpp

    r3580 r4889  
    44 *
    55 */
     6
     7#include <cstdlib>
     8
     9#include <vrmath/Vector3f.h>
     10
    611#include "ReaderCommon.h"
    712#include "GradientFilter.h"
    813
    9 #include <vrmath/Vector3f.h>
    10 
    11 #include "stdlib.h"
    12 
     14using namespace nv;
    1315using namespace vrmath;
    1416
    1517float *
    16 merge(float *scalar, float *gradient, int size)
     18nv::merge(float *scalar, float *gradient, int size)
    1719{
    1820    float *data = (float *)malloc(sizeof(float) * 4 * size);
     
    4345 */
    4446void
    45 normalizeScalar(float *data, int count, int stride, double vmin, double vmax)
     47nv::normalizeScalar(float *data, int count, int stride, double vmin, double vmax)
    4648{
    4749    double dv = vmax - vmin;
     
    8284 */
    8385float *
    84 computeGradient(float *data,
    85                 int nx, int ny, int nz,
    86                 float dx, float dy, float dz,
    87                 float min, float max)
     86nv::computeGradient(float *data,
     87                    int nx, int ny, int nz,
     88                    float dx, float dy, float dz,
     89                    float min, float max)
    8890{
    8991    int npts = nx * ny * nz;
     
    123125 */
    124126void
    125 computeSimpleGradient(float *data,
    126                       int nx, int ny, int nz,
    127                       float dx, float dy, float dz)
     127nv::computeSimpleGradient(float *data,
     128                          int nx, int ny, int nz,
     129                          float dx, float dy, float dz)
    128130{
    129131    bool clampToEdge = true;
Note: See TracChangeset for help on using the changeset viewer.