MCPcopy Create free account
hub / github.com/PythonOT/POT / mat2im

Function mat2im

examples/domain-adaptation/plot_otda_linear_mapping.py:109–111  ·  view source on GitHub ↗

Converts back a matrix to an image

(X, shape)

Source from the content-addressed store, hash-verified

107
108
109def mat2im(X, shape):
110 """Converts back a matrix to an image"""
111 return X.reshape(shape)
112
113
114def minmax(img):

Callers 1

Calls 1

reshapeMethod · 0.45

Tested by

no test coverage detected