Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to compute tresholded (black) pixels after binarization?

How to compute tresholded (black) pixels after binarization?

Here is a Python code:

img = cv2.imread('imageexperiment.tif',0) imageone = cv2.threshold(img,127,255,cv2.THRESH_BINARY)

Now i want somehow to compute number of black pixels (stained area)

How to compute tresholded (black) pixels after binarization?

How to compute tresholded (black) pixels after binarization?

Here is a Python code:

img = cv2.imread('imageexperiment.tif',0) imageone = cv2.threshold(img,127,255,cv2.THRESH_BINARY)

Now i want somehow to compute number of black pixels (stained area)

How to compute tresholded (black) pixels after binarization?

How to compute tresholded (black) pixels after binarization?

Here is a Python code:

 img = cv2.imread('imageexperiment.tif',0)
  imageone = cv2.threshold(img,127,255,cv2.THRESH_BINARY)

cv2.threshold(img,127,255,cv2.THRESH_BINARY)

Now i want somehow to compute number of black pixels (stained area)