[hugin-ptx] New primary seam generator in Enblend

2011-09-01 Thread Rosomack
Hello all,

I'm happy to announce a new primary seam generator that was recently
integrated into the Enblend mainline. It was developed as part of the
Google Summer of Code 2011 program.

The algorithm is based on the idea of Graph-Cuts :
http://en.wikipedia.org/wiki/Graph_cuts_in_computer_vision
The implementation does not utilize max-flow algorithms, which are
relatively slow and memory-heavy.

The new seam generator takes into account feature frequency as well as
image dissimilarity, and therefore is less likely to cross elements
which would make the seam line more apparent, such as beams, fences,
railings etc.. This should produce better results than the old seam
generator in many cases.

The Graph Cut seam generator works best with a fine mask (--fine-mask
command line option). It requires more memory and time than the old
Nearest Feature Transform algorithm, so it is best to use NFT where
efficiency is essential. Graph-cut on the other hand should produce an
overall better seam in most cases.

For more information on usage and current limitations please refer to
the Enblend manual.

Special thanks to Thomas Modes and Christoph Spiel for great help and
guidance. Also a big thank you for everyone who sent me photos for
testing.

Regards,
Mikolaj

-- 
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


[hugin-ptx] Calibrate lens GUI

2011-09-01 Thread Oskar Sander
I've played around with it and this is a really nice application, thanks
guys!

Can I use it also when focal length/fov is not quite known, or must I get
that in some other way? (Hugin for example)

The thing is ´my camera has a focal length of 5.1mm  eqv to 24 mm on 35mm
film, alright. But then I add a housing an a wet-lens and dive with it.  The
lens have a stated angle of view of 85° (106.5° on land) and magnification
of 0.65x.

Should I just try to calculate a focal length like this which would suggest
something slightly wider than 24mm eqv?  (
http://en.wikipedia.org/wiki/Angle_of_view)

cheers
//O

-- 
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


Re: [hugin-ptx] Calibrate lens GUI

2011-09-01 Thread Carlos Eduardo G. Carvalho (Cartola)
Hi, have you already seen this tutorial?

http://hugin.sourceforge.net/tutorials/calibration/en.shtml

Cheers,

Carlos E G Carvalho (Cartola)
http://cartola.org/360



2011/9/1 Oskar Sander oskar.san...@gmail.com

 I've played around with it and this is a really nice application, thanks
 guys!

 Can I use it also when focal length/fov is not quite known, or must I get
 that in some other way? (Hugin for example)

 The thing is ´my camera has a focal length of 5.1mm  eqv to 24 mm on 35mm
 film, alright. But then I add a housing an a wet-lens and dive with it.  The
 lens have a stated angle of view of 85° (106.5° on land) and magnification
 of 0.65x.

 Should I just try to calculate a focal length like this which would suggest
 something slightly wider than 24mm eqv?  (
 http://en.wikipedia.org/wiki/Angle_of_view)

 cheers
 //O

 --
 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


-- 
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


Re: [hugin-ptx] Calibrate lens GUI

2011-09-01 Thread Oskar Sander
Hi yes I have thanks.

My question really is, how important is an accurate  focal lengt/hfov for a
useful result from the calibrate lens GUI?

If I approximate the focal length to about 24 when it's probably around 23
something, does it matter for the lens distorsion figures, and does the
slightly off focal lengt matter for a panorama or mosaic project?

/O


2011/9/1 Carlos Eduardo G. Carvalho (Cartola) cartol...@gmail.com

 Hi, have you already seen this tutorial?

 http://hugin.sourceforge.net/tutorials/calibration/en.shtml

 Cheers,

 Carlos E G Carvalho (Cartola)
 http://cartola.org/360



 2011/9/1 Oskar Sander oskar.san...@gmail.com

 I've played around with it and this is a really nice application, thanks
 guys!

 Can I use it also when focal length/fov is not quite known, or must I get
 that in some other way? (Hugin for example)

 The thing is ´my camera has a focal length of 5.1mm  eqv to 24 mm on 35mm
 film, alright. But then I add a housing an a wet-lens and dive with it.  The
 lens have a stated angle of view of 85° (106.5° on land) and magnification
 of 0.65x.

 Should I just try to calculate a focal length like this which would
 suggest something slightly wider than 24mm eqv?  (
 http://en.wikipedia.org/wiki/Angle_of_view)

 cheers
 //O

 --
 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


  --
 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




-- 
/O

-- 
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


Re: [hugin-ptx] Calibrate lens GUI

2011-09-01 Thread Carlos Eduardo G. Carvalho (Cartola)
Well, I don't know exactly. I would say you can use approximate values and
it wont be a problem. Just try to use spread control points and think about
optimizing fov. If you optimize V then the lens will change anyway, so I
think the accuracy of the initial value is not so important.

Hope it helps. I don't do mosaics very much. I usually do fullsphere panos.

Cheers,

Carlos E G Carvalho (Cartola)
http://cartola.org/360



2011/9/1 Oskar Sander oskar.san...@gmail.com

 Hi yes I have thanks.

 My question really is, how important is an accurate  focal lengt/hfov for a
 useful result from the calibrate lens GUI?

 If I approximate the focal length to about 24 when it's probably around 23
 something, does it matter for the lens distorsion figures, and does the
 slightly off focal lengt matter for a panorama or mosaic project?

 /O


 2011/9/1 Carlos Eduardo G. Carvalho (Cartola) cartol...@gmail.com

 Hi, have you already seen this tutorial?

 http://hugin.sourceforge.net/tutorials/calibration/en.shtml

 Cheers,

 Carlos E G Carvalho (Cartola)
 http://cartola.org/360



 2011/9/1 Oskar Sander oskar.san...@gmail.com

  I've played around with it and this is a really nice application, thanks
 guys!

 Can I use it also when focal length/fov is not quite known, or must I get
 that in some other way? (Hugin for example)

 The thing is ´my camera has a focal length of 5.1mm  eqv to 24 mm on 35mm
 film, alright. But then I add a housing an a wet-lens and dive with it.  The
 lens have a stated angle of view of 85° (106.5° on land) and magnification
 of 0.65x.

 Should I just try to calculate a focal length like this which would
 suggest something slightly wider than 24mm eqv?  (
 http://en.wikipedia.org/wiki/Angle_of_view)

 cheers
 //O

 --
 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


  --
 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




 --
 /O

 --
 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


-- 
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


[hugin-ptx] large pano problem

2011-09-01 Thread mgg
Large pano, (3 something gigapixels, 230 images.  I started this in
Autopano, moved the project to hugin, where it loaded fine (except
first image that needed some tweaking).  I then went through
opimization steps, Exposure and stitch.  The created stitch starts out
seemingly ok - then starts to spit out odd file errors, referencing a
file I'm pretty sure isn't on my system, nor related to the project:

(../src/foreign/vigra/vigra/basicimage.hxx:857)

Any ideas?
tnx
mgg


===
***  Panorama makefile generated by Hugin
***
===
System information
===
Software:

System Software Overview:

  System Version: Mac OS X 10.6.8 (10K549)
  Kernel Version: Darwin 10.8.0
  Boot Volume: Macintosh HD
  Boot Mode: Normal
  Computer Name: MacPro
  User Name: Michael Gardner (mgg)
  Secure Virtual Memory: Not Enabled
  64-bit Kernel and Extensions: No
  Time since boot: 36 days 46 minutes

Hardware:

Hardware Overview:

  Model Name: Mac Pro
  Model Identifier: MacPro4,1
  Processor Name: Quad-Core Intel Xeon
  Processor Speed: 2.26 GHz
  Number Of Processors: 2
  Total Number Of Cores: 8
  L2 Cache (per core): 256 KB
  L3 Cache (per processor): 8 MB
  Memory: 13 GB
  Processor Interconnect Speed: 5.86 GT/s
  Boot ROM Version: MP41.0081.B07
  SMC Version (system): 1.39f5
  SMC Version (processor tray): 1.39f5
  Serial Number (system): G89131N920G
  Serial Number (processor tray): J590905HE1LUC
  Hardware UUID: 89EB11AE-15A3-5591-8C93-509AA6AB2046

Disc usage
Filesystem  Size   Used  Avail Capacity  Mounted on
/dev/disk0s2   596Gi  392Gi  204Gi66%/
devfs  129Ki  129Ki0Bi   100%/dev
/dev/disk1s2   698Gi  418Gi  280Gi60%/Volumes/Video1
/dev/disk4 931Gi  633Gi  298Gi68%/Volumes/Video2+3
map -hosts   0Bi0Bi0Bi   100%/net
map auto_home0Bi0Bi0Bi   100%/home
/dev/disk9s2   1.4Ti  1.4Ti   14Gi99%/Volumes/Family Media
/dev/disk8s2   1.4Ti  1.4Ti   14Gi99%/Volumes/Family Media
backup
/dev/disk6s3   279Gi  210Gi   69Gi75%/Volumes/Blue
/dev/disk11s2  1.8Ti  1.1Ti  762Gi59%/Volumes/Video6
/dev/disk7s3   931Gi  667Gi  265Gi72%/Volumes/H G Wells
/dev/disk10s2  931Gi  926Gi  5.2Gi99%/Volumes/video4
/dev/disk5s1   149Gi   74Gi   75Gi50%/Volumes/JENNIFER
===
Output options
===
Hugin Version: 2011.2.0-RC4 built by Harry van der Wolf
Project file: /var/folders/zL/zLFOLgQFH6qRRS-ucDCA9E+++TI/-Tmp-/
huginpto_GkE55T
Output prefix: agptohugin
Projection: Cylindrical (1)
Field of view: 100 x 37
Canvas dimensions: 100690 x 38262
Crop area: (0,6820) - (100690,38046)
Output exposure value: 0.00
Selected outputs
Normal panorama
* Blended panorama
===
Input images
===
Number of images in project file: 230
Number of active images: 230
Image 0: /Volumes/Video1/Aug2011Trip/Gardner/Aug13/G3/Tiffs/links/
P1010140.tiff
Image 0: Size 4602x3458, Exposure: 0.00
Image 1: /Volumes/Video1/Aug2011Trip/Gardner/Aug13/G3/Tiffs/links/
P1010143.tiff
Image 1: Size 4602x3458, Exposure: 0.00
Image 2: /Volumes/Video1/Aug2011Trip/Gardner/Aug13/G3/Tiffs/links/
P1010146.tiff
Image 2: Size 4602x3458, Exposure: 0.00
Image 3: /Volumes/Video1/Aug2011Trip/Gardner/Aug13/G3/Tiffs/links/
P1010149.tiff
Image 3: Size 4602x3458, Exposure: 0.00
Image 4: /Volumes/Video1/Aug2011Trip/Gardner/Aug13/G3/Tiffs/links/
P1010152.tiff
Image 4: Size 4602x3458, Exposure: 0.00
Image 5: /Volumes/Video1/Aug2011Trip/Gardner/Aug13/G3/Tiffs/links/
P1010155.tiff
Image 5: Size 4602x3458, Exposure: 0.00
Image 6: /Volumes/Video1/Aug2011Trip/Gardner/Aug13/G3/Tiffs/links/
P1010158.tiff
Image 6: Size 4602x3458, Exposure: 0.00
Image 7: /Volumes/Video1/Aug2011Trip/Gardner/Aug13/G3/Tiffs/links/
P1010161.tiff
Image 7: Size 4602x3458, Exposure: 0.00
Image 8: /Volumes/Video1/Aug2011Trip/Gardner/Aug13/G3/Tiffs/links/
P1010164.tiff
Image 8: Size 4602x3458, Exposure: 0.00
Image 9: /Volumes/Video1/Aug2011Trip/Gardner/Aug13/G3/Tiffs/links/
P1010167.tiff
Image 9: Size 4602x3458, Exposure: 0.00
Image 10: /Volumes/Video1/Aug2011Trip/Gardner/Aug13/G3/Tiffs/links/
P1010170.tiff
Image 10: Size 4602x3458, Exposure: 0.00
Image 11: /Volumes/Video1/Aug2011Trip/Gardner/Aug13/G3/Tiffs/links/
P1010173.tiff
Image 11: Size 4602x3458, Exposure: 0.00
Image 12: /Volumes/Video1/Aug2011Trip/Gardner/Aug13/G3/Tiffs/links/
P1010176.tiff
Image 12: Size 4602x3458, Exposure: 0.00
Image 13: 

Re: [hugin-ptx] large pano problem

2011-09-01 Thread Bruno Postle

On Thu 01-Sep-2011 at 12:28 -0700, mgg wrote:

Large pano, (3 something gigapixels, 230 images.  I started this in
Autopano, moved the project to hugin, where it loaded fine (except
first image that needed some tweaking).



(../src/foreign/vigra/vigra/basicimage.hxx:857)


This just points to the place in the code where the error was 
detected.  The problem is that nona (the tool that does the 
remapping) doesn't like your TIFF photos.


You need to do some tests with just two photos from the set rather 
than with all 230 files.


Possible problems could be:

Some incompatible compression or other oddity in the TIFF files, 
what tool did you use to create them?


Maybe nona doesn't like the .tiff file extension, you could try .tif 
instead.



Input images
===
Number of images in project file: 230
Number of active images: 230
Image 0: /Volumes/Video1/Aug2011Trip/Gardner/Aug13/G3/Tiffs/links/P1010140.tiff
Image 0: Size 4602x3458, Exposure: 0.00



Stitching panorama
===
/Applications/Hugin/PTBatcherGUI.app/Contents/MacOS/nona  -z LZW -r
ldr -m TIFF_m -o agptohugin -i 0 
/var/folders/zL/zLFOLgQFH6qRRS-ucDCA9E+++TI/-Tmp-/huginpto_GkE55T
ContractViolation:
Precondition violation!
BasicImage::upperLeft(): image must have non-zero size. 
(../src/foreign/vigra/vigra/basicimage.hxx:857)


--
Bruno

--
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


Re: [hugin-ptx] Calibrate lens GUI

2011-09-01 Thread Bruno Postle

On Thu 01-Sep-2011 at 19:59 +0200, Oskar Sander wrote:


My question really is, how important is an accurate  focal lengt/hfov for a
useful result from the calibrate lens GUI?


I'm not 100% sure.

Barrel distortion is purely a function of distance from the centre 
of the photo - At least this is true for rectilinear images - i.e. 
you can straighten straight lines and will get the same a,b,c values 
whatever value you enter for field of view.


The Calibrate Lens GUI did originally have an option to optimise 
field of view, but Thomas removed this on my suggestion for the 
above reason.


..but with fisheye photos it isn't so clear that the situation is 
the same, you definitely do need to feed the right focal length into 
the Calibrate Lens tool.  What I don't know is whether it should be 
possible to optimise field of view at the same time as barrel 
distortion (with fisheye images).



If I approximate the focal length to about 24 when it's probably around 23
something, does it matter for the lens distorsion figures, and does the
slightly off focal lengt matter for a panorama or mosaic project?


--
Bruno

--
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


Re: [hugin-ptx] New primary seam generator in Enblend

2011-09-01 Thread Terry Duell

Hullo All,

On Fri, 02 Sep 2011 09:21:14 +1000, Terry Duell tdu...@iinet.net.au  
wrote:


[snip]


Thanks to everyone involved.
Is the new code available for building and testing?


Sorry, that question could have been better thought out.
I have now got the default from the hg repo and will attempt to build and  
test a Fedora package.
I have found that 'cmake .' and  'make package_source' generates  
'enblend-4.1.1-Source.tar.gz', which doesn't contain a 'configure' file.  
This doesn't seem right.
Also, is the version number correct? At this stage it isn't a release, is  
it? I would have expected something like 4.1-0.1 or somesuch, but this  
version number business has always been a bit of a bewilderment to me :-)


Cheers,
--
Regards,
Terry Duell

--
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


Re: [hugin-ptx] New primary seam generator in Enblend

2011-09-01 Thread Terry Duell

Hullo All,

On Fri, 02 Sep 2011 11:20:28 +1000, Terry Duell tdu...@iinet.net.au  
wrote:


[snip]

I have found that 'cmake .' and  'make package_source' generates  
'enblend-4.1.1-Source.tar.gz', which doesn't contain a 'configure' file.  
This doesn't seem right.


Not having a good day. Finally figured a few things out. The Cmake option  
doesn't appear to work as one would expect, but maybe it's me.
Using 'make --makefile=Makefile.scm' was the way to go...pays to read the  
'Readme'.
I have managed to build a Fedora 15 x86_64 rpm without any errors, and it  
installs and runs OK.
I ran a quick test on an old project that previously required masks to get  
rid of people that appeared in multiple places. This version managed it  
better. It does seem to be a bit slower.

A bit more testing needed to really sort out how best to use it.

Cheers,
--
Regards,
Terry Duell

--
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