← Back to team overview

hugin-devs team mailing list archive

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

 

Question:

Downscaling would lose data, upscaling the 8-bit image to 16-bit would
be the right thing to do.

The little I have been able to look at the code, wouldn't it be possible
to easily upscale the images that have a lower bit-depth? Just allocate
a new image object of the right size, and copy over all the pixels?
(there are two cases. The current one is 16-bit, and the previous ones
are 16-bit. In that case you'd have to upscale the current working set.
Or if we're already working in 16-bit we'd have to "upgrade" the image
as it is loaded....) If upgrading the "working set" is difficult, a
quick scan over the images to determine their bid-depth would require
only the case of loading 8bit data into a 16-bit ('higer bid-depth')
datastructure....

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