imagej / imagej2

Open scientific N-dimensional image processing :microscope: :sparkler:
https://imagej.net/
BSD 2-Clause "Simplified" License
1.17k stars 332 forks source link

Cannot export uncompressed avi file using save as > avi (compression: None) #210

Closed shalinshah1993 closed 6 years ago

shalinshah1993 commented 6 years ago

When I try to export an import lif file as an uncompressed avi video file, imagej automatically downgrades the 16-bit video to 8-bit. Any workarounds or known solutions? In particular, I think this is the plugin responsible for error - https://imagej.nih.gov/ij/plugins/avi.html

imagejan commented 6 years ago

This issue belongs into imagej1, the AVI_Writer plugin source is here:

https://github.com/imagej/imagej1/blob/master/ij/plugin/filter/AVI_Writer.java#L183

In that linked line, there's also a comment mentioning that all grayscale image types are always written as 8-bit. You could try using Plugins > Bio-Formats > Bio-Formats Exporter instead.

shalinshah1993 commented 6 years ago

Thanks for the prompt response. I tried Plugins > Bio-Formats > Export As > AVI file. The error I get is uint16 is not supported by this type of format.

ctrueden commented 6 years ago

I didn't think the AVI file format supported 16-bit integer data. Does it?

shalinshah1993 commented 6 years ago

Yeah, I just did some research. It seems that AVI encoding doesn't support 16-bit. It is not a imagej or plugin bug. Thanks for the help!