title: NP.max function error in Python 3
body: <p>I am learning Background removal with OpenCV code from 
  <a href="http://www.codepasta.com/site/vision/segmentation/" rel="nofollow noreferrer">http://www.codepasta.com/site/vision/segmentation/</a></p>
  
  <p>The error is from np.max</p>
  
  <pre><code>edgeImg = np.max( np.array([ edgedetect(blurred[:,:, 0]), edgedetect(blurred[:,:, 1]), edgedetect(blurred[:,:, 2]) ]), axis=0 )
  </code></pre>
  
  <p>When I change from np.max into np.maximum the error as follow:</p>
  
  <pre><code>Traceback (most recent call last):
  File "deteksipinggir-sobel.py", line 77, in &lt;module&gt;
  segment('078.jpg')
  File "deteksipinggir-sobel.py", line 49, in segment
  np.array([edgedetect(blurred[:, :, 0]), edgedetect(blurred[:, :, 1]), edgedetect(blurred[:, :, 2])]), axis=0)
  ValueError: invalid number of arguments
  </code></pre>
  
  <p>When I change from np.max into np.amax the error as follow:</p>
  
  <pre><code>Traceback (most recent call last):
  File "deteksipinggir-sobel.py", line 77, in &lt;module&gt;
  segment('078.jpg')
  File "deteksipinggir-sobel.py", line 49, in segment
  np.array([edgedetect(blurred[:, :, 0]), edgedetect(blurred[:, :, 1]), edgedetect(blurred[:, :, 2])]), axis=0)
  File "E:\Anaconda3\lib\site-packages\numpy\core\fromnumeric.py", line 2272, in amax
  out=out, **kwargs)
  File "E:\Anaconda3\lib\site-packages\numpy\core\_methods.py", line 26, in _amax
  return umr_maximum(a, axis, None, out, keepdims)
  TypeError: '&gt;=' not supported between instances of 'NoneType' and 'NoneType'
  </code></pre>
  
  <p>I am using python 3, please help, thanks.</p>