imaris / ImarisWriter

Apache License 2.0
29 stars 13 forks source link

bpImageConverterC_CopyBlock for Doubles #3

Closed MattHazard closed 2 years ago

MattHazard commented 2 years ago

Is it possible to have support for Doubles in the C Interface for the bpImageConverterC_CopyBlock method? It looks like there is already support for it in the C++ interface but I do not see a way of doing it in C unless there is something I am missing.

MattHazard commented 2 years ago

To add to this, I suppose bpConverterTypesC_DoubleType would also need to be added to the bpConverterTypesC_DataType enum as well.

imaris commented 2 years ago

Hallo Matt, the library do not support doubles at the moment, mainly because Imaris cannot open images in that format. There is a type definition for doubles in C++, but the library does not support all types defined in tDataType, only uint8, unint16, uint32 and float (note that uint32 images are currently not supported by Imaris). For the programmers: This is according to the explicit template instantiations of bpImageConverter and several others, which may be extended. The library needs modifications to support doubles and it will arguably provide little value since Imaris cannot open such images. Bests, Igor

MattHazard commented 2 years ago

Thank you for the information.