Skip to content

Display a two dimensional array as image

Yang YueXiang edited this page Aug 10, 2019 · 3 revisions

import matplotlib.pyplot as plt
%matplotlib inline

plt.matshow(fourDarray[0, :, :, 1]) //specific channel
plt.matshow(fourDarray[0, :, :, ]) //all channels
plt.matshow(twoDarray)

Clone this wiki locally