A simple example of cellular grid space with several cells instantiated and visualized. This program outputs this image.
- See also:
- Creating (unsigned) cells in a cellular grid space
#include <iostream>
#include "DGtal/base/Common.h"
#include "DGtal/helpers/StdDefs.h"
#include "DGtal/io/boards/Board2D.h"
#include "DGtal/io/Color.h"
using namespace std;
using namespace DGtal;
using namespace DGtal::Z2i;
int main()
{
K.
init( plow, pup,
true );
<< domain;
Color( 100, 100, 255 ) ) )
<< ptlow << ptup2;
Color( 255, 100, 100 ) ) )
<< pixlow << pixup;
Color( 100, 255, 100 ) ) )
<< linelb << linelt << linell << linelr;
return 0;
}