#include <cpExtensions/cpExtensions_Export.h>
+#include <cmath>
#include <map>
+
#include <vtkThreadedImageAlgorithm.h>
namespace cpExtensions
static Self* New( );
void PrintSelf( std::ostream& os, vtkIndent indent );
+ unsigned int GetNumberOfImages( ) const;
+
const double& GetMaxWindow( ) const;
const double& GetMaxLevel( ) const;
const double& GetMinWindow( ) const;
protected:
struct TColor
{
- double R, G, B;
+ double R, G, B, N;
TColor(
const double& r = double( 1 ),
const double& g = double( 0 ),
: R( r ),
G( g ),
B( b )
- { }
+ {
+ this->N = std::sqrt( ( r * r ) + ( g * g ) + ( b * b ) );
+ }
};
mutable std::map< unsigned int, TColor > m_Colors;
double m_MinLevel;
double m_Window;
double m_Level;
+
+ int m_Extent[ 6 ];
+ double m_WLSlope;
+ double m_WLOffset;
};
} // ecapseman