Hi!

So this is vetting exercise Part 2.
- Adds the target "info" to the makefile, which prints some info.

While writing that patch was easy, it made me explore how the panorama
build process works at all.
I found it rather interesting/confusing how the two buttons "Stitch
Now" and "..send to batch" finally end up creating a makefile, but
taking two completely different ways of getting to that point and
preparing the data for that.

So the project idea would be, to create a panorama-build framework,
that replaces and generalizes all that stuff and invokes the tools
directly.
That would also have significant impact to the Batch Processor
PTBatcherGUI. (?)

The Idea Article contains a link to Panotools::Makefile, a perl script
which I haven't found in the hugin code yet. What is it used for?
Can somebody give me some background? Thanks.

(Patch following)

Flo

Index: hugin_base/algorithms/panorama_makefile/
PanoramaMakefileExport.cpp
===================================================================
--- hugin_base/algorithms/panorama_makefile/PanoramaMakefileExport.cpp
(revision 5095)
+++ hugin_base/algorithms/panorama_makefile/PanoramaMakefileExport.cpp
(working copy)
@@ -758,6 +758,21 @@
         << "\t-$(RM) $(TEMP_FILES_SHELL)" << endl
         << endl;

+        // Info target.
+        o << "info:" << endl
+        << "\...@echo 'PTOfile: " << ptofile << "'" << endl
+        << "\...@echo 'Height:  " << opts.getHeight() << "'" << endl
+        << "\...@echo 'Width:   " << opts.getWidth() << "'" << endl
+        << "\...@echo 'HFOV:    " << opts.getHFOV() << "'" << endl
+        << "\...@echo 'VFOV:    " << opts.getVFOV() << "'" << endl
+        << "\...@echo" << endl
+        << "\...@echo 'Images:'" << endl;
+        for (UIntSet::iterator it = images.begin(); it !=
images.end(); it++)
+        {
+            o << "\...@echo '" << pano.getImage(*it).getFilename() <<
"'" << endl;
+        }
+
+
         // test rule
         o << "test: " << endl;
         // test remapper

-- 
You received this message because you are subscribed to the Google Groups 
"hugin and other free panoramic software" group.
A list of frequently asked questions is available at: 
http://wiki.panotools.org/Hugin_FAQ
To post to this group, send email to hugin-ptx@googlegroups.com
To unsubscribe from this group, send email to 
hugin-ptx+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/hugin-ptx

To unsubscribe, reply using "remove me" as the subject.

Reply via email to