DGtal 1.3.0
|
class to insert a custom 2D textured image by using a conversion functor and allows to change the default mode (GrayScale mode) to color mode. More...
#include <DGtal/io/viewers/DrawWithViewer3DModifier.h>
Public Types | |
typedef Viewer3D< Space, KSpace >::TextureMode | TTextureMode |
Public Member Functions | |
BOOST_CONCEPT_ASSERT ((concepts::CConstImage< TImageType >)) | |
AddTextureImage2DWithFunctor (ConstAlias< TImageType > anImage, Clone< TFunctor > aFunctor, TTextureMode aMode=TTextureMode::GrayScaleMode) | |
Public Member Functions inherited from DGtal::DrawWithViewer3DModifier | |
std::string | className () const |
Public Member Functions inherited from DGtal::DrawWithDisplay3DModifier | |
std::string | className () const |
Data Fields | |
const TImageType * | my2DImage |
const TFunctor | myFunctor |
TTextureMode | myMode |
class to insert a custom 2D textured image by using a conversion functor and allows to change the default mode (GrayScale mode) to color mode.
TImageType | the type of the used as texture (should follow the concept of CConstImage). |
TFunctor | the functor type to transform source image scalar value into the one of the image being displayed. |
A typical use can be illustrated by displaying a grayscale source image with artificial color defined from a colormap (see viewer3D-8-2DSliceImages.cpp ): We can first add a functor to convert grayscale value into RGB int:
Then you can define and add the object AddTextureImage2DWithFunctor in a viewer:
Definition at line 251 of file DrawWithViewer3DModifier.h.
typedef Viewer3D<Space,KSpace>::TextureMode DGtal::AddTextureImage2DWithFunctor< TImageType, TFunctor, Space, KSpace >::TTextureMode |
Definition at line 254 of file DrawWithViewer3DModifier.h.
|
inline |
Constructor given from an 2D image and a Functor to apply specific conversion.
Definition at line 260 of file DrawWithViewer3DModifier.h.
DGtal::AddTextureImage2DWithFunctor< TImageType, TFunctor, Space, KSpace >::BOOST_CONCEPT_ASSERT | ( | (concepts::CConstImage< TImageType >) | ) |
const TImageType* DGtal::AddTextureImage2DWithFunctor< TImageType, TFunctor, Space, KSpace >::my2DImage |
Definition at line 268 of file DrawWithViewer3DModifier.h.
const TFunctor DGtal::AddTextureImage2DWithFunctor< TImageType, TFunctor, Space, KSpace >::myFunctor |
Definition at line 269 of file DrawWithViewer3DModifier.h.
TTextureMode DGtal::AddTextureImage2DWithFunctor< TImageType, TFunctor, Space, KSpace >::myMode |
Definition at line 270 of file DrawWithViewer3DModifier.h.