Coder Social home page Coder Social logo

Comments (6)

mmkamani7 avatar mmkamani7 commented on July 30, 2024

What error do you get? If you resize your image is it working?

from skeletonization.

Ng-ms avatar Ng-ms commented on July 30, 2024

ValueError Traceback (most recent call last)
in ()
1 print(mir_delD_yn.shape)
----> 2 fluxMap = flux(mir_delD_xn,mir_delD_yn)
3 plt.imshow(np.nan_to_num(fluxMap))
4 plt.title('Flux Map')
5 plt.show()

in flux(delD_xn, delD_yn)
88 nonNanPix = np.argwhere(np.invert(np.isnan(delD_xn) | np.isnan(delD_yn)))
89 for pix in nonNanPix:
---> 90 flux_x = Nx * delD_xn[pix[0] - 1:pix[0] + 2, pix[1] - 1:pix[1] + 2]
91 flux_y = Ny * delD_yn[pix[0] - 1:pix[0] + 2, pix[1] - 1:pix[1] + 2]
92 flux_x[1, 1] = np.nan

ValueError: operands could not be broadcast together with shapes (3,3) (0,0)
this is the error , i tried resize it as BW.png image but it gives the same error

from skeletonization.

mmkamani7 avatar mmkamani7 commented on July 30, 2024

It seems that your matrix delD_xn is empty. What is the results of print(mir_delD_yn.shape)?

from skeletonization.

EldorIbragimov avatar EldorIbragimov commented on July 30, 2024

Same issue.

from skeletonization.

EldorIbragimov avatar EldorIbragimov commented on July 30, 2024

How to solve it?

from skeletonization.

mmkamani7 avatar mmkamani7 commented on July 30, 2024

Same issue.

It seems that your matrix delD_xn is empty. What is the results of print(mir_delD_yn.shape)?
Check the outputs of this line to be correct and non empty:
D,IDX = morph.distance_transform_edt(BW,return_distances=True, return_indices=True)

from skeletonization.

Related Issues (5)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.