Example: Convert Image to matrixes with Gray Value
CREATE TABLE matrixTable AS ( SELECT * FROM TD_IMAGE2MATRIX ( ON (SELECT id, image FROM imageTable) USING OUTPUT ('gray') ) t ) WITH DATA PRIMARY INDEX (id, y, x);
The primary index contains multiple columns to reduce hash conflicts.
Example: Convert Image to matrixes with RGB Values
CREATE TABLE matrixTable AS ( SELECT * FROM TD_IMAGE2MATRIX ( ON (SELECT id, image FROM imageTable) USING OUTPUT ('rgb') ) t ) WITH DATA PRIMARY INDEX (id, y, x);