title: cv.imshow throws (-215:Assertion failed) src_depth != CV_16F && src_depth != CV_32S in function 'convertToShow'
body: <p>In this code i am trying to integral image  and every time i run this code
  a window flash and desapear , then i get this error in terminal</p>
  <pre><code>import cv2  
  import numpy as np  
  
  image = cv2.imread(&quot;nancy.jpg&quot;)  
  (rows,cols,dims) = image.shape  
  
  sum = np.zeros((rows,cols), np.uint8)  
  imageIntegral = cv2.integral(image, sum, -1) 
  
  cv2.imshow(&quot;imageIntegral&quot;, imageIntegral) 
  cv2.waitKey()
  </code></pre>
  <p><strong>Error:</strong></p>
  <blockquote>
  <p>cv2.imshow(&quot;imageIntegral&quot;,imageIntegral)cv2.error: OpenCV(4.1.0) C:/projects/opencv-python/opencv/modules/highgui/src/precomp.hpp:131:</p>
  <p>error: (-215:Assertion failed) src_depth != CV_16F &amp;&amp; src_depth !=
  CV_32S in function 'convertToShow'</p>
  </blockquote>