Giter Site home page Giter Site logo

alarm's People

Contributors

kwxu avatar yuankaihuo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

alarm's Issues

Why does CT slice change from single in ROI calculation?

Hi there,

I was looking at your code in get_liver_measurement_JC2_V2.py, and am wondering why when you start calculating the peripheral ROI's, you are changing the slice number that you are interested in from your erosion calculation? Particularly this segment of code:

start=np.inf
for i in range(seg_iso.shape[0]):
    #figure out the edge of liver in this particular direction
    if(seg_iso[i][single[1]][single[-1]]==1):
        start=i
        break
#fetch the 1/3 point away from edge
midptr=(start+int((single[0]-start)/3),single[1],single[-1])
#mask
newmask=np.zeros(seg_iso.shape)
for i in range(15):
    for j in range(15):
        for k in range(5):
            #draw a circle around that point (based on distance)
            a,b,c=midptr[0]+7-i,midptr[1]+7-j,midptr[-1]+7-k
            if((a-midptr[0])**2+(b-midptr[1])**2<=7**2):
                newmask[a][b][c]=1 #marked 1

Why is the value of k changing when we had established that single contains the i, j, k of the center cut? Thanks for any insight!

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.