How can I get the parse tree for the generated image?

If you're having trouble using Context Free or don't understand the language, ask for help here.

Moderators: chris, MtnViewMark, MtnViewJohn

Post Reply
pragy
Posts: 1
Joined: Mon Jul 03, 2017 12:52 pm

How can I get the parse tree for the generated image?

Post by pragy » Mon Jul 03, 2017 1:03 pm

I am trying to use Context Free Art to create a simple dataset of images, and use it for my research.

Given the grammar, how can I configure the software to output the entire parse tree (and the order of rendering) along with the output image?

I'm willing to dive into the code, but considering that it is huge, I would prefer if someone could provide relevant pointers.

Thanks ^_^

User avatar
MtnViewJohn
Site Admin
Posts: 833
Joined: Fri May 06, 2005 2:26 pm
Location: Mountain View, California
Contact:

Re: How can I get the parse tree for the generated image?

Post by MtnViewJohn » Mon Jul 03, 2017 11:08 pm

You can get the order of rendering by outputting as an SVG file, but it will be sorted on Z-axis value. There could be an option to skip Z sorting.

There is no option to output the parse tree. I guess it wouldn't be that hard. It could be done as an optional compile phase.

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests