Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The code perhaps works just for one image #6

Open
fokx opened this issue Jun 22, 2020 · 1 comment
Open

The code perhaps works just for one image #6

fokx opened this issue Jun 22, 2020 · 1 comment

Comments

@fokx
Copy link

fokx commented Jun 22, 2020

Duplicates of #2 #5.
File "Skeletonization.py", line ..., in
fluxMap = flux(mir_delD_xn, mir_delD_yn)
File "skeleton2Graph.py", line 195, in flux
flux_x = Nx * delD_xn[pix[0] - 1:pix[0] + 2, pix[1] - 1:pix[1] + 2]
ValueError: operands could not be broadcast together with shapes (3,3) (0,0)
According to your instructions in #2, Igot
mir_delD_yn.shape: (284, 284)
the outputs of this line to be correct and non empty:
D,IDX = morph.distance_transform_edt(BW,return_distances=True, return_indices=True)
Screenshot_20200622_164507
Help needed.

@Lehong-Wang
Copy link

I think I also came across the same issue. I could be wrong, but this is probably because you are using an image with black background with white pattern. It should be a white background image with black shape.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants