三通通道彩色图
/**
* Takes an INDArray containing an image loaded using the native image loader
* libraries associated with DL4J, and converts it into a BufferedImage.
* The INDArray contains the color values split up across three channels (RGB)
* and in the integer range 0-255.
*
* @param array INDArray containing an image
* @return BufferedImage
*/
private BufferedImage imageFromINDArray(INDArray array) {
long[] shape = array.shape();
long height = shape[2];
long width = shape[3];
BufferedImage image = new BufferedImage((int)width, (int)height, BufferedImage.TYPE_INT_RGB);
for (int x = 0; x < width; x++) {
for (int y = 0; y < height; y