writing 16 bit images with Image writer node

Hi,

I want to save 16 bit images within a workflow. If I save these 16 bit images by using first the image converter node with 8bit settings (see screenshot 8bit_settings.png) the images are correctly saved and they are 8bit. However if I try to do the same by just changing the target format to "unsignedshorttype" (see screenshot 16bit_settings.png) the execution of the image writer node always fails with the following message: "Some errors occured during the writing process!". Now I'm wandering if the image writer node is able to save 16 bit images.

Cheers!

Christian

Hi Christian,

first of all. The ImageWriter is one node we really need to refactor and improve. I just put "Refactor ImageWriter" to (nearly) the top of our TODO list. We plan a bugfix release (KNIME Image Processing 1.0.4) in the very near future. Hopefully, we will also improve the ImageWriter until then. Anyway, sorry for any trouble you may have with this node.

The problem with your setting is, that the ImageWriter seems not to support UnsignedShortType. Maybe you could simply try "ShortType" as the 16bit type? This works fine for me.

Cheers,

Christian

Hi Christian,

thanks for your reply. The writer node gives the same error message when I choose Shorttype as target format in the image converter node. I guess I just have to wait until there will be an improved version. I tried the ImageJ1 macro node because it can be used for saving images as well but for some reason it doesn't work with images that have more then 3 dimensions. Anyway I will try to figure out something else.

Christian

Hi Christian,

I uploaded a Workflow with ShortType ImageWriter working. Maybe this helps adapting your settings?

Christian

 

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.