Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Incomplete
-
2.3.0
-
None
Description
The conversion functions toImage and toNDArray provided by ImageSchema currently do not support non-integer image formats.
Therefore, users who want to work with both integer and floating point formats have to write their own versions.
Related to this problem is the lack of description of supported openCV modes (e.g. number of channels, data type).
This tickets is based on our implementation in spark-deep learning and aims to bring this functionality to the ImageSchema.
To be more specific, we want to
1. update toImage and toNDArray functions to handle float32(64) based images.
See https://github.com/tomasatdatabricks/spark-deep-learning/blob/92217afcfdb3f0a42540f396d9018d75ffa6ba7c/python/sparkdl/image/imageIO.py#L61-L87
2. add information about individual OpenCv modes, e.g.
See https://github.com/tomasatdatabricks/spark-deep-learning/blob/92217afcfdb3f0a42540f396d9018d75ffa6ba7c/python/sparkdl/image/imageIO.py#L31-L46