masilab / alarm Goto Github PK
View Code? Open in Web Editor NEWLicense: Other
License: Other
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!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.