← Back to team overview

hugin-devs team mailing list archive

[Bug 686256] Re: Enblend cannot blend images with different bit-depth.

 

@Tim:  I did not "decide that it is not important to fix".  What I did
is set it to "Wishlist" because it is a feature request (i.e. requires
adding new functionality) and not a bug: the code behaves as intended.

@Christoph:  Thank you for explaining to laymen like me how the image's
bit depth is encoded in Enblend and Enfuse and how hard it would be to
add the requested new functionality into the tools.  Also extending the
documentation, explaining to users what the input image requirements are
is a good step in the right direction.

My apology for not updating the report summary when triaging it.
Calling it "stupid" is not helpful.

@Rogier:  have you considered the consequences of both up and down
scaling in terms of artifacts and other unintended consequences?  You
are welcome to fiddle with the code and provide a patch that upscales
the images prior to processing if needed.  Personally I would:

1. make the error message more user-friendly, by adding a suggested
resolution, i.e.

enblend: input image "test0002.tif" has pixel type UINT16,
enblend: but previous images have pixel type UINT8
enblend: convert all input images to the same bit depth with a tool like ImageMagick and try again.

2. contribute a wrapper shell script.  Unfortunately my script would not
help Windows users since it would be a shell script.  The commands to
use are:

 identify -verbose ${SOURCE_IMG}  | grep Depth:
...
 convert ${SOURCE_IMG} -depth 16 ${TMP_IMG}
...
 enblend -o result ${TMP_IMG}

3.  Because most images fed into Enblend do fulfill the input image
requirements outlined in the documentation, I would *not* add the
dependency on ImageMagick to the Enblend distribution, hence the script
would just be a "contributed" thing, not part of Enblend itself.

I don't really have the need to do this for myself, but if there is
enough request I can see if I find a little moment of spare time to put
together such a script.

-- 
You received this bug notification because you are a member of Hugin
Developers, which is subscribed to Enblend.
https://bugs.launchpad.net/bugs/686256

Title:
  Enblend cannot blend images with different bit-depth.

Status in Enblend:
  Won't Fix

Bug description:
   
enblend: input image "test0002.tif" has pixel type UINT16,
enblend:   but previous images have pixel type UINT8
make: *** [test.png] Error 1

Current version 2010.2.0.d8ce0ba947cc (downloaded today) no previous versions installed. (Help>About >System is not a valid menu option)
Windows 7 Pro 32 Bit

stitching of two images worked OK, but when the third was added get the error.





References