Re: [hugin-ptx] Re: Stitching Aerial Images with Hugein

2011-06-29 Thread David Haberthür
Ciao Bob

 Thanks for the post - I think the problem is that I need to create
 control points and stuff them in a file to be processed by the
 malefile.
This can all be done via the command line. Did you take a look at the Panotools 
wiki, where panorama scripting is explained? 
http://wiki.panotools.org/Panorama_scripting_in_a_nutshell Maybe that's a 
process you could follow.

 There is a batch command that will pick up everything in a directory
 and stitch them - but with a thousand images, I would need to make
 several hundres directories, and then move everything back  . . .
Thats something that should be perfectly possible with a bit of scripting. You 
can also just feed some images to (for example) autopano-sift. Take a look at 
the linked wiki page and let us know how we can help you in more detail.

Habi

BTW: Looking at the makefile below I see that you try to generate .EXR-files. 
Do you aim to make HDR-Images of Las Vegas?





 On Jun 2, 8:05 am, rfrank5356 robert_frank...@aerialservices.org
 wrote:
 Hi - I take thousands of aerial images, and generally we process the
 data without rectifying the photos. However, stitching sevaral images
 together would reduce our workload a lot. I have tested Hugein and it
 works great for this - 3 images @ 22MP is about right. My thought is
 to generate a set of scripts to do this based upon aircraft flightline
 direction. I took the 1E3V4275-1E3V4277.pto.mk file from a successful
 stitch session and using makefilelib, and created a
 1E3V4278-1E3V4280.pto.mk - thinking that replacing the image names in
 the script wouod give me a new sample sctipt - and I could than
 generate the script set using a .net program that accesses that image
 database.
 
 Well - when I use the Make command - I get a 'Nothibng to do' message
 - And I am at a loss - Do I need to do something else,outside of this
 script, such as generate control points? Any help would be appreciated
 - as I have just taked about 1200 images of beautiful Las Vegas!
 
 Here is the test maklefile
 
 # makefile for panorama stitching, created by hugin using the new
 makefilelib# Force using cmd.exeSHELL=C:/WINDOWS/system32/cmd.exe#
 Tool configurationNONA=C:/Program Files/Hugin/bin/
 nonaPTSTITCHER=PTStitcherPTMENDER=C:/Program Files/Hugin/bin/
 PTmenderPTBLENDER=C:/Program Files/Hugin/bin/PTblenderPTMASKER=C:/
 Program Files/Hugin/bin/PTmaskerPTROLLER=C:/Program Files/Hugin/bin/
 PTrollerENBLEND=C:/Program Files/Hugin/bin/enblendENFUSE=C:/
 Program Files/Hugin/bin/enfuseSMARTBLEND=smartblend.exeHDRMERGE=C:/
 Program Files/Hugin/bin/hugin_hdrmergeRM=delEXIFTOOL=C:/Program
 Files/Hugin/bin/exiftool# Project
 parametersHUGIN_PROJECTION=0HUGIN_HFOV=66HUGIN_WIDTH=10208HUGIN_HEIGHT=6999 #
 options for the programsNONA_LDR_REMAPPED_COMP=-z LZW
 NONA_OPTS=ENBLEND_OPTS= -f9726x5752+185+57ENBLEND_LDR_COMP=--
 compression=100ENBLEND_HDR_COMP=HDRMERGE_OPTS=-m avg -
 cENFUSE_OPTS=EXIFTOOL_COPY_ARGS=-ImageDescription -Make -Model -Artist
 -WhitePoint -Copyright -GPS:all -DateTimeOriginal -CreateDate -
 UserComment -ColorSpace -OwnerName -SerialNumber# the output
 panoramaLDR_REMAPPED_PREFIX=1E3V4278-1E3V4280LDR_REMAPPED_PREFIX_SHELL=1E3 
 V4278-1E3V4280HDR_STACK_REMAPPED_PREFIX=1E3V4278-1E3V4280_hdr_HDR_STACK_RE 
 MAPPED_PREFIX_SHELL=1E3V4278-1E3V4280_hdr_LDR_EXPOSURE_REMAPPED_PREFIX=1E 
 3V4278-1E3V4280_exposure_layers_LDR_EXPOSURE_REMAPPED_PREFIX_SHELL=1E3V427 
 8-1E3V4280_exposure_layers_PROJECT_FILE=M:/
 Test/Images/Images/HugeinTest/
 1E3V4278-1E3V4280.ptoPROJECT_FILE_SHELL=M:/Test/Images/Images/
 HugeinTest/
 1E3V4278-1E3V4280.ptoLDR_BLENDED=1E3V4278-1E3V4280.jpgLDR_BLENDED_SHELL=1 
 E3V4278-1E3V4280.jpgLDR_STACKED_BLENDED=1E3V4278-1E3V4280_fused.jpgLDR_STA 
 CKED_BLENDED_SHELL=1E3V4278-1E3V4280_fused.jpgLDR_EXPOSURE_LAYERS_FUSED=1 
 E3V4278-1E3V4280_blended_fused.jpgLDR_EXPOSURE_LAYERS_FUSED_SHELL=1E3V4278 
 -1E3V4280_blended_fused.jpgHDR_BLENDED=1E3V4278-1E3V4280_hdr.exrHDR_BLENDE 
 D_SHELL=1E3V4278-1E3V4280_hdr.exr#
 first input imageINPUT_IMAGE_1=M:/Test/Images/Images/HugeinTest/
 1E3V4278.JPGINPUT_IMAGE_1_SHELL=M:/Test/Images/Images/HugeinTest/
 1E3V4278.JPG# all input imagesINPUT_IMAGES=M:/Test/Images/Images/
 HugeinTest/1E3V4278.JPG\M:/Test/Images/Images/HugeinTest/1E3V4279.JPG
 \M:/Test/Images/Images/HugeinTest/1E3V4280.JPGINPUT_IMAGES_SHELL=M:/
 Test/Images/Images/HugeinTest/1E3V4278.JPG\M:/Test/Images/Images/
 HugeinTest/1E3V4279.JPG\M:/Test/Images/Images/HugeinTest/
 1E3V4280.JPG# remapped imagesLDR_LAYERS=1E3V4278-1E3V4280.tif
 \1E3V4278-1E3V4281.tif
 \1E3V4278-1E3V4282.tifLDR_LAYERS_SHELL=1E3V4278-1E3V4280.tif\1E3 
 V4278-1E3V4281.tif\1E3V4278-1E3V4282.tif#
 remapped images (hdr)HDR_LAYERS=1E3V4278-1E3V4280_hdr_.exr
 \1E3V4278-1E3V4280_hdr_0001.exr
 \1E3V4278-1E3V4280_hdr_0002.exrHDR_LAYERS_SHELL=1E3V4278-1E3V4280_hdr_ 
 .exr\1E3V4278-1E3V4280_hdr_0001.exr\1E3V4278-1E3V4280_hdr_0002.exr#
 remapped maxval
 imagesHDR_LAYERS_WEIGHTS=1E3V4278-1E3V4280_hdr__gray.pgm

[hugin-ptx] Re: Stitching Aerial Images with Hugein

2011-06-27 Thread rfrank5356
Hi Habir

Thanks for the post - I think the problem is that I need to create
control points and stuff them in a file to be processed by the
malefile.

If there were a process flow I could follow  . . .

There is a batch command that will pick up everything in a directory
and stitch them - but with a thousand images, I would need to make
several hundres directories, and then move everything back  . . .

Best

bob


On Jun 2, 8:05 am, rfrank5356 robert_frank...@aerialservices.org
wrote:
 Hi - I take thousands of aerial images, and generally we process the
 data without rectifying the photos. However, stitching sevaral images
 together would reduce our workload a lot. I have tested Hugein and it
 works great for this - 3 images @ 22MP is about right. My thought is
 to generate a set of scripts to do this based upon aircraft flightline
 direction. I took the 1E3V4275-1E3V4277.pto.mk file from a successful
 stitch session and using makefilelib, and created a
 1E3V4278-1E3V4280.pto.mk - thinking that replacing the image names in
 the script wouod give me a new sample sctipt - and I could than
 generate the script set using a .net program that accesses that image
 database.

 Well - when I use the Make command - I get a 'Nothibng to do' message
 - And I am at a loss - Do I need to do something else,outside of this
 script, such as generate control points? Any help would be appreciated
 - as I have just taked about 1200 images of beautiful Las Vegas!

 Here is the test maklefile

 # makefile for panorama stitching, created by hugin using the new
 makefilelib# Force using cmd.exeSHELL=C:/WINDOWS/system32/cmd.exe#
 Tool configurationNONA=C:/Program Files/Hugin/bin/
 nonaPTSTITCHER=PTStitcherPTMENDER=C:/Program Files/Hugin/bin/
 PTmenderPTBLENDER=C:/Program Files/Hugin/bin/PTblenderPTMASKER=C:/
 Program Files/Hugin/bin/PTmaskerPTROLLER=C:/Program Files/Hugin/bin/
 PTrollerENBLEND=C:/Program Files/Hugin/bin/enblendENFUSE=C:/
 Program Files/Hugin/bin/enfuseSMARTBLEND=smartblend.exeHDRMERGE=C:/
 Program Files/Hugin/bin/hugin_hdrmergeRM=delEXIFTOOL=C:/Program
 Files/Hugin/bin/exiftool# Project
 parametersHUGIN_PROJECTION=0HUGIN_HFOV=66HUGIN_WIDTH=10208HUGIN_HEIGHT=6999­#
 options for the programsNONA_LDR_REMAPPED_COMP=-z LZW
 NONA_OPTS=ENBLEND_OPTS= -f9726x5752+185+57ENBLEND_LDR_COMP=--
 compression=100ENBLEND_HDR_COMP=HDRMERGE_OPTS=-m avg -
 cENFUSE_OPTS=EXIFTOOL_COPY_ARGS=-ImageDescription -Make -Model -Artist
 -WhitePoint -Copyright -GPS:all -DateTimeOriginal -CreateDate -
 UserComment -ColorSpace -OwnerName -SerialNumber# the output
 panoramaLDR_REMAPPED_PREFIX=1E3V4278-1E3V4280LDR_REMAPPED_PREFIX_SHELL=1E3­V4278-1E3V4280HDR_STACK_REMAPPED_PREFIX=1E3V4278-1E3V4280_hdr_HDR_STACK_RE­MAPPED_PREFIX_SHELL=1E3V4278-1E3V4280_hdr_LDR_EXPOSURE_REMAPPED_PREFIX=1E­3V4278-1E3V4280_exposure_layers_LDR_EXPOSURE_REMAPPED_PREFIX_SHELL=1E3V427­8-1E3V4280_exposure_layers_PROJECT_FILE=M:/
 Test/Images/Images/HugeinTest/
 1E3V4278-1E3V4280.ptoPROJECT_FILE_SHELL=M:/Test/Images/Images/
 HugeinTest/
 1E3V4278-1E3V4280.ptoLDR_BLENDED=1E3V4278-1E3V4280.jpgLDR_BLENDED_SHELL=1­E3V4278-1E3V4280.jpgLDR_STACKED_BLENDED=1E3V4278-1E3V4280_fused.jpgLDR_STA­CKED_BLENDED_SHELL=1E3V4278-1E3V4280_fused.jpgLDR_EXPOSURE_LAYERS_FUSED=1­E3V4278-1E3V4280_blended_fused.jpgLDR_EXPOSURE_LAYERS_FUSED_SHELL=1E3V4278­-1E3V4280_blended_fused.jpgHDR_BLENDED=1E3V4278-1E3V4280_hdr.exrHDR_BLENDE­D_SHELL=1E3V4278-1E3V4280_hdr.exr#
 first input imageINPUT_IMAGE_1=M:/Test/Images/Images/HugeinTest/
 1E3V4278.JPGINPUT_IMAGE_1_SHELL=M:/Test/Images/Images/HugeinTest/
 1E3V4278.JPG# all input imagesINPUT_IMAGES=M:/Test/Images/Images/
 HugeinTest/1E3V4278.JPG\M:/Test/Images/Images/HugeinTest/1E3V4279.JPG
 \M:/Test/Images/Images/HugeinTest/1E3V4280.JPGINPUT_IMAGES_SHELL=M:/
 Test/Images/Images/HugeinTest/1E3V4278.JPG\M:/Test/Images/Images/
 HugeinTest/1E3V4279.JPG\M:/Test/Images/Images/HugeinTest/
 1E3V4280.JPG# remapped imagesLDR_LAYERS=1E3V4278-1E3V4280.tif
 \1E3V4278-1E3V4281.tif
 \1E3V4278-1E3V4282.tifLDR_LAYERS_SHELL=1E3V4278-1E3V4280.tif\1E3­V4278-1E3V4281.tif\1E3V4278-1E3V4282.tif#
 remapped images (hdr)HDR_LAYERS=1E3V4278-1E3V4280_hdr_.exr
 \1E3V4278-1E3V4280_hdr_0001.exr
 \1E3V4278-1E3V4280_hdr_0002.exrHDR_LAYERS_SHELL=1E3V4278-1E3V4280_hdr_­.exr\1E3V4278-1E3V4280_hdr_0001.exr\1E3V4278-1E3V4280_hdr_0002.exr#
 remapped maxval
 imagesHDR_LAYERS_WEIGHTS=1E3V4278-1E3V4280_hdr__gray.pgm
 \1E3V4278-1E3V4280_hdr_0001_gray.pgm
 \1E3V4278-1E3V4280_hdr_0002_gray.pgmHDR_LAYERS_WEIGHTS_SHELL=1E3V4278-1E3V­4280_hdr__gray.pgm\1E3V4278-1E3V4280_hdr_0001_gray.pgm\1E3V4278-1E3­V4280_hdr_0002_gray.pgm#
 stacked hdr