44 #include "DGtal/base/Common.h"
45 #include "DGtal/helpers/StdDefs.h"
46 #include "DGtal/images/ImageHelper.h"
47 #include "DGtal/io/readers/VolReader.h"
48 #include "DGtal/images/ImageSelector.h"
49 #include "DGtal/images/ConstImageAdapter.h"
50 #include "ConfigExamples.h"
51 #include "DGtal/io/viewers/Viewer3D.h"
52 #include "DGtal/kernel/BasicPointFunctors.h"
56 using namespace DGtal;
61 int main(
int argc,
char** argv )
65 QApplication application(argc,argv);
67 viewer.setWindowTitle(
"simpleViewer");
81 std::string filename = examplesPath +
"samples/lobster.vol";
85 invFunctor(image.domain().upperBound()));
92 for (
unsigned int i=0; i<30; i+=5){
94 SliceImageAdapter sliceImageZ(image,
domain, aSliceFunctor, idV);
95 viewer << sliceImageZ;
96 viewer << DGtal::UpdateImagePosition<Z3i::Space, Z3i::KSpace>(pos,
Viewer3D<>::zDirection, i*20, i*20, i*20 );
113 ImageAdapterExtractor extractedImage(image, domainImage2D, embedder, idV);
114 viewer << extractedImage;
115 viewer << DGtal::UpdateImage3DEmbedding<Z3i::Space, Z3i::KSpace>(pos,
123 viewer << DGtal::Viewer3D<>::updateDisplay;
Aim: implements a const image adapter with a given domain (i.e. a subdomain) and 2 functors : g for d...
const Point & upperBound() const
void beginBlock(const std::string &keyword="")
virtual void show()
Overload QWidget method in order to add a call to updateList() method (to ensure that the lists are w...
Aim: Functor that embeds a 2D point into a 3D space from two axis vectors and an origin point given i...
int main(int argc, char **argv)
DGtal is the top-level namespace which contains all DGtal functions and types.
Aim: implements methods to read a "Vol" file format.
Aim: Define a simple default functor that just returns its argument.
Aim: Functor that maps a point P of dimension i to a point Q of dimension j. The member myDims is an ...
void initAddOneDim(const Dimension &newDim)