Skip to content
Advertisement

Convert a binary image to 2D array or Matrix in Python?

I’m new to image processing and I’m really having a hard time understanding stuff…so the idea is that how do you create a matrix from a binary image in python?

to something like this:

It not the same image though the point is there. Thank you for helping, I appreciate it cheers

Advertisement

Answer

Using cv2 -Read more here

JavaScript

Using skimage – Read more here

JavaScript

Using Scipy – Read more here

JavaScript

Plotting Images

JavaScript
Advertisement