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: MtnViewJohn, chris, mtnviewmark

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 »

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: 882
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 »

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