Re: [hugin-ptx] Fused exposures are too light!

2010-10-31 Thread Yuval Levy
On October 31, 2010 06:22:00 pm Robert Krawitz wrote:
> I hate to keep beating this rather lifeless horse...but...
> 
> I'm getting remarkably better results by fusing only the +2 and -2
> exposures (omitting the middle exposure).  Setting saturation weight
> to 1 and exposure mu to .333 helps more.

nothing wrong with that.  Aesthetics is an art, not a science.  If you find the 
fusion of +2 and -2 with above parameters more aesthetically pleasing, just 
use it.

In the old days before enfuse, photographers would manually expose for the 
highlight and for the shadow and manually mask the two (e.g. exterior through 
window and interior view).  No importance whatsoever was given to the EV 
difference and to the quantity of in between exposures.

This of course, applies to exposure fusion only.  HDR is a completely different 
issue.

Yuv



signature.asc
Description: This is a digitally signed message part.


Re: [hugin-ptx] Fused exposures are too light!

2010-10-31 Thread Robert Krawitz
I hate to keep beating this rather lifeless horse...but...

I'm getting remarkably better results by fusing only the +2 and -2
exposures (omitting the middle exposure).  Setting saturation weight
to 1 and exposure mu to .333 helps more.

-- 
Robert Krawitz 

Tall Clubs International  --  http://www.tall.org/ or 1-888-IM-TALL-2
Member of the League for Programming Freedom  --  http://ProgFree.org
Project lead for Gutenprint   --http://gimp-print.sourceforge.net

"Linux doesn't dictate how I work, I dictate how Linux works."
--Eric Crampton

-- 
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] Fused exposures are too light!

2010-10-30 Thread Yuval Levy
On October 28, 2010 09:18:54 pm Robert Krawitz wrote:
> I don't have Windows or a Mac (well, my wife does, but it's
> underpowered for this purpose).

Photoshop (at least my old CS2, I did not feel a need to upgrade so far) works 
pretty well with wine.

Yuv


signature.asc
Description: This is a digitally signed message part.


Re: [hugin-ptx] Fused exposures are too light!

2010-10-29 Thread Robert Krawitz
On Fri, 29 Oct 2010 09:20:36 -0700, Bob Bright wrote:
>
> There's no such thing as a perfect stitch.  There are _always_ going
> to be some misaligned areas in your stitches (especially if you're
> shooting fisheye, since there's no such thing as a NPP for fisheye
> lenses).  You can spend hours in hugin, fiddling with lens
> parameters and setting and removing control points and re-optimizing
> in an effort to fix that one pixel misalignment on the horizon
> without screwing up the alignment elsewhere in your pano.  Then you
> can waste some more time masking problem areas and re-blending in
> hopes than enblend or smartblend will hide the inevitable
> misalignment.  OR: you can spend a few minutes in your favorite
> photo editor fixing the errors, and get on with shooting and
> stitching more panoramas.
>
> Assuming that you'd rather do the latter, check out Bruno's tutorial at:
>
> http://wiki.panotools.org/Mending_parallax_errors_with_the_shear_tool

That does indeed look easy.  Thanks.

-- 
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] Fused exposures are too light!

2010-10-29 Thread Bruno Postle

On Fri 29-Oct-2010 at 09:20 -0700, Bob Bright wrote:


Assuming that you'd rather do the latter, check out Bruno's tutorial at:

http://wiki.panotools.org/Mending_parallax_errors_with_the_shear_tool

No doubt you'll want to adapt his technique to your own preferred 
ways of working in the gimp or whatever photo editor you use, but the 
basic technique is worth its weight in gold.  I generally use the 
gimp's pespective tool rather than the shear tool, since I find it 
more flexible.  And I don't bother measuring the misalignment as 
Bruno suggests.


Yes, with practice you can skip most of these steps.  The 'shear' 
technique has the advantage that it doesn't require any artistic 
skill - In fact it is so mechanical that it could be implemented as 
a Gimp plug-in.


--
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] Fused exposures are too light!

2010-10-29 Thread Bob Bright
There's no such thing as a perfect stitch.  There are _always_ going to 
be some misaligned areas in your stitches (especially if you're shooting 
fisheye, since there's no such thing as a NPP for fisheye lenses).  You 
can spend hours in hugin, fiddling with lens parameters and setting and 
removing control points and re-optimizing in an effort to fix that one 
pixel misalignment on the horizon without screwing up the alignment 
elsewhere in your pano.  Then you can waste some more time masking 
problem areas and re-blending in hopes than enblend or smartblend will 
hide the inevitable misalignment.  OR: you can spend a few minutes in 
your favorite photo editor fixing the errors, and get on with shooting 
and stitching more panoramas.


Assuming that you'd rather do the latter, check out Bruno's tutorial at:

http://wiki.panotools.org/Mending_parallax_errors_with_the_shear_tool

No doubt you'll want to adapt his technique to your own preferred ways 
of working in the gimp or whatever photo editor you use, but the basic 
technique is worth its weight in gold.  I generally use the gimp's 
pespective tool rather than the shear tool, since I find it more 
flexible.  And I don't bother measuring the misalignment as Bruno 
suggests.  I simply use the free select tool or the path tool to select 
the area I want to work on, copy and paste, then switch to the 
perspective tool and drag the handles until everything lines up.  Anchor 
the floating selection, a little judicious use of the clone/smudge 
tools, and the error is gone.


Cheers,
BBB
--
Bob Bright
Vancouver Island Digital Imaging
http://VictoriaVR.ca


On 10-10-28 06:18 PM, Robert Krawitz wrote:

been there, done that.  Sometimes using horizontal CPs between
adjacent images and even further beyond help.  Other times, swallow
your pano-pride and use your image editor.  With the rectangular
selector, select a long stripe above the horizon (edge just at the
horizon) and use the clone tool. move the selection below the
horizon and repeat.  Who said that panoramic images must show the
ugly reality?
 

OK, I've done that too; I was wondering if there were some good tricks
people had for it.

   


--
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] Fused exposures are too light!

2010-10-28 Thread Robert Krawitz
On Thu, 28 Oct 2010 21:09:32 -0400, Yuval Levy wrote:
>
> On October 27, 2010 07:07:19 am Robert Krawitz wrote:
>> On Wed, 27 Oct 2010 03:01:24 -0400, Yuval Levy wrote:
>> > On October 26, 2010 08:29:18 pm Robert Krawitz wrote:
>> >> Sigma 8-16 f/4.5-5.6
>> > 
>> > good EXIF.  probably vignetting to take into account at wider zoom
>> > settings.
>> 
>> So the question is, should I do that by optimizing photometry in Hugin?
>
> depends on how you like the results :)
>
> photometry optimization is a tricky business.

In what regards?

> Ideally you do a lens calibration once under ideal circumstances
> (tripod!) and you get those parameters from there.  You will need to
> calibrate for different F/stops if you try to achieve perfection.

And different focal lengths...

>> cinepaint is too
>> flaky and we all know what is(n't) happening with GIMP in that regard.
>
> I am not ashamed to admit that I spent the money to buy a Photoshop license 
> and to say that it is worth every penny as far as image editing goes.  I use 
> the GIMP occasionally for the small thing when I don't feel like starting 
> Photoshop; and for the magic of MathMap and a few other neat things not 
> available in Photoshop.

I don't have Windows or a Mac (well, my wife does, but it's
underpowered for this purpose).

>> I'd really like to get rid
>> of that slight misalignment in the ocean.  Even a 1 pixel misalignment
>> is perceptible if it's vertical and at the horizon.
>
> been there, done that.  Sometimes using horizontal CPs between
> adjacent images and even further beyond help.  Other times, swallow
> your pano-pride and use your image editor.  With the rectangular
> selector, select a long stripe above the horizon (edge just at the
> horizon) and use the clone tool. move the selection below the
> horizon and repeat.  Who said that panoramic images must show the
> ugly reality?

OK, I've done that too; I was wondering if there were some good tricks
people had for it.

-- 
Robert Krawitz 

Tall Clubs International  --  http://www.tall.org/ or 1-888-IM-TALL-2
Member of the League for Programming Freedom  --  http://ProgFree.org
Project lead for Gutenprint   --http://gimp-print.sourceforge.net

"Linux doesn't dictate how I work, I dictate how Linux works."
--Eric Crampton

-- 
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] Fused exposures are too light!

2010-10-28 Thread Yuval Levy
On October 27, 2010 07:07:19 am Robert Krawitz wrote:
> On Wed, 27 Oct 2010 03:01:24 -0400, Yuval Levy wrote:
> > On October 26, 2010 08:29:18 pm Robert Krawitz wrote:
> >> Sigma 8-16 f/4.5-5.6
> > 
> > good EXIF.  probably vignetting to take into account at wider zoom
> > settings.
> 
> So the question is, should I do that by optimizing photometry in Hugin?

depends on how you like the results :)

photometry optimization is a tricky business.

Ideally you do a lens calibration once under ideal circumstances (tripod!) and 
you get those parameters from there.  You will need to calibrate for different 
F/stops if you try to achieve perfection.


> > Open the enfused image in Gimp.  Play with curves.  Do you get any
> > further?  even more sophisticated: play with masks / gradient masks
> > and curves.  Any better?
> 
> I did this with a previous non-exposure-fused panorama and it worked
> fine.  The problem here is that by the look of it the sky is likely
> too faded to be able to achieve very much with the curves


we are getting more and more into the realm of image editing.

Some of the things I do in similar circumstances:

1. generate a mask for the sky.  usually the magic wand is good enough to grab 
the sky quickly.  I blur the boundaries of the mask with a little bit of 
gaussian blur.

2.  treat the two areas (masked/not masked) separately.

This can be something like: stitch the dark exposure, add it as a layer to 
your image editor, mask it so that the sky is visible and use that sky.

Or in the case of less extreme situations / good input images / or even for a 
single LDR exposure - use a different set of curves for the sky and for the 
rest.

You can play endlessly.  The trick is not to overdo it.


> cinepaint is too
> flaky and we all know what is(n't) happening with GIMP in that regard.

I am not ashamed to admit that I spent the money to buy a Photoshop license 
and to say that it is worth every penny as far as image editing goes.  I use 
the GIMP occasionally for the small thing when I don't feel like starting 
Photoshop; and for the magic of MathMap and a few other neat things not 
available in Photoshop.

 
> The other thing I want to do is to retain enough interesting detail in
> clouds

with the selection set to the appropriate mask, play with different contrast 
settings.

> I'd really like to get rid
> of that slight misalignment in the ocean.  Even a 1 pixel misalignment
> is perceptible if it's vertical and at the horizon.

been there, done that.  Sometimes using horizontal CPs between adjacent images 
and even further beyond help.  Other times, swallow your pano-pride and use 
your image editor.  With the rectangular selector, select a long stripe above 
the horizon (edge just at the horizon) and use the clone tool. move the 
selection below the horizon and repeat.  Who said that panoramic images must 
show the ugly reality?

Yuv


signature.asc
Description: This is a digitally signed message part.


Re: [hugin-ptx] Fused exposures are too light!

2010-10-27 Thread Robert Krawitz
On Wed, 27 Oct 2010 03:01:24 -0400, Yuval Levy wrote:
>
> On October 26, 2010 08:29:18 pm Robert Krawitz wrote:
>> Sigma 8-16 f/4.5-5.6
>
> good EXIF.  probably vignetting to take into account at wider zoom settings.

So the question is, should I do that by optimizing photometry in Hugin?

>> Now, here's where the problem is.  If I just run
>> 
>> enfuse TEST000*.tif
>> 
>> (the prefix for the aligned image stack), the sky and foreground are
>> too light.  If, however, I use
>> 
>> enfuse --hard-mask TEST000*.tif
>> 
>> the overall tone is much better, but there are some artifacts.
>> 
>> I've tried experimenting with --exposure-mu among other things.  If I
>> set exposure-mu to something very small (like 0.1, or even 0.01), I
>> get darker and darker foregrounds, but the sky and the sunlit
>> background are still too light.
>
> OK, so now you are trying to achieve a better distribution.  There
> are many ways to achieve this.
>
> What counts in the end is the result, not the tool used.  Enfuse
> only weight the pixels in the stack to retain the maximum
> information possible.  It has no sense of aesthetics.  You do.
>
> Open the enfused image in Gimp.  Play with curves.  Do you get any
> further?  even more sophisticated: play with masks / gradient masks
> and curves.  Any better?

I did this with a previous non-exposure-fused panorama and it worked
fine.  The problem here is that by the look of it the sky is likely
too faded to be able to achieve very much with the curves, even in HSL
space (which works a lot better than the normal HSV space).  Perhaps
16 bit files would preserve enough information, but cinepaint is too
flaky and we all know what is(n't) happening with GIMP in that regard.

The other thing I want to do is to retain enough interesting detail in
clouds (there are only a few tiny ones in that example, but I have
another one from the same trip with a few clouds closer to the sun
that get completely blown out if I'm not careful early on).

The problem is that if the sky is too light, particularly in 8-bit
mode, the relationships between the color channels, specifically hue
and saturation, vary greatly with only small changes in pixel values.
Darkening the sky will amplify those differences.

> Tweaking at the enfuse parameters is no different than tweaking at
> the curves and masks in Gimp.  Only the first one is more or less
> blind, while the second one gives you a visual feedback.  As long as
> you don't have too many over/under exposed pixels, curves are the
> way to go.

And that's the issue: I want to get the best tonality I can prior to
editing any 8 bit result.

>> Where did you get Hugin from?
>> 
>> Mercurial source as of a few days ago.
>
> and from your credentials I assume it was easy for you to build.  No build 
> problems whatsoever?  Did you also build enblend from mercurial?  if so, you 
> have a wonderful handbook on your machine (or you should make the appropriate 
> target).  Full of explanations for you.

No issues of major consequence (nothing that I feel the need to
complain about, let's put it that way) once I got the latest libpano
built and installed.

> After all of these efforts, I can't wait to see the results...

It will be interesting.  I have an even more interesting one queued up
that was the subject of my first note, but I'd really like to get rid
of that slight misalignment in the ocean.  Even a 1 pixel misalignment
is perceptible if it's vertical and at the horizon.  But that's in
part an enblend issue and the subject for another day (unless you
*want* me to ask about it).

-- 
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] Fused exposures are too light!

2010-10-27 Thread Yuval Levy
On October 26, 2010 08:29:18 pm Robert Krawitz wrote:
> Sigma 8-16 f/4.5-5.6

good EXIF.  probably vignetting to take into account at wider zoom settings.


> Right, and *those* TIFFs are fine.

Good!  I'm happy to see that we are making progress.

 
> Now, here's where the problem is.  If I just run
> 
> enfuse TEST000*.tif
> 
> (the prefix for the aligned image stack), the sky and foreground are
> too light.  If, however, I use
> 
> enfuse --hard-mask TEST000*.tif
> 
> the overall tone is much better, but there are some artifacts.
> 
> I've tried experimenting with --exposure-mu among other things.  If I
> set exposure-mu to something very small (like 0.1, or even 0.01), I
> get darker and darker foregrounds, but the sky and the sunlit
> background are still too light.

OK, so now you are trying to achieve a better distribution.  There are many 
ways to achieve this. 

What counts in the end is the result, not the tool used.  Enfuse only weight 
the pixels in the stack to retain the maximum information possible.  It has no 
sense of aesthetics.  You do.

Open the enfused image in Gimp.  Play with curves.  Do you get any further? 
even more sophisticated: play with masks / gradient masks and curves.  Any 
better?

Tweaking at the enfuse parameters is no different than tweaking at the curves 
and masks in Gimp.  Only the first one is more or less blind, while the second 
one gives you a visual feedback.  As long as you don't have too many 
over/under exposed pixels, curves are the way to go.
 
> Where did you get Hugin from?
> 
> Mercurial source as of a few days ago.

and from your credentials I assume it was easy for you to build.  No build 
problems whatsoever?  Did you also build enblend from mercurial?  if so, you 
have a wonderful handbook on your machine (or you should make the appropriate 
target).  Full of explanations for you.

After all of these efforts, I can't wait to see the results...

Yuv


signature.asc
Description: This is a digitally signed message part.


Re: [hugin-ptx] Fused exposures are too light!

2010-10-26 Thread Robert Krawitz
On Tue, 26 Oct 2010 17:17:51 +0200, Carl von Einem wrote:
> Robert Krawitz schrieb am 26.10.10 14:22:
>
>> I'm trying to fuse
>> * 0EV:
>>   
>> 
>> * -2EV:
>>   
>> 
>> * +2EV:
>>   
>> 
>
> These images are already remapped and one has a different canvas
> size. Since they were not cropped after remapping they all contain
> black pixels in the undefined areas. I bet these just "confuse"
> enfuse, resulting in your "pale" sky.

Sorry, my mistake for not explaining what happened: I did use aligned
TIFF files.  The problem is that SmugMug won't allow me up upload TIFF
files, so I converted them to JPEG files (where the masked region
looks black) before uploading them.

> I think there are two general enfuse workflows for a bracketed panorama shot:
> - first enfuse every single bracketed stack of jpgs to preferably a 16 bit 
> file (tif), and stitch those

Which is essentially what I'm doing via hugin.

> or (should work if you used a tripod)
> - stitch all different exposure steps with the same settings so you get three 
> panoramas (-2, 0, +2 EV) and enfuse those

Which I didn't.

> Both workflows don't exactly propose to first remap the images.
>
> This little experiment...
> - make sure canvas size is identical (I pasted one image on top and aligned 
> using difference mode, then cropped to these smaller boundaries)
> - mask the black undefined areas using an alpha mask, save as tiff
> ...gives me a better result than your "No options" example:
>> With different options to enfuse, I have the following results (I'm
>> using -l 1 in all cases to see where enfuse makes its decisions):
>> * No options:
>>   
>> http://rlk.smugmug.com/Photography/enfuse-test/14365255_gYhFw#1064010124_sBN5B
> This image containes a pseudo halo which looks as if the black "frame" is 
> actually used by enfuse.

I don't believe that that's the case, since I actually did this on
TIFF files using an alpha mask (that had been created by hugin, or
really nona).

-- 
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] Fused exposures are too light!

2010-10-26 Thread Robert Krawitz
On Tue, 26 Oct 2010 17:55:34 -0400, Yuval Levy wrote:
>
> On October 24, 2010 11:57:09 am Robert Krawitz wrote:
>> The point was that when I used align_image_stack to generate an image
>> directly I got an average error worse than the worst point error I got
>> by hand.  It may well have been a single point off, but if I use
>> align_image_stack directly (without generating a .pto file), that's
>> what I get.  So I have to bring it all into hugin anyway to fix that.
>
> You are being stubborn, Robert.  Would you please ignore the
> "average error"?  the entity calculating that average error does not
> know about the quality of the CPs used to calculate it.  In the
> range you are stubbornly trying to fight/improve there is not much
> improvement to look for at this stage of the process.

All right, that point is fair.

>> (And besides, doesn't align_image_stack have to use nona -- which I
>> believe I've demonstrated to be the problem -- to remap the stack
>> anyway?)
>
> It is more likely that the problem are the parameters fed into nona
> than nona itself.  If you use align_image_stack from scratch as I
> told you, you don't introduce such parameters.

I've since done further experiments that I believe confirm your
statement.  When I omitted optimizing for camera response, things got
a lot better -- at least as far as what nona produced.  So I now
believe you're correct that nona is not the problem.

>> > With a recent version of Hugin I'd optimize y/p/r/X/Y/Z only, and I
>> > don't know if align_image_stack has been upgraded to take advantage
>> > of the relatively recent X/Y/Z transforms.
>> 
>> I find if I try to optimize translation I always have a lot of
>> problemss with the alignment.  Optimizing "everything except
>> translation" works well.
>
> that's because to optimize translation you need all CPs to be in the
> same plane.  Sorry for omitting this very important detail.  That
> said, if you use align_image_stack, you should not even get here.

And mine decidedly weren't...

>> Canon EOS 7D.
>
> ok, so we know it is a camera that produces useful EXIF data.  And the lens?

Sigma 8-16 f/4.5-5.6

>> > can you post the PTO file that leads to this problem?
>> 
>> Attached.
>
> Thank you.
>
> My impression is that you are trying to do too many things at the
> same time.  The attached PTO is for HDR output, not for "Fused
> exposures are too light".

Sorry, I am trying a lot of different things.

> Change output from HDR-TIFF to HDR-EXR and that problem is out of
> the way.  Yes it is a bug, thank you for reporting it.  Somebody may
> look into it.

Fine.  Now that I have LuminanceHDR working, EXR is fine and so this
problem's not a showstopper.

> You posted before pictures of a washed out sky.  It is not this
> project, is it?
>
> This specific project feeds white balance adjustments into nona.  Go
> into the Camera and Lens tab, select the Photometric sub-tab and
> reset the multipliers to 1.  Generate remapped images (no exposure
> correction, low dynamic range) and check if there are still color
> issues like the one you posted with the blue sky.

The remapped images are fine when I do that.  It looks like camera
response was the main culprit, but in some cases vignetting correction
didn't help.

> Using align_image_stacks to produce TIFF output as I asked you to do
> previously should yield a similar result, with color being
> preserved.  It should generate one LDR TIFF for every exposure, not
> an HDR TIFF.  These are TIFFs you want to fuse.

Right, and *those* TIFFs are fine.

Now, here's where the problem is.  If I just run

enfuse TEST000*.tif

(the prefix for the aligned image stack), the sky and foreground are
too light.  If, however, I use

enfuse --hard-mask TEST000*.tif

the overall tone is much better, but there are some artifacts.

I've tried experimenting with --exposure-mu among other things.  If I
set exposure-mu to something very small (like 0.1, or even 0.01), I
get darker and darker foregrounds, but the sky and the sunlit
background are still too light.

> As KJF already kindly pointed to you, doing photometric adjustment
> and then enfusing is counter-producing.  On the other hand, it is
> very important for HDR, especially when the input images are JPG
> with no constant white balance.

OK, I didn't know that, but I believe it from my results.

> I don't know why the PTO has Vm5 for vignetting adjustment (with all
> other values being default).  Vm5 is not documented [0] and to fit
> all other params in the PTO file it should be Vm0 (default), not
> Vm5.

No idea myself.  How would I even get there?

> Other than that, the PTO file looks OK, and I still can't explain
> the washed out pictures.  Where did you get Hugin from?

Mercurial source as of a few days ago.

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

Re: [hugin-ptx] Fused exposures are too light!

2010-10-26 Thread Yuval Levy
On October 24, 2010 11:57:09 am Robert Krawitz wrote:
> The point was that when I used align_image_stack to generate an image
> directly I got an average error worse than the worst point error I got
> by hand.  It may well have been a single point off, but if I use
> align_image_stack directly (without generating a .pto file), that's
> what I get.  So I have to bring it all into hugin anyway to fix that.

You are being stubborn, Robert.  Would you please ignore the "average error"?  
the entity calculating that average error does not know about the quality of 
the CPs used to calculate it.  In the range you are stubbornly trying to 
fight/improve there is not much improvement to look for at this stage of the 
process.

 
> (And besides, doesn't align_image_stack have to use nona -- which I
> believe I've demonstrated to be the problem -- to remap the stack
> anyway?)

It is more likely that the problem are the parameters fed into nona than nona 
itself.  If you use align_image_stack from scratch as I told you, you don't 
introduce such parameters.


> > With a recent version of Hugin I'd optimize y/p/r/X/Y/Z only, and I
> > don't know if align_image_stack has been upgraded to take advantage
> > of the relatively recent X/Y/Z transforms.
> 
> I find if I try to optimize translation I always have a lot of
> problemss with the alignment.  Optimizing "everything except
> translation" works well.

that's because to optimize translation you need all CPs to be in the same 
plane.  Sorry for omitting this very important detail.  That said,  if you use 
align_image_stack, you should not even get here.


> Canon EOS 7D.

ok, so we know it is a camera that produces useful EXIF data.  And the lens?

 
> Hugin, using high dynamic range panorama output to a TIFF file.

OK, now I get it.  I never had a need to use the TIFF HDR, I always use the 
EXR format.  Can't help you further with this, sorry.


> > can you post the PTO file that leads to this problem?
> 
> Attached.

Thank you.

My impression is that you are trying to do too many things at the same time.  
The attached PTO is for HDR output, not for "Fused exposures are too light".

Change output from HDR-TIFF to HDR-EXR and that problem is out of the way.  
Yes it is a bug, thank you for reporting it.  Somebody may look into it.

You posted before pictures of a washed out sky.  It is not this project, is 
it?

This specific project feeds white balance adjustments into nona.  Go into the 
Camera and Lens tab, select the Photometric sub-tab and reset the multipliers 
to 1.  Generate remapped images (no exposure correction, low dynamic range) 
and check if there are still color issues like the one you posted with the 
blue sky.

Using align_image_stacks to produce TIFF output as I asked you to do 
previously should yield a similar result, with color being preserved.  It 
should generate one LDR TIFF for every exposure, not an HDR TIFF.  These are 
TIFFs you want to fuse.

As KJF already kindly pointed to you, doing photometric adjustment and then 
enfusing is counter-producing.  On the other hand, it is very important for 
HDR, especially when the input images are JPG with no constant white balance.

I don't know why the PTO has Vm5 for vignetting adjustment (with all other 
values being default).  Vm5 is not documented [0] and to fit all other params 
in the PTO file it should be Vm0 (default), not Vm5.

Other than that, the PTO file looks OK, and I still can't explain the washed 
out pictures.  Where did you get Hugin from?

Yuv

 
[0] http://hugin.hg.sourceforge.net/hgweb/hugin/hugin/file/tip/doc/nona.txt


signature.asc
Description: This is a digitally signed message part.


Re: [hugin-ptx] Fused exposures are too light!

2010-10-26 Thread Carl von Einem

Robert Krawitz schrieb am 26.10.10 14:22:

On Tue, 26 Oct 2010 14:09:00 +0200, Tim Nugent wrote:


Try KImagefuser


I can certainly change what's happening, but whatever I do I cannot
seem to get the sky dark.


My first thought was: why don't you shoot at night if you want a dark 
sky? But then I had a look at your examples at smugmug:



I'm trying to fuse
* 0EV:
  

* -2EV:
  

* +2EV:
  



These images are already remapped and one has a different canvas size. 
Since they were not cropped after remapping they all contain black 
pixels in the undefined areas. I bet these just "confuse" enfuse, 
resulting in your "pale" sky.


I think there are two general enfuse workflows for a bracketed panorama 
shot:
- first enfuse every single bracketed stack of jpgs to preferably a 16 
bit file (tif), and stitch those

or (should work if you used a tripod)
- stitch all different exposure steps with the same settings so you get 
three panoramas (-2, 0, +2 EV) and enfuse those


Both workflows don't exactly propose to first remap the images.

This little experiment...
- make sure canvas size is identical (I pasted one image on top and 
aligned using difference mode, then cropped to these smaller boundaries)

- mask the black undefined areas using an alpha mask, save as tiff
...gives me a better result than your "No options" example:

With different options to enfuse, I have the following results (I'm
using -l 1 in all cases to see where enfuse makes its decisions):
* No options:
  http://rlk.smugmug.com/Photography/enfuse-test/14365255_gYhFw#1064010124_sBN5B
This image containes a pseudo halo which looks as if the black "frame" 
is actually used by enfuse.


Carl

--
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] Fused exposures are too light!

2010-10-26 Thread Dale Beams
Engu

On Tue, 2010-10-26 at 09:18 +0100, paul womack wrote:
> Robert Krawitz wrote:
> > 
> > An enfuse GUI (is luminance the right thing here?) would be very
> > helpful for this kind of thing, to visualize how the different
> > parameters affect the result.
> 
> An Enfuse Gui you say? If only we could come
> up with a memorable or obvious name for such
> a thing ;-)
> 
> http://software.bergmark.com/enfuseGUI/Main.html
> 
>BugBear
> 


-- 
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] Fused exposures are too light!

2010-10-26 Thread Robert Krawitz
On Tue, 26 Oct 2010 08:22:16 -0400, Robert Krawitz wrote:
> On Tue, 26 Oct 2010 14:09:00 +0200, Tim Nugent wrote:
>>
>> Try KImagefuser
>>
>> http://wiki.panotools.org/Enfuse#Linux
>
> Yup, found it.
>
> I can certainly change what's happening, but whatever I do I cannot
> seem to get the sky dark.  What's more, *any* combination of settings
> (using levels=1) yields that discontinuity at the same place in the
> sky.  I can change the relative darkness above and below that line
> (most effectively by changing exposure-sigma), but it always stays in
> the same place.
>
> So there's obviously something I don't understand about what enfuse is
> doing.

Actually, it looks like using hard mask gets rid of this.  It has
other undesirable effects, though.

-- 
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] Fused exposures are too light!

2010-10-26 Thread Robert Krawitz
On Tue, 26 Oct 2010 14:09:00 +0200, Tim Nugent wrote:
>
> Try KImagefuser
>
> http://wiki.panotools.org/Enfuse#Linux

Yup, found it.

I can certainly change what's happening, but whatever I do I cannot
seem to get the sky dark.  What's more, *any* combination of settings
(using levels=1) yields that discontinuity at the same place in the
sky.  I can change the relative darkness above and below that line
(most effectively by changing exposure-sigma), but it always stays in
the same place.

So there's obviously something I don't understand about what enfuse is
doing.

-- 
Robert Krawitz 

Tall Clubs International  --  http://www.tall.org/ or 1-888-IM-TALL-2
Member of the League for Programming Freedom  --  http://ProgFree.org
Project lead for Gutenprint   --http://gimp-print.sourceforge.net

"Linux doesn't dictate how I work, I dictate how Linux works."
--Eric Crampton

-- 
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] Fused exposures are too light!

2010-10-26 Thread Tim Nugent
Try KImagefuser

http://wiki.panotools.org/Enfuse#Linux

On 26 October 2010 13:24, Robert Krawitz  wrote:

> On Tue, 26 Oct 2010 09:18:23 +0100, paul womack wrote:
> > Robert Krawitz wrote:
> >> > An enfuse GUI (is luminance the right thing here?) would be very
> >> helpful for this kind of thing, to visualize how the different
> >> parameters affect the result.
> >
> > An Enfuse Gui you say? If only we could come up with a memorable or
> > obvious name for such a thing ;-)
> >
> > http://software.bergmark.com/enfuseGUI/Main.html
>
> It's useless to me since it's not in source form (i. e. runs on Linux).
>
> --
> 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] Fused exposures are too light!

2010-10-26 Thread Robert Krawitz
On Tue, 26 Oct 2010 09:18:23 +0100, paul womack wrote:
> Robert Krawitz wrote:
>> > An enfuse GUI (is luminance the right thing here?) would be very
>> helpful for this kind of thing, to visualize how the different
>> parameters affect the result.
>
> An Enfuse Gui you say? If only we could come up with a memorable or
> obvious name for such a thing ;-)
>
> http://software.bergmark.com/enfuseGUI/Main.html

It's useless to me since it's not in source form (i. e. runs on Linux).

-- 
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] Fused exposures are too light!

2010-10-26 Thread paul womack

Robert Krawitz wrote:


An enfuse GUI (is luminance the right thing here?) would be very
helpful for this kind of thing, to visualize how the different
parameters affect the result.


An Enfuse Gui you say? If only we could come
up with a memorable or obvious name for such
a thing ;-)

http://software.bergmark.com/enfuseGUI/Main.html

  BugBear

--
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] Fused exposures are too light!

2010-10-25 Thread Robert Krawitz
I'm having trouble figuring out exactly what the enfuse options
--exposure-mu and --exposure-sigma actually do.

I've posted very small versions of all the shots on
http://rlk.smugmug.com/Photography/enfuse-test.

I'm trying to fuse

* 0EV:
  http://rlk.smugmug.com/Photography/enfuse-test/14365255_gYhFw#1064008497_nVtDY

* -2EV:
  http://rlk.smugmug.com/Photography/enfuse-test/14365255_gYhFw#1064008676_Qysth

* +2EV:
  http://rlk.smugmug.com/Photography/enfuse-test/14365255_gYhFw#1064008675_hU5dR

With different options to enfuse, I have the following results (I'm
using -l 1 in all cases to see where enfuse makes its decisions):

* No options:
  http://rlk.smugmug.com/Photography/enfuse-test/14365255_gYhFw#1064010124_sBN5B

* --exposure-mu=.1:
  http://rlk.smugmug.com/Photography/enfuse-test/14365255_gYhFw#1064010223_GqVkf

* --exposure-mu=.1 --exposure-sigma=.01:
  http://rlk.smugmug.com/Photography/enfuse-test/14365255_gYhFw#1064010348_gmdUu

* --exposure-mu=0 --exposure-sigma=.01:
  http://rlk.smugmug.com/Photography/enfuse-test/14365255_gYhFw#1064010451_D9WRj

My understanding of --exposure-mu is that it should bias the exposure
toward that level, and indeed, the shadows are darker with
--exposure-mu=.1.  However, the seam in the sky is in the same place
in all of these cases, and the highlights are actually brighter with
--exposure-mu=0 than with --exposure-mu=.1.

The enfuse manual isn't very clear on what's going on, and I'm
certainly not.  What I really want is for the sky and most of the
sunny ground (except for the shadows) to have the tonality of the -2EV
image and the shadows to be appropriately lightened, but I can't find
a combination of parameters that gets anywhere near that.

-- 
Robert Krawitz 

Tall Clubs International  --  http://www.tall.org/ or 1-888-IM-TALL-2
Member of the League for Programming Freedom  --  http://ProgFree.org
Project lead for Gutenprint   --http://gimp-print.sourceforge.net

"Linux doesn't dictate how I work, I dictate how Linux works."
--Eric Crampton

-- 
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] Fused exposures are too light!

2010-10-25 Thread Robert Krawitz
On Mon, 25 Oct 2010 21:10:41 +0200, Felix Hagemann wrote:
> On 24 October 2010 18:46, Robert Krawitz  wrote:
>
>> * No exposure correction, low dynamic range: everything was good.
>>
>> If I then enfused matching images with "no exposure correction", I got
>> good results.  Unfortunately, there does not appear to be a way to get
>> hugin to automate that.
>
> If I understand you correctly, then there is a way, it's a bit
> cumbersome though:
> Anchor one image from one exposure set, say 0ev, for exposure in the
> image tab. Use "Custom parameters below" in the exposure tab and mark
> all images of the 0ev set and vignetting (probably unmark Camera
> Response, I get flat images when using it). Optimize exposure. Do the
> same for the +2ev stack und for the -2ev stack.

Yes, it does.  Camera Response (which doesn't appear to be too well
defined anywhere) looks like it was responsible for most of the
problem.  I'm not yet trying your last suggestion (about optimizing
exposure for each exposure layer separately), but I'll try that
if it looks like I need something more.

I'm creating individual remapped shots w/o exposure correction and
blended layers, and they look pretty good.  I think I can use those to
play around with enfuse parameters to get what I want.  The enfuse
defaults seem to create an image that's paler than what I want.  I
suspect the parameters that are most important from this perspective are
exposure-mu, exposure-sigma, and gray-projector, and will need to play
around with them to get the right combo.

An enfuse GUI (is luminance the right thing here?) would be very
helpful for this kind of thing, to visualize how the different
parameters affect the result.

-- 
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] Fused exposures are too light!

2010-10-25 Thread Felix Hagemann
On 24 October 2010 18:46, Robert Krawitz  wrote:
> One more experiment.
>
> I tried creating remapped images in two ways:
>
> * Exposure corrected, low dynamic range: the -2 exposure was much too
>  light, the +2 exposure was too dark.

This is expected as the exposure optimization tries to bring the
brightness of all images to the one that is marked as the exposure
anchor.

> * No exposure correction, low dynamic range: everything was good.
>
> If I then enfused matching images with "no exposure correction", I got
> good results.  Unfortunately, there does not appear to be a way to get
> hugin to automate that.

If I understand you correctly, then there is a way, it's a bit
cumbersome though:
Anchor one image from one exposure set, say 0ev, for exposure in the
image tab. Use "Custom parameters below" in the exposure tab and mark
all images of the 0ev set and vignetting (probably unmark Camera
Response, I get flat images when using it). Optimize exposure. Do the
same for the +2ev stack und for the -2ev stack.

Hope this helps,
Felix

-- 
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] Fused exposures are too light!

2010-10-24 Thread Robert Krawitz
One more experiment.

I tried creating remapped images in two ways:

* Exposure corrected, low dynamic range: the -2 exposure was much too
  light, the +2 exposure was too dark.

* No exposure correction, low dynamic range: everything was good.

If I then enfused matching images with "no exposure correction", I got
good results.  Unfortunately, there does not appear to be a way to get
hugin to automate that.

(That's also not really right, because with this kind of lens I do
need vignetting correction.  But certainly the tonality looks a lot
better.)

-- 
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] Fused exposures are too light!

2010-10-24 Thread Yuval Levy
On October 23, 2010 08:39:18 pm Robert Krawitz wrote:
> The optimizer when align_image_stack was run said there was on average
> 1 pixel error in the control points.  Usually when I do this in Hugin
> I get the worst case error under 0.5.

one of the things I've learned with experience is not to trust that statistics 
- because it can't discern in the first place if the CPs used are good or bad 
ones.  One single CP out by 100px can skew the whole thing, and if you have 
ghosting in the scene, CPs on ghosts can do the same.  If you want to be 
really anally rententive about this part of the process, yes, do it manually, 
but don't orient yourself to the statistical error.  What you can add manually 
is the knowledge of what points to orient yourself to (i.e. what was fixed in 
the scene) and what parameters to optimize and what not.

With a recent version of Hugin I'd optimize y/p/r/X/Y/Z only, and I don't know 
if align_image_stack has been upgraded to take advantage of the relatively 
recent X/Y/Z transforms.

I have not done this, so it is pure theoretical conjecture.  It has been ages 
since I had the luxury of doing HDR, or even just bracketing / exposure 
fusion.

 
> >> I'm getting garbage from HDR files (even 8-bit HDR files).  It looks
> >> largely like noise, with some areas that vaguely look like they make
> >> sense.
> > 
> > OK, let's try to solve this one first.  What camera did you use? did
> > you shoot RAW or JPG?
> 
> JPEG, but I don't think that's the problem.

no, but it helps understand the situation.  I'm currently blind trying to help 
you.  You are my eyes.  I can only ask questions and try to guess...  so 
again, what camera model?


> It really is garbage --
> looks like high saturation noise, with some moire in places and a few
> areas that look very vaguely like the original.  It only happens when
> generating HDR.

generating HDR how? with what tool? sorry if I will sound very pedantic at 
time, I can not guess what happens between your JPG and HDR and I need to know 
to find out what's wrong.

 
> > In LuminanceHDR, try first to "Open HDR image" and open a RAW file
> > (if you have it).  How does it look?  Next, try to open one of the
> > HDR generated by align_image_stack. How does it look?  Next, hit the
> > "New HDR image" button, load one of your stack and go through the
> > process of creating an HDR image out of it.  How does it look?
> 
> The .exr file opened fine and looks quite good (it looked like an
> empty layer in Cinepaint, but I'm quite willing to believe that's a
> Cinepaint bug, and I have nothing else that can handle EXR files).  A
> bit dark, but that's what high dynamic range is for.  The HDR .tif
> file still looks like noise.  Now I'm sure that JPEG vs. RAW is not
> the problem :-)

to be sure I am on the same page as you:  what did you use to generate the 
.exr file that opned fine and looks quite good?

If you think Cinepaint is a problem, try Krita.

The darkness you can "correct" in LuminanceHDR by scrolling left and right in 
the histogram indicator (above the HDR image IIRC).  It does not change the 
image data, just how it is displayed.

What is the HDR .tif file that you mention?  how it is generated and how it is 
different to the HDR .exr file you mention?  I am afraid I lost you here...


> The spots I was referring to are parallax issues near the camera.  In
> this case, I wasn't referring to align_image_stack issues.  Sorry :-)

ok, got it.

 
> However, there are some cases where I wasn't able to use a
> tripod for one reason or another

wait until you have kids. [0] is handheld *and* with a toddler in the back-
pack ;-)


> Yes (0, -2, +2).  Using manual exposure, trying to expose for the
> brightest part of the scene.  I usually use an appropriate fixed white
> balance mode, but I've been known to be lazy :-(

fixed white balance (or RAW shooting) helps photometry but is not critical.  
We'll fix this when we get there.


> The number of
> images varies; anywhere between 4 and 7 (multiplied by the bracketing
> if I used it).

OK, so those are reasonably small projects for an exercise.


> This
> just came up because I don't understand why nona is brightening the
> dark exposures and giving me a pale sky that's going to be very hard
> to darken.

can you post the PTO file that leads to this problem?


> This problem with HDR TIFF files, however, I think is a bug.

I am still not understanding, sorry.  Which HDR TIFF files are you talking 
about?  how are they generated?

Yuv

[0]   


signature.asc
Description: This is a digitally signed message part.


Re: [hugin-ptx] Fused exposures are too light!

2010-10-23 Thread Robert Krawitz
On Sat, 23 Oct 2010 19:26:31 -0400, Yuval Levy wrote:
>
> On October 23, 2010 06:41:17 pm Robert Krawitz wrote:
>> > 1. fused image
>> > align_image_stack -a pre1 exposure[1-3].jpg
>> > enfuse -o image1.jpg pre1*
>> 
>> ...and at some point in there fine tune the stack -- I shot it
>> hand-held and even with 8 fps there's some motion.
>
> no need to further fine tune the stack.  align_image_stack takes
> care of your motion.  If there is motion in the scene, you will need
> deghosting.  There is some deghosting built into hugin_hdrmerge.

The optimizer when align_image_stack was run said there was on average
1 pixel error in the control points.  Usually when I do this in Hugin
I get the worst case error under 0.5.

>> I'm getting garbage from HDR files (even 8-bit HDR files).  It looks
>> largely like noise, with some areas that vaguely look like they make
>> sense.
>
> OK, let's try to solve this one first.  What camera did you use? did
> you shoot RAW or JPG?

JPEG, but I don't think that's the problem.  It really is garbage --
looks like high saturation noise, with some moire in places and a few
areas that look very vaguely like the original.  It only happens when
generating HDR.

> If you don't have it yet on your machine (BTW, what system are you
> on?)  install LuminanceHDR.  If you're on Ubuntu, do:

OpenSUSE 11.3.

> In LuminanceHDR, try first to "Open HDR image" and open a RAW file
> (if you have it).  How does it look?  Next, try to open one of the
> HDR generated by align_image_stack. How does it look?  Next, hit the
> "New HDR image" button, load one of your stack and go through the
> process of creating an HDR image out of it.  How does it look?

The .exr file opened fine and looks quite good (it looked like an
empty layer in Cinepaint, but I'm quite willing to believe that's a
Cinepaint bug, and I have nothing else that can handle EXR files).  A
bit dark, but that's what high dynamic range is for.  The HDR .tif
file still looks like noise.  Now I'm sure that JPEG vs. RAW is not
the problem :-)

>> Some spots don't line
>> up, but as long as I ignore those few spots, I'm doing OK.
>
> are these spots movement in the scene, such as wind moving leaves or
> water?  align_image_stack is usually very good at correcting for
> camera movement, but if the movement is in the scene what you need
> is deghosting, not alignment.  And if there are both, complication
> is compounded.  You will want to go with the "diagnostic" method and
> fine-tune it in that you'll be removing CPs that were placed on
> moving subjects.

The spots I was referring to are parallax issues near the camera.  In
this case, I wasn't referring to align_image_stack issues.  Sorry :-)

I do have ghost issues in some shots.  I'm actually less worried about
cleaning them up.  For now.  I just delete any CP's on moving subjects.

>> I got a bit more ambitious on this vacation :-)
>
> Ambition is good.  What you need now is thoroughness and
> perseverance.  For a first attempt at HDR, I would have recommended
> the use of a tripod.  I don't know where you live, but there must be
> something photogenic enough for you to go and shoot a few brackets
> to merge?  Just to gain a sense for how things work when the
> brackets are perfects, before starting to deal with the handheld
> brackets.

Well, absolutely a tripod is best when it's usable.  I do have another
one I'm working on (a sunset near North Conway) where I did use a
tripod.  However, there are some cases where I wasn't able to use a
tripod for one reason or another, or didn't have it with me.  I'm not
going to not take the shots just because I don't have my tripod with
me; I'll use a monopod if I have it or hand held if I don't.
Sometimes I come across something that just cries out for a panorama,
or sometimes my wife doesn't have the patience to wait for me to fetch
the tripod.

> Do I assume correctly that you used your camera's bracketing
> function while shooting? what exposure mode was the camera on? and
> what white balance mode?  how many images are there for each
> project?

Yes (0, -2, +2).  Using manual exposure, trying to expose for the
brightest part of the scene.  I usually use an appropriate fixed white
balance mode, but I've been known to be lazy :-(.  The number of
images varies; anywhere between 4 and 7 (multiplied by the bracketing
if I used it).

>> I'm willing to accept incremental improvements over time, but I'm
>> trying to understand what's going on here.
>
> you'll get there.  it would be easier to guide you if you could post
> a few samples of your input images somewhere - say two adjacent
> brackets for a start.  It would be even easier if you'd meet an
> experienced Hugin user in your neighborhood and look at your project
> with him.  Online it takes a lot of patience - just to get on the
> same page.

Oh, I'll get there, all right.  It's far from "bad" right now.  This
just came up because I don't understand why nona is brightening the
dark exposures and 

Re: [hugin-ptx] Fused exposures are too light!

2010-10-23 Thread Yuval Levy
On October 23, 2010 06:41:17 pm Robert Krawitz wrote:
> > 1. fused image
> > align_image_stack -a pre1 exposure[1-3].jpg
> > enfuse -o image1.jpg pre1*
> 
> ...and at some point in there fine tune the stack -- I shot it
> hand-held and even with 8 fps there's some motion.

no need to further fine tune the stack.  align_image_stack takes care of your 
motion.  If there is motion in the scene, you will need deghosting.  There is 
some deghosting built into hugin_hdrmerge.

 
> I'm getting garbage from HDR files (even 8-bit HDR files).  It looks
> largely like noise, with some areas that vaguely look like they make
> sense.

OK, let's try to solve this one first.  What camera did you use? did you shoot 
RAW or JPG?

If you don't have it yet on your machine (BTW, what system are you on?) 
install LuminanceHDR.  If you're on Ubuntu, do:

sudo apt-get install libqt4-dev libexiv2-dev fftw3-dev openexr pkg-config build-
essential libtiff-dev libopenexr-dev libgsl0-dev
svn co https://qtpfsgui.svn.sourceforge.net/svnroot/qtpfsgui/trunk qtpfsgui
cd qtpfsgui/qtpfsgui
qmake-qt4
make
sudo make install

In LuminanceHDR, try first to "Open HDR image" and open a RAW file (if you have 
it).  How does it look?  Next, try to open one of the HDR generated by 
align_image_stack. How does it look?  Next, hit the "New HDR image" button, 
load one of your stack and go through the process of creating an HDR image out 
of it.  How does it look?

> Some spots don't line
> up, but as long as I ignore those few spots, I'm doing OK.

are these spots movement in the scene, such as wind moving leaves or water?  
align_image_stack is usually very good at correcting for camera movement, but 
if the movement is in the scene what you need is deghosting, not alignment.  
And if there are both, complication is compounded.  You will want to go with 
the "diagnostic" method and fine-tune it in that you'll be removing CPs that 
were placed on moving subjects.

 
> I got a bit more ambitious on this vacation :-)

Ambition is good.  What you need now is thoroughness and perseverance.  For a 
first attempt at HDR, I would have recommended the use of a tripod.  I don't 
know where you live, but there must be something photogenic enough for you to 
go and shoot a few brackets to merge?  Just to gain a sense for how things 
work when the brackets are perfects, before starting to deal with the handheld 
brackets.

Do I assume correctly that you used your camera's bracketing function while 
shooting? what exposure mode was the camera on? and what white balance mode? 
how many images are there for each project?

 
> I'm willing to accept incremental improvements over time, but I'm
> trying to understand what's going on here.

you'll get there.  it would be easier to guide you if you could post a few 
samples of your input images somewhere - say two adjacent brackets for a 
start.  It would be even easier if you'd meet an experienced Hugin user in 
your neighborhood and look at your project with him.  Online it takes a lot of 
patience - just to get on the same page.

Yuv


signature.asc
Description: This is a digitally signed message part.


Re: [hugin-ptx] Fused exposures are too light!

2010-10-23 Thread Robert Krawitz
On Sat, 23 Oct 2010 18:15:11 -0400, Yuval Levy wrote:
>
> I start to understand.  And I have the impression that you're the
> kind of user that will be better off with more control over the
> process rather than with a black box whose output is obviously not
> satisfying you.

Yep, when I know what's going on underneath so that if I know that if
I do X then Y will happen.

> As suggested in my previous post, start by merging the stacks.  
> align_image_stack is good for both your scenarios and more:
>
> 1. fused image
> align_image_stack -a pre1 exposure[1-3].jpg
> enfuse -o image1.jpg pre1*

...and at some point in there fine tune the stack -- I shot it
hand-held and even with 8 fps there's some motion.

> 2. merged HDR image
> align_image_stack -o image1.hdr exposure[1-3].jpg
>
> 3. diagnostic info (a pto file)
> align_image_stack -p image1.pto exposure[1-3].jpg

OK.

> On October 23, 2010 03:36:45 pm Robert Krawitz wrote:
>> This wound up being a big headache; the aligned image stacks didn't
>> contain any EXIF data to let anything figure out the HFOV.
>
> use exiftool to copy the relevant EXIF tag from one input exposure to its 
> target image.
>
> I recommend LuminanceHDR or Krita to open/edit/view the HDR files,
> and pfstools to manipulate them from the command line.

I'm getting garbage from HDR files (even 8-bit HDR files).  It looks
largely like noise, with some areas that vaguely look like they make
sense.

> At this point, judge if the merge makes sense and fix it before
> proceeding.  If the alignment is not completely satisfying, open the
> pto file ("diagnostic" variant above) in Hugin and try to improve
> from there.  Good luck (as in: it is most likely that the input
> exposures are too far apart to be ever properly aligned).

I was afraid of that, but that wasn't the case.  Some spots don't line
up, but as long as I ignore those few spots, I'm doing OK.

>> I will give that a try.
>
> I don't know how proficient and how patient you are, but if these
> are your first projects you have taken a rather difficult approach /
> a steep learning curve.  I'd recommend mastering the individual
> steps of exposure fusion; exposure merge into HDR; and stitching of
> a single exposure panorama; before going all the way to the complex
> and perfect result you are trying to achieve.  You can use a subset
> of your current input images.  Once you master the tools your
> experience will be more rewarding.

I've done a few panoramas before, but never fusing or HDR.  I got a
bit more ambitious on this vacation :-)

I'm willing to accept incremental improvements over time, but I'm
trying to understand what's going on here.

-- 
Robert Krawitz 

Tall Clubs International  --  http://www.tall.org/ or 1-888-IM-TALL-2
Member of the League for Programming Freedom  --  http://ProgFree.org
Project lead for Gutenprint   --http://gimp-print.sourceforge.net

"Linux doesn't dictate how I work, I dictate how Linux works."
--Eric Crampton

-- 
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] Fused exposures are too light!

2010-10-23 Thread Yuval Levy
On October 22, 2010 11:49:03 pm Robert Krawitz wrote:
> These are two separate projects.

I start to understand.  And I have the impression that you're the kind of user 
that will be better off with more control over the process rather than with a 
black box whose output is obviously not satisfying you.

As suggested in my previous post, start by merging the stacks.  
align_image_stack is good for both your scenarios and more:

1. fused image
align_image_stack -a pre1 exposure[1-3].jpg
enfuse -o image1.jpg pre1*

2. merged HDR image
align_image_stack -o image1.hdr exposure[1-3].jpg

3. diagnostic info (a pto file)
align_image_stack -p image1.pto exposure[1-3].jpg


On October 23, 2010 03:36:45 pm Robert Krawitz wrote:
> This wound up being a big headache; the aligned image stacks didn't
> contain any EXIF data to let anything figure out the HFOV.

use exiftool to copy the relevant EXIF tag from one input exposure to its 
target image.

I recommend LuminanceHDR or Krita to open/edit/view the HDR files, and pfstools 
to manipulate them from the command line.

At this point, judge if the merge makes sense and fix it before proceeding.  If 
the alignment is not completely satisfying, open the pto file ("diagnostic" 
variant above) in Hugin and try to improve from there.  Good luck (as in: it 
is most likely that the input exposures are too far apart to be ever properly 
aligned).

Next you want to stitch a panorama out of the individual frames.  Hugin can 
open the HDR files directly, but the CP generators are not.  To generate CPs, 
tonemap the HDR.  Bruno posted to this list a single command line to do it - I 
think it was with ImageMagick's mogrify command and it used a simple 
logarithmic tonemapping curve, but I can't recall the details at the moment.

Generate the CPs with the usual tools, e.g. with panomatic

panomatic -o project.pto image*.tif

then replace in the generated project.pto all .tif extensions with the .hdr 
extesions of the original hdr file.

now start the Hugin GUI, load project.pto, optimize and stitch.

 
> I will give that a try.

I don't know how proficient and how patient you are, but if these are your 
first 
projects you have taken a rather difficult approach / a steep learning curve.  
I'd recommend mastering the individual steps of exposure fusion; exposure 
merge into HDR; and stitching of a single exposure panorama; before going all 
the way to the complex and perfect result you are trying to achieve.  You can 
use a subset of your current input images.  Once you master the tools your 
experience will be more rewarding.

Yuv


signature.asc
Description: This is a digitally signed message part.


Re: [hugin-ptx] Fused exposures are too light!

2010-10-23 Thread Robert Krawitz
On Sat, 23 Oct 2010 21:54:47 +0100, Bruno Postle wrote:
> On Sat 23-Oct-2010 at 15:36 -0400, Robert Krawitz wrote:
>>
>>This wound up being a big headache; the aligned image stacks didn't
>>contain any EXIF data to let anything figure out the HFOV.
>>
>>Anyway, why is nona modifying the exposure?  If I select output of "No
>>exposure correction, low dynamic range", it's supposed to "output
>>remapped images with unmodified exposure".  However, it's very
>>apparent that nona *is* adjusting the exposure, particularly in the
>>sky (and to a lesser extent in the ground).
>
> Hugin resets EV exposure for all the photos when it is doing exposure fusion, 
> but it still does whatever vignetting and white balance correction is defined 
> - To do this it also uses the camera response parameters.
>
> If any of these are 'wrong' then you will get a degraded result.  
> In this situation you can often just reset all photometric parameters and get 
> an acceptable final result.

I think I tried that; it didn't work well enough (it did help).  If I
reset them completely, the tonality is better but it's still washed
out.

I'm now trying just editing the makefile to change the exposures to
suit.

-- 
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] Fused exposures are too light!

2010-10-23 Thread Bruno Postle

On Sat 23-Oct-2010 at 15:36 -0400, Robert Krawitz wrote:


This wound up being a big headache; the aligned image stacks didn't
contain any EXIF data to let anything figure out the HFOV.

Anyway, why is nona modifying the exposure?  If I select output of "No
exposure correction, low dynamic range", it's supposed to "output
remapped images with unmodified exposure".  However, it's very
apparent that nona *is* adjusting the exposure, particularly in the
sky (and to a lesser extent in the ground).


Hugin resets EV exposure for all the photos when it is doing 
exposure fusion, but it still does whatever vignetting and white 
balance correction is defined - To do this it also uses the camera 
response parameters.


If any of these are 'wrong' then you will get a degraded result.  

In this situation you can often just reset all photometric 
parameters and get an acceptable final result.


--
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] Fused exposures are too light!

2010-10-22 Thread Lukáš Jirkovský
On 23 October 2010 04:54, Robert Krawitz  wrote:
> I'm trying to build panoramas with multiple exposures (-2, 0, +2), but
> the results (particularly the sky) are much too pale.  This is with
> basically the 2010.3 release (maybe a few commits before, but nothing
> in the hg log jumps out at me).
>
> This seems to be happening at the very start; nona is producing very
> pale sky (in particular) for all the exposures.  The high exposure is
> basically white, the middle exposure is very pale, and the low
> exposure is merely pale (the original images are fine).
>
> I've experimented with changing the exposure on the nona command line;
> I'm able to get darker skies that way.  But if I change the EV in
> hugin, it gets propagated through to the pto file passed to nona, with
> the result that nothing changes.
>
> I must be missing something obvious here, but for the life of me I
> can't figure out what it is...
>
> --
> Robert Krawitz                                     
>

Sometimes wrong camera response does such things. You could try to set
all EMoR settings in photometric tab to ones (I think) and see what
happens.

Lukas

-- 
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] Fused exposures are too light!

2010-10-22 Thread Robert Krawitz
On Fri, 22 Oct 2010 23:41:19 -0400, Yuval Levy wrote:
>
> On October 22, 2010 10:54:31 pm Robert Krawitz wrote:
>> I'm trying to build panoramas with multiple exposures (-2, 0, +2), but
>> the results (particularly the sky) are much too pale.  This is with
>> basically the 2010.3 release (maybe a few commits before, but nothing
>> in the hg log jumps out at me).
>> 
>> This seems to be happening at the very start; nona is producing very
>> pale sky (in particular) for all the exposures. 
>
> how does the sky look if you manually fuse three input images?  don't bother 
> about alignment for now...
>
> enfuse -o output.jpg image[1-3].jpg

That looks fine.

>> I must be missing something obvious here, but for the life of me I
>> can't figure out what it is...
>
> I'm still trying to understand your project.  maybe posting some
> pictures would help?
>
> you mention parallax as a problem because of different vantage
> points and not using a monopod.  how far away is the subject?
> parallax is unimportant in the distance.

These are two separate projects.

> also, you were mentioning an HDR pano.  but then you are using exposure 
> fusion.  That's not HDR.

Sorry, my goof in wording.

(But I'm having a different problem with *actual* HDR -- the tools I
have that can handle high bit depth, cinepaint and display, show 16
bit images as noise with a few spots of recognizable image, and some
areas of moire.)

> Based on the incomplete information I have, I would suggest to align and 
> enfuse each image stack and then stitch them into a panorama:
>
> align_image_stack -a pre1 image[1-3].jpg
> enfuse -o input1.jpg pre1*
> align_image_stack -a pre2 image[4-6].jpg
> enfuse -o input2.jpg pre2*
> ...
>
> since you're already on the command line, generate CPs as well, e.g. with 
> panomatic:
>
> panomatic -o project.pto input*
>
> then start Hugin, load project.pto, optimize and stitch.

I will give that a try.

-- 
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] Fused exposures are too light!

2010-10-22 Thread Yuval Levy
On October 22, 2010 10:54:31 pm Robert Krawitz wrote:
> I'm trying to build panoramas with multiple exposures (-2, 0, +2), but
> the results (particularly the sky) are much too pale.  This is with
> basically the 2010.3 release (maybe a few commits before, but nothing
> in the hg log jumps out at me).
> 
> This seems to be happening at the very start; nona is producing very
> pale sky (in particular) for all the exposures. 

how does the sky look if you manually fuse three input images?  don't bother 
about alignment for now...

enfuse -o output.jpg image[1-3].jpg


> I must be missing something obvious here, but for the life of me I
> can't figure out what it is...

I'm still trying to understand your project.  maybe posting some pictures 
would help?

you mention parallax as a problem because of different vantage points and not 
using a monopod.  how far away is the subject?  parallax is unimportant in the 
distance.

also, you were mentioning an HDR pano.  but then you are using exposure 
fusion.  That's not HDR.

Based on the incomplete information I have, I would suggest to align and 
enfuse each image stack and then stitch them into a panorama:

align_image_stack -a pre1 image[1-3].jpg
enfuse -o input1.jpg pre1*
align_image_stack -a pre2 image[4-6].jpg
enfuse -o input2.jpg pre2*
...

since you're already on the command line, generate CPs as well, e.g. with 
panomatic:

panomatic -o project.pto input*

then start Hugin, load project.pto, optimize and stitch.

HTH
Yuv


signature.asc
Description: This is a digitally signed message part.


[hugin-ptx] Fused exposures are too light!

2010-10-22 Thread Robert Krawitz
I'm trying to build panoramas with multiple exposures (-2, 0, +2), but
the results (particularly the sky) are much too pale.  This is with
basically the 2010.3 release (maybe a few commits before, but nothing
in the hg log jumps out at me).

This seems to be happening at the very start; nona is producing very
pale sky (in particular) for all the exposures.  The high exposure is
basically white, the middle exposure is very pale, and the low
exposure is merely pale (the original images are fine).

I've experimented with changing the exposure on the nona command line;
I'm able to get darker skies that way.  But if I change the EV in
hugin, it gets propagated through to the pto file passed to nona, with
the result that nothing changes.

I must be missing something obvious here, but for the life of me I
can't figure out what it is...

-- 
Robert Krawitz 

Tall Clubs International  --  http://www.tall.org/ or 1-888-IM-TALL-2
Member of the League for Programming Freedom  --  http://ProgFree.org
Project lead for Gutenprint   --http://gimp-print.sourceforge.net

"Linux doesn't dictate how I work, I dictate how Linux works."
--Eric Crampton

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