hugin can't "see" it's own output

View: New views
9 Messages — Rating Filter:   Alert me  

hugin can't "see" it's own output

by clayton.kingdon :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


I'm brand new here, though I've been using hugin for about 6 mos.

I'm having a problem where I create a panorama of two aerial photos,
then I try to bring that panorama back into a new hugin project to
join it to another panorama of two aerial photos. The problem is that
the hugin-made output panorama just appears black under the 'images',
'crop', or 'control points' tabs.

I've messed around with the exiftools parameters in the .pto.mk file
-- removing the defaults and adding -exif:all, as was suggested in
another thread -- to no avail. Here's the output when I run my make
file:

kingdon@computer:~/zz-hacking/phase1_hugin_projects$ make -f
ABT-62a.pto.mod.mk
nona -z PACKBITS -r ldr -m TIFF_m -o ABT-62a -i 0 /home/kingdon/zz-
hacking/phase1_hugin_projects/ABT-62a.pto
nona -z PACKBITS -r ldr -m TIFF_m -o ABT-62a -i 1 /home/kingdon/zz-
hacking/phase1_hugin_projects/ABT-62a.pto
enblend  -f9098x7961 -o ABT-62a.tif ABT-62a0000.tif ABT-62a0001.tif
Loading next image: ABT-62a0000.tif
Loading next image: ABT-62a0001.tif
Creating blend mask: 1/4 2/4 3/4 4/4
Optimizing 1 distinct seam.
Strategy 1, s0: 1/4 2/4 3/4 4/4
Strategy 2: s0
Using 9 blending levels
Generating Gaussian pyramid:  g0 g1 g2 g3 g4 g5 g6 g7 g8
Generating Gaussian pyramid:  g0 g1 g2 g3 g4 g5 g6 g7 g8
Generating Laplacian pyramid: l0 l1 l2 l3 l4 l5 l6 l7 l8
Generating Gaussian pyramid:  g0 g1 g2 g3 g4 g5 g6 g7 g8
Generating Laplacian pyramid: l0 l1 l2 l3 l4 l5 l6 l7 l8
Blending layers:              l0 l1 l2 l3 l4 l5 l6 l7 l8
Collapsing Laplacian pyramid: l8 l7 l6 l5 l4 l3 l2 l1 l0
Writing final output...
exiftool -overwrite_original_in_place -TagsFromFile /home/kingdon/zz-
hacking/phase1_hugin_projects/ABT-62-5959_50pct.tif -exif:all
ABT-62a.tif
    1 image files updated
nona -r hdr -m EXR_m -o ABT-62a_hdr_ -i 0 /home/kingdon/zz-hacking/
phase1_hugin_projects/ABT-62a.pto
ContractViolation:
Precondition violation!
exportImage(): file format does not support requested number of bands
(color channels)
(/build/buildd/hugin-0.7.0~svn3191+beta5/src/foreign/vigra/vigra/
impex.hxx:674)


Precondition violation!
exportImage(): file format does not support requested number of bands
(color channels)
(/build/buildd/hugin-0.7.0~svn3191+beta5/src/foreign/vigra/vigra/
impex.hxx:674)
hugin_hdrmerge -m avg -c -o ABT-62a_stack_hdr_0000.exr
ABT-62a_hdr_0000.exr


Only one input image given. Copying input image to output image.
nona -r hdr -m EXR_m -o ABT-62a_hdr_ -i 1 /home/kingdon/zz-hacking/
phase1_hugin_projects/ABT-62a.pto
ContractViolation:
Precondition violation!
exportImage(): file format does not support requested number of bands
(color channels)
(/build/buildd/hugin-0.7.0~svn3191+beta5/src/foreign/vigra/vigra/
impex.hxx:674)


Precondition violation!
exportImage(): file format does not support requested number of bands
(color channels)
(/build/buildd/hugin-0.7.0~svn3191+beta5/src/foreign/vigra/vigra/
impex.hxx:674)
hugin_hdrmerge -m avg -c -o ABT-62a_stack_hdr_0001.exr
ABT-62a_hdr_0001.exr


Only one input image given. Copying input image to output image.
enblend  -f9098x7961 -o ABT-62a_hdr.tif ABT-62a_stack_hdr_0000.exr
ABT-62a_stack_hdr_0001.exr

enblend: error opening input file "ABT-62a_stack_hdr_0000.exr":

Precondition violation!
did not find a matching file type.

make: *** [ABT-62a_hdr.tif] Error 1

--~--~---------~--~----~------------~-------~--~----~
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@...
To unsubscribe from this group, send email to hugin-ptx+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/hugin-ptx
-~----------~----~----~----~------~----~------~--~---


Re: hugin can't "see" it's own output

by Carl von Einem-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


I may be wrong but I don't think that .exr is working as an input image
format. If you want to process one pair of images after the other I
would recommend .tif as an intermediate file format.

Carl

clayton.kingdon wrote:
> enblend: error opening input file "ABT-62a_stack_hdr_0000.exr":

--~--~---------~--~----~------------~-------~--~----~
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@...
To unsubscribe from this group, send email to hugin-ptx+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/hugin-ptx
-~----------~----~----~----~------~----~------~--~---


Re: hugin can't "see" it's own output

by clayton.kingdon :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


BTW, I'm running on Ubuntu 8.10, and in my subject line I should have
written "its" rather than "it's".


--~--~---------~--~----~------------~-------~--~----~
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@...
To unsubscribe from this group, send email to hugin-ptx+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/hugin-ptx
-~----------~----~----~----~------~----~------~--~---


Re: hugin can't "see" it's own output

by clayton.kingdon :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Yes, I thought this was odd. Through the GUI I have everything in the
Stitcher tab set to tif. Should I edit the make file and substitute
all EXR for TIF?

On Oct 20, 6:07 pm, Carl von Einem <c...@...> wrote:
> I may be wrong but I don't think that .exr is working as an input image
> format. If you want to process one pair of images after the other I
> would recommend .tif as an intermediate file format.

--~--~---------~--~----~------------~-------~--~----~
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@...
To unsubscribe from this group, send email to hugin-ptx+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/hugin-ptx
-~----------~----~----~----~------~----~------~--~---


Re: hugin can't "see" it's own output

by clayton.kingdon :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Yes, I thought this was odd. Through the GUI I've specified TIF for
everything under the Stitcher tab. Do I need to edit the make file and
substitute all "exr" for "tif"?

On Oct 20, 6:07 pm, Carl von Einem <c...@...> wrote:
> I may be wrong but I don't think that .exr is working as an input image
> format. If you want to process one pair of images after the other I
> would recommend .tif as an intermediate file format.


--~--~---------~--~----~------------~-------~--~----~
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@...
To unsubscribe from this group, send email to hugin-ptx+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/hugin-ptx
-~----------~----~----~----~------~----~------~--~---


Re: hugin can't "see" it's own output

by clayton.kingdon :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


I switched everything in the make file from exr to tif, and I get
similar problems.

I should have pointed out earlier that I can see the newly created
tiff (yes, even with all the error messages a panorama is created)
using GIMP and other image viewer software.

On Oct 20, 6:07 pm, Carl von Einem <c...@...> wrote:
> I may be wrong but I don't think that .exr is working as an input image
> format. If you want to process one pair of images after the other I
> would recommend .tif as an intermediate file format.
>
> Carl
>
> clayton.kingdon wrote:
> > enblend: error opening input file "ABT-62a_stack_hdr_0000.exr":
--~--~---------~--~----~------------~-------~--~----~
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@...
To unsubscribe from this group, send email to hugin-ptx+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/hugin-ptx
-~----------~----~----~----~------~----~------~--~---


Re: hugin can't "see" it's own output

by Tom Sharpless :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


hey Clayton

The error messages indicate the fault is a mismatch between nona's
input and output file formats.  And the the black images in Hugin
suggest an unreadable input format.  Since those files came out of
enblend, you probably just have to tell enblend to write something
nona and Hugin can read.  Chances are pretty good that the problem is
some sort of layer structure and/or alpha mask in the enblend output
-- which you don't need.  Gimp should be able to tell you what is
actually there; hopefully the enblend docs will suggest a way to get
rid of it.

As a test you could specify jpeg output from enblend, since jpeg does
not support any weird layer/mask formats.  And unless you really want
to stickle for ultimate bit-fidelity, jpegs should be enough (with 8
bit images I don't think you could detect any degradation).

Regards, Tom

On Oct 20, 7:37 pm, "clayton.kingdon" <clayton.king...@...>
wrote:

> I switched everything in the make file from exr to tif, and I get
> similar problems.
>
> I should have pointed out earlier that I can see the newly created
> tiff (yes, even with all the error messages a panorama is created)
> using GIMP and other image viewer software.
>
> On Oct 20, 6:07 pm, Carl von Einem <c...@...> wrote:
>
> > I may be wrong but I don't think that .exr is working as an input image
> > format. If you want to process one pair of images after the other I
> > would recommend .tif as an intermediate file format.
>
> > Carl
>
> > clayton.kingdon wrote:
> > > enblend: error opening input file "ABT-62a_stack_hdr_0000.exr":
--~--~---------~--~----~------------~-------~--~----~
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@...
To unsubscribe from this group, send email to hugin-ptx+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/hugin-ptx
-~----------~----~----~----~------~----~------~--~---


Re: hugin can't "see" it's own output

by clayton.kingdon :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Tom,
I checked enblend's man page and didn't find an option to output a
jpeg. I did use ImageMagick's identify to determine that the images I
start with are 8-bit, but the panorama I create is 16-bit. nona's -p
option will let me set the output bit depth, but I don't know how to
feed nona options via hugin, or the makefile that it creates. Still
searching ...

On Oct 21, 11:16 am, Tom Sharpless <tksharpl...@...> wrote:
> As a test you could specify jpeg output from enblend, since jpeg does
> not support any weird layer/mask formats.  And unless you really want
> to stickle for ultimate bit-fidelity, jpegs should be enough (with 8
> bit images I don't think you could detect any degradation).

--~--~---------~--~----~------------~-------~--~----~
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@...
To unsubscribe from this group, send email to hugin-ptx+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/hugin-ptx
-~----------~----~----~----~------~----~------~--~---


Re: hugin can't "see" it's own output

by clayton.kingdon :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Wow, I'm a dummy ... I pursued the alpha channel issue that Tom
mentioned only after stretching my 16-bit image down to 8-bit. In the
GIMP I was looking at the layers rather than channels, so I didn't
even realize there was an alpha channel. So, I used ImageMagick's
convert to turn it off and now I am able to view panorama image in
hugin.

turning alpha channel off:
convert in.tif -alpha off out.tif

compressing 16-bit to 8-bit:
convert in16bit.tif -level 0%,100% -depth 8 out8bit.tif

Thanks to Tom and Carl for their input!


On Oct 21, 3:51 pm, "clayton.kingdon" <clayton.king...@...>
wrote:
> Tom,
> I checked enblend's man page and didn't find an option to output a
> jpeg. I did use ImageMagick's identify to determine that the images I
> start with are 8-bit, but the panorama I create is 16-bit. nona's -p
> option will let me set the output bit depth, but I don't know how to
> feed nona options via hugin, or the makefile that it creates. Still
> searching ...
--~--~---------~--~----~------------~-------~--~----~
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@...
To unsubscribe from this group, send email to hugin-ptx+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/hugin-ptx
-~----------~----~----~----~------~----~------~--~---