61 std::string freemanChainFilename = examplesPath +
"samples/contourS.fc";
63 fst.open (freemanChainFilename.c_str(), ios::in);
69 std::string filenameImage = examplesPath +
"samples/contourS.png";
74 unsigned int width = abs(ptSup[0]-ptInf[0]+1);
75 unsigned int height = abs(ptSup[1]-ptInf[1]+1);
80 dgBoard.
drawImage(filenameImage, 0,height-1, width, height );
83 dgBoard.
saveEPS(
"freemanChainDisplay.eps");
84 dgBoard.
saveSVG(
"freemanChainDisplay.svg");
85 dgBoard.
saveFIG(
"freemanChainDisplay.fig");
Aim: Parallelepidec region of a digital space, model of a 'CDomain'.
void drawImage(std::string filename, double x, double y, double width, double height, int depthValue=-1, double alpha=1.0)