DGtal-team / DGtalTools

Tools associated with DGtal Library
http://dgtal.org
GNU Lesser General Public License v3.0
44 stars 38 forks source link

Generate SDP file from an contour image #362

Closed julianakuei closed 4 years ago

julianakuei commented 4 years ago

I want to generate "sdp file" from a contour image (see the attachments), but I saw the DGtal library only support "freeman to sdp"; the problem is that the freeman chain data only can extract the outside contour, so the inside contour will be missed. I am wondering if there are any tool that can generate sdp file for this case?

22

kerautret commented 4 years ago

@julianakuei Thanks you for your feedback, (really for the delay !). Perhaps you have found already a solution but here are the steps that you can do with the DGtalTools: img2freeman -i tmp.pgm > tmp.fc freeman2sdp -i tmp.fc -o > contourS.sdp You will obtain a set of several concurs: contourS.sdp.gz

If you want you can also check the result that by using the tools displaySet2dPts from the DGtalTools-contrib Like: displaySet2dPts -i contourS.sdp -o titi.eps you will obtain such a result:

titi Help that it can be useful for you !