source: nanovis/tags/1.1.1/ReaderCommon.h @ 5119

Last change on this file since 5119 was 3574, checked in by ldelgass, 11 years ago

Use normalizeScalar common function where possible. Also, don't set NaNs? to
-1 in unnormalized data since -1 could be a valid data value. Need to make
sure gradient filtering properly handles NaNs?.

  • Property svn:eol-style set to native
File size: 683 bytes
Line 
1/* -*- mode: c++; c-basic-offset: 4; indent-tabs-mode: nil -*- */
2/*
3 * Copyright (C) 2004-2013  HUBzero Foundation, LLC
4 *
5 */
6#ifndef DX_READER_COMMON_H
7#define DX_READER_COMMON_H
8
9extern float *
10merge(float *scalar, float *gradient, int size);
11
12extern void
13normalizeScalar(float *data, int count, int stride, double min, double max);
14
15extern float *
16computeGradient(float *data,
17                int nx, int ny, int nz,
18                float dx, float dy, float dz,
19                float min, float max);
20
21extern void
22computeSimpleGradient(float *data,
23                      int nx, int ny, int nz,
24                      float dx = 1.0f, float dy = 1.0f, float dz = 1.0f);
25
26#endif
Note: See TracBrowser for help on using the repository browser.