69int main(
int argc,
char** argv )
73 QApplication application(argc,argv);
77 std::string inputFilename = examplesPath +
"samples/lobster.vol";
90 transTo2DdomainFunctorZ(imageVol.domain().upperBound()));
97 MySliceImageAdapter aSliceImageZ(imageVol, domain2DZ, aSliceFunctorZ, identityFunctor );
103 transTo2DdomainFunctorY(imageVol.domain().upperBound()));
109 MySliceImageAdapter aSliceImageY(imageVol, domain2DY, aSliceFunctorY, identityFunctor );
113 viewer <<
SetMode3D(aSliceImageZ.className(),
"BoundingBox");
118 viewer << aSliceImageZ;
119 viewer << aSliceImageY;
122 viewer <<
SetMode3D(aSliceImageZ.className(),
"");
130 viewer << DGtal::UpdateImagePosition<Z3i::Space, Z3i::KSpace>(1,
MyViewer::yDirection, 0.0, 50.0, 0.0);
131 viewer << DGtal::UpdateImageData<MySliceImageAdapter>(0, aSliceImageZ, 0, 0, 10);
137 viewer << DGtal::UpdateImagePosition<Z3i::Space, Z3i::KSpace>(3,
MyViewer::yDirection, 500.0, 50.0, 0.0);
138 viewer << DGtal::UpdateImageData<MySliceImageAdapter, hueFct>(2, aSliceImageZ, 500, 0, 10, 0.0,
MyViewer::zDirection, hueFct());
142return application.exec();