GitHub user tomasatdatabricks opened a pull request:
https://github.com/apache/spark/pull/20168
SPARK-22730 Add ImageSchema support for non-integer image formats
## What changes were proposed in this pull request?
Added functionality to handle all OpenCV modes to ImageSchema:
1. updated toImage and toNDArray functions to handle non-uint8 based
images.
2. add information about individual OpenCv modes
## How was this patch tested?
Added test for conversion between numpy arrays and images stored as all
possible OpenCV modes.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/tomasatdatabricks/spark
tomas/ImageSchemaUpdate
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/20168.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #20168
----
commit fe87dd112709ca2b101d78c97c4826536ec7da7d
Author: tomasatdatabricks <tomas.nykodym@...>
Date: 2017-12-29T22:56:28Z
Added functionality for handling non-uint8-based images for ImageSchema
commit 70bae2f7e9d85a5f464f1bfc3a9426136259d5d1
Author: tomasatdatabricks <tomas.nykodym@...>
Date: 2018-01-03T19:14:06Z
Added test for conversion between array and image struct for all ocv types.
----
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]