That works very well Juan, thanks so much for answering on SO as well
Matteo

Matteo Niccoli
P. Geo., M.sc.
Geophysics and data science
[image: WordPress] <http://mycarta.wordpress.com/>[image: LinkedIn]
<http://www.linkedin.com/in/matteo-niccoli-031aa426>[image: Twitter]
<http://twitter.com/@my_carta>[image: Custom link]
<https://github.com/mycarta>[image: Custom link]
<https://www.researchgate.net/profile/Matteo_Niccoli2>

On Fri, Apr 20, 2018 at 1:48 AM, Juan Nunez-Iglesias <jni.s...@gmail.com>
wrote:

> I would do something along these lines:
>
> frames = []
> for contour_id, contour in enumerate(contours):
>     current_frame = pd.DataFrame(contour, columns={'row', 'column'})
>     current_frame['contour'] = contour_id  # creates column with repeated
> value
>     frames.append(current_frame)
>
> full_data = pd.concat(frames)
>
>
> On Fri, Apr 20, 2018, at 1:22 PM, Matteo wrote:
>
> I am using a modified version of this scikit-image demo
> <http://scikit-image.org/docs/dev/auto_examples/edges/plot_contours.html> to
> create contours from the edges resulting from watershed segmentation of an
> image. I would like to save the resulting contours in a spreadsheet, not
> an image, to take into a GIS package (although I do save image for another
> application).
> I am trying to use Pandas DataFrames as described in this StackOverflow
> question:
> https://stackoverflow.com/questions/49930616/how-to-
> store-scikit-image-contours-in-a-pandas-dataframe-with-a-single-vertex-an
>
>
> But I wonder if there's an easier way I overlooked.
> Thanks,
> Matteo
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "scikit-image" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to scikit-image+unsubscr...@googlegroups.com.
> To post to this group, send email to scikit-image@googlegroups.com.
> To view this discussion on the web, visit https://groups.google.com/d/
> msgid/scikit-image/674b51dc-b8b9-48d5-8f5e-e62f41e919cd%40googlegroups.com
> <https://groups.google.com/d/msgid/scikit-image/674b51dc-b8b9-48d5-8f5e-e62f41e919cd%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "scikit-image" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/
> topic/scikit-image/U1llrbRTVCc/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> scikit-image+unsubscr...@googlegroups.com.
> To post to this group, send email to scikit-image@googlegroups.com.
> To view this discussion on the web, visit https://groups.google.com/d/
> msgid/scikit-image/1524210517.2505812.1344612472.2E66FF28%
> 40webmail.messagingengine.com
> <https://groups.google.com/d/msgid/scikit-image/1524210517.2505812.1344612472.2E66FF28%40webmail.messagingengine.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"scikit-image" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to scikit-image+unsubscr...@googlegroups.com.
To post to this group, send an email to scikit-image@googlegroups.com.
To view this discussion on the web, visit 
https://groups.google.com/d/msgid/scikit-image/CAOiQyamK2ONMWN7Q0Kyzjmrv2rkxkJpMYfUnyYAwirHu75_KmA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to