Skip to content
Advertisement

Tag: scipy.ndimage

How to make dotted line in a binary array

how to create the dotted line in the below NumPy array bh=make_figure(b,’gh’) requirement: how to convert element 1 into 0 with the step of two expected outputs is like I tried with a brute force algorithm, but I am not able to find the solution output array looks like for visual representation like making a dotted line Answer Here’s one

Advertisement