X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FcpExtensions%2FVisualization%2FImageBlender.h;h=f12282295da44d6ac107d962d3cd8b1648a207b8;hb=dc7b0175c06fcd6bd7a6d475a2592336953dad36;hp=b74b51a9ce4d7fb706ecda5a299a0919e2f3b209;hpb=8e5fd31fd4d280781d8bc27a799361bf9c30b1d4;p=cpPlugins.git diff --git a/lib/cpExtensions/Visualization/ImageBlender.h b/lib/cpExtensions/Visualization/ImageBlender.h index b74b51a..f122822 100644 --- a/lib/cpExtensions/Visualization/ImageBlender.h +++ b/lib/cpExtensions/Visualization/ImageBlender.h @@ -3,7 +3,9 @@ #include +#include #include + #include namespace cpExtensions @@ -23,6 +25,8 @@ 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; @@ -82,7 +86,7 @@ namespace cpExtensions protected: struct TColor { - double R, G, B; + double R, G, B, N; TColor( const double& r = double( 1 ), const double& g = double( 0 ), @@ -91,7 +95,9 @@ namespace cpExtensions : R( r ), G( g ), B( b ) - { } + { + this->N = std::sqrt( ( r * r ) + ( g * g ) + ( b * b ) ); + } }; mutable std::map< unsigned int, TColor > m_Colors; @@ -101,6 +107,10 @@ namespace cpExtensions double m_MinLevel; double m_Window; double m_Level; + + int m_Extent[ 6 ]; + double m_WLSlope; + double m_WLOffset; }; } // ecapseman