title: How to save img loaded by caffe.io.load_image
body: <pre><code>k = 1
  for k in range(1,21):
      img = caffe.io.load_image(imgpath + str(k) + '.png')
      result = caffe.io.load_image(imgpath + str(k) + '.png')
      patch_dim = 33
      h = (patch_dim - 1) / 2
      for i in range(patch_dim / 2, img.shape[0] - patch_dim / 2):
          for j in range(patch_dim / 2, img.shape[1] - patch_dim / 2):
              net.blobs['data'].data[...] = transformer.preprocess('data', img[i-h:i+h+1, j-h:j+h+1])
              out = net.forward()
              if out['prob'][0][1] &gt;= 0.8:
                  result[i][j][0] = 1
      result.save(resultpath + str(k) + ".png")
      k = k + 1
  </code></pre>
  
  <p>here is the code.I load the image use caffe.io.load_img and want to save it after processing,but there is an error:</p>
  
  <blockquote>
  <pre><code>AttributeError: 'numpy.ndarray' object has no attribute 'save'
  </code></pre>
  </blockquote>
  
  <p>how to save it,please？</p>