output file compression and samples per pixel

Asked by Jonathan Chen

Hello everyone,

I am a researcher in neurology and trying to use Hugin in command line for images alignment and then focus stacking. However, the result of the focus stack cannot be stitched in our cluster because the SamplePerPixel had changed after the Enfuse processing (I believe an extra alpha channel was added to the tiff), I wonder if I can adjust that in the code to prevent the SamplePerPixel changing from 3 to 4, and also, can I get an uncompressed tiff output after align_image_stack and Enfuse?

Thank you so much!
Jonathan

Question information

Language:
English Edit question
Status:
Solved
For:
Hugin Edit question
Assignee:
No assignee Edit question
Solved by:
tmodes
Solved:
Last query:
Last reply:

This question was reopened

Revision history for this message
tmodes (tmodes) said :
#1

enfuse does always add an alpha channel, this can't be disabled. Or you need to save the result in a fileformat which does not support alpha channel (e.g. jpg). There are other programs which can remove the alpha channel.

Concerning the compression, enfuse has a switch --compression (see also manual), use --compressio=none for uncompressed TIFF output.

Revision history for this message
Jonathan Chen (lgumi) said :
#2

Thanks tmodes, that solved my question.

Revision history for this message
Jonathan Chen (lgumi) said :
#3

In addition, is there a way to turn off the compression in align_image_stack as well? I do enfuse after the align_image_stack alignment, and align_image_stack already produced compressed outcome. I tried to find solutions in the man-page, but no luck so far.

Thanks again!

Revision history for this message
Best tmodes (tmodes) said :
#4

Sorry, there is no option to control the compression in align_image_stack currently.

But when you enfuse the intermediate images afterward and then output an uncompressed images, why does you need to control the compression of the intermediate images?

Revision history for this message
Jonathan Chen (lgumi) said :
#5

Hello tmodes,

Thanks for the replied, I originally through the compression is permanent, but now it doesn't seem to be the case, which is great!

Best,
Jonathan

Revision history for this message
Jonathan Chen (lgumi) said :
#6

Thanks tmodes, that solved my question.