32 #include "DGtal/io/viewers/Viewer3D.h"
33 #include "DGtal/images/ImageContainerBySTLVector.h"
34 #include "DGtal/helpers/StdDefs.h"
35 #include "DGtal/images/ConstImageAdapter.h"
36 #include "DGtal/io/colormaps/GradientColorMap.h"
37 #include "DGtal/io/colormaps/HueShadeColorMap.h"
41 #include <QMainWindow>
82 col = DGtal::Color(aVal);
84 return (((
unsigned int) col.red()) << 16)| (((
unsigned int) col.green()) << 8)|((
unsigned int) col.blue());
87 DGtal::HueShadeColorMap<unsigned char>
hueShade;
89 DGtal::GradientColorMap<unsigned char, DGtal::CMAP_HOT>
gradShadeHot;
95 typedef DGtal::ImageContainerBySTLVector < DGtal::Z3i::Domain, unsigned char >
Image3D;
96 typedef DGtal::ImageContainerBySTLVector < DGtal::Z2i::Domain, unsigned char >
Image2D;
97 typedef DGtal::ConstImageAdapter<Image3D, Image2D::Domain, DGtal::functors::Projector< DGtal::Z3i::Space>,
99 typedef DGtal::ConstImageAdapter<Image3D, Image2D::Domain, DGtal::functors::Projector< DGtal::Z3i::Space>,
103 explicit MainWindow(DGtal::Viewer3D<> *viewer, DGtal::ImageContainerBySTLVector < DGtal::Z3i::Domain,
void setImageProjY(const QPixmap &aPixMap)
void updateAllDisplayedImages()
DGtal::ConstImageAdapter< Image3D, Image2D::Domain, DGtal::functors::Projector< DGtal::Z3i::Space >, Image3D::Value, ColorMapFunctor > SliceImageAdapterFct
void changeNormalColorMap()
void setScale1_1_ImageY()
void changeCoolColorMap()
DGtal::ImageContainerBySTLVector< DGtal::Z3i::Domain, unsigned char > Image3D
void setScale1_1_ImageZ()
DGtal::Viewer3D * myViewer
ColorMapFunctor myColorMap
void setImageProjX(const QPixmap &aPixMap)
MainWindow(DGtal::Viewer3D<> *viewer, DGtal::ImageContainerBySTLVector< DGtal::Z3i::Domain, unsigned char > *myImage3D, const ColorMapFunctor &aFunctor, QWidget *parent=0, Qt::WindowFlags flags=0)
DGtal::ConstImageAdapter< Image3D, Image2D::Domain, DGtal::functors::Projector< DGtal::Z3i::Space >, Image3D::Value, DGtal::functors::Identity > SliceImageAdapter
void setScale1_1_ImageX()
DGtal::ImageContainerBySTLVector< DGtal::Z2i::Domain, unsigned char > Image2D
void setImageProjZ(const QPixmap &aPixMap)
DGtal::GradientColorMap< unsigned char, DGtal::CMAP_HOT > gradShadeHot
unsigned int operator()(unsigned char aVal) const
DGtal::GradientColorMap< unsigned char, DGtal::CMAP_COOL > gradShadeCool
ColorMapFunctor(const ColorMapType type)
DGtal::HueShadeColorMap< unsigned char > hueShade