32 #include "DGtal/base/Common.h"
33 #include "DGtal/io/viewers/Viewer3D.h"
34 #include "DGtal/helpers/StdDefs.h"
35 #include "DGtal/io/readers/GenericReader.h"
36 #include "DGtal/io/writers/GenericWriter.h"
37 #include "DGtal/kernel/BasicPointFunctors.h"
38 #include "DGtal/images/ConstImageAdapter.h"
39 #include "DGtal/io/viewers/DrawWithViewer3DModifier.h"
40 #include "ConfigTest.h"
46 using namespace DGtal;
61 int main(
int argc,
char** argv )
68 QApplication application(argc,argv);
70 viewer.setWindowTitle(
"simpleViewer");
74 Point pcenter( 10, 20, 20 );
75 Point pcenterImg( 10, 20, 20 );
77 std::string filename = testPath +
"samples/cat10.pgm3d";
99 ImageAdapterExtractor extractedImage(image, domainImage2D, embedder, idV);
100 ImageAdapterExtractor extractedImage2(image, domainImage2D, embedder2, idV);
101 ImageAdapterExtractor extractedImage3(image, domainImage2D, embedder3, idV);
102 ImageAdapterExtractor extractedImage4(image, domainImage2D, embedder4, idV);
104 viewer << extractedImage;
105 viewer << extractedImage2;
106 viewer << extractedImage3;
107 viewer << extractedImage4;
108 viewer << DGtal::UpdateImage3DEmbedding<Z3i::Space, Z3i::KSpace>(0,
113 viewer << DGtal::UpdateImage3DEmbedding<Z3i::Space, Z3i::KSpace>(1,
118 viewer << DGtal::UpdateImage3DEmbedding<Z3i::Space, Z3i::KSpace>(2,
123 viewer << DGtal::UpdateImage3DEmbedding<Z3i::Space, Z3i::KSpace>(3,
133 viewer << Viewer3D<>::updateDisplay;
136 bool res = application.exec();
137 trace.
emphase() << ( res ?
"Passed." :
"Error." ) << endl;
Structure representing an RGB triple with alpha component.
Aim: implements a const image adapter with a given domain (i.e. a subdomain) and 2 functors : g for d...
virtual void setFillColor(DGtal::Color aColor)
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...
DGtal is the top-level namespace which contains all DGtal functions and types.
static TContainer import(const std::string &filename, std::vector< unsigned int > dimSpace=std::vector< unsigned int >())
Aim: Define a simple default functor that just returns its argument.
int main(int argc, char **argv)